At

 view release on metacpan or  search on metacpan

share/lexicons/tools/ozone/moderation/defs.json  view on Meta::CPAN

      "type": "object",
      "required": [
        "id",
        "event",
        "subject",
        "subjectBlobs",
        "createdBy",
        "createdAt"
      ],
      "properties": {
        "id": { "type": "integer" },
        "event": {
          "type": "union",
          "refs": [
            "#modEventTakedown",
            "#modEventReverseTakedown",
            "#modEventComment",
            "#modEventReport",
            "#modEventLabel",
            "#modEventAcknowledge",
            "#modEventEscalate",
            "#modEventMute",
            "#modEventUnmute",
            "#modEventMuteReporter",
            "#modEventUnmuteReporter",
            "#modEventEmail",
            "#modEventResolveAppeal",
            "#modEventDivert",
            "#modEventTag",
            "#accountEvent",
            "#identityEvent",
            "#recordEvent",
            "#modEventPriorityScore",
            "#ageAssuranceEvent",
            "#ageAssuranceOverrideEvent",
            "#revokeAccountCredentialsEvent",
            "#scheduleTakedownEvent",
            "#cancelScheduledTakedownEvent"
          ]
        },
        "subject": {
          "type": "union",
          "refs": [
            "#repoView",
            "#repoViewNotFound",
            "#recordView",
            "#recordViewNotFound"
          ]
        },
        "subjectBlobs": {
          "type": "array",
          "items": { "type": "ref", "ref": "#blobView" }
        },
        "createdBy": { "type": "string", "format": "did" },
        "createdAt": { "type": "string", "format": "datetime" },
        "modTool": { "type": "ref", "ref": "#modTool" }
      }
    },
    "subjectStatusView": {
      "type": "object",
      "required": ["id", "subject", "createdAt", "updatedAt", "reviewState"],
      "properties": {
        "id": { "type": "integer" },
        "subject": {
          "type": "union",
          "refs": [
            "com.atproto.admin.defs#repoRef",
            "com.atproto.repo.strongRef",
            "chat.bsky.convo.defs#messageRef"
          ]
        },
        "hosting": {
          "type": "union",
          "refs": ["#accountHosting", "#recordHosting"]
        },
        "subjectBlobCids": {
          "type": "array",
          "items": { "type": "string", "format": "cid" }
        },
        "subjectRepoHandle": { "type": "string" },
        "updatedAt": {
          "type": "string",
          "format": "datetime",
          "description": "Timestamp referencing when the last update was made to the moderation status of the subject"
        },
        "createdAt": {
          "type": "string",
          "format": "datetime",
          "description": "Timestamp referencing the first moderation status impacting event was emitted on the subject"
        },
        "reviewState": {
          "type": "ref",
          "ref": "#subjectReviewState"
        },
        "comment": {
          "type": "string",
          "description": "Sticky comment on the subject."
        },
        "priorityScore": {
          "type": "integer",
          "description": "Numeric value representing the level of priority. Higher score means higher priority.",
          "minimum": 0,
          "maximum": 100
        },
        "muteUntil": {
          "type": "string",
          "format": "datetime"
        },
        "muteReportingUntil": {
          "type": "string",
          "format": "datetime"
        },
        "lastReviewedBy": {
          "type": "string",
          "format": "did"
        },
        "lastReviewedAt": {
          "type": "string",
          "format": "datetime"
        },
        "lastReportedAt": {
          "type": "string",
          "format": "datetime"
        },
        "lastAppealedAt": {
          "type": "string",
          "format": "datetime",
          "description": "Timestamp referencing when the author of the subject appealed a moderation action"
        },
        "takendown": {
          "type": "boolean"
        },
        "appealed": {
          "type": "boolean",
          "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."
        },
        "suspendUntil": {
          "type": "string",
          "format": "datetime"
        },
        "tags": {

share/lexicons/tools/ozone/moderation/defs.json  view on Meta::CPAN

      "type": "object",
      "properties": {
        "subjectStatus": { "type": "ref", "ref": "#subjectStatusView" }
      }
    },
    "moderationDetail": {
      "type": "object",
      "properties": {
        "subjectStatus": {
          "type": "ref",
          "ref": "#subjectStatusView"
        }
      }
    },
    "blobView": {
      "type": "object",
      "required": ["cid", "mimeType", "size", "createdAt"],
      "properties": {
        "cid": { "type": "string", "format": "cid" },
        "mimeType": { "type": "string" },
        "size": { "type": "integer" },
        "createdAt": { "type": "string", "format": "datetime" },
        "details": {
          "type": "union",
          "refs": ["#imageDetails", "#videoDetails"]
        },
        "moderation": { "type": "ref", "ref": "#moderation" }
      }
    },
    "imageDetails": {
      "type": "object",
      "required": ["width", "height"],
      "properties": {
        "width": { "type": "integer" },
        "height": { "type": "integer" }
      }
    },
    "videoDetails": {
      "type": "object",
      "required": ["width", "height", "length"],
      "properties": {
        "width": { "type": "integer" },
        "height": { "type": "integer" },
        "length": { "type": "integer" }
      }
    },
    "accountHosting": {
      "type": "object",
      "required": ["status"],
      "properties": {
        "status": {
          "type": "string",
          "knownValues": [
            "takendown",
            "suspended",
            "deleted",
            "deactivated",
            "unknown"
          ]
        },
        "updatedAt": {
          "type": "string",
          "format": "datetime"
        },
        "createdAt": {
          "type": "string",
          "format": "datetime"
        },
        "deletedAt": {
          "type": "string",
          "format": "datetime"
        },
        "deactivatedAt": {
          "type": "string",
          "format": "datetime"
        },
        "reactivatedAt": {
          "type": "string",
          "format": "datetime"
        }
      }
    },
    "recordHosting": {
      "type": "object",
      "required": ["status"],
      "properties": {
        "status": {
          "type": "string",
          "knownValues": ["deleted", "unknown"]
        },
        "updatedAt": {
          "type": "string",
          "format": "datetime"
        },
        "createdAt": {
          "type": "string",
          "format": "datetime"
        },
        "deletedAt": {
          "type": "string",
          "format": "datetime"
        }
      }
    },
    "reporterStats": {
      "type": "object",
      "required": [
        "did",
        "accountReportCount",
        "recordReportCount",
        "reportedAccountCount",
        "reportedRecordCount",
        "takendownAccountCount",
        "takendownRecordCount",
        "labeledAccountCount",
        "labeledRecordCount"
      ],
      "properties": {
        "did": {
          "type": "string",
          "format": "did"
        },
        "accountReportCount": {
          "type": "integer",
          "description": "The total number of reports made by the user on accounts."
        },
        "recordReportCount": {
          "type": "integer",
          "description": "The total number of reports made by the user on records."
        },
        "reportedAccountCount": {
          "type": "integer",
          "description": "The total number of accounts reported by the user."
        },
        "reportedRecordCount": {
          "type": "integer",
          "description": "The total number of records reported by the user."
        },
        "takendownAccountCount": {
          "type": "integer",
          "description": "The total number of accounts taken down as a result of the user's reports."
        },
        "takendownRecordCount": {
          "type": "integer",
          "description": "The total number of records taken down as a result of the user's reports."
        },
        "labeledAccountCount": {
          "type": "integer",
          "description": "The total number of accounts labeled as a result of the user's reports."
        },
        "labeledRecordCount": {

share/lexicons/tools/ozone/moderation/defs.json  view on Meta::CPAN

    "timelineEventPlcOperation": {
      "type": "token",
      "description": "Moderation event timeline event for generic PLC operation"
    },
    "timelineEventPlcTombstone": {
      "type": "token",
      "description": "Moderation event timeline event for a PLC tombstone operation"
    },
    "scheduledActionView": {
      "type": "object",
      "description": "View of a scheduled moderation action",
      "required": ["id", "action", "did", "createdBy", "createdAt", "status"],
      "properties": {
        "id": {
          "type": "integer",
          "description": "Auto-incrementing row ID"
        },
        "action": {
          "type": "string",
          "knownValues": ["takedown"],
          "description": "Type of action to be executed"
        },
        "eventData": {
          "type": "unknown",
          "description": "Serialized event object that will be propagated to the event when performed"
        },
        "did": {
          "type": "string",
          "format": "did",
          "description": "Subject DID for the action"
        },
        "executeAt": {
          "type": "string",
          "format": "datetime",
          "description": "Exact time to execute the action"
        },
        "executeAfter": {
          "type": "string",
          "format": "datetime",
          "description": "Earliest time to execute the action (for randomized scheduling)"
        },
        "executeUntil": {
          "type": "string",
          "format": "datetime",
          "description": "Latest time to execute the action (for randomized scheduling)"
        },
        "randomizeExecution": {
          "type": "boolean",
          "description": "Whether execution time should be randomized within the specified range"
        },
        "createdBy": {
          "type": "string",
          "format": "did",
          "description": "DID of the user who created this scheduled action"
        },
        "createdAt": {
          "type": "string",
          "format": "datetime",
          "description": "When the scheduled action was created"
        },
        "updatedAt": {
          "type": "string",
          "format": "datetime",
          "description": "When the scheduled action was last updated"
        },
        "status": {
          "type": "string",
          "knownValues": ["pending", "executed", "cancelled", "failed"],
          "description": "Current status of the scheduled action"
        },
        "lastExecutedAt": {
          "type": "string",
          "format": "datetime",
          "description": "When the action was last attempted to be executed"
        },
        "lastFailureReason": {
          "type": "string",
          "description": "Reason for the last execution failure"
        },
        "executionEventId": {
          "type": "integer",
          "description": "ID of the moderation event created when action was successfully executed"
        }
      }
    }
  }
}



( run in 1.528 second using v1.01-cache-2.11-cpan-5837b0d9d2c )