{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/flatmark-dev/json-schema/flatmark-dev-job-response-schema.json",
  "title": "JobResponse",
  "description": "A job's status and result. The webhook secret is not included. The submit\nresponse returns it once.",
  "x-generated": "2026-11-08",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/flatmark-dev-openapi.json#/components/schemas/JobResponse",
  "properties": {
    "id": {
      "type": "string",
      "title": "Id",
      "description": "The job ID."
    },
    "kind": {
      "type": "string",
      "title": "Kind"
    },
    "status": {
      "type": "string",
      "title": "Status"
    },
    "result": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Result"
    },
    "error": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Error"
    },
    "created_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Created At"
    },
    "started_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Started At"
    },
    "finished_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Finished At"
    }
  },
  "type": "object",
  "required": [
    "id",
    "kind",
    "status"
  ]
}