feat(admin): add internal notes to reports (#3510)

This commit is contained in:
Hampus authored and GitHub committed 2026-10-17 05:50:33 +02:00
1 parent 2d8d130be1
commit 49a1ffabbe
30 files changed
+1138 -87

No files matched your search

+16 -2
View File
@@ -5,8 +5,8 @@ use reqwest::Method;
use crate::api::generated::{
snowflake,
types::{
UpdateReportRequest, UpdateReportRequestOutcome, UpdateReportRequestResolution,
UpdateReportRequestStatus,
ReportNoteRequest, ReportNoteResponse, UpdateReportRequest, UpdateReportRequestOutcome,
UpdateReportRequestResolution, UpdateReportRequestStatus,
},
};
@@ -94,6 +94,20 @@ impl AdminApiClient {
.await
}
pub async fn annotate_report(
&self,
report_id: &str,
body: String,
) -> ApiResult<ReportNoteResponse> {
self.send(
Method::POST,
&format!("/admin/reports/{}/notes", urlencoding::encode(report_id)),
Some(&ReportNoteRequest { body }),
None,
)
.await
}
pub async fn delete_report(
&self,
report_id: &str,