{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/finedata-ai/json-schema/finedata-ai-batch-job-status-response-schema.json",
  "title": "BatchJobStatusResponse",
  "description": "Batch progress and results.",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/finedata-openapi.json#/components/schemas/BatchJobStatusResponse",
  "properties": {
    "batch_id": {
      "type": "string",
      "title": "Batch Id",
      "description": "Batch identifier"
    },
    "status": {
      "type": "string",
      "title": "Status",
      "description": "Overall status: pending, processing, completed, partial, failed"
    },
    "total_jobs": {
      "type": "integer",
      "title": "Total Jobs",
      "description": "Total jobs in batch"
    },
    "completed_jobs": {
      "type": "integer",
      "title": "Completed Jobs",
      "description": "Successfully completed jobs"
    },
    "failed_jobs": {
      "type": "integer",
      "title": "Failed Jobs",
      "description": "Failed jobs"
    },
    "created_at": {
      "type": "string",
      "title": "Created At",
      "description": "Creation timestamp"
    },
    "completed_at": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Completed At",
      "description": "Completion timestamp (all jobs done)"
    },
    "results": {
      "anyOf": [
        {
          "items": {},
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Results",
      "description": "Individual job results (when include_results=true)"
    }
  },
  "type": "object",
  "required": [
    "batch_id",
    "status",
    "total_jobs",
    "completed_jobs",
    "failed_jobs",
    "created_at"
  ]
}