tools.ozone.report.createActivity

ozone-lexicons.bsky.social

{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Register an activity on a report. For state-change activity types, validates the transition and updates report.status atomically.",
      "errors": [
        {
          "description": "No report exists with the given reportId or eventId",
          "name": "ReportNotFound"
        },
        {
          "description": "The requested state transition is not permitted from the report's current status",
          "name": "InvalidStateTransition"
        },
        {
          "description": "The report is already in the status implied by this activity type",
          "name": "AlreadyInTargetState"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "activity": {
              "description": "The type of activity to record.",
              "refs": [
                "tools.ozone.report.defs#queueActivity",
                "tools.ozone.report.defs#assignmentActivity",
                "tools.ozone.report.defs#escalationActivity",
                "tools.ozone.report.defs#closeActivity",
                "tools.ozone.report.defs#reopenActivity",
                "tools.ozone.report.defs#noteActivity"
              ],
              "type": "union"
            },
            "eventId": {
              "description": "ID of the report moderation event. Resolves to the report created from that event. Exactly one of reportId or eventId must be provided.",
              "type": "integer"
            },
            "internalNote": {
              "description": "Optional moderator-only note. Not visible to reporters.",
              "type": "string"
            },
            "isAutomated": {
              "default": false,
              "description": "Set true when this activity is triggered by an automated process. Defaults to false.",
              "type": "boolean"
            },
            "publicNote": {
              "description": "Optional public-facing note, potentially visible to the reporter.",
              "type": "string"
            },
            "reportId": {
              "description": "ID of the report to record activity on. Exactly one of reportId or eventId must be provided.",
              "type": "integer"
            }
          },
          "required": [
            "activity"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "activity": {
              "ref": "tools.ozone.report.defs#reportActivityView",
              "type": "ref"
            }
          },
          "required": [
            "activity"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "tools.ozone.report.createActivity",
  "lexicon": 1
}

Validate Record

Validate a record against tools.ozone.report.createActivity

Validation Options
Automatically resolve and include external schemas for full validation
Treat any remaining unresolved references as valid

Metadata

DID
did:plc:33dt5kftu3jq2h5h4jjlqezt
CID
bafyreidijd6r4ge7f63g32iwamgwyrtpzylghcjzzwej6l3pyjq2kj3ntm
Indexed At
2026-10-03 21:31 UTC
AT-URI
at://did:plc:33dt5kftu3jq2h5h4jjlqezt/com.atproto.lexicon.schema/tools.ozone.report.createActivity

Referenced Schemas (7)

Similar Lexicons

Lexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.

Lexicon Garden

@