{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/docuqueue-com/json-schema/docuqueue-com-batch-status-response-schema.json",
  "title": "BatchStatusResponse",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/docuqueue-com-openapi.json#/components/schemas/BatchStatusResponse",
  "properties": {
    "batch_id": {
      "type": "string",
      "title": "Batch Id"
    },
    "status": {
      "type": "string",
      "title": "Status"
    },
    "jobs": {
      "items": {
        "$ref": "#/$defs/BatchJobStatus"
      },
      "type": "array",
      "title": "Jobs"
    },
    "total": {
      "type": "integer",
      "title": "Total"
    },
    "completed": {
      "type": "integer",
      "title": "Completed"
    },
    "failed": {
      "type": "integer",
      "title": "Failed"
    },
    "processing": {
      "type": "integer",
      "title": "Processing"
    },
    "pending": {
      "type": "integer",
      "title": "Pending"
    }
  },
  "type": "object",
  "required": [
    "batch_id",
    "status",
    "jobs",
    "total",
    "completed",
    "failed",
    "processing",
    "pending"
  ],
  "$defs": {
    "BatchJobStatus": {
      "properties": {
        "id": {
          "type": "string",
          "title": "Id"
        },
        "status": {
          "type": "string",
          "title": "Status"
        },
        "error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Error"
        },
        "download_url": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Download Url"
        }
      },
      "type": "object",
      "required": [
        "id",
        "status"
      ],
      "title": "BatchJobStatus"
    }
  }
}