{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aidemos-com/json-schema/aidemos-com-job-view-schema.json",
  "title": "JobView",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aidemos-com-jobs-api-openapi.yml#/components/schemas/JobView",
  "properties": {
    "job_run_id": {
      "type": "string",
      "title": "Job Run Id"
    },
    "job_type": {
      "type": "string",
      "title": "Job Type"
    },
    "status": {
      "type": "string",
      "title": "Status"
    },
    "dry_run": {
      "type": "boolean",
      "title": "Dry Run"
    },
    "payload_record_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Payload Record Id"
    },
    "input": {
      "additionalProperties": true,
      "type": "object",
      "title": "Input",
      "default": {}
    },
    "result": {
      "anyOf": [
        {},
        {
          "type": "null"
        }
      ],
      "title": "Result"
    },
    "error": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Error"
    },
    "logs": {
      "items": {},
      "type": "array",
      "title": "Logs",
      "default": []
    },
    "cost": {
      "additionalProperties": true,
      "type": "object",
      "title": "Cost",
      "default": {}
    },
    "attempts": {
      "type": "integer",
      "title": "Attempts",
      "default": 0
    },
    "step_kind": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Step Kind"
    },
    "parent_run_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Parent Run Id"
    },
    "gate_refusal": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Gate Refusal"
    },
    "trace_url": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Trace Url"
    },
    "created_at": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Created At"
    },
    "started_at": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Started At"
    },
    "finished_at": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Finished At"
    }
  },
  "type": "object",
  "required": [
    "job_run_id",
    "job_type",
    "status",
    "dry_run"
  ]
}