{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/rendex-dev/json-schema/rendex-dev-job-status-response-schema.json",
  "title": "JobStatusResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/rendex-dev-jobs-api-openapi.yml#/components/schemas/JobStatusResponse",
  "type": "object",
  "properties": {
    "success": {
      "type": "boolean",
      "const": true
    },
    "data": {
      "type": "object",
      "properties": {
        "jobId": {
          "type": "string",
          "description": "Unique job identifier"
        },
        "status": {
          "type": "string",
          "enum": [
            "queued",
            "processing",
            "completed",
            "failed"
          ],
          "description": "Current job status"
        },
        "url": {
          "type": "string",
          "format": "uri",
          "description": "URL that was captured"
        },
        "imageUrl": {
          "type": "string",
          "format": "uri",
          "description": "Signed URL to the captured image (available when completed)"
        },
        "error": {
          "type": "string",
          "description": "Error message (available when failed)"
        },
        "createdAt": {
          "type": "string",
          "format": "date-time"
        },
        "completedAt": {
          "type": "string",
          "format": "date-time"
        }
      }
    },
    "meta": {
      "$ref": "#/$defs/ResponseMeta"
    }
  },
  "$defs": {
    "ResponseMeta": {
      "type": "object",
      "properties": {
        "requestId": {
          "type": "string",
          "description": "Unique request identifier"
        },
        "timestamp": {
          "type": "string",
          "format": "date-time"
        }
      }
    }
  }
}