From be6cccc2f0225239ec676f195921e2574a638390 Mon Sep 17 00:00:00 2001 From: ferruzzi Date: Fri, 18 Jul 2025 11:27:27 -0700 Subject: [PATCH] Revert "AIP-86: Add `deadline` to `DagResponse` (#51698)" This reverts commit 7c31bb5a --- .../api_fastapi/core_api/datamodels/dags.py | 2 - .../core_api/datamodels/deadline.py | 30 - .../core_api/openapi/_private_ui.yaml | 33 - .../openapi/v2-rest-api-generated.yaml | 41 - .../src/airflow/cli/commands/dag_command.py | 1 - .../ui/openapi-gen/requests/schemas.gen.ts | 13326 ++++++++-------- .../ui/openapi-gen/requests/types.gen.ts | 9033 +++++------ .../ui/src/pages/DagsList/DagCard.test.tsx | 1 - .../core_api/routes/public/test_dags.py | 2 - .../airflowctl/api/datamodels/generated.py | 13 - 10 files changed, 10944 insertions(+), 11538 deletions(-) delete mode 100644 airflow-core/src/airflow/api_fastapi/core_api/datamodels/deadline.py diff --git a/airflow-core/src/airflow/api_fastapi/core_api/datamodels/dags.py b/airflow-core/src/airflow/api_fastapi/core_api/datamodels/dags.py index 9b06657220e83..572b62b4818ce 100644 --- a/airflow-core/src/airflow/api_fastapi/core_api/datamodels/dags.py +++ b/airflow-core/src/airflow/api_fastapi/core_api/datamodels/dags.py @@ -35,7 +35,6 @@ from airflow.api_fastapi.core_api.base import BaseModel, StrictBaseModel from airflow.api_fastapi.core_api.datamodels.dag_tags import DagTagResponse from airflow.api_fastapi.core_api.datamodels.dag_versions import DagVersionResponse -from airflow.api_fastapi.core_api.datamodels.deadline import DeadlineAlertResponse from airflow.configuration import conf from airflow.models.dag_version import DagVersion @@ -68,7 +67,6 @@ class DAGResponse(BaseModel): relative_fileloc: str | None fileloc: str description: str | None - deadline: list[DeadlineAlertResponse] | None timetable_summary: str | None timetable_description: str | None tags: list[DagTagResponse] diff --git a/airflow-core/src/airflow/api_fastapi/core_api/datamodels/deadline.py b/airflow-core/src/airflow/api_fastapi/core_api/datamodels/deadline.py deleted file mode 100644 index 704c218208e4f..0000000000000 --- a/airflow-core/src/airflow/api_fastapi/core_api/datamodels/deadline.py +++ /dev/null @@ -1,30 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -from __future__ import annotations - -from datetime import timedelta - -from airflow.api_fastapi.core_api.base import BaseModel - - -class DeadlineAlertResponse(BaseModel): - """Deadline alert serializer for responses.""" - - reference: str - interval: timedelta - callback: str - callback_kwargs: dict | None = None diff --git a/airflow-core/src/airflow/api_fastapi/core_api/openapi/_private_ui.yaml b/airflow-core/src/airflow/api_fastapi/core_api/openapi/_private_ui.yaml index 450cdc3036e28..56830be4ac56a 100644 --- a/airflow-core/src/airflow/api_fastapi/core_api/openapi/_private_ui.yaml +++ b/airflow-core/src/airflow/api_fastapi/core_api/openapi/_private_ui.yaml @@ -1352,13 +1352,6 @@ components: - type: string - type: 'null' title: Description - deadline: - anyOf: - - items: - $ref: '#/components/schemas/DeadlineAlertResponse' - type: array - - type: 'null' - title: Deadline timetable_summary: anyOf: - type: string @@ -1449,7 +1442,6 @@ components: - relative_fileloc - fileloc - description - - deadline - timetable_summary - timetable_description - tags @@ -1589,31 +1581,6 @@ components: - queued_dag_count title: DashboardDagStatsResponse description: Dashboard DAG Stats serializer for responses. - DeadlineAlertResponse: - properties: - reference: - type: string - title: Reference - interval: - type: string - format: duration - title: Interval - callback: - type: string - title: Callback - callback_kwargs: - anyOf: - - additionalProperties: true - type: object - - type: 'null' - title: Callback Kwargs - type: object - required: - - reference - - interval - - callback - title: DeadlineAlertResponse - description: Deadline alert serializer for responses. EdgeResponse: properties: source_id: diff --git a/airflow-core/src/airflow/api_fastapi/core_api/openapi/v2-rest-api-generated.yaml b/airflow-core/src/airflow/api_fastapi/core_api/openapi/v2-rest-api-generated.yaml index f2fb07734e9e4..e2eae09e5c6f8 100644 --- a/airflow-core/src/airflow/api_fastapi/core_api/openapi/v2-rest-api-generated.yaml +++ b/airflow-core/src/airflow/api_fastapi/core_api/openapi/v2-rest-api-generated.yaml @@ -8670,13 +8670,6 @@ components: - type: string - type: 'null' title: Description - deadline: - anyOf: - - items: - $ref: '#/components/schemas/DeadlineAlertResponse' - type: array - - type: 'null' - title: Deadline timetable_summary: anyOf: - type: string @@ -8844,7 +8837,6 @@ components: - relative_fileloc - fileloc - description - - deadline - timetable_summary - timetable_description - tags @@ -8936,13 +8928,6 @@ components: - type: string - type: 'null' title: Description - deadline: - anyOf: - - items: - $ref: '#/components/schemas/DeadlineAlertResponse' - type: array - - type: 'null' - title: Deadline timetable_summary: anyOf: - type: string @@ -9022,7 +9007,6 @@ components: - relative_fileloc - fileloc - description - - deadline - timetable_summary - timetable_description - tags @@ -9641,31 +9625,6 @@ components: This is the set of allowable values for the ``warning_type`` field in the DagWarning model.' - DeadlineAlertResponse: - properties: - reference: - type: string - title: Reference - interval: - type: string - format: duration - title: Interval - callback: - type: string - title: Callback - callback_kwargs: - anyOf: - - additionalProperties: true - type: object - - type: 'null' - title: Callback Kwargs - type: object - required: - - reference - - interval - - callback - title: DeadlineAlertResponse - description: Deadline alert serializer for responses. DryRunBackfillCollectionResponse: properties: backfills: diff --git a/airflow-core/src/airflow/cli/commands/dag_command.py b/airflow-core/src/airflow/cli/commands/dag_command.py index 4553b5c57c2de..f23c52321f9a9 100644 --- a/airflow-core/src/airflow/cli/commands/dag_command.py +++ b/airflow-core/src/airflow/cli/commands/dag_command.py @@ -259,7 +259,6 @@ def _get_dagbag_dag_details(dag: DAG) -> dict: "next_dagrun_data_interval_end": None, "next_dagrun_logical_date": None, "next_dagrun_run_after": None, - "deadline": None, } diff --git a/airflow-core/src/airflow/ui/openapi-gen/requests/schemas.gen.ts b/airflow-core/src/airflow/ui/openapi-gen/requests/schemas.gen.ts index a26e0d4960182..56bb0fe4f1bff 100644 --- a/airflow-core/src/airflow/ui/openapi-gen/requests/schemas.gen.ts +++ b/airflow-core/src/airflow/ui/openapi-gen/requests/schemas.gen.ts @@ -1,7470 +1,7468 @@ // This file is auto-generated by @hey-api/openapi-ts export const $AppBuilderMenuItemResponse = { - properties: { - name: { - type: 'string', - title: 'Name' + properties: { + name: { + type: "string", + title: "Name", + }, + href: { + anyOf: [ + { + type: "string", }, - href: { - type: 'string', - title: 'Href' + { + type: "null", }, - category: { - anyOf: [ - { - type: 'string' - }, - { - type: 'null' - } - ], - title: 'Category' - } + ], + title: "Href", + }, + category: { + anyOf: [ + { + type: "string", + }, + { + type: "null", + }, + ], + title: "Category", }, - additionalProperties: true, - type: 'object', - required: ['name', 'href'], - title: 'AppBuilderMenuItemResponse', - description: 'Serializer for AppBuilder Menu Item responses.' + }, + additionalProperties: true, + type: "object", + required: ["name"], + title: "AppBuilderMenuItemResponse", + description: "Serializer for AppBuilder Menu Item responses.", } as const; export const $AppBuilderViewResponse = { - properties: { - name: { - anyOf: [ - { - type: 'string' - }, - { - type: 'null' - } - ], - title: 'Name' + properties: { + name: { + anyOf: [ + { + type: "string", }, - category: { - anyOf: [ - { - type: 'string' - }, - { - type: 'null' - } - ], - title: 'Category' + { + type: "null", }, - view: { - anyOf: [ - { - type: 'string' - }, - { - type: 'null' - } - ], - title: 'View' + ], + title: "Name", + }, + category: { + anyOf: [ + { + type: "string", }, - label: { - anyOf: [ - { - type: 'string' - }, - { - type: 'null' - } - ], - title: 'Label' - } + { + type: "null", + }, + ], + title: "Category", }, - additionalProperties: true, - type: 'object', - title: 'AppBuilderViewResponse', - description: 'Serializer for AppBuilder View responses.' + view: { + anyOf: [ + { + type: "string", + }, + { + type: "null", + }, + ], + title: "View", + }, + label: { + anyOf: [ + { + type: "string", + }, + { + type: "null", + }, + ], + title: "Label", + }, + }, + additionalProperties: true, + type: "object", + title: "AppBuilderViewResponse", + description: "Serializer for AppBuilder View responses.", } as const; export const $AssetAliasCollectionResponse = { - properties: { - asset_aliases: { - items: { - '$ref': '#/components/schemas/AssetAliasResponse' - }, - type: 'array', - title: 'Asset Aliases' - }, - total_entries: { - type: 'integer', - title: 'Total Entries' - } + properties: { + asset_aliases: { + items: { + $ref: "#/components/schemas/AssetAliasResponse", + }, + type: "array", + title: "Asset Aliases", }, - type: 'object', - required: ['asset_aliases', 'total_entries'], - title: 'AssetAliasCollectionResponse', - description: 'Asset alias collection response.' + total_entries: { + type: "integer", + title: "Total Entries", + }, + }, + type: "object", + required: ["asset_aliases", "total_entries"], + title: "AssetAliasCollectionResponse", + description: "Asset alias collection response.", } as const; export const $AssetAliasResponse = { - properties: { - id: { - type: 'integer', - title: 'Id' - }, - name: { - type: 'string', - title: 'Name' - }, - group: { - type: 'string', - title: 'Group' - } + properties: { + id: { + type: "integer", + title: "Id", + }, + name: { + type: "string", + title: "Name", }, - type: 'object', - required: ['id', 'name', 'group'], - title: 'AssetAliasResponse', - description: 'Asset alias serializer for responses.' + group: { + type: "string", + title: "Group", + }, + }, + type: "object", + required: ["id", "name", "group"], + title: "AssetAliasResponse", + description: "Asset alias serializer for responses.", } as const; export const $AssetCollectionResponse = { - properties: { - assets: { - items: { - '$ref': '#/components/schemas/AssetResponse' - }, - type: 'array', - title: 'Assets' - }, - total_entries: { - type: 'integer', - title: 'Total Entries' - } + properties: { + assets: { + items: { + $ref: "#/components/schemas/AssetResponse", + }, + type: "array", + title: "Assets", + }, + total_entries: { + type: "integer", + title: "Total Entries", }, - type: 'object', - required: ['assets', 'total_entries'], - title: 'AssetCollectionResponse', - description: 'Asset collection response.' + }, + type: "object", + required: ["assets", "total_entries"], + title: "AssetCollectionResponse", + description: "Asset collection response.", } as const; export const $AssetEventCollectionResponse = { - properties: { - asset_events: { - items: { - '$ref': '#/components/schemas/AssetEventResponse' - }, - type: 'array', - title: 'Asset Events' - }, - total_entries: { - type: 'integer', - title: 'Total Entries' - } + properties: { + asset_events: { + items: { + $ref: "#/components/schemas/AssetEventResponse", + }, + type: "array", + title: "Asset Events", }, - type: 'object', - required: ['asset_events', 'total_entries'], - title: 'AssetEventCollectionResponse', - description: 'Asset event collection response.' + total_entries: { + type: "integer", + title: "Total Entries", + }, + }, + type: "object", + required: ["asset_events", "total_entries"], + title: "AssetEventCollectionResponse", + description: "Asset event collection response.", } as const; export const $AssetEventResponse = { - properties: { - id: { - type: 'integer', - title: 'Id' - }, - asset_id: { - type: 'integer', - title: 'Asset Id' - }, - uri: { - anyOf: [ - { - type: 'string' - }, - { - type: 'null' - } - ], - title: 'Uri' - }, - name: { - anyOf: [ - { - type: 'string' - }, - { - type: 'null' - } - ], - title: 'Name' - }, - group: { - anyOf: [ - { - type: 'string' - }, - { - type: 'null' - } - ], - title: 'Group' - }, - extra: { - anyOf: [ - { - additionalProperties: true, - type: 'object' - }, - { - type: 'null' - } - ], - title: 'Extra' - }, - source_task_id: { - anyOf: [ - { - type: 'string' - }, - { - type: 'null' - } - ], - title: 'Source Task Id' - }, - source_dag_id: { - anyOf: [ - { - type: 'string' - }, - { - type: 'null' - } - ], - title: 'Source Dag Id' + properties: { + id: { + type: "integer", + title: "Id", + }, + asset_id: { + type: "integer", + title: "Asset Id", + }, + uri: { + anyOf: [ + { + type: "string", }, - source_run_id: { - anyOf: [ - { - type: 'string' - }, - { - type: 'null' - } - ], - title: 'Source Run Id' + { + type: "null", }, - source_map_index: { - type: 'integer', - title: 'Source Map Index' + ], + title: "Uri", + }, + name: { + anyOf: [ + { + type: "string", }, - created_dagruns: { - items: { - '$ref': '#/components/schemas/DagRunAssetReference' - }, - type: 'array', - title: 'Created Dagruns' + { + type: "null", }, - timestamp: { - type: 'string', - format: 'date-time', - title: 'Timestamp' - } + ], + title: "Name", }, - type: 'object', - required: ['id', 'asset_id', 'source_map_index', 'created_dagruns', 'timestamp'], - title: 'AssetEventResponse', - description: 'Asset event serializer for responses.' -} as const; - -export const $AssetResponse = { - properties: { - id: { - type: 'integer', - title: 'Id' - }, - name: { - type: 'string', - title: 'Name' + group: { + anyOf: [ + { + type: "string", }, - uri: { - type: 'string', - title: 'Uri' + { + type: "null", }, - group: { - type: 'string', - title: 'Group' + ], + title: "Group", + }, + extra: { + anyOf: [ + { + additionalProperties: true, + type: "object", }, - extra: { - anyOf: [ - { - additionalProperties: true, - type: 'object' - }, - { - type: 'null' - } - ], - title: 'Extra' + { + type: "null", }, - created_at: { - type: 'string', - format: 'date-time', - title: 'Created At' + ], + title: "Extra", + }, + source_task_id: { + anyOf: [ + { + type: "string", }, - updated_at: { - type: 'string', - format: 'date-time', - title: 'Updated At' + { + type: "null", }, - scheduled_dags: { - items: { - '$ref': '#/components/schemas/DagScheduleAssetReference' - }, - type: 'array', - title: 'Scheduled Dags' + ], + title: "Source Task Id", + }, + source_dag_id: { + anyOf: [ + { + type: "string", }, - producing_tasks: { - items: { - '$ref': '#/components/schemas/TaskOutletAssetReference' - }, - type: 'array', - title: 'Producing Tasks' + { + type: "null", }, - consuming_tasks: { - items: { - '$ref': '#/components/schemas/TaskInletAssetReference' - }, - type: 'array', - title: 'Consuming Tasks' + ], + title: "Source Dag Id", + }, + source_run_id: { + anyOf: [ + { + type: "string", }, - aliases: { - items: { - '$ref': '#/components/schemas/AssetAliasResponse' - }, - type: 'array', - title: 'Aliases' + { + type: "null", }, - last_asset_event: { - anyOf: [ - { - '$ref': '#/components/schemas/LastAssetEventResponse' - }, - { - type: 'null' - } - ] - } + ], + title: "Source Run Id", + }, + source_map_index: { + type: "integer", + title: "Source Map Index", }, - type: 'object', - required: ['id', 'name', 'uri', 'group', 'created_at', 'updated_at', 'scheduled_dags', 'producing_tasks', 'consuming_tasks', 'aliases'], - title: 'AssetResponse', - description: 'Asset serializer for responses.' + created_dagruns: { + items: { + $ref: "#/components/schemas/DagRunAssetReference", + }, + type: "array", + title: "Created Dagruns", + }, + timestamp: { + type: "string", + format: "date-time", + title: "Timestamp", + }, + }, + type: "object", + required: ["id", "asset_id", "source_map_index", "created_dagruns", "timestamp"], + title: "AssetEventResponse", + description: "Asset event serializer for responses.", +} as const; + +export const $AssetResponse = { + properties: { + id: { + type: "integer", + title: "Id", + }, + name: { + type: "string", + title: "Name", + }, + uri: { + type: "string", + title: "Uri", + }, + group: { + type: "string", + title: "Group", + }, + extra: { + anyOf: [ + { + additionalProperties: true, + type: "object", + }, + { + type: "null", + }, + ], + title: "Extra", + }, + created_at: { + type: "string", + format: "date-time", + title: "Created At", + }, + updated_at: { + type: "string", + format: "date-time", + title: "Updated At", + }, + consuming_dags: { + items: { + $ref: "#/components/schemas/DagScheduleAssetReference", + }, + type: "array", + title: "Consuming Dags", + }, + producing_tasks: { + items: { + $ref: "#/components/schemas/TaskOutletAssetReference", + }, + type: "array", + title: "Producing Tasks", + }, + aliases: { + items: { + $ref: "#/components/schemas/AssetAliasResponse", + }, + type: "array", + title: "Aliases", + }, + last_asset_event: { + anyOf: [ + { + $ref: "#/components/schemas/LastAssetEventResponse", + }, + { + type: "null", + }, + ], + }, + }, + type: "object", + required: [ + "id", + "name", + "uri", + "group", + "created_at", + "updated_at", + "consuming_dags", + "producing_tasks", + "aliases", + ], + title: "AssetResponse", + description: "Asset serializer for responses.", } as const; export const $BackfillCollectionResponse = { - properties: { - backfills: { - items: { - '$ref': '#/components/schemas/BackfillResponse' - }, - type: 'array', - title: 'Backfills' - }, - total_entries: { - type: 'integer', - title: 'Total Entries' - } + properties: { + backfills: { + items: { + $ref: "#/components/schemas/BackfillResponse", + }, + type: "array", + title: "Backfills", + }, + total_entries: { + type: "integer", + title: "Total Entries", }, - type: 'object', - required: ['backfills', 'total_entries'], - title: 'BackfillCollectionResponse', - description: 'Backfill Collection serializer for responses.' + }, + type: "object", + required: ["backfills", "total_entries"], + title: "BackfillCollectionResponse", + description: "Backfill Collection serializer for responses.", } as const; export const $BackfillPostBody = { - properties: { - dag_id: { - type: 'string', - title: 'Dag Id' - }, - from_date: { - type: 'string', - format: 'date-time', - title: 'From Date' - }, - to_date: { - type: 'string', - format: 'date-time', - title: 'To Date' - }, - run_backwards: { - type: 'boolean', - title: 'Run Backwards', - default: false - }, - dag_run_conf: { - additionalProperties: true, - type: 'object', - title: 'Dag Run Conf', - default: {} - }, - reprocess_behavior: { - '$ref': '#/components/schemas/ReprocessBehavior', - default: 'none' - }, - max_active_runs: { - type: 'integer', - title: 'Max Active Runs', - default: 10 - } - }, - additionalProperties: false, - type: 'object', - required: ['dag_id', 'from_date', 'to_date'], - title: 'BackfillPostBody', - description: 'Object used for create backfill request.' + properties: { + dag_id: { + type: "string", + title: "Dag Id", + }, + from_date: { + type: "string", + format: "date-time", + title: "From Date", + }, + to_date: { + type: "string", + format: "date-time", + title: "To Date", + }, + run_backwards: { + type: "boolean", + title: "Run Backwards", + default: false, + }, + dag_run_conf: { + additionalProperties: true, + type: "object", + title: "Dag Run Conf", + default: {}, + }, + reprocess_behavior: { + $ref: "#/components/schemas/ReprocessBehavior", + default: "none", + }, + max_active_runs: { + type: "integer", + title: "Max Active Runs", + default: 10, + }, + }, + additionalProperties: false, + type: "object", + required: ["dag_id", "from_date", "to_date"], + title: "BackfillPostBody", + description: "Object used for create backfill request.", } as const; export const $BackfillResponse = { - properties: { - id: { - type: 'integer', - minimum: 0, - title: 'Id' - }, - dag_id: { - type: 'string', - title: 'Dag Id' - }, - from_date: { - type: 'string', - format: 'date-time', - title: 'From Date' - }, - to_date: { - type: 'string', - format: 'date-time', - title: 'To Date' - }, - dag_run_conf: { - additionalProperties: true, - type: 'object', - title: 'Dag Run Conf' - }, - is_paused: { - type: 'boolean', - title: 'Is Paused' - }, - reprocess_behavior: { - '$ref': '#/components/schemas/ReprocessBehavior' - }, - max_active_runs: { - type: 'integer', - title: 'Max Active Runs' - }, - created_at: { - type: 'string', - format: 'date-time', - title: 'Created At' - }, - completed_at: { - anyOf: [ - { - type: 'string', - format: 'date-time' - }, - { - type: 'null' - } - ], - title: 'Completed At' - }, - updated_at: { - type: 'string', - format: 'date-time', - title: 'Updated At' - }, - dag_display_name: { - type: 'string', - title: 'Dag Display Name' - } - }, - type: 'object', - required: ['id', 'dag_id', 'from_date', 'to_date', 'dag_run_conf', 'is_paused', 'reprocess_behavior', 'max_active_runs', 'created_at', 'completed_at', 'updated_at', 'dag_display_name'], - title: 'BackfillResponse', - description: 'Base serializer for Backfill.' + properties: { + id: { + type: "integer", + minimum: 0, + title: "Id", + }, + dag_id: { + type: "string", + title: "Dag Id", + }, + from_date: { + type: "string", + format: "date-time", + title: "From Date", + }, + to_date: { + type: "string", + format: "date-time", + title: "To Date", + }, + dag_run_conf: { + additionalProperties: true, + type: "object", + title: "Dag Run Conf", + }, + is_paused: { + type: "boolean", + title: "Is Paused", + }, + reprocess_behavior: { + $ref: "#/components/schemas/ReprocessBehavior", + }, + max_active_runs: { + type: "integer", + title: "Max Active Runs", + }, + created_at: { + type: "string", + format: "date-time", + title: "Created At", + }, + completed_at: { + anyOf: [ + { + type: "string", + format: "date-time", + }, + { + type: "null", + }, + ], + title: "Completed At", + }, + updated_at: { + type: "string", + format: "date-time", + title: "Updated At", + }, + dag_display_name: { + type: "string", + title: "Dag Display Name", + }, + }, + type: "object", + required: [ + "id", + "dag_id", + "from_date", + "to_date", + "dag_run_conf", + "is_paused", + "reprocess_behavior", + "max_active_runs", + "created_at", + "completed_at", + "updated_at", + "dag_display_name", + ], + title: "BackfillResponse", + description: "Base serializer for Backfill.", } as const; export const $BaseInfoResponse = { - properties: { - status: { - anyOf: [ - { - type: 'string' - }, - { - type: 'null' - } - ], - title: 'Status' - } + properties: { + status: { + anyOf: [ + { + type: "string", + }, + { + type: "null", + }, + ], + title: "Status", }, - type: 'object', - required: ['status'], - title: 'BaseInfoResponse', - description: 'Base info serializer for responses.' + }, + type: "object", + required: ["status"], + title: "BaseInfoResponse", + description: "Base info serializer for responses.", } as const; export const $BulkActionNotOnExistence = { - type: 'string', - enum: ['fail', 'skip'], - title: 'BulkActionNotOnExistence', - description: 'Bulk Action to be taken if the entity does not exist.' + type: "string", + enum: ["fail", "skip"], + title: "BulkActionNotOnExistence", + description: "Bulk Action to be taken if the entity does not exist.", } as const; export const $BulkActionOnExistence = { - type: 'string', - enum: ['fail', 'skip', 'overwrite'], - title: 'BulkActionOnExistence', - description: 'Bulk Action to be taken if the entity already exists or not.' + type: "string", + enum: ["fail", "skip", "overwrite"], + title: "BulkActionOnExistence", + description: "Bulk Action to be taken if the entity already exists or not.", } as const; export const $BulkActionResponse = { - properties: { - success: { - items: { - type: 'string' - }, - type: 'array', - title: 'Success', - description: 'A list of unique id/key representing successful operations.', - default: [] - }, - errors: { - items: { - additionalProperties: true, - type: 'object' - }, - type: 'array', - title: 'Errors', - description: 'A list of errors encountered during the operation, each containing details about the issue.', - default: [] - } - }, - type: 'object', - title: 'BulkActionResponse', - description: `Serializer for individual bulk action responses. + properties: { + success: { + items: { + type: "string", + }, + type: "array", + title: "Success", + description: "A list of unique id/key representing successful operations.", + default: [], + }, + errors: { + items: { + additionalProperties: true, + type: "object", + }, + type: "array", + title: "Errors", + description: + "A list of errors encountered during the operation, each containing details about the issue.", + default: [], + }, + }, + type: "object", + title: "BulkActionResponse", + description: `Serializer for individual bulk action responses. Represents the outcome of a single bulk operation (create, update, or delete). The response includes a list of successful keys and any errors encountered during the operation. -This structure helps users understand which key actions succeeded and which failed.` +This structure helps users understand which key actions succeeded and which failed.`, } as const; export const $BulkBody_BulkTaskInstanceBody_ = { - properties: { - actions: { - items: { - oneOf: [ - { - '$ref': '#/components/schemas/BulkCreateAction_BulkTaskInstanceBody_' - }, - { - '$ref': '#/components/schemas/BulkUpdateAction_BulkTaskInstanceBody_' - }, - { - '$ref': '#/components/schemas/BulkDeleteAction_BulkTaskInstanceBody_' - } - ] - }, - type: 'array', - title: 'Actions' - } - }, - additionalProperties: false, - type: 'object', - required: ['actions'], - title: 'BulkBody[BulkTaskInstanceBody]' + properties: { + actions: { + items: { + oneOf: [ + { + $ref: "#/components/schemas/BulkCreateAction_BulkTaskInstanceBody_", + }, + { + $ref: "#/components/schemas/BulkUpdateAction_BulkTaskInstanceBody_", + }, + { + $ref: "#/components/schemas/BulkDeleteAction_BulkTaskInstanceBody_", + }, + ], + }, + type: "array", + title: "Actions", + }, + }, + additionalProperties: false, + type: "object", + required: ["actions"], + title: "BulkBody[BulkTaskInstanceBody]", } as const; export const $BulkBody_ConnectionBody_ = { - properties: { - actions: { - items: { - oneOf: [ - { - '$ref': '#/components/schemas/BulkCreateAction_ConnectionBody_' - }, - { - '$ref': '#/components/schemas/BulkUpdateAction_ConnectionBody_' - }, - { - '$ref': '#/components/schemas/BulkDeleteAction_ConnectionBody_' - } - ] - }, - type: 'array', - title: 'Actions' - } - }, - additionalProperties: false, - type: 'object', - required: ['actions'], - title: 'BulkBody[ConnectionBody]' + properties: { + actions: { + items: { + oneOf: [ + { + $ref: "#/components/schemas/BulkCreateAction_ConnectionBody_", + }, + { + $ref: "#/components/schemas/BulkUpdateAction_ConnectionBody_", + }, + { + $ref: "#/components/schemas/BulkDeleteAction_ConnectionBody_", + }, + ], + }, + type: "array", + title: "Actions", + }, + }, + additionalProperties: false, + type: "object", + required: ["actions"], + title: "BulkBody[ConnectionBody]", } as const; export const $BulkBody_PoolBody_ = { - properties: { - actions: { - items: { - oneOf: [ - { - '$ref': '#/components/schemas/BulkCreateAction_PoolBody_' - }, - { - '$ref': '#/components/schemas/BulkUpdateAction_PoolBody_' - }, - { - '$ref': '#/components/schemas/BulkDeleteAction_PoolBody_' - } - ] - }, - type: 'array', - title: 'Actions' - } - }, - additionalProperties: false, - type: 'object', - required: ['actions'], - title: 'BulkBody[PoolBody]' + properties: { + actions: { + items: { + oneOf: [ + { + $ref: "#/components/schemas/BulkCreateAction_PoolBody_", + }, + { + $ref: "#/components/schemas/BulkUpdateAction_PoolBody_", + }, + { + $ref: "#/components/schemas/BulkDeleteAction_PoolBody_", + }, + ], + }, + type: "array", + title: "Actions", + }, + }, + additionalProperties: false, + type: "object", + required: ["actions"], + title: "BulkBody[PoolBody]", } as const; export const $BulkBody_VariableBody_ = { - properties: { - actions: { - items: { - oneOf: [ - { - '$ref': '#/components/schemas/BulkCreateAction_VariableBody_' - }, - { - '$ref': '#/components/schemas/BulkUpdateAction_VariableBody_' - }, - { - '$ref': '#/components/schemas/BulkDeleteAction_VariableBody_' - } - ] - }, - type: 'array', - title: 'Actions' - } - }, - additionalProperties: false, - type: 'object', - required: ['actions'], - title: 'BulkBody[VariableBody]' + properties: { + actions: { + items: { + oneOf: [ + { + $ref: "#/components/schemas/BulkCreateAction_VariableBody_", + }, + { + $ref: "#/components/schemas/BulkUpdateAction_VariableBody_", + }, + { + $ref: "#/components/schemas/BulkDeleteAction_VariableBody_", + }, + ], + }, + type: "array", + title: "Actions", + }, + }, + additionalProperties: false, + type: "object", + required: ["actions"], + title: "BulkBody[VariableBody]", } as const; export const $BulkCreateAction_BulkTaskInstanceBody_ = { - properties: { - action: { - type: 'string', - const: 'create', - title: 'Action', - description: 'The action to be performed on the entities.' - }, - entities: { - items: { - '$ref': '#/components/schemas/BulkTaskInstanceBody' - }, - type: 'array', - title: 'Entities', - description: 'A list of entities to be created.' - }, - action_on_existence: { - '$ref': '#/components/schemas/BulkActionOnExistence', - default: 'fail' - } - }, - additionalProperties: false, - type: 'object', - required: ['action', 'entities'], - title: 'BulkCreateAction[BulkTaskInstanceBody]' + properties: { + action: { + type: "string", + const: "create", + title: "Action", + description: "The action to be performed on the entities.", + }, + entities: { + items: { + $ref: "#/components/schemas/BulkTaskInstanceBody", + }, + type: "array", + title: "Entities", + description: "A list of entities to be created.", + }, + action_on_existence: { + $ref: "#/components/schemas/BulkActionOnExistence", + default: "fail", + }, + }, + additionalProperties: false, + type: "object", + required: ["action", "entities"], + title: "BulkCreateAction[BulkTaskInstanceBody]", } as const; export const $BulkCreateAction_ConnectionBody_ = { - properties: { - action: { - type: 'string', - const: 'create', - title: 'Action', - description: 'The action to be performed on the entities.' - }, - entities: { - items: { - '$ref': '#/components/schemas/ConnectionBody' - }, - type: 'array', - title: 'Entities', - description: 'A list of entities to be created.' - }, - action_on_existence: { - '$ref': '#/components/schemas/BulkActionOnExistence', - default: 'fail' - } - }, - additionalProperties: false, - type: 'object', - required: ['action', 'entities'], - title: 'BulkCreateAction[ConnectionBody]' + properties: { + action: { + type: "string", + const: "create", + title: "Action", + description: "The action to be performed on the entities.", + }, + entities: { + items: { + $ref: "#/components/schemas/ConnectionBody", + }, + type: "array", + title: "Entities", + description: "A list of entities to be created.", + }, + action_on_existence: { + $ref: "#/components/schemas/BulkActionOnExistence", + default: "fail", + }, + }, + additionalProperties: false, + type: "object", + required: ["action", "entities"], + title: "BulkCreateAction[ConnectionBody]", } as const; export const $BulkCreateAction_PoolBody_ = { - properties: { - action: { - type: 'string', - const: 'create', - title: 'Action', - description: 'The action to be performed on the entities.' - }, - entities: { - items: { - '$ref': '#/components/schemas/PoolBody' - }, - type: 'array', - title: 'Entities', - description: 'A list of entities to be created.' - }, - action_on_existence: { - '$ref': '#/components/schemas/BulkActionOnExistence', - default: 'fail' - } - }, - additionalProperties: false, - type: 'object', - required: ['action', 'entities'], - title: 'BulkCreateAction[PoolBody]' + properties: { + action: { + type: "string", + const: "create", + title: "Action", + description: "The action to be performed on the entities.", + }, + entities: { + items: { + $ref: "#/components/schemas/PoolBody", + }, + type: "array", + title: "Entities", + description: "A list of entities to be created.", + }, + action_on_existence: { + $ref: "#/components/schemas/BulkActionOnExistence", + default: "fail", + }, + }, + additionalProperties: false, + type: "object", + required: ["action", "entities"], + title: "BulkCreateAction[PoolBody]", } as const; export const $BulkCreateAction_VariableBody_ = { - properties: { - action: { - type: 'string', - const: 'create', - title: 'Action', - description: 'The action to be performed on the entities.' - }, - entities: { - items: { - '$ref': '#/components/schemas/VariableBody' - }, - type: 'array', - title: 'Entities', - description: 'A list of entities to be created.' - }, - action_on_existence: { - '$ref': '#/components/schemas/BulkActionOnExistence', - default: 'fail' - } - }, - additionalProperties: false, - type: 'object', - required: ['action', 'entities'], - title: 'BulkCreateAction[VariableBody]' + properties: { + action: { + type: "string", + const: "create", + title: "Action", + description: "The action to be performed on the entities.", + }, + entities: { + items: { + $ref: "#/components/schemas/VariableBody", + }, + type: "array", + title: "Entities", + description: "A list of entities to be created.", + }, + action_on_existence: { + $ref: "#/components/schemas/BulkActionOnExistence", + default: "fail", + }, + }, + additionalProperties: false, + type: "object", + required: ["action", "entities"], + title: "BulkCreateAction[VariableBody]", } as const; export const $BulkDeleteAction_BulkTaskInstanceBody_ = { - properties: { - action: { - type: 'string', - const: 'delete', - title: 'Action', - description: 'The action to be performed on the entities.' - }, - entities: { - items: { - type: 'string' - }, - type: 'array', - title: 'Entities', - description: 'A list of entity id/key to be deleted.' - }, - action_on_non_existence: { - '$ref': '#/components/schemas/BulkActionNotOnExistence', - default: 'fail' - } - }, - additionalProperties: false, - type: 'object', - required: ['action', 'entities'], - title: 'BulkDeleteAction[BulkTaskInstanceBody]' + properties: { + action: { + type: "string", + const: "delete", + title: "Action", + description: "The action to be performed on the entities.", + }, + entities: { + items: { + type: "string", + }, + type: "array", + title: "Entities", + description: "A list of entity id/key to be deleted.", + }, + action_on_non_existence: { + $ref: "#/components/schemas/BulkActionNotOnExistence", + default: "fail", + }, + }, + additionalProperties: false, + type: "object", + required: ["action", "entities"], + title: "BulkDeleteAction[BulkTaskInstanceBody]", } as const; export const $BulkDeleteAction_ConnectionBody_ = { - properties: { - action: { - type: 'string', - const: 'delete', - title: 'Action', - description: 'The action to be performed on the entities.' - }, - entities: { - items: { - type: 'string' - }, - type: 'array', - title: 'Entities', - description: 'A list of entity id/key to be deleted.' - }, - action_on_non_existence: { - '$ref': '#/components/schemas/BulkActionNotOnExistence', - default: 'fail' - } - }, - additionalProperties: false, - type: 'object', - required: ['action', 'entities'], - title: 'BulkDeleteAction[ConnectionBody]' + properties: { + action: { + type: "string", + const: "delete", + title: "Action", + description: "The action to be performed on the entities.", + }, + entities: { + items: { + type: "string", + }, + type: "array", + title: "Entities", + description: "A list of entity id/key to be deleted.", + }, + action_on_non_existence: { + $ref: "#/components/schemas/BulkActionNotOnExistence", + default: "fail", + }, + }, + additionalProperties: false, + type: "object", + required: ["action", "entities"], + title: "BulkDeleteAction[ConnectionBody]", } as const; export const $BulkDeleteAction_PoolBody_ = { - properties: { - action: { - type: 'string', - const: 'delete', - title: 'Action', - description: 'The action to be performed on the entities.' - }, - entities: { - items: { - type: 'string' - }, - type: 'array', - title: 'Entities', - description: 'A list of entity id/key to be deleted.' - }, - action_on_non_existence: { - '$ref': '#/components/schemas/BulkActionNotOnExistence', - default: 'fail' - } - }, - additionalProperties: false, - type: 'object', - required: ['action', 'entities'], - title: 'BulkDeleteAction[PoolBody]' + properties: { + action: { + type: "string", + const: "delete", + title: "Action", + description: "The action to be performed on the entities.", + }, + entities: { + items: { + type: "string", + }, + type: "array", + title: "Entities", + description: "A list of entity id/key to be deleted.", + }, + action_on_non_existence: { + $ref: "#/components/schemas/BulkActionNotOnExistence", + default: "fail", + }, + }, + additionalProperties: false, + type: "object", + required: ["action", "entities"], + title: "BulkDeleteAction[PoolBody]", } as const; export const $BulkDeleteAction_VariableBody_ = { - properties: { - action: { - type: 'string', - const: 'delete', - title: 'Action', - description: 'The action to be performed on the entities.' - }, - entities: { - items: { - type: 'string' - }, - type: 'array', - title: 'Entities', - description: 'A list of entity id/key to be deleted.' - }, - action_on_non_existence: { - '$ref': '#/components/schemas/BulkActionNotOnExistence', - default: 'fail' - } - }, - additionalProperties: false, - type: 'object', - required: ['action', 'entities'], - title: 'BulkDeleteAction[VariableBody]' + properties: { + action: { + type: "string", + const: "delete", + title: "Action", + description: "The action to be performed on the entities.", + }, + entities: { + items: { + type: "string", + }, + type: "array", + title: "Entities", + description: "A list of entity id/key to be deleted.", + }, + action_on_non_existence: { + $ref: "#/components/schemas/BulkActionNotOnExistence", + default: "fail", + }, + }, + additionalProperties: false, + type: "object", + required: ["action", "entities"], + title: "BulkDeleteAction[VariableBody]", } as const; export const $BulkResponse = { - properties: { - create: { - anyOf: [ - { - '$ref': '#/components/schemas/BulkActionResponse' - }, - { - type: 'null' - } - ], - description: 'Details of the bulk create operation, including successful keys and errors.' + properties: { + create: { + anyOf: [ + { + $ref: "#/components/schemas/BulkActionResponse", }, - update: { - anyOf: [ - { - '$ref': '#/components/schemas/BulkActionResponse' - }, - { - type: 'null' - } - ], - description: 'Details of the bulk update operation, including successful keys and errors.' + { + type: "null", }, - delete: { - anyOf: [ - { - '$ref': '#/components/schemas/BulkActionResponse' - }, - { - type: 'null' - } - ], - description: 'Details of the bulk delete operation, including successful keys and errors.' - } + ], + description: "Details of the bulk create operation, including successful keys and errors.", + }, + update: { + anyOf: [ + { + $ref: "#/components/schemas/BulkActionResponse", + }, + { + type: "null", + }, + ], + description: "Details of the bulk update operation, including successful keys and errors.", + }, + delete: { + anyOf: [ + { + $ref: "#/components/schemas/BulkActionResponse", + }, + { + type: "null", + }, + ], + description: "Details of the bulk delete operation, including successful keys and errors.", }, - type: 'object', - title: 'BulkResponse', - description: `Serializer for responses to bulk entity operations. + }, + type: "object", + title: "BulkResponse", + description: `Serializer for responses to bulk entity operations. This represents the results of create, update, and delete actions performed on entity in bulk. Each action (if requested) is represented as a field containing details about successful keys and any encountered errors. -Fields are populated in the response only if the respective action was part of the request, else are set None.` +Fields are populated in the response only if the respective action was part of the request, else are set None.`, } as const; export const $BulkTaskInstanceBody = { - properties: { - new_state: { - anyOf: [ - { - '$ref': '#/components/schemas/TaskInstanceState' - }, - { - type: 'null' - } - ] - }, - note: { - anyOf: [ - { - type: 'string', - maxLength: 1000 - }, - { - type: 'null' - } - ], - title: 'Note' + properties: { + new_state: { + anyOf: [ + { + $ref: "#/components/schemas/TaskInstanceState", }, - include_upstream: { - type: 'boolean', - title: 'Include Upstream', - default: false + { + type: "null", }, - include_downstream: { - type: 'boolean', - title: 'Include Downstream', - default: false + ], + }, + note: { + anyOf: [ + { + type: "string", + maxLength: 1000, }, - include_future: { - type: 'boolean', - title: 'Include Future', - default: false + { + type: "null", }, - include_past: { - type: 'boolean', - title: 'Include Past', - default: false + ], + title: "Note", + }, + include_upstream: { + type: "boolean", + title: "Include Upstream", + default: false, + }, + include_downstream: { + type: "boolean", + title: "Include Downstream", + default: false, + }, + include_future: { + type: "boolean", + title: "Include Future", + default: false, + }, + include_past: { + type: "boolean", + title: "Include Past", + default: false, + }, + task_id: { + type: "string", + title: "Task Id", + }, + map_index: { + anyOf: [ + { + type: "integer", }, - task_id: { - type: 'string', - title: 'Task Id' + { + type: "null", }, - map_index: { - anyOf: [ - { - type: 'integer' - }, - { - type: 'null' - } - ], - title: 'Map Index' - } + ], + title: "Map Index", }, - additionalProperties: false, - type: 'object', - required: ['task_id'], - title: 'BulkTaskInstanceBody', - description: 'Request body for bulk update, and delete task instances.' + }, + additionalProperties: false, + type: "object", + required: ["task_id"], + title: "BulkTaskInstanceBody", + description: "Request body for bulk update, and delete task instances.", } as const; export const $BulkUpdateAction_BulkTaskInstanceBody_ = { - properties: { - action: { - type: 'string', - const: 'update', - title: 'Action', - description: 'The action to be performed on the entities.' - }, - entities: { - items: { - '$ref': '#/components/schemas/BulkTaskInstanceBody' - }, - type: 'array', - title: 'Entities', - description: 'A list of entities to be updated.' - }, - action_on_non_existence: { - '$ref': '#/components/schemas/BulkActionNotOnExistence', - default: 'fail' - } - }, - additionalProperties: false, - type: 'object', - required: ['action', 'entities'], - title: 'BulkUpdateAction[BulkTaskInstanceBody]' + properties: { + action: { + type: "string", + const: "update", + title: "Action", + description: "The action to be performed on the entities.", + }, + entities: { + items: { + $ref: "#/components/schemas/BulkTaskInstanceBody", + }, + type: "array", + title: "Entities", + description: "A list of entities to be updated.", + }, + action_on_non_existence: { + $ref: "#/components/schemas/BulkActionNotOnExistence", + default: "fail", + }, + }, + additionalProperties: false, + type: "object", + required: ["action", "entities"], + title: "BulkUpdateAction[BulkTaskInstanceBody]", } as const; export const $BulkUpdateAction_ConnectionBody_ = { - properties: { - action: { - type: 'string', - const: 'update', - title: 'Action', - description: 'The action to be performed on the entities.' - }, - entities: { - items: { - '$ref': '#/components/schemas/ConnectionBody' - }, - type: 'array', - title: 'Entities', - description: 'A list of entities to be updated.' - }, - action_on_non_existence: { - '$ref': '#/components/schemas/BulkActionNotOnExistence', - default: 'fail' - } - }, - additionalProperties: false, - type: 'object', - required: ['action', 'entities'], - title: 'BulkUpdateAction[ConnectionBody]' + properties: { + action: { + type: "string", + const: "update", + title: "Action", + description: "The action to be performed on the entities.", + }, + entities: { + items: { + $ref: "#/components/schemas/ConnectionBody", + }, + type: "array", + title: "Entities", + description: "A list of entities to be updated.", + }, + action_on_non_existence: { + $ref: "#/components/schemas/BulkActionNotOnExistence", + default: "fail", + }, + }, + additionalProperties: false, + type: "object", + required: ["action", "entities"], + title: "BulkUpdateAction[ConnectionBody]", } as const; export const $BulkUpdateAction_PoolBody_ = { - properties: { - action: { - type: 'string', - const: 'update', - title: 'Action', - description: 'The action to be performed on the entities.' - }, - entities: { - items: { - '$ref': '#/components/schemas/PoolBody' - }, - type: 'array', - title: 'Entities', - description: 'A list of entities to be updated.' - }, - action_on_non_existence: { - '$ref': '#/components/schemas/BulkActionNotOnExistence', - default: 'fail' - } - }, - additionalProperties: false, - type: 'object', - required: ['action', 'entities'], - title: 'BulkUpdateAction[PoolBody]' + properties: { + action: { + type: "string", + const: "update", + title: "Action", + description: "The action to be performed on the entities.", + }, + entities: { + items: { + $ref: "#/components/schemas/PoolBody", + }, + type: "array", + title: "Entities", + description: "A list of entities to be updated.", + }, + action_on_non_existence: { + $ref: "#/components/schemas/BulkActionNotOnExistence", + default: "fail", + }, + }, + additionalProperties: false, + type: "object", + required: ["action", "entities"], + title: "BulkUpdateAction[PoolBody]", } as const; export const $BulkUpdateAction_VariableBody_ = { - properties: { - action: { - type: 'string', - const: 'update', - title: 'Action', - description: 'The action to be performed on the entities.' - }, - entities: { - items: { - '$ref': '#/components/schemas/VariableBody' - }, - type: 'array', - title: 'Entities', - description: 'A list of entities to be updated.' - }, - action_on_non_existence: { - '$ref': '#/components/schemas/BulkActionNotOnExistence', - default: 'fail' - } - }, - additionalProperties: false, - type: 'object', - required: ['action', 'entities'], - title: 'BulkUpdateAction[VariableBody]' + properties: { + action: { + type: "string", + const: "update", + title: "Action", + description: "The action to be performed on the entities.", + }, + entities: { + items: { + $ref: "#/components/schemas/VariableBody", + }, + type: "array", + title: "Entities", + description: "A list of entities to be updated.", + }, + action_on_non_existence: { + $ref: "#/components/schemas/BulkActionNotOnExistence", + default: "fail", + }, + }, + additionalProperties: false, + type: "object", + required: ["action", "entities"], + title: "BulkUpdateAction[VariableBody]", } as const; export const $ClearTaskInstancesBody = { - properties: { - dry_run: { - type: 'boolean', - title: 'Dry Run', - default: true - }, - start_date: { - anyOf: [ - { - type: 'string', - format: 'date-time' - }, - { - type: 'null' - } - ], - title: 'Start Date' - }, - end_date: { - anyOf: [ - { - type: 'string', - format: 'date-time' - }, - { - type: 'null' - } - ], - title: 'End Date' - }, - only_failed: { - type: 'boolean', - title: 'Only Failed', - default: true - }, - only_running: { - type: 'boolean', - title: 'Only Running', - default: false - }, - reset_dag_runs: { - type: 'boolean', - title: 'Reset Dag Runs', - default: true - }, - task_ids: { - anyOf: [ - { - items: { - anyOf: [ - { - type: 'string' - }, - { - prefixItems: [ - { - type: 'string' - }, - { - type: 'integer' - } - ], - type: 'array', - maxItems: 2, - minItems: 2 - } - ] - }, - type: 'array' - }, - { - type: 'null' - } - ], - title: 'Task Ids' - }, - dag_run_id: { - anyOf: [ - { - type: 'string' - }, - { - type: 'null' - } - ], - title: 'Dag Run Id' - }, - include_upstream: { - type: 'boolean', - title: 'Include Upstream', - default: false - }, - include_downstream: { - type: 'boolean', - title: 'Include Downstream', - default: false - }, - include_future: { - type: 'boolean', - title: 'Include Future', - default: false - }, - include_past: { - type: 'boolean', - title: 'Include Past', - default: false - } - }, - additionalProperties: false, - type: 'object', - title: 'ClearTaskInstancesBody', - description: 'Request body for Clear Task Instances endpoint.' + properties: { + dry_run: { + type: "boolean", + title: "Dry Run", + default: true, + }, + start_date: { + anyOf: [ + { + type: "string", + format: "date-time", + }, + { + type: "null", + }, + ], + title: "Start Date", + }, + end_date: { + anyOf: [ + { + type: "string", + format: "date-time", + }, + { + type: "null", + }, + ], + title: "End Date", + }, + only_failed: { + type: "boolean", + title: "Only Failed", + default: true, + }, + only_running: { + type: "boolean", + title: "Only Running", + default: false, + }, + reset_dag_runs: { + type: "boolean", + title: "Reset Dag Runs", + default: true, + }, + task_ids: { + anyOf: [ + { + items: { + anyOf: [ + { + type: "string", + }, + { + prefixItems: [ + { + type: "string", + }, + { + type: "integer", + }, + ], + type: "array", + maxItems: 2, + minItems: 2, + }, + ], + }, + type: "array", + }, + { + type: "null", + }, + ], + title: "Task Ids", + }, + dag_run_id: { + anyOf: [ + { + type: "string", + }, + { + type: "null", + }, + ], + title: "Dag Run Id", + }, + include_upstream: { + type: "boolean", + title: "Include Upstream", + default: false, + }, + include_downstream: { + type: "boolean", + title: "Include Downstream", + default: false, + }, + include_future: { + type: "boolean", + title: "Include Future", + default: false, + }, + include_past: { + type: "boolean", + title: "Include Past", + default: false, + }, + }, + additionalProperties: false, + type: "object", + title: "ClearTaskInstancesBody", + description: "Request body for Clear Task Instances endpoint.", } as const; export const $Config = { - properties: { - sections: { - items: { - '$ref': '#/components/schemas/ConfigSection' - }, - type: 'array', - title: 'Sections' - } - }, - additionalProperties: false, - type: 'object', - required: ['sections'], - title: 'Config', - description: 'List of config sections with their options.' + properties: { + sections: { + items: { + $ref: "#/components/schemas/ConfigSection", + }, + type: "array", + title: "Sections", + }, + }, + additionalProperties: false, + type: "object", + required: ["sections"], + title: "Config", + description: "List of config sections with their options.", } as const; export const $ConfigOption = { - properties: { - key: { - type: 'string', - title: 'Key' + properties: { + key: { + type: "string", + title: "Key", + }, + value: { + anyOf: [ + { + type: "string", + }, + { + prefixItems: [ + { + type: "string", + }, + { + type: "string", + }, + ], + type: "array", + maxItems: 2, + minItems: 2, }, - value: { - anyOf: [ - { - type: 'string' - }, - { - prefixItems: [ - { - type: 'string' - }, - { - type: 'string' - } - ], - type: 'array', - maxItems: 2, - minItems: 2 - } - ], - title: 'Value' - } + ], + title: "Value", }, - additionalProperties: false, - type: 'object', - required: ['key', 'value'], - title: 'ConfigOption', - description: 'Config option.' + }, + additionalProperties: false, + type: "object", + required: ["key", "value"], + title: "ConfigOption", + description: "Config option.", } as const; export const $ConfigSection = { - properties: { - name: { - type: 'string', - title: 'Name' - }, - options: { - items: { - '$ref': '#/components/schemas/ConfigOption' - }, - type: 'array', - title: 'Options' - } - }, - additionalProperties: false, - type: 'object', - required: ['name', 'options'], - title: 'ConfigSection', - description: 'Config Section Schema.' + properties: { + name: { + type: "string", + title: "Name", + }, + options: { + items: { + $ref: "#/components/schemas/ConfigOption", + }, + type: "array", + title: "Options", + }, + }, + additionalProperties: false, + type: "object", + required: ["name", "options"], + title: "ConfigSection", + description: "Config Section Schema.", } as const; export const $ConnectionBody = { - properties: { - connection_id: { - type: 'string', - maxLength: 200, - pattern: '^[\\w.-]+$', - title: 'Connection Id' - }, - conn_type: { - type: 'string', - title: 'Conn Type' - }, - description: { - anyOf: [ - { - type: 'string' - }, - { - type: 'null' - } - ], - title: 'Description' + properties: { + connection_id: { + type: "string", + maxLength: 200, + pattern: "^[\\w.-]+$", + title: "Connection Id", + }, + conn_type: { + type: "string", + title: "Conn Type", + }, + description: { + anyOf: [ + { + type: "string", }, - host: { - anyOf: [ - { - type: 'string' - }, - { - type: 'null' - } - ], - title: 'Host' + { + type: "null", }, - login: { - anyOf: [ - { - type: 'string' - }, - { - type: 'null' - } - ], - title: 'Login' + ], + title: "Description", + }, + host: { + anyOf: [ + { + type: "string", }, - schema: { - anyOf: [ - { - type: 'string' - }, - { - type: 'null' - } - ], - title: 'Schema' + { + type: "null", }, - port: { - anyOf: [ - { - type: 'integer' - }, - { - type: 'null' - } - ], - title: 'Port' + ], + title: "Host", + }, + login: { + anyOf: [ + { + type: "string", }, - password: { - anyOf: [ - { - type: 'string' - }, - { - type: 'null' - } - ], - title: 'Password' + { + type: "null", }, - extra: { - anyOf: [ - { - type: 'string' - }, - { - type: 'null' - } - ], - title: 'Extra' - } + ], + title: "Login", + }, + schema: { + anyOf: [ + { + type: "string", + }, + { + type: "null", + }, + ], + title: "Schema", + }, + port: { + anyOf: [ + { + type: "integer", + }, + { + type: "null", + }, + ], + title: "Port", }, - additionalProperties: false, - type: 'object', - required: ['connection_id', 'conn_type'], - title: 'ConnectionBody', - description: 'Connection Serializer for requests body.' + password: { + anyOf: [ + { + type: "string", + }, + { + type: "null", + }, + ], + title: "Password", + }, + extra: { + anyOf: [ + { + type: "string", + }, + { + type: "null", + }, + ], + title: "Extra", + }, + }, + additionalProperties: false, + type: "object", + required: ["connection_id", "conn_type"], + title: "ConnectionBody", + description: "Connection Serializer for requests body.", } as const; export const $ConnectionCollectionResponse = { - properties: { - connections: { - items: { - '$ref': '#/components/schemas/ConnectionResponse' - }, - type: 'array', - title: 'Connections' - }, - total_entries: { - type: 'integer', - title: 'Total Entries' - } + properties: { + connections: { + items: { + $ref: "#/components/schemas/ConnectionResponse", + }, + type: "array", + title: "Connections", }, - type: 'object', - required: ['connections', 'total_entries'], - title: 'ConnectionCollectionResponse', - description: 'Connection Collection serializer for responses.' + total_entries: { + type: "integer", + title: "Total Entries", + }, + }, + type: "object", + required: ["connections", "total_entries"], + title: "ConnectionCollectionResponse", + description: "Connection Collection serializer for responses.", } as const; export const $ConnectionResponse = { - properties: { - connection_id: { - type: 'string', - title: 'Connection Id' + properties: { + connection_id: { + type: "string", + title: "Connection Id", + }, + conn_type: { + type: "string", + title: "Conn Type", + }, + description: { + anyOf: [ + { + type: "string", }, - conn_type: { - type: 'string', - title: 'Conn Type' + { + type: "null", }, - description: { - anyOf: [ - { - type: 'string' - }, - { - type: 'null' - } - ], - title: 'Description' + ], + title: "Description", + }, + host: { + anyOf: [ + { + type: "string", }, - host: { - anyOf: [ - { - type: 'string' - }, - { - type: 'null' - } - ], - title: 'Host' + { + type: "null", }, - login: { - anyOf: [ - { - type: 'string' - }, - { - type: 'null' - } - ], - title: 'Login' + ], + title: "Host", + }, + login: { + anyOf: [ + { + type: "string", }, - schema: { - anyOf: [ - { - type: 'string' - }, - { - type: 'null' - } - ], - title: 'Schema' + { + type: "null", }, - port: { - anyOf: [ - { - type: 'integer' - }, - { - type: 'null' - } - ], - title: 'Port' + ], + title: "Login", + }, + schema: { + anyOf: [ + { + type: "string", }, - password: { - anyOf: [ - { - type: 'string' - }, - { - type: 'null' - } - ], - title: 'Password' + { + type: "null", }, - extra: { - anyOf: [ - { - type: 'string' - }, - { - type: 'null' - } - ], - title: 'Extra' - } + ], + title: "Schema", + }, + port: { + anyOf: [ + { + type: "integer", + }, + { + type: "null", + }, + ], + title: "Port", + }, + password: { + anyOf: [ + { + type: "string", + }, + { + type: "null", + }, + ], + title: "Password", + }, + extra: { + anyOf: [ + { + type: "string", + }, + { + type: "null", + }, + ], + title: "Extra", }, - type: 'object', - required: ['connection_id', 'conn_type', 'description', 'host', 'login', 'schema', 'port', 'password', 'extra'], - title: 'ConnectionResponse', - description: 'Connection serializer for responses.' + }, + type: "object", + required: [ + "connection_id", + "conn_type", + "description", + "host", + "login", + "schema", + "port", + "password", + "extra", + ], + title: "ConnectionResponse", + description: "Connection serializer for responses.", } as const; export const $ConnectionTestResponse = { - properties: { - status: { - type: 'boolean', - title: 'Status' - }, - message: { - type: 'string', - title: 'Message' - } + properties: { + status: { + type: "boolean", + title: "Status", }, - type: 'object', - required: ['status', 'message'], - title: 'ConnectionTestResponse', - description: 'Connection Test serializer for responses.' + message: { + type: "string", + title: "Message", + }, + }, + type: "object", + required: ["status", "message"], + title: "ConnectionTestResponse", + description: "Connection Test serializer for responses.", } as const; export const $CreateAssetEventsBody = { - properties: { - asset_id: { - type: 'integer', - title: 'Asset Id' - }, - extra: { - additionalProperties: true, - type: 'object', - title: 'Extra' - } + properties: { + asset_id: { + type: "integer", + title: "Asset Id", }, - additionalProperties: false, - type: 'object', - required: ['asset_id'], - title: 'CreateAssetEventsBody', - description: 'Create asset events request.' + extra: { + additionalProperties: true, + type: "object", + title: "Extra", + }, + }, + additionalProperties: false, + type: "object", + required: ["asset_id"], + title: "CreateAssetEventsBody", + description: "Create asset events request.", } as const; export const $DAGCollectionResponse = { - properties: { - dags: { - items: { - '$ref': '#/components/schemas/DAGResponse' - }, - type: 'array', - title: 'Dags' - }, - total_entries: { - type: 'integer', - title: 'Total Entries' - } + properties: { + dags: { + items: { + $ref: "#/components/schemas/DAGResponse", + }, + type: "array", + title: "Dags", + }, + total_entries: { + type: "integer", + title: "Total Entries", }, - type: 'object', - required: ['dags', 'total_entries'], - title: 'DAGCollectionResponse', - description: 'DAG Collection serializer for responses.' + }, + type: "object", + required: ["dags", "total_entries"], + title: "DAGCollectionResponse", + description: "DAG Collection serializer for responses.", } as const; export const $DAGDetailsResponse = { - properties: { - dag_id: { - type: 'string', - title: 'Dag Id' - }, - dag_display_name: { - type: 'string', - title: 'Dag Display Name' - }, - is_paused: { - type: 'boolean', - title: 'Is Paused' - }, - is_stale: { - type: 'boolean', - title: 'Is Stale' - }, - last_parsed_time: { - anyOf: [ - { - type: 'string', - format: 'date-time' - }, - { - type: 'null' - } - ], - title: 'Last Parsed Time' - }, - last_expired: { - anyOf: [ - { - type: 'string', - format: 'date-time' - }, - { - type: 'null' - } - ], - title: 'Last Expired' - }, - bundle_name: { - anyOf: [ - { - type: 'string' - }, - { - type: 'null' - } - ], - title: 'Bundle Name' - }, - bundle_version: { - anyOf: [ - { - type: 'string' - }, - { - type: 'null' - } - ], - title: 'Bundle Version' - }, - relative_fileloc: { - anyOf: [ - { - type: 'string' - }, - { - type: 'null' - } - ], - title: 'Relative Fileloc' - }, - fileloc: { - type: 'string', - title: 'Fileloc' - }, - description: { - anyOf: [ - { - type: 'string' - }, - { - type: 'null' - } - ], - title: 'Description' - }, - deadline: { - anyOf: [ - { - items: { - '$ref': '#/components/schemas/DeadlineAlertResponse' - }, - type: 'array' - }, - { - type: 'null' - } - ], - title: 'Deadline' + properties: { + dag_id: { + type: "string", + title: "Dag Id", + }, + dag_display_name: { + type: "string", + title: "Dag Display Name", + }, + is_paused: { + type: "boolean", + title: "Is Paused", + }, + is_stale: { + type: "boolean", + title: "Is Stale", + }, + last_parsed_time: { + anyOf: [ + { + type: "string", + format: "date-time", }, - timetable_summary: { - anyOf: [ - { - type: 'string' - }, - { - type: 'null' - } - ], - title: 'Timetable Summary' + { + type: "null", }, - timetable_description: { - anyOf: [ - { - type: 'string' - }, - { - type: 'null' - } - ], - title: 'Timetable Description' + ], + title: "Last Parsed Time", + }, + last_expired: { + anyOf: [ + { + type: "string", + format: "date-time", }, - tags: { - items: { - '$ref': '#/components/schemas/DagTagResponse' - }, - type: 'array', - title: 'Tags' + { + type: "null", }, - max_active_tasks: { - type: 'integer', - title: 'Max Active Tasks' + ], + title: "Last Expired", + }, + bundle_name: { + anyOf: [ + { + type: "string", }, - max_active_runs: { - anyOf: [ - { - type: 'integer' - }, - { - type: 'null' - } - ], - title: 'Max Active Runs' + { + type: "null", }, - max_consecutive_failed_dag_runs: { - type: 'integer', - title: 'Max Consecutive Failed Dag Runs' + ], + title: "Bundle Name", + }, + bundle_version: { + anyOf: [ + { + type: "string", }, - has_task_concurrency_limits: { - type: 'boolean', - title: 'Has Task Concurrency Limits' + { + type: "null", }, - has_import_errors: { - type: 'boolean', - title: 'Has Import Errors' + ], + title: "Bundle Version", + }, + relative_fileloc: { + anyOf: [ + { + type: "string", }, - next_dagrun_logical_date: { - anyOf: [ - { - type: 'string', - format: 'date-time' - }, - { - type: 'null' - } - ], - title: 'Next Dagrun Logical Date' + { + type: "null", }, - next_dagrun_data_interval_start: { - anyOf: [ - { - type: 'string', - format: 'date-time' - }, - { - type: 'null' - } - ], - title: 'Next Dagrun Data Interval Start' + ], + title: "Relative Fileloc", + }, + fileloc: { + type: "string", + title: "Fileloc", + }, + description: { + anyOf: [ + { + type: "string", }, - next_dagrun_data_interval_end: { - anyOf: [ - { - type: 'string', - format: 'date-time' - }, - { - type: 'null' - } - ], - title: 'Next Dagrun Data Interval End' + { + type: "null", }, - next_dagrun_run_after: { - anyOf: [ - { - type: 'string', - format: 'date-time' - }, - { - type: 'null' - } - ], - title: 'Next Dagrun Run After' + ], + title: "Description", + }, + timetable_summary: { + anyOf: [ + { + type: "string", }, - owners: { - items: { - type: 'string' - }, - type: 'array', - title: 'Owners' + { + type: "null", }, - catchup: { - type: 'boolean', - title: 'Catchup' + ], + title: "Timetable Summary", + }, + timetable_description: { + anyOf: [ + { + type: "string", }, - dag_run_timeout: { - anyOf: [ - { - type: 'string', - format: 'duration' - }, - { - type: 'null' - } - ], - title: 'Dag Run Timeout' + { + type: "null", }, - asset_expression: { - anyOf: [ - { - additionalProperties: true, - type: 'object' - }, - { - type: 'null' - } - ], - title: 'Asset Expression' + ], + title: "Timetable Description", + }, + tags: { + items: { + $ref: "#/components/schemas/DagTagResponse", + }, + type: "array", + title: "Tags", + }, + max_active_tasks: { + type: "integer", + title: "Max Active Tasks", + }, + max_active_runs: { + anyOf: [ + { + type: "integer", }, - doc_md: { - anyOf: [ - { - type: 'string' - }, - { - type: 'null' - } - ], - title: 'Doc Md' + { + type: "null", }, - start_date: { - anyOf: [ - { - type: 'string', - format: 'date-time' - }, - { - type: 'null' - } - ], - title: 'Start Date' + ], + title: "Max Active Runs", + }, + max_consecutive_failed_dag_runs: { + type: "integer", + title: "Max Consecutive Failed Dag Runs", + }, + has_task_concurrency_limits: { + type: "boolean", + title: "Has Task Concurrency Limits", + }, + has_import_errors: { + type: "boolean", + title: "Has Import Errors", + }, + next_dagrun_logical_date: { + anyOf: [ + { + type: "string", + format: "date-time", }, - end_date: { - anyOf: [ - { - type: 'string', - format: 'date-time' - }, - { - type: 'null' - } - ], - title: 'End Date' + { + type: "null", }, - is_paused_upon_creation: { - anyOf: [ - { - type: 'boolean' - }, - { - type: 'null' - } - ], - title: 'Is Paused Upon Creation' + ], + title: "Next Dagrun Logical Date", + }, + next_dagrun_data_interval_start: { + anyOf: [ + { + type: "string", + format: "date-time", }, - params: { - anyOf: [ - { - additionalProperties: true, - type: 'object' - }, - { - type: 'null' - } - ], - title: 'Params' + { + type: "null", }, - render_template_as_native_obj: { - type: 'boolean', - title: 'Render Template As Native Obj' + ], + title: "Next Dagrun Data Interval Start", + }, + next_dagrun_data_interval_end: { + anyOf: [ + { + type: "string", + format: "date-time", }, - template_search_path: { - anyOf: [ - { - items: { - type: 'string' - }, - type: 'array' - }, - { - type: 'null' - } - ], - title: 'Template Search Path' + { + type: "null", }, - timezone: { - anyOf: [ - { - type: 'string' - }, - { - type: 'null' - } - ], - title: 'Timezone' + ], + title: "Next Dagrun Data Interval End", + }, + next_dagrun_run_after: { + anyOf: [ + { + type: "string", + format: "date-time", }, - last_parsed: { - anyOf: [ - { - type: 'string', - format: 'date-time' - }, - { - type: 'null' - } - ], - title: 'Last Parsed' + { + type: "null", }, - default_args: { - anyOf: [ - { - additionalProperties: true, - type: 'object' - }, - { - type: 'null' - } - ], - title: 'Default Args' + ], + title: "Next Dagrun Run After", + }, + owners: { + items: { + type: "string", + }, + type: "array", + title: "Owners", + }, + catchup: { + type: "boolean", + title: "Catchup", + }, + dag_run_timeout: { + anyOf: [ + { + type: "string", + format: "duration", + }, + { + type: "null", + }, + ], + title: "Dag Run Timeout", + }, + asset_expression: { + anyOf: [ + { + additionalProperties: true, + type: "object", }, - owner_links: { - anyOf: [ - { - additionalProperties: { - type: 'string' - }, - type: 'object' - }, - { - type: 'null' - } - ], - title: 'Owner Links' + { + type: "null", }, - file_token: { - type: 'string', - title: 'File Token', - description: 'Return file token.', - readOnly: true + ], + title: "Asset Expression", + }, + doc_md: { + anyOf: [ + { + type: "string", }, - concurrency: { - type: 'integer', - title: 'Concurrency', - description: 'Return max_active_tasks as concurrency.', - readOnly: true + { + type: "null", }, - latest_dag_version: { - anyOf: [ - { - '$ref': '#/components/schemas/DagVersionResponse' - }, - { - type: 'null' - } - ], - description: 'Return the latest DagVersion.', - readOnly: true - } + ], + title: "Doc Md", + }, + start_date: { + anyOf: [ + { + type: "string", + format: "date-time", + }, + { + type: "null", + }, + ], + title: "Start Date", }, - type: 'object', - required: ['dag_id', 'dag_display_name', 'is_paused', 'is_stale', 'last_parsed_time', 'last_expired', 'bundle_name', 'bundle_version', 'relative_fileloc', 'fileloc', 'description', 'deadline', 'timetable_summary', 'timetable_description', 'tags', 'max_active_tasks', 'max_active_runs', 'max_consecutive_failed_dag_runs', 'has_task_concurrency_limits', 'has_import_errors', 'next_dagrun_logical_date', 'next_dagrun_data_interval_start', 'next_dagrun_data_interval_end', 'next_dagrun_run_after', 'owners', 'catchup', 'dag_run_timeout', 'asset_expression', 'doc_md', 'start_date', 'end_date', 'is_paused_upon_creation', 'params', 'render_template_as_native_obj', 'template_search_path', 'timezone', 'last_parsed', 'default_args', 'file_token', 'concurrency', 'latest_dag_version'], - title: 'DAGDetailsResponse', - description: 'Specific serializer for DAG Details responses.' + end_date: { + anyOf: [ + { + type: "string", + format: "date-time", + }, + { + type: "null", + }, + ], + title: "End Date", + }, + is_paused_upon_creation: { + anyOf: [ + { + type: "boolean", + }, + { + type: "null", + }, + ], + title: "Is Paused Upon Creation", + }, + params: { + anyOf: [ + { + additionalProperties: true, + type: "object", + }, + { + type: "null", + }, + ], + title: "Params", + }, + render_template_as_native_obj: { + type: "boolean", + title: "Render Template As Native Obj", + }, + template_search_path: { + anyOf: [ + { + items: { + type: "string", + }, + type: "array", + }, + { + type: "null", + }, + ], + title: "Template Search Path", + }, + timezone: { + anyOf: [ + { + type: "string", + }, + { + type: "null", + }, + ], + title: "Timezone", + }, + last_parsed: { + anyOf: [ + { + type: "string", + format: "date-time", + }, + { + type: "null", + }, + ], + title: "Last Parsed", + }, + default_args: { + anyOf: [ + { + additionalProperties: true, + type: "object", + }, + { + type: "null", + }, + ], + title: "Default Args", + }, + owner_links: { + anyOf: [ + { + additionalProperties: { + type: "string", + }, + type: "object", + }, + { + type: "null", + }, + ], + title: "Owner Links", + }, + file_token: { + type: "string", + title: "File Token", + description: "Return file token.", + readOnly: true, + }, + concurrency: { + type: "integer", + title: "Concurrency", + description: "Return max_active_tasks as concurrency.", + readOnly: true, + }, + latest_dag_version: { + anyOf: [ + { + $ref: "#/components/schemas/DagVersionResponse", + }, + { + type: "null", + }, + ], + description: "Return the latest DagVersion.", + readOnly: true, + }, + }, + type: "object", + required: [ + "dag_id", + "dag_display_name", + "is_paused", + "is_stale", + "last_parsed_time", + "last_expired", + "bundle_name", + "bundle_version", + "relative_fileloc", + "fileloc", + "description", + "timetable_summary", + "timetable_description", + "tags", + "max_active_tasks", + "max_active_runs", + "max_consecutive_failed_dag_runs", + "has_task_concurrency_limits", + "has_import_errors", + "next_dagrun_logical_date", + "next_dagrun_data_interval_start", + "next_dagrun_data_interval_end", + "next_dagrun_run_after", + "owners", + "catchup", + "dag_run_timeout", + "asset_expression", + "doc_md", + "start_date", + "end_date", + "is_paused_upon_creation", + "params", + "render_template_as_native_obj", + "template_search_path", + "timezone", + "last_parsed", + "default_args", + "file_token", + "concurrency", + "latest_dag_version", + ], + title: "DAGDetailsResponse", + description: "Specific serializer for DAG Details responses.", } as const; export const $DAGPatchBody = { - properties: { - is_paused: { - type: 'boolean', - title: 'Is Paused' - } + properties: { + is_paused: { + type: "boolean", + title: "Is Paused", }, - additionalProperties: false, - type: 'object', - required: ['is_paused'], - title: 'DAGPatchBody', - description: 'Dag Serializer for updatable bodies.' + }, + additionalProperties: false, + type: "object", + required: ["is_paused"], + title: "DAGPatchBody", + description: "Dag Serializer for updatable bodies.", } as const; export const $DAGResponse = { - properties: { - dag_id: { - type: 'string', - title: 'Dag Id' - }, - dag_display_name: { - type: 'string', - title: 'Dag Display Name' - }, - is_paused: { - type: 'boolean', - title: 'Is Paused' - }, - is_stale: { - type: 'boolean', - title: 'Is Stale' - }, - last_parsed_time: { - anyOf: [ - { - type: 'string', - format: 'date-time' - }, - { - type: 'null' - } - ], - title: 'Last Parsed Time' - }, - last_expired: { - anyOf: [ - { - type: 'string', - format: 'date-time' - }, - { - type: 'null' - } - ], - title: 'Last Expired' - }, - bundle_name: { - anyOf: [ - { - type: 'string' - }, - { - type: 'null' - } - ], - title: 'Bundle Name' - }, - bundle_version: { - anyOf: [ - { - type: 'string' - }, - { - type: 'null' - } - ], - title: 'Bundle Version' - }, - relative_fileloc: { - anyOf: [ - { - type: 'string' - }, - { - type: 'null' - } - ], - title: 'Relative Fileloc' - }, - fileloc: { - type: 'string', - title: 'Fileloc' + properties: { + dag_id: { + type: "string", + title: "Dag Id", + }, + dag_display_name: { + type: "string", + title: "Dag Display Name", + }, + is_paused: { + type: "boolean", + title: "Is Paused", + }, + is_stale: { + type: "boolean", + title: "Is Stale", + }, + last_parsed_time: { + anyOf: [ + { + type: "string", + format: "date-time", }, - description: { - anyOf: [ - { - type: 'string' - }, - { - type: 'null' - } - ], - title: 'Description' + { + type: "null", }, - deadline: { - anyOf: [ - { - items: { - '$ref': '#/components/schemas/DeadlineAlertResponse' - }, - type: 'array' - }, - { - type: 'null' - } - ], - title: 'Deadline' + ], + title: "Last Parsed Time", + }, + last_expired: { + anyOf: [ + { + type: "string", + format: "date-time", }, - timetable_summary: { - anyOf: [ - { - type: 'string' - }, - { - type: 'null' - } - ], - title: 'Timetable Summary' + { + type: "null", }, - timetable_description: { - anyOf: [ - { - type: 'string' - }, - { - type: 'null' - } - ], - title: 'Timetable Description' + ], + title: "Last Expired", + }, + bundle_name: { + anyOf: [ + { + type: "string", }, - tags: { - items: { - '$ref': '#/components/schemas/DagTagResponse' - }, - type: 'array', - title: 'Tags' + { + type: "null", }, - max_active_tasks: { - type: 'integer', - title: 'Max Active Tasks' + ], + title: "Bundle Name", + }, + bundle_version: { + anyOf: [ + { + type: "string", }, - max_active_runs: { - anyOf: [ - { - type: 'integer' - }, - { - type: 'null' - } - ], - title: 'Max Active Runs' + { + type: "null", }, - max_consecutive_failed_dag_runs: { - type: 'integer', - title: 'Max Consecutive Failed Dag Runs' + ], + title: "Bundle Version", + }, + relative_fileloc: { + anyOf: [ + { + type: "string", }, - has_task_concurrency_limits: { - type: 'boolean', - title: 'Has Task Concurrency Limits' + { + type: "null", }, - has_import_errors: { - type: 'boolean', - title: 'Has Import Errors' + ], + title: "Relative Fileloc", + }, + fileloc: { + type: "string", + title: "Fileloc", + }, + description: { + anyOf: [ + { + type: "string", }, - next_dagrun_logical_date: { - anyOf: [ - { - type: 'string', - format: 'date-time' - }, - { - type: 'null' - } - ], - title: 'Next Dagrun Logical Date' + { + type: "null", }, - next_dagrun_data_interval_start: { - anyOf: [ - { - type: 'string', - format: 'date-time' - }, - { - type: 'null' - } - ], - title: 'Next Dagrun Data Interval Start' + ], + title: "Description", + }, + timetable_summary: { + anyOf: [ + { + type: "string", }, - next_dagrun_data_interval_end: { - anyOf: [ - { - type: 'string', - format: 'date-time' - }, - { - type: 'null' - } - ], - title: 'Next Dagrun Data Interval End' + { + type: "null", }, - next_dagrun_run_after: { - anyOf: [ - { - type: 'string', - format: 'date-time' - }, - { - type: 'null' - } - ], - title: 'Next Dagrun Run After' + ], + title: "Timetable Summary", + }, + timetable_description: { + anyOf: [ + { + type: "string", }, - owners: { - items: { - type: 'string' - }, - type: 'array', - title: 'Owners' + { + type: "null", }, - file_token: { - type: 'string', - title: 'File Token', - description: 'Return file token.', - readOnly: true - } - }, - type: 'object', - required: ['dag_id', 'dag_display_name', 'is_paused', 'is_stale', 'last_parsed_time', 'last_expired', 'bundle_name', 'bundle_version', 'relative_fileloc', 'fileloc', 'description', 'deadline', 'timetable_summary', 'timetable_description', 'tags', 'max_active_tasks', 'max_active_runs', 'max_consecutive_failed_dag_runs', 'has_task_concurrency_limits', 'has_import_errors', 'next_dagrun_logical_date', 'next_dagrun_data_interval_start', 'next_dagrun_data_interval_end', 'next_dagrun_run_after', 'owners', 'file_token'], - title: 'DAGResponse', - description: 'DAG serializer for responses.' + ], + title: "Timetable Description", + }, + tags: { + items: { + $ref: "#/components/schemas/DagTagResponse", + }, + type: "array", + title: "Tags", + }, + max_active_tasks: { + type: "integer", + title: "Max Active Tasks", + }, + max_active_runs: { + anyOf: [ + { + type: "integer", + }, + { + type: "null", + }, + ], + title: "Max Active Runs", + }, + max_consecutive_failed_dag_runs: { + type: "integer", + title: "Max Consecutive Failed Dag Runs", + }, + has_task_concurrency_limits: { + type: "boolean", + title: "Has Task Concurrency Limits", + }, + has_import_errors: { + type: "boolean", + title: "Has Import Errors", + }, + next_dagrun_logical_date: { + anyOf: [ + { + type: "string", + format: "date-time", + }, + { + type: "null", + }, + ], + title: "Next Dagrun Logical Date", + }, + next_dagrun_data_interval_start: { + anyOf: [ + { + type: "string", + format: "date-time", + }, + { + type: "null", + }, + ], + title: "Next Dagrun Data Interval Start", + }, + next_dagrun_data_interval_end: { + anyOf: [ + { + type: "string", + format: "date-time", + }, + { + type: "null", + }, + ], + title: "Next Dagrun Data Interval End", + }, + next_dagrun_run_after: { + anyOf: [ + { + type: "string", + format: "date-time", + }, + { + type: "null", + }, + ], + title: "Next Dagrun Run After", + }, + owners: { + items: { + type: "string", + }, + type: "array", + title: "Owners", + }, + file_token: { + type: "string", + title: "File Token", + description: "Return file token.", + readOnly: true, + }, + }, + type: "object", + required: [ + "dag_id", + "dag_display_name", + "is_paused", + "is_stale", + "last_parsed_time", + "last_expired", + "bundle_name", + "bundle_version", + "relative_fileloc", + "fileloc", + "description", + "timetable_summary", + "timetable_description", + "tags", + "max_active_tasks", + "max_active_runs", + "max_consecutive_failed_dag_runs", + "has_task_concurrency_limits", + "has_import_errors", + "next_dagrun_logical_date", + "next_dagrun_data_interval_start", + "next_dagrun_data_interval_end", + "next_dagrun_run_after", + "owners", + "file_token", + ], + title: "DAGResponse", + description: "DAG serializer for responses.", } as const; export const $DAGRunClearBody = { - properties: { - dry_run: { - type: 'boolean', - title: 'Dry Run', - default: true - }, - only_failed: { - type: 'boolean', - title: 'Only Failed', - default: false - } + properties: { + dry_run: { + type: "boolean", + title: "Dry Run", + default: true, + }, + only_failed: { + type: "boolean", + title: "Only Failed", + default: false, }, - additionalProperties: false, - type: 'object', - title: 'DAGRunClearBody', - description: 'DAG Run serializer for clear endpoint body.' + }, + additionalProperties: false, + type: "object", + title: "DAGRunClearBody", + description: "DAG Run serializer for clear endpoint body.", } as const; export const $DAGRunCollectionResponse = { - properties: { - dag_runs: { - items: { - '$ref': '#/components/schemas/DAGRunResponse' - }, - type: 'array', - title: 'Dag Runs' - }, - total_entries: { - type: 'integer', - title: 'Total Entries' - } + properties: { + dag_runs: { + items: { + $ref: "#/components/schemas/DAGRunResponse", + }, + type: "array", + title: "Dag Runs", }, - type: 'object', - required: ['dag_runs', 'total_entries'], - title: 'DAGRunCollectionResponse', - description: 'DAG Run Collection serializer for responses.' + total_entries: { + type: "integer", + title: "Total Entries", + }, + }, + type: "object", + required: ["dag_runs", "total_entries"], + title: "DAGRunCollectionResponse", + description: "DAG Run Collection serializer for responses.", } as const; export const $DAGRunPatchBody = { - properties: { - state: { - anyOf: [ - { - '$ref': '#/components/schemas/DAGRunPatchStates' - }, - { - type: 'null' - } - ] - }, - note: { - anyOf: [ - { - type: 'string', - maxLength: 1000 - }, - { - type: 'null' - } - ], - title: 'Note' - } + properties: { + state: { + anyOf: [ + { + $ref: "#/components/schemas/DAGRunPatchStates", + }, + { + type: "null", + }, + ], }, - additionalProperties: false, - type: 'object', - title: 'DAGRunPatchBody', - description: 'DAG Run Serializer for PATCH requests.' + note: { + anyOf: [ + { + type: "string", + maxLength: 1000, + }, + { + type: "null", + }, + ], + title: "Note", + }, + }, + additionalProperties: false, + type: "object", + title: "DAGRunPatchBody", + description: "DAG Run Serializer for PATCH requests.", } as const; export const $DAGRunPatchStates = { - type: 'string', - enum: ['queued', 'success', 'failed'], - title: 'DAGRunPatchStates', - description: 'Enum for DAG Run states when updating a DAG Run.' + type: "string", + enum: ["queued", "success", "failed"], + title: "DAGRunPatchStates", + description: "Enum for DAG Run states when updating a DAG Run.", } as const; export const $DAGRunResponse = { - properties: { - dag_run_id: { - type: 'string', - title: 'Dag Run Id' - }, - dag_id: { - type: 'string', - title: 'Dag Id' - }, - logical_date: { - anyOf: [ - { - type: 'string', - format: 'date-time' - }, - { - type: 'null' - } - ], - title: 'Logical Date' - }, - queued_at: { - anyOf: [ - { - type: 'string', - format: 'date-time' - }, - { - type: 'null' - } - ], - title: 'Queued At' - }, - start_date: { - anyOf: [ - { - type: 'string', - format: 'date-time' - }, - { - type: 'null' - } - ], - title: 'Start Date' - }, - end_date: { - anyOf: [ - { - type: 'string', - format: 'date-time' - }, - { - type: 'null' - } - ], - title: 'End Date' - }, - duration: { - anyOf: [ - { - type: 'number' - }, - { - type: 'null' - } - ], - title: 'Duration' - }, - data_interval_start: { - anyOf: [ - { - type: 'string', - format: 'date-time' - }, - { - type: 'null' - } - ], - title: 'Data Interval Start' - }, - data_interval_end: { - anyOf: [ - { - type: 'string', - format: 'date-time' - }, - { - type: 'null' - } - ], - title: 'Data Interval End' + properties: { + dag_run_id: { + type: "string", + title: "Dag Run Id", + }, + dag_id: { + type: "string", + title: "Dag Id", + }, + logical_date: { + anyOf: [ + { + type: "string", + format: "date-time", }, - run_after: { - type: 'string', - format: 'date-time', - title: 'Run After' + { + type: "null", }, - last_scheduling_decision: { - anyOf: [ - { - type: 'string', - format: 'date-time' - }, - { - type: 'null' - } - ], - title: 'Last Scheduling Decision' + ], + title: "Logical Date", + }, + queued_at: { + anyOf: [ + { + type: "string", + format: "date-time", }, - run_type: { - '$ref': '#/components/schemas/DagRunType' + { + type: "null", }, - state: { - '$ref': '#/components/schemas/DagRunState' + ], + title: "Queued At", + }, + start_date: { + anyOf: [ + { + type: "string", + format: "date-time", }, - triggered_by: { - anyOf: [ - { - '$ref': '#/components/schemas/DagRunTriggeredByType' - }, - { - type: 'null' - } - ] - }, - triggering_user_name: { - anyOf: [ - { - type: 'string' - }, - { - type: 'null' - } - ], - title: 'Triggering User Name' + { + type: "null", }, - conf: { - anyOf: [ - { - additionalProperties: true, - type: 'object' - }, - { - type: 'null' - } - ], - title: 'Conf' + ], + title: "Start Date", + }, + end_date: { + anyOf: [ + { + type: "string", + format: "date-time", }, - note: { - anyOf: [ - { - type: 'string' - }, - { - type: 'null' - } - ], - title: 'Note' + { + type: "null", }, - dag_versions: { - items: { - '$ref': '#/components/schemas/DagVersionResponse' - }, - type: 'array', - title: 'Dag Versions' + ], + title: "End Date", + }, + duration: { + anyOf: [ + { + type: "number", }, - bundle_version: { - anyOf: [ - { - type: 'string' - }, - { - type: 'null' - } - ], - title: 'Bundle Version' + { + type: "null", }, - dag_display_name: { - type: 'string', - title: 'Dag Display Name' - } + ], + title: "Duration", }, - type: 'object', - required: ['dag_run_id', 'dag_id', 'logical_date', 'queued_at', 'start_date', 'end_date', 'duration', 'data_interval_start', 'data_interval_end', 'run_after', 'last_scheduling_decision', 'run_type', 'state', 'triggered_by', 'triggering_user_name', 'conf', 'note', 'dag_versions', 'bundle_version', 'dag_display_name'], - title: 'DAGRunResponse', - description: 'DAG Run serializer for responses.' + data_interval_start: { + anyOf: [ + { + type: "string", + format: "date-time", + }, + { + type: "null", + }, + ], + title: "Data Interval Start", + }, + data_interval_end: { + anyOf: [ + { + type: "string", + format: "date-time", + }, + { + type: "null", + }, + ], + title: "Data Interval End", + }, + run_after: { + type: "string", + format: "date-time", + title: "Run After", + }, + last_scheduling_decision: { + anyOf: [ + { + type: "string", + format: "date-time", + }, + { + type: "null", + }, + ], + title: "Last Scheduling Decision", + }, + run_type: { + $ref: "#/components/schemas/DagRunType", + }, + state: { + $ref: "#/components/schemas/DagRunState", + }, + triggered_by: { + anyOf: [ + { + $ref: "#/components/schemas/DagRunTriggeredByType", + }, + { + type: "null", + }, + ], + }, + conf: { + anyOf: [ + { + additionalProperties: true, + type: "object", + }, + { + type: "null", + }, + ], + title: "Conf", + }, + note: { + anyOf: [ + { + type: "string", + }, + { + type: "null", + }, + ], + title: "Note", + }, + dag_versions: { + items: { + $ref: "#/components/schemas/DagVersionResponse", + }, + type: "array", + title: "Dag Versions", + }, + bundle_version: { + anyOf: [ + { + type: "string", + }, + { + type: "null", + }, + ], + title: "Bundle Version", + }, + dag_display_name: { + type: "string", + title: "Dag Display Name", + }, + }, + type: "object", + required: [ + "dag_run_id", + "dag_id", + "logical_date", + "queued_at", + "start_date", + "end_date", + "duration", + "data_interval_start", + "data_interval_end", + "run_after", + "last_scheduling_decision", + "run_type", + "state", + "triggered_by", + "conf", + "note", + "dag_versions", + "bundle_version", + "dag_display_name", + ], + title: "DAGRunResponse", + description: "DAG Run serializer for responses.", } as const; export const $DAGRunsBatchBody = { - properties: { - order_by: { - anyOf: [ - { - type: 'string' - }, - { - type: 'null' - } - ], - title: 'Order By' - }, - page_offset: { - type: 'integer', - minimum: 0, - title: 'Page Offset', - default: 0 - }, - page_limit: { - type: 'integer', - minimum: 0, - title: 'Page Limit', - default: 100 - }, - dag_ids: { - anyOf: [ - { - items: { - type: 'string' - }, - type: 'array' - }, - { - type: 'null' - } - ], - title: 'Dag Ids' - }, - states: { - anyOf: [ - { - items: { - anyOf: [ - { - '$ref': '#/components/schemas/DagRunState' - }, - { - type: 'null' - } - ] - }, - type: 'array' - }, - { - type: 'null' - } - ], - title: 'States' + properties: { + order_by: { + anyOf: [ + { + type: "string", + }, + { + type: "null", + }, + ], + title: "Order By", + }, + page_offset: { + type: "integer", + minimum: 0, + title: "Page Offset", + default: 0, + }, + page_limit: { + type: "integer", + minimum: 0, + title: "Page Limit", + default: 100, + }, + dag_ids: { + anyOf: [ + { + items: { + type: "string", + }, + type: "array", + }, + { + type: "null", + }, + ], + title: "Dag Ids", + }, + states: { + anyOf: [ + { + items: { + anyOf: [ + { + $ref: "#/components/schemas/DagRunState", + }, + { + type: "null", + }, + ], + }, + type: "array", + }, + { + type: "null", + }, + ], + title: "States", + }, + run_after_gte: { + anyOf: [ + { + type: "string", + format: "date-time", + }, + { + type: "null", + }, + ], + title: "Run After Gte", + }, + run_after_lte: { + anyOf: [ + { + type: "string", + format: "date-time", + }, + { + type: "null", + }, + ], + title: "Run After Lte", + }, + logical_date_gte: { + anyOf: [ + { + type: "string", + format: "date-time", + }, + { + type: "null", + }, + ], + title: "Logical Date Gte", + }, + logical_date_lte: { + anyOf: [ + { + type: "string", + format: "date-time", + }, + { + type: "null", }, - run_after_gte: { - anyOf: [ - { - type: 'string', - format: 'date-time' - }, - { - type: 'null' - } - ], - title: 'Run After Gte' + ], + title: "Logical Date Lte", + }, + start_date_gte: { + anyOf: [ + { + type: "string", + format: "date-time", + }, + { + type: "null", }, - run_after_lte: { - anyOf: [ - { - type: 'string', - format: 'date-time' - }, - { - type: 'null' - } - ], - title: 'Run After Lte' + ], + title: "Start Date Gte", + }, + start_date_lte: { + anyOf: [ + { + type: "string", + format: "date-time", }, - logical_date_gte: { - anyOf: [ - { - type: 'string', - format: 'date-time' - }, - { - type: 'null' - } - ], - title: 'Logical Date Gte' + { + type: "null", }, - logical_date_lte: { - anyOf: [ - { - type: 'string', - format: 'date-time' - }, - { - type: 'null' - } - ], - title: 'Logical Date Lte' + ], + title: "Start Date Lte", + }, + end_date_gte: { + anyOf: [ + { + type: "string", + format: "date-time", }, - start_date_gte: { - anyOf: [ - { - type: 'string', - format: 'date-time' - }, - { - type: 'null' - } - ], - title: 'Start Date Gte' + { + type: "null", }, - start_date_lte: { - anyOf: [ - { - type: 'string', - format: 'date-time' - }, - { - type: 'null' - } - ], - title: 'Start Date Lte' + ], + title: "End Date Gte", + }, + end_date_lte: { + anyOf: [ + { + type: "string", + format: "date-time", }, - end_date_gte: { - anyOf: [ - { - type: 'string', - format: 'date-time' - }, - { - type: 'null' - } - ], - title: 'End Date Gte' + { + type: "null", }, - end_date_lte: { - anyOf: [ - { - type: 'string', - format: 'date-time' - }, - { - type: 'null' - } - ], - title: 'End Date Lte' - } + ], + title: "End Date Lte", }, - additionalProperties: false, - type: 'object', - title: 'DAGRunsBatchBody', - description: 'List DAG Runs body for batch endpoint.' + }, + additionalProperties: false, + type: "object", + title: "DAGRunsBatchBody", + description: "List DAG Runs body for batch endpoint.", } as const; export const $DAGSourceResponse = { - properties: { - content: { - anyOf: [ - { - type: 'string' - }, - { - type: 'null' - } - ], - title: 'Content' + properties: { + content: { + anyOf: [ + { + type: "string", }, - dag_id: { - type: 'string', - title: 'Dag Id' + { + type: "null", }, - version_number: { - anyOf: [ - { - type: 'integer' - }, - { - type: 'null' - } - ], - title: 'Version Number' + ], + title: "Content", + }, + dag_id: { + type: "string", + title: "Dag Id", + }, + version_number: { + anyOf: [ + { + type: "integer", + }, + { + type: "null", }, - dag_display_name: { - type: 'string', - title: 'Dag Display Name' - } + ], + title: "Version Number", }, - type: 'object', - required: ['content', 'dag_id', 'version_number', 'dag_display_name'], - title: 'DAGSourceResponse', - description: 'DAG Source serializer for responses.' + dag_display_name: { + type: "string", + title: "Dag Display Name", + }, + }, + type: "object", + required: ["content", "dag_id", "version_number", "dag_display_name"], + title: "DAGSourceResponse", + description: "DAG Source serializer for responses.", } as const; export const $DAGTagCollectionResponse = { - properties: { - tags: { - items: { - type: 'string' - }, - type: 'array', - title: 'Tags' - }, - total_entries: { - type: 'integer', - title: 'Total Entries' - } + properties: { + tags: { + items: { + type: "string", + }, + type: "array", + title: "Tags", + }, + total_entries: { + type: "integer", + title: "Total Entries", }, - type: 'object', - required: ['tags', 'total_entries'], - title: 'DAGTagCollectionResponse', - description: 'DAG Tags Collection serializer for responses.' + }, + type: "object", + required: ["tags", "total_entries"], + title: "DAGTagCollectionResponse", + description: "DAG Tags Collection serializer for responses.", } as const; export const $DAGVersionCollectionResponse = { - properties: { - dag_versions: { - items: { - '$ref': '#/components/schemas/DagVersionResponse' - }, - type: 'array', - title: 'Dag Versions' - }, - total_entries: { - type: 'integer', - title: 'Total Entries' - } + properties: { + dag_versions: { + items: { + $ref: "#/components/schemas/DagVersionResponse", + }, + type: "array", + title: "Dag Versions", }, - type: 'object', - required: ['dag_versions', 'total_entries'], - title: 'DAGVersionCollectionResponse', - description: 'DAG Version Collection serializer for responses.' + total_entries: { + type: "integer", + title: "Total Entries", + }, + }, + type: "object", + required: ["dag_versions", "total_entries"], + title: "DAGVersionCollectionResponse", + description: "DAG Version Collection serializer for responses.", } as const; export const $DAGWarningCollectionResponse = { - properties: { - dag_warnings: { - items: { - '$ref': '#/components/schemas/DAGWarningResponse' - }, - type: 'array', - title: 'Dag Warnings' - }, - total_entries: { - type: 'integer', - title: 'Total Entries' - } + properties: { + dag_warnings: { + items: { + $ref: "#/components/schemas/DAGWarningResponse", + }, + type: "array", + title: "Dag Warnings", + }, + total_entries: { + type: "integer", + title: "Total Entries", }, - type: 'object', - required: ['dag_warnings', 'total_entries'], - title: 'DAGWarningCollectionResponse', - description: 'DAG warning collection serializer for responses.' + }, + type: "object", + required: ["dag_warnings", "total_entries"], + title: "DAGWarningCollectionResponse", + description: "DAG warning collection serializer for responses.", } as const; export const $DAGWarningResponse = { - properties: { - dag_id: { - type: 'string', - title: 'Dag Id' - }, - warning_type: { - '$ref': '#/components/schemas/DagWarningType' - }, - message: { - type: 'string', - title: 'Message' - }, - timestamp: { - type: 'string', - format: 'date-time', - title: 'Timestamp' - } + properties: { + dag_id: { + type: "string", + title: "Dag Id", + }, + warning_type: { + $ref: "#/components/schemas/DagWarningType", }, - type: 'object', - required: ['dag_id', 'warning_type', 'message', 'timestamp'], - title: 'DAGWarningResponse', - description: 'DAG Warning serializer for responses.' + message: { + type: "string", + title: "Message", + }, + timestamp: { + type: "string", + format: "date-time", + title: "Timestamp", + }, + }, + type: "object", + required: ["dag_id", "warning_type", "message", "timestamp"], + title: "DAGWarningResponse", + description: "DAG Warning serializer for responses.", } as const; export const $DagProcessorInfoResponse = { - properties: { - status: { - anyOf: [ - { - type: 'string' - }, - { - type: 'null' - } - ], - title: 'Status' + properties: { + status: { + anyOf: [ + { + type: "string", }, - latest_dag_processor_heartbeat: { - anyOf: [ - { - type: 'string' - }, - { - type: 'null' - } - ], - title: 'Latest Dag Processor Heartbeat' - } - }, - type: 'object', - required: ['status', 'latest_dag_processor_heartbeat'], - title: 'DagProcessorInfoResponse', - description: 'DagProcessor info serializer for responses.' -} as const; - -export const $DagRunAssetReference = { - properties: { - run_id: { - type: 'string', - title: 'Run Id' - }, - dag_id: { - type: 'string', - title: 'Dag Id' - }, - logical_date: { - anyOf: [ - { - type: 'string', - format: 'date-time' - }, - { - type: 'null' - } - ], - title: 'Logical Date' - }, - start_date: { - type: 'string', - format: 'date-time', - title: 'Start Date' - }, - end_date: { - anyOf: [ - { - type: 'string', - format: 'date-time' - }, - { - type: 'null' - } - ], - title: 'End Date' + { + type: "null", }, - state: { - type: 'string', - title: 'State' + ], + title: "Status", + }, + latest_dag_processor_heartbeat: { + anyOf: [ + { + type: "string", }, - data_interval_start: { - anyOf: [ - { - type: 'string', - format: 'date-time' - }, - { - type: 'null' - } - ], - title: 'Data Interval Start' + { + type: "null", }, - data_interval_end: { - anyOf: [ - { - type: 'string', - format: 'date-time' - }, - { - type: 'null' - } - ], - title: 'Data Interval End' - } + ], + title: "Latest Dag Processor Heartbeat", }, - additionalProperties: false, - type: 'object', - required: ['run_id', 'dag_id', 'logical_date', 'start_date', 'end_date', 'state', 'data_interval_start', 'data_interval_end'], - title: 'DagRunAssetReference', - description: 'DAGRun serializer for asset responses.' + }, + type: "object", + required: ["status", "latest_dag_processor_heartbeat"], + title: "DagProcessorInfoResponse", + description: "DagProcessor info serializer for responses.", +} as const; + +export const $DagRunAssetReference = { + properties: { + run_id: { + type: "string", + title: "Run Id", + }, + dag_id: { + type: "string", + title: "Dag Id", + }, + logical_date: { + anyOf: [ + { + type: "string", + format: "date-time", + }, + { + type: "null", + }, + ], + title: "Logical Date", + }, + start_date: { + type: "string", + format: "date-time", + title: "Start Date", + }, + end_date: { + anyOf: [ + { + type: "string", + format: "date-time", + }, + { + type: "null", + }, + ], + title: "End Date", + }, + state: { + type: "string", + title: "State", + }, + data_interval_start: { + anyOf: [ + { + type: "string", + format: "date-time", + }, + { + type: "null", + }, + ], + title: "Data Interval Start", + }, + data_interval_end: { + anyOf: [ + { + type: "string", + format: "date-time", + }, + { + type: "null", + }, + ], + title: "Data Interval End", + }, + }, + additionalProperties: false, + type: "object", + required: [ + "run_id", + "dag_id", + "logical_date", + "start_date", + "end_date", + "state", + "data_interval_start", + "data_interval_end", + ], + title: "DagRunAssetReference", + description: "DAGRun serializer for asset responses.", } as const; export const $DagRunState = { - type: 'string', - enum: ['queued', 'running', 'success', 'failed'], - title: 'DagRunState', - description: `All possible states that a DagRun can be in. + type: "string", + enum: ["queued", "running", "success", "failed"], + title: "DagRunState", + description: `All possible states that a DagRun can be in. These are "shared" with TaskInstanceState in some parts of the code, so please ensure that their values always match the ones with the -same name in TaskInstanceState.` +same name in TaskInstanceState.`, } as const; export const $DagRunTriggeredByType = { - type: 'string', - enum: ['cli', 'operator', 'rest_api', 'ui', 'test', 'timetable', 'asset', 'backfill'], - title: 'DagRunTriggeredByType', - description: 'Class with TriggeredBy types for DagRun.' + type: "string", + enum: ["cli", "operator", "rest_api", "ui", "test", "timetable", "asset", "backfill"], + title: "DagRunTriggeredByType", + description: "Class with TriggeredBy types for DagRun.", } as const; export const $DagRunType = { - type: 'string', - enum: ['backfill', 'scheduled', 'manual', 'asset_triggered'], - title: 'DagRunType', - description: 'Class with DagRun types.' + type: "string", + enum: ["backfill", "scheduled", "manual", "asset_triggered"], + title: "DagRunType", + description: "Class with DagRun types.", } as const; export const $DagScheduleAssetReference = { - properties: { - dag_id: { - type: 'string', - title: 'Dag Id' - }, - created_at: { - type: 'string', - format: 'date-time', - title: 'Created At' - }, - updated_at: { - type: 'string', - format: 'date-time', - title: 'Updated At' - } + properties: { + dag_id: { + type: "string", + title: "Dag Id", }, - additionalProperties: false, - type: 'object', - required: ['dag_id', 'created_at', 'updated_at'], - title: 'DagScheduleAssetReference', - description: 'DAG schedule reference serializer for assets.' + created_at: { + type: "string", + format: "date-time", + title: "Created At", + }, + updated_at: { + type: "string", + format: "date-time", + title: "Updated At", + }, + }, + additionalProperties: false, + type: "object", + required: ["dag_id", "created_at", "updated_at"], + title: "DagScheduleAssetReference", + description: "DAG schedule reference serializer for assets.", } as const; export const $DagStatsCollectionResponse = { - properties: { - dags: { - items: { - '$ref': '#/components/schemas/DagStatsResponse' - }, - type: 'array', - title: 'Dags' - }, - total_entries: { - type: 'integer', - title: 'Total Entries' - } + properties: { + dags: { + items: { + $ref: "#/components/schemas/DagStatsResponse", + }, + type: "array", + title: "Dags", }, - type: 'object', - required: ['dags', 'total_entries'], - title: 'DagStatsCollectionResponse', - description: 'DAG Stats Collection serializer for responses.' + total_entries: { + type: "integer", + title: "Total Entries", + }, + }, + type: "object", + required: ["dags", "total_entries"], + title: "DagStatsCollectionResponse", + description: "DAG Stats Collection serializer for responses.", } as const; export const $DagStatsResponse = { - properties: { - dag_id: { - type: 'string', - title: 'Dag Id' - }, - stats: { - items: { - '$ref': '#/components/schemas/DagStatsStateResponse' - }, - type: 'array', - title: 'Stats' - } + properties: { + dag_id: { + type: "string", + title: "Dag Id", }, - type: 'object', - required: ['dag_id', 'stats'], - title: 'DagStatsResponse', - description: 'DAG Stats serializer for responses.' + stats: { + items: { + $ref: "#/components/schemas/DagStatsStateResponse", + }, + type: "array", + title: "Stats", + }, + }, + type: "object", + required: ["dag_id", "stats"], + title: "DagStatsResponse", + description: "DAG Stats serializer for responses.", } as const; export const $DagStatsStateResponse = { - properties: { - state: { - '$ref': '#/components/schemas/DagRunState' - }, - count: { - type: 'integer', - title: 'Count' - } + properties: { + state: { + $ref: "#/components/schemas/DagRunState", }, - type: 'object', - required: ['state', 'count'], - title: 'DagStatsStateResponse', - description: 'DagStatsState serializer for responses.' + count: { + type: "integer", + title: "Count", + }, + }, + type: "object", + required: ["state", "count"], + title: "DagStatsStateResponse", + description: "DagStatsState serializer for responses.", } as const; export const $DagTagResponse = { - properties: { - name: { - type: 'string', - title: 'Name' - }, - dag_id: { - type: 'string', - title: 'Dag Id' - } + properties: { + name: { + type: "string", + title: "Name", }, - type: 'object', - required: ['name', 'dag_id'], - title: 'DagTagResponse', - description: 'DAG Tag serializer for responses.' + dag_id: { + type: "string", + title: "Dag Id", + }, + }, + type: "object", + required: ["name", "dag_id"], + title: "DagTagResponse", + description: "DAG Tag serializer for responses.", } as const; export const $DagVersionResponse = { - properties: { - id: { - type: 'string', - format: 'uuid', - title: 'Id' - }, - version_number: { - type: 'integer', - title: 'Version Number' - }, - dag_id: { - type: 'string', - title: 'Dag Id' - }, - bundle_name: { - anyOf: [ - { - type: 'string' - }, - { - type: 'null' - } - ], - title: 'Bundle Name' - }, - bundle_version: { - anyOf: [ - { - type: 'string' - }, - { - type: 'null' - } - ], - title: 'Bundle Version' - }, - created_at: { - type: 'string', - format: 'date-time', - title: 'Created At' - }, - dag_display_name: { - type: 'string', - title: 'Dag Display Name' - }, - bundle_url: { - anyOf: [ - { - type: 'string' - }, - { - type: 'null' - } - ], - title: 'Bundle Url', - readOnly: true - } - }, - type: 'object', - required: ['id', 'version_number', 'dag_id', 'bundle_name', 'bundle_version', 'created_at', 'dag_display_name', 'bundle_url'], - title: 'DagVersionResponse', - description: 'Dag Version serializer for responses.' + properties: { + id: { + type: "string", + format: "uuid", + title: "Id", + }, + version_number: { + type: "integer", + title: "Version Number", + }, + dag_id: { + type: "string", + title: "Dag Id", + }, + bundle_name: { + anyOf: [ + { + type: "string", + }, + { + type: "null", + }, + ], + title: "Bundle Name", + }, + bundle_version: { + anyOf: [ + { + type: "string", + }, + { + type: "null", + }, + ], + title: "Bundle Version", + }, + created_at: { + type: "string", + format: "date-time", + title: "Created At", + }, + dag_display_name: { + type: "string", + title: "Dag Display Name", + }, + bundle_url: { + anyOf: [ + { + type: "string", + }, + { + type: "null", + }, + ], + title: "Bundle Url", + readOnly: true, + }, + }, + type: "object", + required: [ + "id", + "version_number", + "dag_id", + "bundle_name", + "bundle_version", + "created_at", + "dag_display_name", + "bundle_url", + ], + title: "DagVersionResponse", + description: "Dag Version serializer for responses.", } as const; export const $DagWarningType = { - type: 'string', - enum: ['asset conflict', 'non-existent pool'], - title: 'DagWarningType', - description: `Enum for DAG warning types. + type: "string", + enum: ["asset conflict", "non-existent pool"], + title: "DagWarningType", + description: `Enum for DAG warning types. This is the set of allowable values for the \`\`warning_type\`\` field -in the DagWarning model.` -} as const; - -export const $DeadlineAlertResponse = { - properties: { - reference: { - type: 'string', - title: 'Reference' - }, - interval: { - type: 'string', - format: 'duration', - title: 'Interval' - }, - callback: { - type: 'string', - title: 'Callback' - }, - callback_kwargs: { - anyOf: [ - { - additionalProperties: true, - type: 'object' - }, - { - type: 'null' - } - ], - title: 'Callback Kwargs' - } - }, - type: 'object', - required: ['reference', 'interval', 'callback'], - title: 'DeadlineAlertResponse', - description: 'Deadline alert serializer for responses.' +in the DagWarning model.`, } as const; export const $DryRunBackfillCollectionResponse = { - properties: { - backfills: { - items: { - '$ref': '#/components/schemas/DryRunBackfillResponse' - }, - type: 'array', - title: 'Backfills' - }, - total_entries: { - type: 'integer', - title: 'Total Entries' - } + properties: { + backfills: { + items: { + $ref: "#/components/schemas/DryRunBackfillResponse", + }, + type: "array", + title: "Backfills", + }, + total_entries: { + type: "integer", + title: "Total Entries", }, - type: 'object', - required: ['backfills', 'total_entries'], - title: 'DryRunBackfillCollectionResponse', - description: 'Backfill collection serializer for responses in dry-run mode.' + }, + type: "object", + required: ["backfills", "total_entries"], + title: "DryRunBackfillCollectionResponse", + description: "Backfill collection serializer for responses in dry-run mode.", } as const; export const $DryRunBackfillResponse = { - properties: { - logical_date: { - type: 'string', - format: 'date-time', - title: 'Logical Date' - } + properties: { + logical_date: { + type: "string", + format: "date-time", + title: "Logical Date", }, - type: 'object', - required: ['logical_date'], - title: 'DryRunBackfillResponse', - description: 'Backfill serializer for responses in dry-run mode.' + }, + type: "object", + required: ["logical_date"], + title: "DryRunBackfillResponse", + description: "Backfill serializer for responses in dry-run mode.", } as const; export const $EventLogCollectionResponse = { - properties: { - event_logs: { - items: { - '$ref': '#/components/schemas/EventLogResponse' - }, - type: 'array', - title: 'Event Logs' - }, - total_entries: { - type: 'integer', - title: 'Total Entries' - } + properties: { + event_logs: { + items: { + $ref: "#/components/schemas/EventLogResponse", + }, + type: "array", + title: "Event Logs", }, - type: 'object', - required: ['event_logs', 'total_entries'], - title: 'EventLogCollectionResponse', - description: 'Event Log Collection Response.' + total_entries: { + type: "integer", + title: "Total Entries", + }, + }, + type: "object", + required: ["event_logs", "total_entries"], + title: "EventLogCollectionResponse", + description: "Event Log Collection Response.", } as const; export const $EventLogResponse = { - properties: { - event_log_id: { - type: 'integer', - title: 'Event Log Id' - }, - when: { - type: 'string', - format: 'date-time', - title: 'When' - }, - dag_id: { - anyOf: [ - { - type: 'string' - }, - { - type: 'null' - } - ], - title: 'Dag Id' - }, - task_id: { - anyOf: [ - { - type: 'string' - }, - { - type: 'null' - } - ], - title: 'Task Id' - }, - run_id: { - anyOf: [ - { - type: 'string' - }, - { - type: 'null' - } - ], - title: 'Run Id' - }, - map_index: { - anyOf: [ - { - type: 'integer' - }, - { - type: 'null' - } - ], - title: 'Map Index' - }, - try_number: { - anyOf: [ - { - type: 'integer' - }, - { - type: 'null' - } - ], - title: 'Try Number' - }, - event: { - type: 'string', - title: 'Event' + properties: { + event_log_id: { + type: "integer", + title: "Event Log Id", + }, + when: { + type: "string", + format: "date-time", + title: "When", + }, + dag_id: { + anyOf: [ + { + type: "string", }, - logical_date: { - anyOf: [ - { - type: 'string', - format: 'date-time' - }, - { - type: 'null' - } - ], - title: 'Logical Date' + { + type: "null", }, - owner: { - anyOf: [ - { - type: 'string' - }, - { - type: 'null' - } - ], - title: 'Owner' + ], + title: "Dag Id", + }, + task_id: { + anyOf: [ + { + type: "string", + }, + { + type: "null", + }, + ], + title: "Task Id", + }, + run_id: { + anyOf: [ + { + type: "string", + }, + { + type: "null", + }, + ], + title: "Run Id", + }, + map_index: { + anyOf: [ + { + type: "integer", + }, + { + type: "null", + }, + ], + title: "Map Index", + }, + try_number: { + anyOf: [ + { + type: "integer", + }, + { + type: "null", + }, + ], + title: "Try Number", + }, + event: { + type: "string", + title: "Event", + }, + logical_date: { + anyOf: [ + { + type: "string", + format: "date-time", + }, + { + type: "null", + }, + ], + title: "Logical Date", + }, + owner: { + anyOf: [ + { + type: "string", + }, + { + type: "null", + }, + ], + title: "Owner", + }, + extra: { + anyOf: [ + { + type: "string", + }, + { + type: "null", + }, + ], + title: "Extra", + }, + dag_display_name: { + anyOf: [ + { + type: "string", }, - extra: { - anyOf: [ - { - type: 'string' - }, - { - type: 'null' - } - ], - title: 'Extra' + { + type: "null", }, - dag_display_name: { - anyOf: [ - { - type: 'string' - }, - { - type: 'null' - } - ], - title: 'Dag Display Name' - } + ], + title: "Dag Display Name", }, - type: 'object', - required: ['event_log_id', 'when', 'dag_id', 'task_id', 'run_id', 'map_index', 'try_number', 'event', 'logical_date', 'owner', 'extra'], - title: 'EventLogResponse', - description: 'Event Log Response.' + }, + type: "object", + required: [ + "event_log_id", + "when", + "dag_id", + "task_id", + "run_id", + "map_index", + "try_number", + "event", + "logical_date", + "owner", + "extra", + ], + title: "EventLogResponse", + description: "Event Log Response.", } as const; export const $ExternalLogUrlResponse = { - properties: { - url: { - type: 'string', - title: 'Url' - } - }, - type: 'object', - required: ['url'], - title: 'ExternalLogUrlResponse', - description: 'Response for the external log URL endpoint.' -} as const; - -export const $ExternalViewResponse = { - properties: { - name: { - type: 'string', - title: 'Name' - }, - icon: { - anyOf: [ - { - type: 'string' - }, - { - type: 'null' - } - ], - title: 'Icon' - }, - icon_dark_mode: { - anyOf: [ - { - type: 'string' - }, - { - type: 'null' - } - ], - title: 'Icon Dark Mode' - }, - url_route: { - anyOf: [ - { - type: 'string' - }, - { - type: 'null' - } - ], - title: 'Url Route' - }, - category: { - anyOf: [ - { - type: 'string' - }, - { - type: 'null' - } - ], - title: 'Category' - }, - destination: { - type: 'string', - enum: ['nav', 'dag', 'dag_run', 'task', 'task_instance'], - title: 'Destination', - default: 'nav' - }, - href: { - type: 'string', - title: 'Href' - } + properties: { + url: { + type: "string", + title: "Url", }, - additionalProperties: true, - type: 'object', - required: ['name', 'href'], - title: 'ExternalViewResponse', - description: 'Serializer for External View Plugin responses.' + }, + type: "object", + required: ["url"], + title: "ExternalLogUrlResponse", + description: "Response for the external log URL endpoint.", } as const; export const $ExtraLinkCollectionResponse = { - properties: { - extra_links: { - additionalProperties: { - anyOf: [ - { - type: 'string' - }, - { - type: 'null' - } - ] - }, - type: 'object', - title: 'Extra Links' - }, - total_entries: { - type: 'integer', - title: 'Total Entries' - } - }, - type: 'object', - required: ['extra_links', 'total_entries'], - title: 'ExtraLinkCollectionResponse', - description: 'Extra Links Response.' + properties: { + extra_links: { + additionalProperties: { + anyOf: [ + { + type: "string", + }, + { + type: "null", + }, + ], + }, + type: "object", + title: "Extra Links", + }, + total_entries: { + type: "integer", + title: "Total Entries", + }, + }, + type: "object", + required: ["extra_links", "total_entries"], + title: "ExtraLinkCollectionResponse", + description: "Extra Links Response.", } as const; export const $FastAPIAppResponse = { - properties: { - app: { - type: 'string', - title: 'App' - }, - url_prefix: { - type: 'string', - title: 'Url Prefix' - }, - name: { - type: 'string', - title: 'Name' - } + properties: { + app: { + type: "string", + title: "App", + }, + url_prefix: { + type: "string", + title: "Url Prefix", + }, + name: { + type: "string", + title: "Name", }, - additionalProperties: true, - type: 'object', - required: ['app', 'url_prefix', 'name'], - title: 'FastAPIAppResponse', - description: 'Serializer for Plugin FastAPI App responses.' + }, + additionalProperties: true, + type: "object", + required: ["app", "url_prefix", "name"], + title: "FastAPIAppResponse", + description: "Serializer for Plugin FastAPI App responses.", } as const; export const $FastAPIRootMiddlewareResponse = { - properties: { - middleware: { - type: 'string', - title: 'Middleware' - }, - name: { - type: 'string', - title: 'Name' - } - }, - additionalProperties: true, - type: 'object', - required: ['middleware', 'name'], - title: 'FastAPIRootMiddlewareResponse', - description: 'Serializer for Plugin FastAPI root middleware responses.' -} as const; - -export const $HITLDetail = { - properties: { - task_instance: { - '$ref': '#/components/schemas/TaskInstanceResponse' - }, - options: { - items: { - type: 'string' - }, - type: 'array', - title: 'Options' - }, - subject: { - type: 'string', - title: 'Subject' - }, - body: { - anyOf: [ - { - type: 'string' - }, - { - type: 'null' - } - ], - title: 'Body' - }, - defaults: { - anyOf: [ - { - items: { - type: 'string' - }, - type: 'array' - }, - { - type: 'null' - } - ], - title: 'Defaults' - }, - multiple: { - type: 'boolean', - title: 'Multiple', - default: false - }, - params: { - additionalProperties: true, - type: 'object', - title: 'Params' - }, - user_id: { - anyOf: [ - { - type: 'string' - }, - { - type: 'null' - } - ], - title: 'User Id' - }, - response_at: { - anyOf: [ - { - type: 'string', - format: 'date-time' - }, - { - type: 'null' - } - ], - title: 'Response At' - }, - chosen_options: { - anyOf: [ - { - items: { - type: 'string' - }, - type: 'array' - }, - { - type: 'null' - } - ], - title: 'Chosen Options' - }, - params_input: { - additionalProperties: true, - type: 'object', - title: 'Params Input' - }, - response_received: { - type: 'boolean', - title: 'Response Received', - default: false - } - }, - type: 'object', - required: ['task_instance', 'options', 'subject'], - title: 'HITLDetail', - description: 'Schema for Human-in-the-loop detail.' -} as const; - -export const $HITLDetailCollection = { - properties: { - hitl_details: { - items: { - '$ref': '#/components/schemas/HITLDetail' - }, - type: 'array', - title: 'Hitl Details' - }, - total_entries: { - type: 'integer', - title: 'Total Entries' - } - }, - type: 'object', - required: ['hitl_details', 'total_entries'], - title: 'HITLDetailCollection', - description: 'Schema for a collection of Human-in-the-loop details.' -} as const; - -export const $HITLDetailResponse = { - properties: { - user_id: { - type: 'string', - title: 'User Id' - }, - response_at: { - type: 'string', - format: 'date-time', - title: 'Response At' - }, - chosen_options: { - items: { - type: 'string' - }, - type: 'array', - title: 'Chosen Options' - }, - params_input: { - additionalProperties: true, - type: 'object', - title: 'Params Input' - } + properties: { + middleware: { + type: "string", + title: "Middleware", }, - type: 'object', - required: ['user_id', 'response_at', 'chosen_options'], - title: 'HITLDetailResponse', - description: 'Response of updating a Human-in-the-loop detail.' + name: { + type: "string", + title: "Name", + }, + }, + additionalProperties: true, + type: "object", + required: ["middleware", "name"], + title: "FastAPIRootMiddlewareResponse", + description: "Serializer for Plugin FastAPI root middleware responses.", } as const; export const $HTTPExceptionResponse = { - properties: { - detail: { - anyOf: [ - { - type: 'string' - }, - { - additionalProperties: true, - type: 'object' - } - ], - title: 'Detail' - } + properties: { + detail: { + anyOf: [ + { + type: "string", + }, + { + additionalProperties: true, + type: "object", + }, + ], + title: "Detail", }, - type: 'object', - required: ['detail'], - title: 'HTTPExceptionResponse', - description: 'HTTPException Model used for error response.' + }, + type: "object", + required: ["detail"], + title: "HTTPExceptionResponse", + description: "HTTPException Model used for error response.", } as const; export const $HTTPValidationError = { - properties: { - detail: { - items: { - '$ref': '#/components/schemas/ValidationError' - }, - type: 'array', - title: 'Detail' - } + properties: { + detail: { + items: { + $ref: "#/components/schemas/ValidationError", + }, + type: "array", + title: "Detail", }, - type: 'object', - title: 'HTTPValidationError' + }, + type: "object", + title: "HTTPValidationError", } as const; export const $HealthInfoResponse = { - properties: { - metadatabase: { - '$ref': '#/components/schemas/BaseInfoResponse' + properties: { + metadatabase: { + $ref: "#/components/schemas/BaseInfoResponse", + }, + scheduler: { + $ref: "#/components/schemas/SchedulerInfoResponse", + }, + triggerer: { + $ref: "#/components/schemas/TriggererInfoResponse", + }, + dag_processor: { + anyOf: [ + { + $ref: "#/components/schemas/DagProcessorInfoResponse", + }, + { + type: "null", + }, + ], + }, + }, + type: "object", + required: ["metadatabase", "scheduler", "triggerer"], + title: "HealthInfoResponse", + description: "Health serializer for responses.", +} as const; + +export const $IFrameViewsResponse = { + properties: { + name: { + type: "string", + title: "Name", + }, + src: { + type: "string", + title: "Src", + }, + icon: { + anyOf: [ + { + type: "string", }, - scheduler: { - '$ref': '#/components/schemas/SchedulerInfoResponse' + { + type: "null", }, - triggerer: { - '$ref': '#/components/schemas/TriggererInfoResponse' + ], + title: "Icon", + }, + url_route: { + anyOf: [ + { + type: "string", }, - dag_processor: { - anyOf: [ - { - '$ref': '#/components/schemas/DagProcessorInfoResponse' - }, - { - type: 'null' - } - ] - } + { + type: "null", + }, + ], + title: "Url Route", + }, + destination: { + anyOf: [ + { + type: "string", + enum: ["nav", "dag", "dag_run", "task", "task_instance"], + }, + { + type: "null", + }, + ], + title: "Destination", }, - type: 'object', - required: ['metadatabase', 'scheduler', 'triggerer'], - title: 'HealthInfoResponse', - description: 'Health serializer for responses.' + }, + additionalProperties: true, + type: "object", + required: ["name", "src"], + title: "IFrameViewsResponse", + description: "Serializer for IFrame Plugin responses.", } as const; export const $ImportErrorCollectionResponse = { - properties: { - import_errors: { - items: { - '$ref': '#/components/schemas/ImportErrorResponse' - }, - type: 'array', - title: 'Import Errors' - }, - total_entries: { - type: 'integer', - title: 'Total Entries' - } + properties: { + import_errors: { + items: { + $ref: "#/components/schemas/ImportErrorResponse", + }, + type: "array", + title: "Import Errors", }, - type: 'object', - required: ['import_errors', 'total_entries'], - title: 'ImportErrorCollectionResponse', - description: 'Import Error Collection Response.' + total_entries: { + type: "integer", + title: "Total Entries", + }, + }, + type: "object", + required: ["import_errors", "total_entries"], + title: "ImportErrorCollectionResponse", + description: "Import Error Collection Response.", } as const; export const $ImportErrorResponse = { - properties: { - import_error_id: { - type: 'integer', - title: 'Import Error Id' - }, - timestamp: { - type: 'string', - format: 'date-time', - title: 'Timestamp' - }, - filename: { - type: 'string', - title: 'Filename' + properties: { + import_error_id: { + type: "integer", + title: "Import Error Id", + }, + timestamp: { + type: "string", + format: "date-time", + title: "Timestamp", + }, + filename: { + type: "string", + title: "Filename", + }, + bundle_name: { + anyOf: [ + { + type: "string", }, - bundle_name: { - anyOf: [ - { - type: 'string' - }, - { - type: 'null' - } - ], - title: 'Bundle Name' + { + type: "null", }, - stack_trace: { - type: 'string', - title: 'Stack Trace' - } + ], + title: "Bundle Name", }, - type: 'object', - required: ['import_error_id', 'timestamp', 'filename', 'bundle_name', 'stack_trace'], - title: 'ImportErrorResponse', - description: 'Import Error Response.' + stack_trace: { + type: "string", + title: "Stack Trace", + }, + }, + type: "object", + required: ["import_error_id", "timestamp", "filename", "bundle_name", "stack_trace"], + title: "ImportErrorResponse", + description: "Import Error Response.", } as const; export const $JobCollectionResponse = { - properties: { - jobs: { - items: { - '$ref': '#/components/schemas/JobResponse' - }, - type: 'array', - title: 'Jobs' - }, - total_entries: { - type: 'integer', - title: 'Total Entries' - } + properties: { + jobs: { + items: { + $ref: "#/components/schemas/JobResponse", + }, + type: "array", + title: "Jobs", + }, + total_entries: { + type: "integer", + title: "Total Entries", }, - type: 'object', - required: ['jobs', 'total_entries'], - title: 'JobCollectionResponse', - description: 'Job Collection Response.' + }, + type: "object", + required: ["jobs", "total_entries"], + title: "JobCollectionResponse", + description: "Job Collection Response.", } as const; export const $JobResponse = { - properties: { - id: { - type: 'integer', - title: 'Id' - }, - dag_id: { - anyOf: [ - { - type: 'string' - }, - { - type: 'null' - } - ], - title: 'Dag Id' - }, - state: { - anyOf: [ - { - type: 'string' - }, - { - type: 'null' - } - ], - title: 'State' - }, - job_type: { - anyOf: [ - { - type: 'string' - }, - { - type: 'null' - } - ], - title: 'Job Type' + properties: { + id: { + type: "integer", + title: "Id", + }, + dag_id: { + anyOf: [ + { + type: "string", }, - start_date: { - anyOf: [ - { - type: 'string', - format: 'date-time' - }, - { - type: 'null' - } - ], - title: 'Start Date' + { + type: "null", }, - end_date: { - anyOf: [ - { - type: 'string', - format: 'date-time' - }, - { - type: 'null' - } - ], - title: 'End Date' + ], + title: "Dag Id", + }, + state: { + anyOf: [ + { + type: "string", }, - latest_heartbeat: { - anyOf: [ - { - type: 'string', - format: 'date-time' - }, - { - type: 'null' - } - ], - title: 'Latest Heartbeat' + { + type: "null", }, - executor_class: { - anyOf: [ - { - type: 'string' - }, - { - type: 'null' - } - ], - title: 'Executor Class' + ], + title: "State", + }, + job_type: { + anyOf: [ + { + type: "string", + }, + { + type: "null", + }, + ], + title: "Job Type", + }, + start_date: { + anyOf: [ + { + type: "string", + format: "date-time", + }, + { + type: "null", + }, + ], + title: "Start Date", + }, + end_date: { + anyOf: [ + { + type: "string", + format: "date-time", + }, + { + type: "null", + }, + ], + title: "End Date", + }, + latest_heartbeat: { + anyOf: [ + { + type: "string", + format: "date-time", + }, + { + type: "null", + }, + ], + title: "Latest Heartbeat", + }, + executor_class: { + anyOf: [ + { + type: "string", + }, + { + type: "null", + }, + ], + title: "Executor Class", + }, + hostname: { + anyOf: [ + { + type: "string", + }, + { + type: "null", + }, + ], + title: "Hostname", + }, + unixname: { + anyOf: [ + { + type: "string", + }, + { + type: "null", }, - hostname: { - anyOf: [ - { - type: 'string' - }, - { - type: 'null' - } - ], - title: 'Hostname' + ], + title: "Unixname", + }, + dag_display_name: { + anyOf: [ + { + type: "string", }, - unixname: { - anyOf: [ - { - type: 'string' - }, - { - type: 'null' - } - ], - title: 'Unixname' + { + type: "null", }, - dag_display_name: { - anyOf: [ - { - type: 'string' - }, - { - type: 'null' - } - ], - title: 'Dag Display Name' - } + ], + title: "Dag Display Name", }, - type: 'object', - required: ['id', 'dag_id', 'state', 'job_type', 'start_date', 'end_date', 'latest_heartbeat', 'executor_class', 'hostname', 'unixname'], - title: 'JobResponse', - description: 'Job serializer for responses.' + }, + type: "object", + required: [ + "id", + "dag_id", + "state", + "job_type", + "start_date", + "end_date", + "latest_heartbeat", + "executor_class", + "hostname", + "unixname", + ], + title: "JobResponse", + description: "Job serializer for responses.", } as const; export const $JsonValue = {} as const; export const $LastAssetEventResponse = { - properties: { - id: { - anyOf: [ - { - type: 'integer', - minimum: 0 - }, - { - type: 'null' - } - ], - title: 'Id' + properties: { + id: { + anyOf: [ + { + type: "integer", + minimum: 0, }, - timestamp: { - anyOf: [ - { - type: 'string', - format: 'date-time' - }, - { - type: 'null' - } - ], - title: 'Timestamp' - } + { + type: "null", + }, + ], + title: "Id", + }, + timestamp: { + anyOf: [ + { + type: "string", + format: "date-time", + }, + { + type: "null", + }, + ], + title: "Timestamp", }, - type: 'object', - title: 'LastAssetEventResponse', - description: 'Last asset event response serializer.' + }, + type: "object", + title: "LastAssetEventResponse", + description: "Last asset event response serializer.", } as const; export const $PatchTaskInstanceBody = { - properties: { - new_state: { - anyOf: [ - { - '$ref': '#/components/schemas/TaskInstanceState' - }, - { - type: 'null' - } - ] - }, - note: { - anyOf: [ - { - type: 'string', - maxLength: 1000 - }, - { - type: 'null' - } - ], - title: 'Note' + properties: { + new_state: { + anyOf: [ + { + $ref: "#/components/schemas/TaskInstanceState", }, - include_upstream: { - type: 'boolean', - title: 'Include Upstream', - default: false + { + type: "null", }, - include_downstream: { - type: 'boolean', - title: 'Include Downstream', - default: false + ], + }, + note: { + anyOf: [ + { + type: "string", + maxLength: 1000, }, - include_future: { - type: 'boolean', - title: 'Include Future', - default: false + { + type: "null", }, - include_past: { - type: 'boolean', - title: 'Include Past', - default: false - } + ], + title: "Note", + }, + include_upstream: { + type: "boolean", + title: "Include Upstream", + default: false, + }, + include_downstream: { + type: "boolean", + title: "Include Downstream", + default: false, + }, + include_future: { + type: "boolean", + title: "Include Future", + default: false, }, - additionalProperties: false, - type: 'object', - title: 'PatchTaskInstanceBody', - description: 'Request body for Clear Task Instances endpoint.' + include_past: { + type: "boolean", + title: "Include Past", + default: false, + }, + }, + additionalProperties: false, + type: "object", + title: "PatchTaskInstanceBody", + description: "Request body for Clear Task Instances endpoint.", } as const; export const $PluginCollectionResponse = { - properties: { - plugins: { - items: { - '$ref': '#/components/schemas/PluginResponse' - }, - type: 'array', - title: 'Plugins' - }, - total_entries: { - type: 'integer', - title: 'Total Entries' - } + properties: { + plugins: { + items: { + $ref: "#/components/schemas/PluginResponse", + }, + type: "array", + title: "Plugins", + }, + total_entries: { + type: "integer", + title: "Total Entries", }, - type: 'object', - required: ['plugins', 'total_entries'], - title: 'PluginCollectionResponse', - description: 'Plugin Collection serializer.' + }, + type: "object", + required: ["plugins", "total_entries"], + title: "PluginCollectionResponse", + description: "Plugin Collection serializer.", } as const; export const $PluginImportErrorCollectionResponse = { - properties: { - import_errors: { - items: { - '$ref': '#/components/schemas/PluginImportErrorResponse' - }, - type: 'array', - title: 'Import Errors' - }, - total_entries: { - type: 'integer', - title: 'Total Entries' - } + properties: { + import_errors: { + items: { + $ref: "#/components/schemas/PluginImportErrorResponse", + }, + type: "array", + title: "Import Errors", }, - type: 'object', - required: ['import_errors', 'total_entries'], - title: 'PluginImportErrorCollectionResponse', - description: 'Plugin Import Error Collection serializer.' + total_entries: { + type: "integer", + title: "Total Entries", + }, + }, + type: "object", + required: ["import_errors", "total_entries"], + title: "PluginImportErrorCollectionResponse", + description: "Plugin Import Error Collection serializer.", } as const; export const $PluginImportErrorResponse = { - properties: { - source: { - type: 'string', - title: 'Source' - }, - error: { - type: 'string', - title: 'Error' - } + properties: { + source: { + type: "string", + title: "Source", }, - type: 'object', - required: ['source', 'error'], - title: 'PluginImportErrorResponse', - description: 'Plugin Import Error serializer for responses.' + error: { + type: "string", + title: "Error", + }, + }, + type: "object", + required: ["source", "error"], + title: "PluginImportErrorResponse", + description: "Plugin Import Error serializer for responses.", } as const; export const $PluginResponse = { - properties: { - name: { - type: 'string', - title: 'Name' - }, - macros: { - items: { - type: 'string' - }, - type: 'array', - title: 'Macros' - }, - flask_blueprints: { - items: { - type: 'string' - }, - type: 'array', - title: 'Flask Blueprints' - }, - fastapi_apps: { - items: { - '$ref': '#/components/schemas/FastAPIAppResponse' - }, - type: 'array', - title: 'Fastapi Apps' + properties: { + name: { + type: "string", + title: "Name", + }, + macros: { + items: { + type: "string", + }, + type: "array", + title: "Macros", + }, + flask_blueprints: { + items: { + type: "string", + }, + type: "array", + title: "Flask Blueprints", + }, + fastapi_apps: { + items: { + $ref: "#/components/schemas/FastAPIAppResponse", + }, + type: "array", + title: "Fastapi Apps", + }, + fastapi_root_middlewares: { + items: { + $ref: "#/components/schemas/FastAPIRootMiddlewareResponse", + }, + type: "array", + title: "Fastapi Root Middlewares", + }, + iframe_views: { + items: { + $ref: "#/components/schemas/IFrameViewsResponse", + }, + type: "array", + title: "Iframe Views", + }, + appbuilder_views: { + items: { + $ref: "#/components/schemas/AppBuilderViewResponse", + }, + type: "array", + title: "Appbuilder Views", + }, + appbuilder_menu_items: { + items: { + $ref: "#/components/schemas/AppBuilderMenuItemResponse", + }, + type: "array", + title: "Appbuilder Menu Items", + }, + global_operator_extra_links: { + items: { + type: "string", + }, + type: "array", + title: "Global Operator Extra Links", + }, + operator_extra_links: { + items: { + type: "string", + }, + type: "array", + title: "Operator Extra Links", + }, + source: { + type: "string", + title: "Source", + }, + listeners: { + items: { + type: "string", + }, + type: "array", + title: "Listeners", + }, + timetables: { + items: { + type: "string", + }, + type: "array", + title: "Timetables", + }, + }, + type: "object", + required: [ + "name", + "macros", + "flask_blueprints", + "fastapi_apps", + "fastapi_root_middlewares", + "iframe_views", + "appbuilder_views", + "appbuilder_menu_items", + "global_operator_extra_links", + "operator_extra_links", + "source", + "listeners", + "timetables", + ], + title: "PluginResponse", + description: "Plugin serializer.", +} as const; + +export const $PoolBody = { + properties: { + name: { + type: "string", + maxLength: 256, + title: "Name", + }, + slots: { + type: "integer", + title: "Slots", + }, + description: { + anyOf: [ + { + type: "string", }, - fastapi_root_middlewares: { - items: { - '$ref': '#/components/schemas/FastAPIRootMiddlewareResponse' - }, - type: 'array', - title: 'Fastapi Root Middlewares' + { + type: "null", }, - external_views: { - items: { - '$ref': '#/components/schemas/ExternalViewResponse' - }, - type: 'array', - title: 'External Views', - description: "Aggregate all external views. Both 'external_views' and 'appbuilder_menu_items' are included here." + ], + title: "Description", + }, + include_deferred: { + type: "boolean", + title: "Include Deferred", + default: false, + }, + }, + additionalProperties: false, + type: "object", + required: ["name", "slots"], + title: "PoolBody", + description: "Pool serializer for post bodies.", +} as const; + +export const $PoolCollectionResponse = { + properties: { + pools: { + items: { + $ref: "#/components/schemas/PoolResponse", + }, + type: "array", + title: "Pools", + }, + total_entries: { + type: "integer", + title: "Total Entries", + }, + }, + type: "object", + required: ["pools", "total_entries"], + title: "PoolCollectionResponse", + description: "Pool Collection serializer for responses.", +} as const; + +export const $PoolPatchBody = { + properties: { + pool: { + anyOf: [ + { + type: "string", }, - react_apps: { - items: { - '$ref': '#/components/schemas/ReactAppResponse' - }, - type: 'array', - title: 'React Apps' + { + type: "null", }, - appbuilder_views: { - items: { - '$ref': '#/components/schemas/AppBuilderViewResponse' - }, - type: 'array', - title: 'Appbuilder Views' + ], + title: "Pool", + }, + slots: { + anyOf: [ + { + type: "integer", }, - appbuilder_menu_items: { - items: { - '$ref': '#/components/schemas/AppBuilderMenuItemResponse' - }, - type: 'array', - title: 'Appbuilder Menu Items', - deprecated: true + { + type: "null", }, - global_operator_extra_links: { - items: { - type: 'string' - }, - type: 'array', - title: 'Global Operator Extra Links' + ], + title: "Slots", + }, + description: { + anyOf: [ + { + type: "string", }, - operator_extra_links: { - items: { - type: 'string' - }, - type: 'array', - title: 'Operator Extra Links' + { + type: "null", }, - source: { - type: 'string', - title: 'Source' + ], + title: "Description", + }, + include_deferred: { + anyOf: [ + { + type: "boolean", }, - listeners: { - items: { - type: 'string' - }, - type: 'array', - title: 'Listeners' + { + type: "null", }, - timetables: { - items: { - type: 'string' - }, - type: 'array', - title: 'Timetables' - } - }, - type: 'object', - required: ['name', 'macros', 'flask_blueprints', 'fastapi_apps', 'fastapi_root_middlewares', 'external_views', 'react_apps', 'appbuilder_views', 'appbuilder_menu_items', 'global_operator_extra_links', 'operator_extra_links', 'source', 'listeners', 'timetables'], - title: 'PluginResponse', - description: 'Plugin serializer.' -} as const; - -export const $PoolBody = { - properties: { - name: { - type: 'string', - maxLength: 256, - title: 'Name' - }, - slots: { - type: 'integer', - title: 'Slots' - }, - description: { - anyOf: [ - { - type: 'string' - }, - { - type: 'null' - } - ], - title: 'Description' - }, - include_deferred: { - type: 'boolean', - title: 'Include Deferred', - default: false - } - }, - additionalProperties: false, - type: 'object', - required: ['name', 'slots'], - title: 'PoolBody', - description: 'Pool serializer for post bodies.' -} as const; - -export const $PoolCollectionResponse = { - properties: { - pools: { - items: { - '$ref': '#/components/schemas/PoolResponse' - }, - type: 'array', - title: 'Pools' - }, - total_entries: { - type: 'integer', - title: 'Total Entries' - } + ], + title: "Include Deferred", }, - type: 'object', - required: ['pools', 'total_entries'], - title: 'PoolCollectionResponse', - description: 'Pool Collection serializer for responses.' -} as const; - -export const $PoolPatchBody = { - properties: { - pool: { - anyOf: [ - { - type: 'string' - }, - { - type: 'null' - } - ], - title: 'Pool' - }, - slots: { - anyOf: [ - { - type: 'integer' - }, - { - type: 'null' - } - ], - title: 'Slots' - }, - description: { - anyOf: [ - { - type: 'string' - }, - { - type: 'null' - } - ], - title: 'Description' - }, - include_deferred: { - anyOf: [ - { - type: 'boolean' - }, - { - type: 'null' - } - ], - title: 'Include Deferred' - } - }, - additionalProperties: false, - type: 'object', - title: 'PoolPatchBody', - description: 'Pool serializer for patch bodies.' + }, + additionalProperties: false, + type: "object", + title: "PoolPatchBody", + description: "Pool serializer for patch bodies.", } as const; export const $PoolResponse = { - properties: { - name: { - type: 'string', - title: 'Name' - }, - slots: { - type: 'integer', - title: 'Slots' - }, - description: { - anyOf: [ - { - type: 'string' - }, - { - type: 'null' - } - ], - title: 'Description' - }, - include_deferred: { - type: 'boolean', - title: 'Include Deferred' - }, - occupied_slots: { - type: 'integer', - title: 'Occupied Slots' - }, - running_slots: { - type: 'integer', - title: 'Running Slots' - }, - queued_slots: { - type: 'integer', - title: 'Queued Slots' - }, - scheduled_slots: { - type: 'integer', - title: 'Scheduled Slots' - }, - open_slots: { - type: 'integer', - title: 'Open Slots' - }, - deferred_slots: { - type: 'integer', - title: 'Deferred Slots' - } - }, - type: 'object', - required: ['name', 'slots', 'description', 'include_deferred', 'occupied_slots', 'running_slots', 'queued_slots', 'scheduled_slots', 'open_slots', 'deferred_slots'], - title: 'PoolResponse', - description: 'Pool serializer for responses.' + properties: { + name: { + type: "string", + title: "Name", + }, + slots: { + type: "integer", + title: "Slots", + }, + description: { + anyOf: [ + { + type: "string", + }, + { + type: "null", + }, + ], + title: "Description", + }, + include_deferred: { + type: "boolean", + title: "Include Deferred", + }, + occupied_slots: { + type: "integer", + title: "Occupied Slots", + }, + running_slots: { + type: "integer", + title: "Running Slots", + }, + queued_slots: { + type: "integer", + title: "Queued Slots", + }, + scheduled_slots: { + type: "integer", + title: "Scheduled Slots", + }, + open_slots: { + type: "integer", + title: "Open Slots", + }, + deferred_slots: { + type: "integer", + title: "Deferred Slots", + }, + }, + type: "object", + required: [ + "name", + "slots", + "description", + "include_deferred", + "occupied_slots", + "running_slots", + "queued_slots", + "scheduled_slots", + "open_slots", + "deferred_slots", + ], + title: "PoolResponse", + description: "Pool serializer for responses.", } as const; export const $ProviderCollectionResponse = { - properties: { - providers: { - items: { - '$ref': '#/components/schemas/ProviderResponse' - }, - type: 'array', - title: 'Providers' - }, - total_entries: { - type: 'integer', - title: 'Total Entries' - } + properties: { + providers: { + items: { + $ref: "#/components/schemas/ProviderResponse", + }, + type: "array", + title: "Providers", + }, + total_entries: { + type: "integer", + title: "Total Entries", }, - type: 'object', - required: ['providers', 'total_entries'], - title: 'ProviderCollectionResponse', - description: 'Provider Collection serializer for responses.' + }, + type: "object", + required: ["providers", "total_entries"], + title: "ProviderCollectionResponse", + description: "Provider Collection serializer for responses.", } as const; export const $ProviderResponse = { - properties: { - package_name: { - type: 'string', - title: 'Package Name' - }, - description: { - type: 'string', - title: 'Description' - }, - version: { - type: 'string', - title: 'Version' - } + properties: { + package_name: { + type: "string", + title: "Package Name", }, - type: 'object', - required: ['package_name', 'description', 'version'], - title: 'ProviderResponse', - description: 'Provider serializer for responses.' + description: { + type: "string", + title: "Description", + }, + version: { + type: "string", + title: "Version", + }, + }, + type: "object", + required: ["package_name", "description", "version"], + title: "ProviderResponse", + description: "Provider serializer for responses.", } as const; export const $QueuedEventCollectionResponse = { - properties: { - queued_events: { - items: { - '$ref': '#/components/schemas/QueuedEventResponse' - }, - type: 'array', - title: 'Queued Events' - }, - total_entries: { - type: 'integer', - title: 'Total Entries' - } + properties: { + queued_events: { + items: { + $ref: "#/components/schemas/QueuedEventResponse", + }, + type: "array", + title: "Queued Events", }, - type: 'object', - required: ['queued_events', 'total_entries'], - title: 'QueuedEventCollectionResponse', - description: 'Queued Event Collection serializer for responses.' + total_entries: { + type: "integer", + title: "Total Entries", + }, + }, + type: "object", + required: ["queued_events", "total_entries"], + title: "QueuedEventCollectionResponse", + description: "Queued Event Collection serializer for responses.", } as const; export const $QueuedEventResponse = { - properties: { - dag_id: { - type: 'string', - title: 'Dag Id' - }, - asset_id: { - type: 'integer', - title: 'Asset Id' - }, - created_at: { - type: 'string', - format: 'date-time', - title: 'Created At' - }, - dag_display_name: { - type: 'string', - title: 'Dag Display Name' - } - }, - type: 'object', - required: ['dag_id', 'asset_id', 'created_at', 'dag_display_name'], - title: 'QueuedEventResponse', - description: 'Queued Event serializer for responses..' -} as const; - -export const $ReactAppResponse = { - properties: { - name: { - type: 'string', - title: 'Name' - }, - icon: { - anyOf: [ - { - type: 'string' - }, - { - type: 'null' - } - ], - title: 'Icon' - }, - icon_dark_mode: { - anyOf: [ - { - type: 'string' - }, - { - type: 'null' - } - ], - title: 'Icon Dark Mode' - }, - url_route: { - anyOf: [ - { - type: 'string' - }, - { - type: 'null' - } - ], - title: 'Url Route' - }, - category: { - anyOf: [ - { - type: 'string' - }, - { - type: 'null' - } - ], - title: 'Category' - }, - destination: { - type: 'string', - enum: ['nav', 'dag', 'dag_run', 'task', 'task_instance'], - title: 'Destination', - default: 'nav' - }, - bundle_url: { - type: 'string', - title: 'Bundle Url' - } + properties: { + dag_id: { + type: "string", + title: "Dag Id", + }, + asset_id: { + type: "integer", + title: "Asset Id", + }, + created_at: { + type: "string", + format: "date-time", + title: "Created At", }, - additionalProperties: true, - type: 'object', - required: ['name', 'bundle_url'], - title: 'ReactAppResponse', - description: 'Serializer for React App Plugin responses.' + dag_display_name: { + type: "string", + title: "Dag Display Name", + }, + }, + type: "object", + required: ["dag_id", "asset_id", "created_at", "dag_display_name"], + title: "QueuedEventResponse", + description: "Queued Event serializer for responses..", } as const; export const $ReprocessBehavior = { - type: 'string', - enum: ['failed', 'completed', 'none'], - title: 'ReprocessBehavior', - description: `Internal enum for setting reprocess behavior in a backfill. + type: "string", + enum: ["failed", "completed", "none"], + title: "ReprocessBehavior", + description: `Internal enum for setting reprocess behavior in a backfill. -:meta private:` +:meta private:`, } as const; export const $SchedulerInfoResponse = { - properties: { - status: { - anyOf: [ - { - type: 'string' - }, - { - type: 'null' - } - ], - title: 'Status' + properties: { + status: { + anyOf: [ + { + type: "string", }, - latest_scheduler_heartbeat: { - anyOf: [ - { - type: 'string' - }, - { - type: 'null' - } - ], - title: 'Latest Scheduler Heartbeat' - } + { + type: "null", + }, + ], + title: "Status", + }, + latest_scheduler_heartbeat: { + anyOf: [ + { + type: "string", + }, + { + type: "null", + }, + ], + title: "Latest Scheduler Heartbeat", }, - type: 'object', - required: ['status', 'latest_scheduler_heartbeat'], - title: 'SchedulerInfoResponse', - description: 'Scheduler info serializer for responses.' + }, + type: "object", + required: ["status", "latest_scheduler_heartbeat"], + title: "SchedulerInfoResponse", + description: "Scheduler info serializer for responses.", } as const; export const $StructuredLogMessage = { - properties: { - timestamp: { - type: 'string', - format: 'date-time', - title: 'Timestamp' - }, - event: { - type: 'string', - title: 'Event' - } + properties: { + timestamp: { + type: "string", + format: "date-time", + title: "Timestamp", }, - additionalProperties: true, - type: 'object', - required: ['event'], - title: 'StructuredLogMessage', - description: 'An individual log message.' + event: { + type: "string", + title: "Event", + }, + }, + additionalProperties: true, + type: "object", + required: ["event"], + title: "StructuredLogMessage", + description: "An individual log message.", } as const; export const $TaskCollectionResponse = { - properties: { - tasks: { - items: { - '$ref': '#/components/schemas/TaskResponse' - }, - type: 'array', - title: 'Tasks' - }, - total_entries: { - type: 'integer', - title: 'Total Entries' - } + properties: { + tasks: { + items: { + $ref: "#/components/schemas/TaskResponse", + }, + type: "array", + title: "Tasks", + }, + total_entries: { + type: "integer", + title: "Total Entries", }, - type: 'object', - required: ['tasks', 'total_entries'], - title: 'TaskCollectionResponse', - description: 'Task collection serializer for responses.' + }, + type: "object", + required: ["tasks", "total_entries"], + title: "TaskCollectionResponse", + description: "Task collection serializer for responses.", } as const; export const $TaskDependencyCollectionResponse = { - properties: { - dependencies: { - items: { - '$ref': '#/components/schemas/TaskDependencyResponse' - }, - type: 'array', - title: 'Dependencies' - } + properties: { + dependencies: { + items: { + $ref: "#/components/schemas/TaskDependencyResponse", + }, + type: "array", + title: "Dependencies", }, - type: 'object', - required: ['dependencies'], - title: 'TaskDependencyCollectionResponse', - description: 'Task scheduling dependencies collection serializer for responses.' + }, + type: "object", + required: ["dependencies"], + title: "TaskDependencyCollectionResponse", + description: "Task scheduling dependencies collection serializer for responses.", } as const; export const $TaskDependencyResponse = { - properties: { - name: { - type: 'string', - title: 'Name' - }, - reason: { - type: 'string', - title: 'Reason' - } - }, - type: 'object', - required: ['name', 'reason'], - title: 'TaskDependencyResponse', - description: 'Task Dependency serializer for responses.' -} as const; - -export const $TaskInletAssetReference = { - properties: { - dag_id: { - type: 'string', - title: 'Dag Id' - }, - task_id: { - type: 'string', - title: 'Task Id' - }, - created_at: { - type: 'string', - format: 'date-time', - title: 'Created At' - }, - updated_at: { - type: 'string', - format: 'date-time', - title: 'Updated At' - } - }, - additionalProperties: false, - type: 'object', - required: ['dag_id', 'task_id', 'created_at', 'updated_at'], - title: 'TaskInletAssetReference', - description: 'Task inlet reference serializer for assets.' + properties: { + name: { + type: "string", + title: "Name", + }, + reason: { + type: "string", + title: "Reason", + }, + }, + type: "object", + required: ["name", "reason"], + title: "TaskDependencyResponse", + description: "Task Dependency serializer for responses.", } as const; export const $TaskInstanceCollectionResponse = { - properties: { - task_instances: { - items: { - '$ref': '#/components/schemas/TaskInstanceResponse' - }, - type: 'array', - title: 'Task Instances' - }, - total_entries: { - type: 'integer', - title: 'Total Entries' - } + properties: { + task_instances: { + items: { + $ref: "#/components/schemas/TaskInstanceResponse", + }, + type: "array", + title: "Task Instances", + }, + total_entries: { + type: "integer", + title: "Total Entries", }, - type: 'object', - required: ['task_instances', 'total_entries'], - title: 'TaskInstanceCollectionResponse', - description: 'Task Instance Collection serializer for responses.' + }, + type: "object", + required: ["task_instances", "total_entries"], + title: "TaskInstanceCollectionResponse", + description: "Task Instance Collection serializer for responses.", } as const; export const $TaskInstanceHistoryCollectionResponse = { - properties: { - task_instances: { - items: { - '$ref': '#/components/schemas/TaskInstanceHistoryResponse' - }, - type: 'array', - title: 'Task Instances' - }, - total_entries: { - type: 'integer', - title: 'Total Entries' - } + properties: { + task_instances: { + items: { + $ref: "#/components/schemas/TaskInstanceHistoryResponse", + }, + type: "array", + title: "Task Instances", }, - type: 'object', - required: ['task_instances', 'total_entries'], - title: 'TaskInstanceHistoryCollectionResponse', - description: 'TaskInstanceHistory Collection serializer for responses.' + total_entries: { + type: "integer", + title: "Total Entries", + }, + }, + type: "object", + required: ["task_instances", "total_entries"], + title: "TaskInstanceHistoryCollectionResponse", + description: "TaskInstanceHistory Collection serializer for responses.", } as const; export const $TaskInstanceHistoryResponse = { - properties: { - task_id: { - type: 'string', - title: 'Task Id' - }, - dag_id: { - type: 'string', - title: 'Dag Id' - }, - dag_run_id: { - type: 'string', - title: 'Dag Run Id' - }, - map_index: { - type: 'integer', - title: 'Map Index' - }, - start_date: { - anyOf: [ - { - type: 'string', - format: 'date-time' - }, - { - type: 'null' - } - ], - title: 'Start Date' - }, - end_date: { - anyOf: [ - { - type: 'string', - format: 'date-time' - }, - { - type: 'null' - } - ], - title: 'End Date' + properties: { + task_id: { + type: "string", + title: "Task Id", + }, + dag_id: { + type: "string", + title: "Dag Id", + }, + dag_run_id: { + type: "string", + title: "Dag Run Id", + }, + map_index: { + type: "integer", + title: "Map Index", + }, + start_date: { + anyOf: [ + { + type: "string", + format: "date-time", }, - duration: { - anyOf: [ - { - type: 'number' - }, - { - type: 'null' - } - ], - title: 'Duration' + { + type: "null", }, - state: { - anyOf: [ - { - '$ref': '#/components/schemas/TaskInstanceState' - }, - { - type: 'null' - } - ] - }, - try_number: { - type: 'integer', - title: 'Try Number' - }, - max_tries: { - type: 'integer', - title: 'Max Tries' - }, - task_display_name: { - type: 'string', - title: 'Task Display Name' - }, - dag_display_name: { - type: 'string', - title: 'Dag Display Name' - }, - hostname: { - anyOf: [ - { - type: 'string' - }, - { - type: 'null' - } - ], - title: 'Hostname' + ], + title: "Start Date", + }, + end_date: { + anyOf: [ + { + type: "string", + format: "date-time", }, - unixname: { - anyOf: [ - { - type: 'string' - }, - { - type: 'null' - } - ], - title: 'Unixname' + { + type: "null", }, - pool: { - type: 'string', - title: 'Pool' + ], + title: "End Date", + }, + duration: { + anyOf: [ + { + type: "number", }, - pool_slots: { - type: 'integer', - title: 'Pool Slots' + { + type: "null", }, - queue: { - anyOf: [ - { - type: 'string' - }, - { - type: 'null' - } - ], - title: 'Queue' + ], + title: "Duration", + }, + state: { + anyOf: [ + { + $ref: "#/components/schemas/TaskInstanceState", }, - priority_weight: { - anyOf: [ - { - type: 'integer' - }, - { - type: 'null' - } - ], - title: 'Priority Weight' + { + type: "null", }, - operator: { - anyOf: [ - { - type: 'string' - }, - { - type: 'null' - } - ], - title: 'Operator' + ], + }, + try_number: { + type: "integer", + title: "Try Number", + }, + max_tries: { + type: "integer", + title: "Max Tries", + }, + task_display_name: { + type: "string", + title: "Task Display Name", + }, + dag_display_name: { + type: "string", + title: "Dag Display Name", + }, + hostname: { + anyOf: [ + { + type: "string", }, - queued_when: { - anyOf: [ - { - type: 'string', - format: 'date-time' - }, - { - type: 'null' - } - ], - title: 'Queued When' + { + type: "null", }, - scheduled_when: { - anyOf: [ - { - type: 'string', - format: 'date-time' - }, - { - type: 'null' - } - ], - title: 'Scheduled When' + ], + title: "Hostname", + }, + unixname: { + anyOf: [ + { + type: "string", }, - pid: { - anyOf: [ - { - type: 'integer' - }, - { - type: 'null' - } - ], - title: 'Pid' + { + type: "null", }, - executor: { - anyOf: [ - { - type: 'string' - }, - { - type: 'null' - } - ], - title: 'Executor' + ], + title: "Unixname", + }, + pool: { + type: "string", + title: "Pool", + }, + pool_slots: { + type: "integer", + title: "Pool Slots", + }, + queue: { + anyOf: [ + { + type: "string", }, - executor_config: { - type: 'string', - title: 'Executor Config' + { + type: "null", }, - dag_version: { - anyOf: [ - { - '$ref': '#/components/schemas/DagVersionResponse' - }, - { - type: 'null' - } - ] - } - }, - type: 'object', - required: ['task_id', 'dag_id', 'dag_run_id', 'map_index', 'start_date', 'end_date', 'duration', 'state', 'try_number', 'max_tries', 'task_display_name', 'dag_display_name', 'hostname', 'unixname', 'pool', 'pool_slots', 'queue', 'priority_weight', 'operator', 'queued_when', 'scheduled_when', 'pid', 'executor', 'executor_config', 'dag_version'], - title: 'TaskInstanceHistoryResponse', - description: 'TaskInstanceHistory serializer for responses.' + ], + title: "Queue", + }, + priority_weight: { + anyOf: [ + { + type: "integer", + }, + { + type: "null", + }, + ], + title: "Priority Weight", + }, + operator: { + anyOf: [ + { + type: "string", + }, + { + type: "null", + }, + ], + title: "Operator", + }, + queued_when: { + anyOf: [ + { + type: "string", + format: "date-time", + }, + { + type: "null", + }, + ], + title: "Queued When", + }, + scheduled_when: { + anyOf: [ + { + type: "string", + format: "date-time", + }, + { + type: "null", + }, + ], + title: "Scheduled When", + }, + pid: { + anyOf: [ + { + type: "integer", + }, + { + type: "null", + }, + ], + title: "Pid", + }, + executor: { + anyOf: [ + { + type: "string", + }, + { + type: "null", + }, + ], + title: "Executor", + }, + executor_config: { + type: "string", + title: "Executor Config", + }, + dag_version: { + anyOf: [ + { + $ref: "#/components/schemas/DagVersionResponse", + }, + { + type: "null", + }, + ], + }, + }, + type: "object", + required: [ + "task_id", + "dag_id", + "dag_run_id", + "map_index", + "start_date", + "end_date", + "duration", + "state", + "try_number", + "max_tries", + "task_display_name", + "dag_display_name", + "hostname", + "unixname", + "pool", + "pool_slots", + "queue", + "priority_weight", + "operator", + "queued_when", + "scheduled_when", + "pid", + "executor", + "executor_config", + "dag_version", + ], + title: "TaskInstanceHistoryResponse", + description: "TaskInstanceHistory serializer for responses.", } as const; export const $TaskInstanceResponse = { - properties: { - id: { - type: 'string', - title: 'Id' - }, - task_id: { - type: 'string', - title: 'Task Id' - }, - dag_id: { - type: 'string', - title: 'Dag Id' + properties: { + id: { + type: "string", + title: "Id", + }, + task_id: { + type: "string", + title: "Task Id", + }, + dag_id: { + type: "string", + title: "Dag Id", + }, + dag_run_id: { + type: "string", + title: "Dag Run Id", + }, + map_index: { + type: "integer", + title: "Map Index", + }, + logical_date: { + anyOf: [ + { + type: "string", + format: "date-time", }, - dag_version: { - '$ref': '#/components/schemas/DagVersionResponse' + { + type: "null", }, - dag_run_id: { - type: 'string', - title: 'Dag Run Id' + ], + title: "Logical Date", + }, + run_after: { + type: "string", + format: "date-time", + title: "Run After", + }, + start_date: { + anyOf: [ + { + type: "string", + format: "date-time", }, - map_index: { - type: 'integer', - title: 'Map Index' + { + type: "null", }, - logical_date: { - anyOf: [ - { - type: 'string', - format: 'date-time' - }, - { - type: 'null' - } - ], - title: 'Logical Date' + ], + title: "Start Date", + }, + end_date: { + anyOf: [ + { + type: "string", + format: "date-time", }, - run_after: { - type: 'string', - format: 'date-time', - title: 'Run After' + { + type: "null", }, - start_date: { - anyOf: [ - { - type: 'string', - format: 'date-time' - }, - { - type: 'null' - } - ], - title: 'Start Date' + ], + title: "End Date", + }, + duration: { + anyOf: [ + { + type: "number", }, - end_date: { - anyOf: [ - { - type: 'string', - format: 'date-time' - }, - { - type: 'null' - } - ], - title: 'End Date' + { + type: "null", }, - duration: { - anyOf: [ - { - type: 'number' - }, - { - type: 'null' - } - ], - title: 'Duration' + ], + title: "Duration", + }, + state: { + anyOf: [ + { + $ref: "#/components/schemas/TaskInstanceState", }, - state: { - anyOf: [ - { - '$ref': '#/components/schemas/TaskInstanceState' - }, - { - type: 'null' - } - ] - }, - try_number: { - type: 'integer', - title: 'Try Number' - }, - max_tries: { - type: 'integer', - title: 'Max Tries' - }, - task_display_name: { - type: 'string', - title: 'Task Display Name' - }, - dag_display_name: { - type: 'string', - title: 'Dag Display Name' - }, - hostname: { - anyOf: [ - { - type: 'string' - }, - { - type: 'null' - } - ], - title: 'Hostname' + { + type: "null", }, - unixname: { - anyOf: [ - { - type: 'string' - }, - { - type: 'null' - } - ], - title: 'Unixname' + ], + }, + try_number: { + type: "integer", + title: "Try Number", + }, + max_tries: { + type: "integer", + title: "Max Tries", + }, + task_display_name: { + type: "string", + title: "Task Display Name", + }, + dag_display_name: { + type: "string", + title: "Dag Display Name", + }, + hostname: { + anyOf: [ + { + type: "string", }, - pool: { - type: 'string', - title: 'Pool' + { + type: "null", }, - pool_slots: { - type: 'integer', - title: 'Pool Slots' + ], + title: "Hostname", + }, + unixname: { + anyOf: [ + { + type: "string", }, - queue: { - anyOf: [ - { - type: 'string' - }, - { - type: 'null' - } - ], - title: 'Queue' + { + type: "null", }, - priority_weight: { - anyOf: [ - { - type: 'integer' - }, - { - type: 'null' - } - ], - title: 'Priority Weight' + ], + title: "Unixname", + }, + pool: { + type: "string", + title: "Pool", + }, + pool_slots: { + type: "integer", + title: "Pool Slots", + }, + queue: { + anyOf: [ + { + type: "string", }, - operator: { - anyOf: [ - { - type: 'string' - }, - { - type: 'null' - } - ], - title: 'Operator' + { + type: "null", }, - queued_when: { - anyOf: [ - { - type: 'string', - format: 'date-time' - }, - { - type: 'null' - } - ], - title: 'Queued When' + ], + title: "Queue", + }, + priority_weight: { + anyOf: [ + { + type: "integer", }, - scheduled_when: { - anyOf: [ - { - type: 'string', - format: 'date-time' - }, - { - type: 'null' - } - ], - title: 'Scheduled When' + { + type: "null", }, - pid: { - anyOf: [ - { - type: 'integer' - }, - { - type: 'null' - } - ], - title: 'Pid' + ], + title: "Priority Weight", + }, + operator: { + anyOf: [ + { + type: "string", }, - executor: { - anyOf: [ - { - type: 'string' - }, - { - type: 'null' - } - ], - title: 'Executor' + { + type: "null", }, - executor_config: { - type: 'string', - title: 'Executor Config' + ], + title: "Operator", + }, + queued_when: { + anyOf: [ + { + type: "string", + format: "date-time", }, - note: { - anyOf: [ - { - type: 'string' - }, - { - type: 'null' - } - ], - title: 'Note' + { + type: "null", }, - rendered_map_index: { - anyOf: [ - { - type: 'string' - }, - { - type: 'null' - } - ], - title: 'Rendered Map Index' + ], + title: "Queued When", + }, + scheduled_when: { + anyOf: [ + { + type: "string", + format: "date-time", }, - rendered_fields: { - additionalProperties: true, - type: 'object', - title: 'Rendered Fields' + { + type: "null", }, - trigger: { - anyOf: [ - { - '$ref': '#/components/schemas/TriggerResponse' - }, - { - type: 'null' - } - ] - }, - triggerer_job: { - anyOf: [ - { - '$ref': '#/components/schemas/JobResponse' - }, - { - type: 'null' - } - ] - } + ], + title: "Scheduled When", }, - type: 'object', - required: ['id', 'task_id', 'dag_id', 'dag_version', 'dag_run_id', 'map_index', 'logical_date', 'run_after', 'start_date', 'end_date', 'duration', 'state', 'try_number', 'max_tries', 'task_display_name', 'dag_display_name', 'hostname', 'unixname', 'pool', 'pool_slots', 'queue', 'priority_weight', 'operator', 'queued_when', 'scheduled_when', 'pid', 'executor', 'executor_config', 'note', 'rendered_map_index', 'trigger', 'triggerer_job'], - title: 'TaskInstanceResponse', - description: 'TaskInstance serializer for responses.' + pid: { + anyOf: [ + { + type: "integer", + }, + { + type: "null", + }, + ], + title: "Pid", + }, + executor: { + anyOf: [ + { + type: "string", + }, + { + type: "null", + }, + ], + title: "Executor", + }, + executor_config: { + type: "string", + title: "Executor Config", + }, + note: { + anyOf: [ + { + type: "string", + }, + { + type: "null", + }, + ], + title: "Note", + }, + rendered_map_index: { + anyOf: [ + { + type: "string", + }, + { + type: "null", + }, + ], + title: "Rendered Map Index", + }, + rendered_fields: { + additionalProperties: true, + type: "object", + title: "Rendered Fields", + }, + trigger: { + anyOf: [ + { + $ref: "#/components/schemas/TriggerResponse", + }, + { + type: "null", + }, + ], + }, + triggerer_job: { + anyOf: [ + { + $ref: "#/components/schemas/JobResponse", + }, + { + type: "null", + }, + ], + }, + dag_version: { + anyOf: [ + { + $ref: "#/components/schemas/DagVersionResponse", + }, + { + type: "null", + }, + ], + }, + }, + type: "object", + required: [ + "id", + "task_id", + "dag_id", + "dag_run_id", + "map_index", + "logical_date", + "run_after", + "start_date", + "end_date", + "duration", + "state", + "try_number", + "max_tries", + "task_display_name", + "dag_display_name", + "hostname", + "unixname", + "pool", + "pool_slots", + "queue", + "priority_weight", + "operator", + "queued_when", + "scheduled_when", + "pid", + "executor", + "executor_config", + "note", + "rendered_map_index", + "trigger", + "triggerer_job", + "dag_version", + ], + title: "TaskInstanceResponse", + description: "TaskInstance serializer for responses.", } as const; export const $TaskInstanceState = { - type: 'string', - enum: ['removed', 'scheduled', 'queued', 'running', 'success', 'restarting', 'failed', 'up_for_retry', 'up_for_reschedule', 'upstream_failed', 'skipped', 'deferred'], - title: 'TaskInstanceState', - description: `All possible states that a Task Instance can be in. - -Note that None is also allowed, so always use this in a type hint with Optional.` + type: "string", + enum: [ + "removed", + "scheduled", + "queued", + "running", + "success", + "restarting", + "failed", + "up_for_retry", + "up_for_reschedule", + "upstream_failed", + "skipped", + "deferred", + ], + title: "TaskInstanceState", + description: `All possible states that a Task Instance can be in. + +Note that None is also allowed, so always use this in a type hint with Optional.`, } as const; export const $TaskInstancesBatchBody = { - properties: { - dag_ids: { - anyOf: [ - { - items: { - type: 'string' - }, - type: 'array' - }, - { - type: 'null' - } - ], - title: 'Dag Ids' + properties: { + dag_ids: { + anyOf: [ + { + items: { + type: "string", + }, + type: "array", + }, + { + type: "null", + }, + ], + title: "Dag Ids", + }, + dag_run_ids: { + anyOf: [ + { + items: { + type: "string", + }, + type: "array", + }, + { + type: "null", + }, + ], + title: "Dag Run Ids", + }, + task_ids: { + anyOf: [ + { + items: { + type: "string", + }, + type: "array", + }, + { + type: "null", + }, + ], + title: "Task Ids", + }, + state: { + anyOf: [ + { + items: { + anyOf: [ + { + $ref: "#/components/schemas/TaskInstanceState", + }, + { + type: "null", + }, + ], + }, + type: "array", + }, + { + type: "null", + }, + ], + title: "State", + }, + run_after_gte: { + anyOf: [ + { + type: "string", + format: "date-time", + }, + { + type: "null", + }, + ], + title: "Run After Gte", + }, + run_after_lte: { + anyOf: [ + { + type: "string", + format: "date-time", + }, + { + type: "null", + }, + ], + title: "Run After Lte", + }, + logical_date_gte: { + anyOf: [ + { + type: "string", + format: "date-time", + }, + { + type: "null", + }, + ], + title: "Logical Date Gte", + }, + logical_date_lte: { + anyOf: [ + { + type: "string", + format: "date-time", + }, + { + type: "null", + }, + ], + title: "Logical Date Lte", + }, + start_date_gte: { + anyOf: [ + { + type: "string", + format: "date-time", + }, + { + type: "null", + }, + ], + title: "Start Date Gte", + }, + start_date_lte: { + anyOf: [ + { + type: "string", + format: "date-time", + }, + { + type: "null", + }, + ], + title: "Start Date Lte", + }, + end_date_gte: { + anyOf: [ + { + type: "string", + format: "date-time", + }, + { + type: "null", + }, + ], + title: "End Date Gte", + }, + end_date_lte: { + anyOf: [ + { + type: "string", + format: "date-time", }, - dag_run_ids: { - anyOf: [ - { - items: { - type: 'string' - }, - type: 'array' - }, - { - type: 'null' - } - ], - title: 'Dag Run Ids' + { + type: "null", }, - task_ids: { - anyOf: [ - { - items: { - type: 'string' - }, - type: 'array' - }, - { - type: 'null' - } - ], - title: 'Task Ids' + ], + title: "End Date Lte", + }, + duration_gte: { + anyOf: [ + { + type: "number", + }, + { + type: "null", }, - state: { - anyOf: [ - { - items: { - anyOf: [ - { - '$ref': '#/components/schemas/TaskInstanceState' - }, - { - type: 'null' - } - ] - }, - type: 'array' - }, - { - type: 'null' - } - ], - title: 'State' + ], + title: "Duration Gte", + }, + duration_lte: { + anyOf: [ + { + type: "number", }, - run_after_gte: { - anyOf: [ - { - type: 'string', - format: 'date-time' - }, - { - type: 'null' - } - ], - title: 'Run After Gte' + { + type: "null", + }, + ], + title: "Duration Lte", + }, + pool: { + anyOf: [ + { + items: { + type: "string", + }, + type: "array", + }, + { + type: "null", }, - run_after_lte: { - anyOf: [ - { - type: 'string', - format: 'date-time' - }, - { - type: 'null' - } - ], - title: 'Run After Lte' + ], + title: "Pool", + }, + queue: { + anyOf: [ + { + items: { + type: "string", + }, + type: "array", }, - logical_date_gte: { - anyOf: [ - { - type: 'string', - format: 'date-time' - }, - { - type: 'null' - } - ], - title: 'Logical Date Gte' + { + type: "null", + }, + ], + title: "Queue", + }, + executor: { + anyOf: [ + { + items: { + type: "string", + }, + type: "array", }, - logical_date_lte: { - anyOf: [ - { - type: 'string', - format: 'date-time' - }, - { - type: 'null' - } - ], - title: 'Logical Date Lte' + { + type: "null", }, - start_date_gte: { - anyOf: [ - { - type: 'string', - format: 'date-time' - }, - { - type: 'null' - } - ], - title: 'Start Date Gte' + ], + title: "Executor", + }, + page_offset: { + type: "integer", + minimum: 0, + title: "Page Offset", + default: 0, + }, + page_limit: { + type: "integer", + minimum: 0, + title: "Page Limit", + default: 100, + }, + order_by: { + anyOf: [ + { + type: "string", }, - start_date_lte: { - anyOf: [ - { - type: 'string', - format: 'date-time' - }, - { - type: 'null' - } - ], - title: 'Start Date Lte' + { + type: "null", }, - end_date_gte: { - anyOf: [ - { - type: 'string', - format: 'date-time' - }, - { - type: 'null' - } - ], - title: 'End Date Gte' + ], + title: "Order By", + }, + }, + additionalProperties: false, + type: "object", + title: "TaskInstancesBatchBody", + description: "Task Instance body for get batch.", +} as const; + +export const $TaskInstancesLogResponse = { + properties: { + content: { + anyOf: [ + { + items: { + $ref: "#/components/schemas/StructuredLogMessage", + }, + type: "array", + }, + { + items: { + type: "string", + }, + type: "array", + }, + ], + title: "Content", + }, + continuation_token: { + anyOf: [ + { + type: "string", + }, + { + type: "null", + }, + ], + title: "Continuation Token", + }, + }, + type: "object", + required: ["content", "continuation_token"], + title: "TaskInstancesLogResponse", + description: "Log serializer for responses.", +} as const; + +export const $TaskOutletAssetReference = { + properties: { + dag_id: { + type: "string", + title: "Dag Id", + }, + task_id: { + type: "string", + title: "Task Id", + }, + created_at: { + type: "string", + format: "date-time", + title: "Created At", + }, + updated_at: { + type: "string", + format: "date-time", + title: "Updated At", + }, + }, + additionalProperties: false, + type: "object", + required: ["dag_id", "task_id", "created_at", "updated_at"], + title: "TaskOutletAssetReference", + description: "Task outlet reference serializer for assets.", +} as const; + +export const $TaskResponse = { + properties: { + task_id: { + anyOf: [ + { + type: "string", }, - end_date_lte: { - anyOf: [ - { - type: 'string', - format: 'date-time' - }, - { - type: 'null' - } - ], - title: 'End Date Lte' + { + type: "null", }, - duration_gte: { - anyOf: [ - { - type: 'number' - }, - { - type: 'null' - } - ], - title: 'Duration Gte' + ], + title: "Task Id", + }, + task_display_name: { + anyOf: [ + { + type: "string", }, - duration_lte: { - anyOf: [ - { - type: 'number' - }, - { - type: 'null' - } - ], - title: 'Duration Lte' + { + type: "null", }, - pool: { - anyOf: [ - { - items: { - type: 'string' - }, - type: 'array' - }, - { - type: 'null' - } - ], - title: 'Pool' + ], + title: "Task Display Name", + }, + owner: { + anyOf: [ + { + type: "string", }, - queue: { - anyOf: [ - { - items: { - type: 'string' - }, - type: 'array' - }, - { - type: 'null' - } - ], - title: 'Queue' + { + type: "null", }, - executor: { - anyOf: [ - { - items: { - type: 'string' - }, - type: 'array' - }, - { - type: 'null' - } - ], - title: 'Executor' + ], + title: "Owner", + }, + start_date: { + anyOf: [ + { + type: "string", + format: "date-time", }, - page_offset: { - type: 'integer', - minimum: 0, - title: 'Page Offset', - default: 0 + { + type: "null", }, - page_limit: { - type: 'integer', - minimum: 0, - title: 'Page Limit', - default: 100 + ], + title: "Start Date", + }, + end_date: { + anyOf: [ + { + type: "string", + format: "date-time", }, - order_by: { - anyOf: [ - { - type: 'string' - }, - { - type: 'null' - } - ], - title: 'Order By' - } - }, - additionalProperties: false, - type: 'object', - title: 'TaskInstancesBatchBody', - description: 'Task Instance body for get batch.' -} as const; - -export const $TaskInstancesLogResponse = { - properties: { - content: { - anyOf: [ - { - items: { - '$ref': '#/components/schemas/StructuredLogMessage' - }, - type: 'array' - }, - { - items: { - type: 'string' - }, - type: 'array' - } - ], - title: 'Content' + { + type: "null", }, - continuation_token: { - anyOf: [ - { - type: 'string' - }, - { - type: 'null' - } - ], - title: 'Continuation Token' - } + ], + title: "End Date", }, - type: 'object', - required: ['content', 'continuation_token'], - title: 'TaskInstancesLogResponse', - description: 'Log serializer for responses.' -} as const; - -export const $TaskOutletAssetReference = { - properties: { - dag_id: { - type: 'string', - title: 'Dag Id' - }, - task_id: { - type: 'string', - title: 'Task Id' + trigger_rule: { + anyOf: [ + { + type: "string", }, - created_at: { - type: 'string', - format: 'date-time', - title: 'Created At' + { + type: "null", }, - updated_at: { - type: 'string', - format: 'date-time', - title: 'Updated At' - } + ], + title: "Trigger Rule", }, - additionalProperties: false, - type: 'object', - required: ['dag_id', 'task_id', 'created_at', 'updated_at'], - title: 'TaskOutletAssetReference', - description: 'Task outlet reference serializer for assets.' -} as const; - -export const $TaskResponse = { - properties: { - task_id: { - anyOf: [ - { - type: 'string' - }, - { - type: 'null' - } - ], - title: 'Task Id' - }, - task_display_name: { - anyOf: [ - { - type: 'string' - }, - { - type: 'null' - } - ], - title: 'Task Display Name' + depends_on_past: { + type: "boolean", + title: "Depends On Past", + }, + wait_for_downstream: { + type: "boolean", + title: "Wait For Downstream", + }, + retries: { + anyOf: [ + { + type: "number", }, - owner: { - anyOf: [ - { - type: 'string' - }, - { - type: 'null' - } - ], - title: 'Owner' + { + type: "null", }, - start_date: { - anyOf: [ - { - type: 'string', - format: 'date-time' - }, - { - type: 'null' - } - ], - title: 'Start Date' + ], + title: "Retries", + }, + queue: { + anyOf: [ + { + type: "string", }, - end_date: { - anyOf: [ - { - type: 'string', - format: 'date-time' - }, - { - type: 'null' - } - ], - title: 'End Date' + { + type: "null", }, - trigger_rule: { - anyOf: [ - { - type: 'string' - }, - { - type: 'null' - } - ], - title: 'Trigger Rule' - }, - depends_on_past: { - type: 'boolean', - title: 'Depends On Past' + ], + title: "Queue", + }, + pool: { + anyOf: [ + { + type: "string", }, - wait_for_downstream: { - type: 'boolean', - title: 'Wait For Downstream' + { + type: "null", }, - retries: { - anyOf: [ - { - type: 'number' - }, - { - type: 'null' - } - ], - title: 'Retries' + ], + title: "Pool", + }, + pool_slots: { + anyOf: [ + { + type: "number", }, - queue: { - anyOf: [ - { - type: 'string' - }, - { - type: 'null' - } - ], - title: 'Queue' + { + type: "null", }, - pool: { - anyOf: [ - { - type: 'string' - }, - { - type: 'null' - } - ], - title: 'Pool' + ], + title: "Pool Slots", + }, + execution_timeout: { + anyOf: [ + { + $ref: "#/components/schemas/TimeDelta", }, - pool_slots: { - anyOf: [ - { - type: 'number' - }, - { - type: 'null' - } - ], - title: 'Pool Slots' + { + type: "null", }, - execution_timeout: { - anyOf: [ - { - '$ref': '#/components/schemas/TimeDelta' - }, - { - type: 'null' - } - ] - }, - retry_delay: { - anyOf: [ - { - '$ref': '#/components/schemas/TimeDelta' - }, - { - type: 'null' - } - ] - }, - retry_exponential_backoff: { - type: 'boolean', - title: 'Retry Exponential Backoff' - }, - priority_weight: { - anyOf: [ - { - type: 'number' - }, - { - type: 'null' - } - ], - title: 'Priority Weight' + ], + }, + retry_delay: { + anyOf: [ + { + $ref: "#/components/schemas/TimeDelta", }, - weight_rule: { - anyOf: [ - { - type: 'string' - }, - { - type: 'null' - } - ], - title: 'Weight Rule' + { + type: "null", }, - ui_color: { - anyOf: [ - { - type: 'string' - }, - { - type: 'null' - } - ], - title: 'Ui Color' - }, - ui_fgcolor: { - anyOf: [ - { - type: 'string' - }, - { - type: 'null' - } - ], - title: 'Ui Fgcolor' + ], + }, + retry_exponential_backoff: { + type: "boolean", + title: "Retry Exponential Backoff", + }, + priority_weight: { + anyOf: [ + { + type: "number", }, - template_fields: { - anyOf: [ - { - items: { - type: 'string' - }, - type: 'array' - }, - { - type: 'null' - } - ], - title: 'Template Fields' + { + type: "null", }, - downstream_task_ids: { - anyOf: [ - { - items: { - type: 'string' - }, - type: 'array' - }, - { - type: 'null' - } - ], - title: 'Downstream Task Ids' + ], + title: "Priority Weight", + }, + weight_rule: { + anyOf: [ + { + type: "string", }, - doc_md: { - anyOf: [ - { - type: 'string' - }, - { - type: 'null' - } - ], - title: 'Doc Md' + { + type: "null", }, - operator_name: { - anyOf: [ - { - type: 'string' - }, - { - type: 'null' - } - ], - title: 'Operator Name' + ], + title: "Weight Rule", + }, + ui_color: { + anyOf: [ + { + type: "string", }, - params: { - anyOf: [ - { - additionalProperties: true, - type: 'object' - }, - { - type: 'null' - } - ], - title: 'Params' + { + type: "null", }, - class_ref: { - anyOf: [ - { - additionalProperties: true, - type: 'object' - }, - { - type: 'null' - } - ], - title: 'Class Ref' + ], + title: "Ui Color", + }, + ui_fgcolor: { + anyOf: [ + { + type: "string", }, - is_mapped: { - anyOf: [ - { - type: 'boolean' - }, - { - type: 'null' - } - ], - title: 'Is Mapped' + { + type: "null", }, - extra_links: { - items: { - type: 'string' - }, - type: 'array', - title: 'Extra Links', - description: 'Extract and return extra_links.', - readOnly: true - } + ], + title: "Ui Fgcolor", }, - type: 'object', - required: ['task_id', 'task_display_name', 'owner', 'start_date', 'end_date', 'trigger_rule', 'depends_on_past', 'wait_for_downstream', 'retries', 'queue', 'pool', 'pool_slots', 'execution_timeout', 'retry_delay', 'retry_exponential_backoff', 'priority_weight', 'weight_rule', 'ui_color', 'ui_fgcolor', 'template_fields', 'downstream_task_ids', 'doc_md', 'operator_name', 'params', 'class_ref', 'is_mapped', 'extra_links'], - title: 'TaskResponse', - description: 'Task serializer for responses.' + template_fields: { + anyOf: [ + { + items: { + type: "string", + }, + type: "array", + }, + { + type: "null", + }, + ], + title: "Template Fields", + }, + downstream_task_ids: { + anyOf: [ + { + items: { + type: "string", + }, + type: "array", + }, + { + type: "null", + }, + ], + title: "Downstream Task Ids", + }, + doc_md: { + anyOf: [ + { + type: "string", + }, + { + type: "null", + }, + ], + title: "Doc Md", + }, + operator_name: { + anyOf: [ + { + type: "string", + }, + { + type: "null", + }, + ], + title: "Operator Name", + }, + params: { + anyOf: [ + { + additionalProperties: true, + type: "object", + }, + { + type: "null", + }, + ], + title: "Params", + }, + class_ref: { + anyOf: [ + { + additionalProperties: true, + type: "object", + }, + { + type: "null", + }, + ], + title: "Class Ref", + }, + is_mapped: { + anyOf: [ + { + type: "boolean", + }, + { + type: "null", + }, + ], + title: "Is Mapped", + }, + extra_links: { + items: { + type: "string", + }, + type: "array", + title: "Extra Links", + description: "Extract and return extra_links.", + readOnly: true, + }, + }, + type: "object", + required: [ + "task_id", + "task_display_name", + "owner", + "start_date", + "end_date", + "trigger_rule", + "depends_on_past", + "wait_for_downstream", + "retries", + "queue", + "pool", + "pool_slots", + "execution_timeout", + "retry_delay", + "retry_exponential_backoff", + "priority_weight", + "weight_rule", + "ui_color", + "ui_fgcolor", + "template_fields", + "downstream_task_ids", + "doc_md", + "operator_name", + "params", + "class_ref", + "is_mapped", + "extra_links", + ], + title: "TaskResponse", + description: "Task serializer for responses.", } as const; export const $TimeDelta = { - properties: { - __type: { - type: 'string', - title: 'Type', - default: 'TimeDelta' - }, - days: { - type: 'integer', - title: 'Days' - }, - seconds: { - type: 'integer', - title: 'Seconds' - }, - microseconds: { - type: 'integer', - title: 'Microseconds' - } + properties: { + __type: { + type: "string", + title: "Type", + default: "TimeDelta", }, - type: 'object', - required: ['days', 'seconds', 'microseconds'], - title: 'TimeDelta', - description: 'TimeDelta can be used to interact with datetime.timedelta objects.' + days: { + type: "integer", + title: "Days", + }, + seconds: { + type: "integer", + title: "Seconds", + }, + microseconds: { + type: "integer", + title: "Microseconds", + }, + }, + type: "object", + required: ["days", "seconds", "microseconds"], + title: "TimeDelta", + description: "TimeDelta can be used to interact with datetime.timedelta objects.", } as const; export const $TriggerDAGRunPostBody = { - properties: { - dag_run_id: { - anyOf: [ - { - type: 'string' - }, - { - type: 'null' - } - ], - title: 'Dag Run Id' + properties: { + dag_run_id: { + anyOf: [ + { + type: "string", }, - data_interval_start: { - anyOf: [ - { - type: 'string', - format: 'date-time' - }, - { - type: 'null' - } - ], - title: 'Data Interval Start' + { + type: "null", }, - data_interval_end: { - anyOf: [ - { - type: 'string', - format: 'date-time' - }, - { - type: 'null' - } - ], - title: 'Data Interval End' + ], + title: "Dag Run Id", + }, + data_interval_start: { + anyOf: [ + { + type: "string", + format: "date-time", }, - logical_date: { - anyOf: [ - { - type: 'string', - format: 'date-time' - }, - { - type: 'null' - } - ], - title: 'Logical Date' + { + type: "null", }, - run_after: { - anyOf: [ - { - type: 'string', - format: 'date-time' - }, - { - type: 'null' - } - ], - title: 'Run After' + ], + title: "Data Interval Start", + }, + data_interval_end: { + anyOf: [ + { + type: "string", + format: "date-time", }, - conf: { - additionalProperties: true, - type: 'object', - title: 'Conf' + { + type: "null", }, - note: { - anyOf: [ - { - type: 'string' - }, - { - type: 'null' - } - ], - title: 'Note' - } + ], + title: "Data Interval End", }, - additionalProperties: false, - type: 'object', - required: ['logical_date'], - title: 'TriggerDAGRunPostBody', - description: 'Trigger DAG Run Serializer for POST body.' -} as const; - -export const $TriggerResponse = { - properties: { - id: { - type: 'integer', - title: 'Id' + logical_date: { + anyOf: [ + { + type: "string", + format: "date-time", }, - classpath: { - type: 'string', - title: 'Classpath' + { + type: "null", }, - kwargs: { - type: 'string', - title: 'Kwargs' + ], + title: "Logical Date", + }, + run_after: { + anyOf: [ + { + type: "string", + format: "date-time", }, - created_date: { - type: 'string', - format: 'date-time', - title: 'Created Date' + { + type: "null", }, - triggerer_id: { - anyOf: [ - { - type: 'integer' - }, - { - type: 'null' - } - ], - title: 'Triggerer Id' - } + ], + title: "Run After", }, - type: 'object', - required: ['id', 'classpath', 'kwargs', 'created_date', 'triggerer_id'], - title: 'TriggerResponse', - description: 'Trigger serializer for responses.' -} as const; - -export const $TriggererInfoResponse = { - properties: { - status: { - anyOf: [ - { - type: 'string' - }, - { - type: 'null' - } - ], - title: 'Status' + conf: { + additionalProperties: true, + type: "object", + title: "Conf", + }, + note: { + anyOf: [ + { + type: "string", }, - latest_triggerer_heartbeat: { - anyOf: [ - { - type: 'string' - }, - { - type: 'null' - } - ], - title: 'Latest Triggerer Heartbeat' - } + { + type: "null", + }, + ], + title: "Note", }, - type: 'object', - required: ['status', 'latest_triggerer_heartbeat'], - title: 'TriggererInfoResponse', - description: 'Triggerer info serializer for responses.' + }, + additionalProperties: false, + type: "object", + required: ["logical_date"], + title: "TriggerDAGRunPostBody", + description: "Trigger DAG Run Serializer for POST body.", } as const; -export const $UpdateHITLDetailPayload = { - properties: { - chosen_options: { - items: { - type: 'string' - }, - type: 'array', - title: 'Chosen Options' +export const $TriggerResponse = { + properties: { + id: { + type: "integer", + title: "Id", + }, + classpath: { + type: "string", + title: "Classpath", + }, + kwargs: { + type: "string", + title: "Kwargs", + }, + created_date: { + type: "string", + format: "date-time", + title: "Created Date", + }, + triggerer_id: { + anyOf: [ + { + type: "integer", + }, + { + type: "null", }, - params_input: { - additionalProperties: true, - type: 'object', - title: 'Params Input' - } + ], + title: "Triggerer Id", }, - type: 'object', - required: ['chosen_options'], - title: 'UpdateHITLDetailPayload', - description: 'Schema for updating the content of a Human-in-the-loop detail.' + }, + type: "object", + required: ["id", "classpath", "kwargs", "created_date", "triggerer_id"], + title: "TriggerResponse", + description: "Trigger serializer for responses.", } as const; -export const $ValidationError = { - properties: { - loc: { - items: { - anyOf: [ - { - type: 'string' - }, - { - type: 'integer' - } - ] - }, - type: 'array', - title: 'Location' +export const $TriggererInfoResponse = { + properties: { + status: { + anyOf: [ + { + type: "string", }, - msg: { - type: 'string', - title: 'Message' + { + type: "null", }, - type: { - type: 'string', - title: 'Error Type' - } + ], + title: "Status", }, - type: 'object', - required: ['loc', 'msg', 'type'], - title: 'ValidationError' + latest_triggerer_heartbeat: { + anyOf: [ + { + type: "string", + }, + { + type: "null", + }, + ], + title: "Latest Triggerer Heartbeat", + }, + }, + type: "object", + required: ["status", "latest_triggerer_heartbeat"], + title: "TriggererInfoResponse", + description: "Triggerer info serializer for responses.", +} as const; + +export const $ValidationError = { + properties: { + loc: { + items: { + anyOf: [ + { + type: "string", + }, + { + type: "integer", + }, + ], + }, + type: "array", + title: "Location", + }, + msg: { + type: "string", + title: "Message", + }, + type: { + type: "string", + title: "Error Type", + }, + }, + type: "object", + required: ["loc", "msg", "type"], + title: "ValidationError", } as const; export const $VariableBody = { - properties: { - key: { - type: 'string', - maxLength: 250, - title: 'Key' + properties: { + key: { + type: "string", + maxLength: 250, + title: "Key", + }, + value: { + $ref: "#/components/schemas/JsonValue", + }, + description: { + anyOf: [ + { + type: "string", }, - value: { - '$ref': '#/components/schemas/JsonValue' + { + type: "null", }, - description: { - anyOf: [ - { - type: 'string' - }, - { - type: 'null' - } - ], - title: 'Description' - } + ], + title: "Description", }, - additionalProperties: false, - type: 'object', - required: ['key', 'value'], - title: 'VariableBody', - description: 'Variable serializer for bodies.' + }, + additionalProperties: false, + type: "object", + required: ["key", "value"], + title: "VariableBody", + description: "Variable serializer for bodies.", } as const; export const $VariableCollectionResponse = { - properties: { - variables: { - items: { - '$ref': '#/components/schemas/VariableResponse' - }, - type: 'array', - title: 'Variables' - }, - total_entries: { - type: 'integer', - title: 'Total Entries' - } + properties: { + variables: { + items: { + $ref: "#/components/schemas/VariableResponse", + }, + type: "array", + title: "Variables", }, - type: 'object', - required: ['variables', 'total_entries'], - title: 'VariableCollectionResponse', - description: 'Variable Collection serializer for responses.' + total_entries: { + type: "integer", + title: "Total Entries", + }, + }, + type: "object", + required: ["variables", "total_entries"], + title: "VariableCollectionResponse", + description: "Variable Collection serializer for responses.", } as const; export const $VariableResponse = { - properties: { - key: { - type: 'string', - title: 'Key' + properties: { + key: { + type: "string", + title: "Key", + }, + value: { + type: "string", + title: "Value", + }, + description: { + anyOf: [ + { + type: "string", }, - value: { - type: 'string', - title: 'Value' + { + type: "null", }, - description: { - anyOf: [ - { - type: 'string' - }, - { - type: 'null' - } - ], - title: 'Description' - }, - is_encrypted: { - type: 'boolean', - title: 'Is Encrypted' - } + ], + title: "Description", + }, + is_encrypted: { + type: "boolean", + title: "Is Encrypted", }, - type: 'object', - required: ['key', 'value', 'description', 'is_encrypted'], - title: 'VariableResponse', - description: 'Variable serializer for responses.' + }, + type: "object", + required: ["key", "value", "description", "is_encrypted"], + title: "VariableResponse", + description: "Variable serializer for responses.", } as const; export const $VersionInfo = { - properties: { - version: { - type: 'string', - title: 'Version' + properties: { + version: { + type: "string", + title: "Version", + }, + git_version: { + anyOf: [ + { + type: "string", }, - git_version: { - anyOf: [ - { - type: 'string' - }, - { - type: 'null' - } - ], - title: 'Git Version' - } + { + type: "null", + }, + ], + title: "Git Version", }, - type: 'object', - required: ['version', 'git_version'], - title: 'VersionInfo', - description: 'Version information serializer for responses.' + }, + type: "object", + required: ["version", "git_version"], + title: "VersionInfo", + description: "Version information serializer for responses.", } as const; export const $XComCollectionResponse = { - properties: { - xcom_entries: { - items: { - '$ref': '#/components/schemas/XComResponse' - }, - type: 'array', - title: 'Xcom Entries' - }, - total_entries: { - type: 'integer', - title: 'Total Entries' - } + properties: { + xcom_entries: { + items: { + $ref: "#/components/schemas/XComResponse", + }, + type: "array", + title: "Xcom Entries", }, - type: 'object', - required: ['xcom_entries', 'total_entries'], - title: 'XComCollectionResponse', - description: 'XCom Collection serializer for responses.' + total_entries: { + type: "integer", + title: "Total Entries", + }, + }, + type: "object", + required: ["xcom_entries", "total_entries"], + title: "XComCollectionResponse", + description: "XCom Collection serializer for responses.", } as const; export const $XComCreateBody = { - properties: { - key: { - type: 'string', - title: 'Key' - }, - value: { - title: 'Value' - }, - map_index: { - type: 'integer', - title: 'Map Index', - default: -1 - } + properties: { + key: { + type: "string", + title: "Key", + }, + value: { + title: "Value", + }, + map_index: { + type: "integer", + title: "Map Index", + default: -1, }, - additionalProperties: false, - type: 'object', - required: ['key', 'value'], - title: 'XComCreateBody', - description: 'Payload serializer for creating an XCom entry.' + }, + additionalProperties: false, + type: "object", + required: ["key", "value"], + title: "XComCreateBody", + description: "Payload serializer for creating an XCom entry.", } as const; export const $XComResponse = { - properties: { - key: { - type: 'string', - title: 'Key' - }, - timestamp: { - type: 'string', - format: 'date-time', - title: 'Timestamp' - }, - logical_date: { - anyOf: [ - { - type: 'string', - format: 'date-time' - }, - { - type: 'null' - } - ], - title: 'Logical Date' - }, - map_index: { - type: 'integer', - title: 'Map Index' - }, - task_id: { - type: 'string', - title: 'Task Id' - }, - dag_id: { - type: 'string', - title: 'Dag Id' - }, - run_id: { - type: 'string', - title: 'Run Id' - }, - dag_display_name: { - type: 'string', - title: 'Dag Display Name' - } - }, - type: 'object', - required: ['key', 'timestamp', 'logical_date', 'map_index', 'task_id', 'dag_id', 'run_id', 'dag_display_name'], - title: 'XComResponse', - description: 'Serializer for a xcom item.' + properties: { + key: { + type: "string", + title: "Key", + }, + timestamp: { + type: "string", + format: "date-time", + title: "Timestamp", + }, + logical_date: { + anyOf: [ + { + type: "string", + format: "date-time", + }, + { + type: "null", + }, + ], + title: "Logical Date", + }, + map_index: { + type: "integer", + title: "Map Index", + }, + task_id: { + type: "string", + title: "Task Id", + }, + dag_id: { + type: "string", + title: "Dag Id", + }, + run_id: { + type: "string", + title: "Run Id", + }, + dag_display_name: { + type: "string", + title: "Dag Display Name", + }, + }, + type: "object", + required: [ + "key", + "timestamp", + "logical_date", + "map_index", + "task_id", + "dag_id", + "run_id", + "dag_display_name", + ], + title: "XComResponse", + description: "Serializer for a xcom item.", } as const; export const $XComResponseNative = { - properties: { - key: { - type: 'string', - title: 'Key' - }, - timestamp: { - type: 'string', - format: 'date-time', - title: 'Timestamp' - }, - logical_date: { - anyOf: [ - { - type: 'string', - format: 'date-time' - }, - { - type: 'null' - } - ], - title: 'Logical Date' - }, - map_index: { - type: 'integer', - title: 'Map Index' - }, - task_id: { - type: 'string', - title: 'Task Id' - }, - dag_id: { - type: 'string', - title: 'Dag Id' - }, - run_id: { - type: 'string', - title: 'Run Id' - }, - dag_display_name: { - type: 'string', - title: 'Dag Display Name' - }, - value: { - title: 'Value' - } - }, - type: 'object', - required: ['key', 'timestamp', 'logical_date', 'map_index', 'task_id', 'dag_id', 'run_id', 'dag_display_name', 'value'], - title: 'XComResponseNative', - description: 'XCom response serializer with native return type.' + properties: { + key: { + type: "string", + title: "Key", + }, + timestamp: { + type: "string", + format: "date-time", + title: "Timestamp", + }, + logical_date: { + anyOf: [ + { + type: "string", + format: "date-time", + }, + { + type: "null", + }, + ], + title: "Logical Date", + }, + map_index: { + type: "integer", + title: "Map Index", + }, + task_id: { + type: "string", + title: "Task Id", + }, + dag_id: { + type: "string", + title: "Dag Id", + }, + run_id: { + type: "string", + title: "Run Id", + }, + dag_display_name: { + type: "string", + title: "Dag Display Name", + }, + value: { + title: "Value", + }, + }, + type: "object", + required: [ + "key", + "timestamp", + "logical_date", + "map_index", + "task_id", + "dag_id", + "run_id", + "dag_display_name", + "value", + ], + title: "XComResponseNative", + description: "XCom response serializer with native return type.", } as const; export const $XComResponseString = { - properties: { - key: { - type: 'string', - title: 'Key' - }, - timestamp: { - type: 'string', - format: 'date-time', - title: 'Timestamp' - }, - logical_date: { - anyOf: [ - { - type: 'string', - format: 'date-time' - }, - { - type: 'null' - } - ], - title: 'Logical Date' - }, - map_index: { - type: 'integer', - title: 'Map Index' - }, - task_id: { - type: 'string', - title: 'Task Id' - }, - dag_id: { - type: 'string', - title: 'Dag Id' - }, - run_id: { - type: 'string', - title: 'Run Id' - }, - dag_display_name: { - type: 'string', - title: 'Dag Display Name' - }, - value: { - anyOf: [ - { - type: 'string' - }, - { - type: 'null' - } - ], - title: 'Value' - } - }, - type: 'object', - required: ['key', 'timestamp', 'logical_date', 'map_index', 'task_id', 'dag_id', 'run_id', 'dag_display_name', 'value'], - title: 'XComResponseString', - description: 'XCom response serializer with string return type.' + properties: { + key: { + type: "string", + title: "Key", + }, + timestamp: { + type: "string", + format: "date-time", + title: "Timestamp", + }, + logical_date: { + anyOf: [ + { + type: "string", + format: "date-time", + }, + { + type: "null", + }, + ], + title: "Logical Date", + }, + map_index: { + type: "integer", + title: "Map Index", + }, + task_id: { + type: "string", + title: "Task Id", + }, + dag_id: { + type: "string", + title: "Dag Id", + }, + run_id: { + type: "string", + title: "Run Id", + }, + dag_display_name: { + type: "string", + title: "Dag Display Name", + }, + value: { + anyOf: [ + { + type: "string", + }, + { + type: "null", + }, + ], + title: "Value", + }, + }, + type: "object", + required: [ + "key", + "timestamp", + "logical_date", + "map_index", + "task_id", + "dag_id", + "run_id", + "dag_display_name", + "value", + ], + title: "XComResponseString", + description: "XCom response serializer with string return type.", } as const; export const $XComUpdateBody = { - properties: { - value: { - title: 'Value' - }, - map_index: { - type: 'integer', - title: 'Map Index', - default: -1 - } + properties: { + value: { + title: "Value", + }, + map_index: { + type: "integer", + title: "Map Index", + default: -1, }, - additionalProperties: false, - type: 'object', - required: ['value'], - title: 'XComUpdateBody', - description: 'Payload serializer for updating an XCom entry.' + }, + additionalProperties: false, + type: "object", + required: ["value"], + title: "XComUpdateBody", + description: "Payload serializer for updating an XCom entry.", } as const; export const $BaseEdgeResponse = { - properties: { - source_id: { - type: 'string', - title: 'Source Id' - }, - target_id: { - type: 'string', - title: 'Target Id' - } + properties: { + source_id: { + type: "string", + title: "Source Id", + }, + target_id: { + type: "string", + title: "Target Id", }, - type: 'object', - required: ['source_id', 'target_id'], - title: 'BaseEdgeResponse', - description: 'Base Edge serializer for responses.' + }, + type: "object", + required: ["source_id", "target_id"], + title: "BaseEdgeResponse", + description: "Base Edge serializer for responses.", } as const; export const $BaseGraphResponse = { - properties: { - edges: { - items: { - '$ref': '#/components/schemas/BaseEdgeResponse' - }, - type: 'array', - title: 'Edges' - }, - nodes: { - items: { - '$ref': '#/components/schemas/BaseNodeResponse' - }, - type: 'array', - title: 'Nodes' - } - }, - type: 'object', - required: ['edges', 'nodes'], - title: 'BaseGraphResponse', - description: 'Base Graph serializer for responses.' + properties: { + edges: { + items: { + $ref: "#/components/schemas/BaseEdgeResponse", + }, + type: "array", + title: "Edges", + }, + nodes: { + items: { + $ref: "#/components/schemas/BaseNodeResponse", + }, + type: "array", + title: "Nodes", + }, + }, + type: "object", + required: ["edges", "nodes"], + title: "BaseGraphResponse", + description: "Base Graph serializer for responses.", } as const; export const $BaseNodeResponse = { - properties: { - id: { - type: 'string', - title: 'Id' - }, - label: { - type: 'string', - title: 'Label' - }, - type: { - type: 'string', - enum: ['join', 'task', 'asset-condition', 'asset', 'asset-alias', 'asset-name-ref', 'asset-uri-ref', 'dag', 'sensor', 'trigger'], - title: 'Type' - } - }, - type: 'object', - required: ['id', 'label', 'type'], - title: 'BaseNodeResponse', - description: 'Base Node serializer for responses.' -} as const; - -export const $CalendarTimeRangeCollectionResponse = { - properties: { - total_entries: { - type: 'integer', - title: 'Total Entries' - }, - dag_runs: { - items: { - '$ref': '#/components/schemas/CalendarTimeRangeResponse' - }, - type: 'array', - title: 'Dag Runs' - } - }, - type: 'object', - required: ['total_entries', 'dag_runs'], - title: 'CalendarTimeRangeCollectionResponse', - description: 'Response model for calendar time range results.' -} as const; - -export const $CalendarTimeRangeResponse = { - properties: { - date: { - type: 'string', - format: 'date-time', - title: 'Date' - }, - state: { - type: 'string', - enum: ['queued', 'running', 'success', 'failed', 'planned'], - title: 'State' - }, - count: { - type: 'integer', - title: 'Count' - } - }, - type: 'object', - required: ['date', 'state', 'count'], - title: 'CalendarTimeRangeResponse', - description: 'Represents a summary of DAG runs for a specific calendar time range.' + properties: { + id: { + type: "string", + title: "Id", + }, + label: { + type: "string", + title: "Label", + }, + type: { + type: "string", + enum: [ + "join", + "task", + "asset-condition", + "asset", + "asset-alias", + "asset-name-ref", + "asset-uri-ref", + "dag", + "sensor", + "trigger", + ], + title: "Type", + }, + }, + type: "object", + required: ["id", "label", "type"], + title: "BaseNodeResponse", + description: "Base Node serializer for responses.", } as const; export const $ConfigResponse = { - properties: { - page_size: { - type: 'integer', - title: 'Page Size' - }, - auto_refresh_interval: { - type: 'integer', - title: 'Auto Refresh Interval' - }, - hide_paused_dags_by_default: { - type: 'boolean', - title: 'Hide Paused Dags By Default' - }, - instance_name: { - type: 'string', - title: 'Instance Name' - }, - enable_swagger_ui: { - type: 'boolean', - title: 'Enable Swagger Ui' - }, - require_confirmation_dag_change: { - type: 'boolean', - title: 'Require Confirmation Dag Change' - }, - default_wrap: { - type: 'boolean', - title: 'Default Wrap' - }, - test_connection: { - type: 'string', - title: 'Test Connection' - }, - dashboard_alert: { - items: { - '$ref': '#/components/schemas/UIAlert' - }, - type: 'array', - title: 'Dashboard Alert' - }, - show_external_log_redirect: { - type: 'boolean', - title: 'Show External Log Redirect' - }, - external_log_name: { - anyOf: [ - { - type: 'string' - }, - { - type: 'null' - } - ], - title: 'External Log Name' - } - }, - type: 'object', - required: ['page_size', 'auto_refresh_interval', 'hide_paused_dags_by_default', 'instance_name', 'enable_swagger_ui', 'require_confirmation_dag_change', 'default_wrap', 'test_connection', 'dashboard_alert', 'show_external_log_redirect'], - title: 'ConfigResponse', - description: 'configuration serializer.' + properties: { + page_size: { + type: "integer", + title: "Page Size", + }, + auto_refresh_interval: { + type: "integer", + title: "Auto Refresh Interval", + }, + hide_paused_dags_by_default: { + type: "boolean", + title: "Hide Paused Dags By Default", + }, + instance_name: { + type: "string", + title: "Instance Name", + }, + enable_swagger_ui: { + type: "boolean", + title: "Enable Swagger Ui", + }, + require_confirmation_dag_change: { + type: "boolean", + title: "Require Confirmation Dag Change", + }, + default_wrap: { + type: "boolean", + title: "Default Wrap", + }, + test_connection: { + type: "string", + title: "Test Connection", + }, + dashboard_alert: { + items: { + $ref: "#/components/schemas/UIAlert", + }, + type: "array", + title: "Dashboard Alert", + }, + show_external_log_redirect: { + type: "boolean", + title: "Show External Log Redirect", + }, + external_log_name: { + anyOf: [ + { + type: "string", + }, + { + type: "null", + }, + ], + title: "External Log Name", + }, + }, + type: "object", + required: [ + "page_size", + "auto_refresh_interval", + "hide_paused_dags_by_default", + "instance_name", + "enable_swagger_ui", + "require_confirmation_dag_change", + "default_wrap", + "test_connection", + "dashboard_alert", + "show_external_log_redirect", + ], + title: "ConfigResponse", + description: "configuration serializer.", } as const; export const $ConnectionHookFieldBehavior = { - properties: { - hidden: { - type: 'boolean', - title: 'Hidden', - description: 'Flag if the form field should be hidden.', - default: false - }, - title: { - anyOf: [ - { - type: 'string' - }, - { - type: 'null' - } - ], - title: 'Title', - description: 'Label / title for the field that should be displayed, if re-labelling is needed. Use `None` to display standard title.' - }, - placeholder: { - anyOf: [ - { - type: 'string' - }, - { - type: 'null' - } - ], - title: 'Placeholder', - description: 'Placeholder text that should be populated to the form.' - } + properties: { + hidden: { + type: "boolean", + title: "Hidden", + description: "Flag if the form field should be hidden.", + default: false, }, - type: 'object', - title: 'ConnectionHookFieldBehavior', - description: 'A class to store the behavior of each standard field of a Hook.' -} as const; - -export const $ConnectionHookMetaData = { - properties: { - connection_type: { - anyOf: [ - { - type: 'string' - }, - { - type: 'null' - } - ], - title: 'Connection Type' + title: { + anyOf: [ + { + type: "string", }, - hook_class_name: { - anyOf: [ - { - type: 'string' - }, - { - type: 'null' - } - ], - title: 'Hook Class Name' + { + type: "null", }, - default_conn_name: { - anyOf: [ - { - type: 'string' - }, - { - type: 'null' - } - ], - title: 'Default Conn Name' + ], + title: "Title", + description: + "Label / title for the field that should be displayed, if re-labelling is needed. Use `None` to display standard title.", + }, + placeholder: { + anyOf: [ + { + type: "string", }, - hook_name: { - type: 'string', - title: 'Hook Name' + { + type: "null", }, - standard_fields: { - anyOf: [ - { - '$ref': '#/components/schemas/StandardHookFields' - }, - { - type: 'null' - } - ] - }, - extra_fields: { - anyOf: [ - { - additionalProperties: true, - type: 'object' - }, - { - type: 'null' - } - ], - title: 'Extra Fields' - } + ], + title: "Placeholder", + description: "Placeholder text that should be populated to the form.", }, - type: 'object', - required: ['connection_type', 'hook_class_name', 'default_conn_name', 'hook_name', 'standard_fields', 'extra_fields'], - title: 'ConnectionHookMetaData', - description: `Response model for Hook information == Connection type meta data. + }, + type: "object", + title: "ConnectionHookFieldBehavior", + description: "A class to store the behavior of each standard field of a Hook.", +} as const; + +export const $ConnectionHookMetaData = { + properties: { + connection_type: { + anyOf: [ + { + type: "string", + }, + { + type: "null", + }, + ], + title: "Connection Type", + }, + hook_class_name: { + anyOf: [ + { + type: "string", + }, + { + type: "null", + }, + ], + title: "Hook Class Name", + }, + default_conn_name: { + anyOf: [ + { + type: "string", + }, + { + type: "null", + }, + ], + title: "Default Conn Name", + }, + hook_name: { + type: "string", + title: "Hook Name", + }, + standard_fields: { + anyOf: [ + { + $ref: "#/components/schemas/StandardHookFields", + }, + { + type: "null", + }, + ], + }, + extra_fields: { + anyOf: [ + { + additionalProperties: true, + type: "object", + }, + { + type: "null", + }, + ], + title: "Extra Fields", + }, + }, + type: "object", + required: [ + "connection_type", + "hook_class_name", + "default_conn_name", + "hook_name", + "standard_fields", + "extra_fields", + ], + title: "ConnectionHookMetaData", + description: `Response model for Hook information == Connection type meta data. It is used to transfer providers information loaded by providers_manager such that -the API server/Web UI can use this data to render connection form UI.` +the API server/Web UI can use this data to render connection form UI.`, } as const; export const $DAGRunStates = { - properties: { - queued: { - type: 'integer', - title: 'Queued' - }, - running: { - type: 'integer', - title: 'Running' - }, - success: { - type: 'integer', - title: 'Success' - }, - failed: { - type: 'integer', - title: 'Failed' - } + properties: { + queued: { + type: "integer", + title: "Queued", + }, + running: { + type: "integer", + title: "Running", + }, + success: { + type: "integer", + title: "Success", }, - type: 'object', - required: ['queued', 'running', 'success', 'failed'], - title: 'DAGRunStates', - description: 'DAG Run States for responses.' + failed: { + type: "integer", + title: "Failed", + }, + }, + type: "object", + required: ["queued", "running", "success", "failed"], + title: "DAGRunStates", + description: "DAG Run States for responses.", } as const; export const $DAGRunTypes = { - properties: { - backfill: { - type: 'integer', - title: 'Backfill' - }, - scheduled: { - type: 'integer', - title: 'Scheduled' - }, - manual: { - type: 'integer', - title: 'Manual' - }, - asset_triggered: { - type: 'integer', - title: 'Asset Triggered' - } + properties: { + backfill: { + type: "integer", + title: "Backfill", + }, + scheduled: { + type: "integer", + title: "Scheduled", + }, + manual: { + type: "integer", + title: "Manual", + }, + asset_triggered: { + type: "integer", + title: "Asset Triggered", }, - type: 'object', - required: ['backfill', 'scheduled', 'manual', 'asset_triggered'], - title: 'DAGRunTypes', - description: 'DAG Run Types for responses.' + }, + type: "object", + required: ["backfill", "scheduled", "manual", "asset_triggered"], + title: "DAGRunTypes", + description: "DAG Run Types for responses.", } as const; export const $DAGWithLatestDagRunsCollectionResponse = { - properties: { - total_entries: { - type: 'integer', - title: 'Total Entries' - }, - dags: { - items: { - '$ref': '#/components/schemas/DAGWithLatestDagRunsResponse' - }, - type: 'array', - title: 'Dags' - } + properties: { + total_entries: { + type: "integer", + title: "Total Entries", + }, + dags: { + items: { + $ref: "#/components/schemas/DAGWithLatestDagRunsResponse", + }, + type: "array", + title: "Dags", }, - type: 'object', - required: ['total_entries', 'dags'], - title: 'DAGWithLatestDagRunsCollectionResponse', - description: 'DAG with latest dag runs collection response serializer.' + }, + type: "object", + required: ["total_entries", "dags"], + title: "DAGWithLatestDagRunsCollectionResponse", + description: "DAG with latest dag runs collection response serializer.", } as const; export const $DAGWithLatestDagRunsResponse = { - properties: { - dag_id: { - type: 'string', - title: 'Dag Id' - }, - dag_display_name: { - type: 'string', - title: 'Dag Display Name' - }, - is_paused: { - type: 'boolean', - title: 'Is Paused' - }, - is_stale: { - type: 'boolean', - title: 'Is Stale' - }, - last_parsed_time: { - anyOf: [ - { - type: 'string', - format: 'date-time' - }, - { - type: 'null' - } - ], - title: 'Last Parsed Time' - }, - last_expired: { - anyOf: [ - { - type: 'string', - format: 'date-time' - }, - { - type: 'null' - } - ], - title: 'Last Expired' - }, - bundle_name: { - anyOf: [ - { - type: 'string' - }, - { - type: 'null' - } - ], - title: 'Bundle Name' - }, - bundle_version: { - anyOf: [ - { - type: 'string' - }, - { - type: 'null' - } - ], - title: 'Bundle Version' - }, - relative_fileloc: { - anyOf: [ - { - type: 'string' - }, - { - type: 'null' - } - ], - title: 'Relative Fileloc' - }, - fileloc: { - type: 'string', - title: 'Fileloc' - }, - description: { - anyOf: [ - { - type: 'string' - }, - { - type: 'null' - } - ], - title: 'Description' - }, - deadline: { - anyOf: [ - { - items: { - '$ref': '#/components/schemas/DeadlineAlertResponse' - }, - type: 'array' - }, - { - type: 'null' - } - ], - title: 'Deadline' + properties: { + dag_id: { + type: "string", + title: "Dag Id", + }, + dag_display_name: { + type: "string", + title: "Dag Display Name", + }, + is_paused: { + type: "boolean", + title: "Is Paused", + }, + is_stale: { + type: "boolean", + title: "Is Stale", + }, + last_parsed_time: { + anyOf: [ + { + type: "string", + format: "date-time", }, - timetable_summary: { - anyOf: [ - { - type: 'string' - }, - { - type: 'null' - } - ], - title: 'Timetable Summary' + { + type: "null", }, - timetable_description: { - anyOf: [ - { - type: 'string' - }, - { - type: 'null' - } - ], - title: 'Timetable Description' + ], + title: "Last Parsed Time", + }, + last_expired: { + anyOf: [ + { + type: "string", + format: "date-time", }, - tags: { - items: { - '$ref': '#/components/schemas/DagTagResponse' - }, - type: 'array', - title: 'Tags' + { + type: "null", }, - max_active_tasks: { - type: 'integer', - title: 'Max Active Tasks' + ], + title: "Last Expired", + }, + bundle_name: { + anyOf: [ + { + type: "string", }, - max_active_runs: { - anyOf: [ - { - type: 'integer' - }, - { - type: 'null' - } - ], - title: 'Max Active Runs' + { + type: "null", }, - max_consecutive_failed_dag_runs: { - type: 'integer', - title: 'Max Consecutive Failed Dag Runs' + ], + title: "Bundle Name", + }, + bundle_version: { + anyOf: [ + { + type: "string", }, - has_task_concurrency_limits: { - type: 'boolean', - title: 'Has Task Concurrency Limits' + { + type: "null", }, - has_import_errors: { - type: 'boolean', - title: 'Has Import Errors' + ], + title: "Bundle Version", + }, + relative_fileloc: { + anyOf: [ + { + type: "string", }, - next_dagrun_logical_date: { - anyOf: [ - { - type: 'string', - format: 'date-time' - }, - { - type: 'null' - } - ], - title: 'Next Dagrun Logical Date' + { + type: "null", }, - next_dagrun_data_interval_start: { - anyOf: [ - { - type: 'string', - format: 'date-time' - }, - { - type: 'null' - } - ], - title: 'Next Dagrun Data Interval Start' + ], + title: "Relative Fileloc", + }, + fileloc: { + type: "string", + title: "Fileloc", + }, + description: { + anyOf: [ + { + type: "string", }, - next_dagrun_data_interval_end: { - anyOf: [ - { - type: 'string', - format: 'date-time' - }, - { - type: 'null' - } - ], - title: 'Next Dagrun Data Interval End' + { + type: "null", }, - next_dagrun_run_after: { - anyOf: [ - { - type: 'string', - format: 'date-time' - }, - { - type: 'null' - } - ], - title: 'Next Dagrun Run After' + ], + title: "Description", + }, + timetable_summary: { + anyOf: [ + { + type: "string", }, - owners: { - items: { - type: 'string' - }, - type: 'array', - title: 'Owners' + { + type: "null", }, - asset_expression: { - anyOf: [ - { - additionalProperties: true, - type: 'object' - }, - { - type: 'null' - } - ], - title: 'Asset Expression' + ], + title: "Timetable Summary", + }, + timetable_description: { + anyOf: [ + { + type: "string", }, - latest_dag_runs: { - items: { - '$ref': '#/components/schemas/DAGRunResponse' - }, - type: 'array', - title: 'Latest Dag Runs' + { + type: "null", }, - file_token: { - type: 'string', - title: 'File Token', - description: 'Return file token.', - readOnly: true - } + ], + title: "Timetable Description", }, - type: 'object', - required: ['dag_id', 'dag_display_name', 'is_paused', 'is_stale', 'last_parsed_time', 'last_expired', 'bundle_name', 'bundle_version', 'relative_fileloc', 'fileloc', 'description', 'deadline', 'timetable_summary', 'timetable_description', 'tags', 'max_active_tasks', 'max_active_runs', 'max_consecutive_failed_dag_runs', 'has_task_concurrency_limits', 'has_import_errors', 'next_dagrun_logical_date', 'next_dagrun_data_interval_start', 'next_dagrun_data_interval_end', 'next_dagrun_run_after', 'owners', 'asset_expression', 'latest_dag_runs', 'file_token'], - title: 'DAGWithLatestDagRunsResponse', - description: 'DAG with latest dag runs response serializer.' + tags: { + items: { + $ref: "#/components/schemas/DagTagResponse", + }, + type: "array", + title: "Tags", + }, + max_active_tasks: { + type: "integer", + title: "Max Active Tasks", + }, + max_active_runs: { + anyOf: [ + { + type: "integer", + }, + { + type: "null", + }, + ], + title: "Max Active Runs", + }, + max_consecutive_failed_dag_runs: { + type: "integer", + title: "Max Consecutive Failed Dag Runs", + }, + has_task_concurrency_limits: { + type: "boolean", + title: "Has Task Concurrency Limits", + }, + has_import_errors: { + type: "boolean", + title: "Has Import Errors", + }, + next_dagrun_logical_date: { + anyOf: [ + { + type: "string", + format: "date-time", + }, + { + type: "null", + }, + ], + title: "Next Dagrun Logical Date", + }, + next_dagrun_data_interval_start: { + anyOf: [ + { + type: "string", + format: "date-time", + }, + { + type: "null", + }, + ], + title: "Next Dagrun Data Interval Start", + }, + next_dagrun_data_interval_end: { + anyOf: [ + { + type: "string", + format: "date-time", + }, + { + type: "null", + }, + ], + title: "Next Dagrun Data Interval End", + }, + next_dagrun_run_after: { + anyOf: [ + { + type: "string", + format: "date-time", + }, + { + type: "null", + }, + ], + title: "Next Dagrun Run After", + }, + owners: { + items: { + type: "string", + }, + type: "array", + title: "Owners", + }, + asset_expression: { + anyOf: [ + { + additionalProperties: true, + type: "object", + }, + { + type: "null", + }, + ], + title: "Asset Expression", + }, + latest_dag_runs: { + items: { + $ref: "#/components/schemas/DAGRunResponse", + }, + type: "array", + title: "Latest Dag Runs", + }, + file_token: { + type: "string", + title: "File Token", + description: "Return file token.", + readOnly: true, + }, + }, + type: "object", + required: [ + "dag_id", + "dag_display_name", + "is_paused", + "is_stale", + "last_parsed_time", + "last_expired", + "bundle_name", + "bundle_version", + "relative_fileloc", + "fileloc", + "description", + "timetable_summary", + "timetable_description", + "tags", + "max_active_tasks", + "max_active_runs", + "max_consecutive_failed_dag_runs", + "has_task_concurrency_limits", + "has_import_errors", + "next_dagrun_logical_date", + "next_dagrun_data_interval_start", + "next_dagrun_data_interval_end", + "next_dagrun_run_after", + "owners", + "asset_expression", + "latest_dag_runs", + "file_token", + ], + title: "DAGWithLatestDagRunsResponse", + description: "DAG with latest dag runs response serializer.", } as const; export const $DashboardDagStatsResponse = { - properties: { - active_dag_count: { - type: 'integer', - title: 'Active Dag Count' - }, - failed_dag_count: { - type: 'integer', - title: 'Failed Dag Count' - }, - running_dag_count: { - type: 'integer', - title: 'Running Dag Count' - }, - queued_dag_count: { - type: 'integer', - title: 'Queued Dag Count' - } + properties: { + active_dag_count: { + type: "integer", + title: "Active Dag Count", + }, + failed_dag_count: { + type: "integer", + title: "Failed Dag Count", + }, + running_dag_count: { + type: "integer", + title: "Running Dag Count", + }, + queued_dag_count: { + type: "integer", + title: "Queued Dag Count", }, - type: 'object', - required: ['active_dag_count', 'failed_dag_count', 'running_dag_count', 'queued_dag_count'], - title: 'DashboardDagStatsResponse', - description: 'Dashboard DAG Stats serializer for responses.' + }, + type: "object", + required: ["active_dag_count", "failed_dag_count", "running_dag_count", "queued_dag_count"], + title: "DashboardDagStatsResponse", + description: "Dashboard DAG Stats serializer for responses.", } as const; export const $EdgeResponse = { - properties: { - source_id: { - type: 'string', - title: 'Source Id' - }, - target_id: { - type: 'string', - title: 'Target Id' - }, - is_setup_teardown: { - anyOf: [ - { - type: 'boolean' - }, - { - type: 'null' - } - ], - title: 'Is Setup Teardown' - }, - label: { - anyOf: [ - { - type: 'string' - }, - { - type: 'null' - } - ], - title: 'Label' - }, - is_source_asset: { - anyOf: [ - { - type: 'boolean' - }, - { - type: 'null' - } - ], - title: 'Is Source Asset' - } + properties: { + source_id: { + type: "string", + title: "Source Id", }, - type: 'object', - required: ['source_id', 'target_id'], - title: 'EdgeResponse', - description: 'Edge serializer for responses.' -} as const; - -export const $ExtraMenuItem = { - properties: { - text: { - type: 'string', - title: 'Text' - }, - href: { - type: 'string', - title: 'Href' - } + target_id: { + type: "string", + title: "Target Id", }, - type: 'object', - required: ['text', 'href'], - title: 'ExtraMenuItem' -} as const; - -export const $GridNodeResponse = { - properties: { - id: { - type: 'string', - title: 'Id' + is_setup_teardown: { + anyOf: [ + { + type: "boolean", }, - label: { - type: 'string', - title: 'Label' - }, - children: { - anyOf: [ - { - items: { - '$ref': '#/components/schemas/GridNodeResponse' - }, - type: 'array' - }, - { - type: 'null' - } - ], - title: 'Children' - }, - is_mapped: { - anyOf: [ - { - type: 'boolean' - }, - { - type: 'null' - } - ], - title: 'Is Mapped' + { + type: "null", }, - setup_teardown_type: { - anyOf: [ - { - type: 'string', - enum: ['setup', 'teardown'] - }, - { - type: 'null' - } - ], - title: 'Setup Teardown Type' - } + ], + title: "Is Setup Teardown", }, - type: 'object', - required: ['id', 'label', 'is_mapped'], - title: 'GridNodeResponse', - description: 'Base Node serializer for responses.' -} as const; - -export const $GridRunsResponse = { - properties: { - dag_id: { - type: 'string', - title: 'Dag Id' + label: { + anyOf: [ + { + type: "string", }, - run_id: { - type: 'string', - title: 'Run Id' - }, - queued_at: { - anyOf: [ - { - type: 'string', - format: 'date-time' - }, - { - type: 'null' - } - ], - title: 'Queued At' + { + type: "null", }, - start_date: { - anyOf: [ - { - type: 'string', - format: 'date-time' - }, - { - type: 'null' - } - ], - title: 'Start Date' - }, - end_date: { - anyOf: [ - { - type: 'string', - format: 'date-time' - }, - { - type: 'null' - } - ], - title: 'End Date' + ], + title: "Label", + }, + is_source_asset: { + anyOf: [ + { + type: "boolean", }, - run_after: { - type: 'string', - format: 'date-time', - title: 'Run After' + { + type: "null", }, - state: { - anyOf: [ - { - '$ref': '#/components/schemas/TaskInstanceState' - }, - { - type: 'null' - } - ] - }, - run_type: { - '$ref': '#/components/schemas/DagRunType' - }, - duration: { - type: 'integer', - title: 'Duration', - readOnly: true - } - }, - type: 'object', - required: ['dag_id', 'run_id', 'queued_at', 'start_date', 'end_date', 'run_after', 'state', 'run_type', 'duration'], - title: 'GridRunsResponse', - description: 'Base Node serializer for responses.' -} as const; - -export const $GridTISummaries = { - properties: { - run_id: { - type: 'string', - title: 'Run Id' - }, - dag_id: { - type: 'string', - title: 'Dag Id' - }, - task_instances: { - items: { - '$ref': '#/components/schemas/LightGridTaskInstanceSummary' - }, - type: 'array', - title: 'Task Instances' - } + ], + title: "Is Source Asset", }, - type: 'object', - required: ['run_id', 'dag_id', 'task_instances'], - title: 'GridTISummaries', - description: 'DAG Run model for the Grid UI.' + }, + type: "object", + required: ["source_id", "target_id"], + title: "EdgeResponse", + description: "Edge serializer for responses.", } as const; -export const $HistoricalMetricDataResponse = { - properties: { - dag_run_types: { - '$ref': '#/components/schemas/DAGRunTypes' - }, - dag_run_states: { - '$ref': '#/components/schemas/DAGRunStates' - }, - task_instance_states: { - '$ref': '#/components/schemas/TaskInstanceStateCount' - } +export const $ExtraMenuItem = { + properties: { + text: { + type: "string", + title: "Text", + }, + href: { + type: "string", + title: "Href", }, - type: 'object', - required: ['dag_run_types', 'dag_run_states', 'task_instance_states'], - title: 'HistoricalMetricDataResponse', - description: 'Historical Metric Data serializer for responses.' + }, + type: "object", + required: ["text", "href"], + title: "ExtraMenuItem", } as const; -export const $LatestRunResponse = { - properties: { - id: { - type: 'integer', - title: 'Id' - }, - dag_id: { - type: 'string', - title: 'Dag Id' - }, - run_id: { - type: 'string', - title: 'Run Id' - }, - run_after: { - type: 'string', - format: 'date-time', - title: 'Run After' - } - }, - type: 'object', - required: ['id', 'dag_id', 'run_id', 'run_after'], - title: 'LatestRunResponse', - description: 'Base Node serializer for responses.' +export const $GridDAGRunwithTIs = { + properties: { + dag_run_id: { + type: "string", + title: "Dag Run Id", + }, + queued_at: { + anyOf: [ + { + type: "string", + format: "date-time", + }, + { + type: "null", + }, + ], + title: "Queued At", + }, + start_date: { + anyOf: [ + { + type: "string", + format: "date-time", + }, + { + type: "null", + }, + ], + title: "Start Date", + }, + end_date: { + anyOf: [ + { + type: "string", + format: "date-time", + }, + { + type: "null", + }, + ], + title: "End Date", + }, + run_after: { + type: "string", + format: "date-time", + title: "Run After", + }, + state: { + $ref: "#/components/schemas/DagRunState", + }, + run_type: { + $ref: "#/components/schemas/DagRunType", + }, + logical_date: { + anyOf: [ + { + type: "string", + format: "date-time", + }, + { + type: "null", + }, + ], + title: "Logical Date", + }, + data_interval_start: { + anyOf: [ + { + type: "string", + format: "date-time", + }, + { + type: "null", + }, + ], + title: "Data Interval Start", + }, + data_interval_end: { + anyOf: [ + { + type: "string", + format: "date-time", + }, + { + type: "null", + }, + ], + title: "Data Interval End", + }, + note: { + anyOf: [ + { + type: "string", + }, + { + type: "null", + }, + ], + title: "Note", + }, + task_instances: { + items: { + $ref: "#/components/schemas/GridTaskInstanceSummary", + }, + type: "array", + title: "Task Instances", + }, + }, + type: "object", + required: [ + "dag_run_id", + "queued_at", + "start_date", + "end_date", + "run_after", + "state", + "run_type", + "logical_date", + "data_interval_start", + "data_interval_end", + "note", + "task_instances", + ], + title: "GridDAGRunwithTIs", + description: "DAG Run model for the Grid UI.", +} as const; + +export const $GridResponse = { + properties: { + dag_runs: { + items: { + $ref: "#/components/schemas/GridDAGRunwithTIs", + }, + type: "array", + title: "Dag Runs", + }, + structure: { + $ref: "#/components/schemas/StructureDataResponse", + }, + }, + type: "object", + required: ["dag_runs", "structure"], + title: "GridResponse", + description: "Response model for the Grid UI.", +} as const; + +export const $GridTaskInstanceSummary = { + properties: { + task_id: { + type: "string", + title: "Task Id", + }, + try_number: { + type: "integer", + title: "Try Number", + }, + start_date: { + anyOf: [ + { + type: "string", + format: "date-time", + }, + { + type: "null", + }, + ], + title: "Start Date", + }, + end_date: { + anyOf: [ + { + type: "string", + format: "date-time", + }, + { + type: "null", + }, + ], + title: "End Date", + }, + queued_dttm: { + anyOf: [ + { + type: "string", + format: "date-time", + }, + { + type: "null", + }, + ], + title: "Queued Dttm", + }, + child_states: { + anyOf: [ + { + additionalProperties: { + type: "integer", + }, + type: "object", + }, + { + type: "null", + }, + ], + title: "Child States", + }, + task_count: { + type: "integer", + title: "Task Count", + }, + state: { + anyOf: [ + { + $ref: "#/components/schemas/TaskInstanceState", + }, + { + type: "null", + }, + ], + }, + note: { + anyOf: [ + { + type: "string", + }, + { + type: "null", + }, + ], + title: "Note", + }, + }, + type: "object", + required: [ + "task_id", + "try_number", + "start_date", + "end_date", + "queued_dttm", + "child_states", + "task_count", + "state", + "note", + ], + title: "GridTaskInstanceSummary", + description: "Task Instance Summary model for the Grid UI.", } as const; -export const $LightGridTaskInstanceSummary = { - properties: { - task_id: { - type: 'string', - title: 'Task Id' - }, - state: { - anyOf: [ - { - '$ref': '#/components/schemas/TaskInstanceState' - }, - { - type: 'null' - } - ] - }, - child_states: { - anyOf: [ - { - additionalProperties: { - type: 'integer' - }, - type: 'object' - }, - { - type: 'null' - } - ], - title: 'Child States' - }, - min_start_date: { - anyOf: [ - { - type: 'string', - format: 'date-time' - }, - { - type: 'null' - } - ], - title: 'Min Start Date' - }, - max_end_date: { - anyOf: [ - { - type: 'string', - format: 'date-time' - }, - { - type: 'null' - } - ], - title: 'Max End Date' - } +export const $HistoricalMetricDataResponse = { + properties: { + dag_run_types: { + $ref: "#/components/schemas/DAGRunTypes", + }, + dag_run_states: { + $ref: "#/components/schemas/DAGRunStates", }, - type: 'object', - required: ['task_id', 'state', 'child_states', 'min_start_date', 'max_end_date'], - title: 'LightGridTaskInstanceSummary', - description: 'Task Instance Summary model for the Grid UI.' + task_instance_states: { + $ref: "#/components/schemas/TaskInstanceStateCount", + }, + }, + type: "object", + required: ["dag_run_types", "dag_run_states", "task_instance_states"], + title: "HistoricalMetricDataResponse", + description: "Historical Metric Data serializer for responses.", } as const; export const $MenuItem = { - type: 'string', - enum: ['Assets', 'Audit Log', 'Config', 'Connections', 'Dags', 'Docs', 'Plugins', 'Pools', 'Providers', 'Variables', 'XComs'], - title: 'MenuItem', - description: 'Define all menu items defined in the menu.' + type: "string", + enum: [ + "Assets", + "Audit Log", + "Config", + "Connections", + "Dags", + "Docs", + "Plugins", + "Pools", + "Providers", + "Variables", + "XComs", + ], + title: "MenuItem", + description: "Define all menu items defined in the menu.", } as const; export const $MenuItemCollectionResponse = { - properties: { - authorized_menu_items: { - items: { - '$ref': '#/components/schemas/MenuItem' - }, - type: 'array', - title: 'Authorized Menu Items' - }, - extra_menu_items: { - items: { - '$ref': '#/components/schemas/ExtraMenuItem' - }, - type: 'array', - title: 'Extra Menu Items' - } - }, - type: 'object', - required: ['authorized_menu_items', 'extra_menu_items'], - title: 'MenuItemCollectionResponse', - description: 'Menu Item Collection serializer for responses.' + properties: { + authorized_menu_items: { + items: { + $ref: "#/components/schemas/MenuItem", + }, + type: "array", + title: "Authorized Menu Items", + }, + extra_menu_items: { + items: { + $ref: "#/components/schemas/ExtraMenuItem", + }, + type: "array", + title: "Extra Menu Items", + }, + }, + type: "object", + required: ["authorized_menu_items", "extra_menu_items"], + title: "MenuItemCollectionResponse", + description: "Menu Item Collection serializer for responses.", } as const; export const $NodeResponse = { - properties: { - id: { - type: 'string', - title: 'Id' - }, - label: { - type: 'string', - title: 'Label' - }, - type: { - type: 'string', - enum: ['join', 'task', 'asset-condition', 'asset', 'asset-alias', 'asset-name-ref', 'asset-uri-ref', 'dag', 'sensor', 'trigger'], - title: 'Type' - }, - children: { - anyOf: [ - { - items: { - '$ref': '#/components/schemas/NodeResponse' - }, - type: 'array' - }, - { - type: 'null' - } - ], - title: 'Children' - }, - is_mapped: { - anyOf: [ - { - type: 'boolean' - }, - { - type: 'null' - } - ], - title: 'Is Mapped' - }, - tooltip: { - anyOf: [ - { - type: 'string' - }, - { - type: 'null' - } - ], - title: 'Tooltip' - }, - setup_teardown_type: { - anyOf: [ - { - type: 'string', - enum: ['setup', 'teardown'] - }, - { - type: 'null' - } - ], - title: 'Setup Teardown Type' - }, - operator: { - anyOf: [ - { - type: 'string' - }, - { - type: 'null' - } - ], - title: 'Operator' - }, - asset_condition_type: { - anyOf: [ - { - type: 'string', - enum: ['or-gate', 'and-gate'] - }, - { - type: 'null' - } - ], - title: 'Asset Condition Type' - } - }, - type: 'object', - required: ['id', 'label', 'type'], - title: 'NodeResponse', - description: 'Node serializer for responses.' + properties: { + id: { + type: "string", + title: "Id", + }, + label: { + type: "string", + title: "Label", + }, + type: { + type: "string", + enum: [ + "join", + "task", + "asset-condition", + "asset", + "asset-alias", + "asset-name-ref", + "asset-uri-ref", + "dag", + "sensor", + "trigger", + ], + title: "Type", + }, + children: { + anyOf: [ + { + items: { + $ref: "#/components/schemas/NodeResponse", + }, + type: "array", + }, + { + type: "null", + }, + ], + title: "Children", + }, + is_mapped: { + anyOf: [ + { + type: "boolean", + }, + { + type: "null", + }, + ], + title: "Is Mapped", + }, + tooltip: { + anyOf: [ + { + type: "string", + }, + { + type: "null", + }, + ], + title: "Tooltip", + }, + setup_teardown_type: { + anyOf: [ + { + type: "string", + enum: ["setup", "teardown"], + }, + { + type: "null", + }, + ], + title: "Setup Teardown Type", + }, + operator: { + anyOf: [ + { + type: "string", + }, + { + type: "null", + }, + ], + title: "Operator", + }, + asset_condition_type: { + anyOf: [ + { + type: "string", + enum: ["or-gate", "and-gate"], + }, + { + type: "null", + }, + ], + title: "Asset Condition Type", + }, + }, + type: "object", + required: ["id", "label", "type"], + title: "NodeResponse", + description: "Node serializer for responses.", } as const; export const $StandardHookFields = { - properties: { - description: { - anyOf: [ - { - '$ref': '#/components/schemas/ConnectionHookFieldBehavior' - }, - { - type: 'null' - } - ] - }, - url_schema: { - anyOf: [ - { - '$ref': '#/components/schemas/ConnectionHookFieldBehavior' - }, - { - type: 'null' - } - ] - }, - host: { - anyOf: [ - { - '$ref': '#/components/schemas/ConnectionHookFieldBehavior' - }, - { - type: 'null' - } - ] - }, - port: { - anyOf: [ - { - '$ref': '#/components/schemas/ConnectionHookFieldBehavior' - }, - { - type: 'null' - } - ] - }, - login: { - anyOf: [ - { - '$ref': '#/components/schemas/ConnectionHookFieldBehavior' - }, - { - type: 'null' - } - ] - }, - password: { - anyOf: [ - { - '$ref': '#/components/schemas/ConnectionHookFieldBehavior' - }, - { - type: 'null' - } - ] - } - }, - type: 'object', - required: ['description', 'url_schema', 'host', 'port', 'login', 'password'], - title: 'StandardHookFields', - description: 'Standard fields of a Hook that a form will render.' -} as const; - -export const $StructureDataResponse = { - properties: { - edges: { - items: { - '$ref': '#/components/schemas/EdgeResponse' - }, - type: 'array', - title: 'Edges' - }, - nodes: { - items: { - '$ref': '#/components/schemas/NodeResponse' - }, - type: 'array', - title: 'Nodes' - } - }, - type: 'object', - required: ['edges', 'nodes'], - title: 'StructureDataResponse', - description: 'Structure Data serializer for responses.' -} as const; - -export const $TaskInstanceStateCount = { - properties: { - no_status: { - type: 'integer', - title: 'No Status' + properties: { + description: { + anyOf: [ + { + $ref: "#/components/schemas/ConnectionHookFieldBehavior", }, - removed: { - type: 'integer', - title: 'Removed' + { + type: "null", }, - scheduled: { - type: 'integer', - title: 'Scheduled' + ], + }, + url_schema: { + anyOf: [ + { + $ref: "#/components/schemas/ConnectionHookFieldBehavior", }, - queued: { - type: 'integer', - title: 'Queued' + { + type: "null", }, - running: { - type: 'integer', - title: 'Running' + ], + }, + host: { + anyOf: [ + { + $ref: "#/components/schemas/ConnectionHookFieldBehavior", }, - success: { - type: 'integer', - title: 'Success' + { + type: "null", }, - restarting: { - type: 'integer', - title: 'Restarting' + ], + }, + port: { + anyOf: [ + { + $ref: "#/components/schemas/ConnectionHookFieldBehavior", }, - failed: { - type: 'integer', - title: 'Failed' + { + type: "null", }, - up_for_retry: { - type: 'integer', - title: 'Up For Retry' + ], + }, + login: { + anyOf: [ + { + $ref: "#/components/schemas/ConnectionHookFieldBehavior", }, - up_for_reschedule: { - type: 'integer', - title: 'Up For Reschedule' + { + type: "null", }, - upstream_failed: { - type: 'integer', - title: 'Upstream Failed' + ], + }, + password: { + anyOf: [ + { + $ref: "#/components/schemas/ConnectionHookFieldBehavior", }, - skipped: { - type: 'integer', - title: 'Skipped' + { + type: "null", }, - deferred: { - type: 'integer', - title: 'Deferred' - } + ], }, - type: 'object', - required: ['no_status', 'removed', 'scheduled', 'queued', 'running', 'success', 'restarting', 'failed', 'up_for_retry', 'up_for_reschedule', 'upstream_failed', 'skipped', 'deferred'], - title: 'TaskInstanceStateCount', - description: 'TaskInstance serializer for responses.' + }, + type: "object", + required: ["description", "url_schema", "host", "port", "login", "password"], + title: "StandardHookFields", + description: "Standard fields of a Hook that a form will render.", +} as const; + +export const $StructureDataResponse = { + properties: { + edges: { + items: { + $ref: "#/components/schemas/EdgeResponse", + }, + type: "array", + title: "Edges", + }, + nodes: { + items: { + $ref: "#/components/schemas/NodeResponse", + }, + type: "array", + title: "Nodes", + }, + }, + type: "object", + required: ["edges", "nodes"], + title: "StructureDataResponse", + description: "Structure Data serializer for responses.", +} as const; + +export const $TaskInstanceStateCount = { + properties: { + no_status: { + type: "integer", + title: "No Status", + }, + removed: { + type: "integer", + title: "Removed", + }, + scheduled: { + type: "integer", + title: "Scheduled", + }, + queued: { + type: "integer", + title: "Queued", + }, + running: { + type: "integer", + title: "Running", + }, + success: { + type: "integer", + title: "Success", + }, + restarting: { + type: "integer", + title: "Restarting", + }, + failed: { + type: "integer", + title: "Failed", + }, + up_for_retry: { + type: "integer", + title: "Up For Retry", + }, + up_for_reschedule: { + type: "integer", + title: "Up For Reschedule", + }, + upstream_failed: { + type: "integer", + title: "Upstream Failed", + }, + skipped: { + type: "integer", + title: "Skipped", + }, + deferred: { + type: "integer", + title: "Deferred", + }, + }, + type: "object", + required: [ + "no_status", + "removed", + "scheduled", + "queued", + "running", + "success", + "restarting", + "failed", + "up_for_retry", + "up_for_reschedule", + "upstream_failed", + "skipped", + "deferred", + ], + title: "TaskInstanceStateCount", + description: "TaskInstance serializer for responses.", } as const; export const $UIAlert = { - properties: { - text: { - type: 'string', - title: 'Text' - }, - category: { - type: 'string', - enum: ['info', 'warning', 'error'], - title: 'Category' - } - }, - type: 'object', - required: ['text', 'category'], - title: 'UIAlert', - description: 'Optional alert to be shown at the top of the page.' -} as const; \ No newline at end of file + properties: { + text: { + type: "string", + title: "Text", + }, + category: { + type: "string", + enum: ["info", "warning", "error"], + title: "Category", + }, + }, + type: "object", + required: ["text", "category"], + title: "UIAlert", + description: "Optional alert to be shown at the top of the page.", +} as const; diff --git a/airflow-core/src/airflow/ui/openapi-gen/requests/types.gen.ts b/airflow-core/src/airflow/ui/openapi-gen/requests/types.gen.ts index 17e7de16780f7..79a67a37f8d32 100644 --- a/airflow-core/src/airflow/ui/openapi-gen/requests/types.gen.ts +++ b/airflow-core/src/airflow/ui/openapi-gen/requests/types.gen.ts @@ -4,155 +4,154 @@ * Serializer for AppBuilder Menu Item responses. */ export type AppBuilderMenuItemResponse = { - name: string; - href: string; - category?: string | null; - [key: string]: unknown | string; + name: string; + href?: string | null; + category?: string | null; + [key: string]: unknown | string; }; /** * Serializer for AppBuilder View responses. */ export type AppBuilderViewResponse = { - name?: string | null; - category?: string | null; - view?: string | null; - label?: string | null; - [key: string]: unknown; + name?: string | null; + category?: string | null; + view?: string | null; + label?: string | null; + [key: string]: unknown; }; /** * Asset alias collection response. */ export type AssetAliasCollectionResponse = { - asset_aliases: Array; - total_entries: number; + asset_aliases: Array; + total_entries: number; }; /** * Asset alias serializer for responses. */ export type AssetAliasResponse = { - id: number; - name: string; - group: string; + id: number; + name: string; + group: string; }; /** * Asset collection response. */ export type AssetCollectionResponse = { - assets: Array; - total_entries: number; + assets: Array; + total_entries: number; }; /** * Asset event collection response. */ export type AssetEventCollectionResponse = { - asset_events: Array; - total_entries: number; + asset_events: Array; + total_entries: number; }; /** * Asset event serializer for responses. */ export type AssetEventResponse = { - id: number; - asset_id: number; - uri?: string | null; - name?: string | null; - group?: string | null; - extra?: { + id: number; + asset_id: number; + uri?: string | null; + name?: string | null; + group?: string | null; + extra?: { [key: string]: unknown; -} | null; - source_task_id?: string | null; - source_dag_id?: string | null; - source_run_id?: string | null; - source_map_index: number; - created_dagruns: Array; - timestamp: string; + } | null; + source_task_id?: string | null; + source_dag_id?: string | null; + source_run_id?: string | null; + source_map_index: number; + created_dagruns: Array; + timestamp: string; }; /** * Asset serializer for responses. */ export type AssetResponse = { - id: number; - name: string; - uri: string; - group: string; - extra?: { + id: number; + name: string; + uri: string; + group: string; + extra?: { [key: string]: unknown; -} | null; - created_at: string; - updated_at: string; - scheduled_dags: Array; - producing_tasks: Array; - consuming_tasks: Array; - aliases: Array; - last_asset_event?: LastAssetEventResponse | null; + } | null; + created_at: string; + updated_at: string; + consuming_dags: Array; + producing_tasks: Array; + aliases: Array; + last_asset_event?: LastAssetEventResponse | null; }; /** * Backfill Collection serializer for responses. */ export type BackfillCollectionResponse = { - backfills: Array; - total_entries: number; + backfills: Array; + total_entries: number; }; /** * Object used for create backfill request. */ export type BackfillPostBody = { - dag_id: string; - from_date: string; - to_date: string; - run_backwards?: boolean; - dag_run_conf?: { - [key: string]: unknown; - }; - reprocess_behavior?: ReprocessBehavior; - max_active_runs?: number; + dag_id: string; + from_date: string; + to_date: string; + run_backwards?: boolean; + dag_run_conf?: { + [key: string]: unknown; + }; + reprocess_behavior?: ReprocessBehavior; + max_active_runs?: number; }; /** * Base serializer for Backfill. */ export type BackfillResponse = { - id: number; - dag_id: string; - from_date: string; - to_date: string; - dag_run_conf: { - [key: string]: unknown; - }; - is_paused: boolean; - reprocess_behavior: ReprocessBehavior; - max_active_runs: number; - created_at: string; - completed_at: string | null; - updated_at: string; - dag_display_name: string; + id: number; + dag_id: string; + from_date: string; + to_date: string; + dag_run_conf: { + [key: string]: unknown; + }; + is_paused: boolean; + reprocess_behavior: ReprocessBehavior; + max_active_runs: number; + created_at: string; + completed_at: string | null; + updated_at: string; + dag_display_name: string; }; /** * Base info serializer for responses. */ export type BaseInfoResponse = { - status: string | null; + status: string | null; }; /** * Bulk Action to be taken if the entity does not exist. */ -export type BulkActionNotOnExistence = 'fail' | 'skip'; +export type BulkActionNotOnExistence = "fail" | "skip"; /** * Bulk Action to be taken if the entity already exists or not. */ -export type BulkActionOnExistence = 'fail' | 'skip' | 'overwrite'; +export type BulkActionOnExistence = "fail" | "skip" | "overwrite"; /** * Serializer for individual bulk action responses. @@ -162,128 +161,136 @@ export type BulkActionOnExistence = 'fail' | 'skip' | 'overwrite'; * This structure helps users understand which key actions succeeded and which failed. */ export type BulkActionResponse = { - /** - * A list of unique id/key representing successful operations. - */ - success?: Array<(string)>; - /** - * A list of errors encountered during the operation, each containing details about the issue. - */ - errors?: Array<{ - [key: string]: unknown; - }>; + /** + * A list of unique id/key representing successful operations. + */ + success?: Array; + /** + * A list of errors encountered during the operation, each containing details about the issue. + */ + errors?: Array<{ + [key: string]: unknown; + }>; }; export type BulkBody_BulkTaskInstanceBody_ = { - actions: Array<(BulkCreateAction_BulkTaskInstanceBody_ | BulkUpdateAction_BulkTaskInstanceBody_ | BulkDeleteAction_BulkTaskInstanceBody_)>; + actions: Array< + | BulkCreateAction_BulkTaskInstanceBody_ + | BulkUpdateAction_BulkTaskInstanceBody_ + | BulkDeleteAction_BulkTaskInstanceBody_ + >; }; export type BulkBody_ConnectionBody_ = { - actions: Array<(BulkCreateAction_ConnectionBody_ | BulkUpdateAction_ConnectionBody_ | BulkDeleteAction_ConnectionBody_)>; + actions: Array< + BulkCreateAction_ConnectionBody_ | BulkUpdateAction_ConnectionBody_ | BulkDeleteAction_ConnectionBody_ + >; }; export type BulkBody_PoolBody_ = { - actions: Array<(BulkCreateAction_PoolBody_ | BulkUpdateAction_PoolBody_ | BulkDeleteAction_PoolBody_)>; + actions: Array; }; export type BulkBody_VariableBody_ = { - actions: Array<(BulkCreateAction_VariableBody_ | BulkUpdateAction_VariableBody_ | BulkDeleteAction_VariableBody_)>; + actions: Array< + BulkCreateAction_VariableBody_ | BulkUpdateAction_VariableBody_ | BulkDeleteAction_VariableBody_ + >; }; export type BulkCreateAction_BulkTaskInstanceBody_ = { - /** - * The action to be performed on the entities. - */ - action: "create"; - /** - * A list of entities to be created. - */ - entities: Array; - action_on_existence?: BulkActionOnExistence; + /** + * The action to be performed on the entities. + */ + action: "create"; + /** + * A list of entities to be created. + */ + entities: Array; + action_on_existence?: BulkActionOnExistence; }; export type BulkCreateAction_ConnectionBody_ = { - /** - * The action to be performed on the entities. - */ - action: "create"; - /** - * A list of entities to be created. - */ - entities: Array; - action_on_existence?: BulkActionOnExistence; + /** + * The action to be performed on the entities. + */ + action: "create"; + /** + * A list of entities to be created. + */ + entities: Array; + action_on_existence?: BulkActionOnExistence; }; export type BulkCreateAction_PoolBody_ = { - /** - * The action to be performed on the entities. - */ - action: "create"; - /** - * A list of entities to be created. - */ - entities: Array; - action_on_existence?: BulkActionOnExistence; + /** + * The action to be performed on the entities. + */ + action: "create"; + /** + * A list of entities to be created. + */ + entities: Array; + action_on_existence?: BulkActionOnExistence; }; export type BulkCreateAction_VariableBody_ = { - /** - * The action to be performed on the entities. - */ - action: "create"; - /** - * A list of entities to be created. - */ - entities: Array; - action_on_existence?: BulkActionOnExistence; + /** + * The action to be performed on the entities. + */ + action: "create"; + /** + * A list of entities to be created. + */ + entities: Array; + action_on_existence?: BulkActionOnExistence; }; export type BulkDeleteAction_BulkTaskInstanceBody_ = { - /** - * The action to be performed on the entities. - */ - action: "delete"; - /** - * A list of entity id/key to be deleted. - */ - entities: Array<(string)>; - action_on_non_existence?: BulkActionNotOnExistence; + /** + * The action to be performed on the entities. + */ + action: "delete"; + /** + * A list of entity id/key to be deleted. + */ + entities: Array; + action_on_non_existence?: BulkActionNotOnExistence; }; export type BulkDeleteAction_ConnectionBody_ = { - /** - * The action to be performed on the entities. - */ - action: "delete"; - /** - * A list of entity id/key to be deleted. - */ - entities: Array<(string)>; - action_on_non_existence?: BulkActionNotOnExistence; + /** + * The action to be performed on the entities. + */ + action: "delete"; + /** + * A list of entity id/key to be deleted. + */ + entities: Array; + action_on_non_existence?: BulkActionNotOnExistence; }; export type BulkDeleteAction_PoolBody_ = { - /** - * The action to be performed on the entities. - */ - action: "delete"; - /** - * A list of entity id/key to be deleted. - */ - entities: Array<(string)>; - action_on_non_existence?: BulkActionNotOnExistence; + /** + * The action to be performed on the entities. + */ + action: "delete"; + /** + * A list of entity id/key to be deleted. + */ + entities: Array; + action_on_non_existence?: BulkActionNotOnExistence; }; export type BulkDeleteAction_VariableBody_ = { - /** - * The action to be performed on the entities. - */ - action: "delete"; - /** - * A list of entity id/key to be deleted. - */ - entities: Array<(string)>; - action_on_non_existence?: BulkActionNotOnExistence; + /** + * The action to be performed on the entities. + */ + action: "delete"; + /** + * A list of entity id/key to be deleted. + */ + entities: Array; + action_on_non_existence?: BulkActionNotOnExistence; }; /** @@ -294,440 +301,431 @@ export type BulkDeleteAction_VariableBody_ = { * Fields are populated in the response only if the respective action was part of the request, else are set None. */ export type BulkResponse = { - /** - * Details of the bulk create operation, including successful keys and errors. - */ - create?: BulkActionResponse | null; - /** - * Details of the bulk update operation, including successful keys and errors. - */ - update?: BulkActionResponse | null; - /** - * Details of the bulk delete operation, including successful keys and errors. - */ - delete?: BulkActionResponse | null; + /** + * Details of the bulk create operation, including successful keys and errors. + */ + create?: BulkActionResponse | null; + /** + * Details of the bulk update operation, including successful keys and errors. + */ + update?: BulkActionResponse | null; + /** + * Details of the bulk delete operation, including successful keys and errors. + */ + delete?: BulkActionResponse | null; }; /** * Request body for bulk update, and delete task instances. */ export type BulkTaskInstanceBody = { - new_state?: TaskInstanceState | null; - note?: string | null; - include_upstream?: boolean; - include_downstream?: boolean; - include_future?: boolean; - include_past?: boolean; - task_id: string; - map_index?: number | null; + new_state?: TaskInstanceState | null; + note?: string | null; + include_upstream?: boolean; + include_downstream?: boolean; + include_future?: boolean; + include_past?: boolean; + task_id: string; + map_index?: number | null; }; export type BulkUpdateAction_BulkTaskInstanceBody_ = { - /** - * The action to be performed on the entities. - */ - action: "update"; - /** - * A list of entities to be updated. - */ - entities: Array; - action_on_non_existence?: BulkActionNotOnExistence; + /** + * The action to be performed on the entities. + */ + action: "update"; + /** + * A list of entities to be updated. + */ + entities: Array; + action_on_non_existence?: BulkActionNotOnExistence; }; export type BulkUpdateAction_ConnectionBody_ = { - /** - * The action to be performed on the entities. - */ - action: "update"; - /** - * A list of entities to be updated. - */ - entities: Array; - action_on_non_existence?: BulkActionNotOnExistence; + /** + * The action to be performed on the entities. + */ + action: "update"; + /** + * A list of entities to be updated. + */ + entities: Array; + action_on_non_existence?: BulkActionNotOnExistence; }; export type BulkUpdateAction_PoolBody_ = { - /** - * The action to be performed on the entities. - */ - action: "update"; - /** - * A list of entities to be updated. - */ - entities: Array; - action_on_non_existence?: BulkActionNotOnExistence; + /** + * The action to be performed on the entities. + */ + action: "update"; + /** + * A list of entities to be updated. + */ + entities: Array; + action_on_non_existence?: BulkActionNotOnExistence; }; export type BulkUpdateAction_VariableBody_ = { - /** - * The action to be performed on the entities. - */ - action: "update"; - /** - * A list of entities to be updated. - */ - entities: Array; - action_on_non_existence?: BulkActionNotOnExistence; + /** + * The action to be performed on the entities. + */ + action: "update"; + /** + * A list of entities to be updated. + */ + entities: Array; + action_on_non_existence?: BulkActionNotOnExistence; }; /** * Request body for Clear Task Instances endpoint. */ export type ClearTaskInstancesBody = { - dry_run?: boolean; - start_date?: string | null; - end_date?: string | null; - only_failed?: boolean; - only_running?: boolean; - reset_dag_runs?: boolean; - task_ids?: Array<(string | [ - string, - number -])> | null; - dag_run_id?: string | null; - include_upstream?: boolean; - include_downstream?: boolean; - include_future?: boolean; - include_past?: boolean; + dry_run?: boolean; + start_date?: string | null; + end_date?: string | null; + only_failed?: boolean; + only_running?: boolean; + reset_dag_runs?: boolean; + task_ids?: Array | null; + dag_run_id?: string | null; + include_upstream?: boolean; + include_downstream?: boolean; + include_future?: boolean; + include_past?: boolean; }; /** * List of config sections with their options. */ export type Config = { - sections: Array; + sections: Array; }; /** * Config option. */ export type ConfigOption = { - key: string; - value: string | [ - string, - string -]; + key: string; + value: string | [string, string]; }; /** * Config Section Schema. */ export type ConfigSection = { - name: string; - options: Array; + name: string; + options: Array; }; /** * Connection Serializer for requests body. */ export type ConnectionBody = { - connection_id: string; - conn_type: string; - description?: string | null; - host?: string | null; - login?: string | null; - schema?: string | null; - port?: number | null; - password?: string | null; - extra?: string | null; + connection_id: string; + conn_type: string; + description?: string | null; + host?: string | null; + login?: string | null; + schema?: string | null; + port?: number | null; + password?: string | null; + extra?: string | null; }; /** * Connection Collection serializer for responses. */ export type ConnectionCollectionResponse = { - connections: Array; - total_entries: number; + connections: Array; + total_entries: number; }; /** * Connection serializer for responses. */ export type ConnectionResponse = { - connection_id: string; - conn_type: string; - description: string | null; - host: string | null; - login: string | null; - schema: string | null; - port: number | null; - password: string | null; - extra: string | null; + connection_id: string; + conn_type: string; + description: string | null; + host: string | null; + login: string | null; + schema: string | null; + port: number | null; + password: string | null; + extra: string | null; }; /** * Connection Test serializer for responses. */ export type ConnectionTestResponse = { - status: boolean; - message: string; + status: boolean; + message: string; }; /** * Create asset events request. */ export type CreateAssetEventsBody = { - asset_id: number; - extra?: { - [key: string]: unknown; - }; + asset_id: number; + extra?: { + [key: string]: unknown; + }; }; /** * DAG Collection serializer for responses. */ export type DAGCollectionResponse = { - dags: Array; - total_entries: number; + dags: Array; + total_entries: number; }; /** * Specific serializer for DAG Details responses. */ export type DAGDetailsResponse = { - dag_id: string; - dag_display_name: string; - is_paused: boolean; - is_stale: boolean; - last_parsed_time: string | null; - last_expired: string | null; - bundle_name: string | null; - bundle_version: string | null; - relative_fileloc: string | null; - fileloc: string; - description: string | null; - deadline: Array | null; - timetable_summary: string | null; - timetable_description: string | null; - tags: Array; - max_active_tasks: number; - max_active_runs: number | null; - max_consecutive_failed_dag_runs: number; - has_task_concurrency_limits: boolean; - has_import_errors: boolean; - next_dagrun_logical_date: string | null; - next_dagrun_data_interval_start: string | null; - next_dagrun_data_interval_end: string | null; - next_dagrun_run_after: string | null; - owners: Array<(string)>; - catchup: boolean; - dag_run_timeout: string | null; - asset_expression: { + dag_id: string; + dag_display_name: string; + is_paused: boolean; + is_stale: boolean; + last_parsed_time: string | null; + last_expired: string | null; + bundle_name: string | null; + bundle_version: string | null; + relative_fileloc: string | null; + fileloc: string; + description: string | null; + timetable_summary: string | null; + timetable_description: string | null; + tags: Array; + max_active_tasks: number; + max_active_runs: number | null; + max_consecutive_failed_dag_runs: number; + has_task_concurrency_limits: boolean; + has_import_errors: boolean; + next_dagrun_logical_date: string | null; + next_dagrun_data_interval_start: string | null; + next_dagrun_data_interval_end: string | null; + next_dagrun_run_after: string | null; + owners: Array; + catchup: boolean; + dag_run_timeout: string | null; + asset_expression: { [key: string]: unknown; -} | null; - doc_md: string | null; - start_date: string | null; - end_date: string | null; - is_paused_upon_creation: boolean | null; - params: { + } | null; + doc_md: string | null; + start_date: string | null; + end_date: string | null; + is_paused_upon_creation: boolean | null; + params: { [key: string]: unknown; -} | null; - render_template_as_native_obj: boolean; - template_search_path: Array<(string)> | null; - timezone: string | null; - last_parsed: string | null; - default_args: { + } | null; + render_template_as_native_obj: boolean; + template_search_path: Array | null; + timezone: string | null; + last_parsed: string | null; + default_args: { [key: string]: unknown; -} | null; - owner_links?: { - [key: string]: (string); -} | null; - /** - * Return file token. - */ - readonly file_token: string; - /** - * Return max_active_tasks as concurrency. - */ - readonly concurrency: number; - /** - * Return the latest DagVersion. - */ - readonly latest_dag_version: DagVersionResponse | null; + } | null; + owner_links?: { + [key: string]: string; + } | null; + /** + * Return file token. + */ + readonly file_token: string; + /** + * Return max_active_tasks as concurrency. + */ + readonly concurrency: number; + /** + * Return the latest DagVersion. + */ + readonly latest_dag_version: DagVersionResponse | null; }; /** * Dag Serializer for updatable bodies. */ export type DAGPatchBody = { - is_paused: boolean; + is_paused: boolean; }; /** * DAG serializer for responses. */ export type DAGResponse = { - dag_id: string; - dag_display_name: string; - is_paused: boolean; - is_stale: boolean; - last_parsed_time: string | null; - last_expired: string | null; - bundle_name: string | null; - bundle_version: string | null; - relative_fileloc: string | null; - fileloc: string; - description: string | null; - deadline: Array | null; - timetable_summary: string | null; - timetable_description: string | null; - tags: Array; - max_active_tasks: number; - max_active_runs: number | null; - max_consecutive_failed_dag_runs: number; - has_task_concurrency_limits: boolean; - has_import_errors: boolean; - next_dagrun_logical_date: string | null; - next_dagrun_data_interval_start: string | null; - next_dagrun_data_interval_end: string | null; - next_dagrun_run_after: string | null; - owners: Array<(string)>; - /** - * Return file token. - */ - readonly file_token: string; + dag_id: string; + dag_display_name: string; + is_paused: boolean; + is_stale: boolean; + last_parsed_time: string | null; + last_expired: string | null; + bundle_name: string | null; + bundle_version: string | null; + relative_fileloc: string | null; + fileloc: string; + description: string | null; + timetable_summary: string | null; + timetable_description: string | null; + tags: Array; + max_active_tasks: number; + max_active_runs: number | null; + max_consecutive_failed_dag_runs: number; + has_task_concurrency_limits: boolean; + has_import_errors: boolean; + next_dagrun_logical_date: string | null; + next_dagrun_data_interval_start: string | null; + next_dagrun_data_interval_end: string | null; + next_dagrun_run_after: string | null; + owners: Array; + /** + * Return file token. + */ + readonly file_token: string; }; /** * DAG Run serializer for clear endpoint body. */ export type DAGRunClearBody = { - dry_run?: boolean; - only_failed?: boolean; + dry_run?: boolean; + only_failed?: boolean; }; /** * DAG Run Collection serializer for responses. */ export type DAGRunCollectionResponse = { - dag_runs: Array; - total_entries: number; + dag_runs: Array; + total_entries: number; }; /** * DAG Run Serializer for PATCH requests. */ export type DAGRunPatchBody = { - state?: DAGRunPatchStates | null; - note?: string | null; + state?: DAGRunPatchStates | null; + note?: string | null; }; /** * Enum for DAG Run states when updating a DAG Run. */ -export type DAGRunPatchStates = 'queued' | 'success' | 'failed'; +export type DAGRunPatchStates = "queued" | "success" | "failed"; /** * DAG Run serializer for responses. */ export type DAGRunResponse = { - dag_run_id: string; - dag_id: string; - logical_date: string | null; - queued_at: string | null; - start_date: string | null; - end_date: string | null; - duration: number | null; - data_interval_start: string | null; - data_interval_end: string | null; - run_after: string; - last_scheduling_decision: string | null; - run_type: DagRunType; - state: DagRunState; - triggered_by: DagRunTriggeredByType | null; - triggering_user_name: string | null; - conf: { + dag_run_id: string; + dag_id: string; + logical_date: string | null; + queued_at: string | null; + start_date: string | null; + end_date: string | null; + duration: number | null; + data_interval_start: string | null; + data_interval_end: string | null; + run_after: string; + last_scheduling_decision: string | null; + run_type: DagRunType; + state: DagRunState; + triggered_by: DagRunTriggeredByType | null; + conf: { [key: string]: unknown; -} | null; - note: string | null; - dag_versions: Array; - bundle_version: string | null; - dag_display_name: string; + } | null; + note: string | null; + dag_versions: Array; + bundle_version: string | null; + dag_display_name: string; }; /** * List DAG Runs body for batch endpoint. */ export type DAGRunsBatchBody = { - order_by?: string | null; - page_offset?: number; - page_limit?: number; - dag_ids?: Array<(string)> | null; - states?: Array<(DagRunState | null)> | null; - run_after_gte?: string | null; - run_after_lte?: string | null; - logical_date_gte?: string | null; - logical_date_lte?: string | null; - start_date_gte?: string | null; - start_date_lte?: string | null; - end_date_gte?: string | null; - end_date_lte?: string | null; + order_by?: string | null; + page_offset?: number; + page_limit?: number; + dag_ids?: Array | null; + states?: Array | null; + run_after_gte?: string | null; + run_after_lte?: string | null; + logical_date_gte?: string | null; + logical_date_lte?: string | null; + start_date_gte?: string | null; + start_date_lte?: string | null; + end_date_gte?: string | null; + end_date_lte?: string | null; }; /** * DAG Source serializer for responses. */ export type DAGSourceResponse = { - content: string | null; - dag_id: string; - version_number: number | null; - dag_display_name: string; + content: string | null; + dag_id: string; + version_number: number | null; + dag_display_name: string; }; /** * DAG Tags Collection serializer for responses. */ export type DAGTagCollectionResponse = { - tags: Array<(string)>; - total_entries: number; + tags: Array; + total_entries: number; }; /** * DAG Version Collection serializer for responses. */ export type DAGVersionCollectionResponse = { - dag_versions: Array; - total_entries: number; + dag_versions: Array; + total_entries: number; }; /** * DAG warning collection serializer for responses. */ export type DAGWarningCollectionResponse = { - dag_warnings: Array; - total_entries: number; + dag_warnings: Array; + total_entries: number; }; /** * DAG Warning serializer for responses. */ export type DAGWarningResponse = { - dag_id: string; - warning_type: DagWarningType; - message: string; - timestamp: string; + dag_id: string; + warning_type: DagWarningType; + message: string; + timestamp: string; }; /** * DagProcessor info serializer for responses. */ export type DagProcessorInfoResponse = { - status: string | null; - latest_dag_processor_heartbeat: string | null; + status: string | null; + latest_dag_processor_heartbeat: string | null; }; /** * DAGRun serializer for asset responses. */ export type DagRunAssetReference = { - run_id: string; - dag_id: string; - logical_date: string | null; - start_date: string; - end_date: string | null; - state: string; - data_interval_start: string | null; - data_interval_end: string | null; + run_id: string; + dag_id: string; + logical_date: string | null; + start_date: string; + end_date: string | null; + state: string; + data_interval_start: string | null; + data_interval_end: string | null; }; /** @@ -737,71 +735,79 @@ export type DagRunAssetReference = { * so please ensure that their values always match the ones with the * same name in TaskInstanceState. */ -export type DagRunState = 'queued' | 'running' | 'success' | 'failed'; +export type DagRunState = "queued" | "running" | "success" | "failed"; /** * Class with TriggeredBy types for DagRun. */ -export type DagRunTriggeredByType = 'cli' | 'operator' | 'rest_api' | 'ui' | 'test' | 'timetable' | 'asset' | 'backfill'; +export type DagRunTriggeredByType = + | "cli" + | "operator" + | "rest_api" + | "ui" + | "test" + | "timetable" + | "asset" + | "backfill"; /** * Class with DagRun types. */ -export type DagRunType = 'backfill' | 'scheduled' | 'manual' | 'asset_triggered'; +export type DagRunType = "backfill" | "scheduled" | "manual" | "asset_triggered"; /** * DAG schedule reference serializer for assets. */ export type DagScheduleAssetReference = { - dag_id: string; - created_at: string; - updated_at: string; + dag_id: string; + created_at: string; + updated_at: string; }; /** * DAG Stats Collection serializer for responses. */ export type DagStatsCollectionResponse = { - dags: Array; - total_entries: number; + dags: Array; + total_entries: number; }; /** * DAG Stats serializer for responses. */ export type DagStatsResponse = { - dag_id: string; - stats: Array; + dag_id: string; + stats: Array; }; /** * DagStatsState serializer for responses. */ export type DagStatsStateResponse = { - state: DagRunState; - count: number; + state: DagRunState; + count: number; }; /** * DAG Tag serializer for responses. */ export type DagTagResponse = { - name: string; - dag_id: string; + name: string; + dag_id: string; }; /** * Dag Version serializer for responses. */ export type DagVersionResponse = { - id: string; - version_number: number; - dag_id: string; - bundle_name: string | null; - bundle_version: string | null; - created_at: string; - dag_display_name: string; - readonly bundle_url: string | null; + id: string; + version_number: number; + dag_id: string; + bundle_name: string | null; + bundle_version: string | null; + created_at: string; + dag_display_name: string; + readonly bundle_url: string | null; }; /** @@ -810,220 +816,164 @@ export type DagVersionResponse = { * This is the set of allowable values for the ``warning_type`` field * in the DagWarning model. */ -export type DagWarningType = 'asset conflict' | 'non-existent pool'; - -/** - * Deadline alert serializer for responses. - */ -export type DeadlineAlertResponse = { - reference: string; - interval: string; - callback: string; - callback_kwargs?: { - [key: string]: unknown; -} | null; -}; +export type DagWarningType = "asset conflict" | "non-existent pool"; /** * Backfill collection serializer for responses in dry-run mode. */ export type DryRunBackfillCollectionResponse = { - backfills: Array; - total_entries: number; + backfills: Array; + total_entries: number; }; /** * Backfill serializer for responses in dry-run mode. */ export type DryRunBackfillResponse = { - logical_date: string; + logical_date: string; }; /** * Event Log Collection Response. */ export type EventLogCollectionResponse = { - event_logs: Array; - total_entries: number; + event_logs: Array; + total_entries: number; }; /** * Event Log Response. */ export type EventLogResponse = { - event_log_id: number; - when: string; - dag_id: string | null; - task_id: string | null; - run_id: string | null; - map_index: number | null; - try_number: number | null; - event: string; - logical_date: string | null; - owner: string | null; - extra: string | null; - dag_display_name?: string | null; + event_log_id: number; + when: string; + dag_id: string | null; + task_id: string | null; + run_id: string | null; + map_index: number | null; + try_number: number | null; + event: string; + logical_date: string | null; + owner: string | null; + extra: string | null; + dag_display_name?: string | null; }; /** * Response for the external log URL endpoint. */ export type ExternalLogUrlResponse = { - url: string; + url: string; }; -/** - * Serializer for External View Plugin responses. - */ -export type ExternalViewResponse = { - name: string; - icon?: string | null; - icon_dark_mode?: string | null; - url_route?: string | null; - category?: string | null; - destination?: 'nav' | 'dag' | 'dag_run' | 'task' | 'task_instance'; - href: string; - [key: string]: unknown | string; -}; - -export type destination = 'nav' | 'dag' | 'dag_run' | 'task' | 'task_instance'; - /** * Extra Links Response. */ export type ExtraLinkCollectionResponse = { - extra_links: { - [key: string]: (string | null); - }; - total_entries: number; + extra_links: { + [key: string]: string | null; + }; + total_entries: number; }; /** * Serializer for Plugin FastAPI App responses. */ export type FastAPIAppResponse = { - app: string; - url_prefix: string; - name: string; - [key: string]: unknown | string; + app: string; + url_prefix: string; + name: string; + [key: string]: unknown | string; }; /** * Serializer for Plugin FastAPI root middleware responses. */ export type FastAPIRootMiddlewareResponse = { - middleware: string; - name: string; - [key: string]: unknown | string; -}; - -/** - * Schema for Human-in-the-loop detail. - */ -export type HITLDetail = { - task_instance: TaskInstanceResponse; - options: Array<(string)>; - subject: string; - body?: string | null; - defaults?: Array<(string)> | null; - multiple?: boolean; - params?: { - [key: string]: unknown; - }; - user_id?: string | null; - response_at?: string | null; - chosen_options?: Array<(string)> | null; - params_input?: { - [key: string]: unknown; - }; - response_received?: boolean; -}; - -/** - * Schema for a collection of Human-in-the-loop details. - */ -export type HITLDetailCollection = { - hitl_details: Array; - total_entries: number; -}; - -/** - * Response of updating a Human-in-the-loop detail. - */ -export type HITLDetailResponse = { - user_id: string; - response_at: string; - chosen_options: Array<(string)>; - params_input?: { - [key: string]: unknown; - }; + middleware: string; + name: string; + [key: string]: unknown | string; }; /** * HTTPException Model used for error response. */ export type HTTPExceptionResponse = { - detail: string | { - [key: string]: unknown; -}; + detail: + | string + | { + [key: string]: unknown; + }; }; export type HTTPValidationError = { - detail?: Array; + detail?: Array; }; /** * Health serializer for responses. */ export type HealthInfoResponse = { - metadatabase: BaseInfoResponse; - scheduler: SchedulerInfoResponse; - triggerer: TriggererInfoResponse; - dag_processor?: DagProcessorInfoResponse | null; + metadatabase: BaseInfoResponse; + scheduler: SchedulerInfoResponse; + triggerer: TriggererInfoResponse; + dag_processor?: DagProcessorInfoResponse | null; +}; + +/** + * Serializer for IFrame Plugin responses. + */ +export type IFrameViewsResponse = { + name: string; + src: string; + icon?: string | null; + url_route?: string | null; + destination?: "nav" | "dag" | "dag_run" | "task" | "task_instance" | null; + [key: string]: unknown | string; }; /** * Import Error Collection Response. */ export type ImportErrorCollectionResponse = { - import_errors: Array; - total_entries: number; + import_errors: Array; + total_entries: number; }; /** * Import Error Response. */ export type ImportErrorResponse = { - import_error_id: number; - timestamp: string; - filename: string; - bundle_name: string | null; - stack_trace: string; + import_error_id: number; + timestamp: string; + filename: string; + bundle_name: string | null; + stack_trace: string; }; /** * Job Collection Response. */ export type JobCollectionResponse = { - jobs: Array; - total_entries: number; + jobs: Array; + total_entries: number; }; /** * Job serializer for responses. */ export type JobResponse = { - id: number; - dag_id: string | null; - state: string | null; - job_type: string | null; - start_date: string | null; - end_date: string | null; - latest_heartbeat: string | null; - executor_class: string | null; - hostname: string | null; - unixname: string | null; - dag_display_name?: string | null; + id: number; + dag_id: string | null; + state: string | null; + job_type: string | null; + start_date: string | null; + end_date: string | null; + latest_heartbeat: string | null; + executor_class: string | null; + hostname: string | null; + unixname: string | null; + dag_display_name?: string | null; }; export type JsonValue = unknown; @@ -1032,163 +982,142 @@ export type JsonValue = unknown; * Last asset event response serializer. */ export type LastAssetEventResponse = { - id?: number | null; - timestamp?: string | null; + id?: number | null; + timestamp?: string | null; }; /** * Request body for Clear Task Instances endpoint. */ export type PatchTaskInstanceBody = { - new_state?: TaskInstanceState | null; - note?: string | null; - include_upstream?: boolean; - include_downstream?: boolean; - include_future?: boolean; - include_past?: boolean; + new_state?: TaskInstanceState | null; + note?: string | null; + include_upstream?: boolean; + include_downstream?: boolean; + include_future?: boolean; + include_past?: boolean; }; /** * Plugin Collection serializer. */ export type PluginCollectionResponse = { - plugins: Array; - total_entries: number; + plugins: Array; + total_entries: number; }; /** * Plugin Import Error Collection serializer. */ export type PluginImportErrorCollectionResponse = { - import_errors: Array; - total_entries: number; + import_errors: Array; + total_entries: number; }; /** * Plugin Import Error serializer for responses. */ export type PluginImportErrorResponse = { - source: string; - error: string; + source: string; + error: string; }; /** * Plugin serializer. */ export type PluginResponse = { - name: string; - macros: Array<(string)>; - flask_blueprints: Array<(string)>; - fastapi_apps: Array; - fastapi_root_middlewares: Array; - /** - * Aggregate all external views. Both 'external_views' and 'appbuilder_menu_items' are included here. - */ - external_views: Array; - react_apps: Array; - appbuilder_views: Array; - /** - * @deprecated - */ - appbuilder_menu_items: Array; - global_operator_extra_links: Array<(string)>; - operator_extra_links: Array<(string)>; - source: string; - listeners: Array<(string)>; - timetables: Array<(string)>; + name: string; + macros: Array; + flask_blueprints: Array; + fastapi_apps: Array; + fastapi_root_middlewares: Array; + iframe_views: Array; + appbuilder_views: Array; + appbuilder_menu_items: Array; + global_operator_extra_links: Array; + operator_extra_links: Array; + source: string; + listeners: Array; + timetables: Array; }; /** * Pool serializer for post bodies. */ export type PoolBody = { - name: string; - slots: number; - description?: string | null; - include_deferred?: boolean; + name: string; + slots: number; + description?: string | null; + include_deferred?: boolean; }; /** * Pool Collection serializer for responses. */ export type PoolCollectionResponse = { - pools: Array; - total_entries: number; + pools: Array; + total_entries: number; }; /** * Pool serializer for patch bodies. */ export type PoolPatchBody = { - pool?: string | null; - slots?: number | null; - description?: string | null; - include_deferred?: boolean | null; + pool?: string | null; + slots?: number | null; + description?: string | null; + include_deferred?: boolean | null; }; /** * Pool serializer for responses. */ export type PoolResponse = { - name: string; - slots: number; - description: string | null; - include_deferred: boolean; - occupied_slots: number; - running_slots: number; - queued_slots: number; - scheduled_slots: number; - open_slots: number; - deferred_slots: number; + name: string; + slots: number; + description: string | null; + include_deferred: boolean; + occupied_slots: number; + running_slots: number; + queued_slots: number; + scheduled_slots: number; + open_slots: number; + deferred_slots: number; }; /** * Provider Collection serializer for responses. */ export type ProviderCollectionResponse = { - providers: Array; - total_entries: number; + providers: Array; + total_entries: number; }; /** * Provider serializer for responses. */ export type ProviderResponse = { - package_name: string; - description: string; - version: string; + package_name: string; + description: string; + version: string; }; /** * Queued Event Collection serializer for responses. */ export type QueuedEventCollectionResponse = { - queued_events: Array; - total_entries: number; + queued_events: Array; + total_entries: number; }; /** * Queued Event serializer for responses.. */ export type QueuedEventResponse = { - dag_id: string; - asset_id: number; - created_at: string; - dag_display_name: string; -}; - -/** - * Serializer for React App Plugin responses. - */ -export type ReactAppResponse = { - name: string; - icon?: string | null; - icon_dark_mode?: string | null; - url_route?: string | null; - category?: string | null; - destination?: 'nav' | 'dag' | 'dag_run' | 'task' | 'task_instance'; - bundle_url: string; - [key: string]: unknown | string; + dag_id: string; + asset_id: number; + created_at: string; + dag_display_name: string; }; /** @@ -1196,144 +1125,134 @@ export type ReactAppResponse = { * * :meta private: */ -export type ReprocessBehavior = 'failed' | 'completed' | 'none'; +export type ReprocessBehavior = "failed" | "completed" | "none"; /** * Scheduler info serializer for responses. */ export type SchedulerInfoResponse = { - status: string | null; - latest_scheduler_heartbeat: string | null; + status: string | null; + latest_scheduler_heartbeat: string | null; }; /** * An individual log message. */ export type StructuredLogMessage = { - timestamp?: string; - event: string; - [key: string]: unknown | string; + timestamp?: string; + event: string; + [key: string]: unknown | string; }; /** * Task collection serializer for responses. */ export type TaskCollectionResponse = { - tasks: Array; - total_entries: number; + tasks: Array; + total_entries: number; }; /** * Task scheduling dependencies collection serializer for responses. */ export type TaskDependencyCollectionResponse = { - dependencies: Array; + dependencies: Array; }; /** * Task Dependency serializer for responses. */ export type TaskDependencyResponse = { - name: string; - reason: string; -}; - -/** - * Task inlet reference serializer for assets. - */ -export type TaskInletAssetReference = { - dag_id: string; - task_id: string; - created_at: string; - updated_at: string; + name: string; + reason: string; }; /** * Task Instance Collection serializer for responses. */ export type TaskInstanceCollectionResponse = { - task_instances: Array; - total_entries: number; + task_instances: Array; + total_entries: number; }; /** * TaskInstanceHistory Collection serializer for responses. */ export type TaskInstanceHistoryCollectionResponse = { - task_instances: Array; - total_entries: number; + task_instances: Array; + total_entries: number; }; /** * TaskInstanceHistory serializer for responses. */ export type TaskInstanceHistoryResponse = { - task_id: string; - dag_id: string; - dag_run_id: string; - map_index: number; - start_date: string | null; - end_date: string | null; - duration: number | null; - state: TaskInstanceState | null; - try_number: number; - max_tries: number; - task_display_name: string; - dag_display_name: string; - hostname: string | null; - unixname: string | null; - pool: string; - pool_slots: number; - queue: string | null; - priority_weight: number | null; - operator: string | null; - queued_when: string | null; - scheduled_when: string | null; - pid: number | null; - executor: string | null; - executor_config: string; - dag_version: DagVersionResponse | null; + task_id: string; + dag_id: string; + dag_run_id: string; + map_index: number; + start_date: string | null; + end_date: string | null; + duration: number | null; + state: TaskInstanceState | null; + try_number: number; + max_tries: number; + task_display_name: string; + dag_display_name: string; + hostname: string | null; + unixname: string | null; + pool: string; + pool_slots: number; + queue: string | null; + priority_weight: number | null; + operator: string | null; + queued_when: string | null; + scheduled_when: string | null; + pid: number | null; + executor: string | null; + executor_config: string; + dag_version: DagVersionResponse | null; }; /** * TaskInstance serializer for responses. */ export type TaskInstanceResponse = { - id: string; - task_id: string; - dag_id: string; - dag_version: DagVersionResponse; - dag_run_id: string; - map_index: number; - logical_date: string | null; - run_after: string; - start_date: string | null; - end_date: string | null; - duration: number | null; - state: TaskInstanceState | null; - try_number: number; - max_tries: number; - task_display_name: string; - dag_display_name: string; - hostname: string | null; - unixname: string | null; - pool: string; - pool_slots: number; - queue: string | null; - priority_weight: number | null; - operator: string | null; - queued_when: string | null; - scheduled_when: string | null; - pid: number | null; - executor: string | null; - executor_config: string; - note: string | null; - rendered_map_index: string | null; - rendered_fields?: { - [key: string]: unknown; - }; - trigger: TriggerResponse | null; - triggerer_job: JobResponse | null; + id: string; + task_id: string; + dag_id: string; + dag_run_id: string; + map_index: number; + logical_date: string | null; + run_after: string; + start_date: string | null; + end_date: string | null; + duration: number | null; + state: TaskInstanceState | null; + try_number: number; + max_tries: number; + task_display_name: string; + dag_display_name: string; + hostname: string | null; + unixname: string | null; + pool: string; + pool_slots: number; + queue: string | null; + priority_weight: number | null; + operator: string | null; + queued_when: string | null; + scheduled_when: string | null; + pid: number | null; + executor: string | null; + executor_config: string; + note: string | null; + rendered_map_index: string | null; + rendered_fields?: { + [key: string]: unknown; + }; + trigger: TriggerResponse | null; + triggerer_job: JobResponse | null; + dag_version: DagVersionResponse | null; }; /** @@ -1341,335 +1260,338 @@ export type TaskInstanceResponse = { * * Note that None is also allowed, so always use this in a type hint with Optional. */ -export type TaskInstanceState = 'removed' | 'scheduled' | 'queued' | 'running' | 'success' | 'restarting' | 'failed' | 'up_for_retry' | 'up_for_reschedule' | 'upstream_failed' | 'skipped' | 'deferred'; +export type TaskInstanceState = + | "removed" + | "scheduled" + | "queued" + | "running" + | "success" + | "restarting" + | "failed" + | "up_for_retry" + | "up_for_reschedule" + | "upstream_failed" + | "skipped" + | "deferred"; /** * Task Instance body for get batch. */ export type TaskInstancesBatchBody = { - dag_ids?: Array<(string)> | null; - dag_run_ids?: Array<(string)> | null; - task_ids?: Array<(string)> | null; - state?: Array<(TaskInstanceState | null)> | null; - run_after_gte?: string | null; - run_after_lte?: string | null; - logical_date_gte?: string | null; - logical_date_lte?: string | null; - start_date_gte?: string | null; - start_date_lte?: string | null; - end_date_gte?: string | null; - end_date_lte?: string | null; - duration_gte?: number | null; - duration_lte?: number | null; - pool?: Array<(string)> | null; - queue?: Array<(string)> | null; - executor?: Array<(string)> | null; - page_offset?: number; - page_limit?: number; - order_by?: string | null; + dag_ids?: Array | null; + dag_run_ids?: Array | null; + task_ids?: Array | null; + state?: Array | null; + run_after_gte?: string | null; + run_after_lte?: string | null; + logical_date_gte?: string | null; + logical_date_lte?: string | null; + start_date_gte?: string | null; + start_date_lte?: string | null; + end_date_gte?: string | null; + end_date_lte?: string | null; + duration_gte?: number | null; + duration_lte?: number | null; + pool?: Array | null; + queue?: Array | null; + executor?: Array | null; + page_offset?: number; + page_limit?: number; + order_by?: string | null; }; /** * Log serializer for responses. */ export type TaskInstancesLogResponse = { - content: Array | Array<(string)>; - continuation_token: string | null; + content: Array | Array; + continuation_token: string | null; }; /** * Task outlet reference serializer for assets. */ export type TaskOutletAssetReference = { - dag_id: string; - task_id: string; - created_at: string; - updated_at: string; + dag_id: string; + task_id: string; + created_at: string; + updated_at: string; }; /** * Task serializer for responses. */ export type TaskResponse = { - task_id: string | null; - task_display_name: string | null; - owner: string | null; - start_date: string | null; - end_date: string | null; - trigger_rule: string | null; - depends_on_past: boolean; - wait_for_downstream: boolean; - retries: number | null; - queue: string | null; - pool: string | null; - pool_slots: number | null; - execution_timeout: TimeDelta | null; - retry_delay: TimeDelta | null; - retry_exponential_backoff: boolean; - priority_weight: number | null; - weight_rule: string | null; - ui_color: string | null; - ui_fgcolor: string | null; - template_fields: Array<(string)> | null; - downstream_task_ids: Array<(string)> | null; - doc_md: string | null; - operator_name: string | null; - params: { + task_id: string | null; + task_display_name: string | null; + owner: string | null; + start_date: string | null; + end_date: string | null; + trigger_rule: string | null; + depends_on_past: boolean; + wait_for_downstream: boolean; + retries: number | null; + queue: string | null; + pool: string | null; + pool_slots: number | null; + execution_timeout: TimeDelta | null; + retry_delay: TimeDelta | null; + retry_exponential_backoff: boolean; + priority_weight: number | null; + weight_rule: string | null; + ui_color: string | null; + ui_fgcolor: string | null; + template_fields: Array | null; + downstream_task_ids: Array | null; + doc_md: string | null; + operator_name: string | null; + params: { [key: string]: unknown; -} | null; - class_ref: { + } | null; + class_ref: { [key: string]: unknown; -} | null; - is_mapped: boolean | null; - /** - * Extract and return extra_links. - */ - readonly extra_links: Array<(string)>; + } | null; + is_mapped: boolean | null; + /** + * Extract and return extra_links. + */ + readonly extra_links: Array; }; /** * TimeDelta can be used to interact with datetime.timedelta objects. */ export type TimeDelta = { - __type?: string; - days: number; - seconds: number; - microseconds: number; + __type?: string; + days: number; + seconds: number; + microseconds: number; }; /** * Trigger DAG Run Serializer for POST body. */ export type TriggerDAGRunPostBody = { - dag_run_id?: string | null; - data_interval_start?: string | null; - data_interval_end?: string | null; - logical_date: string | null; - run_after?: string | null; - conf?: { - [key: string]: unknown; - }; - note?: string | null; + dag_run_id?: string | null; + data_interval_start?: string | null; + data_interval_end?: string | null; + logical_date: string | null; + run_after?: string | null; + conf?: { + [key: string]: unknown; + }; + note?: string | null; }; /** * Trigger serializer for responses. */ export type TriggerResponse = { - id: number; - classpath: string; - kwargs: string; - created_date: string; - triggerer_id: number | null; + id: number; + classpath: string; + kwargs: string; + created_date: string; + triggerer_id: number | null; }; /** * Triggerer info serializer for responses. */ export type TriggererInfoResponse = { - status: string | null; - latest_triggerer_heartbeat: string | null; -}; - -/** - * Schema for updating the content of a Human-in-the-loop detail. - */ -export type UpdateHITLDetailPayload = { - chosen_options: Array<(string)>; - params_input?: { - [key: string]: unknown; - }; + status: string | null; + latest_triggerer_heartbeat: string | null; }; export type ValidationError = { - loc: Array<(string | number)>; - msg: string; - type: string; + loc: Array; + msg: string; + type: string; }; /** * Variable serializer for bodies. */ export type VariableBody = { - key: string; - value: JsonValue; - description?: string | null; + key: string; + value: JsonValue; + description?: string | null; }; /** * Variable Collection serializer for responses. */ export type VariableCollectionResponse = { - variables: Array; - total_entries: number; + variables: Array; + total_entries: number; }; /** * Variable serializer for responses. */ export type VariableResponse = { - key: string; - value: string; - description: string | null; - is_encrypted: boolean; + key: string; + value: string; + description: string | null; + is_encrypted: boolean; }; /** * Version information serializer for responses. */ export type VersionInfo = { - version: string; - git_version: string | null; + version: string; + git_version: string | null; }; /** * XCom Collection serializer for responses. */ export type XComCollectionResponse = { - xcom_entries: Array; - total_entries: number; + xcom_entries: Array; + total_entries: number; }; /** * Payload serializer for creating an XCom entry. */ export type XComCreateBody = { - key: string; - value: unknown; - map_index?: number; + key: string; + value: unknown; + map_index?: number; }; /** * Serializer for a xcom item. */ export type XComResponse = { - key: string; - timestamp: string; - logical_date: string | null; - map_index: number; - task_id: string; - dag_id: string; - run_id: string; - dag_display_name: string; + key: string; + timestamp: string; + logical_date: string | null; + map_index: number; + task_id: string; + dag_id: string; + run_id: string; + dag_display_name: string; }; /** * XCom response serializer with native return type. */ export type XComResponseNative = { - key: string; - timestamp: string; - logical_date: string | null; - map_index: number; - task_id: string; - dag_id: string; - run_id: string; - dag_display_name: string; - value: unknown; + key: string; + timestamp: string; + logical_date: string | null; + map_index: number; + task_id: string; + dag_id: string; + run_id: string; + dag_display_name: string; + value: unknown; }; /** * XCom response serializer with string return type. */ export type XComResponseString = { - key: string; - timestamp: string; - logical_date: string | null; - map_index: number; - task_id: string; - dag_id: string; - run_id: string; - dag_display_name: string; - value: string | null; + key: string; + timestamp: string; + logical_date: string | null; + map_index: number; + task_id: string; + dag_id: string; + run_id: string; + dag_display_name: string; + value: string | null; }; /** * Payload serializer for updating an XCom entry. */ export type XComUpdateBody = { - value: unknown; - map_index?: number; + value: unknown; + map_index?: number; }; /** * Base Edge serializer for responses. */ export type BaseEdgeResponse = { - source_id: string; - target_id: string; + source_id: string; + target_id: string; }; /** * Base Graph serializer for responses. */ export type BaseGraphResponse = { - edges: Array; - nodes: Array; + edges: Array; + nodes: Array; }; /** * Base Node serializer for responses. */ export type BaseNodeResponse = { - id: string; - label: string; - type: 'join' | 'task' | 'asset-condition' | 'asset' | 'asset-alias' | 'asset-name-ref' | 'asset-uri-ref' | 'dag' | 'sensor' | 'trigger'; -}; - -export type type = 'join' | 'task' | 'asset-condition' | 'asset' | 'asset-alias' | 'asset-name-ref' | 'asset-uri-ref' | 'dag' | 'sensor' | 'trigger'; - -/** - * Response model for calendar time range results. - */ -export type CalendarTimeRangeCollectionResponse = { - total_entries: number; - dag_runs: Array; -}; - -/** - * Represents a summary of DAG runs for a specific calendar time range. - */ -export type CalendarTimeRangeResponse = { - date: string; - state: 'queued' | 'running' | 'success' | 'failed' | 'planned'; - count: number; -}; - -export type state = 'queued' | 'running' | 'success' | 'failed' | 'planned'; + id: string; + label: string; + type: + | "join" + | "task" + | "asset-condition" + | "asset" + | "asset-alias" + | "asset-name-ref" + | "asset-uri-ref" + | "dag" + | "sensor" + | "trigger"; +}; + +export type type = + | "join" + | "task" + | "asset-condition" + | "asset" + | "asset-alias" + | "asset-name-ref" + | "asset-uri-ref" + | "dag" + | "sensor" + | "trigger"; /** * configuration serializer. */ export type ConfigResponse = { - page_size: number; - auto_refresh_interval: number; - hide_paused_dags_by_default: boolean; - instance_name: string; - enable_swagger_ui: boolean; - require_confirmation_dag_change: boolean; - default_wrap: boolean; - test_connection: string; - dashboard_alert: Array; - show_external_log_redirect: boolean; - external_log_name?: string | null; + page_size: number; + auto_refresh_interval: number; + hide_paused_dags_by_default: boolean; + instance_name: string; + enable_swagger_ui: boolean; + require_confirmation_dag_change: boolean; + default_wrap: boolean; + test_connection: string; + dashboard_alert: Array; + show_external_log_redirect: boolean; + external_log_name?: string | null; }; /** * A class to store the behavior of each standard field of a Hook. */ export type ConnectionHookFieldBehavior = { - /** - * Flag if the form field should be hidden. - */ - hidden?: boolean; - /** - * Label / title for the field that should be displayed, if re-labelling is needed. Use `None` to display standard title. - */ - title?: string | null; - /** - * Placeholder text that should be populated to the form. - */ - placeholder?: string | null; + /** + * Flag if the form field should be hidden. + */ + hidden?: boolean; + /** + * Label / title for the field that should be displayed, if re-labelling is needed. Use `None` to display standard title. + */ + title?: string | null; + /** + * Placeholder text that should be populated to the form. + */ + placeholder?: string | null; }; /** @@ -1679,475 +1601,480 @@ export type ConnectionHookFieldBehavior = { * the API server/Web UI can use this data to render connection form UI. */ export type ConnectionHookMetaData = { - connection_type: string | null; - hook_class_name: string | null; - default_conn_name: string | null; - hook_name: string; - standard_fields: StandardHookFields | null; - extra_fields: { + connection_type: string | null; + hook_class_name: string | null; + default_conn_name: string | null; + hook_name: string; + standard_fields: StandardHookFields | null; + extra_fields: { [key: string]: unknown; -} | null; + } | null; }; /** * DAG Run States for responses. */ export type DAGRunStates = { - queued: number; - running: number; - success: number; - failed: number; + queued: number; + running: number; + success: number; + failed: number; }; /** * DAG Run Types for responses. */ export type DAGRunTypes = { - backfill: number; - scheduled: number; - manual: number; - asset_triggered: number; + backfill: number; + scheduled: number; + manual: number; + asset_triggered: number; }; /** * DAG with latest dag runs collection response serializer. */ export type DAGWithLatestDagRunsCollectionResponse = { - total_entries: number; - dags: Array; + total_entries: number; + dags: Array; }; /** * DAG with latest dag runs response serializer. */ export type DAGWithLatestDagRunsResponse = { - dag_id: string; - dag_display_name: string; - is_paused: boolean; - is_stale: boolean; - last_parsed_time: string | null; - last_expired: string | null; - bundle_name: string | null; - bundle_version: string | null; - relative_fileloc: string | null; - fileloc: string; - description: string | null; - deadline: Array | null; - timetable_summary: string | null; - timetable_description: string | null; - tags: Array; - max_active_tasks: number; - max_active_runs: number | null; - max_consecutive_failed_dag_runs: number; - has_task_concurrency_limits: boolean; - has_import_errors: boolean; - next_dagrun_logical_date: string | null; - next_dagrun_data_interval_start: string | null; - next_dagrun_data_interval_end: string | null; - next_dagrun_run_after: string | null; - owners: Array<(string)>; - asset_expression: { + dag_id: string; + dag_display_name: string; + is_paused: boolean; + is_stale: boolean; + last_parsed_time: string | null; + last_expired: string | null; + bundle_name: string | null; + bundle_version: string | null; + relative_fileloc: string | null; + fileloc: string; + description: string | null; + timetable_summary: string | null; + timetable_description: string | null; + tags: Array; + max_active_tasks: number; + max_active_runs: number | null; + max_consecutive_failed_dag_runs: number; + has_task_concurrency_limits: boolean; + has_import_errors: boolean; + next_dagrun_logical_date: string | null; + next_dagrun_data_interval_start: string | null; + next_dagrun_data_interval_end: string | null; + next_dagrun_run_after: string | null; + owners: Array; + asset_expression: { [key: string]: unknown; -} | null; - latest_dag_runs: Array; - /** - * Return file token. - */ - readonly file_token: string; + } | null; + latest_dag_runs: Array; + /** + * Return file token. + */ + readonly file_token: string; }; /** * Dashboard DAG Stats serializer for responses. */ export type DashboardDagStatsResponse = { - active_dag_count: number; - failed_dag_count: number; - running_dag_count: number; - queued_dag_count: number; + active_dag_count: number; + failed_dag_count: number; + running_dag_count: number; + queued_dag_count: number; }; /** * Edge serializer for responses. */ export type EdgeResponse = { - source_id: string; - target_id: string; - is_setup_teardown?: boolean | null; - label?: string | null; - is_source_asset?: boolean | null; + source_id: string; + target_id: string; + is_setup_teardown?: boolean | null; + label?: string | null; + is_source_asset?: boolean | null; }; export type ExtraMenuItem = { - text: string; - href: string; + text: string; + href: string; }; /** - * Base Node serializer for responses. + * DAG Run model for the Grid UI. */ -export type GridNodeResponse = { - id: string; - label: string; - children?: Array | null; - is_mapped: boolean | null; - setup_teardown_type?: 'setup' | 'teardown' | null; +export type GridDAGRunwithTIs = { + dag_run_id: string; + queued_at: string | null; + start_date: string | null; + end_date: string | null; + run_after: string; + state: DagRunState; + run_type: DagRunType; + logical_date: string | null; + data_interval_start: string | null; + data_interval_end: string | null; + note: string | null; + task_instances: Array; }; /** - * Base Node serializer for responses. + * Response model for the Grid UI. */ -export type GridRunsResponse = { - dag_id: string; - run_id: string; - queued_at: string | null; - start_date: string | null; - end_date: string | null; - run_after: string; - state: TaskInstanceState | null; - run_type: DagRunType; - readonly duration: number; +export type GridResponse = { + dag_runs: Array; + structure: StructureDataResponse; }; /** - * DAG Run model for the Grid UI. + * Task Instance Summary model for the Grid UI. */ -export type GridTISummaries = { - run_id: string; - dag_id: string; - task_instances: Array; +export type GridTaskInstanceSummary = { + task_id: string; + try_number: number; + start_date: string | null; + end_date: string | null; + queued_dttm: string | null; + child_states: { + [key: string]: number; + } | null; + task_count: number; + state: TaskInstanceState | null; + note: string | null; }; /** * Historical Metric Data serializer for responses. */ export type HistoricalMetricDataResponse = { - dag_run_types: DAGRunTypes; - dag_run_states: DAGRunStates; - task_instance_states: TaskInstanceStateCount; -}; - -/** - * Base Node serializer for responses. - */ -export type LatestRunResponse = { - id: number; - dag_id: string; - run_id: string; - run_after: string; -}; - -/** - * Task Instance Summary model for the Grid UI. - */ -export type LightGridTaskInstanceSummary = { - task_id: string; - state: TaskInstanceState | null; - child_states: { - [key: string]: (number); -} | null; - min_start_date: string | null; - max_end_date: string | null; + dag_run_types: DAGRunTypes; + dag_run_states: DAGRunStates; + task_instance_states: TaskInstanceStateCount; }; /** * Define all menu items defined in the menu. */ -export type MenuItem = 'Assets' | 'Audit Log' | 'Config' | 'Connections' | 'Dags' | 'Docs' | 'Plugins' | 'Pools' | 'Providers' | 'Variables' | 'XComs'; +export type MenuItem = + | "Assets" + | "Audit Log" + | "Config" + | "Connections" + | "Dags" + | "Docs" + | "Plugins" + | "Pools" + | "Providers" + | "Variables" + | "XComs"; /** * Menu Item Collection serializer for responses. */ export type MenuItemCollectionResponse = { - authorized_menu_items: Array; - extra_menu_items: Array; + authorized_menu_items: Array; + extra_menu_items: Array; }; /** * Node serializer for responses. */ export type NodeResponse = { - id: string; - label: string; - type: 'join' | 'task' | 'asset-condition' | 'asset' | 'asset-alias' | 'asset-name-ref' | 'asset-uri-ref' | 'dag' | 'sensor' | 'trigger'; - children?: Array | null; - is_mapped?: boolean | null; - tooltip?: string | null; - setup_teardown_type?: 'setup' | 'teardown' | null; - operator?: string | null; - asset_condition_type?: 'or-gate' | 'and-gate' | null; + id: string; + label: string; + type: + | "join" + | "task" + | "asset-condition" + | "asset" + | "asset-alias" + | "asset-name-ref" + | "asset-uri-ref" + | "dag" + | "sensor" + | "trigger"; + children?: Array | null; + is_mapped?: boolean | null; + tooltip?: string | null; + setup_teardown_type?: "setup" | "teardown" | null; + operator?: string | null; + asset_condition_type?: "or-gate" | "and-gate" | null; }; /** * Standard fields of a Hook that a form will render. */ export type StandardHookFields = { - description: ConnectionHookFieldBehavior | null; - url_schema: ConnectionHookFieldBehavior | null; - host: ConnectionHookFieldBehavior | null; - port: ConnectionHookFieldBehavior | null; - login: ConnectionHookFieldBehavior | null; - password: ConnectionHookFieldBehavior | null; + description: ConnectionHookFieldBehavior | null; + url_schema: ConnectionHookFieldBehavior | null; + host: ConnectionHookFieldBehavior | null; + port: ConnectionHookFieldBehavior | null; + login: ConnectionHookFieldBehavior | null; + password: ConnectionHookFieldBehavior | null; }; /** * Structure Data serializer for responses. */ export type StructureDataResponse = { - edges: Array; - nodes: Array; + edges: Array; + nodes: Array; }; /** * TaskInstance serializer for responses. */ export type TaskInstanceStateCount = { - no_status: number; - removed: number; - scheduled: number; - queued: number; - running: number; - success: number; - restarting: number; - failed: number; - up_for_retry: number; - up_for_reschedule: number; - upstream_failed: number; - skipped: number; - deferred: number; + no_status: number; + removed: number; + scheduled: number; + queued: number; + running: number; + success: number; + restarting: number; + failed: number; + up_for_retry: number; + up_for_reschedule: number; + upstream_failed: number; + skipped: number; + deferred: number; }; /** * Optional alert to be shown at the top of the page. */ export type UIAlert = { - text: string; - category: 'info' | 'warning' | 'error'; + text: string; + category: "info" | "warning" | "error"; }; -export type category = 'info' | 'warning' | 'error'; +export type category = "info" | "warning" | "error"; export type GetAssetsData = { - dagIds?: Array<(string)>; - limit?: number; - /** - * SQL LIKE expression — use `%` / `_` wildcards (e.g. `%customer_%`). Regular expressions are **not** supported. - */ - namePattern?: string | null; - offset?: number; - onlyActive?: boolean; - orderBy?: string; - /** - * SQL LIKE expression — use `%` / `_` wildcards (e.g. `%customer_%`). Regular expressions are **not** supported. - */ - uriPattern?: string | null; + dagIds?: Array; + limit?: number; + /** + * SQL LIKE expression — use `%` / `_` wildcards (e.g. `%customer_%`). Regular expressions are **not** supported. + */ + namePattern?: string | null; + offset?: number; + onlyActive?: boolean; + orderBy?: string; + /** + * SQL LIKE expression — use `%` / `_` wildcards (e.g. `%customer_%`). Regular expressions are **not** supported. + */ + uriPattern?: string | null; }; export type GetAssetsResponse = AssetCollectionResponse; export type GetAssetAliasesData = { - limit?: number; - /** - * SQL LIKE expression — use `%` / `_` wildcards (e.g. `%customer_%`). Regular expressions are **not** supported. - */ - namePattern?: string | null; - offset?: number; - orderBy?: string; + limit?: number; + /** + * SQL LIKE expression — use `%` / `_` wildcards (e.g. `%customer_%`). Regular expressions are **not** supported. + */ + namePattern?: string | null; + offset?: number; + orderBy?: string; }; export type GetAssetAliasesResponse = AssetAliasCollectionResponse; export type GetAssetAliasData = { - assetAliasId: number; + assetAliasId: number; }; export type GetAssetAliasResponse = unknown; export type GetAssetEventsData = { - assetId?: number | null; - limit?: number; - offset?: number; - orderBy?: string; - sourceDagId?: string | null; - sourceMapIndex?: number | null; - sourceRunId?: string | null; - sourceTaskId?: string | null; - timestampGte?: string | null; - timestampLte?: string | null; + assetId?: number | null; + limit?: number; + offset?: number; + orderBy?: string; + sourceDagId?: string | null; + sourceMapIndex?: number | null; + sourceRunId?: string | null; + sourceTaskId?: string | null; + timestampGte?: string | null; + timestampLte?: string | null; }; export type GetAssetEventsResponse = AssetEventCollectionResponse; export type CreateAssetEventData = { - requestBody: CreateAssetEventsBody; + requestBody: CreateAssetEventsBody; }; export type CreateAssetEventResponse = AssetEventResponse; export type MaterializeAssetData = { - assetId: number; + assetId: number; }; export type MaterializeAssetResponse = DAGRunResponse; export type GetAssetQueuedEventsData = { - assetId: number; - before?: string | null; + assetId: number; + before?: string | null; }; export type GetAssetQueuedEventsResponse = QueuedEventCollectionResponse; export type DeleteAssetQueuedEventsData = { - assetId: number; - before?: string | null; + assetId: number; + before?: string | null; }; export type DeleteAssetQueuedEventsResponse = void; export type GetAssetData = { - assetId: number; + assetId: number; }; export type GetAssetResponse = AssetResponse; export type GetDagAssetQueuedEventsData = { - before?: string | null; - dagId: string; + before?: string | null; + dagId: string; }; export type GetDagAssetQueuedEventsResponse = QueuedEventCollectionResponse; export type DeleteDagAssetQueuedEventsData = { - before?: string | null; - dagId: string; + before?: string | null; + dagId: string; }; export type DeleteDagAssetQueuedEventsResponse = void; export type GetDagAssetQueuedEventData = { - assetId: number; - before?: string | null; - dagId: string; + assetId: number; + before?: string | null; + dagId: string; }; export type GetDagAssetQueuedEventResponse = QueuedEventResponse; export type DeleteDagAssetQueuedEventData = { - assetId: number; - before?: string | null; - dagId: string; + assetId: number; + before?: string | null; + dagId: string; }; export type DeleteDagAssetQueuedEventResponse = void; export type NextRunAssetsData = { - dagId: string; + dagId: string; }; export type NextRunAssetsResponse = { - [key: string]: unknown; + [key: string]: unknown; }; export type ListBackfillsData = { - dagId: string; - limit?: number; - offset?: number; - orderBy?: string; + dagId: string; + limit?: number; + offset?: number; + orderBy?: string; }; export type ListBackfillsResponse = BackfillCollectionResponse; export type CreateBackfillData = { - requestBody: BackfillPostBody; + requestBody: BackfillPostBody; }; export type CreateBackfillResponse = BackfillResponse; export type GetBackfillData = { - backfillId: number; + backfillId: number; }; export type GetBackfillResponse = BackfillResponse; export type PauseBackfillData = { - backfillId: number; + backfillId: number; }; export type PauseBackfillResponse = BackfillResponse; export type UnpauseBackfillData = { - backfillId: number; + backfillId: number; }; export type UnpauseBackfillResponse = BackfillResponse; export type CancelBackfillData = { - backfillId: number; + backfillId: number; }; export type CancelBackfillResponse = BackfillResponse; export type CreateBackfillDryRunData = { - requestBody: BackfillPostBody; + requestBody: BackfillPostBody; }; export type CreateBackfillDryRunResponse = DryRunBackfillCollectionResponse; export type ListBackfillsUiData = { - active?: boolean | null; - dagId?: string | null; - limit?: number; - offset?: number; - orderBy?: string; + active?: boolean | null; + dagId?: string | null; + limit?: number; + offset?: number; + orderBy?: string; }; export type ListBackfillsUiResponse = BackfillCollectionResponse; export type DeleteConnectionData = { - connectionId: string; + connectionId: string; }; export type DeleteConnectionResponse = void; export type GetConnectionData = { - connectionId: string; + connectionId: string; }; export type GetConnectionResponse = ConnectionResponse; export type PatchConnectionData = { - connectionId: string; - requestBody: ConnectionBody; - updateMask?: Array<(string)> | null; + connectionId: string; + requestBody: ConnectionBody; + updateMask?: Array | null; }; export type PatchConnectionResponse = ConnectionResponse; export type GetConnectionsData = { - /** - * SQL LIKE expression — use `%` / `_` wildcards (e.g. `%customer_%`). Regular expressions are **not** supported. - */ - connectionIdPattern?: string | null; - limit?: number; - offset?: number; - orderBy?: string; + /** + * SQL LIKE expression — use `%` / `_` wildcards (e.g. `%customer_%`). Regular expressions are **not** supported. + */ + connectionIdPattern?: string | null; + limit?: number; + offset?: number; + orderBy?: string; }; export type GetConnectionsResponse = ConnectionCollectionResponse; export type PostConnectionData = { - requestBody: ConnectionBody; + requestBody: ConnectionBody; }; export type PostConnectionResponse = ConnectionResponse; export type BulkConnectionsData = { - requestBody: BulkBody_ConnectionBody_; + requestBody: BulkBody_ConnectionBody_; }; export type BulkConnectionsResponse = BulkResponse; export type TestConnectionData = { - requestBody: ConnectionBody; + requestBody: ConnectionBody; }; export type TestConnectionResponse = ConnectionTestResponse; @@ -2157,128 +2084,109 @@ export type CreateDefaultConnectionsResponse = void; export type HookMetaDataResponse = Array; export type GetDagRunData = { - dagId: string; - dagRunId: string; + dagId: string; + dagRunId: string; }; export type GetDagRunResponse = DAGRunResponse; export type DeleteDagRunData = { - dagId: string; - dagRunId: string; + dagId: string; + dagRunId: string; }; export type DeleteDagRunResponse = void; export type PatchDagRunData = { - dagId: string; - dagRunId: string; - requestBody: DAGRunPatchBody; - updateMask?: Array<(string)> | null; + dagId: string; + dagRunId: string; + requestBody: DAGRunPatchBody; + updateMask?: Array | null; }; export type PatchDagRunResponse = DAGRunResponse; export type GetUpstreamAssetEventsData = { - dagId: string; - dagRunId: string; + dagId: string; + dagRunId: string; }; export type GetUpstreamAssetEventsResponse = AssetEventCollectionResponse; export type ClearDagRunData = { - dagId: string; - dagRunId: string; - requestBody: DAGRunClearBody; + dagId: string; + dagRunId: string; + requestBody: DAGRunClearBody; }; export type ClearDagRunResponse = TaskInstanceCollectionResponse | DAGRunResponse; export type GetDagRunsData = { - dagId: string; - endDateGte?: string | null; - endDateLte?: string | null; - limit?: number; - logicalDateGte?: string | null; - logicalDateLte?: string | null; - offset?: number; - orderBy?: string; - runAfterGte?: string | null; - runAfterLte?: string | null; - /** - * SQL LIKE expression — use `%` / `_` wildcards (e.g. `%customer_%`). Regular expressions are **not** supported. - */ - runIdPattern?: string | null; - runType?: Array<(string)>; - startDateGte?: string | null; - startDateLte?: string | null; - state?: Array<(string)>; - updatedAtGte?: string | null; - updatedAtLte?: string | null; + dagId: string; + endDateGte?: string | null; + endDateLte?: string | null; + limit?: number; + logicalDateGte?: string | null; + logicalDateLte?: string | null; + offset?: number; + orderBy?: string; + runAfterGte?: string | null; + runAfterLte?: string | null; + runType?: Array; + startDateGte?: string | null; + startDateLte?: string | null; + state?: Array; + updatedAtGte?: string | null; + updatedAtLte?: string | null; }; export type GetDagRunsResponse = DAGRunCollectionResponse; export type TriggerDagRunData = { - dagId: unknown; - requestBody: TriggerDAGRunPostBody; + dagId: unknown; + requestBody: TriggerDAGRunPostBody; }; export type TriggerDagRunResponse = DAGRunResponse; -export type WaitDagRunUntilFinishedData = { - dagId: string; - dagRunId: string; - /** - * Seconds to wait between dag run state checks - */ - interval: number; - /** - * Collect result XCom from task. Can be set multiple times. - */ - result?: Array<(string)> | null; -}; - -export type WaitDagRunUntilFinishedResponse = unknown; - export type GetListDagRunsBatchData = { - dagId: "~"; - requestBody: DAGRunsBatchBody; + dagId: "~"; + requestBody: DAGRunsBatchBody; }; export type GetListDagRunsBatchResponse = DAGRunCollectionResponse; export type GetDagSourceData = { - accept?: 'application/json' | 'text/plain' | '*/*'; - dagId: string; - versionNumber?: number | null; + accept?: "application/json" | "text/plain" | "*/*"; + dagId: string; + versionNumber?: number | null; }; export type GetDagSourceResponse = DAGSourceResponse; export type GetDagStatsData = { - dagIds?: Array<(string)>; + dagIds?: Array; }; export type GetDagStatsResponse = DagStatsCollectionResponse; export type GetDagReportsData = { - subdir: string; + subdir: string; }; export type GetDagReportsResponse = unknown; export type GetConfigData = { - accept?: 'application/json' | 'text/plain' | '*/*'; - section?: string | null; + accept?: "application/json" | "text/plain" | "*/*"; + section?: string | null; }; export type GetConfigResponse = Config; export type GetConfigValueData = { - accept?: 'application/json' | 'text/plain' | '*/*'; - option: string; - section: string; + accept?: "application/json" | "text/plain" | "*/*"; + option: string; + section: string; }; export type GetConfigValueResponse = Config; @@ -2286,436 +2194,422 @@ export type GetConfigValueResponse = Config; export type GetConfigsResponse = ConfigResponse; export type ListDagWarningsData = { - dagId?: string | null; - limit?: number; - offset?: number; - orderBy?: string; - warningType?: DagWarningType | null; + dagId?: string | null; + limit?: number; + offset?: number; + orderBy?: string; + warningType?: DagWarningType | null; }; export type ListDagWarningsResponse = DAGWarningCollectionResponse; export type GetDagsData = { - /** - * SQL LIKE expression — use `%` / `_` wildcards (e.g. `%customer_%`). Regular expressions are **not** supported. - */ - dagDisplayNamePattern?: string | null; - /** - * SQL LIKE expression — use `%` / `_` wildcards (e.g. `%customer_%`). Regular expressions are **not** supported. - */ - dagIdPattern?: string | null; - dagRunEndDateGte?: string | null; - dagRunEndDateLte?: string | null; - dagRunStartDateGte?: string | null; - dagRunStartDateLte?: string | null; - dagRunState?: Array<(string)>; - excludeStale?: boolean; - isFavorite?: boolean | null; - lastDagRunState?: DagRunState | null; - limit?: number; - offset?: number; - orderBy?: string; - owners?: Array<(string)>; - paused?: boolean | null; - tags?: Array<(string)>; - tagsMatchMode?: 'any' | 'all' | null; + /** + * SQL LIKE expression — use `%` / `_` wildcards (e.g. `%customer_%`). Regular expressions are **not** supported. + */ + dagDisplayNamePattern?: string | null; + /** + * SQL LIKE expression — use `%` / `_` wildcards (e.g. `%customer_%`). Regular expressions are **not** supported. + */ + dagIdPattern?: string | null; + dagRunEndDateGte?: string | null; + dagRunEndDateLte?: string | null; + dagRunStartDateGte?: string | null; + dagRunStartDateLte?: string | null; + dagRunState?: Array; + excludeStale?: boolean; + lastDagRunState?: DagRunState | null; + limit?: number; + offset?: number; + orderBy?: string; + owners?: Array; + paused?: boolean | null; + tags?: Array; + tagsMatchMode?: "any" | "all" | null; }; export type GetDagsResponse = DAGCollectionResponse; export type PatchDagsData = { - /** - * SQL LIKE expression — use `%` / `_` wildcards (e.g. `%customer_%`). Regular expressions are **not** supported. - */ - dagIdPattern?: string | null; - excludeStale?: boolean; - limit?: number; - offset?: number; - owners?: Array<(string)>; - paused?: boolean | null; - requestBody: DAGPatchBody; - tags?: Array<(string)>; - tagsMatchMode?: 'any' | 'all' | null; - updateMask?: Array<(string)> | null; + /** + * SQL LIKE expression — use `%` / `_` wildcards (e.g. `%customer_%`). Regular expressions are **not** supported. + */ + dagIdPattern?: string | null; + excludeStale?: boolean; + limit?: number; + offset?: number; + owners?: Array; + paused?: boolean | null; + requestBody: DAGPatchBody; + tags?: Array; + tagsMatchMode?: "any" | "all" | null; + updateMask?: Array | null; }; export type PatchDagsResponse = DAGCollectionResponse; export type GetDagData = { - dagId: string; + dagId: string; }; export type GetDagResponse = DAGResponse; export type PatchDagData = { - dagId: string; - requestBody: DAGPatchBody; - updateMask?: Array<(string)> | null; + dagId: string; + requestBody: DAGPatchBody; + updateMask?: Array | null; }; export type PatchDagResponse = DAGResponse; export type DeleteDagData = { - dagId: string; + dagId: string; }; export type DeleteDagResponse = unknown; export type GetDagDetailsData = { - dagId: string; + dagId: string; }; export type GetDagDetailsResponse = DAGDetailsResponse; -export type FavoriteDagData = { - dagId: string; -}; - -export type FavoriteDagResponse = void; - -export type UnfavoriteDagData = { - dagId: string; -}; - -export type UnfavoriteDagResponse = void; - export type GetDagTagsData = { - limit?: number; - offset?: number; - orderBy?: string; - /** - * SQL LIKE expression — use `%` / `_` wildcards (e.g. `%customer_%`). Regular expressions are **not** supported. - */ - tagNamePattern?: string | null; + limit?: number; + offset?: number; + orderBy?: string; + /** + * SQL LIKE expression — use `%` / `_` wildcards (e.g. `%customer_%`). Regular expressions are **not** supported. + */ + tagNamePattern?: string | null; }; export type GetDagTagsResponse = DAGTagCollectionResponse; export type GetDagsUiData = { - /** - * SQL LIKE expression — use `%` / `_` wildcards (e.g. `%customer_%`). Regular expressions are **not** supported. - */ - dagDisplayNamePattern?: string | null; - /** - * SQL LIKE expression — use `%` / `_` wildcards (e.g. `%customer_%`). Regular expressions are **not** supported. - */ - dagIdPattern?: string | null; - dagIds?: Array<(string)> | null; - dagRunsLimit?: number; - excludeStale?: boolean; - isFavorite?: boolean | null; - lastDagRunState?: DagRunState | null; - limit?: number; - offset?: number; - orderBy?: string; - owners?: Array<(string)>; - paused?: boolean | null; - tags?: Array<(string)>; - tagsMatchMode?: 'any' | 'all' | null; + /** + * SQL LIKE expression — use `%` / `_` wildcards (e.g. `%customer_%`). Regular expressions are **not** supported. + */ + dagDisplayNamePattern?: string | null; + /** + * SQL LIKE expression — use `%` / `_` wildcards (e.g. `%customer_%`). Regular expressions are **not** supported. + */ + dagIdPattern?: string | null; + dagIds?: Array | null; + dagRunsLimit?: number; + excludeStale?: boolean; + lastDagRunState?: DagRunState | null; + limit?: number; + offset?: number; + orderBy?: string; + owners?: Array; + paused?: boolean | null; + tags?: Array; + tagsMatchMode?: "any" | "all" | null; }; export type GetDagsUiResponse = DAGWithLatestDagRunsCollectionResponse; export type GetEventLogData = { - eventLogId: number; + eventLogId: number; }; export type GetEventLogResponse = EventLogResponse; export type GetEventLogsData = { - after?: string | null; - before?: string | null; - dagId?: string | null; - event?: string | null; - excludedEvents?: Array<(string)> | null; - includedEvents?: Array<(string)> | null; - limit?: number; - mapIndex?: number | null; - offset?: number; - orderBy?: string; - owner?: string | null; - runId?: string | null; - taskId?: string | null; - tryNumber?: number | null; + after?: string | null; + before?: string | null; + dagId?: string | null; + event?: string | null; + excludedEvents?: Array | null; + includedEvents?: Array | null; + limit?: number; + mapIndex?: number | null; + offset?: number; + orderBy?: string; + owner?: string | null; + runId?: string | null; + taskId?: string | null; + tryNumber?: number | null; }; export type GetEventLogsResponse = EventLogCollectionResponse; export type GetExtraLinksData = { - dagId: string; - dagRunId: string; - mapIndex?: number; - taskId: string; + dagId: string; + dagRunId: string; + mapIndex?: number; + taskId: string; }; export type GetExtraLinksResponse = ExtraLinkCollectionResponse; export type GetTaskInstanceData = { - dagId: string; - dagRunId: string; - taskId: string; + dagId: string; + dagRunId: string; + taskId: string; }; export type GetTaskInstanceResponse = TaskInstanceResponse; export type PatchTaskInstanceData = { - dagId: string; - dagRunId: string; - mapIndex?: number | null; - requestBody: PatchTaskInstanceBody; - taskId: string; - updateMask?: Array<(string)> | null; + dagId: string; + dagRunId: string; + mapIndex?: number | null; + requestBody: PatchTaskInstanceBody; + taskId: string; + updateMask?: Array | null; }; export type PatchTaskInstanceResponse = TaskInstanceCollectionResponse; export type DeleteTaskInstanceData = { - dagId: string; - dagRunId: string; - mapIndex?: number; - taskId: string; + dagId: string; + dagRunId: string; + mapIndex?: number; + taskId: string; }; export type DeleteTaskInstanceResponse = null; export type GetMappedTaskInstancesData = { - dagId: string; - dagRunId: string; - durationGte?: number | null; - durationLte?: number | null; - endDateGte?: string | null; - endDateLte?: string | null; - executor?: Array<(string)>; - limit?: number; - logicalDateGte?: string | null; - logicalDateLte?: string | null; - offset?: number; - orderBy?: string; - pool?: Array<(string)>; - queue?: Array<(string)>; - runAfterGte?: string | null; - runAfterLte?: string | null; - startDateGte?: string | null; - startDateLte?: string | null; - state?: Array<(string)>; - taskId: string; - updatedAtGte?: string | null; - updatedAtLte?: string | null; - versionNumber?: Array<(number)>; + dagId: string; + dagRunId: string; + durationGte?: number | null; + durationLte?: number | null; + endDateGte?: string | null; + endDateLte?: string | null; + executor?: Array; + limit?: number; + logicalDateGte?: string | null; + logicalDateLte?: string | null; + offset?: number; + orderBy?: string; + pool?: Array; + queue?: Array; + runAfterGte?: string | null; + runAfterLte?: string | null; + startDateGte?: string | null; + startDateLte?: string | null; + state?: Array; + taskId: string; + updatedAtGte?: string | null; + updatedAtLte?: string | null; + versionNumber?: Array; }; export type GetMappedTaskInstancesResponse = TaskInstanceCollectionResponse; export type GetTaskInstanceDependenciesByMapIndexData = { - dagId: string; - dagRunId: string; - mapIndex: number; - taskId: string; + dagId: string; + dagRunId: string; + mapIndex: number; + taskId: string; }; export type GetTaskInstanceDependenciesByMapIndexResponse = TaskDependencyCollectionResponse; export type GetTaskInstanceDependenciesData = { - dagId: string; - dagRunId: string; - mapIndex?: number; - taskId: string; + dagId: string; + dagRunId: string; + mapIndex?: number; + taskId: string; }; export type GetTaskInstanceDependenciesResponse = TaskDependencyCollectionResponse; export type GetTaskInstanceTriesData = { - dagId: string; - dagRunId: string; - mapIndex?: number; - taskId: string; + dagId: string; + dagRunId: string; + mapIndex?: number; + taskId: string; }; export type GetTaskInstanceTriesResponse = TaskInstanceHistoryCollectionResponse; export type GetMappedTaskInstanceTriesData = { - dagId: string; - dagRunId: string; - mapIndex: number; - taskId: string; + dagId: string; + dagRunId: string; + mapIndex: number; + taskId: string; }; export type GetMappedTaskInstanceTriesResponse = TaskInstanceHistoryCollectionResponse; export type GetMappedTaskInstanceData = { - dagId: string; - dagRunId: string; - mapIndex: number; - taskId: string; + dagId: string; + dagRunId: string; + mapIndex: number; + taskId: string; }; export type GetMappedTaskInstanceResponse = TaskInstanceResponse; export type PatchTaskInstanceByMapIndexData = { - dagId: string; - dagRunId: string; - mapIndex: number | null; - requestBody: PatchTaskInstanceBody; - taskId: string; - updateMask?: Array<(string)> | null; + dagId: string; + dagRunId: string; + mapIndex: number | null; + requestBody: PatchTaskInstanceBody; + taskId: string; + updateMask?: Array | null; }; export type PatchTaskInstanceByMapIndexResponse = TaskInstanceCollectionResponse; export type GetTaskInstancesData = { - dagId: string; - dagRunId: string; - durationGte?: number | null; - durationLte?: number | null; - endDateGte?: string | null; - endDateLte?: string | null; - executor?: Array<(string)>; - limit?: number; - logicalDateGte?: string | null; - logicalDateLte?: string | null; - offset?: number; - orderBy?: string; - pool?: Array<(string)>; - queue?: Array<(string)>; - runAfterGte?: string | null; - runAfterLte?: string | null; - startDateGte?: string | null; - startDateLte?: string | null; - state?: Array<(string)>; - /** - * SQL LIKE expression — use `%` / `_` wildcards (e.g. `%customer_%`). Regular expressions are **not** supported. - */ - taskDisplayNamePattern?: string | null; - taskId?: string | null; - updatedAtGte?: string | null; - updatedAtLte?: string | null; - versionNumber?: Array<(number)>; + dagId: string; + dagRunId: string; + durationGte?: number | null; + durationLte?: number | null; + endDateGte?: string | null; + endDateLte?: string | null; + executor?: Array; + limit?: number; + logicalDateGte?: string | null; + logicalDateLte?: string | null; + offset?: number; + orderBy?: string; + pool?: Array; + queue?: Array; + runAfterGte?: string | null; + runAfterLte?: string | null; + startDateGte?: string | null; + startDateLte?: string | null; + state?: Array; + /** + * SQL LIKE expression — use `%` / `_` wildcards (e.g. `%customer_%`). Regular expressions are **not** supported. + */ + taskDisplayNamePattern?: string | null; + taskId?: string | null; + updatedAtGte?: string | null; + updatedAtLte?: string | null; + versionNumber?: Array; }; export type GetTaskInstancesResponse = TaskInstanceCollectionResponse; export type BulkTaskInstancesData = { - dagId: string; - dagRunId: string; - requestBody: BulkBody_BulkTaskInstanceBody_; + dagId: string; + dagRunId: string; + requestBody: BulkBody_BulkTaskInstanceBody_; }; export type BulkTaskInstancesResponse = BulkResponse; export type GetTaskInstancesBatchData = { - dagId: "~"; - dagRunId: "~"; - requestBody: TaskInstancesBatchBody; + dagId: "~"; + dagRunId: "~"; + requestBody: TaskInstancesBatchBody; }; export type GetTaskInstancesBatchResponse = TaskInstanceCollectionResponse; export type GetTaskInstanceTryDetailsData = { - dagId: string; - dagRunId: string; - mapIndex?: number; - taskId: string; - taskTryNumber: number; + dagId: string; + dagRunId: string; + mapIndex?: number; + taskId: string; + taskTryNumber: number; }; export type GetTaskInstanceTryDetailsResponse = TaskInstanceHistoryResponse; export type GetMappedTaskInstanceTryDetailsData = { - dagId: string; - dagRunId: string; - mapIndex: number; - taskId: string; - taskTryNumber: number; + dagId: string; + dagRunId: string; + mapIndex: number; + taskId: string; + taskTryNumber: number; }; export type GetMappedTaskInstanceTryDetailsResponse = TaskInstanceHistoryResponse; export type PostClearTaskInstancesData = { - dagId: string; - requestBody: ClearTaskInstancesBody; + dagId: string; + requestBody: ClearTaskInstancesBody; }; export type PostClearTaskInstancesResponse = TaskInstanceCollectionResponse; export type PatchTaskInstanceDryRunByMapIndexData = { - dagId: string; - dagRunId: string; - mapIndex: number | null; - requestBody: PatchTaskInstanceBody; - taskId: string; - updateMask?: Array<(string)> | null; + dagId: string; + dagRunId: string; + mapIndex: number | null; + requestBody: PatchTaskInstanceBody; + taskId: string; + updateMask?: Array | null; }; export type PatchTaskInstanceDryRunByMapIndexResponse = TaskInstanceCollectionResponse; export type PatchTaskInstanceDryRunData = { - dagId: string; - dagRunId: string; - mapIndex?: number | null; - requestBody: PatchTaskInstanceBody; - taskId: string; - updateMask?: Array<(string)> | null; + dagId: string; + dagRunId: string; + mapIndex?: number | null; + requestBody: PatchTaskInstanceBody; + taskId: string; + updateMask?: Array | null; }; export type PatchTaskInstanceDryRunResponse = TaskInstanceCollectionResponse; export type GetLogData = { - accept?: 'application/json' | 'application/x-ndjson' | '*/*'; - dagId: string; - dagRunId: string; - fullContent?: boolean; - mapIndex?: number; - taskId: string; - token?: string | null; - tryNumber: number; + accept?: "application/json" | "application/x-ndjson" | "*/*"; + dagId: string; + dagRunId: string; + fullContent?: boolean; + mapIndex?: number; + taskId: string; + token?: string | null; + tryNumber: number; }; export type GetLogResponse = TaskInstancesLogResponse; export type GetExternalLogUrlData = { - dagId: string; - dagRunId: string; - mapIndex?: number; - taskId: string; - tryNumber: number; + dagId: string; + dagRunId: string; + mapIndex?: number; + taskId: string; + tryNumber: number; }; export type GetExternalLogUrlResponse = ExternalLogUrlResponse; export type GetImportErrorData = { - importErrorId: number; + importErrorId: number; }; export type GetImportErrorResponse = ImportErrorResponse; export type GetImportErrorsData = { - limit?: number; - offset?: number; - orderBy?: string; + limit?: number; + offset?: number; + orderBy?: string; }; export type GetImportErrorsResponse = ImportErrorCollectionResponse; export type GetJobsData = { - endDateGte?: string | null; - endDateLte?: string | null; - executorClass?: string | null; - hostname?: string | null; - isAlive?: boolean | null; - jobState?: string | null; - jobType?: string | null; - limit?: number; - offset?: number; - orderBy?: string; - startDateGte?: string | null; - startDateLte?: string | null; + endDateGte?: string | null; + endDateLte?: string | null; + executorClass?: string | null; + hostname?: string | null; + isAlive?: boolean | null; + jobState?: string | null; + jobType?: string | null; + limit?: number; + offset?: number; + orderBy?: string; + startDateGte?: string | null; + startDateLte?: string | null; }; export type GetJobsResponse = JobCollectionResponse; export type GetPluginsData = { - limit?: number; - offset?: number; + limit?: number; + offset?: number; }; export type GetPluginsResponse = PluginCollectionResponse; @@ -2723,232 +2617,194 @@ export type GetPluginsResponse = PluginCollectionResponse; export type ImportErrorsResponse = PluginImportErrorCollectionResponse; export type DeletePoolData = { - poolName: string; + poolName: string; }; export type DeletePoolResponse = void; export type GetPoolData = { - poolName: string; + poolName: string; }; export type GetPoolResponse = PoolResponse; export type PatchPoolData = { - poolName: string; - requestBody: PoolPatchBody; - updateMask?: Array<(string)> | null; + poolName: string; + requestBody: PoolPatchBody; + updateMask?: Array | null; }; export type PatchPoolResponse = PoolResponse; export type GetPoolsData = { - limit?: number; - offset?: number; - orderBy?: string; - /** - * SQL LIKE expression — use `%` / `_` wildcards (e.g. `%customer_%`). Regular expressions are **not** supported. - */ - poolNamePattern?: string | null; + limit?: number; + offset?: number; + orderBy?: string; + /** + * SQL LIKE expression — use `%` / `_` wildcards (e.g. `%customer_%`). Regular expressions are **not** supported. + */ + poolNamePattern?: string | null; }; export type GetPoolsResponse = PoolCollectionResponse; export type PostPoolData = { - requestBody: PoolBody; + requestBody: PoolBody; }; export type PostPoolResponse = PoolResponse; export type BulkPoolsData = { - requestBody: BulkBody_PoolBody_; + requestBody: BulkBody_PoolBody_; }; export type BulkPoolsResponse = BulkResponse; export type GetProvidersData = { - limit?: number; - offset?: number; + limit?: number; + offset?: number; }; export type GetProvidersResponse = ProviderCollectionResponse; export type GetXcomEntryData = { - dagId: string; - dagRunId: string; - deserialize?: boolean; - mapIndex?: number; - stringify?: boolean; - taskId: string; - xcomKey: string; + dagId: string; + dagRunId: string; + deserialize?: boolean; + mapIndex?: number; + stringify?: boolean; + taskId: string; + xcomKey: string; }; export type GetXcomEntryResponse = XComResponseNative | XComResponseString; export type UpdateXcomEntryData = { - dagId: string; - dagRunId: string; - requestBody: XComUpdateBody; - taskId: string; - xcomKey: string; + dagId: string; + dagRunId: string; + requestBody: XComUpdateBody; + taskId: string; + xcomKey: string; }; export type UpdateXcomEntryResponse = XComResponseNative; export type GetXcomEntriesData = { - dagId: string; - dagRunId: string; - limit?: number; - mapIndex?: number | null; - offset?: number; - taskId: string; - xcomKey?: string | null; + dagId: string; + dagRunId: string; + limit?: number; + mapIndex?: number | null; + offset?: number; + taskId: string; + xcomKey?: string | null; }; export type GetXcomEntriesResponse = XComCollectionResponse; export type CreateXcomEntryData = { - dagId: string; - dagRunId: string; - requestBody: XComCreateBody; - taskId: string; + dagId: string; + dagRunId: string; + requestBody: XComCreateBody; + taskId: string; }; export type CreateXcomEntryResponse = XComResponseNative; export type GetTasksData = { - dagId: string; - orderBy?: string; + dagId: string; + orderBy?: string; }; export type GetTasksResponse = TaskCollectionResponse; export type GetTaskData = { - dagId: string; - taskId: unknown; + dagId: string; + taskId: unknown; }; export type GetTaskResponse = TaskResponse; export type DeleteVariableData = { - variableKey: string; + variableKey: string; }; export type DeleteVariableResponse = void; export type GetVariableData = { - variableKey: string; + variableKey: string; }; export type GetVariableResponse = VariableResponse; export type PatchVariableData = { - requestBody: VariableBody; - updateMask?: Array<(string)> | null; - variableKey: string; + requestBody: VariableBody; + updateMask?: Array | null; + variableKey: string; }; export type PatchVariableResponse = VariableResponse; export type GetVariablesData = { - limit?: number; - offset?: number; - orderBy?: string; - /** - * SQL LIKE expression — use `%` / `_` wildcards (e.g. `%customer_%`). Regular expressions are **not** supported. - */ - variableKeyPattern?: string | null; + limit?: number; + offset?: number; + orderBy?: string; + /** + * SQL LIKE expression — use `%` / `_` wildcards (e.g. `%customer_%`). Regular expressions are **not** supported. + */ + variableKeyPattern?: string | null; }; export type GetVariablesResponse = VariableCollectionResponse; export type PostVariableData = { - requestBody: VariableBody; + requestBody: VariableBody; }; export type PostVariableResponse = VariableResponse; export type BulkVariablesData = { - requestBody: BulkBody_VariableBody_; + requestBody: BulkBody_VariableBody_; }; export type BulkVariablesResponse = BulkResponse; export type ReparseDagFileData = { - fileToken: string; + fileToken: string; }; export type ReparseDagFileResponse = null; export type GetDagVersionData = { - dagId: string; - versionNumber: number; + dagId: string; + versionNumber: number; }; export type GetDagVersionResponse = DagVersionResponse; export type GetDagVersionsData = { - bundleName?: string; - bundleVersion?: string | null; - dagId: string; - limit?: number; - offset?: number; - orderBy?: string; - versionNumber?: number; + bundleName?: string; + bundleVersion?: string | null; + dagId: string; + limit?: number; + offset?: number; + orderBy?: string; + versionNumber?: number; }; export type GetDagVersionsResponse = DAGVersionCollectionResponse; -export type UpdateHitlDetailData = { - dagId: string; - dagRunId: string; - requestBody: UpdateHITLDetailPayload; - taskId: string; -}; - -export type UpdateHitlDetailResponse = HITLDetailResponse; - -export type GetHitlDetailData = { - dagId: string; - dagRunId: string; - taskId: string; -}; - -export type GetHitlDetailResponse = HITLDetail; - -export type UpdateMappedTiHitlDetailData = { - dagId: string; - dagRunId: string; - mapIndex: number; - requestBody: UpdateHITLDetailPayload; - taskId: string; -}; - -export type UpdateMappedTiHitlDetailResponse = HITLDetailResponse; - -export type GetMappedTiHitlDetailData = { - dagId: string; - dagRunId: string; - mapIndex: number; - taskId: string; -}; - -export type GetMappedTiHitlDetailResponse = HITLDetail; - -export type GetHitlDetailsResponse = HITLDetailCollection; - export type GetHealthResponse = HealthInfoResponse; export type GetVersionResponse = VersionInfo; export type LoginData = { - next?: string | null; + next?: string | null; }; export type LoginResponse = unknown; export type LogoutData = { - next?: string | null; + next?: string | null; }; export type LogoutResponse = unknown; @@ -2956,14 +2812,14 @@ export type LogoutResponse = unknown; export type GetAuthMenusResponse = MenuItemCollectionResponse; export type GetDependenciesData = { - nodeId?: string | null; + nodeId?: string | null; }; export type GetDependenciesResponse = BaseGraphResponse; export type HistoricalMetricsData = { - endDate?: string | null; - startDate: string; + endDate?: string | null; + startDate: string; }; export type HistoricalMetricsResponse = HistoricalMetricDataResponse; @@ -2971,3288 +2827,2963 @@ export type HistoricalMetricsResponse = HistoricalMetricDataResponse; export type DagStatsResponse2 = DashboardDagStatsResponse; export type StructureDataData = { - dagId: string; - externalDependencies?: boolean; - includeDownstream?: boolean; - includeUpstream?: boolean; - root?: string | null; - versionNumber?: number | null; + dagId: string; + externalDependencies?: boolean; + includeDownstream?: boolean; + includeUpstream?: boolean; + root?: string | null; + versionNumber?: number | null; }; export type StructureDataResponse2 = StructureDataResponse; -export type GetDagStructureData = { - dagId: string; - limit?: number; - offset?: number; - orderBy?: string; - runAfterGte?: string | null; - runAfterLte?: string | null; -}; - -export type GetDagStructureResponse = Array; - -export type GetGridRunsData = { - dagId: string; - limit?: number; - offset?: number; - orderBy?: string; - runAfterGte?: string | null; - runAfterLte?: string | null; +export type GridDataData = { + dagId: string; + includeDownstream?: boolean; + includeUpstream?: boolean; + limit?: number; + logicalDateGte?: string | null; + logicalDateLte?: string | null; + offset?: number; + orderBy?: string; + root?: string | null; + runAfterGte?: string | null; + runAfterLte?: string | null; + runType?: Array; + state?: Array; }; -export type GetGridRunsResponse = Array; - -export type GetGridTiSummariesData = { - dagId: string; - runId: string; -}; - -export type GetGridTiSummariesResponse = GridTISummaries; - -export type GetLatestRunData = { - dagId: string; -}; - -export type GetLatestRunResponse = LatestRunResponse | null; - -export type GetCalendarData = { - dagId: string; - granularity?: 'hourly' | 'daily'; - logicalDateGte?: string | null; - logicalDateLte?: string | null; -}; - -export type GetCalendarResponse = CalendarTimeRangeCollectionResponse; +export type GridDataResponse = GridResponse; export type $OpenApiTs = { - '/api/v2/assets': { - get: { - req: GetAssetsData; - res: { - /** - * Successful Response - */ - 200: AssetCollectionResponse; - /** - * Unauthorized - */ - 401: HTTPExceptionResponse; - /** - * Forbidden - */ - 403: HTTPExceptionResponse; - /** - * Not Found - */ - 404: HTTPExceptionResponse; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; + "/api/v2/assets": { + get: { + req: GetAssetsData; + res: { + /** + * Successful Response + */ + 200: AssetCollectionResponse; + /** + * Unauthorized + */ + 401: HTTPExceptionResponse; + /** + * Forbidden + */ + 403: HTTPExceptionResponse; + /** + * Not Found + */ + 404: HTTPExceptionResponse; + /** + * Validation Error + */ + 422: HTTPValidationError; + }; }; - '/api/v2/assets/aliases': { - get: { - req: GetAssetAliasesData; - res: { - /** - * Successful Response - */ - 200: AssetAliasCollectionResponse; - /** - * Unauthorized - */ - 401: HTTPExceptionResponse; - /** - * Forbidden - */ - 403: HTTPExceptionResponse; - /** - * Not Found - */ - 404: HTTPExceptionResponse; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; + }; + "/api/v2/assets/aliases": { + get: { + req: GetAssetAliasesData; + res: { + /** + * Successful Response + */ + 200: AssetAliasCollectionResponse; + /** + * Unauthorized + */ + 401: HTTPExceptionResponse; + /** + * Forbidden + */ + 403: HTTPExceptionResponse; + /** + * Not Found + */ + 404: HTTPExceptionResponse; + /** + * Validation Error + */ + 422: HTTPValidationError; + }; }; - '/api/v2/assets/aliases/{asset_alias_id}': { - get: { - req: GetAssetAliasData; - res: { - /** - * Successful Response - */ - 200: unknown; - /** - * Unauthorized - */ - 401: HTTPExceptionResponse; - /** - * Forbidden - */ - 403: HTTPExceptionResponse; - /** - * Not Found - */ - 404: HTTPExceptionResponse; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; + }; + "/api/v2/assets/aliases/{asset_alias_id}": { + get: { + req: GetAssetAliasData; + res: { + /** + * Successful Response + */ + 200: unknown; + /** + * Unauthorized + */ + 401: HTTPExceptionResponse; + /** + * Forbidden + */ + 403: HTTPExceptionResponse; + /** + * Not Found + */ + 404: HTTPExceptionResponse; + /** + * Validation Error + */ + 422: HTTPValidationError; + }; }; - '/api/v2/assets/events': { - get: { - req: GetAssetEventsData; - res: { - /** - * Successful Response - */ - 200: AssetEventCollectionResponse; - /** - * Unauthorized - */ - 401: HTTPExceptionResponse; - /** - * Forbidden - */ - 403: HTTPExceptionResponse; - /** - * Not Found - */ - 404: HTTPExceptionResponse; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; - post: { - req: CreateAssetEventData; - res: { - /** - * Successful Response - */ - 200: AssetEventResponse; - /** - * Unauthorized - */ - 401: HTTPExceptionResponse; - /** - * Forbidden - */ - 403: HTTPExceptionResponse; - /** - * Not Found - */ - 404: HTTPExceptionResponse; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; + }; + "/api/v2/assets/events": { + get: { + req: GetAssetEventsData; + res: { + /** + * Successful Response + */ + 200: AssetEventCollectionResponse; + /** + * Unauthorized + */ + 401: HTTPExceptionResponse; + /** + * Forbidden + */ + 403: HTTPExceptionResponse; + /** + * Not Found + */ + 404: HTTPExceptionResponse; + /** + * Validation Error + */ + 422: HTTPValidationError; + }; }; - '/api/v2/assets/{asset_id}/materialize': { - post: { - req: MaterializeAssetData; - res: { - /** - * Successful Response - */ - 200: DAGRunResponse; - /** - * Unauthorized - */ - 401: HTTPExceptionResponse; - /** - * Forbidden - */ - 403: HTTPExceptionResponse; - /** - * Not Found - */ - 404: HTTPExceptionResponse; - /** - * Conflict - */ - 409: HTTPExceptionResponse; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; + post: { + req: CreateAssetEventData; + res: { + /** + * Successful Response + */ + 200: AssetEventResponse; + /** + * Unauthorized + */ + 401: HTTPExceptionResponse; + /** + * Forbidden + */ + 403: HTTPExceptionResponse; + /** + * Not Found + */ + 404: HTTPExceptionResponse; + /** + * Validation Error + */ + 422: HTTPValidationError; + }; }; - '/api/v2/assets/{asset_id}/queuedEvents': { - get: { - req: GetAssetQueuedEventsData; - res: { - /** - * Successful Response - */ - 200: QueuedEventCollectionResponse; - /** - * Unauthorized - */ - 401: HTTPExceptionResponse; - /** - * Forbidden - */ - 403: HTTPExceptionResponse; - /** - * Not Found - */ - 404: HTTPExceptionResponse; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; - delete: { - req: DeleteAssetQueuedEventsData; - res: { - /** - * Successful Response - */ - 204: void; - /** - * Unauthorized - */ - 401: HTTPExceptionResponse; - /** - * Forbidden - */ - 403: HTTPExceptionResponse; - /** - * Not Found - */ - 404: HTTPExceptionResponse; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; + }; + "/api/v2/assets/{asset_id}/materialize": { + post: { + req: MaterializeAssetData; + res: { + /** + * Successful Response + */ + 200: DAGRunResponse; + /** + * Unauthorized + */ + 401: HTTPExceptionResponse; + /** + * Forbidden + */ + 403: HTTPExceptionResponse; + /** + * Not Found + */ + 404: HTTPExceptionResponse; + /** + * Conflict + */ + 409: HTTPExceptionResponse; + /** + * Validation Error + */ + 422: HTTPValidationError; + }; }; - '/api/v2/assets/{asset_id}': { - get: { - req: GetAssetData; - res: { - /** - * Successful Response - */ - 200: AssetResponse; - /** - * Unauthorized - */ - 401: HTTPExceptionResponse; - /** - * Forbidden - */ - 403: HTTPExceptionResponse; - /** - * Not Found - */ - 404: HTTPExceptionResponse; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; + }; + "/api/v2/assets/{asset_id}/queuedEvents": { + get: { + req: GetAssetQueuedEventsData; + res: { + /** + * Successful Response + */ + 200: QueuedEventCollectionResponse; + /** + * Unauthorized + */ + 401: HTTPExceptionResponse; + /** + * Forbidden + */ + 403: HTTPExceptionResponse; + /** + * Not Found + */ + 404: HTTPExceptionResponse; + /** + * Validation Error + */ + 422: HTTPValidationError; + }; }; - '/api/v2/dags/{dag_id}/assets/queuedEvents': { - get: { - req: GetDagAssetQueuedEventsData; - res: { - /** - * Successful Response - */ - 200: QueuedEventCollectionResponse; - /** - * Unauthorized - */ - 401: HTTPExceptionResponse; - /** - * Forbidden - */ - 403: HTTPExceptionResponse; - /** - * Not Found - */ - 404: HTTPExceptionResponse; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; - delete: { - req: DeleteDagAssetQueuedEventsData; - res: { - /** - * Successful Response - */ - 204: void; - /** - * Bad Request - */ - 400: HTTPExceptionResponse; - /** - * Unauthorized - */ - 401: HTTPExceptionResponse; - /** - * Forbidden - */ - 403: HTTPExceptionResponse; - /** - * Not Found - */ - 404: HTTPExceptionResponse; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; + delete: { + req: DeleteAssetQueuedEventsData; + res: { + /** + * Successful Response + */ + 204: void; + /** + * Unauthorized + */ + 401: HTTPExceptionResponse; + /** + * Forbidden + */ + 403: HTTPExceptionResponse; + /** + * Not Found + */ + 404: HTTPExceptionResponse; + /** + * Validation Error + */ + 422: HTTPValidationError; + }; }; - '/api/v2/dags/{dag_id}/assets/{asset_id}/queuedEvents': { - get: { - req: GetDagAssetQueuedEventData; - res: { - /** - * Successful Response - */ - 200: QueuedEventResponse; - /** - * Unauthorized - */ - 401: HTTPExceptionResponse; - /** - * Forbidden - */ - 403: HTTPExceptionResponse; - /** - * Not Found - */ - 404: HTTPExceptionResponse; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; - delete: { - req: DeleteDagAssetQueuedEventData; - res: { - /** - * Successful Response - */ - 204: void; - /** - * Bad Request - */ - 400: HTTPExceptionResponse; - /** - * Unauthorized - */ - 401: HTTPExceptionResponse; - /** - * Forbidden - */ - 403: HTTPExceptionResponse; - /** - * Not Found - */ - 404: HTTPExceptionResponse; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; + }; + "/api/v2/assets/{asset_id}": { + get: { + req: GetAssetData; + res: { + /** + * Successful Response + */ + 200: AssetResponse; + /** + * Unauthorized + */ + 401: HTTPExceptionResponse; + /** + * Forbidden + */ + 403: HTTPExceptionResponse; + /** + * Not Found + */ + 404: HTTPExceptionResponse; + /** + * Validation Error + */ + 422: HTTPValidationError; + }; }; - '/ui/next_run_assets/{dag_id}': { - get: { - req: NextRunAssetsData; - res: { - /** - * Successful Response - */ - 200: { - [key: string]: unknown; - }; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; + }; + "/api/v2/dags/{dag_id}/assets/queuedEvents": { + get: { + req: GetDagAssetQueuedEventsData; + res: { + /** + * Successful Response + */ + 200: QueuedEventCollectionResponse; + /** + * Unauthorized + */ + 401: HTTPExceptionResponse; + /** + * Forbidden + */ + 403: HTTPExceptionResponse; + /** + * Not Found + */ + 404: HTTPExceptionResponse; + /** + * Validation Error + */ + 422: HTTPValidationError; + }; }; - '/api/v2/backfills': { - get: { - req: ListBackfillsData; - res: { - /** - * Successful Response - */ - 200: BackfillCollectionResponse; - /** - * Unauthorized - */ - 401: HTTPExceptionResponse; - /** - * Forbidden - */ - 403: HTTPExceptionResponse; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; - post: { - req: CreateBackfillData; - res: { - /** - * Successful Response - */ - 200: BackfillResponse; - /** - * Unauthorized - */ - 401: HTTPExceptionResponse; - /** - * Forbidden - */ - 403: HTTPExceptionResponse; - /** - * Not Found - */ - 404: HTTPExceptionResponse; - /** - * Conflict - */ - 409: HTTPExceptionResponse; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; + delete: { + req: DeleteDagAssetQueuedEventsData; + res: { + /** + * Successful Response + */ + 204: void; + /** + * Bad Request + */ + 400: HTTPExceptionResponse; + /** + * Unauthorized + */ + 401: HTTPExceptionResponse; + /** + * Forbidden + */ + 403: HTTPExceptionResponse; + /** + * Not Found + */ + 404: HTTPExceptionResponse; + /** + * Validation Error + */ + 422: HTTPValidationError; + }; }; - '/api/v2/backfills/{backfill_id}': { - get: { - req: GetBackfillData; - res: { - /** - * Successful Response - */ - 200: BackfillResponse; - /** - * Unauthorized - */ - 401: HTTPExceptionResponse; - /** - * Forbidden - */ - 403: HTTPExceptionResponse; - /** - * Not Found - */ - 404: HTTPExceptionResponse; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; + }; + "/api/v2/dags/{dag_id}/assets/{asset_id}/queuedEvents": { + get: { + req: GetDagAssetQueuedEventData; + res: { + /** + * Successful Response + */ + 200: QueuedEventResponse; + /** + * Unauthorized + */ + 401: HTTPExceptionResponse; + /** + * Forbidden + */ + 403: HTTPExceptionResponse; + /** + * Not Found + */ + 404: HTTPExceptionResponse; + /** + * Validation Error + */ + 422: HTTPValidationError; + }; }; - '/api/v2/backfills/{backfill_id}/pause': { - put: { - req: PauseBackfillData; - res: { - /** - * Successful Response - */ - 200: BackfillResponse; - /** - * Unauthorized - */ - 401: HTTPExceptionResponse; - /** - * Forbidden - */ - 403: HTTPExceptionResponse; - /** - * Not Found - */ - 404: HTTPExceptionResponse; - /** - * Conflict - */ - 409: HTTPExceptionResponse; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; + delete: { + req: DeleteDagAssetQueuedEventData; + res: { + /** + * Successful Response + */ + 204: void; + /** + * Bad Request + */ + 400: HTTPExceptionResponse; + /** + * Unauthorized + */ + 401: HTTPExceptionResponse; + /** + * Forbidden + */ + 403: HTTPExceptionResponse; + /** + * Not Found + */ + 404: HTTPExceptionResponse; + /** + * Validation Error + */ + 422: HTTPValidationError; + }; }; - '/api/v2/backfills/{backfill_id}/unpause': { - put: { - req: UnpauseBackfillData; - res: { - /** - * Successful Response - */ - 200: BackfillResponse; - /** - * Unauthorized - */ - 401: HTTPExceptionResponse; - /** - * Forbidden - */ - 403: HTTPExceptionResponse; - /** - * Not Found - */ - 404: HTTPExceptionResponse; - /** - * Conflict - */ - 409: HTTPExceptionResponse; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; + }; + "/ui/next_run_assets/{dag_id}": { + get: { + req: NextRunAssetsData; + res: { + /** + * Successful Response + */ + 200: { + [key: string]: unknown; }; + /** + * Validation Error + */ + 422: HTTPValidationError; + }; }; - '/api/v2/backfills/{backfill_id}/cancel': { - put: { - req: CancelBackfillData; - res: { - /** - * Successful Response - */ - 200: BackfillResponse; - /** - * Unauthorized - */ - 401: HTTPExceptionResponse; - /** - * Forbidden - */ - 403: HTTPExceptionResponse; - /** - * Not Found - */ - 404: HTTPExceptionResponse; - /** - * Conflict - */ - 409: HTTPExceptionResponse; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; + }; + "/api/v2/backfills": { + get: { + req: ListBackfillsData; + res: { + /** + * Successful Response + */ + 200: BackfillCollectionResponse; + /** + * Unauthorized + */ + 401: HTTPExceptionResponse; + /** + * Forbidden + */ + 403: HTTPExceptionResponse; + /** + * Validation Error + */ + 422: HTTPValidationError; + }; }; - '/api/v2/backfills/dry_run': { - post: { - req: CreateBackfillDryRunData; - res: { - /** - * Successful Response - */ - 200: DryRunBackfillCollectionResponse; - /** - * Unauthorized - */ - 401: HTTPExceptionResponse; - /** - * Forbidden - */ - 403: HTTPExceptionResponse; - /** - * Not Found - */ - 404: HTTPExceptionResponse; - /** - * Conflict - */ - 409: HTTPExceptionResponse; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; + post: { + req: CreateBackfillData; + res: { + /** + * Successful Response + */ + 200: BackfillResponse; + /** + * Unauthorized + */ + 401: HTTPExceptionResponse; + /** + * Forbidden + */ + 403: HTTPExceptionResponse; + /** + * Not Found + */ + 404: HTTPExceptionResponse; + /** + * Conflict + */ + 409: HTTPExceptionResponse; + /** + * Validation Error + */ + 422: HTTPValidationError; + }; }; - '/ui/backfills': { - get: { - req: ListBackfillsUiData; - res: { - /** - * Successful Response - */ - 200: BackfillCollectionResponse; - /** - * Not Found - */ - 404: HTTPExceptionResponse; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; + }; + "/api/v2/backfills/{backfill_id}": { + get: { + req: GetBackfillData; + res: { + /** + * Successful Response + */ + 200: BackfillResponse; + /** + * Unauthorized + */ + 401: HTTPExceptionResponse; + /** + * Forbidden + */ + 403: HTTPExceptionResponse; + /** + * Not Found + */ + 404: HTTPExceptionResponse; + /** + * Validation Error + */ + 422: HTTPValidationError; + }; }; - '/api/v2/connections/{connection_id}': { - delete: { - req: DeleteConnectionData; - res: { - /** - * Successful Response - */ - 204: void; - /** - * Unauthorized - */ - 401: HTTPExceptionResponse; - /** - * Forbidden - */ - 403: HTTPExceptionResponse; - /** - * Not Found - */ - 404: HTTPExceptionResponse; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; - get: { - req: GetConnectionData; - res: { - /** - * Successful Response - */ - 200: ConnectionResponse; - /** - * Unauthorized - */ - 401: HTTPExceptionResponse; - /** - * Forbidden - */ - 403: HTTPExceptionResponse; - /** - * Not Found - */ - 404: HTTPExceptionResponse; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; - patch: { - req: PatchConnectionData; - res: { - /** - * Successful Response - */ - 200: ConnectionResponse; - /** - * Bad Request - */ - 400: HTTPExceptionResponse; - /** - * Unauthorized - */ - 401: HTTPExceptionResponse; - /** - * Forbidden - */ - 403: HTTPExceptionResponse; - /** - * Not Found - */ - 404: HTTPExceptionResponse; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; + }; + "/api/v2/backfills/{backfill_id}/pause": { + put: { + req: PauseBackfillData; + res: { + /** + * Successful Response + */ + 200: BackfillResponse; + /** + * Unauthorized + */ + 401: HTTPExceptionResponse; + /** + * Forbidden + */ + 403: HTTPExceptionResponse; + /** + * Not Found + */ + 404: HTTPExceptionResponse; + /** + * Conflict + */ + 409: HTTPExceptionResponse; + /** + * Validation Error + */ + 422: HTTPValidationError; + }; }; - '/api/v2/connections': { - get: { - req: GetConnectionsData; - res: { - /** - * Successful Response - */ - 200: ConnectionCollectionResponse; - /** - * Unauthorized - */ - 401: HTTPExceptionResponse; - /** - * Forbidden - */ - 403: HTTPExceptionResponse; - /** - * Not Found - */ - 404: HTTPExceptionResponse; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; - post: { - req: PostConnectionData; - res: { - /** - * Successful Response - */ - 201: ConnectionResponse; - /** - * Unauthorized - */ - 401: HTTPExceptionResponse; - /** - * Forbidden - */ - 403: HTTPExceptionResponse; - /** - * Conflict - */ - 409: HTTPExceptionResponse; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; - patch: { - req: BulkConnectionsData; - res: { - /** - * Successful Response - */ - 200: BulkResponse; - /** - * Unauthorized - */ - 401: HTTPExceptionResponse; - /** - * Forbidden - */ - 403: HTTPExceptionResponse; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; + }; + "/api/v2/backfills/{backfill_id}/unpause": { + put: { + req: UnpauseBackfillData; + res: { + /** + * Successful Response + */ + 200: BackfillResponse; + /** + * Unauthorized + */ + 401: HTTPExceptionResponse; + /** + * Forbidden + */ + 403: HTTPExceptionResponse; + /** + * Not Found + */ + 404: HTTPExceptionResponse; + /** + * Conflict + */ + 409: HTTPExceptionResponse; + /** + * Validation Error + */ + 422: HTTPValidationError; + }; }; - '/api/v2/connections/test': { - post: { - req: TestConnectionData; - res: { - /** - * Successful Response - */ - 200: ConnectionTestResponse; - /** - * Unauthorized - */ - 401: HTTPExceptionResponse; - /** - * Forbidden - */ - 403: HTTPExceptionResponse; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; + }; + "/api/v2/backfills/{backfill_id}/cancel": { + put: { + req: CancelBackfillData; + res: { + /** + * Successful Response + */ + 200: BackfillResponse; + /** + * Unauthorized + */ + 401: HTTPExceptionResponse; + /** + * Forbidden + */ + 403: HTTPExceptionResponse; + /** + * Not Found + */ + 404: HTTPExceptionResponse; + /** + * Conflict + */ + 409: HTTPExceptionResponse; + /** + * Validation Error + */ + 422: HTTPValidationError; + }; }; - '/api/v2/connections/defaults': { - post: { - res: { - /** - * Successful Response - */ - 204: void; - /** - * Unauthorized - */ - 401: HTTPExceptionResponse; - /** - * Forbidden - */ - 403: HTTPExceptionResponse; - }; - }; + }; + "/api/v2/backfills/dry_run": { + post: { + req: CreateBackfillDryRunData; + res: { + /** + * Successful Response + */ + 200: DryRunBackfillCollectionResponse; + /** + * Unauthorized + */ + 401: HTTPExceptionResponse; + /** + * Forbidden + */ + 403: HTTPExceptionResponse; + /** + * Not Found + */ + 404: HTTPExceptionResponse; + /** + * Conflict + */ + 409: HTTPExceptionResponse; + /** + * Validation Error + */ + 422: HTTPValidationError; + }; }; - '/ui/connections/hook_meta': { - get: { - res: { - /** - * Successful Response - */ - 200: Array; - }; - }; + }; + "/ui/backfills": { + get: { + req: ListBackfillsUiData; + res: { + /** + * Successful Response + */ + 200: BackfillCollectionResponse; + /** + * Not Found + */ + 404: HTTPExceptionResponse; + /** + * Validation Error + */ + 422: HTTPValidationError; + }; }; - '/api/v2/dags/{dag_id}/dagRuns/{dag_run_id}': { - get: { - req: GetDagRunData; - res: { - /** - * Successful Response - */ - 200: DAGRunResponse; - /** - * Unauthorized - */ - 401: HTTPExceptionResponse; - /** - * Forbidden - */ - 403: HTTPExceptionResponse; - /** - * Not Found - */ - 404: HTTPExceptionResponse; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; - delete: { - req: DeleteDagRunData; - res: { - /** - * Successful Response - */ - 204: void; - /** - * Bad Request - */ - 400: HTTPExceptionResponse; - /** - * Unauthorized - */ - 401: HTTPExceptionResponse; - /** - * Forbidden - */ - 403: HTTPExceptionResponse; - /** - * Not Found - */ - 404: HTTPExceptionResponse; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; - patch: { - req: PatchDagRunData; - res: { - /** - * Successful Response - */ - 200: DAGRunResponse; - /** - * Bad Request - */ - 400: HTTPExceptionResponse; - /** - * Unauthorized - */ - 401: HTTPExceptionResponse; - /** - * Forbidden - */ - 403: HTTPExceptionResponse; - /** - * Not Found - */ - 404: HTTPExceptionResponse; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; + }; + "/api/v2/connections/{connection_id}": { + delete: { + req: DeleteConnectionData; + res: { + /** + * Successful Response + */ + 204: void; + /** + * Unauthorized + */ + 401: HTTPExceptionResponse; + /** + * Forbidden + */ + 403: HTTPExceptionResponse; + /** + * Not Found + */ + 404: HTTPExceptionResponse; + /** + * Validation Error + */ + 422: HTTPValidationError; + }; }; - '/api/v2/dags/{dag_id}/dagRuns/{dag_run_id}/upstreamAssetEvents': { - get: { - req: GetUpstreamAssetEventsData; - res: { - /** - * Successful Response - */ - 200: AssetEventCollectionResponse; - /** - * Unauthorized - */ - 401: HTTPExceptionResponse; - /** - * Forbidden - */ - 403: HTTPExceptionResponse; - /** - * Not Found - */ - 404: HTTPExceptionResponse; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; + get: { + req: GetConnectionData; + res: { + /** + * Successful Response + */ + 200: ConnectionResponse; + /** + * Unauthorized + */ + 401: HTTPExceptionResponse; + /** + * Forbidden + */ + 403: HTTPExceptionResponse; + /** + * Not Found + */ + 404: HTTPExceptionResponse; + /** + * Validation Error + */ + 422: HTTPValidationError; + }; }; - '/api/v2/dags/{dag_id}/dagRuns/{dag_run_id}/clear': { - post: { - req: ClearDagRunData; - res: { - /** - * Successful Response - */ - 200: TaskInstanceCollectionResponse | DAGRunResponse; - /** - * Unauthorized - */ - 401: HTTPExceptionResponse; - /** - * Forbidden - */ - 403: HTTPExceptionResponse; - /** - * Not Found - */ - 404: HTTPExceptionResponse; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; + patch: { + req: PatchConnectionData; + res: { + /** + * Successful Response + */ + 200: ConnectionResponse; + /** + * Bad Request + */ + 400: HTTPExceptionResponse; + /** + * Unauthorized + */ + 401: HTTPExceptionResponse; + /** + * Forbidden + */ + 403: HTTPExceptionResponse; + /** + * Not Found + */ + 404: HTTPExceptionResponse; + /** + * Validation Error + */ + 422: HTTPValidationError; + }; }; - '/api/v2/dags/{dag_id}/dagRuns': { - get: { - req: GetDagRunsData; - res: { - /** - * Successful Response - */ - 200: DAGRunCollectionResponse; - /** - * Unauthorized - */ - 401: HTTPExceptionResponse; - /** - * Forbidden - */ - 403: HTTPExceptionResponse; - /** - * Not Found - */ - 404: HTTPExceptionResponse; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; - post: { - req: TriggerDagRunData; - res: { - /** - * Successful Response - */ - 200: DAGRunResponse; - /** - * Bad Request - */ - 400: HTTPExceptionResponse; - /** - * Unauthorized - */ - 401: HTTPExceptionResponse; - /** - * Forbidden - */ - 403: HTTPExceptionResponse; - /** - * Not Found - */ - 404: HTTPExceptionResponse; - /** - * Conflict - */ - 409: HTTPExceptionResponse; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; + }; + "/api/v2/connections": { + get: { + req: GetConnectionsData; + res: { + /** + * Successful Response + */ + 200: ConnectionCollectionResponse; + /** + * Unauthorized + */ + 401: HTTPExceptionResponse; + /** + * Forbidden + */ + 403: HTTPExceptionResponse; + /** + * Not Found + */ + 404: HTTPExceptionResponse; + /** + * Validation Error + */ + 422: HTTPValidationError; + }; }; - '/api/v2/dags/{dag_id}/dagRuns/{dag_run_id}/wait': { - get: { - req: WaitDagRunUntilFinishedData; - res: { - /** - * Successful Response - */ - 200: unknown; - /** - * Unauthorized - */ - 401: HTTPExceptionResponse; - /** - * Forbidden - */ - 403: HTTPExceptionResponse; - /** - * Not Found - */ - 404: HTTPExceptionResponse; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; + post: { + req: PostConnectionData; + res: { + /** + * Successful Response + */ + 201: ConnectionResponse; + /** + * Unauthorized + */ + 401: HTTPExceptionResponse; + /** + * Forbidden + */ + 403: HTTPExceptionResponse; + /** + * Conflict + */ + 409: HTTPExceptionResponse; + /** + * Validation Error + */ + 422: HTTPValidationError; + }; }; - '/api/v2/dags/{dag_id}/dagRuns/list': { - post: { - req: GetListDagRunsBatchData; - res: { - /** - * Successful Response - */ - 200: DAGRunCollectionResponse; - /** - * Unauthorized - */ - 401: HTTPExceptionResponse; - /** - * Forbidden - */ - 403: HTTPExceptionResponse; - /** - * Not Found - */ - 404: HTTPExceptionResponse; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; + patch: { + req: BulkConnectionsData; + res: { + /** + * Successful Response + */ + 200: BulkResponse; + /** + * Unauthorized + */ + 401: HTTPExceptionResponse; + /** + * Forbidden + */ + 403: HTTPExceptionResponse; + /** + * Validation Error + */ + 422: HTTPValidationError; + }; }; - '/api/v2/dagSources/{dag_id}': { - get: { - req: GetDagSourceData; - res: { - /** - * Successful Response - */ - 200: DAGSourceResponse; - /** - * Bad Request - */ - 400: HTTPExceptionResponse; - /** - * Unauthorized - */ - 401: HTTPExceptionResponse; - /** - * Forbidden - */ - 403: HTTPExceptionResponse; - /** - * Not Found - */ - 404: HTTPExceptionResponse; - /** - * Not Acceptable - */ - 406: HTTPExceptionResponse; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; + }; + "/api/v2/connections/test": { + post: { + req: TestConnectionData; + res: { + /** + * Successful Response + */ + 200: ConnectionTestResponse; + /** + * Unauthorized + */ + 401: HTTPExceptionResponse; + /** + * Forbidden + */ + 403: HTTPExceptionResponse; + /** + * Validation Error + */ + 422: HTTPValidationError; + }; }; - '/api/v2/dagStats': { - get: { - req: GetDagStatsData; - res: { - /** - * Successful Response - */ - 200: DagStatsCollectionResponse; - /** - * Bad Request - */ - 400: HTTPExceptionResponse; - /** - * Unauthorized - */ - 401: HTTPExceptionResponse; - /** - * Forbidden - */ - 403: HTTPExceptionResponse; - /** - * Not Found - */ - 404: HTTPExceptionResponse; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; + }; + "/api/v2/connections/defaults": { + post: { + res: { + /** + * Successful Response + */ + 204: void; + /** + * Unauthorized + */ + 401: HTTPExceptionResponse; + /** + * Forbidden + */ + 403: HTTPExceptionResponse; + }; }; - '/api/v2/dagReports': { - get: { - req: GetDagReportsData; - res: { - /** - * Successful Response - */ - 200: unknown; - /** - * Bad Request - */ - 400: HTTPExceptionResponse; - /** - * Unauthorized - */ - 401: HTTPExceptionResponse; - /** - * Forbidden - */ - 403: HTTPExceptionResponse; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; + }; + "/ui/connections/hook_meta": { + get: { + res: { + /** + * Successful Response + */ + 200: Array; + }; }; - '/api/v2/config': { - get: { - req: GetConfigData; - res: { - /** - * Successful Response - */ - 200: Config; - /** - * Unauthorized - */ - 401: HTTPExceptionResponse; - /** - * Forbidden - */ - 403: HTTPExceptionResponse; - /** - * Not Found - */ - 404: HTTPExceptionResponse; - /** - * Not Acceptable - */ - 406: HTTPExceptionResponse; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; + }; + "/api/v2/dags/{dag_id}/dagRuns/{dag_run_id}": { + get: { + req: GetDagRunData; + res: { + /** + * Successful Response + */ + 200: DAGRunResponse; + /** + * Unauthorized + */ + 401: HTTPExceptionResponse; + /** + * Forbidden + */ + 403: HTTPExceptionResponse; + /** + * Not Found + */ + 404: HTTPExceptionResponse; + /** + * Validation Error + */ + 422: HTTPValidationError; + }; }; - '/api/v2/config/section/{section}/option/{option}': { - get: { - req: GetConfigValueData; - res: { - /** - * Successful Response - */ - 200: Config; - /** - * Unauthorized - */ - 401: HTTPExceptionResponse; - /** - * Forbidden - */ - 403: HTTPExceptionResponse; - /** - * Not Found - */ - 404: HTTPExceptionResponse; - /** - * Not Acceptable - */ - 406: HTTPExceptionResponse; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; + delete: { + req: DeleteDagRunData; + res: { + /** + * Successful Response + */ + 204: void; + /** + * Bad Request + */ + 400: HTTPExceptionResponse; + /** + * Unauthorized + */ + 401: HTTPExceptionResponse; + /** + * Forbidden + */ + 403: HTTPExceptionResponse; + /** + * Not Found + */ + 404: HTTPExceptionResponse; + /** + * Validation Error + */ + 422: HTTPValidationError; + }; }; - '/ui/config': { - get: { - res: { - /** - * Successful Response - */ - 200: ConfigResponse; - /** - * Not Found - */ - 404: HTTPExceptionResponse; - }; - }; + patch: { + req: PatchDagRunData; + res: { + /** + * Successful Response + */ + 200: DAGRunResponse; + /** + * Bad Request + */ + 400: HTTPExceptionResponse; + /** + * Unauthorized + */ + 401: HTTPExceptionResponse; + /** + * Forbidden + */ + 403: HTTPExceptionResponse; + /** + * Not Found + */ + 404: HTTPExceptionResponse; + /** + * Validation Error + */ + 422: HTTPValidationError; + }; }; - '/api/v2/dagWarnings': { - get: { - req: ListDagWarningsData; - res: { - /** - * Successful Response - */ - 200: DAGWarningCollectionResponse; - /** - * Unauthorized - */ - 401: HTTPExceptionResponse; - /** - * Forbidden - */ - 403: HTTPExceptionResponse; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; + }; + "/api/v2/dags/{dag_id}/dagRuns/{dag_run_id}/upstreamAssetEvents": { + get: { + req: GetUpstreamAssetEventsData; + res: { + /** + * Successful Response + */ + 200: AssetEventCollectionResponse; + /** + * Unauthorized + */ + 401: HTTPExceptionResponse; + /** + * Forbidden + */ + 403: HTTPExceptionResponse; + /** + * Not Found + */ + 404: HTTPExceptionResponse; + /** + * Validation Error + */ + 422: HTTPValidationError; + }; }; - '/api/v2/dags': { - get: { - req: GetDagsData; - res: { - /** - * Successful Response - */ - 200: DAGCollectionResponse; - /** - * Unauthorized - */ - 401: HTTPExceptionResponse; - /** - * Forbidden - */ - 403: HTTPExceptionResponse; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; - patch: { - req: PatchDagsData; - res: { - /** - * Successful Response - */ - 200: DAGCollectionResponse; - /** - * Bad Request - */ - 400: HTTPExceptionResponse; - /** - * Unauthorized - */ - 401: HTTPExceptionResponse; - /** - * Forbidden - */ - 403: HTTPExceptionResponse; - /** - * Not Found - */ - 404: HTTPExceptionResponse; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; + }; + "/api/v2/dags/{dag_id}/dagRuns/{dag_run_id}/clear": { + post: { + req: ClearDagRunData; + res: { + /** + * Successful Response + */ + 200: TaskInstanceCollectionResponse | DAGRunResponse; + /** + * Unauthorized + */ + 401: HTTPExceptionResponse; + /** + * Forbidden + */ + 403: HTTPExceptionResponse; + /** + * Not Found + */ + 404: HTTPExceptionResponse; + /** + * Validation Error + */ + 422: HTTPValidationError; + }; }; - '/api/v2/dags/{dag_id}': { - get: { - req: GetDagData; - res: { - /** - * Successful Response - */ - 200: DAGResponse; - /** - * Bad Request - */ - 400: HTTPExceptionResponse; - /** - * Unauthorized - */ - 401: HTTPExceptionResponse; - /** - * Forbidden - */ - 403: HTTPExceptionResponse; - /** - * Not Found - */ - 404: HTTPExceptionResponse; - /** - * Unprocessable Entity - */ - 422: HTTPExceptionResponse; - }; - }; - patch: { - req: PatchDagData; - res: { - /** - * Successful Response - */ - 200: DAGResponse; - /** - * Bad Request - */ - 400: HTTPExceptionResponse; - /** - * Unauthorized - */ - 401: HTTPExceptionResponse; - /** - * Forbidden - */ - 403: HTTPExceptionResponse; - /** - * Not Found - */ - 404: HTTPExceptionResponse; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; - delete: { - req: DeleteDagData; - res: { - /** - * Successful Response - */ - 200: unknown; - /** - * Bad Request - */ - 400: HTTPExceptionResponse; - /** - * Unauthorized - */ - 401: HTTPExceptionResponse; - /** - * Forbidden - */ - 403: HTTPExceptionResponse; - /** - * Not Found - */ - 404: HTTPExceptionResponse; - /** - * Unprocessable Entity - */ - 422: HTTPExceptionResponse; - }; - }; + }; + "/api/v2/dags/{dag_id}/dagRuns": { + get: { + req: GetDagRunsData; + res: { + /** + * Successful Response + */ + 200: DAGRunCollectionResponse; + /** + * Unauthorized + */ + 401: HTTPExceptionResponse; + /** + * Forbidden + */ + 403: HTTPExceptionResponse; + /** + * Not Found + */ + 404: HTTPExceptionResponse; + /** + * Validation Error + */ + 422: HTTPValidationError; + }; }; - '/api/v2/dags/{dag_id}/details': { - get: { - req: GetDagDetailsData; - res: { - /** - * Successful Response - */ - 200: DAGDetailsResponse; - /** - * Bad Request - */ - 400: HTTPExceptionResponse; - /** - * Unauthorized - */ - 401: HTTPExceptionResponse; - /** - * Forbidden - */ - 403: HTTPExceptionResponse; - /** - * Not Found - */ - 404: HTTPExceptionResponse; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; + post: { + req: TriggerDagRunData; + res: { + /** + * Successful Response + */ + 200: DAGRunResponse; + /** + * Bad Request + */ + 400: HTTPExceptionResponse; + /** + * Unauthorized + */ + 401: HTTPExceptionResponse; + /** + * Forbidden + */ + 403: HTTPExceptionResponse; + /** + * Not Found + */ + 404: HTTPExceptionResponse; + /** + * Conflict + */ + 409: HTTPExceptionResponse; + /** + * Validation Error + */ + 422: HTTPValidationError; + }; }; - '/api/v2/dags/{dag_id}/favorite': { - post: { - req: FavoriteDagData; - res: { - /** - * Successful Response - */ - 204: void; - /** - * Unauthorized - */ - 401: HTTPExceptionResponse; - /** - * Forbidden - */ - 403: HTTPExceptionResponse; - /** - * Not Found - */ - 404: HTTPExceptionResponse; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; + }; + "/api/v2/dags/{dag_id}/dagRuns/list": { + post: { + req: GetListDagRunsBatchData; + res: { + /** + * Successful Response + */ + 200: DAGRunCollectionResponse; + /** + * Unauthorized + */ + 401: HTTPExceptionResponse; + /** + * Forbidden + */ + 403: HTTPExceptionResponse; + /** + * Not Found + */ + 404: HTTPExceptionResponse; + /** + * Validation Error + */ + 422: HTTPValidationError; + }; }; - '/api/v2/dags/{dag_id}/unfavorite': { - post: { - req: UnfavoriteDagData; - res: { - /** - * Successful Response - */ - 204: void; - /** - * Unauthorized - */ - 401: HTTPExceptionResponse; - /** - * Forbidden - */ - 403: HTTPExceptionResponse; - /** - * Not Found - */ - 404: HTTPExceptionResponse; - /** - * Conflict - */ - 409: HTTPExceptionResponse; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; + }; + "/api/v2/dagSources/{dag_id}": { + get: { + req: GetDagSourceData; + res: { + /** + * Successful Response + */ + 200: DAGSourceResponse; + /** + * Bad Request + */ + 400: HTTPExceptionResponse; + /** + * Unauthorized + */ + 401: HTTPExceptionResponse; + /** + * Forbidden + */ + 403: HTTPExceptionResponse; + /** + * Not Found + */ + 404: HTTPExceptionResponse; + /** + * Not Acceptable + */ + 406: HTTPExceptionResponse; + /** + * Validation Error + */ + 422: HTTPValidationError; + }; }; - '/api/v2/dagTags': { - get: { - req: GetDagTagsData; - res: { - /** - * Successful Response - */ - 200: DAGTagCollectionResponse; - /** - * Unauthorized - */ - 401: HTTPExceptionResponse; - /** - * Forbidden - */ - 403: HTTPExceptionResponse; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; + }; + "/api/v2/dagStats": { + get: { + req: GetDagStatsData; + res: { + /** + * Successful Response + */ + 200: DagStatsCollectionResponse; + /** + * Bad Request + */ + 400: HTTPExceptionResponse; + /** + * Unauthorized + */ + 401: HTTPExceptionResponse; + /** + * Forbidden + */ + 403: HTTPExceptionResponse; + /** + * Not Found + */ + 404: HTTPExceptionResponse; + /** + * Validation Error + */ + 422: HTTPValidationError; + }; }; - '/ui/dags': { - get: { - req: GetDagsUiData; - res: { - /** - * Successful Response - */ - 200: DAGWithLatestDagRunsCollectionResponse; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; + }; + "/api/v2/dagReports": { + get: { + req: GetDagReportsData; + res: { + /** + * Successful Response + */ + 200: unknown; + /** + * Bad Request + */ + 400: HTTPExceptionResponse; + /** + * Unauthorized + */ + 401: HTTPExceptionResponse; + /** + * Forbidden + */ + 403: HTTPExceptionResponse; + /** + * Validation Error + */ + 422: HTTPValidationError; + }; }; - '/api/v2/eventLogs/{event_log_id}': { - get: { - req: GetEventLogData; - res: { - /** - * Successful Response - */ - 200: EventLogResponse; - /** - * Unauthorized - */ - 401: HTTPExceptionResponse; - /** - * Forbidden - */ - 403: HTTPExceptionResponse; - /** - * Not Found - */ - 404: HTTPExceptionResponse; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; + }; + "/api/v2/config": { + get: { + req: GetConfigData; + res: { + /** + * Successful Response + */ + 200: Config; + /** + * Unauthorized + */ + 401: HTTPExceptionResponse; + /** + * Forbidden + */ + 403: HTTPExceptionResponse; + /** + * Not Found + */ + 404: HTTPExceptionResponse; + /** + * Not Acceptable + */ + 406: HTTPExceptionResponse; + /** + * Validation Error + */ + 422: HTTPValidationError; + }; }; - '/api/v2/eventLogs': { - get: { - req: GetEventLogsData; - res: { - /** - * Successful Response - */ - 200: EventLogCollectionResponse; - /** - * Unauthorized - */ - 401: HTTPExceptionResponse; - /** - * Forbidden - */ - 403: HTTPExceptionResponse; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; + }; + "/api/v2/config/section/{section}/option/{option}": { + get: { + req: GetConfigValueData; + res: { + /** + * Successful Response + */ + 200: Config; + /** + * Unauthorized + */ + 401: HTTPExceptionResponse; + /** + * Forbidden + */ + 403: HTTPExceptionResponse; + /** + * Not Found + */ + 404: HTTPExceptionResponse; + /** + * Not Acceptable + */ + 406: HTTPExceptionResponse; + /** + * Validation Error + */ + 422: HTTPValidationError; + }; }; - '/api/v2/dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id}/links': { - get: { - req: GetExtraLinksData; - res: { - /** - * Successful Response - */ - 200: ExtraLinkCollectionResponse; - /** - * Unauthorized - */ - 401: HTTPExceptionResponse; - /** - * Forbidden - */ - 403: HTTPExceptionResponse; - /** - * Not Found - */ - 404: HTTPExceptionResponse; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; + }; + "/ui/config": { + get: { + res: { + /** + * Successful Response + */ + 200: ConfigResponse; + /** + * Not Found + */ + 404: HTTPExceptionResponse; + }; }; - '/api/v2/dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id}': { - get: { - req: GetTaskInstanceData; - res: { - /** - * Successful Response - */ - 200: TaskInstanceResponse; - /** - * Unauthorized - */ - 401: HTTPExceptionResponse; - /** - * Forbidden - */ - 403: HTTPExceptionResponse; - /** - * Not Found - */ - 404: HTTPExceptionResponse; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; - patch: { - req: PatchTaskInstanceData; - res: { - /** - * Successful Response - */ - 200: TaskInstanceCollectionResponse; - /** - * Bad Request - */ - 400: HTTPExceptionResponse; - /** - * Unauthorized - */ - 401: HTTPExceptionResponse; - /** - * Forbidden - */ - 403: HTTPExceptionResponse; - /** - * Not Found - */ - 404: HTTPExceptionResponse; - /** - * Conflict - */ - 409: HTTPExceptionResponse; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; - delete: { - req: DeleteTaskInstanceData; - res: { - /** - * Successful Response - */ - 200: null; - /** - * Unauthorized - */ - 401: HTTPExceptionResponse; - /** - * Forbidden - */ - 403: HTTPExceptionResponse; - /** - * Not Found - */ - 404: HTTPExceptionResponse; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; + }; + "/api/v2/dagWarnings": { + get: { + req: ListDagWarningsData; + res: { + /** + * Successful Response + */ + 200: DAGWarningCollectionResponse; + /** + * Unauthorized + */ + 401: HTTPExceptionResponse; + /** + * Forbidden + */ + 403: HTTPExceptionResponse; + /** + * Validation Error + */ + 422: HTTPValidationError; + }; }; - '/api/v2/dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id}/listMapped': { - get: { - req: GetMappedTaskInstancesData; - res: { - /** - * Successful Response - */ - 200: TaskInstanceCollectionResponse; - /** - * Unauthorized - */ - 401: HTTPExceptionResponse; - /** - * Forbidden - */ - 403: HTTPExceptionResponse; - /** - * Not Found - */ - 404: HTTPExceptionResponse; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; + }; + "/api/v2/dags": { + get: { + req: GetDagsData; + res: { + /** + * Successful Response + */ + 200: DAGCollectionResponse; + /** + * Unauthorized + */ + 401: HTTPExceptionResponse; + /** + * Forbidden + */ + 403: HTTPExceptionResponse; + /** + * Validation Error + */ + 422: HTTPValidationError; + }; }; - '/api/v2/dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id}/{map_index}/dependencies': { - get: { - req: GetTaskInstanceDependenciesByMapIndexData; - res: { - /** - * Successful Response - */ - 200: TaskDependencyCollectionResponse; - /** - * Unauthorized - */ - 401: HTTPExceptionResponse; - /** - * Forbidden - */ - 403: HTTPExceptionResponse; - /** - * Not Found - */ - 404: HTTPExceptionResponse; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; + patch: { + req: PatchDagsData; + res: { + /** + * Successful Response + */ + 200: DAGCollectionResponse; + /** + * Bad Request + */ + 400: HTTPExceptionResponse; + /** + * Unauthorized + */ + 401: HTTPExceptionResponse; + /** + * Forbidden + */ + 403: HTTPExceptionResponse; + /** + * Not Found + */ + 404: HTTPExceptionResponse; + /** + * Validation Error + */ + 422: HTTPValidationError; + }; }; - '/api/v2/dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id}/dependencies': { - get: { - req: GetTaskInstanceDependenciesData; - res: { - /** - * Successful Response - */ - 200: TaskDependencyCollectionResponse; - /** - * Unauthorized - */ - 401: HTTPExceptionResponse; - /** - * Forbidden - */ - 403: HTTPExceptionResponse; - /** - * Not Found - */ - 404: HTTPExceptionResponse; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; + }; + "/api/v2/dags/{dag_id}": { + get: { + req: GetDagData; + res: { + /** + * Successful Response + */ + 200: DAGResponse; + /** + * Bad Request + */ + 400: HTTPExceptionResponse; + /** + * Unauthorized + */ + 401: HTTPExceptionResponse; + /** + * Forbidden + */ + 403: HTTPExceptionResponse; + /** + * Not Found + */ + 404: HTTPExceptionResponse; + /** + * Unprocessable Entity + */ + 422: HTTPExceptionResponse; + }; }; - '/api/v2/dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id}/tries': { - get: { - req: GetTaskInstanceTriesData; - res: { - /** - * Successful Response - */ - 200: TaskInstanceHistoryCollectionResponse; - /** - * Unauthorized - */ - 401: HTTPExceptionResponse; - /** - * Forbidden - */ - 403: HTTPExceptionResponse; - /** - * Not Found - */ - 404: HTTPExceptionResponse; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; + patch: { + req: PatchDagData; + res: { + /** + * Successful Response + */ + 200: DAGResponse; + /** + * Bad Request + */ + 400: HTTPExceptionResponse; + /** + * Unauthorized + */ + 401: HTTPExceptionResponse; + /** + * Forbidden + */ + 403: HTTPExceptionResponse; + /** + * Not Found + */ + 404: HTTPExceptionResponse; + /** + * Validation Error + */ + 422: HTTPValidationError; + }; }; - '/api/v2/dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id}/{map_index}/tries': { - get: { - req: GetMappedTaskInstanceTriesData; - res: { - /** - * Successful Response - */ - 200: TaskInstanceHistoryCollectionResponse; - /** - * Unauthorized - */ - 401: HTTPExceptionResponse; - /** - * Forbidden - */ - 403: HTTPExceptionResponse; - /** - * Not Found - */ - 404: HTTPExceptionResponse; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; + delete: { + req: DeleteDagData; + res: { + /** + * Successful Response + */ + 200: unknown; + /** + * Bad Request + */ + 400: HTTPExceptionResponse; + /** + * Unauthorized + */ + 401: HTTPExceptionResponse; + /** + * Forbidden + */ + 403: HTTPExceptionResponse; + /** + * Not Found + */ + 404: HTTPExceptionResponse; + /** + * Unprocessable Entity + */ + 422: HTTPExceptionResponse; + }; }; - '/api/v2/dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id}/{map_index}': { - get: { - req: GetMappedTaskInstanceData; - res: { - /** - * Successful Response - */ - 200: TaskInstanceResponse; - /** - * Unauthorized - */ - 401: HTTPExceptionResponse; - /** - * Forbidden - */ - 403: HTTPExceptionResponse; - /** - * Not Found - */ - 404: HTTPExceptionResponse; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; - patch: { - req: PatchTaskInstanceByMapIndexData; - res: { - /** - * Successful Response - */ - 200: TaskInstanceCollectionResponse; - /** - * Bad Request - */ - 400: HTTPExceptionResponse; - /** - * Unauthorized - */ - 401: HTTPExceptionResponse; - /** - * Forbidden - */ - 403: HTTPExceptionResponse; - /** - * Not Found - */ - 404: HTTPExceptionResponse; - /** - * Conflict - */ - 409: HTTPExceptionResponse; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; + }; + "/api/v2/dags/{dag_id}/details": { + get: { + req: GetDagDetailsData; + res: { + /** + * Successful Response + */ + 200: DAGDetailsResponse; + /** + * Bad Request + */ + 400: HTTPExceptionResponse; + /** + * Unauthorized + */ + 401: HTTPExceptionResponse; + /** + * Forbidden + */ + 403: HTTPExceptionResponse; + /** + * Not Found + */ + 404: HTTPExceptionResponse; + /** + * Validation Error + */ + 422: HTTPValidationError; + }; }; - '/api/v2/dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances': { - get: { - req: GetTaskInstancesData; - res: { - /** - * Successful Response - */ - 200: TaskInstanceCollectionResponse; - /** - * Unauthorized - */ - 401: HTTPExceptionResponse; - /** - * Forbidden - */ - 403: HTTPExceptionResponse; - /** - * Not Found - */ - 404: HTTPExceptionResponse; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; - patch: { - req: BulkTaskInstancesData; - res: { - /** - * Successful Response - */ - 200: BulkResponse; - /** - * Unauthorized - */ - 401: HTTPExceptionResponse; - /** - * Forbidden - */ - 403: HTTPExceptionResponse; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; + }; + "/api/v2/dagTags": { + get: { + req: GetDagTagsData; + res: { + /** + * Successful Response + */ + 200: DAGTagCollectionResponse; + /** + * Unauthorized + */ + 401: HTTPExceptionResponse; + /** + * Forbidden + */ + 403: HTTPExceptionResponse; + /** + * Validation Error + */ + 422: HTTPValidationError; + }; }; - '/api/v2/dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/list': { - post: { - req: GetTaskInstancesBatchData; - res: { - /** - * Successful Response - */ - 200: TaskInstanceCollectionResponse; - /** - * Unauthorized - */ - 401: HTTPExceptionResponse; - /** - * Forbidden - */ - 403: HTTPExceptionResponse; - /** - * Not Found - */ - 404: HTTPExceptionResponse; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; + }; + "/ui/dags": { + get: { + req: GetDagsUiData; + res: { + /** + * Successful Response + */ + 200: DAGWithLatestDagRunsCollectionResponse; + /** + * Validation Error + */ + 422: HTTPValidationError; + }; }; - '/api/v2/dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id}/tries/{task_try_number}': { - get: { - req: GetTaskInstanceTryDetailsData; - res: { - /** - * Successful Response - */ - 200: TaskInstanceHistoryResponse; - /** - * Unauthorized - */ - 401: HTTPExceptionResponse; - /** - * Forbidden - */ - 403: HTTPExceptionResponse; - /** - * Not Found - */ - 404: HTTPExceptionResponse; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; + }; + "/api/v2/eventLogs/{event_log_id}": { + get: { + req: GetEventLogData; + res: { + /** + * Successful Response + */ + 200: EventLogResponse; + /** + * Unauthorized + */ + 401: HTTPExceptionResponse; + /** + * Forbidden + */ + 403: HTTPExceptionResponse; + /** + * Not Found + */ + 404: HTTPExceptionResponse; + /** + * Validation Error + */ + 422: HTTPValidationError; + }; }; - '/api/v2/dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id}/{map_index}/tries/{task_try_number}': { - get: { - req: GetMappedTaskInstanceTryDetailsData; - res: { - /** - * Successful Response - */ - 200: TaskInstanceHistoryResponse; - /** - * Unauthorized - */ - 401: HTTPExceptionResponse; - /** - * Forbidden - */ - 403: HTTPExceptionResponse; - /** - * Not Found - */ - 404: HTTPExceptionResponse; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; + }; + "/api/v2/eventLogs": { + get: { + req: GetEventLogsData; + res: { + /** + * Successful Response + */ + 200: EventLogCollectionResponse; + /** + * Unauthorized + */ + 401: HTTPExceptionResponse; + /** + * Forbidden + */ + 403: HTTPExceptionResponse; + /** + * Validation Error + */ + 422: HTTPValidationError; + }; }; - '/api/v2/dags/{dag_id}/clearTaskInstances': { - post: { - req: PostClearTaskInstancesData; - res: { - /** - * Successful Response - */ - 200: TaskInstanceCollectionResponse; - /** - * Unauthorized - */ - 401: HTTPExceptionResponse; - /** - * Forbidden - */ - 403: HTTPExceptionResponse; - /** - * Not Found - */ - 404: HTTPExceptionResponse; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; + }; + "/api/v2/dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id}/links": { + get: { + req: GetExtraLinksData; + res: { + /** + * Successful Response + */ + 200: ExtraLinkCollectionResponse; + /** + * Unauthorized + */ + 401: HTTPExceptionResponse; + /** + * Forbidden + */ + 403: HTTPExceptionResponse; + /** + * Not Found + */ + 404: HTTPExceptionResponse; + /** + * Validation Error + */ + 422: HTTPValidationError; + }; }; - '/api/v2/dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id}/{map_index}/dry_run': { - patch: { - req: PatchTaskInstanceDryRunByMapIndexData; - res: { - /** - * Successful Response - */ - 200: TaskInstanceCollectionResponse; - /** - * Bad Request - */ - 400: HTTPExceptionResponse; - /** - * Unauthorized - */ - 401: HTTPExceptionResponse; - /** - * Forbidden - */ - 403: HTTPExceptionResponse; - /** - * Not Found - */ - 404: HTTPExceptionResponse; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; + }; + "/api/v2/dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id}": { + get: { + req: GetTaskInstanceData; + res: { + /** + * Successful Response + */ + 200: TaskInstanceResponse; + /** + * Unauthorized + */ + 401: HTTPExceptionResponse; + /** + * Forbidden + */ + 403: HTTPExceptionResponse; + /** + * Not Found + */ + 404: HTTPExceptionResponse; + /** + * Validation Error + */ + 422: HTTPValidationError; + }; }; - '/api/v2/dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id}/dry_run': { - patch: { - req: PatchTaskInstanceDryRunData; - res: { - /** - * Successful Response - */ - 200: TaskInstanceCollectionResponse; - /** - * Bad Request - */ - 400: HTTPExceptionResponse; - /** - * Unauthorized - */ - 401: HTTPExceptionResponse; - /** - * Forbidden - */ - 403: HTTPExceptionResponse; - /** - * Not Found - */ - 404: HTTPExceptionResponse; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; + patch: { + req: PatchTaskInstanceData; + res: { + /** + * Successful Response + */ + 200: TaskInstanceCollectionResponse; + /** + * Bad Request + */ + 400: HTTPExceptionResponse; + /** + * Unauthorized + */ + 401: HTTPExceptionResponse; + /** + * Forbidden + */ + 403: HTTPExceptionResponse; + /** + * Not Found + */ + 404: HTTPExceptionResponse; + /** + * Conflict + */ + 409: HTTPExceptionResponse; + /** + * Validation Error + */ + 422: HTTPValidationError; + }; }; - '/api/v2/dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id}/logs/{try_number}': { - get: { - req: GetLogData; - res: { - /** - * Successful Response - */ - 200: TaskInstancesLogResponse; - /** - * Unauthorized - */ - 401: HTTPExceptionResponse; - /** - * Forbidden - */ - 403: HTTPExceptionResponse; - /** - * Not Found - */ - 404: HTTPExceptionResponse; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; + delete: { + req: DeleteTaskInstanceData; + res: { + /** + * Successful Response + */ + 200: null; + /** + * Unauthorized + */ + 401: HTTPExceptionResponse; + /** + * Forbidden + */ + 403: HTTPExceptionResponse; + /** + * Not Found + */ + 404: HTTPExceptionResponse; + /** + * Validation Error + */ + 422: HTTPValidationError; + }; }; - '/api/v2/dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id}/externalLogUrl/{try_number}': { - get: { - req: GetExternalLogUrlData; - res: { - /** - * Successful Response - */ - 200: ExternalLogUrlResponse; - /** - * Bad Request - */ - 400: HTTPExceptionResponse; - /** - * Unauthorized - */ - 401: HTTPExceptionResponse; - /** - * Forbidden - */ - 403: HTTPExceptionResponse; - /** - * Not Found - */ - 404: HTTPExceptionResponse; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; + }; + "/api/v2/dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id}/listMapped": { + get: { + req: GetMappedTaskInstancesData; + res: { + /** + * Successful Response + */ + 200: TaskInstanceCollectionResponse; + /** + * Unauthorized + */ + 401: HTTPExceptionResponse; + /** + * Forbidden + */ + 403: HTTPExceptionResponse; + /** + * Not Found + */ + 404: HTTPExceptionResponse; + /** + * Validation Error + */ + 422: HTTPValidationError; + }; }; - '/api/v2/importErrors/{import_error_id}': { - get: { - req: GetImportErrorData; - res: { - /** - * Successful Response - */ - 200: ImportErrorResponse; - /** - * Unauthorized - */ - 401: HTTPExceptionResponse; - /** - * Forbidden - */ - 403: HTTPExceptionResponse; - /** - * Not Found - */ - 404: HTTPExceptionResponse; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; + }; + "/api/v2/dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id}/{map_index}/dependencies": { + get: { + req: GetTaskInstanceDependenciesByMapIndexData; + res: { + /** + * Successful Response + */ + 200: TaskDependencyCollectionResponse; + /** + * Unauthorized + */ + 401: HTTPExceptionResponse; + /** + * Forbidden + */ + 403: HTTPExceptionResponse; + /** + * Not Found + */ + 404: HTTPExceptionResponse; + /** + * Validation Error + */ + 422: HTTPValidationError; + }; }; - '/api/v2/importErrors': { - get: { - req: GetImportErrorsData; - res: { - /** - * Successful Response - */ - 200: ImportErrorCollectionResponse; - /** - * Unauthorized - */ - 401: HTTPExceptionResponse; - /** - * Forbidden - */ - 403: HTTPExceptionResponse; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; + }; + "/api/v2/dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id}/dependencies": { + get: { + req: GetTaskInstanceDependenciesData; + res: { + /** + * Successful Response + */ + 200: TaskDependencyCollectionResponse; + /** + * Unauthorized + */ + 401: HTTPExceptionResponse; + /** + * Forbidden + */ + 403: HTTPExceptionResponse; + /** + * Not Found + */ + 404: HTTPExceptionResponse; + /** + * Validation Error + */ + 422: HTTPValidationError; + }; }; - '/api/v2/jobs': { - get: { - req: GetJobsData; - res: { - /** - * Successful Response - */ - 200: JobCollectionResponse; - /** - * Bad Request - */ - 400: HTTPExceptionResponse; - /** - * Unauthorized - */ - 401: HTTPExceptionResponse; - /** - * Forbidden - */ - 403: HTTPExceptionResponse; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; + }; + "/api/v2/dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id}/tries": { + get: { + req: GetTaskInstanceTriesData; + res: { + /** + * Successful Response + */ + 200: TaskInstanceHistoryCollectionResponse; + /** + * Unauthorized + */ + 401: HTTPExceptionResponse; + /** + * Forbidden + */ + 403: HTTPExceptionResponse; + /** + * Not Found + */ + 404: HTTPExceptionResponse; + /** + * Validation Error + */ + 422: HTTPValidationError; + }; }; - '/api/v2/plugins': { - get: { - req: GetPluginsData; - res: { - /** - * Successful Response - */ - 200: PluginCollectionResponse; - /** - * Unauthorized - */ - 401: HTTPExceptionResponse; - /** - * Forbidden - */ - 403: HTTPExceptionResponse; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; + }; + "/api/v2/dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id}/{map_index}/tries": { + get: { + req: GetMappedTaskInstanceTriesData; + res: { + /** + * Successful Response + */ + 200: TaskInstanceHistoryCollectionResponse; + /** + * Unauthorized + */ + 401: HTTPExceptionResponse; + /** + * Forbidden + */ + 403: HTTPExceptionResponse; + /** + * Not Found + */ + 404: HTTPExceptionResponse; + /** + * Validation Error + */ + 422: HTTPValidationError; + }; }; - '/api/v2/plugins/importErrors': { - get: { - res: { - /** - * Successful Response - */ - 200: PluginImportErrorCollectionResponse; - /** - * Unauthorized - */ - 401: HTTPExceptionResponse; - /** - * Forbidden - */ - 403: HTTPExceptionResponse; - }; - }; + }; + "/api/v2/dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id}/{map_index}": { + get: { + req: GetMappedTaskInstanceData; + res: { + /** + * Successful Response + */ + 200: TaskInstanceResponse; + /** + * Unauthorized + */ + 401: HTTPExceptionResponse; + /** + * Forbidden + */ + 403: HTTPExceptionResponse; + /** + * Not Found + */ + 404: HTTPExceptionResponse; + /** + * Validation Error + */ + 422: HTTPValidationError; + }; }; - '/api/v2/pools/{pool_name}': { - delete: { - req: DeletePoolData; - res: { - /** - * Successful Response - */ - 204: void; - /** - * Bad Request - */ - 400: HTTPExceptionResponse; - /** - * Unauthorized - */ - 401: HTTPExceptionResponse; - /** - * Forbidden - */ - 403: HTTPExceptionResponse; - /** - * Not Found - */ - 404: HTTPExceptionResponse; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; - get: { - req: GetPoolData; - res: { - /** - * Successful Response - */ - 200: PoolResponse; - /** - * Unauthorized - */ - 401: HTTPExceptionResponse; - /** - * Forbidden - */ - 403: HTTPExceptionResponse; - /** - * Not Found - */ - 404: HTTPExceptionResponse; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; - patch: { - req: PatchPoolData; - res: { - /** - * Successful Response - */ - 200: PoolResponse; - /** - * Bad Request - */ - 400: HTTPExceptionResponse; - /** - * Unauthorized - */ - 401: HTTPExceptionResponse; - /** - * Forbidden - */ - 403: HTTPExceptionResponse; - /** - * Not Found - */ - 404: HTTPExceptionResponse; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; + patch: { + req: PatchTaskInstanceByMapIndexData; + res: { + /** + * Successful Response + */ + 200: TaskInstanceCollectionResponse; + /** + * Bad Request + */ + 400: HTTPExceptionResponse; + /** + * Unauthorized + */ + 401: HTTPExceptionResponse; + /** + * Forbidden + */ + 403: HTTPExceptionResponse; + /** + * Not Found + */ + 404: HTTPExceptionResponse; + /** + * Conflict + */ + 409: HTTPExceptionResponse; + /** + * Validation Error + */ + 422: HTTPValidationError; + }; }; - '/api/v2/pools': { - get: { - req: GetPoolsData; - res: { - /** - * Successful Response - */ - 200: PoolCollectionResponse; - /** - * Unauthorized - */ - 401: HTTPExceptionResponse; - /** - * Forbidden - */ - 403: HTTPExceptionResponse; - /** - * Not Found - */ - 404: HTTPExceptionResponse; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; - post: { - req: PostPoolData; - res: { - /** - * Successful Response - */ - 201: PoolResponse; - /** - * Unauthorized - */ - 401: HTTPExceptionResponse; - /** - * Forbidden - */ - 403: HTTPExceptionResponse; - /** - * Conflict - */ - 409: HTTPExceptionResponse; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; - patch: { - req: BulkPoolsData; - res: { - /** - * Successful Response - */ - 200: BulkResponse; - /** - * Unauthorized - */ - 401: HTTPExceptionResponse; - /** - * Forbidden - */ - 403: HTTPExceptionResponse; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; + }; + "/api/v2/dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances": { + get: { + req: GetTaskInstancesData; + res: { + /** + * Successful Response + */ + 200: TaskInstanceCollectionResponse; + /** + * Unauthorized + */ + 401: HTTPExceptionResponse; + /** + * Forbidden + */ + 403: HTTPExceptionResponse; + /** + * Not Found + */ + 404: HTTPExceptionResponse; + /** + * Validation Error + */ + 422: HTTPValidationError; + }; }; - '/api/v2/providers': { - get: { - req: GetProvidersData; - res: { - /** - * Successful Response - */ - 200: ProviderCollectionResponse; - /** - * Unauthorized - */ - 401: HTTPExceptionResponse; - /** - * Forbidden - */ - 403: HTTPExceptionResponse; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; + patch: { + req: BulkTaskInstancesData; + res: { + /** + * Successful Response + */ + 200: BulkResponse; + /** + * Unauthorized + */ + 401: HTTPExceptionResponse; + /** + * Forbidden + */ + 403: HTTPExceptionResponse; + /** + * Validation Error + */ + 422: HTTPValidationError; + }; }; - '/api/v2/dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id}/xcomEntries/{xcom_key}': { - get: { - req: GetXcomEntryData; - res: { - /** - * Successful Response - */ - 200: XComResponseNative | XComResponseString; - /** - * Bad Request - */ - 400: HTTPExceptionResponse; - /** - * Unauthorized - */ - 401: HTTPExceptionResponse; - /** - * Forbidden - */ - 403: HTTPExceptionResponse; - /** - * Not Found - */ - 404: HTTPExceptionResponse; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; - patch: { - req: UpdateXcomEntryData; - res: { - /** - * Successful Response - */ - 200: XComResponseNative; - /** - * Bad Request - */ - 400: HTTPExceptionResponse; - /** - * Unauthorized - */ - 401: HTTPExceptionResponse; - /** - * Forbidden - */ - 403: HTTPExceptionResponse; - /** - * Not Found - */ - 404: HTTPExceptionResponse; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; + }; + "/api/v2/dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/list": { + post: { + req: GetTaskInstancesBatchData; + res: { + /** + * Successful Response + */ + 200: TaskInstanceCollectionResponse; + /** + * Unauthorized + */ + 401: HTTPExceptionResponse; + /** + * Forbidden + */ + 403: HTTPExceptionResponse; + /** + * Not Found + */ + 404: HTTPExceptionResponse; + /** + * Validation Error + */ + 422: HTTPValidationError; + }; }; - '/api/v2/dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id}/xcomEntries': { - get: { - req: GetXcomEntriesData; - res: { - /** - * Successful Response - */ - 200: XComCollectionResponse; - /** - * Bad Request - */ - 400: HTTPExceptionResponse; - /** - * Unauthorized - */ - 401: HTTPExceptionResponse; - /** - * Forbidden - */ - 403: HTTPExceptionResponse; - /** - * Not Found - */ - 404: HTTPExceptionResponse; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; - post: { - req: CreateXcomEntryData; - res: { - /** - * Successful Response - */ - 201: XComResponseNative; - /** - * Bad Request - */ - 400: HTTPExceptionResponse; - /** - * Unauthorized - */ - 401: HTTPExceptionResponse; - /** - * Forbidden - */ - 403: HTTPExceptionResponse; - /** - * Not Found - */ - 404: HTTPExceptionResponse; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; + }; + "/api/v2/dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id}/tries/{task_try_number}": { + get: { + req: GetTaskInstanceTryDetailsData; + res: { + /** + * Successful Response + */ + 200: TaskInstanceHistoryResponse; + /** + * Unauthorized + */ + 401: HTTPExceptionResponse; + /** + * Forbidden + */ + 403: HTTPExceptionResponse; + /** + * Not Found + */ + 404: HTTPExceptionResponse; + /** + * Validation Error + */ + 422: HTTPValidationError; + }; }; - '/api/v2/dags/{dag_id}/tasks': { - get: { - req: GetTasksData; - res: { - /** - * Successful Response - */ - 200: TaskCollectionResponse; - /** - * Bad Request - */ - 400: HTTPExceptionResponse; - /** - * Unauthorized - */ - 401: HTTPExceptionResponse; - /** - * Forbidden - */ - 403: HTTPExceptionResponse; - /** - * Not Found - */ - 404: HTTPExceptionResponse; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; + }; + "/api/v2/dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id}/{map_index}/tries/{task_try_number}": { + get: { + req: GetMappedTaskInstanceTryDetailsData; + res: { + /** + * Successful Response + */ + 200: TaskInstanceHistoryResponse; + /** + * Unauthorized + */ + 401: HTTPExceptionResponse; + /** + * Forbidden + */ + 403: HTTPExceptionResponse; + /** + * Not Found + */ + 404: HTTPExceptionResponse; + /** + * Validation Error + */ + 422: HTTPValidationError; + }; }; - '/api/v2/dags/{dag_id}/tasks/{task_id}': { - get: { - req: GetTaskData; - res: { - /** - * Successful Response - */ - 200: TaskResponse; - /** - * Bad Request - */ - 400: HTTPExceptionResponse; - /** - * Unauthorized - */ - 401: HTTPExceptionResponse; - /** - * Forbidden - */ - 403: HTTPExceptionResponse; - /** - * Not Found - */ - 404: HTTPExceptionResponse; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; + }; + "/api/v2/dags/{dag_id}/clearTaskInstances": { + post: { + req: PostClearTaskInstancesData; + res: { + /** + * Successful Response + */ + 200: TaskInstanceCollectionResponse; + /** + * Unauthorized + */ + 401: HTTPExceptionResponse; + /** + * Forbidden + */ + 403: HTTPExceptionResponse; + /** + * Not Found + */ + 404: HTTPExceptionResponse; + /** + * Validation Error + */ + 422: HTTPValidationError; + }; }; - '/api/v2/variables/{variable_key}': { - delete: { - req: DeleteVariableData; - res: { - /** - * Successful Response - */ - 204: void; - /** - * Unauthorized - */ - 401: HTTPExceptionResponse; - /** - * Forbidden - */ - 403: HTTPExceptionResponse; - /** - * Not Found - */ - 404: HTTPExceptionResponse; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; - get: { - req: GetVariableData; - res: { - /** - * Successful Response - */ - 200: VariableResponse; - /** - * Unauthorized - */ - 401: HTTPExceptionResponse; - /** - * Forbidden - */ - 403: HTTPExceptionResponse; - /** - * Not Found - */ - 404: HTTPExceptionResponse; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; - patch: { - req: PatchVariableData; - res: { - /** - * Successful Response - */ - 200: VariableResponse; - /** - * Bad Request - */ - 400: HTTPExceptionResponse; - /** - * Unauthorized - */ - 401: HTTPExceptionResponse; - /** - * Forbidden - */ - 403: HTTPExceptionResponse; - /** - * Not Found - */ - 404: HTTPExceptionResponse; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; + }; + "/api/v2/dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id}/{map_index}/dry_run": { + patch: { + req: PatchTaskInstanceDryRunByMapIndexData; + res: { + /** + * Successful Response + */ + 200: TaskInstanceCollectionResponse; + /** + * Bad Request + */ + 400: HTTPExceptionResponse; + /** + * Unauthorized + */ + 401: HTTPExceptionResponse; + /** + * Forbidden + */ + 403: HTTPExceptionResponse; + /** + * Not Found + */ + 404: HTTPExceptionResponse; + /** + * Validation Error + */ + 422: HTTPValidationError; + }; }; - '/api/v2/variables': { - get: { - req: GetVariablesData; - res: { - /** - * Successful Response - */ - 200: VariableCollectionResponse; - /** - * Unauthorized - */ - 401: HTTPExceptionResponse; - /** - * Forbidden - */ - 403: HTTPExceptionResponse; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; - post: { - req: PostVariableData; - res: { - /** - * Successful Response - */ - 201: VariableResponse; - /** - * Unauthorized - */ - 401: HTTPExceptionResponse; - /** - * Forbidden - */ - 403: HTTPExceptionResponse; - /** - * Conflict - */ - 409: HTTPExceptionResponse; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; - patch: { - req: BulkVariablesData; - res: { - /** - * Successful Response - */ - 200: BulkResponse; - /** - * Unauthorized - */ - 401: HTTPExceptionResponse; - /** - * Forbidden - */ - 403: HTTPExceptionResponse; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; + }; + "/api/v2/dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id}/dry_run": { + patch: { + req: PatchTaskInstanceDryRunData; + res: { + /** + * Successful Response + */ + 200: TaskInstanceCollectionResponse; + /** + * Bad Request + */ + 400: HTTPExceptionResponse; + /** + * Unauthorized + */ + 401: HTTPExceptionResponse; + /** + * Forbidden + */ + 403: HTTPExceptionResponse; + /** + * Not Found + */ + 404: HTTPExceptionResponse; + /** + * Validation Error + */ + 422: HTTPValidationError; + }; }; - '/api/v2/parseDagFile/{file_token}': { - put: { - req: ReparseDagFileData; - res: { - /** - * Successful Response - */ - 201: null; - /** - * Unauthorized - */ - 401: HTTPExceptionResponse; - /** - * Forbidden - */ - 403: HTTPExceptionResponse; - /** - * Not Found - */ - 404: HTTPExceptionResponse; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; + }; + "/api/v2/dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id}/logs/{try_number}": { + get: { + req: GetLogData; + res: { + /** + * Successful Response + */ + 200: TaskInstancesLogResponse; + /** + * Unauthorized + */ + 401: HTTPExceptionResponse; + /** + * Forbidden + */ + 403: HTTPExceptionResponse; + /** + * Not Found + */ + 404: HTTPExceptionResponse; + /** + * Validation Error + */ + 422: HTTPValidationError; + }; }; - '/api/v2/dags/{dag_id}/dagVersions/{version_number}': { - get: { - req: GetDagVersionData; - res: { - /** - * Successful Response - */ - 200: DagVersionResponse; - /** - * Unauthorized - */ - 401: HTTPExceptionResponse; - /** - * Forbidden - */ - 403: HTTPExceptionResponse; - /** - * Not Found - */ - 404: HTTPExceptionResponse; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; + }; + "/api/v2/dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id}/externalLogUrl/{try_number}": { + get: { + req: GetExternalLogUrlData; + res: { + /** + * Successful Response + */ + 200: ExternalLogUrlResponse; + /** + * Bad Request + */ + 400: HTTPExceptionResponse; + /** + * Unauthorized + */ + 401: HTTPExceptionResponse; + /** + * Forbidden + */ + 403: HTTPExceptionResponse; + /** + * Not Found + */ + 404: HTTPExceptionResponse; + /** + * Validation Error + */ + 422: HTTPValidationError; + }; }; - '/api/v2/dags/{dag_id}/dagVersions': { - get: { - req: GetDagVersionsData; - res: { - /** - * Successful Response - */ - 200: DAGVersionCollectionResponse; - /** - * Unauthorized - */ - 401: HTTPExceptionResponse; - /** - * Forbidden - */ - 403: HTTPExceptionResponse; - /** - * Not Found - */ - 404: HTTPExceptionResponse; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; + }; + "/api/v2/importErrors/{import_error_id}": { + get: { + req: GetImportErrorData; + res: { + /** + * Successful Response + */ + 200: ImportErrorResponse; + /** + * Unauthorized + */ + 401: HTTPExceptionResponse; + /** + * Forbidden + */ + 403: HTTPExceptionResponse; + /** + * Not Found + */ + 404: HTTPExceptionResponse; + /** + * Validation Error + */ + 422: HTTPValidationError; + }; }; - '/api/v2/hitl-details/{dag_id}/{dag_run_id}/{task_id}': { - patch: { - req: UpdateHitlDetailData; - res: { - /** - * Successful Response - */ - 200: HITLDetailResponse; - /** - * Unauthorized - */ - 401: HTTPExceptionResponse; - /** - * Forbidden - */ - 403: HTTPExceptionResponse; - /** - * Not Found - */ - 404: HTTPExceptionResponse; - /** - * Conflict - */ - 409: HTTPExceptionResponse; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; - get: { - req: GetHitlDetailData; - res: { - /** - * Successful Response - */ - 200: HITLDetail; - /** - * Unauthorized - */ - 401: HTTPExceptionResponse; - /** - * Forbidden - */ - 403: HTTPExceptionResponse; - /** - * Not Found - */ - 404: HTTPExceptionResponse; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; + }; + "/api/v2/importErrors": { + get: { + req: GetImportErrorsData; + res: { + /** + * Successful Response + */ + 200: ImportErrorCollectionResponse; + /** + * Unauthorized + */ + 401: HTTPExceptionResponse; + /** + * Forbidden + */ + 403: HTTPExceptionResponse; + /** + * Validation Error + */ + 422: HTTPValidationError; + }; }; - '/api/v2/hitl-details/{dag_id}/{dag_run_id}/{task_id}/{map_index}': { - patch: { - req: UpdateMappedTiHitlDetailData; - res: { - /** - * Successful Response - */ - 200: HITLDetailResponse; - /** - * Unauthorized - */ - 401: HTTPExceptionResponse; - /** - * Forbidden - */ - 403: HTTPExceptionResponse; - /** - * Not Found - */ - 404: HTTPExceptionResponse; - /** - * Conflict - */ - 409: HTTPExceptionResponse; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; - get: { - req: GetMappedTiHitlDetailData; - res: { - /** - * Successful Response - */ - 200: HITLDetail; - /** - * Unauthorized - */ - 401: HTTPExceptionResponse; - /** - * Forbidden - */ - 403: HTTPExceptionResponse; - /** - * Not Found - */ - 404: HTTPExceptionResponse; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; + }; + "/api/v2/jobs": { + get: { + req: GetJobsData; + res: { + /** + * Successful Response + */ + 200: JobCollectionResponse; + /** + * Bad Request + */ + 400: HTTPExceptionResponse; + /** + * Unauthorized + */ + 401: HTTPExceptionResponse; + /** + * Forbidden + */ + 403: HTTPExceptionResponse; + /** + * Validation Error + */ + 422: HTTPValidationError; + }; }; - '/api/v2/hitl-details/': { - get: { - res: { - /** - * Successful Response - */ - 200: HITLDetailCollection; - /** - * Unauthorized - */ - 401: HTTPExceptionResponse; - /** - * Forbidden - */ - 403: HTTPExceptionResponse; - }; - }; + }; + "/api/v2/plugins": { + get: { + req: GetPluginsData; + res: { + /** + * Successful Response + */ + 200: PluginCollectionResponse; + /** + * Unauthorized + */ + 401: HTTPExceptionResponse; + /** + * Forbidden + */ + 403: HTTPExceptionResponse; + /** + * Validation Error + */ + 422: HTTPValidationError; + }; }; - '/api/v2/monitor/health': { - get: { - res: { - /** - * Successful Response - */ - 200: HealthInfoResponse; - }; - }; + }; + "/api/v2/plugins/importErrors": { + get: { + res: { + /** + * Successful Response + */ + 200: PluginImportErrorCollectionResponse; + /** + * Unauthorized + */ + 401: HTTPExceptionResponse; + /** + * Forbidden + */ + 403: HTTPExceptionResponse; + }; }; - '/api/v2/version': { - get: { - res: { - /** - * Successful Response - */ - 200: VersionInfo; - }; - }; + }; + "/api/v2/pools/{pool_name}": { + delete: { + req: DeletePoolData; + res: { + /** + * Successful Response + */ + 204: void; + /** + * Bad Request + */ + 400: HTTPExceptionResponse; + /** + * Unauthorized + */ + 401: HTTPExceptionResponse; + /** + * Forbidden + */ + 403: HTTPExceptionResponse; + /** + * Not Found + */ + 404: HTTPExceptionResponse; + /** + * Validation Error + */ + 422: HTTPValidationError; + }; }; - '/api/v2/auth/login': { - get: { - req: LoginData; - res: { - /** - * Successful Response - */ - 200: unknown; - /** - * Temporary Redirect - */ - 307: HTTPExceptionResponse; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; + get: { + req: GetPoolData; + res: { + /** + * Successful Response + */ + 200: PoolResponse; + /** + * Unauthorized + */ + 401: HTTPExceptionResponse; + /** + * Forbidden + */ + 403: HTTPExceptionResponse; + /** + * Not Found + */ + 404: HTTPExceptionResponse; + /** + * Validation Error + */ + 422: HTTPValidationError; + }; }; - '/api/v2/auth/logout': { - get: { - req: LogoutData; - res: { - /** - * Successful Response - */ - 200: unknown; - /** - * Temporary Redirect - */ - 307: HTTPExceptionResponse; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; + patch: { + req: PatchPoolData; + res: { + /** + * Successful Response + */ + 200: PoolResponse; + /** + * Bad Request + */ + 400: HTTPExceptionResponse; + /** + * Unauthorized + */ + 401: HTTPExceptionResponse; + /** + * Forbidden + */ + 403: HTTPExceptionResponse; + /** + * Not Found + */ + 404: HTTPExceptionResponse; + /** + * Validation Error + */ + 422: HTTPValidationError; + }; }; - '/ui/auth/menus': { - get: { - res: { - /** - * Successful Response - */ - 200: MenuItemCollectionResponse; - }; - }; + }; + "/api/v2/pools": { + get: { + req: GetPoolsData; + res: { + /** + * Successful Response + */ + 200: PoolCollectionResponse; + /** + * Unauthorized + */ + 401: HTTPExceptionResponse; + /** + * Forbidden + */ + 403: HTTPExceptionResponse; + /** + * Not Found + */ + 404: HTTPExceptionResponse; + /** + * Validation Error + */ + 422: HTTPValidationError; + }; }; - '/ui/dependencies': { - get: { - req: GetDependenciesData; - res: { - /** - * Successful Response - */ - 200: BaseGraphResponse; - /** - * Not Found - */ - 404: HTTPExceptionResponse; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; + post: { + req: PostPoolData; + res: { + /** + * Successful Response + */ + 201: PoolResponse; + /** + * Unauthorized + */ + 401: HTTPExceptionResponse; + /** + * Forbidden + */ + 403: HTTPExceptionResponse; + /** + * Conflict + */ + 409: HTTPExceptionResponse; + /** + * Validation Error + */ + 422: HTTPValidationError; + }; }; - '/ui/dashboard/historical_metrics_data': { - get: { - req: HistoricalMetricsData; - res: { - /** - * Successful Response - */ - 200: HistoricalMetricDataResponse; - /** - * Bad Request - */ - 400: HTTPExceptionResponse; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; + patch: { + req: BulkPoolsData; + res: { + /** + * Successful Response + */ + 200: BulkResponse; + /** + * Unauthorized + */ + 401: HTTPExceptionResponse; + /** + * Forbidden + */ + 403: HTTPExceptionResponse; + /** + * Validation Error + */ + 422: HTTPValidationError; + }; }; - '/ui/dashboard/dag_stats': { - get: { - res: { - /** - * Successful Response - */ - 200: DashboardDagStatsResponse; - }; - }; + }; + "/api/v2/providers": { + get: { + req: GetProvidersData; + res: { + /** + * Successful Response + */ + 200: ProviderCollectionResponse; + /** + * Unauthorized + */ + 401: HTTPExceptionResponse; + /** + * Forbidden + */ + 403: HTTPExceptionResponse; + /** + * Validation Error + */ + 422: HTTPValidationError; + }; }; - '/ui/structure/structure_data': { - get: { - req: StructureDataData; - res: { - /** - * Successful Response - */ - 200: StructureDataResponse; - /** - * Not Found - */ - 404: HTTPExceptionResponse; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; + }; + "/api/v2/dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id}/xcomEntries/{xcom_key}": { + get: { + req: GetXcomEntryData; + res: { + /** + * Successful Response + */ + 200: XComResponseNative | XComResponseString; + /** + * Bad Request + */ + 400: HTTPExceptionResponse; + /** + * Unauthorized + */ + 401: HTTPExceptionResponse; + /** + * Forbidden + */ + 403: HTTPExceptionResponse; + /** + * Not Found + */ + 404: HTTPExceptionResponse; + /** + * Validation Error + */ + 422: HTTPValidationError; + }; }; - '/ui/grid/structure/{dag_id}': { - get: { - req: GetDagStructureData; - res: { - /** - * Successful Response - */ - 200: Array; - /** - * Bad Request - */ - 400: HTTPExceptionResponse; - /** - * Not Found - */ - 404: HTTPExceptionResponse; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; + patch: { + req: UpdateXcomEntryData; + res: { + /** + * Successful Response + */ + 200: XComResponseNative; + /** + * Bad Request + */ + 400: HTTPExceptionResponse; + /** + * Unauthorized + */ + 401: HTTPExceptionResponse; + /** + * Forbidden + */ + 403: HTTPExceptionResponse; + /** + * Not Found + */ + 404: HTTPExceptionResponse; + /** + * Validation Error + */ + 422: HTTPValidationError; + }; }; - '/ui/grid/runs/{dag_id}': { - get: { - req: GetGridRunsData; - res: { - /** - * Successful Response - */ - 200: Array; - /** - * Bad Request - */ - 400: HTTPExceptionResponse; - /** - * Not Found - */ - 404: HTTPExceptionResponse; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; + }; + "/api/v2/dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id}/xcomEntries": { + get: { + req: GetXcomEntriesData; + res: { + /** + * Successful Response + */ + 200: XComCollectionResponse; + /** + * Bad Request + */ + 400: HTTPExceptionResponse; + /** + * Unauthorized + */ + 401: HTTPExceptionResponse; + /** + * Forbidden + */ + 403: HTTPExceptionResponse; + /** + * Not Found + */ + 404: HTTPExceptionResponse; + /** + * Validation Error + */ + 422: HTTPValidationError; + }; }; - '/ui/grid/ti_summaries/{dag_id}/{run_id}': { - get: { - req: GetGridTiSummariesData; - res: { - /** - * Successful Response - */ - 200: GridTISummaries; - /** - * Bad Request - */ - 400: HTTPExceptionResponse; - /** - * Not Found - */ - 404: HTTPExceptionResponse; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; + post: { + req: CreateXcomEntryData; + res: { + /** + * Successful Response + */ + 201: XComResponseNative; + /** + * Bad Request + */ + 400: HTTPExceptionResponse; + /** + * Unauthorized + */ + 401: HTTPExceptionResponse; + /** + * Forbidden + */ + 403: HTTPExceptionResponse; + /** + * Not Found + */ + 404: HTTPExceptionResponse; + /** + * Validation Error + */ + 422: HTTPValidationError; + }; }; - '/ui/grid/latest_run/{dag_id}': { - get: { - req: GetLatestRunData; - res: { - /** - * Successful Response - */ - 200: LatestRunResponse | null; - /** - * Bad Request - */ - 400: HTTPExceptionResponse; - /** - * Not Found - */ - 404: HTTPExceptionResponse; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; + }; + "/api/v2/dags/{dag_id}/tasks": { + get: { + req: GetTasksData; + res: { + /** + * Successful Response + */ + 200: TaskCollectionResponse; + /** + * Bad Request + */ + 400: HTTPExceptionResponse; + /** + * Unauthorized + */ + 401: HTTPExceptionResponse; + /** + * Forbidden + */ + 403: HTTPExceptionResponse; + /** + * Not Found + */ + 404: HTTPExceptionResponse; + /** + * Validation Error + */ + 422: HTTPValidationError; + }; }; - '/ui/calendar/{dag_id}': { - get: { - req: GetCalendarData; - res: { - /** - * Successful Response - */ - 200: CalendarTimeRangeCollectionResponse; - /** - * Validation Error - */ - 422: HTTPValidationError; - }; - }; + }; + "/api/v2/dags/{dag_id}/tasks/{task_id}": { + get: { + req: GetTaskData; + res: { + /** + * Successful Response + */ + 200: TaskResponse; + /** + * Bad Request + */ + 400: HTTPExceptionResponse; + /** + * Unauthorized + */ + 401: HTTPExceptionResponse; + /** + * Forbidden + */ + 403: HTTPExceptionResponse; + /** + * Not Found + */ + 404: HTTPExceptionResponse; + /** + * Validation Error + */ + 422: HTTPValidationError; + }; + }; + }; + "/api/v2/variables/{variable_key}": { + delete: { + req: DeleteVariableData; + res: { + /** + * Successful Response + */ + 204: void; + /** + * Unauthorized + */ + 401: HTTPExceptionResponse; + /** + * Forbidden + */ + 403: HTTPExceptionResponse; + /** + * Not Found + */ + 404: HTTPExceptionResponse; + /** + * Validation Error + */ + 422: HTTPValidationError; + }; + }; + get: { + req: GetVariableData; + res: { + /** + * Successful Response + */ + 200: VariableResponse; + /** + * Unauthorized + */ + 401: HTTPExceptionResponse; + /** + * Forbidden + */ + 403: HTTPExceptionResponse; + /** + * Not Found + */ + 404: HTTPExceptionResponse; + /** + * Validation Error + */ + 422: HTTPValidationError; + }; + }; + patch: { + req: PatchVariableData; + res: { + /** + * Successful Response + */ + 200: VariableResponse; + /** + * Bad Request + */ + 400: HTTPExceptionResponse; + /** + * Unauthorized + */ + 401: HTTPExceptionResponse; + /** + * Forbidden + */ + 403: HTTPExceptionResponse; + /** + * Not Found + */ + 404: HTTPExceptionResponse; + /** + * Validation Error + */ + 422: HTTPValidationError; + }; }; -}; \ No newline at end of file + }; + "/api/v2/variables": { + get: { + req: GetVariablesData; + res: { + /** + * Successful Response + */ + 200: VariableCollectionResponse; + /** + * Unauthorized + */ + 401: HTTPExceptionResponse; + /** + * Forbidden + */ + 403: HTTPExceptionResponse; + /** + * Validation Error + */ + 422: HTTPValidationError; + }; + }; + post: { + req: PostVariableData; + res: { + /** + * Successful Response + */ + 201: VariableResponse; + /** + * Unauthorized + */ + 401: HTTPExceptionResponse; + /** + * Forbidden + */ + 403: HTTPExceptionResponse; + /** + * Conflict + */ + 409: HTTPExceptionResponse; + /** + * Validation Error + */ + 422: HTTPValidationError; + }; + }; + patch: { + req: BulkVariablesData; + res: { + /** + * Successful Response + */ + 200: BulkResponse; + /** + * Unauthorized + */ + 401: HTTPExceptionResponse; + /** + * Forbidden + */ + 403: HTTPExceptionResponse; + /** + * Validation Error + */ + 422: HTTPValidationError; + }; + }; + }; + "/api/v2/parseDagFile/{file_token}": { + put: { + req: ReparseDagFileData; + res: { + /** + * Successful Response + */ + 201: null; + /** + * Unauthorized + */ + 401: HTTPExceptionResponse; + /** + * Forbidden + */ + 403: HTTPExceptionResponse; + /** + * Not Found + */ + 404: HTTPExceptionResponse; + /** + * Validation Error + */ + 422: HTTPValidationError; + }; + }; + }; + "/api/v2/dags/{dag_id}/dagVersions/{version_number}": { + get: { + req: GetDagVersionData; + res: { + /** + * Successful Response + */ + 200: DagVersionResponse; + /** + * Unauthorized + */ + 401: HTTPExceptionResponse; + /** + * Forbidden + */ + 403: HTTPExceptionResponse; + /** + * Not Found + */ + 404: HTTPExceptionResponse; + /** + * Validation Error + */ + 422: HTTPValidationError; + }; + }; + }; + "/api/v2/dags/{dag_id}/dagVersions": { + get: { + req: GetDagVersionsData; + res: { + /** + * Successful Response + */ + 200: DAGVersionCollectionResponse; + /** + * Unauthorized + */ + 401: HTTPExceptionResponse; + /** + * Forbidden + */ + 403: HTTPExceptionResponse; + /** + * Not Found + */ + 404: HTTPExceptionResponse; + /** + * Validation Error + */ + 422: HTTPValidationError; + }; + }; + }; + "/api/v2/monitor/health": { + get: { + res: { + /** + * Successful Response + */ + 200: HealthInfoResponse; + }; + }; + }; + "/api/v2/version": { + get: { + res: { + /** + * Successful Response + */ + 200: VersionInfo; + }; + }; + }; + "/api/v2/auth/login": { + get: { + req: LoginData; + res: { + /** + * Successful Response + */ + 200: unknown; + /** + * Temporary Redirect + */ + 307: HTTPExceptionResponse; + /** + * Validation Error + */ + 422: HTTPValidationError; + }; + }; + }; + "/api/v2/auth/logout": { + get: { + req: LogoutData; + res: { + /** + * Successful Response + */ + 200: unknown; + /** + * Temporary Redirect + */ + 307: HTTPExceptionResponse; + /** + * Validation Error + */ + 422: HTTPValidationError; + }; + }; + }; + "/ui/auth/menus": { + get: { + res: { + /** + * Successful Response + */ + 200: MenuItemCollectionResponse; + }; + }; + }; + "/ui/dependencies": { + get: { + req: GetDependenciesData; + res: { + /** + * Successful Response + */ + 200: BaseGraphResponse; + /** + * Not Found + */ + 404: HTTPExceptionResponse; + /** + * Validation Error + */ + 422: HTTPValidationError; + }; + }; + }; + "/ui/dashboard/historical_metrics_data": { + get: { + req: HistoricalMetricsData; + res: { + /** + * Successful Response + */ + 200: HistoricalMetricDataResponse; + /** + * Bad Request + */ + 400: HTTPExceptionResponse; + /** + * Validation Error + */ + 422: HTTPValidationError; + }; + }; + }; + "/ui/dashboard/dag_stats": { + get: { + res: { + /** + * Successful Response + */ + 200: DashboardDagStatsResponse; + }; + }; + }; + "/ui/structure/structure_data": { + get: { + req: StructureDataData; + res: { + /** + * Successful Response + */ + 200: StructureDataResponse; + /** + * Not Found + */ + 404: HTTPExceptionResponse; + /** + * Validation Error + */ + 422: HTTPValidationError; + }; + }; + }; + "/ui/grid/{dag_id}": { + get: { + req: GridDataData; + res: { + /** + * Successful Response + */ + 200: GridResponse; + /** + * Bad Request + */ + 400: HTTPExceptionResponse; + /** + * Not Found + */ + 404: HTTPExceptionResponse; + /** + * Validation Error + */ + 422: HTTPValidationError; + }; + }; + }; +}; diff --git a/airflow-core/src/airflow/ui/src/pages/DagsList/DagCard.test.tsx b/airflow-core/src/airflow/ui/src/pages/DagsList/DagCard.test.tsx index c5ed905568f95..376aeb7b461e1 100644 --- a/airflow-core/src/airflow/ui/src/pages/DagsList/DagCard.test.tsx +++ b/airflow-core/src/airflow/ui/src/pages/DagsList/DagCard.test.tsx @@ -34,7 +34,6 @@ const mockDag = { bundle_version: "1", dag_display_name: "nested_groups", dag_id: "nested_groups", - deadline: null, description: null, file_token: "Ii9maWxlcy9kYWdzL25lc3RlZF90YXNrX2dyb3Vwcy5weSI.G3EkdxmDUDQsVb7AIZww1TSGlFE", fileloc: "/files/dags/nested_task_groups.py", diff --git a/airflow-core/tests/unit/api_fastapi/core_api/routes/public/test_dags.py b/airflow-core/tests/unit/api_fastapi/core_api/routes/public/test_dags.py index ed0e9c147ea31..84dbf60c2256d 100644 --- a/airflow-core/tests/unit/api_fastapi/core_api/routes/public/test_dags.py +++ b/airflow-core/tests/unit/api_fastapi/core_api/routes/public/test_dags.py @@ -549,7 +549,6 @@ def test_dag_details( }, "description": None, "doc_md": "details", - "deadline": None, "end_date": None, "fileloc": __file__, "file_token": file_token, @@ -638,7 +637,6 @@ def test_get_dag(self, test_client, query_params, dag_id, expected_status_code, "is_stale": False, "owners": ["airflow"], "timetable_summary": None, - "deadline": None, "tags": [], "has_task_concurrency_limits": True, "next_dagrun_data_interval_start": None, diff --git a/airflow-ctl/src/airflowctl/api/datamodels/generated.py b/airflow-ctl/src/airflowctl/api/datamodels/generated.py index 1fecf1b6b3a4e..0fe1d48ae4026 100644 --- a/airflow-ctl/src/airflowctl/api/datamodels/generated.py +++ b/airflow-ctl/src/airflowctl/api/datamodels/generated.py @@ -468,17 +468,6 @@ class DagWarningType(str, Enum): NON_EXISTENT_POOL = "non-existent pool" -class DeadlineAlertResponse(BaseModel): - """ - Deadline alert serializer for responses. - """ - - reference: Annotated[str, Field(title="Reference")] - interval: Annotated[timedelta, Field(title="Interval")] - callback: Annotated[str, Field(title="Callback")] - callback_kwargs: Annotated[dict[str, Any] | None, Field(title="Callback Kwargs")] = None - - class DryRunBackfillResponse(BaseModel): """ Backfill serializer for responses in dry-run mode. @@ -1258,7 +1247,6 @@ class DAGDetailsResponse(BaseModel): relative_fileloc: Annotated[str | None, Field(title="Relative Fileloc")] = None fileloc: Annotated[str, Field(title="Fileloc")] description: Annotated[str | None, Field(title="Description")] = None - deadline: Annotated[list[DeadlineAlertResponse] | None, Field(title="Deadline")] = None timetable_summary: Annotated[str | None, Field(title="Timetable Summary")] = None timetable_description: Annotated[str | None, Field(title="Timetable Description")] = None tags: Annotated[list[DagTagResponse], Field(title="Tags")] @@ -1315,7 +1303,6 @@ class DAGResponse(BaseModel): relative_fileloc: Annotated[str | None, Field(title="Relative Fileloc")] = None fileloc: Annotated[str, Field(title="Fileloc")] description: Annotated[str | None, Field(title="Description")] = None - deadline: Annotated[list[DeadlineAlertResponse] | None, Field(title="Deadline")] = None timetable_summary: Annotated[str | None, Field(title="Timetable Summary")] = None timetable_description: Annotated[str | None, Field(title="Timetable Description")] = None tags: Annotated[list[DagTagResponse], Field(title="Tags")]