tools.ozone.queue.defs

ozone-lexicons.bsky.social

{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "assignmentView": {
      "properties": {
        "did": {
          "format": "did",
          "type": "string"
        },
        "endAt": {
          "format": "datetime",
          "type": "string"
        },
        "id": {
          "type": "integer"
        },
        "moderator": {
          "description": "The moderator assigned to this queue",
          "ref": "tools.ozone.team.defs#member",
          "type": "ref"
        },
        "queue": {
          "ref": "#queueView",
          "type": "ref"
        },
        "startAt": {
          "format": "datetime",
          "type": "string"
        }
      },
      "required": [
        "id",
        "did",
        "queue",
        "startAt"
      ],
      "type": "object"
    },
    "queueStats": {
      "properties": {
        "actionRate": {
          "description": "Percentage of reports actioned (actionedCount / inboundCount * 100), rounded to nearest integer. Absent when inboundCount is 0.",
          "type": "integer"
        },
        "actionedCount": {
          "description": "Number of reports in 'closed' status",
          "type": "integer"
        },
        "avgHandlingTimeSec": {
          "description": "Average time in seconds from report creation to close, for reports closed in this period.",
          "type": "integer"
        },
        "escalatedCount": {
          "description": "Number of reports in 'escalated' status",
          "type": "integer"
        },
        "inboundCount": {
          "description": "Reports received in this queue in the last 24 hours.",
          "type": "integer"
        },
        "lastUpdated": {
          "description": "When these statistics were last computed",
          "format": "datetime",
          "type": "string"
        },
        "pendingCount": {
          "description": "Number of reports in 'open' status",
          "type": "integer"
        }
      },
      "required": [],
      "type": "object"
    },
    "queueView": {
      "properties": {
        "collection": {
          "description": "Collection name for record subjects (e.g., 'app.bsky.feed.post')",
          "format": "nsid",
          "type": "string"
        },
        "createdAt": {
          "format": "datetime",
          "type": "string"
        },
        "createdBy": {
          "description": "DID of moderator who created this queue",
          "format": "did",
          "type": "string"
        },
        "deletedAt": {
          "description": "When the queue was deleted, if applicable",
          "format": "datetime",
          "type": "string"
        },
        "description": {
          "description": "Optional description of the queue",
          "type": "string"
        },
        "enabled": {
          "description": "Whether this queue is currently active",
          "type": "boolean"
        },
        "id": {
          "description": "Queue ID",
          "type": "integer"
        },
        "name": {
          "description": "Display name of the queue",
          "type": "string"
        },
        "recommendedLabels": {
          "description": "Labels recommended for this queue and used as a fallback when routing label appeals",
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "recommendedPolicies": {
          "description": "Policy keys recommended when actioning reports in this queue",
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "reportTypes": {
          "description": "Report reason types this queue accepts (fully qualified NSIDs)",
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "stats": {
          "description": "Statistics about this queue",
          "ref": "#queueStats",
          "type": "ref"
        },
        "subjectTypes": {
          "description": "Subject types this queue accepts.",
          "items": {
            "knownValues": [
              "account",
              "record",
              "message",
              "conversation"
            ],
            "type": "string"
          },
          "type": "array"
        },
        "updatedAt": {
          "format": "datetime",
          "type": "string"
        }
      },
      "required": [
        "id",
        "name",
        "createdBy",
        "createdAt",
        "updatedAt",
        "enabled",
        "stats"
      ],
      "type": "object"
    }
  },
  "id": "tools.ozone.queue.defs",
  "lexicon": 1
}

Validate Record

Validate a record against tools.ozone.queue.defs

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

Metadata

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

Referenced Schemas (1)

Similar Lexicons

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

  • Activity recording a moderator being assigned to a report.

  • tools.ozone.queue.createQueue procedurenot from the namespace authority

    Create a new moderation queue. A queue can have optional matching criteria that ozone's queue router will use to match reports. A queue with no criteria must have reports assigned to it manually via (1) `modTool.meta.qu…

  • tools.ozone.queue.listQueues querynot from the namespace authority

    List all configured moderation queues with statistics.

Lexicon Garden

@