{
  "lexicon": 1,
  "id": "tools.ozone.queue.listQueues",
  "defs": {
    "main": {
      "type": "query",
      "description": "List all configured moderation queues with statistics.",
      "parameters": {
        "type": "params",
        "properties": {
          "enabled": {
            "type": "boolean",
            "description": "Filter by enabled status. If not specified, returns all queues."
          },
          "subjectType": {
            "type": "string",
            "description": "Filter queues that handle this subject type ('account' or 'record')."
          },
          "collection": {
            "type": "string",
            "description": "Filter queues by collection name (e.g. 'app.bsky.feed.post')."
          },
          "reportTypes": {
            "type": "array",
            "items": { "type": "string" },
            "maxLength": 10,
            "description": "Filter queues that handle any of these report reason types."
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 100,
            "default": 50
          },
          "cursor": {
            "type": "string"
          }
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "type": "object",
          "required": ["queues"],
          "properties": {
            "cursor": {
              "type": "string"
            },
            "queues": {
              "type": "array",
              "items": {
                "type": "ref",
                "ref": "tools.ozone.queue.defs#queueView"
              }
            }
          }
        }
      }
    }
  }
}

