# tools.ozone.queue.defs

> Published by [ozone-lexicons.bsky.social](https://lexicon.garden/identity/did:plc:33dt5kftu3jq2h5h4jjlqezt)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:33dt5kftu3jq2h5h4jjlqezt/tools.ozone.queue.defs)
- [Documentation](https://lexicon.garden/lexicon/did:plc:33dt5kftu3jq2h5h4jjlqezt/tools.ozone.queue.defs/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:33dt5kftu3jq2h5h4jjlqezt/tools.ozone.queue.defs/examples)

## Definitions

### `tools.ozone.queue.defs#assignmentView`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `did` | `string` (did) | Yes |  |
| `endAt` | `string` (datetime) | No |  |
| `id` | `integer` | Yes |  |
| `moderator` | `ref` → `tools.ozone.team.defs#member` | No | The moderator assigned to this queue |
| `queue` | `ref` → `#queueView` | Yes |  |
| `startAt` | `string` (datetime) | Yes |  |

### `tools.ozone.queue.defs#queueStats`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `actionRate` | `integer` | No | Percentage of reports actioned (actionedCount / inboundCount * 100), rounded to nearest integer. Absent when inboundCount is 0. |
| `actionedCount` | `integer` | No | Number of reports in 'closed' status |
| `avgHandlingTimeSec` | `integer` | No | Average time in seconds from report creation to close, for reports closed in this period. |
| `escalatedCount` | `integer` | No | Number of reports in 'escalated' status |
| `inboundCount` | `integer` | No | Reports received in this queue in the last 24 hours. |
| `lastUpdated` | `string` (datetime) | No | When these statistics were last computed |
| `pendingCount` | `integer` | No | Number of reports in 'open' status |

### `tools.ozone.queue.defs#queueView`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `collection` | `string` (nsid) | No | Collection name for record subjects (e.g., 'app.bsky.feed.post') |
| `createdAt` | `string` (datetime) | Yes |  |
| `createdBy` | `string` (did) | Yes | DID of moderator who created this queue |
| `deletedAt` | `string` (datetime) | No | When the queue was deleted, if applicable |
| `description` | `string` | No | Optional description of the queue |
| `enabled` | `boolean` | Yes | Whether this queue is currently active |
| `id` | `integer` | Yes | Queue ID |
| `name` | `string` | Yes | Display name of the queue |
| `recommendedLabels` | `array` | No | Labels recommended for this queue and used as a fallback when routing label appeals |
| `recommendedPolicies` | `array` | No | Policy keys recommended when actioning reports in this queue |
| `reportTypes` | `array` | No | Report reason types this queue accepts (fully qualified NSIDs) |
| `stats` | `ref` → `#queueStats` | Yes | Statistics about this queue |
| `subjectTypes` | `array` | No | Subject types this queue accepts. |
| `updatedAt` | `string` (datetime) | Yes |  |

## Raw Schema

```json
{
  "$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
}
```
