{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/gloat/json-schema/gloat-dag-trigger-response-model-schema.json",
  "title": "DagTriggerResponseModel",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/gloat-data-direct-api-openapi.yml#/components/schemas/DagTriggerResponseModel",
  "properties": {
    "flow": {
      "$ref": "#/$defs/DataDirectFlow"
    },
    "runs": {
      "items": {
        "$ref": "#/$defs/DagTriggerResultModel"
      },
      "type": "array",
      "title": "Runs"
    }
  },
  "type": "object",
  "required": [
    "flow",
    "runs"
  ],
  "$defs": {
    "DagTriggerResultModel": {
      "properties": {
        "dag_id": {
          "type": "string",
          "title": "Dag Id"
        },
        "run_id": {
          "type": "string",
          "title": "Run Id"
        },
        "state": {
          "type": "string",
          "title": "State"
        },
        "newly_triggered": {
          "type": "boolean",
          "title": "Newly Triggered"
        }
      },
      "type": "object",
      "required": [
        "dag_id",
        "run_id",
        "state",
        "newly_triggered"
      ],
      "title": "DagTriggerResultModel"
    },
    "DataDirectFlow": {
      "type": "string",
      "enum": [
        "data-direct",
        "downloadable-reports"
      ],
      "title": "DataDirectFlow",
      "description": "Trigger-able MWAA flows (RADIOHEAD-73). Maps to staging dag_ids below."
    }
  }
}