{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/invoicepdfs-com/json-schema/invoicepdfs-com-job-response-schema.json",
  "title": "JobResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/invoicepdfs-com-jobs-api-openapi.yml#/components/schemas/JobResponse",
  "properties": {
    "data": {
      "$ref": "#/$defs/JobOut"
    }
  },
  "type": "object",
  "required": [
    "data"
  ],
  "$defs": {
    "JobOut": {
      "properties": {
        "id": {
          "type": "string",
          "title": "Id"
        },
        "type": {
          "type": "string",
          "title": "Type"
        },
        "status": {
          "$ref": "#/$defs/JobStatus"
        },
        "progress": {
          "$ref": "#/$defs/JobProgressOut"
        },
        "result": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Result"
        },
        "error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Error"
        },
        "created_at": {
          "type": "string",
          "title": "Created At"
        },
        "started_at": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Started At"
        },
        "completed_at": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Completed At"
        }
      },
      "type": "object",
      "required": [
        "id",
        "type",
        "status",
        "progress",
        "created_at"
      ],
      "title": "JobOut"
    },
    "JobProgressOut": {
      "properties": {
        "current": {
          "type": "integer",
          "title": "Current"
        },
        "total": {
          "type": "integer",
          "title": "Total"
        },
        "percentage": {
          "type": "integer",
          "title": "Percentage"
        }
      },
      "type": "object",
      "required": [
        "current",
        "total",
        "percentage"
      ],
      "title": "JobProgressOut"
    },
    "JobStatus": {
      "type": "string",
      "enum": [
        "queued",
        "processing",
        "completed",
        "failed",
        "cancelled"
      ],
      "title": "JobStatus"
    }
  }
}