tools.ozone.queue.defs

Details · defs
Kinddefs
Authorityqueue.ozone.tools
Commit rev3n2oxky3x4n2a
Indexed
cid bafyreiaqxxp47p7npmnou7m3q7ssvo7sdi7yfs66kehmmpdeejfic6w4vy

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": {
        "acknowledgedCount": {
          "description": "Number of closures whose last report action is not label, tag, or takedown.",
          "type": "integer"
        },
        "actionRate": {
          "description": "Percentage of closures actioned (actionedCount / closedCount * 100), rounded to nearest integer.",
          "type": "integer"
        },
        "actionedCount": {
          "description": "Number of closures whose last report action is label, tag, or takedown.",
          "type": "integer"
        },
        "ahtDurationSec": {
          "description": "Sum of report assignment-to-close seconds.",
          "type": "integer"
        },
        "ahtSampleCount": {
          "description": "Number of assigned closed-report samples in ahtDurationSec.",
          "type": "integer"
        },
        "avgHandlingTimeSec": {
          "description": "Average handling time in seconds from report assignment to close.",
          "type": "integer"
        },
        "avgResolutionTimeSec": {
          "description": "Average resolution time in seconds from report creation to close.",
          "type": "integer"
        },
        "closedCount": {
          "description": "Number of reports whose current closure falls within this UTC calendar day.",
          "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 report escalation events during this UTC calendar day.",
          "type": "integer"
        },
        "inboundCount": {
          "description": "Reports received in this queue during this UTC calendar day.",
          "type": "integer"
        },
        "labelActionCount": {
          "description": "Closures whose last report action is a label event.",
          "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"
        },
        "resolutionDurationSec": {
          "description": "Sum of report creation-to-close seconds.",
          "type": "integer"
        },
        "resolutionSampleCount": {
          "description": "Number of closed-report samples in resolutionDurationSec.",
          "type": "integer"
        },
        "tagActionCount": {
          "description": "Closures whose last report action is a tag event.",
          "type": "integer"
        },
        "takedownActionCount": {
          "description": "Closures whose last report action is a takedown event.",
          "type": "integer"
        }
      },
      "required": [],
      "type": "object"
    },
    "queueView": {
      "properties": {
        "accountTags": {
          "description": "Match tags on the account that is being reported against. For record subjects, use the author account. Match any listed tag.",
          "items": {
            "minLength": 1,
            "type": "string"
          },
          "maxLength": 25,
          "type": "array"
        },
        "collection": {
          "description": "Collection name for record subjects. Omit to accept every collection.",
          "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"
        },
        "reporterTags": {
          "description": "Match any listed tag on the account submitting the report.",
          "items": {
            "minLength": 1,
            "type": "string"
          },
          "maxLength": 25,
          "type": "array"
        },
        "stats": {
          "description": "Statistics about this queue",
          "ref": "#queueStats",
          "type": "ref"
        },
        "strictAccess": {
          "description": "Admins can always list this queue and browse its reports. Other roles require an active queue assignment. Individual report and moderation event access is unchanged.",
          "type": "boolean"
        },
        "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
}