openapi: 3.1.0
info:
  title: Airflow API
  description: Airflow API. All endpoints located under ``/api/v2`` can be used safely,
    are stable and backward compatible. Endpoints located under ``/ui`` are dedicated
    to the UI and are subject to breaking change depending on the need of the frontend.
    Users should not rely on those but use the public ones instead.
  version: '2'
paths:
  /ui/auth/menus:
    get:
      tags:
      - Auth Links
      summary: Get Auth Menus
      operationId: get_auth_menus
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MenuItemCollectionResponse'
      security:
      - OAuth2PasswordBearer: []
      - HTTPBearer: []
  /ui/auth/me:
    get:
      tags:
      - Auth Links
      summary: Get Current User Info
      description: Convienently get the current authenticated user information.
      operationId: get_current_user_info
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuthenticatedMeResponse'
      security:
      - OAuth2PasswordBearer: []
      - HTTPBearer: []
  /ui/auth/token:
    post:
      tags:
      - Auth Links
      summary: Generate Token
      description: Generate a JWT token for the authenticated user.
      operationId: generate_token
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GenerateTokenBody'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenerateTokenResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - OAuth2PasswordBearer: []
      - HTTPBearer: []
  /ui/next_run_assets/{dag_id}:
    get:
      tags:
      - Asset
      summary: Next Run Assets
      operationId: next_run_assets
      security:
      - OAuth2PasswordBearer: []
      - HTTPBearer: []
      parameters:
      - name: dag_id
        in: path
        required: true
        schema:
          type: string
          title: Dag Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NextRunAssetsResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /ui/dags/{dag_id}/dagRuns/{dag_run_id}/stats:
    get:
      tags:
      - DagRun
      summary: Get Dag Run Stats
      description: Get duration statistics for a DAG based on its historical completed
        runs.
      operationId: get_dag_run_stats
      security:
      - OAuth2PasswordBearer: []
      - HTTPBearer: []
      parameters:
      - name: dag_id
        in: path
        required: true
        schema:
          type: string
          title: Dag Id
      - name: dag_run_id
        in: path
        required: true
        schema:
          type: string
          title: Dag Run Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DagRunStatsResponse'
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPExceptionResponse'
          description: Not Found
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /ui/partitioned_dag_runs:
    get:
      tags:
      - PartitionedDagRun
      summary: Get Partitioned Dag Runs
      description: Return PartitionedDagRuns. Filter by dag_id and/or has_created_dag_run_id.
      operationId: get_partitioned_dag_runs
      security:
      - OAuth2PasswordBearer: []
      - HTTPBearer: []
      parameters:
      - name: dag_id
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Dag Id
      - name: has_created_dag_run_id
        in: query
        required: false
        schema:
          anyOf:
          - type: boolean
          - type: 'null'
          title: Has Created Dag Run Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PartitionedDagRunCollectionResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /ui/pending_partitioned_dag_run/{dag_id}/{partition_key}:
    get:
      tags:
      - PartitionedDagRun
      summary: Get Pending Partitioned Dag Run
      description: Return full details for pending PartitionedDagRun.
      operationId: get_pending_partitioned_dag_run
      security:
      - OAuth2PasswordBearer: []
      - HTTPBearer: []
      parameters:
      - name: dag_id
        in: path
        required: true
        schema:
          type: string
          title: Dag Id
      - name: partition_key
        in: path
        required: true
        schema:
          type: string
          title: Partition Key
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PartitionedDagRunDetailResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /ui/config:
    get:
      tags:
      - Config
      summary: Get Configs
      description: Get configs for UI.
      operationId: get_configs
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConfigResponse'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPExceptionResponse'
      security:
      - OAuth2PasswordBearer: []
      - HTTPBearer: []
  /ui/connections/hook_meta:
    get:
      tags:
      - Connection
      summary: Hook Meta Data
      description: Retrieve information about available connection types (hook classes)
        and their parameters.
      operationId: hook_meta_data
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                items:
                  $ref: '#/components/schemas/ConnectionHookMetaData'
                type: array
                title: Response Hook Meta Data
      security:
      - OAuth2PasswordBearer: []
      - HTTPBearer: []
  /ui/dags:
    get:
      tags:
      - DAG
      summary: Get Dags
      description: Get Dags with recent DagRun.
      operationId: get_dags_ui
      security:
      - OAuth2PasswordBearer: []
      - HTTPBearer: []
      parameters:
      - name: dag_runs_limit
        in: query
        required: false
        schema:
          type: integer
          default: 10
          title: Dag Runs Limit
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          minimum: 0
          default: 50
          title: Limit
      - name: offset
        in: query
        required: false
        schema:
          type: integer
          minimum: 0
          default: 0
          title: Offset
      - name: tags
        in: query
        required: false
        schema:
          type: array
          items:
            type: string
          title: Tags
      - name: tags_match_mode
        in: query
        required: false
        schema:
          anyOf:
          - enum:
            - any
            - all
            type: string
          - type: 'null'
          title: Tags Match Mode
      - name: owners
        in: query
        required: false
        schema:
          type: array
          items:
            type: string
          title: Owners
      - name: dag_ids
        in: query
        required: false
        schema:
          anyOf:
          - type: array
            items:
              type: string
          - type: 'null'
          title: Dag Ids
      - name: dag_id_pattern
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          description: "SQL LIKE expression \u2014 use `%` / `_` wildcards (e.g. `%customer_%`).\
            \ Use the pipe `|` operator for OR logic (e.g. `dag1 | dag2`). Regular\
            \ expressions are **not** supported. \n\n**Performance note:** this full-match\
            \ pattern is evaluated as ``ILIKE '%term%'`` and most of the time prevents\
            \ the database from using B-tree indexes, which can be very slow on large\
            \ tables. Prefer the equivalent ``dag_id_prefix_pattern`` parameter when\
            \ possible."
          title: Dag Id Pattern
        description: "SQL LIKE expression \u2014 use `%` / `_` wildcards (e.g. `%customer_%`).\
          \ Use the pipe `|` operator for OR logic (e.g. `dag1 | dag2`). Regular expressions\
          \ are **not** supported. \n\n**Performance note:** this full-match pattern\
          \ is evaluated as ``ILIKE '%term%'`` and most of the time prevents the database\
          \ from using B-tree indexes, which can be very slow on large tables. Prefer\
          \ the equivalent ``dag_id_prefix_pattern`` parameter when possible."
      - name: dag_id_prefix_pattern
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          description: "Prefix match \u2014 returns items whose value starts with\
            \ the given string (case-sensitive, index-friendly). Use the pipe `|`\
            \ operator for OR logic (e.g. `dag1|dag2`). Use `~` to match all. Wildcard\
            \ characters (`%`, `_`) are treated as literal characters. Trailing non-alphanumeric\
            \ characters in the prefix are stripped before matching so the range scan\
            \ stays index-compatible under locale-aware collations \u2014 e.g. `test_`\
            \ effectively matches items starting with `test`, and `s3://` matches\
            \ items starting with `s3`."
          title: Dag Id Prefix Pattern
        description: "Prefix match \u2014 returns items whose value starts with the\
          \ given string (case-sensitive, index-friendly). Use the pipe `|` operator\
          \ for OR logic (e.g. `dag1|dag2`). Use `~` to match all. Wildcard characters\
          \ (`%`, `_`) are treated as literal characters. Trailing non-alphanumeric\
          \ characters in the prefix are stripped before matching so the range scan\
          \ stays index-compatible under locale-aware collations \u2014 e.g. `test_`\
          \ effectively matches items starting with `test`, and `s3://` matches items\
          \ starting with `s3`."
      - name: dag_display_name_pattern
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          description: "SQL LIKE expression \u2014 use `%` / `_` wildcards (e.g. `%customer_%`).\
            \ Use the pipe `|` operator for OR logic (e.g. `dag1 | dag2`). Regular\
            \ expressions are **not** supported. \n\n**Performance note:** this full-match\
            \ pattern is evaluated as ``ILIKE '%term%'`` and most of the time prevents\
            \ the database from using B-tree indexes, which can be very slow on large\
            \ tables. Prefer the equivalent ``dag_display_name_prefix_pattern`` parameter\
            \ when possible."
          title: Dag Display Name Pattern
        description: "SQL LIKE expression \u2014 use `%` / `_` wildcards (e.g. `%customer_%`).\
          \ Use the pipe `|` operator for OR logic (e.g. `dag1 | dag2`). Regular expressions\
          \ are **not** supported. \n\n**Performance note:** this full-match pattern\
          \ is evaluated as ``ILIKE '%term%'`` and most of the time prevents the database\
          \ from using B-tree indexes, which can be very slow on large tables. Prefer\
          \ the equivalent ``dag_display_name_prefix_pattern`` parameter when possible."
      - name: dag_display_name_prefix_pattern
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          description: "Prefix match \u2014 returns items whose value starts with\
            \ the given string (case-sensitive, index-friendly). Use the pipe `|`\
            \ operator for OR logic (e.g. `dag1|dag2`). Use `~` to match all. Wildcard\
            \ characters (`%`, `_`) are treated as literal characters. Trailing non-alphanumeric\
            \ characters in the prefix are stripped before matching so the range scan\
            \ stays index-compatible under locale-aware collations \u2014 e.g. `test_`\
            \ effectively matches items starting with `test`, and `s3://` matches\
            \ items starting with `s3`."
          title: Dag Display Name Prefix Pattern
        description: "Prefix match \u2014 returns items whose value starts with the\
          \ given string (case-sensitive, index-friendly). Use the pipe `|` operator\
          \ for OR logic (e.g. `dag1|dag2`). Use `~` to match all. Wildcard characters\
          \ (`%`, `_`) are treated as literal characters. Trailing non-alphanumeric\
          \ characters in the prefix are stripped before matching so the range scan\
          \ stays index-compatible under locale-aware collations \u2014 e.g. `test_`\
          \ effectively matches items starting with `test`, and `s3://` matches items\
          \ starting with `s3`."
      - name: exclude_stale
        in: query
        required: false
        schema:
          type: boolean
          default: true
          title: Exclude Stale
      - name: paused
        in: query
        required: false
        schema:
          anyOf:
          - type: boolean
          - type: 'null'
          title: Paused
      - name: has_import_errors
        in: query
        required: false
        schema:
          anyOf:
          - type: boolean
          - type: 'null'
          description: Filter Dags by having import errors. Only Dags that have been
            successfully loaded before will be returned.
          title: Has Import Errors
        description: Filter Dags by having import errors. Only Dags that have been
          successfully loaded before will be returned.
      - name: last_dag_run_state
        in: query
        required: false
        schema:
          anyOf:
          - $ref: '#/components/schemas/DagRunState'
          - type: 'null'
          title: Last Dag Run State
      - name: bundle_name
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Bundle Name
      - name: bundle_version
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Bundle Version
      - name: order_by
        in: query
        required: false
        schema:
          type: array
          items:
            type: string
          description: 'Attributes to order by, multi criteria sort is supported.
            Prefix with `-` for descending order. Supported attributes: `dag_id, dag_display_name,
            next_dagrun, state, start_date, last_run_state, last_run_start_date`'
          default:
          - dag_id
          title: Order By
        description: 'Attributes to order by, multi criteria sort is supported. Prefix
          with `-` for descending order. Supported attributes: `dag_id, dag_display_name,
          next_dagrun, state, start_date, last_run_state, last_run_start_date`'
      - name: is_favorite
        in: query
        required: false
        schema:
          anyOf:
          - type: boolean
          - type: 'null'
          title: Is Favorite
      - name: has_asset_schedule
        in: query
        required: false
        schema:
          anyOf:
          - type: boolean
          - type: 'null'
          description: Filter Dags with asset-based scheduling
          title: Has Asset Schedule
        description: Filter Dags with asset-based scheduling
      - name: asset_dependency
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          description: Filter Dags by asset dependency (name or URI)
          title: Asset Dependency
        description: Filter Dags by asset dependency (name or URI)
      - name: has_pending_actions
        in: query
        required: false
        schema:
          anyOf:
          - type: boolean
          - type: 'null'
          title: Has Pending Actions
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DAGWithLatestDagRunsCollectionResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /ui/dags/{dag_id}/latest_run:
    get:
      tags:
      - DAG
      summary: Get Latest Run Info
      description: Get latest run.
      operationId: get_latest_run_info
      security:
      - OAuth2PasswordBearer: []
      - HTTPBearer: []
      parameters:
      - name: dag_id
        in: path
        required: true
        schema:
          type: string
          title: Dag Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                anyOf:
                - $ref: '#/components/schemas/DAGRunLightResponse'
                - type: 'null'
                title: Response Get Latest Run Info
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPExceptionResponse'
          description: Not Found
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /ui/dependencies:
    get:
      tags:
      - Dependencies
      summary: Get Dependencies
      description: Dependencies graph.
      operationId: get_dependencies
      security:
      - OAuth2PasswordBearer: []
      - HTTPBearer: []
      parameters:
      - name: node_id
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Node Id
      - name: dependency_type
        in: query
        required: false
        schema:
          enum:
          - scheduling
          - data
          type: string
          default: scheduling
          title: Dependency Type
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BaseGraphResponse'
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPExceptionResponse'
          description: Not Found
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /ui/dashboard/historical_metrics_data:
    get:
      tags:
      - Dashboard
      summary: Historical Metrics
      description: Return cluster activity historical metrics.
      operationId: historical_metrics
      security:
      - OAuth2PasswordBearer: []
      - HTTPBearer: []
      parameters:
      - name: start_date
        in: query
        required: true
        schema:
          type: string
          title: Start Date
      - name: end_date
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: End Date
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HistoricalMetricDataResponse'
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPExceptionResponse'
          description: Bad Request
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /ui/dashboard/dag_stats:
    get:
      tags:
      - Dashboard
      summary: Dag Stats
      description: Return basic Dag stats with counts of Dags in various states.
      operationId: dag_stats
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DashboardDagStatsResponse'
      security:
      - OAuth2PasswordBearer: []
      - HTTPBearer: []
  /ui/dags/{dag_id}/dagRuns/{dag_run_id}/deadlines:
    get:
      tags:
      - Deadlines
      summary: Get Deadlines
      description: 'Get deadlines for a Dag run.


        This endpoint allows specifying `~` as the dag_id and dag_run_id to retrieve
        Deadlines for all

        Dags and Dag runs.'
      operationId: get_deadlines
      security:
      - OAuth2PasswordBearer: []
      - HTTPBearer: []
      parameters:
      - name: dag_id
        in: path
        required: true
        schema:
          type: string
          title: Dag Id
      - name: dag_run_id
        in: path
        required: true
        schema:
          type: string
          title: Dag Run Id
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          minimum: 0
          default: 50
          title: Limit
      - name: offset
        in: query
        required: false
        schema:
          type: integer
          minimum: 0
          default: 0
          title: Offset
      - name: order_by
        in: query
        required: false
        schema:
          type: array
          items:
            type: string
          description: 'Attributes to order by, multi criteria sort is supported.
            Prefix with `-` for descending order. Supported attributes: `id, deadline_time,
            created_at, last_updated_at, missed, dag_id, dag_run_id, alert_name`'
          default:
          - deadline_time
          title: Order By
        description: 'Attributes to order by, multi criteria sort is supported. Prefix
          with `-` for descending order. Supported attributes: `id, deadline_time,
          created_at, last_updated_at, missed, dag_id, dag_run_id, alert_name`'
      - name: missed
        in: query
        required: false
        schema:
          anyOf:
          - type: boolean
          - type: 'null'
          title: Missed
      - name: deadline_time_gte
        in: query
        required: false
        schema:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Deadline Time Gte
      - name: deadline_time_gt
        in: query
        required: false
        schema:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Deadline Time Gt
      - name: deadline_time_lte
        in: query
        required: false
        schema:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Deadline Time Lte
      - name: deadline_time_lt
        in: query
        required: false
        schema:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Deadline Time Lt
      - name: last_updated_at_gte
        in: query
        required: false
        schema:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Last Updated At Gte
      - name: last_updated_at_gt
        in: query
        required: false
        schema:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Last Updated At Gt
      - name: last_updated_at_lte
        in: query
        required: false
        schema:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Last Updated At Lte
      - name: last_updated_at_lt
        in: query
        required: false
        schema:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Last Updated At Lt
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeadlineCollectionResponse'
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPExceptionResponse'
          description: Bad Request
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPExceptionResponse'
          description: Not Found
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /ui/dags/{dag_id}/deadlineAlerts:
    get:
      tags:
      - Deadlines
      summary: Get Dag Deadline Alerts
      description: Get all deadline alerts defined on a Dag.
      operationId: get_dag_deadline_alerts
      security:
      - OAuth2PasswordBearer: []
      - HTTPBearer: []
      parameters:
      - name: dag_id
        in: path
        required: true
        schema:
          type: string
          title: Dag Id
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          minimum: 0
          default: 50
          title: Limit
      - name: offset
        in: query
        required: false
        schema:
          type: integer
          minimum: 0
          default: 0
          title: Offset
      - name: order_by
        in: query
        required: false
        schema:
          type: array
          items:
            type: string
          description: 'Attributes to order by, multi criteria sort is supported.
            Prefix with `-` for descending order. Supported attributes: `id, created_at,
            name, interval`'
          default:
          - created_at
          title: Order By
        description: 'Attributes to order by, multi criteria sort is supported. Prefix
          with `-` for descending order. Supported attributes: `id, created_at, name,
          interval`'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeadlineAlertCollectionResponse'
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPExceptionResponse'
          description: Not Found
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /ui/structure/structure_data:
    get:
      tags:
      - Structure
      summary: Structure Data
      description: Get Structure Data.
      operationId: structure_data
      security:
      - OAuth2PasswordBearer: []
      - HTTPBearer: []
      parameters:
      - name: dag_id
        in: query
        required: true
        schema:
          type: string
          title: Dag Id
      - name: include_upstream
        in: query
        required: false
        schema:
          type: boolean
          default: false
          title: Include Upstream
      - name: include_downstream
        in: query
        required: false
        schema:
          type: boolean
          default: false
          title: Include Downstream
      - name: depth
        in: query
        required: false
        schema:
          anyOf:
          - type: integer
          - type: 'null'
          title: Depth
      - name: root
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Root
      - name: external_dependencies
        in: query
        required: false
        schema:
          type: boolean
          default: false
          title: External Dependencies
      - name: version_number
        in: query
        required: false
        schema:
          anyOf:
          - type: integer
          - type: 'null'
          title: Version Number
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StructureDataResponse'
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPExceptionResponse'
          description: Bad Request
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPExceptionResponse'
          description: Not Found
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /ui/backfills:
    get:
      tags:
      - Backfill
      summary: List Backfills Ui
      operationId: list_backfills_ui
      security:
      - OAuth2PasswordBearer: []
      - HTTPBearer: []
      parameters:
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          minimum: 0
          default: 50
          title: Limit
      - name: offset
        in: query
        required: false
        schema:
          type: integer
          minimum: 0
          default: 0
          title: Offset
      - name: order_by
        in: query
        required: false
        schema:
          type: array
          items:
            type: string
          description: 'Attributes to order by, multi criteria sort is supported.
            Prefix with `-` for descending order. Supported attributes: `id`'
          default:
          - id
          title: Order By
        description: 'Attributes to order by, multi criteria sort is supported. Prefix
          with `-` for descending order. Supported attributes: `id`'
      - name: dag_id
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Dag Id
      - name: active
        in: query
        required: false
        schema:
          anyOf:
          - type: boolean
          - type: 'null'
          title: Active
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BackfillCollectionResponse'
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPExceptionResponse'
          description: Not Found
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /ui/grid/structure/{dag_id}:
    get:
      tags:
      - Grid
      summary: Get Dag Structure
      description: Return dag structure for grid view.
      operationId: get_dag_structure
      security:
      - OAuth2PasswordBearer: []
      - HTTPBearer: []
      parameters:
      - name: dag_id
        in: path
        required: true
        schema:
          type: string
          title: Dag Id
      - name: include_upstream
        in: query
        required: false
        schema:
          type: boolean
          default: false
          title: Include Upstream
      - name: include_downstream
        in: query
        required: false
        schema:
          type: boolean
          default: false
          title: Include Downstream
      - name: depth
        in: query
        required: false
        schema:
          anyOf:
          - type: integer
          - type: 'null'
          title: Depth
      - name: root
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Root
      - name: offset
        in: query
        required: false
        schema:
          type: integer
          minimum: 0
          default: 0
          title: Offset
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          minimum: 0
          default: 50
          title: Limit
      - name: order_by
        in: query
        required: false
        schema:
          type: array
          items:
            type: string
          description: 'Attributes to order by, multi criteria sort is supported.
            Prefix with `-` for descending order. Supported attributes: `run_after,
            logical_date, start_date, end_date`'
          default:
          - id
          title: Order By
        description: 'Attributes to order by, multi criteria sort is supported. Prefix
          with `-` for descending order. Supported attributes: `run_after, logical_date,
          start_date, end_date`'
      - name: run_after_gte
        in: query
        required: false
        schema:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Run After Gte
      - name: run_after_gt
        in: query
        required: false
        schema:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Run After Gt
      - name: run_after_lte
        in: query
        required: false
        schema:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Run After Lte
      - name: run_after_lt
        in: query
        required: false
        schema:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Run After Lt
      - name: run_type
        in: query
        required: false
        schema:
          type: array
          items:
            type: string
          title: Run Type
      - name: state
        in: query
        required: false
        schema:
          type: array
          items:
            type: string
          title: State
      - name: triggering_user
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          description: "SQL LIKE expression \u2014 use `%` / `_` wildcards (e.g. `%customer_%`).\
            \ Use the pipe `|` operator for OR logic (e.g. `dag1 | dag2`). Regular\
            \ expressions are **not** supported. \n\n**Performance note:** this full-match\
            \ pattern is evaluated as ``ILIKE '%term%'`` and most of the time prevents\
            \ the database from using B-tree indexes, which can be very slow on large\
            \ tables. Prefer the equivalent ``triggering_user`` parameter when possible."
          title: Triggering User
        description: "SQL LIKE expression \u2014 use `%` / `_` wildcards (e.g. `%customer_%`).\
          \ Use the pipe `|` operator for OR logic (e.g. `dag1 | dag2`). Regular expressions\
          \ are **not** supported. \n\n**Performance note:** this full-match pattern\
          \ is evaluated as ``ILIKE '%term%'`` and most of the time prevents the database\
          \ from using B-tree indexes, which can be very slow on large tables. Prefer\
          \ the equivalent ``triggering_user`` parameter when possible."
      - name: triggering_user_prefix
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          description: "Prefix match \u2014 returns items whose value starts with\
            \ the given string (case-sensitive, index-friendly). Use the pipe `|`\
            \ operator for OR logic (e.g. `dag1|dag2`). Use `~` to match all. Wildcard\
            \ characters (`%`, `_`) are treated as literal characters. Trailing non-alphanumeric\
            \ characters in the prefix are stripped before matching so the range scan\
            \ stays index-compatible under locale-aware collations \u2014 e.g. `test_`\
            \ effectively matches items starting with `test`, and `s3://` matches\
            \ items starting with `s3`."
          title: Triggering User Prefix
        description: "Prefix match \u2014 returns items whose value starts with the\
          \ given string (case-sensitive, index-friendly). Use the pipe `|` operator\
          \ for OR logic (e.g. `dag1|dag2`). Use `~` to match all. Wildcard characters\
          \ (`%`, `_`) are treated as literal characters. Trailing non-alphanumeric\
          \ characters in the prefix are stripped before matching so the range scan\
          \ stays index-compatible under locale-aware collations \u2014 e.g. `test_`\
          \ effectively matches items starting with `test`, and `s3://` matches items\
          \ starting with `s3`."
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/GridNodeResponse'
                title: Response Get Dag Structure
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPExceptionResponse'
          description: Bad Request
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPExceptionResponse'
          description: Not Found
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /ui/grid/runs/{dag_id}:
    get:
      tags:
      - Grid
      summary: Get Grid Runs
      description: Get info about a run for the grid.
      operationId: get_grid_runs
      security:
      - OAuth2PasswordBearer: []
      - HTTPBearer: []
      parameters:
      - name: dag_id
        in: path
        required: true
        schema:
          type: string
          title: Dag Id
      - name: offset
        in: query
        required: false
        schema:
          type: integer
          minimum: 0
          default: 0
          title: Offset
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          minimum: 0
          default: 50
          title: Limit
      - name: order_by
        in: query
        required: false
        schema:
          type: array
          items:
            type: string
          description: 'Attributes to order by, multi criteria sort is supported.
            Prefix with `-` for descending order. Supported attributes: `run_after,
            logical_date, start_date, end_date`'
          default:
          - id
          title: Order By
        description: 'Attributes to order by, multi criteria sort is supported. Prefix
          with `-` for descending order. Supported attributes: `run_after, logical_date,
          start_date, end_date`'
      - name: run_after_gte
        in: query
        required: false
        schema:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Run After Gte
      - name: run_after_gt
        in: query
        required: false
        schema:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Run After Gt
      - name: run_after_lte
        in: query
        required: false
        schema:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Run After Lte
      - name: run_after_lt
        in: query
        required: false
        schema:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Run After Lt
      - name: run_type
        in: query
        required: false
        schema:
          type: array
          items:
            type: string
          title: Run Type
      - name: state
        in: query
        required: false
        schema:
          type: array
          items:
            type: string
          title: State
      - name: triggering_user
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          description: "SQL LIKE expression \u2014 use `%` / `_` wildcards (e.g. `%customer_%`).\
            \ Use the pipe `|` operator for OR logic (e.g. `dag1 | dag2`). Regular\
            \ expressions are **not** supported. \n\n**Performance note:** this full-match\
            \ pattern is evaluated as ``ILIKE '%term%'`` and most of the time prevents\
            \ the database from using B-tree indexes, which can be very slow on large\
            \ tables. Prefer the equivalent ``triggering_user`` parameter when possible."
          title: Triggering User
        description: "SQL LIKE expression \u2014 use `%` / `_` wildcards (e.g. `%customer_%`).\
          \ Use the pipe `|` operator for OR logic (e.g. `dag1 | dag2`). Regular expressions\
          \ are **not** supported. \n\n**Performance note:** this full-match pattern\
          \ is evaluated as ``ILIKE '%term%'`` and most of the time prevents the database\
          \ from using B-tree indexes, which can be very slow on large tables. Prefer\
          \ the equivalent ``triggering_user`` parameter when possible."
      - name: triggering_user_prefix
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          description: "Prefix match \u2014 returns items whose value starts with\
            \ the given string (case-sensitive, index-friendly). Use the pipe `|`\
            \ operator for OR logic (e.g. `dag1|dag2`). Use `~` to match all. Wildcard\
            \ characters (`%`, `_`) are treated as literal characters. Trailing non-alphanumeric\
            \ characters in the prefix are stripped before matching so the range scan\
            \ stays index-compatible under locale-aware collations \u2014 e.g. `test_`\
            \ effectively matches items starting with `test`, and `s3://` matches\
            \ items starting with `s3`."
          title: Triggering User Prefix
        description: "Prefix match \u2014 returns items whose value starts with the\
          \ given string (case-sensitive, index-friendly). Use the pipe `|` operator\
          \ for OR logic (e.g. `dag1|dag2`). Use `~` to match all. Wildcard characters\
          \ (`%`, `_`) are treated as literal characters. Trailing non-alphanumeric\
          \ characters in the prefix are stripped before matching so the range scan\
          \ stays index-compatible under locale-aware collations \u2014 e.g. `test_`\
          \ effectively matches items starting with `test`, and `s3://` matches items\
          \ starting with `s3`."
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/GridRunsResponse'
                title: Response Get Grid Runs
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPExceptionResponse'
          description: Bad Request
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPExceptionResponse'
          description: Not Found
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /ui/grid/ti_summaries/{dag_id}:
    get:
      tags:
      - Grid
      summary: Get Grid Ti Summaries Stream
      description: 'Stream TI summaries for multiple Dag runs as NDJSON (one JSON
        line per run).


        Each line is a serialized ``GridTISummaries`` object emitted as soon as that

        run''s task instances have been processed, so the client can render columns

        progressively without waiting for all runs to complete.


        The serialized Dag structure is served from the app-wide ``DBDagBag`` cache

        (keyed by ``dag_version_id``), which avoids repeated deserialization across

        runs of the same version *and* across requests.'
      operationId: get_grid_ti_summaries_stream
      security:
      - OAuth2PasswordBearer: []
      - HTTPBearer: []
      parameters:
      - name: dag_id
        in: path
        required: true
        schema:
          type: string
          title: Dag Id
      - name: run_ids
        in: query
        required: false
        schema:
          anyOf:
          - type: array
            items:
              type: string
          - type: 'null'
          title: Run Ids
      responses:
        '200':
          description: "NDJSON stream \u2014 one ``GridTISummaries`` JSON object per\
            \ line, one per Dag run"
          content:
            application/x-ndjson:
              schema:
                type: string
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPExceptionResponse'
          description: Bad Request
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPExceptionResponse'
          description: Not Found
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /ui/gantt/{dag_id}/{run_id}:
    get:
      tags:
      - Gantt
      summary: Get Gantt Data
      description: Get all task instance tries for Gantt chart.
      operationId: get_gantt_data
      security:
      - OAuth2PasswordBearer: []
      - HTTPBearer: []
      parameters:
      - name: dag_id
        in: path
        required: true
        schema:
          type: string
          title: Dag Id
      - name: run_id
        in: path
        required: true
        schema:
          type: string
          title: Run Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GanttResponse'
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPExceptionResponse'
          description: Not Found
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /ui/calendar/{dag_id}:
    get:
      tags:
      - Calendar
      summary: Get Calendar
      description: Get calendar data for a Dag including historical and planned Dag
        runs.
      operationId: get_calendar
      security:
      - OAuth2PasswordBearer: []
      - HTTPBearer: []
      parameters:
      - name: dag_id
        in: path
        required: true
        schema:
          type: string
          title: Dag Id
      - name: granularity
        in: query
        required: false
        schema:
          enum:
          - hourly
          - daily
          type: string
          default: daily
          title: Granularity
      - name: logical_date_gte
        in: query
        required: false
        schema:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Logical Date Gte
      - name: logical_date_gt
        in: query
        required: false
        schema:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Logical Date Gt
      - name: logical_date_lte
        in: query
        required: false
        schema:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Logical Date Lte
      - name: logical_date_lt
        in: query
        required: false
        schema:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Logical Date Lt
      - name: partition_date_gte
        in: query
        required: false
        schema:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Partition Date Gte
      - name: partition_date_gt
        in: query
        required: false
        schema:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Partition Date Gt
      - name: partition_date_lte
        in: query
        required: false
        schema:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Partition Date Lte
      - name: partition_date_lt
        in: query
        required: false
        schema:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Partition Date Lt
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CalendarTimeRangeCollectionResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /ui/teams:
    get:
      tags:
      - Teams
      summary: List Teams
      operationId: list_teams
      security:
      - OAuth2PasswordBearer: []
      - HTTPBearer: []
      parameters:
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          minimum: 0
          default: 50
          title: Limit
      - name: offset
        in: query
        required: false
        schema:
          type: integer
          minimum: 0
          default: 0
          title: Offset
      - name: order_by
        in: query
        required: false
        schema:
          type: array
          items:
            type: string
          description: 'Attributes to order by, multi criteria sort is supported.
            Prefix with `-` for descending order. Supported attributes: `name`'
          default:
          - name
          title: Order By
        description: 'Attributes to order by, multi criteria sort is supported. Prefix
          with `-` for descending order. Supported attributes: `name`'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TeamCollectionResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    AuthenticatedMeResponse:
      properties:
        id:
          type: string
          title: Id
        username:
          type: string
          title: Username
      type: object
      required:
      - id
      - username
      title: AuthenticatedMeResponse
      description: Authenticated user information serializer for responses.
    BackfillCollectionResponse:
      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.
    BackfillResponse:
      properties:
        id:
          type: integer
          minimum: 0.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:
          anyOf:
          - additionalProperties: true
            type: object
          - type: 'null'
          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.
    BaseEdgeResponse:
      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.
    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.
    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
        team:
          anyOf:
          - type: string
          - type: 'null'
          title: Team
      type: object
      required:
      - id
      - label
      - type
      title: BaseNodeResponse
      description: Base Node serializer for responses.
    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.
    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.
    ConfigResponse:
      properties:
        fallback_page_limit:
          type: integer
          title: Fallback Page Limit
        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
        theme:
          anyOf:
          - $ref: '#/components/schemas/Theme'
          - type: 'null'
        multi_team:
          type: boolean
          title: Multi Team
        rerun_with_latest_version:
          anyOf:
          - type: boolean
          - type: 'null'
          title: Rerun With Latest Version
      type: object
      required:
      - fallback_page_limit
      - 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
      - theme
      - multi_team
      title: ConfigResponse
      description: configuration serializer.
    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.
      type: object
      title: ConnectionHookFieldBehavior
      description: A class to store the behavior of each standard field of a Hook.
    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.'
    DAGRunLightResponse:
      properties:
        id:
          type: integer
          title: Id
        dag_id:
          type: string
          title: Dag Id
        run_id:
          type: string
          title: Run Id
        logical_date:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Logical Date
        run_after:
          type: string
          format: date-time
          title: Run After
        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
        state:
          $ref: '#/components/schemas/DagRunState'
        duration:
          anyOf:
          - type: number
          - type: 'null'
          title: Duration
          readOnly: true
      type: object
      required:
      - id
      - dag_id
      - run_id
      - logical_date
      - run_after
      - start_date
      - end_date
      - state
      - duration
      title: DAGRunLightResponse
      description: DAG Run serializer for responses.
    DAGRunStates:
      properties:
        queued:
          type: integer
          title: Queued
        running:
          type: integer
          title: Running
        success:
          type: integer
          title: Success
        failed:
          type: integer
          title: Failed
      type: object
      required:
      - queued
      - running
      - success
      - failed
      title: DAGRunStates
      description: DAG Run States for responses.
    DAGWithLatestDagRunsCollectionResponse:
      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.
    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_parse_duration:
          anyOf:
          - type: number
          - type: 'null'
          title: Last Parse Duration
        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
        timetable_summary:
          anyOf:
          - type: string
          - type: 'null'
          title: Timetable Summary
        timetable_description:
          anyOf:
          - type: string
          - type: 'null'
          title: Timetable Description
        timetable_partitioned:
          type: boolean
          title: Timetable Partitioned
        timetable_periodic:
          type: boolean
          title: Timetable Periodic
        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
        allowed_run_types:
          anyOf:
          - items:
              $ref: '#/components/schemas/DagRunType'
            type: array
          - type: 'null'
          title: Allowed Run Types
        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/DAGRunLightResponse'
          type: array
          title: Latest Dag Runs
        pending_actions:
          items:
            $ref: '#/components/schemas/HITLDetail'
          type: array
          title: Pending Actions
        is_favorite:
          type: boolean
          title: Is Favorite
        is_backfillable:
          type: boolean
          title: Is Backfillable
          description: Whether this Dag's schedule supports backfilling.
          readOnly: true
        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_parse_duration
      - last_expired
      - bundle_name
      - bundle_version
      - relative_fileloc
      - fileloc
      - description
      - timetable_summary
      - timetable_description
      - timetable_partitioned
      - timetable_periodic
      - 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
      - allowed_run_types
      - owners
      - asset_expression
      - latest_dag_runs
      - pending_actions
      - is_favorite
      - is_backfillable
      - file_token
      title: DAGWithLatestDagRunsResponse
      description: DAG with latest dag runs response serializer.
    DagRunState:
      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.'
    DagRunStatsResponse:
      properties:
        duration:
          anyOf:
          - $ref: '#/components/schemas/DurationStats'
          - type: 'null'
      type: object
      required:
      - duration
      title: DagRunStatsResponse
      description: DAG Run statistics serializer for responses.
    DagRunType:
      type: string
      enum:
      - backfill
      - scheduled
      - manual
      - operator_triggered
      - asset_triggered
      - asset_materialization
      title: DagRunType
      description: Class with DagRun types.
    DagTagResponse:
      properties:
        name:
          type: string
          title: Name
        dag_id:
          type: string
          title: Dag Id
        dag_display_name:
          type: string
          title: Dag Display Name
      type: object
      required:
      - name
      - dag_id
      - dag_display_name
      title: DagTagResponse
      description: Dag Tag serializer for responses.
    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
      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.
    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
      type: object
      required:
      - active_dag_count
      - failed_dag_count
      - running_dag_count
      - queued_dag_count
      title: DashboardDagStatsResponse
      description: Dashboard DAG Stats serializer for responses.
    DeadlineAlertCollectionResponse:
      properties:
        deadline_alerts:
          items:
            $ref: '#/components/schemas/DeadlineAlertResponse'
          type: array
          title: Deadline Alerts
        total_entries:
          type: integer
          title: Total Entries
      type: object
      required:
      - deadline_alerts
      - total_entries
      title: DeadlineAlertCollectionResponse
      description: DeadlineAlert Collection serializer for responses.
    DeadlineAlertResponse:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        name:
          anyOf:
          - type: string
          - type: 'null'
          title: Name
        reference_type:
          type: string
          title: Reference Type
        interval:
          type: number
          title: Interval
          description: Interval in seconds between deadline evaluations.
        created_at:
          type: string
          format: date-time
          title: Created At
      type: object
      required:
      - id
      - reference_type
      - interval
      - created_at
      title: DeadlineAlertResponse
      description: DeadlineAlert serializer for responses.
    DeadlineCollectionResponse:
      properties:
        deadlines:
          items:
            $ref: '#/components/schemas/DeadlineResponse'
          type: array
          title: Deadlines
        total_entries:
          type: integer
          title: Total Entries
      type: object
      required:
      - deadlines
      - total_entries
      title: DeadlineCollectionResponse
      description: Deadline Collection serializer for responses.
    DeadlineResponse:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        deadline_time:
          type: string
          format: date-time
          title: Deadline Time
        missed:
          type: boolean
          title: Missed
        created_at:
          type: string
          format: date-time
          title: Created At
        dag_id:
          type: string
          title: Dag Id
        dag_run_id:
          type: string
          title: Dag Run Id
        alert_id:
          anyOf:
          - type: string
            format: uuid
          - type: 'null'
          title: Alert Id
        alert_name:
          anyOf:
          - type: string
          - type: 'null'
          title: Alert Name
      type: object
      required:
      - id
      - deadline_time
      - missed
      - created_at
      - dag_id
      - dag_run_id
      title: DeadlineResponse
      description: Deadline serializer for responses.
    DurationStats:
      properties:
        mean:
          type: number
          title: Mean
        mode:
          anyOf:
          - type: number
          - type: 'null'
          title: Mode
        p50:
          type: number
          title: P50
        p90:
          type: number
          title: P90
        p95:
          type: number
          title: P95
        p99:
          type: number
          title: P99
      type: object
      required:
      - mean
      - mode
      - p50
      - p90
      - p95
      - p99
      title: DurationStats
      description: Duration statistics for a DAG across historical runs.
    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
      type: object
      required:
      - source_id
      - target_id
      title: EdgeResponse
      description: Edge serializer for responses.
    ExtraMenuItem:
      properties:
        text:
          type: string
          title: Text
        href:
          type: string
          title: Href
      type: object
      required:
      - text
      - href
      title: ExtraMenuItem
      description: Define a menu item that can be added to the menu by auth managers
        or plugins.
    GanttResponse:
      properties:
        dag_id:
          type: string
          title: Dag Id
        run_id:
          type: string
          title: Run Id
        task_instances:
          items:
            $ref: '#/components/schemas/GanttTaskInstance'
          type: array
          title: Task Instances
      type: object
      required:
      - dag_id
      - run_id
      - task_instances
      title: GanttResponse
      description: Response for Gantt chart endpoint.
    GanttTaskInstance:
      properties:
        task_id:
          type: string
          title: Task Id
        task_display_name:
          type: string
          title: Task Display Name
        try_number:
          type: integer
          title: Try Number
        state:
          anyOf:
          - $ref: '#/components/schemas/TaskInstanceState'
          - type: 'null'
        scheduled_dttm:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Scheduled Dttm
        queued_dttm:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Queued Dttm
        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
        is_group:
          type: boolean
          title: Is Group
          default: false
        is_mapped:
          type: boolean
          title: Is Mapped
          default: false
      type: object
      required:
      - task_id
      - task_display_name
      - try_number
      - state
      - scheduled_dttm
      - queued_dttm
      - start_date
      - end_date
      title: GanttTaskInstance
      description: Task instance data for Gantt chart.
    GenerateTokenBody:
      properties:
        token_type:
          $ref: '#/components/schemas/TokenType'
          default: api
      type: object
      title: GenerateTokenBody
      description: Request body for generating a token.
    GenerateTokenResponse:
      properties:
        access_token:
          type: string
          title: Access Token
        token_type:
          $ref: '#/components/schemas/TokenType'
        expires_in_seconds:
          type: integer
          title: Expires In Seconds
      type: object
      required:
      - access_token
      - token_type
      - expires_in_seconds
      title: GenerateTokenResponse
      description: Response for a generated token.
    GridNodeResponse:
      properties:
        id:
          type: string
          title: Id
        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
        setup_teardown_type:
          anyOf:
          - type: string
            enum:
            - setup
            - teardown
          - type: 'null'
          title: Setup Teardown Type
        doc_md:
          anyOf:
          - type: string
          - type: 'null'
          title: Doc Md
      type: object
      required:
      - id
      - label
      - is_mapped
      title: GridNodeResponse
      description: Base Node serializer for responses.
    GridRunsResponse:
      properties:
        dag_id:
          type: string
          title: Dag Id
        run_id:
          type: string
          title: 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:
          anyOf:
          - $ref: '#/components/schemas/DagRunState'
          - type: 'null'
        run_type:
          $ref: '#/components/schemas/DagRunType'
        dag_versions:
          items:
            $ref: '#/components/schemas/DagVersionResponse'
          type: array
          title: Dag Versions
          default: []
        has_missed_deadline:
          type: boolean
          title: Has Missed Deadline
        duration:
          type: number
          title: Duration
          readOnly: true
      type: object
      required:
      - dag_id
      - run_id
      - queued_at
      - start_date
      - end_date
      - run_after
      - state
      - run_type
      - has_missed_deadline
      - duration
      title: GridRunsResponse
      description: Base Node serializer for responses.
    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
      type: object
      required:
      - run_id
      - dag_id
      - task_instances
      title: GridTISummaries
      description: DAG Run model for the Grid UI.
    HITLDetail:
      properties:
        options:
          items:
            type: string
          type: array
          minItems: 1
          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
        assigned_users:
          items:
            $ref: '#/components/schemas/HITLUser'
          type: array
          title: Assigned Users
        created_at:
          type: string
          format: date-time
          title: Created At
        responded_by_user:
          anyOf:
          - $ref: '#/components/schemas/HITLUser'
          - type: 'null'
        responded_at:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Responded 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
        task_instance:
          $ref: '#/components/schemas/TaskInstanceResponse'
      type: object
      required:
      - options
      - subject
      - created_at
      - task_instance
      title: HITLDetail
      description: Schema for Human-in-the-loop detail.
    HITLUser:
      properties:
        id:
          type: string
          title: Id
        name:
          type: string
          title: Name
      type: object
      required:
      - id
      - name
      title: HITLUser
      description: Schema for a Human-in-the-loop users.
    HTTPExceptionResponse:
      properties:
        detail:
          anyOf:
          - type: string
          - additionalProperties: true
            type: object
          title: Detail
      type: object
      required:
      - detail
      title: HTTPExceptionResponse
      description: HTTPException Model used for error response.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    HistoricalMetricDataResponse:
      properties:
        dag_run_states:
          $ref: '#/components/schemas/DAGRunStates'
        task_instance_states:
          $ref: '#/components/schemas/TaskInstanceStateCount'
        state_count_limit:
          type: integer
          title: State Count Limit
      type: object
      required:
      - dag_run_states
      - task_instance_states
      - state_count_limit
      title: HistoricalMetricDataResponse
      description: Historical Metric Data serializer for responses.
    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
        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'
          title: Unixname
        dag_display_name:
          anyOf:
          - type: string
          - type: 'null'
          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.
    LightGridTaskInstanceSummary:
      properties:
        task_id:
          type: string
          title: Task Id
        task_display_name:
          type: string
          title: Task Display Name
        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
        dag_version_number:
          anyOf:
          - type: integer
          - type: 'null'
          title: Dag Version Number
      type: object
      required:
      - task_id
      - task_display_name
      - state
      - child_states
      - min_start_date
      - max_end_date
      title: LightGridTaskInstanceSummary
      description: Task Instance Summary model for the Grid UI.
    MenuItem:
      type: string
      enum:
      - Required Actions
      - Assets
      - Audit Log
      - Config
      - Connections
      - Dags
      - Deadlines
      - Docs
      - Jobs
      - Plugins
      - Pools
      - Providers
      - Variables
      - XComs
      title: MenuItem
      description: Define all menu items defined in the menu.
    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.
    NextRunAssetEventResponse:
      properties:
        id:
          type: integer
          title: Id
        name:
          anyOf:
          - type: string
          - type: 'null'
          title: Name
        uri:
          type: string
          title: Uri
        last_update:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Last Update
        received_count:
          type: integer
          title: Received Count
          default: 0
        required_count:
          type: integer
          title: Required Count
          default: 1
        received_keys:
          items:
            type: string
          type: array
          title: Received Keys
        required_keys:
          items:
            type: string
          type: array
          title: Required Keys
        is_rollup:
          type: boolean
          title: Is Rollup
          default: false
        mapper_error:
          type: boolean
          title: Mapper Error
          default: false
        asset_inactive:
          type: boolean
          title: Asset Inactive
          default: false
      type: object
      required:
      - id
      - name
      - uri
      title: NextRunAssetEventResponse
      description: One asset event in the ``next_run_assets`` payload.
    NextRunAssetsResponse:
      properties:
        asset_expression:
          anyOf:
          - additionalProperties: true
            type: object
          - type: 'null'
          title: Asset Expression
        events:
          items:
            $ref: '#/components/schemas/NextRunAssetEventResponse'
          type: array
          title: Events
        pending_partition_count:
          anyOf:
          - type: integer
          - type: 'null'
          title: Pending Partition Count
      type: object
      required:
      - events
      title: NextRunAssetsResponse
      description: Response for the ``next_run_assets`` endpoint.
    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
        team:
          anyOf:
          - type: string
          - type: 'null'
          title: Team
        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.
    OklchColor:
      type: string
    PartitionedDagRunAssetResponse:
      properties:
        asset_id:
          type: integer
          title: Asset Id
        asset_name:
          type: string
          title: Asset Name
        asset_uri:
          type: string
          title: Asset Uri
        received:
          type: boolean
          title: Received
        received_count:
          type: integer
          title: Received Count
        required_count:
          type: integer
          title: Required Count
        received_keys:
          items:
            type: string
          type: array
          title: Received Keys
        required_keys:
          items:
            type: string
          type: array
          title: Required Keys
        is_rollup:
          type: boolean
          title: Is Rollup
          default: false
        mapper_error:
          type: boolean
          title: Mapper Error
          default: false
        asset_inactive:
          type: boolean
          title: Asset Inactive
          default: false
      type: object
      required:
      - asset_id
      - asset_name
      - asset_uri
      - received
      - received_count
      - required_count
      - received_keys
      - required_keys
      title: PartitionedDagRunAssetResponse
      description: Asset info within a partitioned Dag run detail.
    PartitionedDagRunCollectionResponse:
      properties:
        partitioned_dag_runs:
          items:
            $ref: '#/components/schemas/PartitionedDagRunResponse'
          type: array
          title: Partitioned Dag Runs
        total:
          type: integer
          title: Total
        asset_expressions:
          anyOf:
          - additionalProperties:
              anyOf:
              - additionalProperties: true
                type: object
              - type: 'null'
            type: object
          - type: 'null'
          title: Asset Expressions
      type: object
      required:
      - partitioned_dag_runs
      - total
      title: PartitionedDagRunCollectionResponse
      description: Collection of partitioned Dag runs.
    PartitionedDagRunDetailResponse:
      properties:
        id:
          type: integer
          title: Id
        dag_id:
          type: string
          title: Dag Id
        partition_key:
          type: string
          title: Partition Key
        created_at:
          anyOf:
          - type: string
          - type: 'null'
          title: Created At
        updated_at:
          anyOf:
          - type: string
          - type: 'null'
          title: Updated At
        created_dag_run_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Created Dag Run Id
        assets:
          items:
            $ref: '#/components/schemas/PartitionedDagRunAssetResponse'
          type: array
          title: Assets
        total_required:
          type: integer
          title: Total Required
        total_received:
          type: integer
          title: Total Received
        asset_expression:
          anyOf:
          - additionalProperties: true
            type: object
          - type: 'null'
          title: Asset Expression
      type: object
      required:
      - id
      - dag_id
      - partition_key
      - assets
      - total_required
      - total_received
      title: PartitionedDagRunDetailResponse
      description: Detail of a single partitioned Dag run.
    PartitionedDagRunResponse:
      properties:
        id:
          type: integer
          title: Id
        partition_key:
          type: string
          title: Partition Key
        created_at:
          anyOf:
          - type: string
          - type: 'null'
          title: Created At
        total_received:
          type: integer
          title: Total Received
        total_required:
          type: integer
          title: Total Required
        dag_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Dag Id
        state:
          anyOf:
          - type: string
          - type: 'null'
          title: State
        created_dag_run_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Created Dag Run Id
      type: object
      required:
      - id
      - partition_key
      - total_received
      - total_required
      title: PartitionedDagRunResponse
      description: Single partitioned Dag run item.
    ReprocessBehavior:
      type: string
      enum:
      - failed
      - completed
      - none
      title: ReprocessBehavior
      description: 'Internal enum for setting reprocess behavior in a backfill.


        :meta private:'
    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.
    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.
    TaskInstanceResponse:
      properties:
        id:
          type: string
          format: uuid
          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
          - type: 'null'
          title: Logical Date
        run_after:
          type: string
          format: date-time
          title: Run After
        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
        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
        unixname:
          anyOf:
          - type: string
          - type: 'null'
          title: Unixname
        pool:
          type: string
          title: Pool
        pool_slots:
          type: integer
          title: Pool Slots
        queue:
          anyOf:
          - type: string
          - type: 'null'
          title: Queue
        priority_weight:
          anyOf:
          - type: integer
          - type: 'null'
          title: Priority Weight
        operator:
          anyOf:
          - type: string
          - type: 'null'
          title: Operator
        operator_name:
          anyOf:
          - type: string
          - type: 'null'
          title: Operator Name
        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
        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
      - operator_name
      - queued_when
      - scheduled_when
      - pid
      - executor
      - executor_config
      - note
      - rendered_map_index
      - trigger
      - triggerer_job
      - dag_version
      title: TaskInstanceResponse
      description: TaskInstance serializer for responses.
    TaskInstanceState:
      type: string
      enum:
      - removed
      - scheduled
      - queued
      - running
      - success
      - restarting
      - failed
      - up_for_retry
      - up_for_reschedule
      - upstream_failed
      - skipped
      - deferred
      - awaiting_input
      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.'
    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
        awaiting_input:
          type: integer
          title: Awaiting Input
      type: object
      required:
      - no_status
      - removed
      - scheduled
      - queued
      - running
      - success
      - restarting
      - failed
      - up_for_retry
      - up_for_reschedule
      - upstream_failed
      - skipped
      - deferred
      - awaiting_input
      title: TaskInstanceStateCount
      description: TaskInstance serializer for responses.
    TeamCollectionResponse:
      properties:
        teams:
          items:
            $ref: '#/components/schemas/TeamResponse'
          type: array
          title: Teams
        total_entries:
          type: integer
          title: Total Entries
      type: object
      required:
      - teams
      - total_entries
      title: TeamCollectionResponse
      description: Team collection serializer for responses.
    TeamResponse:
      properties:
        name:
          type: string
          title: Name
      type: object
      required:
      - name
      title: TeamResponse
      description: Base serializer for Team.
    Theme:
      properties:
        tokens:
          anyOf:
          - additionalProperties:
              $ref: '#/components/schemas/ThemeColors'
            propertyNames:
              const: colors
            type: object
          - type: 'null'
          title: Tokens
        globalCss:
          anyOf:
          - additionalProperties:
              additionalProperties: true
              type: object
            type: object
          - type: 'null'
          title: Globalcss
        icon:
          anyOf:
          - type: string
          - type: 'null'
          title: Icon
        icon_dark_mode:
          anyOf:
          - type: string
          - type: 'null'
          title: Icon Dark Mode
      type: object
      title: Theme
      description: JSON to modify Chakra's theme.
    ThemeColors:
      properties:
        brand:
          anyOf:
          - additionalProperties:
              additionalProperties:
                $ref: '#/components/schemas/OklchColor'
              propertyNames:
                const: value
              type: object
            propertyNames:
              enum:
              - '50'
              - '100'
              - '200'
              - '300'
              - '400'
              - '500'
              - '600'
              - '700'
              - '800'
              - '900'
              - '950'
            type: object
          - type: 'null'
          title: Brand
        gray:
          anyOf:
          - additionalProperties:
              additionalProperties:
                $ref: '#/components/schemas/OklchColor'
              propertyNames:
                const: value
              type: object
            propertyNames:
              enum:
              - '50'
              - '100'
              - '200'
              - '300'
              - '400'
              - '500'
              - '600'
              - '700'
              - '800'
              - '900'
              - '950'
            type: object
          - type: 'null'
          title: Gray
        black:
          anyOf:
          - additionalProperties:
              $ref: '#/components/schemas/OklchColor'
            propertyNames:
              const: value
            type: object
          - type: 'null'
          title: Black
        white:
          anyOf:
          - additionalProperties:
              $ref: '#/components/schemas/OklchColor'
            propertyNames:
              const: value
            type: object
          - type: 'null'
          title: White
      type: object
      title: ThemeColors
      description: Color tokens for the UI theme. All fields are optional; at least
        one must be provided.
    TokenType:
      type: string
      enum:
      - api
      - cli
      title: TokenType
      description: Type of token to generate.
    TriggerResponse:
      properties:
        id:
          type: integer
          title: Id
        classpath:
          type: string
          title: Classpath
        kwargs:
          type: string
          title: Kwargs
          deprecated: true
        created_date:
          type: string
          format: date-time
          title: Created Date
        queue:
          anyOf:
          - type: string
          - type: 'null'
          title: Queue
        triggerer_id:
          anyOf:
          - type: integer
          - type: 'null'
          title: Triggerer Id
      type: object
      required:
      - id
      - classpath
      - kwargs
      - created_date
      - queue
      - triggerer_id
      title: TriggerResponse
      description: Trigger serializer for responses.
    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.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
  securitySchemes:
    OAuth2PasswordBearer:
      type: oauth2
      description: To authenticate Airflow API requests, clients must include a JWT
        (JSON Web Token) in the Authorization header of each request. This token is
        used to verify the identity of the client and ensure that they have the appropriate
        permissions to access the requested resources. You can use the endpoint ``POST
        /auth/token`` in order to generate a JWT token. Upon successful authentication,
        the server will issue a JWT token that contains the necessary information
        (such as user identity and scope) to authenticate subsequent requests. To
        learn more about Airflow public API authentication, please read https://airflow.apache.org/docs/apache-airflow/stable/security/api.html.
      flows:
        password:
          scopes: {}
          tokenUrl: /auth/token
    HTTPBearer:
      type: http
      scheme: bearer
