Package-level declarations

Types

Link copied to clipboard
data class AssignmentActivity(val previousStatus: AssignmentActivityPreviousStatus? = null)

Activity recording a moderator being assigned to a report.

Link copied to clipboard

The report's status before this activity. Populated automatically from the report row; not required in input.

Link copied to clipboard
data class AssignmentView(val id: Long, val did: Did, val moderator: Member? = null, val queue: QueueView? = null, val reportId: Long, val startAt: Timestamp, val endAt: Timestamp? = null)
Link copied to clipboard
data class AssignModeratorRequest(val reportId: Long, val queueId: Long? = null, val did: Did? = null, val isPermanent: Boolean? = null)
Link copied to clipboard
Link copied to clipboard
data class CloseActivity(val previousStatus: CloseActivityPreviousStatus? = null)

Activity recording a report being closed.

Link copied to clipboard

The report's status before this activity. Populated automatically from the report row; not required in input.

Link copied to clipboard
data class CreateActivityRequest(val reportId: Long, val activity: CreateActivityRequestActivityUnion, val internalNote: String? = null, val publicNote: String? = null, val isAutomated: Boolean? = false)
Link copied to clipboard
Link copied to clipboard
data class EscalationActivity(val previousStatus: EscalationActivityPreviousStatus? = null)

Activity recording a report being escalated.

Link copied to clipboard

The report's status before this activity. Populated automatically from the report row; not required in input.

Link copied to clipboard
data class GetAssignmentsQueryParams(val onlyActive: Boolean? = true, val reportIds: List<Long>? = null, val dids: List<Did>? = null, val limit: Long? = 50, val cursor: String? = null)
Link copied to clipboard
data class GetAssignmentsResponse(val cursor: String? = null, val assignments: List<AssignmentView>)
Link copied to clipboard
data class GetHistoricalStatsQueryParams(val queueId: Long? = null, val moderatorDid: Did? = null, val reportTypes: List<String>? = null, val startDate: Timestamp? = null, val endDate: Timestamp? = null, val limit: Long? = 30, val cursor: String? = null)
Link copied to clipboard
data class GetHistoricalStatsResponse(val stats: List<HistoricalStats>, val cursor: String? = null)
Link copied to clipboard
Link copied to clipboard
data class GetLiveStatsQueryParams(val queueId: Long? = null, val moderatorDid: Did? = null, val reportTypes: List<String>? = null)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
data class HistoricalStats(val date: String, val computedAt: Timestamp? = null, val pendingCount: Long? = null, val actionedCount: Long? = null, val escalatedCount: Long? = null, val inboundCount: Long? = null, val actionRate: Long? = null, val avgHandlingTimeSec: Long? = null)

A single daily snapshot of report statistics for a calendar date.

Link copied to clipboard
data class ListActivitiesQueryParams(val reportId: Long, val limit: Long? = 50, val cursor: String? = null)
Link copied to clipboard
data class ListActivitiesResponse(val activities: List<ReportActivityView>, val cursor: String? = null)
Link copied to clipboard
data class LiveStats(val pendingCount: Long? = null, val actionedCount: Long? = null, val escalatedCount: Long? = null, val inboundCount: Long? = null, val actionRate: Long? = null, val avgHandlingTimeSec: Long? = null, val lastUpdated: Timestamp? = null)

Live statistics for reports for the current calendar day, filterable by queue, moderator, or report type.

Link copied to clipboard

Activity recording a note on a report. Use internalNote for moderator-only notes or publicNote for reporter-visible notes (or both).

Link copied to clipboard
data class QueryReportsQueryParams(val queueId: Long? = null, val reportTypes: List<String>? = null, val status: QueryReportsStatus, val subject: Uri? = null, val did: Did? = null, val subjectType: QueryReportsSubjectType? = null, val collections: List<Nsid>? = null, val reportedAfter: Timestamp? = null, val reportedBefore: Timestamp? = null, val isMuted: Boolean? = false, val assignedTo: Did? = null, val sortField: String? = "createdAt", val sortDirection: String? = "desc", val limit: Long? = 50, val cursor: String? = null)
Link copied to clipboard
data class QueryReportsResponse(val cursor: String? = null, val reports: List<ReportView>)
Link copied to clipboard

Filter by report status.

Link copied to clipboard

If specified, reports of the given type (account or record) will be returned.

Link copied to clipboard
data class QueueActivity(val previousStatus: QueueActivityPreviousStatus? = null)

Activity recording a report being routed to a queue.

Link copied to clipboard

The report's status before this activity. Populated automatically from the report row; not required in input.

Link copied to clipboard
data class ReassignQueueRequest(val reportId: Long, val queueId: Long, val comment: String? = null)
Link copied to clipboard
Link copied to clipboard
data class RefreshStatsRequest(val startDate: String, val endDate: String, val queueIds: List<Long>? = null)
Link copied to clipboard
Link copied to clipboard
data class ReopenActivity(val previousStatus: ReopenActivityPreviousStatus? = null)

Activity recording a closed report being reopened. Only valid when the report is in 'closed' status.

Link copied to clipboard

The report's status before this activity. Populated automatically from the report row; not required in input.

Link copied to clipboard
data class ReportActivityView(val id: Long, val reportId: Long, val activity: ReportActivityViewActivityUnion, val internalNote: String? = null, val publicNote: String? = null, val meta: JsonContent? = null, val isAutomated: Boolean, val createdBy: Did, val moderator: Member? = null, val createdAt: Timestamp)

A single activity entry on a report.

Link copied to clipboard
data class ReportAssignment(val did: Did, val moderator: Member? = null, val assignedAt: Timestamp)

Information about the moderator currently assigned to a report.

Link copied to clipboard
data class ReportView(val id: Long, val eventId: Long, val status: ReportViewStatus, val subject: SubjectView, val reportType: Token, val reportedBy: Did, val reporter: SubjectView, val comment: String? = null, val createdAt: Timestamp, val updatedAt: Timestamp? = null, val queuedAt: Timestamp? = null, val actionEventIds: List<Long>? = null, val actions: List<ModEventView>? = null, val actionNote: String? = null, val subjectStatus: SubjectStatusView? = null, val relatedReportCount: Long? = null, val assignment: ReportAssignment? = null, val queue: QueueView? = null, val isMuted: Boolean? = null)
Link copied to clipboard

Current status of the report

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
data class UnassignModeratorRequest(val reportId: Long)