{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/answerline-dev/json-schema/answerline-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/answerline-dev-async-api-openapi.yml#/components/schemas/AsyncStatusResponse",
  "type": "object",
  "required": [
    "queuedTasks",
    "processingTasks",
    "priorityBreakdown"
  ],
  "properties": {
    "queuedTasks": {
      "type": "integer",
      "description": "Tasks this organization currently has waiting in the queue."
    },
    "processingTasks": {
      "type": "integer",
      "description": "Tasks this organization has in progress right now."
    },
    "priorityBreakdown": {
      "type": "array",
      "description": "Number of queued tasks for each priority level, highest priority first. Priority levels with no queued tasks are left out.",
      "items": {
        "type": "object",
        "required": [
          "priority",
          "count"
        ],
        "properties": {
          "priority": {
            "type": "integer",
            "description": "Priority on a scale of 1-10.",
            "minimum": 1,
            "maximum": 10
          },
          "count": {
            "type": "integer",
            "description": "Tasks waiting in the queue at this priority."
          }
        }
      }
    },
    "concurrency": {
      "type": [
        "object",
        "null"
      ],
      "description": "Concurrency in use right now; null when it could not be read.",
      "properties": {
        "used": {
          "type": "integer",
          "description": "Concurrency slots occupied right now."
        },
        "max": {
          "type": "integer",
          "description": "Highest number of tasks this organization may run concurrently."
        }
      }
    }
  }
}