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, comment, or chat message. Repeat reports of the same target are deduplicated.One of
spam, inappropriateContent, harassment, misinformation,
hateSpeech, violence, illegalActivity, selfHarm, other. The API
rejects anything else — use other plus details for the rest.Reporting a chat message uses
targetType: "message" with the message id
as targetId — the conversation is resolved server-side. Reports on space
conversations reach space moderators; reports on DMs and group chats are
project-level and appear only in the Sublay dashboard.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 of a specific target type. Message reports appear
in this queue only for space conversations — DM and group reports are
project-level and surface in the dashboard.
Restrict results to reports with a specific moderation status.
Promise<PaginatedResponse<Report>>
Each Report carries id, spaceId, targetId, targetType, status, reporterCount, timestamps, and optional userReports, target, and space associations.
