reports module lets end users file reports against entities and comments, and lets moderators read the moderated reports queue.
createReport
Files a report against an entity or comment. Repeat reports of the same target are deduplicated.The kind of content being reported.
The ID of the entity or comment being reported.
The reason for the report.
Additional context about the report.
Promise<{ message: string; code: "report/created" | "report/updated" | "report/already-reported" }>
fetchModeratedReports
Fetches a paginated list of moderated reports, with optional filters.Restrict results to reports within a specific space.
Restrict results to reports of a specific target type.
Restrict results to reports with a specific moderation status.
Sort order for the returned reports.
The page of results to fetch.
The number of reports to return per page.
Promise<PaginatedResponse<Report>>
Each Report carries id, spaceId, targetId, targetType, status, reporterCount, timestamps, and optional userReports, target, and space associations.
