Package-level declarations

Types

Link copied to clipboard
data class AccountPreview(val handle: Handle? = null, val profile: JsonContent? = null)

Current account information, when available; this is not a snapshot of the account at the time of the action.

Link copied to clipboard
data class ActionView(val id: Long, val type: String, val scope: ActionViewScope? = null, val createdAt: Timestamp, val reversedAt: Timestamp? = null, val expiresAt: Timestamp? = null, val labels: List<String>? = null, val policies: List<PolicyView>? = null)

A single moderation action taken against a subject.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
data class AppealView(val state: AppealViewState, val appealedAt: Timestamp? = null, val resolvedAt: Timestamp? = null, val outcome: AppealViewOutcome? = null, val appealableUntil: Timestamp? = null)

The state of the viewer's appeal against the actions on a subject.

Link copied to clipboard

Decision on a resolved appeal.

Link copied to clipboard
Link copied to clipboard
data class EnforcementView(val state: EnforcementViewState, val scope: EnforcementViewScope? = null, val expiresAt: Timestamp? = null, val labels: List<String>? = null)

The current enforcement state of a subject.

Link copied to clipboard
data class GetAccountStatusQueryParams(val did: Did? = null)
Link copied to clipboard
data class GetAccountStatusResponse(val src: Did, val standing: GetAccountStatusStanding, val hasActiveStrikes: Boolean? = null, val enforcement: EnforcementView? = null, val updatedAt: Timestamp, val expiresAt: Timestamp? = null)
Link copied to clipboard
data class GetActionedSubjectQueryParams(val did: Did? = null, val subject: Uri, val limit: Long? = 50, val cursor: String? = null)
Link copied to clipboard
data class GetReportQueryParams(val did: Did? = null, val id: Long)
Link copied to clipboard
data class GetReportReportView(val src: Did, val id: Long, val reasonType: String, val reason: String? = null, val subject: GetReportReportViewSubjectUnion, val record: JsonContent? = null, val status: GetReportReportViewStatus, val createdAt: Timestamp, val updatedAt: Timestamp)
Link copied to clipboard
data class GetReportResolutionView(val outcome: GetReportResolutionViewOutcome, val actionTaken: String? = null, val scope: GetReportResolutionViewScope? = null, val resolvedAt: Timestamp)
Link copied to clipboard
data class GetReportResponse(val report: GetReportReportView, val resolution: GetReportResolutionView? = null)
Link copied to clipboard
data class GetUnreadCountQueryParams(val section: GetUnreadCountSection? = null, val did: Did? = null)
Link copied to clipboard
Link copied to clipboard
data class GetUnreadCountUnreadCounts(val total: Long, val reports: Long? = null, val subjects: Long? = null, val accountStatus: Long? = null)
Link copied to clipboard
data class ListActionedSubjectsQueryParams(val did: Did? = null, val filter: String? = "all", val sortField: String? = "updatedAt", val sortDirection: String? = "desc", val limit: Long? = 50, val cursor: String? = null)
Link copied to clipboard
data class ListActionedSubjectsResponse(val cursor: String? = null, val subjects: List<SubjectView>)
Link copied to clipboard
data class ListNotificationsQueryParams(val section: ListNotificationsSection? = null, val reasons: List<ListNotificationsReasons>? = null, val unreadOnly: Boolean? = false, val limit: Long? = 50, val cursor: String? = null, val did: Did? = null)
Link copied to clipboard
data class ListNotificationsResponse(val cursor: String? = null, val notifications: List<Notification>)
Link copied to clipboard
data class ListReportsQueryParams(val did: Did? = null, val filter: String? = "all", val sortField: String? = "updatedAt", val sortDirection: String? = "desc", val limit: Long? = 50, val cursor: String? = null)
Link copied to clipboard
data class ListReportsReportView(val src: Did, val id: Long, val isRead: Boolean, val reasonType: String, val reason: String? = null, val lastActionTaken: String? = null, val scope: ListReportsReportViewScope? = null, val subject: ListReportsReportViewSubjectUnion, val status: ListReportsReportViewStatus, val createdAt: Timestamp, val updatedAt: Timestamp)
Link copied to clipboard
data class ListReportsResponse(val cursor: String? = null, val reports: List<ListReportsReportView>)
Link copied to clipboard
data class Notification(val id: Long, val reason: NotificationReason, val target: NotificationTargetUnion, val isRead: Boolean, val createdAt: Timestamp)
Link copied to clipboard
data class NotificationPreferences(val reports: Boolean, val account: Boolean, val labels: Boolean)

Push notification preferences by moderation notification category. These preferences do not hide in-app inbox activity. Each category defaults to enabled.

Link copied to clipboard
Link copied to clipboard
data class PolicyView(val key: String, val displayName: String, val link: Uri)
Link copied to clipboard
data class PutNotificationPreferencesRequest(val reports: Boolean? = null, val account: Boolean? = null, val labels: Boolean? = null)
Link copied to clipboard
data class ReportRef(val reportId: Long, val subject: ReportRefSubjectUnion? = null, val status: ReportRefStatus? = null)

Reference to a report by its report table ID, as used by getReport and Ozone's report detail page.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
data class ReportsSummary(val reasonTypes: List<String>, val firstReportedOn: Timestamp, val lastReportedOn: Timestamp)

Aggregate view of reports filed against this subject. Deliberately carries no report IDs, no count, and no reporter identities.

Link copied to clipboard
data class StandingRef(val standing: StandingRefStanding, val previousStanding: StandingRefPreviousStanding? = null)
Link copied to clipboard
data class SubjectRef(val appealOutcome: SubjectRefAppealOutcome? = null, val subject: SubjectRefSubjectUnion, val actionType: String? = null, val actionId: Long? = null)
Link copied to clipboard

Decision captured when an appealResolved notification was created. Omitted when the outcome is unknown.

Link copied to clipboard
Link copied to clipboard
data class SubjectView(val src: Did, val subject: SubjectViewSubjectUnion, val enforcement: EnforcementView, val appeal: AppealView? = null, val availableActions: List<SubjectViewAvailableActions>? = null, val latestAction: ActionView? = null, val actionCount: Long? = null, val createdAt: Timestamp, val updatedAt: Timestamp, val isRead: Boolean)

A subject belonging to the viewer that has moderation actions against it.

Link copied to clipboard
data class SubjectViewDetail(val src: Did, val isRead: Boolean, val subject: SubjectViewDetailSubjectUnion, val record: JsonContent? = null, val account: AccountPreview? = null, val enforcement: EnforcementView, val appeal: AppealView? = null, val availableActions: List<SubjectViewDetailAvailableActions>? = null, val actions: List<ActionView>, val cursor: String? = null, val reports: ReportsSummary? = null, val createdAt: Timestamp, val updatedAt: Timestamp)

A subject with a page of its action history and an aggregate report summary. Follow cursor to retrieve older actions; enforcement and appeal describe the current subject state on every page.

Link copied to clipboard
Link copied to clipboard
data class UpdateSeenRequest(val sections: List<UpdateSeenSections>, val seenAt: Timestamp? = null)
Link copied to clipboard
data class UpdateSeenResponse(val seenAt: Timestamp)