{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cloro-dev/json-schema/cloro-dev-async-status-response-schema.json",
  "title": "AsyncStatusResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cloro-dev-async-api-openapi.yml#/components/schemas/AsyncStatusResponse",
  "type": "object",
  "required": [
    "queuedTasks",
    "processingTasks",
    "priorityBreakdown"
  ],
  "properties": {
    "queuedTasks": {
      "type": "integer",
      "description": "Number of tasks currently queued for this organization (status `QUEUED`)."
    },
    "processingTasks": {
      "type": "integer",
      "description": "Number of tasks currently being processed for this organization (status `PROCESSING`)."
    },
    "priorityBreakdown": {
      "type": "array",
      "description": "Queued task counts per priority level, ordered by priority descending. Only includes priority levels that have queued tasks.",
      "items": {
        "type": "object",
        "required": [
          "priority",
          "count"
        ],
        "properties": {
          "priority": {
            "type": "integer",
            "description": "The priority level (1-10).",
            "minimum": 1,
            "maximum": 10
          },
          "count": {
            "type": "integer",
            "description": "Number of queued tasks at this priority level."
          }
        }
      }
    },
    "concurrency": {
      "type": [
        "object",
        "null"
      ],
      "description": "Current concurrency usage. Null if unable to retrieve concurrency information.",
      "properties": {
        "used": {
          "type": "integer",
          "description": "Number of concurrent slots currently in use."
        },
        "max": {
          "type": "integer",
          "description": "Maximum allowed concurrent tasks for this organization, set by your plan."
        }
      }
    }
  }
}