tools.ozone.queue.defs

Details · defs
Kinddefs
Authorityqueue.ozone.tools
Indexed

Showing version bafyreifxbjw2p6w6k2xx2yhwt5nwfy3zudp72ywinuedvyq3z2oeuky3le. Show the latest

cid bafyreifxbjw2p6w6k2xx2yhwt5nwfy3zudp72ywinuedvyq3z2oeuky3le

Checks

Valid
JSONDownload
{
  "$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"
        },
        "closureTargetMetCount": {
          "description": "Reports whose closure meets their closure target.",
          "minimum": 0,
          "type": "integer"
        },
        "closureTargetMetRate": {
          "description": "Percent of reports meeting their closure target.",
          "maximum": 100,
          "minimum": 0,
          "type": "integer"
        },
        "closureTargetMissedCount": {
          "description": "Reports whose closure exceeds their closure target.",
          "minimum": 0,
          "type": "integer"
        },
        "closureTargetOverdueCount": {
          "description": "Unmuted pending reports past their closure target.",
          "minimum": 0,
          "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 unmuted reports currently not closed.",
          "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
}