pub struct ReportsApi { /* private fields */ }Expand description
Content reports — abuse/moderation reporting for authenticated users and anonymous public-chat visitors, plus the operator inbox
Implementations§
Source§impl ReportsApi
impl ReportsApi
Sourcepub async fn create_content_report(
&self,
body: &ContentReportInput,
) -> Result<ContentReportAccepted>
pub async fn create_content_report( &self, body: &ContentReportInput, ) -> Result<ContentReportAccepted>
File a content report
Report a message, session or agent. Available to any authenticated principal — deliberately
not role- or scope-gated, since reporting abuse must never be blocked by RBAC. Rate limited
to 10/minute per caller. self_harm is still accepted with 202 but raises the operator
notification to critical priority.
POST /api/v1/reports
Sourcepub async fn list_all_content_reports(
&self,
params: &ListAllContentReportsParams,
) -> Result<ListAllContentReportsResponse>
pub async fn list_all_content_reports( &self, params: &ListAllContentReportsParams, ) -> Result<ListAllContentReportsResponse>
List content reports platform-wide (super-admin)
Every report across every tenant, newest first. A tenant whose agent is the problem must not be the only party holding the evidence.
GET /api/v1/admin/reports
Required scopes: admin.
Sourcepub fn list_all_content_reports_all<'a>(
&'a self,
params: &'a ListAllContentReportsParams,
) -> impl Stream<Item = Result<ContentReport>> + 'a
pub fn list_all_content_reports_all<'a>( &'a self, params: &'a ListAllContentReportsParams, ) -> impl Stream<Item = Result<ContentReport>> + 'a
Stream every item returned by listAllContentReports, following the cursor cursor until
the server reports no further pages.
Sourcepub async fn list_content_reports(
&self,
params: &ListContentReportsParams,
) -> Result<ListContentReportsResponse>
pub async fn list_content_reports( &self, params: &ListContentReportsParams, ) -> Result<ListContentReportsResponse>
List content reports for this tenant (admin+)
Moderation queue for the tenant that owns the reported content, newest first. Requires the admin role — reports carry reporter free text and there is no moderation duty below admin.
GET /api/v1/reports
Sourcepub fn list_content_reports_all<'a>(
&'a self,
params: &'a ListContentReportsParams,
) -> impl Stream<Item = Result<ContentReport>> + 'a
pub fn list_content_reports_all<'a>( &'a self, params: &'a ListContentReportsParams, ) -> impl Stream<Item = Result<ContentReport>> + 'a
Stream every item returned by listContentReports, following the cursor cursor until the
server reports no further pages.
Trait Implementations§
Source§impl Clone for ReportsApi
impl Clone for ReportsApi
Source§fn clone(&self) -> ReportsApi
fn clone(&self) -> ReportsApi
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more