{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/telnyx/main/json-schema/telnyx-mission-runs-list-response-schema.json",
  "title": "MissionRunsListResponse",
  "x-generated": "2026-10-08",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/telnyx-missions-api-openapi.yml#/components/schemas/MissionRunsListResponse",
  "properties": {
    "data": {
      "items": {
        "$ref": "#/$defs/MissionRunData"
      },
      "title": "Data",
      "type": "array"
    },
    "meta": {
      "$ref": "#/$defs/Meta"
    }
  },
  "required": [
    "data",
    "meta"
  ],
  "type": "object",
  "$defs": {
    "Meta": {
      "properties": {
        "page_number": {
          "type": "integer"
        },
        "page_size": {
          "type": "integer"
        },
        "total_pages": {
          "type": "integer"
        },
        "total_results": {
          "type": "integer"
        }
      },
      "required": [
        "total_pages",
        "total_results",
        "page_number",
        "page_size"
      ],
      "title": "Meta",
      "type": "object"
    },
    "MissionRunData": {
      "properties": {
        "error": {
          "title": "Error",
          "type": "string"
        },
        "finished_at": {
          "format": "date-time",
          "title": "Finished At",
          "type": "string"
        },
        "input": {
          "additionalProperties": true,
          "title": "Input",
          "type": "object"
        },
        "metadata": {
          "additionalProperties": true,
          "title": "Metadata",
          "type": "object"
        },
        "mission_id": {
          "format": "uuid",
          "title": "Mission Id",
          "type": "string"
        },
        "result_payload": {
          "additionalProperties": true,
          "title": "Result Payload",
          "type": "object"
        },
        "result_summary": {
          "title": "Result Summary",
          "type": "string"
        },
        "run_id": {
          "format": "uuid",
          "title": "Run Id",
          "type": "string"
        },
        "started_at": {
          "format": "date-time",
          "title": "Started At",
          "type": "string"
        },
        "status": {
          "$ref": "#/$defs/RunStatus"
        },
        "updated_at": {
          "format": "date-time",
          "title": "Updated At",
          "type": "string"
        }
      },
      "required": [
        "run_id",
        "mission_id",
        "status",
        "started_at",
        "updated_at"
      ],
      "title": "MissionRunData",
      "type": "object"
    },
    "RunStatus": {
      "enum": [
        "pending",
        "running",
        "paused",
        "succeeded",
        "failed",
        "cancelled"
      ],
      "title": "RunStatus",
      "type": "string"
    }
  }
}