{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/snap-render-com/json-schema/snap-render-com-batch-job-response-schema.json",
  "title": "BatchJobResponse",
  "x-generated": "2026-10-31",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/snap-render-com-openapi.json#/components/schemas/BatchJobResponse",
  "type": "object",
  "properties": {
    "jobId": {
      "type": "string",
      "format": "uuid",
      "description": "Unique batch job identifier"
    },
    "status": {
      "type": "string",
      "enum": [
        "pending",
        "processing",
        "completed",
        "failed"
      ],
      "description": "Overall job status"
    },
    "statusUrl": {
      "type": "string",
      "description": "URL to poll for status updates"
    },
    "total": {
      "type": "integer",
      "description": "Total number of URLs in the batch"
    },
    "completed": {
      "type": "integer",
      "description": "Number of successfully completed screenshots"
    },
    "failed": {
      "type": "integer",
      "description": "Number of failed screenshots"
    },
    "items": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "url": {
            "type": "string",
            "description": "The URL that was captured"
          },
          "status": {
            "type": "string",
            "enum": [
              "pending",
              "completed",
              "failed"
            ]
          },
          "downloadUrl": {
            "type": "string",
            "description": "Presigned download URL (24h validity, present when completed)"
          },
          "error": {
            "type": "string",
            "description": "Error message (present when failed)"
          }
        }
      }
    },
    "createdAt": {
      "type": "string",
      "format": "date-time"
    },
    "completedAt": {
      "type": "string",
      "format": "date-time",
      "description": "Present when job is completed or failed"
    }
  }
}