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 CloseReportsRequest(val subject: Uri, val includeAllOwned: Boolean? = false, val reportTypes: List<String>? = null, val excludedReportTypes: List<String>? = null, val actionEventId: Long? = null, val internalNote: String? = null, val isAutomated: Boolean? = false, val meta: JsonContent? = null)
Link copied to clipboard
data class CloseReportsResponse(val closedCount: Long, val reportIds: List<Long>)
Link copied to clipboard
data class CreateActivityRequest(val reportId: Long? = null, val eventId: Long? = null, val activity: CreateActivityRequestActivityUnion, val internalNote: String? = null, val publicNote: String? = null, val isAutomated: Boolean? = false, val meta: JsonContent? = null)
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 closureTargetOverdueCount: Long? = null, val closureTargetMetCount: Long? = null, val closureTargetMissedCount: Long? = null, val closureTargetMetRate: Long? = null, val closedCount: Long? = null, val actionedCount: Long? = null, val acknowledgedCount: Long? = null, val escalatedCount: Long? = null, val inboundCount: Long? = null, val labelActionCount: Long? = null, val tagActionCount: Long? = null, val takedownActionCount: Long? = null, val ahtDurationSec: Long? = null, val ahtSampleCount: Long? = null, val resolutionDurationSec: Long? = null, val resolutionSampleCount: Long? = null, val actionRate: Long? = null, val avgHandlingTimeSec: Long? = null, val avgResolutionTimeSec: 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 closureTargetOverdueCount: Long? = null, val closureTargetMetCount: Long? = null, val closureTargetMissedCount: Long? = null, val closureTargetMetRate: Long? = null, val closedCount: Long? = null, val actionedCount: Long? = null, val acknowledgedCount: Long? = null, val escalatedCount: Long? = null, val inboundCount: Long? = null, val labelActionCount: Long? = null, val tagActionCount: Long? = null, val takedownActionCount: Long? = null, val ahtDurationSec: Long? = null, val ahtSampleCount: Long? = null, val resolutionDurationSec: Long? = null, val resolutionSampleCount: Long? = null, val actionRate: Long? = null, val avgHandlingTimeSec: Long? = null, val avgResolutionTimeSec: 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 QueryActivitiesQueryParams(val activityTypes: List<String>? = null, val createdAfter: Timestamp? = null, val createdBefore: Timestamp? = null, val sortDirection: String? = "desc", val limit: Long? = 50, val cursor: String? = null)
Link copied to clipboard
data class QueryActivitiesResponse(val activities: List<ReportActivityView>, val cursor: String? = null)
Link copied to clipboard
data class QueryModeratorActivityActivityRow(val source: String, val id: Long, val createdAt: Timestamp, val createdBy: Did, val type: String, val subject: String? = null, val reportId: Long? = null, val actionEventId: Long? = null, val event: ModEventView? = null, val activity: ReportActivityView? = null)
Link copied to clipboard
data class QueryModeratorActivityQueryParams(val moderator: Did, val createdAfter: Timestamp, val createdBefore: Timestamp, val types: List<String>? = null, val limit: Long? = 50, val cursor: String? = null)
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 subject type 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 report: ReportView? = 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 priorityLevel: String? = null, val priorityScore: Long? = null, val priorityTargetMinutes: Long? = null, val resolutionTimeSec: Long? = null, val priorityTargetMet: Boolean? = null, 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, val isAutomated: Boolean? = false)
Link copied to clipboard

Current status of the report

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
data class UnassignmentActivity(val previousStatus: UnassignmentActivityPreviousStatus? = null, val nextStatus: UnassignmentActivityNextStatus? = null)

Activity recording a moderator being unassigned from a report.

Link copied to clipboard

The report's status immediately after the moderator was unassigned. May equal previousStatus if unassignment did not change the report's status, or be absent on older activities.

Link copied to clipboard

The report's status immediately before the moderator was unassigned. May be absent on older activities.

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