{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/broadcastwell-com/json-schema/broadcastwell-com-run-schema.json",
  "title": "Run",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/broadcastwell-com-runs-api-openapi.yml#/components/schemas/Run",
  "type": "object",
  "required": [
    "run_id",
    "kind",
    "status"
  ],
  "properties": {
    "run_id": {
      "type": "string"
    },
    "kind": {
      "type": "string"
    },
    "status": {
      "type": "string"
    },
    "method_version": {
      "type": "string"
    },
    "immutable": {
      "type": "boolean"
    },
    "question_count": {
      "type": "integer"
    },
    "engines": {
      "type": "array"
    },
    "passes": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Pass"
      }
    }
  },
  "$defs": {
    "Pass": {
      "type": "object",
      "properties": {
        "pass_id": {
          "type": "string"
        },
        "kind": {
          "type": "string",
          "enum": [
            "scheduled",
            "adaptive",
            "monitor"
          ]
        },
        "scheduled": {
          "type": "boolean"
        },
        "started_at": {
          "type": "string"
        },
        "completed_at": {
          "type": "string"
        },
        "observed": {
          "type": "integer"
        }
      }
    }
  }
}