# tools.ozone.moderation.defs

- Kind: defs
- Authority: moderation.ozone.tools
- Lexicon: 1
- Published by [ozone-lexicons.bsky.social](https://lexicon.garden/identity/did:plc:33dt5kftu3jq2h5h4jjlqezt), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:33dt5kftu3jq2h5h4jjlqezt/tools.ozone.moderation.defs)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:33dt5kftu3jq2h5h4jjlqezt/tools.ozone.moderation.defs/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:33dt5kftu3jq2h5h4jjlqezt/tools.ozone.moderation.defs/analytics)

## #accountEvent (`tools.ozone.moderation.defs#accountEvent`)

Type: object

Logs account status related events on a repo subject. Normally captured by automod from the firehose and emitted to ozone for historical tracking.

### Properties

- `active` (boolean, required): Indicates that the account has a repository which can be fetched from the host that emitted this event.
- `comment` (string)
- `status` (string)
  - Constraints: knownValues: unknown | deactivated | deleted | takendown | suspended | tombstoned
- `timestamp` (string · datetime, required)

## #accountHosting (`tools.ozone.moderation.defs#accountHosting`)

Type: object

### Properties

- `createdAt` (string · datetime)
- `deactivatedAt` (string · datetime)
- `deletedAt` (string · datetime)
- `reactivatedAt` (string · datetime)
- `status` (string, required)
  - Constraints: knownValues: takendown | suspended | deleted | deactivated | unknown
- `updatedAt` (string · datetime)

## #accountStats (`tools.ozone.moderation.defs#accountStats`)

Type: object

Statistics about a particular account subject

### Properties

- `appealCount` (integer): Total number of appeals against a moderation action on the account
- `escalateCount` (integer): Number of times the account was escalated
- `reportCount` (integer): Total number of reports on the account
- `suspendCount` (integer): Number of times the account was suspended
- `takedownCount` (integer): Number of times the account was taken down

## #accountStrike (`tools.ozone.moderation.defs#accountStrike`)

Type: object

Strike information for an account

### Properties

- `activeStrikeCount` (integer): Current number of active strikes (excluding expired strikes)
- `firstStrikeAt` (string · datetime): Timestamp of the first strike received
- `lastStrikeAt` (string · datetime): Timestamp of the most recent strike received
- `totalStrikeCount` (integer): Total number of strikes ever received (including expired strikes)

## #ageAssuranceEvent (`tools.ozone.moderation.defs#ageAssuranceEvent`)

Type: object

Age assurance info coming directly from users. Only works on DID subjects.

### Properties

- `access` (ref)
  - Reference: `app.bsky.ageassurance.defs#access`
- `attemptId` (string, required): The unique identifier for this instance of the age assurance flow, in UUID format.
- `completeIp` (string): The IP address used when completing the AA flow.
- `completeUa` (string): The user agent used when completing the AA flow.
- `countryCode` (string): The ISO 3166-1 alpha-2 country code provided when beginning the Age Assurance flow.
- `createdAt` (string · datetime, required): The date and time of this write operation.
- `initIp` (string): The IP address used when initiating the AA flow.
- `initUa` (string): The user agent used when initiating the AA flow.
- `regionCode` (string): The ISO 3166-2 region code provided when beginning the Age Assurance flow.
- `status` (string, required): The status of the Age Assurance process.
  - Constraints: knownValues: unknown | pending | assured

## #ageAssuranceOverrideEvent (`tools.ozone.moderation.defs#ageAssuranceOverrideEvent`)

Type: object

Age assurance status override by moderators. Only works on DID subjects.

### Properties

- `access` (ref)
  - Reference: `app.bsky.ageassurance.defs#access`
- `comment` (string, required): Comment describing the reason for the override.
  - Constraints: minLength: 1
- `status` (string, required): The status to be set for the user decided by a moderator, overriding whatever value the user had previously. Use reset to default to original state.
  - Constraints: knownValues: assured | reset | blocked

## #ageAssurancePurgeEvent (`tools.ozone.moderation.defs#ageAssurancePurgeEvent`)

Type: object

Purges all age assurance events for the subject. Only works on DID subjects. Moderator-only.

### Properties

- `comment` (string, required): Comment describing the reason for the purge.
  - Constraints: minLength: 1

## #blobView (`tools.ozone.moderation.defs#blobView`)

Type: object

### Properties

- `cid` (string · cid, required)
- `createdAt` (string · datetime, required)
- `details` (union)
  - One of: `#imageDetails`, `#videoDetails`
- `mimeType` (string, required)
- `moderation` (ref)
  - Reference: `#moderation`
- `size` (integer, required)

## #cancelScheduledTakedownEvent (`tools.ozone.moderation.defs#cancelScheduledTakedownEvent`)

Type: object

Logs cancellation of a scheduled takedown action for an account.

### Properties

- `comment` (string)

## #convoView (`tools.ozone.moderation.defs#convoView`)

Type: object

### Properties

- `convoId` (string, required)
- `did` (string · did, required)

## #identityEvent (`tools.ozone.moderation.defs#identityEvent`)

Type: object

Logs identity related events on a repo subject. Normally captured by automod from the firehose and emitted to ozone for historical tracking.

### Properties

- `comment` (string)
- `handle` (string · handle)
- `pdsHost` (string · uri)
- `timestamp` (string · datetime, required)
- `tombstone` (boolean)

## #imageDetails (`tools.ozone.moderation.defs#imageDetails`)

Type: object

### Properties

- `height` (integer, required)
- `width` (integer, required)

## #modEventAcknowledge (`tools.ozone.moderation.defs#modEventAcknowledge`)

Type: object

### Properties

- `acknowledgeAccountSubjects` (boolean): If true, all other reports on content authored by this account will be resolved (acknowledged).
- `comment` (string)

## #modEventComment (`tools.ozone.moderation.defs#modEventComment`)

Type: object

Add a comment to a subject. An empty comment will clear any previously set sticky comment.

### Properties

- `comment` (string)
- `sticky` (boolean): Make the comment persistent on the subject

## #modEventDivert (`tools.ozone.moderation.defs#modEventDivert`)

Type: object

Divert a record's blobs to a 3rd party service for further scanning/tagging

### Properties

- `comment` (string)

## #modEventEmail (`tools.ozone.moderation.defs#modEventEmail`)

Type: object

Keep a log of outgoing email to a user

### Properties

- `comment` (string): Additional comment about the outgoing comm.
- `content` (string): The content of the email sent to the user.
- `isDelivered` (boolean): Indicates whether the email was successfully delivered to the user's inbox.
- `policies` (array): Names/Keywords of the policies that necessitated the email.
  - Constraints: maxLength: 5
  - `items` (string)
- `severityLevel` (string): Severity level of the violation. Normally 'sev-1' that adds strike on repeat offense
- `strikeCount` (integer): Number of strikes to assign to the user for this violation. Normally 0 as an indicator of a warning and only added as a strike on a repeat offense.
- `strikeExpiresAt` (string · datetime): When the strike should expire. If not provided, the strike never expires.
- `subjectLine` (string, required): The subject line of the email sent to the user.

## #modEventEscalate (`tools.ozone.moderation.defs#modEventEscalate`)

Type: object

### Properties

- `comment` (string)

## #modEventLabel (`tools.ozone.moderation.defs#modEventLabel`)

Type: object

Apply/Negate labels on a subject

### Properties

- `comment` (string)
- `createLabelVals` (array, required)
  - `items` (string)
- `durationInHours` (integer): Indicates how long the label will remain on the subject. Only applies on labels that are being added.
- `negateLabelVals` (array, required)
  - `items` (string)

## #modEventMute (`tools.ozone.moderation.defs#modEventMute`)

Type: object

Mute incoming reports on a subject

### Properties

- `comment` (string)
- `durationInHours` (integer, required): Indicates how long the subject should remain muted.

## #modEventMuteReporter (`tools.ozone.moderation.defs#modEventMuteReporter`)

Type: object

Mute incoming reports from an account

### Properties

- `comment` (string)
- `durationInHours` (integer): Indicates how long the account should remain muted. Falsy value here means a permanent mute.

## #modEventPriorityScore (`tools.ozone.moderation.defs#modEventPriorityScore`)

Type: object

Set priority score of the subject. Higher score means higher priority.

### Properties

- `comment` (string)
- `score` (integer, required)
  - Constraints: minimum: 0, maximum: 100

## #modEventReport (`tools.ozone.moderation.defs#modEventReport`)

Type: object

Report a subject

### Properties

- `appealActionId` (integer)
- `appealActionType` (string): Action reference type recorded when this appeal was submitted.
- `appealLabel` (string)
- `appealSubmittedBy` (string · did): Moderator who submitted this appeal on behalf of the affected account. Returned by moderator event APIs.
- `comment` (string)
- `isReporterMuted` (boolean): Set to true if the reporter was muted from reporting at the time of the event. These reports won't impact the reviewState of the subject.
- `reportType` (ref, required)
  - Reference: `com.atproto.moderation.defs#reasonType`

## #modEventResolveAppeal (`tools.ozone.moderation.defs#modEventResolveAppeal`)

Type: object

Resolve appeal on a subject

### Properties

- `comment` (string): Describe resolution.

## #modEventReverseTakedown (`tools.ozone.moderation.defs#modEventReverseTakedown`)

Type: object

Revert take down action on a subject

### Properties

- `comment` (string): Describe reasoning behind the reversal.
- `policies` (array): Names/Keywords of the policy infraction for which takedown is being reversed.
  - Constraints: maxLength: 5
  - `items` (string)
- `severityLevel` (string): Severity level of the violation. Usually set from the last policy infraction's severity.
- `strikeCount` (integer): Number of strikes to subtract from the user's strike count. Usually set from the last policy infraction's severity.

## #modEventTag (`tools.ozone.moderation.defs#modEventTag`)

Type: object

Add/Remove a tag on a subject

### Properties

- `add` (array, required): Tags to be added to the subject. If already exists, won't be duplicated.
  - `items` (string)
- `comment` (string): Additional comment about added/removed tags.
- `durationInHours` (integer): Indicates how long the tags being added should remain before automatically being removed. Only applies to tags being added.
- `remove` (array, required): Tags to be removed to the subject. Ignores a tag If it doesn't exist, won't be duplicated.
  - `items` (string)

## #modEventTakedown (`tools.ozone.moderation.defs#modEventTakedown`)

Type: object

Take down a subject permanently or temporarily

### Properties

- `acknowledgeAccountSubjects` (boolean): If true, all other reports on content authored by this account will be resolved (acknowledged).
- `comment` (string)
- `durationInHours` (integer): Indicates how long the takedown should be in effect before automatically expiring.
- `policies` (array): Names/Keywords of the policies that drove the decision.
  - Constraints: maxLength: 5
  - `items` (string)
- `severityLevel` (string): Severity level of the violation (e.g., 'sev-0', 'sev-1', 'sev-2', etc.).
- `strikeCount` (integer): Number of strikes to assign to the user for this violation.
- `strikeExpiresAt` (string · datetime): When the strike should expire. If not provided, the strike never expires.
- `targetServices` (array): List of services where the takedown should be applied. If empty or not provided, takedown is applied on all configured services.
  - `items` (string)
    - Constraints: knownValues: appview | pds

## #modEventUnmute (`tools.ozone.moderation.defs#modEventUnmute`)

Type: object

Unmute action on a subject

### Properties

- `comment` (string): Describe reasoning behind the reversal.

## #modEventUnmuteReporter (`tools.ozone.moderation.defs#modEventUnmuteReporter`)

Type: object

Unmute incoming reports from an account

### Properties

- `comment` (string): Describe reasoning behind the reversal.

## #modEventView (`tools.ozone.moderation.defs#modEventView`)

Type: object

### Properties

- `createdAt` (string · datetime, required)
- `createdBy` (string · did, required)
- `creatorHandle` (string)
- `event` (union, required)
  - One of: `#modEventTakedown`, `#modEventReverseTakedown`, `#modEventComment`, `#modEventReport`, `#modEventLabel`, `#modEventAcknowledge`, `#modEventEscalate`, `#modEventMute`, `#modEventUnmute`, `#modEventMuteReporter`, `#modEventUnmuteReporter`, `#modEventEmail`, `#modEventResolveAppeal`, `#modEventDivert`, `#modEventTag`, `#accountEvent`, `#identityEvent`, `#recordEvent`, `#modEventPriorityScore`, `#ageAssuranceEvent`, `#ageAssuranceOverrideEvent`, `#ageAssurancePurgeEvent`, `#revokeAccountCredentialsEvent`, `#scheduleTakedownEvent`, `#cancelScheduledTakedownEvent`
- `id` (integer, required)
- `modTool` (ref)
  - Reference: `#modTool`
- `subject` (union, required)
  - One of: `com.atproto.admin.defs#repoRef`, `com.atproto.repo.strongRef`, `chat.bsky.convo.defs#messageRef`, `chat.bsky.convo.defs#convoRef`
- `subjectBlobCids` (array, required)
  - `items` (string)
- `subjectHandle` (string)

## #modEventViewDetail (`tools.ozone.moderation.defs#modEventViewDetail`)

Type: object

### Properties

- `createdAt` (string · datetime, required)
- `createdBy` (string · did, required)
- `event` (union, required)
  - One of: `#modEventTakedown`, `#modEventReverseTakedown`, `#modEventComment`, `#modEventReport`, `#modEventLabel`, `#modEventAcknowledge`, `#modEventEscalate`, `#modEventMute`, `#modEventUnmute`, `#modEventMuteReporter`, `#modEventUnmuteReporter`, `#modEventEmail`, `#modEventResolveAppeal`, `#modEventDivert`, `#modEventTag`, `#accountEvent`, `#identityEvent`, `#recordEvent`, `#modEventPriorityScore`, `#ageAssuranceEvent`, `#ageAssuranceOverrideEvent`, `#ageAssurancePurgeEvent`, `#revokeAccountCredentialsEvent`, `#scheduleTakedownEvent`, `#cancelScheduledTakedownEvent`
- `id` (integer, required)
- `modTool` (ref)
  - Reference: `#modTool`
- `subject` (union, required)
  - One of: `#repoView`, `#repoViewNotFound`, `#recordView`, `#recordViewNotFound`, `#convoView`
- `subjectBlobs` (array, required)
  - `items` (ref)
    - Reference: `#blobView`

## #modTool (`tools.ozone.moderation.defs#modTool`)

Type: object

Moderation tool information for tracing the source of the action

### Properties

- `meta` (unknown): Additional arbitrary metadata about the source
- `name` (string, required): Name/identifier of the source (e.g., 'automod', 'ozone/workspace')

## #moderation (`tools.ozone.moderation.defs#moderation`)

Type: object

### Properties

- `subjectStatus` (ref)
  - Reference: `#subjectStatusView`

## #moderationDetail (`tools.ozone.moderation.defs#moderationDetail`)

Type: object

### Properties

- `subjectStatus` (ref)
  - Reference: `#subjectStatusView`

## #recordEvent (`tools.ozone.moderation.defs#recordEvent`)

Type: object

Logs lifecycle event on a record subject. Normally captured by automod from the firehose and emitted to ozone for historical tracking.

### Properties

- `cid` (string · cid)
- `comment` (string)
- `op` (string, required)
  - Constraints: knownValues: create | update | delete
- `timestamp` (string · datetime, required)

## #recordHosting (`tools.ozone.moderation.defs#recordHosting`)

Type: object

### Properties

- `createdAt` (string · datetime)
- `deletedAt` (string · datetime)
- `status` (string, required)
  - Constraints: knownValues: deleted | unknown
- `updatedAt` (string · datetime)

## #recordView (`tools.ozone.moderation.defs#recordView`)

Type: object

### Properties

- `blobCids` (array, required)
  - `items` (string · cid)
- `cid` (string · cid, required)
- `indexedAt` (string · datetime, required)
- `moderation` (ref, required)
  - Reference: `#moderation`
- `repo` (ref, required)
  - Reference: `#repoView`
- `uri` (string · at-uri, required)
- `value` (unknown, required)

## #recordViewDetail (`tools.ozone.moderation.defs#recordViewDetail`)

Type: object

### Properties

- `blobs` (array, required)
  - `items` (ref)
    - Reference: `#blobView`
- `cid` (string · cid, required)
- `indexedAt` (string · datetime, required)
- `labels` (array)
  - `items` (ref)
    - Reference: `com.atproto.label.defs#label`
- `moderation` (ref, required)
  - Reference: `#moderationDetail`
- `repo` (ref, required)
  - Reference: `#repoView`
- `uri` (string · at-uri, required)
- `value` (unknown, required)

## #recordViewNotFound (`tools.ozone.moderation.defs#recordViewNotFound`)

Type: object

### Properties

- `uri` (string · at-uri, required)

## #recordsStats (`tools.ozone.moderation.defs#recordsStats`)

Type: object

Statistics about a set of record subject items

### Properties

- `appealedCount` (integer): Number of items that were appealed at least once
- `escalatedCount` (integer): Number of items that were escalated at least once
- `pendingCount` (integer): Number of item currently in "reviewOpen" or "reviewEscalated" state
- `processedCount` (integer): Number of item currently in "reviewNone" or "reviewClosed" state
- `reportedCount` (integer): Number of items that were reported at least once
- `subjectCount` (integer): Total number of item in the set
- `takendownCount` (integer): Number of item currently taken down
- `totalReports` (integer): Cumulative sum of the number of reports on the items in the set

## #repoView (`tools.ozone.moderation.defs#repoView`)

Type: object

### Properties

- `deactivatedAt` (string · datetime)
- `did` (string · did, required)
- `email` (string)
- `handle` (string · handle, required)
- `indexedAt` (string · datetime, required)
- `inviteNote` (string)
- `invitedBy` (ref)
  - Reference: `com.atproto.server.defs#inviteCode`
- `invitesDisabled` (boolean)
- `moderation` (ref, required)
  - Reference: `#moderation`
- `relatedRecords` (array, required)
  - `items` (unknown)
- `threatSignatures` (array)
  - `items` (ref)
    - Reference: `com.atproto.admin.defs#threatSignature`

## #repoViewDetail (`tools.ozone.moderation.defs#repoViewDetail`)

Type: object

### Properties

- `deactivatedAt` (string · datetime)
- `did` (string · did, required)
- `email` (string)
- `emailConfirmedAt` (string · datetime)
- `handle` (string · handle, required)
- `indexedAt` (string · datetime, required)
- `inviteNote` (string)
- `invitedBy` (ref)
  - Reference: `com.atproto.server.defs#inviteCode`
- `invites` (array)
  - `items` (ref)
    - Reference: `com.atproto.server.defs#inviteCode`
- `invitesDisabled` (boolean)
- `labels` (array)
  - `items` (ref)
    - Reference: `com.atproto.label.defs#label`
- `moderation` (ref, required)
  - Reference: `#moderationDetail`
- `relatedRecords` (array, required)
  - `items` (unknown)
- `threatSignatures` (array)
  - `items` (ref)
    - Reference: `com.atproto.admin.defs#threatSignature`

## #repoViewNotFound (`tools.ozone.moderation.defs#repoViewNotFound`)

Type: object

### Properties

- `did` (string · did, required)

## #reporterStats (`tools.ozone.moderation.defs#reporterStats`)

Type: object

### Properties

- `accountReportCount` (integer, required): The total number of reports made by the user on accounts.
- `did` (string · did, required)
- `labeledAccountCount` (integer, required): The total number of accounts labeled as a result of the user's reports.
- `labeledRecordCount` (integer, required): The total number of records labeled as a result of the user's reports.
- `recordReportCount` (integer, required): The total number of reports made by the user on records.
- `reportedAccountCount` (integer, required): The total number of accounts reported by the user.
- `reportedRecordCount` (integer, required): The total number of records reported by the user.
- `takendownAccountCount` (integer, required): The total number of accounts taken down as a result of the user's reports.
- `takendownRecordCount` (integer, required): The total number of records taken down as a result of the user's reports.

## #reviewClosed (`tools.ozone.moderation.defs#reviewClosed`)

Type: token

Moderator review status of a subject: Closed. Indicates that the subject was already reviewed and resolved by a moderator

## #reviewEscalated (`tools.ozone.moderation.defs#reviewEscalated`)

Type: token

Moderator review status of a subject: Escalated. Indicates that the subject was escalated for review by a moderator

## #reviewNone (`tools.ozone.moderation.defs#reviewNone`)

Type: token

Moderator review status of a subject: Unnecessary. Indicates that the subject does not need a review at the moment but there is probably some moderation related metadata available for it

## #reviewOpen (`tools.ozone.moderation.defs#reviewOpen`)

Type: token

Moderator review status of a subject: Open. Indicates that the subject needs to be reviewed by a moderator

## #revokeAccountCredentialsEvent (`tools.ozone.moderation.defs#revokeAccountCredentialsEvent`)

Type: object

Account credentials revocation by moderators. Only works on DID subjects.

### Properties

- `comment` (string, required): Comment describing the reason for the revocation.
  - Constraints: minLength: 1

## #scheduleTakedownEvent (`tools.ozone.moderation.defs#scheduleTakedownEvent`)

Type: object

Logs a scheduled takedown action for an account.

### Properties

- `comment` (string)
- `executeAfter` (string · datetime)
- `executeAt` (string · datetime)
- `executeUntil` (string · datetime)

## #scheduledActionView (`tools.ozone.moderation.defs#scheduledActionView`)

Type: object

View of a scheduled moderation action

### Properties

- `action` (string, required): Type of action to be executed
  - Constraints: knownValues: takedown
- `createdAt` (string · datetime, required): When the scheduled action was created
- `createdBy` (string · did, required): DID of the user who created this scheduled action
- `did` (string · did, required): Subject DID for the action
- `eventData` (unknown): Serialized event object that will be propagated to the event when performed
- `executeAfter` (string · datetime): Earliest time to execute the action (for randomized scheduling)
- `executeAt` (string · datetime): Exact time to execute the action
- `executeUntil` (string · datetime): Latest time to execute the action (for randomized scheduling)
- `executionEventId` (integer): ID of the moderation event created when action was successfully executed
- `id` (integer, required): Auto-incrementing row ID
- `lastExecutedAt` (string · datetime): When the action was last attempted to be executed
- `lastFailureReason` (string): Reason for the last execution failure
- `randomizeExecution` (boolean): Whether execution time should be randomized within the specified range
- `status` (string, required): Current status of the scheduled action
  - Constraints: knownValues: pending | executed | cancelled | failed
- `updatedAt` (string · datetime): When the scheduled action was last updated

## #subjectReviewState (`tools.ozone.moderation.defs#subjectReviewState`)

Type: string

Constraints: knownValues: tools.ozone.moderation.defs#reviewOpen | tools.ozone.moderation.defs#reviewEscalated | tools.ozone.moderation.defs#reviewClosed | tools.ozone.moderation.defs#reviewNone

## #subjectStatusView (`tools.ozone.moderation.defs#subjectStatusView`)

Type: object

### Properties

- `accountStats` (ref): Statistics related to the account subject
  - Reference: `#accountStats`
- `accountStrike` (ref): Strike information for the account (account-level only)
  - Reference: `#accountStrike`
- `ageAssuranceState` (string): Current age assurance state of the subject.
  - Constraints: knownValues: pending | assured | unknown | reset | blocked
- `ageAssuranceUpdatedBy` (string): Whether or not the last successful update to age assurance was made by the user or admin.
  - Constraints: knownValues: admin | user
- `appealed` (boolean): True indicates that the a previously taken moderator action was appealed against, by the author of the content. False indicates last appeal was resolved by moderators.
- `comment` (string): Sticky comment on the subject.
- `createdAt` (string · datetime, required): Timestamp referencing the first moderation status impacting event was emitted on the subject
- `hosting` (union)
  - One of: `#accountHosting`, `#recordHosting`
- `id` (integer, required)
- `lastAppealedAt` (string · datetime): Timestamp referencing when the author of the subject appealed a moderation action
- `lastReportedAt` (string · datetime)
- `lastReviewedAt` (string · datetime)
- `lastReviewedBy` (string · did)
- `muteReportingUntil` (string · datetime)
- `muteUntil` (string · datetime)
- `priorityScore` (integer): Numeric value representing the level of priority. Higher score means higher priority.
  - Constraints: minimum: 0, maximum: 100
- `recordsStats` (ref): Statistics related to the record subjects authored by the subject's account
  - Reference: `#recordsStats`
- `reviewState` (ref, required)
  - Reference: `#subjectReviewState`
- `subject` (union, required)
  - One of: `com.atproto.admin.defs#repoRef`, `com.atproto.repo.strongRef`, `chat.bsky.convo.defs#messageRef`, `chat.bsky.convo.defs#convoRef`
- `subjectBlobCids` (array)
  - `items` (string · cid)
- `subjectRepoHandle` (string)
- `suspendUntil` (string · datetime)
- `tags` (array)
  - `items` (string)
- `takendown` (boolean)
- `updatedAt` (string · datetime, required): Timestamp referencing when the last update was made to the moderation status of the subject

## #subjectView (`tools.ozone.moderation.defs#subjectView`)

Type: object

Detailed view of a subject. For record subjects, the author's repo and profile will be returned.

### Properties

- `profile` (union)
  - One of: 
- `record` (ref)
  - Reference: `#recordViewDetail`
- `repo` (ref)
  - Reference: `#repoViewDetail`
- `status` (ref)
  - Reference: `#subjectStatusView`
- `subject` (string, required)
- `type` (ref, required)
  - Reference: `com.atproto.moderation.defs#subjectType`

## #timelineEventPlcCreate (`tools.ozone.moderation.defs#timelineEventPlcCreate`)

Type: token

Moderation event timeline event for a PLC create operation

## #timelineEventPlcOperation (`tools.ozone.moderation.defs#timelineEventPlcOperation`)

Type: token

Moderation event timeline event for generic PLC operation

## #timelineEventPlcTombstone (`tools.ozone.moderation.defs#timelineEventPlcTombstone`)

Type: token

Moderation event timeline event for a PLC tombstone operation

## #videoDetails (`tools.ozone.moderation.defs#videoDetails`)

Type: object

### Properties

- `height` (integer, required)
- `length` (integer, required)
- `width` (integer, required)

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "accountEvent": {
      "description": "Logs account status related events on a repo subject. Normally captured by automod from the firehose and emitted to ozone for historical tracking.",
      "properties": {
        "active": {
          "description": "Indicates that the account has a repository which can be fetched from the host that emitted this event.",
          "type": "boolean"
        },
        "comment": {
          "type": "string"
        },
        "status": {
          "knownValues": [
            "unknown",
            "deactivated",
            "deleted",
            "takendown",
            "suspended",
            "tombstoned"
          ],
          "type": "string"
        },
        "timestamp": {
          "format": "datetime",
          "type": "string"
        }
      },
      "required": [
        "timestamp",
        "active"
      ],
      "type": "object"
    },
    "accountHosting": {
      "properties": {
        "createdAt": {
          "format": "datetime",
          "type": "string"
        },
        "deactivatedAt": {
          "format": "datetime",
          "type": "string"
        },
        "deletedAt": {
          "format": "datetime",
          "type": "string"
        },
        "reactivatedAt": {
          "format": "datetime",
          "type": "string"
        },
        "status": {
          "knownValues": [
            "takendown",
            "suspended",
            "deleted",
            "deactivated",
            "unknown"
          ],
          "type": "string"
        },
        "updatedAt": {
          "format": "datetime",
          "type": "string"
        }
      },
      "required": [
        "status"
      ],
      "type": "object"
    },
    "accountStats": {
      "description": "Statistics about a particular account subject",
      "properties": {
        "appealCount": {
          "description": "Total number of appeals against a moderation action on the account",
          "type": "integer"
        },
        "escalateCount": {
          "description": "Number of times the account was escalated",
          "type": "integer"
        },
        "reportCount": {
          "description": "Total number of reports on the account",
          "type": "integer"
        },
        "suspendCount": {
          "description": "Number of times the account was suspended",
          "type": "integer"
        },
        "takedownCount": {
          "description": "Number of times the account was taken down",
          "type": "integer"
        }
      },
      "type": "object"
    },
    "accountStrike": {
      "description": "Strike information for an account",
      "properties": {
        "activeStrikeCount": {
          "description": "Current number of active strikes (excluding expired strikes)",
          "type": "integer"
        },
        "firstStrikeAt": {
          "description": "Timestamp of the first strike received",
          "format": "datetime",
          "type": "string"
        },
        "lastStrikeAt": {
          "description": "Timestamp of the most recent strike received",
          "format": "datetime",
          "type": "string"
        },
        "totalStrikeCount": {
          "description": "Total number of strikes ever received (including expired strikes)",
          "type": "integer"
        }
      },
      "type": "object"
    },
    "ageAssuranceEvent": {
      "description": "Age assurance info coming directly from users. Only works on DID subjects.",
      "properties": {
        "access": {
          "ref": "app.bsky.ageassurance.defs#access",
          "type": "ref"
        },
        "attemptId": {
          "description": "The unique identifier for this instance of the age assurance flow, in UUID format.",
          "type": "string"
        },
        "completeIp": {
          "description": "The IP address used when completing the AA flow.",
          "type": "string"
        },
        "completeUa": {
          "description": "The user agent used when completing the AA flow.",
          "type": "string"
        },
        "countryCode": {
          "description": "The ISO 3166-1 alpha-2 country code provided when beginning the Age Assurance flow.",
          "type": "string"
        },
        "createdAt": {
          "description": "The date and time of this write operation.",
          "format": "datetime",
          "type": "string"
        },
        "initIp": {
          "description": "The IP address used when initiating the AA flow.",
          "type": "string"
        },
        "initUa": {
          "description": "The user agent used when initiating the AA flow.",
          "type": "string"
        },
        "regionCode": {
          "description": "The ISO 3166-2 region code provided when beginning the Age Assurance flow.",
          "type": "string"
        },
        "status": {
          "description": "The status of the Age Assurance process.",
          "knownValues": [
            "unknown",
            "pending",
            "assured"
          ],
          "type": "string"
        }
      },
      "required": [
        "createdAt",
        "status",
        "attemptId"
      ],
      "type": "object"
    },
    "ageAssuranceOverrideEvent": {
      "description": "Age assurance status override by moderators. Only works on DID subjects.",
      "properties": {
        "access": {
          "ref": "app.bsky.ageassurance.defs#access",
          "type": "ref"
        },
        "comment": {
          "description": "Comment describing the reason for the override.",
          "minLength": 1,
          "type": "string"
        },
        "status": {
          "description": "The status to be set for the user decided by a moderator, overriding whatever value the user had previously. Use reset to default to original state.",
          "knownValues": [
            "assured",
            "reset",
            "blocked"
          ],
          "type": "string"
        }
      },
      "required": [
        "comment",
        "status"
      ],
      "type": "object"
    },
    "ageAssurancePurgeEvent": {
      "description": "Purges all age assurance events for the subject. Only works on DID subjects. Moderator-only.",
      "properties": {
        "comment": {
          "description": "Comment describing the reason for the purge.",
          "minLength": 1,
          "type": "string"
        }
      },
      "required": [
        "comment"
      ],
      "type": "object"
    },
    "blobView": {
      "properties": {
        "cid": {
          "format": "cid",
          "type": "string"
        },
        "createdAt": {
          "format": "datetime",
          "type": "string"
        },
        "details": {
          "refs": [
            "#imageDetails",
            "#videoDetails"
          ],
          "type": "union"
        },
        "mimeType": {
          "type": "string"
        },
        "moderation": {
          "ref": "#moderation",
          "type": "ref"
        },
        "size": {
          "type": "integer"
        }
      },
      "required": [
        "cid",
        "mimeType",
        "size",
        "createdAt"
      ],
      "type": "object"
    },
    "cancelScheduledTakedownEvent": {
      "description": "Logs cancellation of a scheduled takedown action for an account.",
      "properties": {
        "comment": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "convoView": {
      "properties": {
        "convoId": {
          "type": "string"
        },
        "did": {
          "format": "did",
          "type": "string"
        }
      },
      "required": [
        "did",
        "convoId"
      ],
      "type": "object"
    },
    "identityEvent": {
      "description": "Logs identity related events on a repo subject. Normally captured by automod from the firehose and emitted to ozone for historical tracking.",
      "properties": {
        "comment": {
          "type": "string"
        },
        "handle": {
          "format": "handle",
          "type": "string"
        },
        "pdsHost": {
          "format": "uri",
          "type": "string"
        },
        "timestamp": {
          "format": "datetime",
          "type": "string"
        },
        "tombstone": {
          "type": "boolean"
        }
      },
      "required": [
        "timestamp"
      ],
      "type": "object"
    },
    "imageDetails": {
      "properties": {
        "height": {
          "type": "integer"
        },
        "width": {
          "type": "integer"
        }
      },
      "required": [
        "width",
        "height"
      ],
      "type": "object"
    },
    "modEventAcknowledge": {
      "properties": {
        "acknowledgeAccountSubjects": {
          "description": "If true, all other reports on content authored by this account will be resolved (acknowledged).",
          "type": "boolean"
        },
        "comment": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "modEventComment": {
      "description": "Add a comment to a subject. An empty comment will clear any previously set sticky comment.",
      "properties": {
        "comment": {
          "type": "string"
        },
        "sticky": {
          "description": "Make the comment persistent on the subject",
          "type": "boolean"
        }
      },
      "type": "object"
    },
    "modEventDivert": {
      "description": "Divert a record's blobs to a 3rd party service for further scanning/tagging",
      "properties": {
        "comment": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "modEventEmail": {
      "description": "Keep a log of outgoing email to a user",
      "properties": {
        "comment": {
          "description": "Additional comment about the outgoing comm.",
          "type": "string"
        },
        "content": {
          "description": "The content of the email sent to the user.",
          "type": "string"
        },
        "isDelivered": {
          "description": "Indicates whether the email was successfully delivered to the user's inbox.",
          "type": "boolean"
        },
        "policies": {
          "description": "Names/Keywords of the policies that necessitated the email.",
          "items": {
            "type": "string"
          },
          "maxLength": 5,
          "type": "array"
        },
        "severityLevel": {
          "description": "Severity level of the violation. Normally 'sev-1' that adds strike on repeat offense",
          "type": "string"
        },
        "strikeCount": {
          "description": "Number of strikes to assign to the user for this violation. Normally 0 as an indicator of a warning and only added as a strike on a repeat offense.",
          "type": "integer"
        },
        "strikeExpiresAt": {
          "description": "When the strike should expire. If not provided, the strike never expires.",
          "format": "datetime",
          "type": "string"
        },
        "subjectLine": {
          "description": "The subject line of the email sent to the user.",
          "type": "string"
        }
      },
      "required": [
        "subjectLine"
      ],
      "type": "object"
    },
    "modEventEscalate": {
      "properties": {
        "comment": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "modEventLabel": {
      "description": "Apply/Negate labels on a subject",
      "properties": {
        "comment": {
          "type": "string"
        },
        "createLabelVals": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "durationInHours": {
          "description": "Indicates how long the label will remain on the subject. Only applies on labels that are being added.",
          "type": "integer"
        },
        "negateLabelVals": {
          "items": {
            "type": "string"
          },
          "type": "array"
        }
      },
      "required": [
        "createLabelVals",
        "negateLabelVals"
      ],
      "type": "object"
    },
    "modEventMute": {
      "description": "Mute incoming reports on a subject",
      "properties": {
        "comment": {
          "type": "string"
        },
        "durationInHours": {
          "description": "Indicates how long the subject should remain muted.",
          "type": "integer"
        }
      },
      "required": [
        "durationInHours"
      ],
      "type": "object"
    },
    "modEventMuteReporter": {
      "description": "Mute incoming reports from an account",
      "properties": {
        "comment": {
          "type": "string"
        },
        "durationInHours": {
          "description": "Indicates how long the account should remain muted. Falsy value here means a permanent mute.",
          "type": "integer"
        }
      },
      "type": "object"
    },
    "modEventPriorityScore": {
      "description": "Set priority score of the subject. Higher score means higher priority.",
      "properties": {
        "comment": {
          "type": "string"
        },
        "score": {
          "maximum": 100,
          "minimum": 0,
          "type": "integer"
        }
      },
      "required": [
        "score"
      ],
      "type": "object"
    },
    "modEventReport": {
      "description": "Report a subject",
      "properties": {
        "appealActionId": {
          "type": "integer"
        },
        "appealActionType": {
          "description": "Action reference type recorded when this appeal was submitted.",
          "type": "string"
        },
        "appealLabel": {
          "type": "string"
        },
        "appealSubmittedBy": {
          "description": "Moderator who submitted this appeal on behalf of the affected account. Returned by moderator event APIs.",
          "format": "did",
          "type": "string"
        },
        "comment": {
          "type": "string"
        },
        "isReporterMuted": {
          "description": "Set to true if the reporter was muted from reporting at the time of the event. These reports won't impact the reviewState of the subject.",
          "type": "boolean"
        },
        "reportType": {
          "ref": "com.atproto.moderation.defs#reasonType",
          "type": "ref"
        }
      },
      "required": [
        "reportType"
      ],
      "type": "object"
    },
    "modEventResolveAppeal": {
      "description": "Resolve appeal on a subject",
      "properties": {
        "comment": {
          "description": "Describe resolution.",
          "type": "string"
        }
      },
      "type": "object"
    },
    "modEventReverseTakedown": {
      "description": "Revert take down action on a subject",
      "properties": {
        "comment": {
          "description": "Describe reasoning behind the reversal.",
          "type": "string"
        },
        "policies": {
          "description": "Names/Keywords of the policy infraction for which takedown is being reversed.",
          "items": {
            "type": "string"
          },
          "maxLength": 5,
          "type": "array"
        },
        "severityLevel": {
          "description": "Severity level of the violation. Usually set from the last policy infraction's severity.",
          "type": "string"
        },
        "strikeCount": {
          "description": "Number of strikes to subtract from the user's strike count. Usually set from the last policy infraction's severity.",
          "type": "integer"
        }
      },
      "type": "object"
    },
    "modEventTag": {
      "description": "Add/Remove a tag on a subject",
      "properties": {
        "add": {
          "description": "Tags to be added to the subject. If already exists, won't be duplicated.",
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "comment": {
          "description": "Additional comment about added/removed tags.",
          "type": "string"
        },
        "durationInHours": {
          "description": "Indicates how long the tags being added should remain before automatically being removed. Only applies to tags being added.",
          "type": "integer"
        },
        "remove": {
          "description": "Tags to be removed to the subject. Ignores a tag If it doesn't exist, won't be duplicated.",
          "items": {
            "type": "string"
          },
          "type": "array"
        }
      },
      "required": [
        "add",
        "remove"
      ],
      "type": "object"
    },
    "modEventTakedown": {
      "description": "Take down a subject permanently or temporarily",
      "properties": {
        "acknowledgeAccountSubjects": {
          "description": "If true, all other reports on content authored by this account will be resolved (acknowledged).",
          "type": "boolean"
        },
        "comment": {
          "type": "string"
        },
        "durationInHours": {
          "description": "Indicates how long the takedown should be in effect before automatically expiring.",
          "type": "integer"
        },
        "policies": {
          "description": "Names/Keywords of the policies that drove the decision.",
          "items": {
            "type": "string"
          },
          "maxLength": 5,
          "type": "array"
        },
        "severityLevel": {
          "description": "Severity level of the violation (e.g., 'sev-0', 'sev-1', 'sev-2', etc.).",
          "type": "string"
        },
        "strikeCount": {
          "description": "Number of strikes to assign to the user for this violation.",
          "type": "integer"
        },
        "strikeExpiresAt": {
          "description": "When the strike should expire. If not provided, the strike never expires.",
          "format": "datetime",
          "type": "string"
        },
        "targetServices": {
          "description": "List of services where the takedown should be applied. If empty or not provided, takedown is applied on all configured services.",
          "items": {
            "knownValues": [
              "appview",
              "pds"
            ],
            "type": "string"
          },
          "type": "array"
        }
      },
      "type": "object"
    },
    "modEventUnmute": {
      "description": "Unmute action on a subject",
      "properties": {
        "comment": {
          "description": "Describe reasoning behind the reversal.",
          "type": "string"
        }
      },
      "type": "object"
    },
    "modEventUnmuteReporter": {
      "description": "Unmute incoming reports from an account",
      "properties": {
        "comment": {
          "description": "Describe reasoning behind the reversal.",
          "type": "string"
        }
      },
      "type": "object"
    },
    "modEventView": {
      "properties": {
        "createdAt": {
          "format": "datetime",
          "type": "string"
        },
        "createdBy": {
          "format": "did",
          "type": "string"
        },
        "creatorHandle": {
          "type": "string"
        },
        "event": {
          "refs": [
            "#modEventTakedown",
            "#modEventReverseTakedown",
            "#modEventComment",
            "#modEventReport",
            "#modEventLabel",
            "#modEventAcknowledge",
            "#modEventEscalate",
            "#modEventMute",
            "#modEventUnmute",
            "#modEventMuteReporter",
            "#modEventUnmuteReporter",
            "#modEventEmail",
            "#modEventResolveAppeal",
            "#modEventDivert",
            "#modEventTag",
            "#accountEvent",
            "#identityEvent",
            "#recordEvent",
            "#modEventPriorityScore",
            "#ageAssuranceEvent",
            "#ageAssuranceOverrideEvent",
            "#ageAssurancePurgeEvent",
            "#revokeAccountCredentialsEvent",
            "#scheduleTakedownEvent",
            "#cancelScheduledTakedownEvent"
          ],
          "type": "union"
        },
        "id": {
          "type": "integer"
        },
        "modTool": {
          "ref": "#modTool",
          "type": "ref"
        },
        "subject": {
          "refs": [
            "com.atproto.admin.defs#repoRef",
            "com.atproto.repo.strongRef",
            "chat.bsky.convo.defs#messageRef",
            "chat.bsky.convo.defs#convoRef"
          ],
          "type": "union"
        },
        "subjectBlobCids": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "subjectHandle": {
          "type": "string"
        }
      },
      "required": [
        "id",
        "event",
        "subject",
        "subjectBlobCids",
        "createdBy",
        "createdAt"
      ],
      "type": "object"
    },
    "modEventViewDetail": {
      "properties": {
        "createdAt": {
          "format": "datetime",
          "type": "string"
        },
        "createdBy": {
          "format": "did",
          "type": "string"
        },
        "event": {
          "refs": [
            "#modEventTakedown",
            "#modEventReverseTakedown",
            "#modEventComment",
            "#modEventReport",
            "#modEventLabel",
            "#modEventAcknowledge",
            "#modEventEscalate",
            "#modEventMute",
            "#modEventUnmute",
            "#modEventMuteReporter",
            "#modEventUnmuteReporter",
            "#modEventEmail",
            "#modEventResolveAppeal",
            "#modEventDivert",
            "#modEventTag",
            "#accountEvent",
            "#identityEvent",
            "#recordEvent",
            "#modEventPriorityScore",
            "#ageAssuranceEvent",
            "#ageAssuranceOverrideEvent",
            "#ageAssurancePurgeEvent",
            "#revokeAccountCredentialsEvent",
            "#scheduleTakedownEvent",
            "#cancelScheduledTakedownEvent"
          ],
          "type": "union"
        },
        "id": {
          "type": "integer"
        },
        "modTool": {
          "ref": "#modTool",
          "type": "ref"
        },
        "subject": {
          "refs": [
            "#repoView",
            "#repoViewNotFound",
            "#recordView",
            "#recordViewNotFound",
            "#convoView"
          ],
          "type": "union"
        },
        "subjectBlobs": {
          "items": {
            "ref": "#blobView",
            "type": "ref"
          },
          "type": "array"
        }
      },
      "required": [
        "id",
        "event",
        "subject",
        "subjectBlobs",
        "createdBy",
        "createdAt"
      ],
      "type": "object"
    },
    "modTool": {
      "description": "Moderation tool information for tracing the source of the action",
      "properties": {
        "meta": {
          "description": "Additional arbitrary metadata about the source",
          "type": "unknown"
        },
        "name": {
          "description": "Name/identifier of the source (e.g., 'automod', 'ozone/workspace')",
          "type": "string"
        }
      },
      "required": [
        "name"
      ],
      "type": "object"
    },
    "moderation": {
      "properties": {
        "subjectStatus": {
          "ref": "#subjectStatusView",
          "type": "ref"
        }
      },
      "type": "object"
    },
    "moderationDetail": {
      "properties": {
        "subjectStatus": {
          "ref": "#subjectStatusView",
          "type": "ref"
        }
      },
      "type": "object"
    },
    "recordEvent": {
      "description": "Logs lifecycle event on a record subject. Normally captured by automod from the firehose and emitted to ozone for historical tracking.",
      "properties": {
        "cid": {
          "format": "cid",
          "type": "string"
        },
        "comment": {
          "type": "string"
        },
        "op": {
          "knownValues": [
            "create",
            "update",
            "delete"
          ],
          "type": "string"
        },
        "timestamp": {
          "format": "datetime",
          "type": "string"
        }
      },
      "required": [
        "timestamp",
        "op"
      ],
      "type": "object"
    },
    "recordHosting": {
      "properties": {
        "createdAt": {
          "format": "datetime",
          "type": "string"
        },
        "deletedAt": {
          "format": "datetime",
          "type": "string"
        },
        "status": {
          "knownValues": [
            "deleted",
            "unknown"
          ],
          "type": "string"
        },
        "updatedAt": {
          "format": "datetime",
          "type": "string"
        }
      },
      "required": [
        "status"
      ],
      "type": "object"
    },
    "recordView": {
      "properties": {
        "blobCids": {
          "items": {
            "format": "cid",
            "type": "string"
          },
          "type": "array"
        },
        "cid": {
          "format": "cid",
          "type": "string"
        },
        "indexedAt": {
          "format": "datetime",
          "type": "string"
        },
        "moderation": {
          "ref": "#moderation",
          "type": "ref"
        },
        "repo": {
          "ref": "#repoView",
          "type": "ref"
        },
        "uri": {
          "format": "at-uri",
          "type": "string"
        },
        "value": {
          "type": "unknown"
        }
      },
      "required": [
        "uri",
        "cid",
        "value",
        "blobCids",
        "indexedAt",
        "moderation",
        "repo"
      ],
      "type": "object"
    },
    "recordViewDetail": {
      "properties": {
        "blobs": {
          "items": {
            "ref": "#blobView",
            "type": "ref"
          },
          "type": "array"
        },
        "cid": {
          "format": "cid",
          "type": "string"
        },
        "indexedAt": {
          "format": "datetime",
          "type": "string"
        },
        "labels": {
          "items": {
            "ref": "com.atproto.label.defs#label",
            "type": "ref"
          },
          "type": "array"
        },
        "moderation": {
          "ref": "#moderationDetail",
          "type": "ref"
        },
        "repo": {
          "ref": "#repoView",
          "type": "ref"
        },
        "uri": {
          "format": "at-uri",
          "type": "string"
        },
        "value": {
          "type": "unknown"
        }
      },
      "required": [
        "uri",
        "cid",
        "value",
        "blobs",
        "indexedAt",
        "moderation",
        "repo"
      ],
      "type": "object"
    },
    "recordViewNotFound": {
      "properties": {
        "uri": {
          "format": "at-uri",
          "type": "string"
        }
      },
      "required": [
        "uri"
      ],
      "type": "object"
    },
    "recordsStats": {
      "description": "Statistics about a set of record subject items",
      "properties": {
        "appealedCount": {
          "description": "Number of items that were appealed at least once",
          "type": "integer"
        },
        "escalatedCount": {
          "description": "Number of items that were escalated at least once",
          "type": "integer"
        },
        "pendingCount": {
          "description": "Number of item currently in \"reviewOpen\" or \"reviewEscalated\" state",
          "type": "integer"
        },
        "processedCount": {
          "description": "Number of item currently in \"reviewNone\" or \"reviewClosed\" state",
          "type": "integer"
        },
        "reportedCount": {
          "description": "Number of items that were reported at least once",
          "type": "integer"
        },
        "subjectCount": {
          "description": "Total number of item in the set",
          "type": "integer"
        },
        "takendownCount": {
          "description": "Number of item currently taken down",
          "type": "integer"
        },
        "totalReports": {
          "description": "Cumulative sum of the number of reports on the items in the set",
          "type": "integer"
        }
      },
      "type": "object"
    },
    "repoView": {
      "properties": {
        "deactivatedAt": {
          "format": "datetime",
          "type": "string"
        },
        "did": {
          "format": "did",
          "type": "string"
        },
        "email": {
          "type": "string"
        },
        "handle": {
          "format": "handle",
          "type": "string"
        },
        "indexedAt": {
          "format": "datetime",
          "type": "string"
        },
        "inviteNote": {
          "type": "string"
        },
        "invitedBy": {
          "ref": "com.atproto.server.defs#inviteCode",
          "type": "ref"
        },
        "invitesDisabled": {
          "type": "boolean"
        },
        "moderation": {
          "ref": "#moderation",
          "type": "ref"
        },
        "relatedRecords": {
          "items": {
            "type": "unknown"
          },
          "type": "array"
        },
        "threatSignatures": {
          "items": {
            "ref": "com.atproto.admin.defs#threatSignature",
            "type": "ref"
          },
          "type": "array"
        }
      },
      "required": [
        "did",
        "handle",
        "relatedRecords",
        "indexedAt",
        "moderation"
      ],
      "type": "object"
    },
    "repoViewDetail": {
      "properties": {
        "deactivatedAt": {
          "format": "datetime",
          "type": "string"
        },
        "did": {
          "format": "did",
          "type": "string"
        },
        "email": {
          "type": "string"
        },
        "emailConfirmedAt": {
          "format": "datetime",
          "type": "string"
        },
        "handle": {
          "format": "handle",
          "type": "string"
        },
        "indexedAt": {
          "format": "datetime",
          "type": "string"
        },
        "inviteNote": {
          "type": "string"
        },
        "invitedBy": {
          "ref": "com.atproto.server.defs#inviteCode",
          "type": "ref"
        },
        "invites": {
          "items": {
            "ref": "com.atproto.server.defs#inviteCode",
            "type": "ref"
          },
          "type": "array"
        },
        "invitesDisabled": {
          "type": "boolean"
        },
        "labels": {
          "items": {
            "ref": "com.atproto.label.defs#label",
            "type": "ref"
          },
          "type": "array"
        },
        "moderation": {
          "ref": "#moderationDetail",
          "type": "ref"
        },
        "relatedRecords": {
          "items": {
            "type": "unknown"
          },
          "type": "array"
        },
        "threatSignatures": {
          "items": {
            "ref": "com.atproto.admin.defs#threatSignature",
            "type": "ref"
          },
          "type": "array"
        }
      },
      "required": [
        "did",
        "handle",
        "relatedRecords",
        "indexedAt",
        "moderation"
      ],
      "type": "object"
    },
    "repoViewNotFound": {
      "properties": {
        "did": {
          "format": "did",
          "type": "string"
        }
      },
      "required": [
        "did"
      ],
      "type": "object"
    },
    "reporterStats": {
      "properties": {
        "accountReportCount": {
          "description": "The total number of reports made by the user on accounts.",
          "type": "integer"
        },
        "did": {
          "format": "did",
          "type": "string"
        },
        "labeledAccountCount": {
          "description": "The total number of accounts labeled as a result of the user's reports.",
          "type": "integer"
        },
        "labeledRecordCount": {
          "description": "The total number of records labeled as a result of the user's reports.",
          "type": "integer"
        },
        "recordReportCount": {
          "description": "The total number of reports made by the user on records.",
          "type": "integer"
        },
        "reportedAccountCount": {
          "description": "The total number of accounts reported by the user.",
          "type": "integer"
        },
        "reportedRecordCount": {
          "description": "The total number of records reported by the user.",
          "type": "integer"
        },
        "takendownAccountCount": {
          "description": "The total number of accounts taken down as a result of the user's reports.",
          "type": "integer"
        },
        "takendownRecordCount": {
          "description": "The total number of records taken down as a result of the user's reports.",
          "type": "integer"
        }
      },
      "required": [
        "did",
        "accountReportCount",
        "recordReportCount",
        "reportedAccountCount",
        "reportedRecordCount",
        "takendownAccountCount",
        "takendownRecordCount",
        "labeledAccountCount",
        "labeledRecordCount"
      ],
      "type": "object"
    },
    "reviewClosed": {
      "description": "Moderator review status of a subject: Closed. Indicates that the subject was already reviewed and resolved by a moderator",
      "type": "token"
    },
    "reviewEscalated": {
      "description": "Moderator review status of a subject: Escalated. Indicates that the subject was escalated for review by a moderator",
      "type": "token"
    },
    "reviewNone": {
      "description": "Moderator review status of a subject: Unnecessary. Indicates that the subject does not need a review at the moment but there is probably some moderation related metadata available for it",
      "type": "token"
    },
    "reviewOpen": {
      "description": "Moderator review status of a subject: Open. Indicates that the subject needs to be reviewed by a moderator",
      "type": "token"
    },
    "revokeAccountCredentialsEvent": {
      "description": "Account credentials revocation by moderators. Only works on DID subjects.",
      "properties": {
        "comment": {
          "description": "Comment describing the reason for the revocation.",
          "minLength": 1,
          "type": "string"
        }
      },
      "required": [
        "comment"
      ],
      "type": "object"
    },
    "scheduleTakedownEvent": {
      "description": "Logs a scheduled takedown action for an account.",
      "properties": {
        "comment": {
          "type": "string"
        },
        "executeAfter": {
          "format": "datetime",
          "type": "string"
        },
        "executeAt": {
          "format": "datetime",
          "type": "string"
        },
        "executeUntil": {
          "format": "datetime",
          "type": "string"
        }
      },
      "type": "object"
    },
    "scheduledActionView": {
      "description": "View of a scheduled moderation action",
      "properties": {
        "action": {
          "description": "Type of action to be executed",
          "knownValues": [
            "takedown"
          ],
          "type": "string"
        },
        "createdAt": {
          "description": "When the scheduled action was created",
          "format": "datetime",
          "type": "string"
        },
        "createdBy": {
          "description": "DID of the user who created this scheduled action",
          "format": "did",
          "type": "string"
        },
        "did": {
          "description": "Subject DID for the action",
          "format": "did",
          "type": "string"
        },
        "eventData": {
          "description": "Serialized event object that will be propagated to the event when performed",
          "type": "unknown"
        },
        "executeAfter": {
          "description": "Earliest time to execute the action (for randomized scheduling)",
          "format": "datetime",
          "type": "string"
        },
        "executeAt": {
          "description": "Exact time to execute the action",
          "format": "datetime",
          "type": "string"
        },
        "executeUntil": {
          "description": "Latest time to execute the action (for randomized scheduling)",
          "format": "datetime",
          "type": "string"
        },
        "executionEventId": {
          "description": "ID of the moderation event created when action was successfully executed",
          "type": "integer"
        },
        "id": {
          "description": "Auto-incrementing row ID",
          "type": "integer"
        },
        "lastExecutedAt": {
          "description": "When the action was last attempted to be executed",
          "format": "datetime",
          "type": "string"
        },
        "lastFailureReason": {
          "description": "Reason for the last execution failure",
          "type": "string"
        },
        "randomizeExecution": {
          "description": "Whether execution time should be randomized within the specified range",
          "type": "boolean"
        },
        "status": {
          "description": "Current status of the scheduled action",
          "knownValues": [
            "pending",
            "executed",
            "cancelled",
            "failed"
          ],
          "type": "string"
        },
        "updatedAt": {
          "description": "When the scheduled action was last updated",
          "format": "datetime",
          "type": "string"
        }
      },
      "required": [
        "id",
        "action",
        "did",
        "createdBy",
        "createdAt",
        "status"
      ],
      "type": "object"
    },
    "subjectReviewState": {
      "knownValues": [
        "tools.ozone.moderation.defs#reviewOpen",
        "tools.ozone.moderation.defs#reviewEscalated",
        "tools.ozone.moderation.defs#reviewClosed",
        "tools.ozone.moderation.defs#reviewNone"
      ],
      "type": "string"
    },
    "subjectStatusView": {
      "properties": {
        "accountStats": {
          "description": "Statistics related to the account subject",
          "ref": "#accountStats",
          "type": "ref"
        },
        "accountStrike": {
          "description": "Strike information for the account (account-level only)",
          "ref": "#accountStrike",
          "type": "ref"
        },
        "ageAssuranceState": {
          "description": "Current age assurance state of the subject.",
          "knownValues": [
            "pending",
            "assured",
            "unknown",
            "reset",
            "blocked"
          ],
          "type": "string"
        },
        "ageAssuranceUpdatedBy": {
          "description": "Whether or not the last successful update to age assurance was made by the user or admin.",
          "knownValues": [
            "admin",
            "user"
          ],
          "type": "string"
        },
        "appealed": {
          "description": "True indicates that the a previously taken moderator action was appealed against, by the author of the content. False indicates last appeal was resolved by moderators.",
          "type": "boolean"
        },
        "comment": {
          "description": "Sticky comment on the subject.",
          "type": "string"
        },
        "createdAt": {
          "description": "Timestamp referencing the first moderation status impacting event was emitted on the subject",
          "format": "datetime",
          "type": "string"
        },
        "hosting": {
          "refs": [
            "#accountHosting",
            "#recordHosting"
          ],
          "type": "union"
        },
        "id": {
          "type": "integer"
        },
        "lastAppealedAt": {
          "description": "Timestamp referencing when the author of the subject appealed a moderation action",
          "format": "datetime",
          "type": "string"
        },
        "lastReportedAt": {
          "format": "datetime",
          "type": "string"
        },
        "lastReviewedAt": {
          "format": "datetime",
          "type": "string"
        },
        "lastReviewedBy": {
          "format": "did",
          "type": "string"
        },
        "muteReportingUntil": {
          "format": "datetime",
          "type": "string"
        },
        "muteUntil": {
          "format": "datetime",
          "type": "string"
        },
        "priorityScore": {
          "description": "Numeric value representing the level of priority. Higher score means higher priority.",
          "maximum": 100,
          "minimum": 0,
          "type": "integer"
        },
        "recordsStats": {
          "description": "Statistics related to the record subjects authored by the subject's account",
          "ref": "#recordsStats",
          "type": "ref"
        },
        "reviewState": {
          "ref": "#subjectReviewState",
          "type": "ref"
        },
        "subject": {
          "refs": [
            "com.atproto.admin.defs#repoRef",
            "com.atproto.repo.strongRef",
            "chat.bsky.convo.defs#messageRef",
            "chat.bsky.convo.defs#convoRef"
          ],
          "type": "union"
        },
        "subjectBlobCids": {
          "items": {
            "format": "cid",
            "type": "string"
          },
          "type": "array"
        },
        "subjectRepoHandle": {
          "type": "string"
        },
        "suspendUntil": {
          "format": "datetime",
          "type": "string"
        },
        "tags": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "takendown": {
          "type": "boolean"
        },
        "updatedAt": {
          "description": "Timestamp referencing when the last update was made to the moderation status of the subject",
          "format": "datetime",
          "type": "string"
        }
      },
      "required": [
        "id",
        "subject",
        "createdAt",
        "updatedAt",
        "reviewState"
      ],
      "type": "object"
    },
    "subjectView": {
      "description": "Detailed view of a subject. For record subjects, the author's repo and profile will be returned.",
      "properties": {
        "profile": {
          "refs": [],
          "type": "union"
        },
        "record": {
          "ref": "#recordViewDetail",
          "type": "ref"
        },
        "repo": {
          "ref": "#repoViewDetail",
          "type": "ref"
        },
        "status": {
          "ref": "#subjectStatusView",
          "type": "ref"
        },
        "subject": {
          "type": "string"
        },
        "type": {
          "ref": "com.atproto.moderation.defs#subjectType",
          "type": "ref"
        }
      },
      "required": [
        "type",
        "subject"
      ],
      "type": "object"
    },
    "timelineEventPlcCreate": {
      "description": "Moderation event timeline event for a PLC create operation",
      "type": "token"
    },
    "timelineEventPlcOperation": {
      "description": "Moderation event timeline event for generic PLC operation",
      "type": "token"
    },
    "timelineEventPlcTombstone": {
      "description": "Moderation event timeline event for a PLC tombstone operation",
      "type": "token"
    },
    "videoDetails": {
      "properties": {
        "height": {
          "type": "integer"
        },
        "length": {
          "type": "integer"
        },
        "width": {
          "type": "integer"
        }
      },
      "required": [
        "width",
        "height",
        "length"
      ],
      "type": "object"
    }
  },
  "id": "tools.ozone.moderation.defs",
  "lexicon": 1
}
```
