> ## Documentation Index
> Fetch the complete documentation index at: https://docs.lightdash.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get a Semantic Studio chat thread

> A conversation with the Semantic Studio builder and its messages.



## OpenAPI

````yaml https://raw.githubusercontent.com/lightdash/lightdash/refs/heads/main/packages/backend/src/generated/swagger.json get /api/v1/projects/{projectUuid}/semantic-studio/chat/threads/{threadUuid}
openapi: 3.0.0
info:
  title: Lightdash API
  version: 3.420.0
  description: >
    Open API documentation for all public Lightdash API endpoints. #
    Authentication Authenticate using the Authorization header with either
    'ApiKey <personal-access-token>' or 'Bearer <service-account-token>'. Create
    a Personal Access Token by following this guide:
    https://docs.lightdash.com/references/personal_tokens Self-hosted
    provisioning can use the admin token configured with
    LD_SETUP_SERVICE_ACCOUNT_TOKEN to create scoped service accounts through the
    Service Accounts API.
  license:
    name: MIT
  contact:
    name: Lightdash Support
    email: support@lightdash.com
    url: https://docs.lightdash.com/help-and-contact/contact/contact_info/
servers:
  - url: /
security: []
tags:
  - name: My Account
    description: These routes allow users to manage their own user account.
  - name: Organizations
    description: >-
      Each user is a member of a single organization. These routes allow users
      to manage their organization. Most actions are only available to admin
      users.
  - name: Projects
    description: >-
      Projects belong to a single organization. These routes allow users to
      manage their projects, browse content, and execute queries. Users inside
      an organization might have access to a project from an organization-level
      role or they might be granted access to a project directly.
  - name: Spaces
    description: >-
      Spaces allow you to organize charts and dashboards within a project. They
      also allow granular access to content by allowing you to create private
      spaces, which are only accessible to the creator and admins.
  - name: Roles & Permissions
    description: >-
      These routes allow users to manage roles and permissions for their
      organization.
    externalDocs:
      url: https://docs.lightdash.com/references/roles
  - name: Service Accounts
    description: >-
      Create and manage machine credentials for your organization. Requires
      organization administration permission. Use predefined organization
      scopes, a custom organization role, or grants to selected projects.
      Credentials cannot grant more access than the caller holds.
  - name: Query
    description: >-
      These routes allow users to execute and manage queries against their data
      warehouse. This includes metric queries, SQL queries, and retrieving query
      results.
paths:
  /api/v1/projects/{projectUuid}/semantic-studio/chat/threads/{threadUuid}:
    get:
      tags:
        - Semantic Studio
      summary: Get a Semantic Studio chat thread
      description: A conversation with the Semantic Studio builder and its messages.
      operationId: getSemanticStudioChatThread
      parameters:
        - in: path
          name: projectUuid
          required: true
          schema:
            $ref: '#/components/schemas/UUID'
        - in: path
          name: threadUuid
          required: true
          schema:
            $ref: '#/components/schemas/UUID'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiAiAgentThreadResponse'
        default:
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorPayload'
      security: []
components:
  schemas:
    UUID:
      type: string
      format: uuid
      description: |-
        Stringified UUIDv4.
        See [RFC 4112](https://tools.ietf.org/html/rfc4122)
      pattern: >-
        [0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-4[0-9A-Fa-f]{3}-[89ABab][0-9A-Fa-f]{3}-[0-9A-Fa-f]{12}
    ApiAiAgentThreadResponse:
      properties:
        results:
          $ref: '#/components/schemas/AiAgentThread'
        status:
          type: string
          enum:
            - ok
          nullable: false
      required:
        - results
        - status
      type: object
    ApiErrorPayload:
      properties:
        error:
          properties:
            data:
              $ref: '#/components/schemas/AnyType'
              description: Optional data containing details of the error
            message:
              type: string
              description: A friendly message summarising the error
            name:
              type: string
              description: Unique name for the type of error
            statusCode:
              type: number
              format: integer
              description: HTTP status code
          required:
            - name
            - statusCode
          type: object
        status:
          type: string
          enum:
            - error
          nullable: false
      required:
        - error
        - status
      type: object
      description: |-
        The Error object is returned from the api any time there is an error.
        The message contains
    AiAgentThread:
      allOf:
        - $ref: '#/components/schemas/AiAgentThreadSummary_AiAgentUser_'
        - properties:
            compactions:
              items:
                $ref: '#/components/schemas/AiThreadCompaction'
              type: array
            messages:
              items:
                $ref: '#/components/schemas/AiAgentMessage_AiAgentUser_'
              type: array
          required:
            - compactions
            - messages
          type: object
    AnyType:
      description: |-
        This AnyType is an alias for any
        The goal is to make it easier to identify any type in the codebase
        without having to eslint-disable all the time
        These are only used on legacy `any` types, don't use it for new types.
        This is added on a separate file to avoid circular dependencies.
    AiAgentThreadSummary_AiAgentUser_:
      properties:
        metadata:
          allOf:
            - $ref: '#/components/schemas/AiThreadMetadata'
          nullable: true
          description: Caller-supplied labels set at creation; null when none were sent.
        threadContext:
          type: string
          nullable: true
          description: Initial context set at creation.
        binding:
          allOf:
            - $ref: '#/components/schemas/AiThreadBindingSummary'
          nullable: true
        liveStatus:
          allOf:
            - $ref: '#/components/schemas/AiAgentThreadLiveStatus'
          nullable: true
        user:
          $ref: '#/components/schemas/AiAgentUser'
        firstMessage:
          allOf:
            - $ref: '#/components/schemas/AiAgentThreadFirstMessage'
          nullable: true
          description: >-
            Null when the thread was created with a binding or context and no
            prompt yet.
        battleProfile:
          allOf:
            - $ref: '#/components/schemas/AiAgentBattleProfile'
          nullable: true
        pinnedAt:
          type: string
          nullable: true
        titleGeneratedAt:
          type: string
          nullable: true
        title:
          type: string
          nullable: true
        createdFrom:
          $ref: '#/components/schemas/AiThreadCreatedFrom'
        createdAt:
          type: string
        agentUuid:
          type: string
        uuid:
          type: string
      required:
        - metadata
        - threadContext
        - binding
        - liveStatus
        - user
        - firstMessage
        - battleProfile
        - pinnedAt
        - titleGeneratedAt
        - title
        - createdFrom
        - createdAt
        - agentUuid
        - uuid
      type: object
    AiThreadCompaction:
      properties:
        createdAt:
          type: string
        triggeringPromptUuid:
          type: string
        compactedThroughPromptUuid:
          type: string
        threadUuid:
          type: string
        uuid:
          type: string
      required:
        - createdAt
        - triggeringPromptUuid
        - compactedThroughPromptUuid
        - threadUuid
        - uuid
      type: object
    AiAgentMessage_AiAgentUser_:
      anyOf:
        - $ref: '#/components/schemas/AiAgentMessageUser_AiAgentUser_'
        - $ref: '#/components/schemas/AiAgentMessageAssistant'
    AiThreadMetadata:
      $ref: '#/components/schemas/Record_string.string_'
      description: >-
        Caller-defined labels on a thread. They never change what the request
        can access.
    AiThreadBindingSummary:
      allOf:
        - $ref: '#/components/schemas/AiThreadBinding'
        - properties:
            displayName:
              type: string
              nullable: true
          required:
            - displayName
          type: object
      description: >-
        A thread binding as read back, with the resource name. `displayName` is
        null once the resource is deleted.
    AiAgentThreadLiveStatus:
      properties:
        source:
          $ref: '#/components/schemas/AiAgentThreadStateSource'
        stateChangedAt:
          type: string
          nullable: true
        state:
          $ref: '#/components/schemas/AiAgentThreadLiveState'
        threadUuid:
          type: string
      required:
        - source
        - stateChangedAt
        - state
        - threadUuid
      type: object
    AiAgentUser:
      properties:
        name:
          type: string
        uuid:
          type: string
      required:
        - name
        - uuid
      type: object
    AiAgentThreadFirstMessage:
      properties:
        message:
          type: string
        uuid:
          type: string
      required:
        - message
        - uuid
      type: object
    AiAgentBattleProfile:
      type: string
      enum:
        - fast
        - baseline
        - luna
        - classic
        - composer
      description: |-
        `fast` is the JEV path, `baseline` has no fast decisions.
        `classic` and `composer` force the agent's query path.
    AiThreadCreatedFrom:
      type: string
      enum:
        - data_app
        - semantic_studio
        - slack
        - web_app
        - api
        - evals
        - scheduler
        - dashboard_analysis
    AiAgentMessageUser_AiAgentUser_:
      properties:
        hidden:
          type: boolean
          description: >-
            Hidden turn: the agent received and responded to this prompt, but
            the UI

            should not render its user bubble (e.g. the post-merge migration
            prompt

            injected from the writeback PR card).
        steers:
          items:
            $ref: '#/components/schemas/AiPromptSteer'
          type: array
        context:
          $ref: '#/components/schemas/AiPromptContext'
        user:
          $ref: '#/components/schemas/AiAgentUser'
        createdAt:
          type: string
        message:
          type: string
        threadUuid:
          type: string
        uuid:
          type: string
        role:
          type: string
          enum:
            - user
          nullable: false
      required:
        - hidden
        - steers
        - context
        - user
        - createdAt
        - message
        - threadUuid
        - uuid
        - role
      type: object
    AiAgentMessageAssistant:
      properties:
        loadout:
          allOf:
            - $ref: '#/components/schemas/AiAgentPromptLoadout'
          nullable: true
          description: >-
            Loadout the turn ran with; null for turns recorded before it was
            stored.
        jevDecision:
          allOf:
            - $ref: '#/components/schemas/AiAgentJevDecision'
          nullable: true
          description: >-
            What the fast decision model did on this turn; null when it did not
            run.
        responseTiming:
          allOf:
            - $ref: '#/components/schemas/AiPromptResponseTiming'
          nullable: true
        tokenUsage:
          allOf:
            - $ref: '#/components/schemas/AiPromptTokenUsage'
          nullable: true
        modelConfig:
          allOf:
            - $ref: '#/components/schemas/AiAgentModelConfig'
          nullable: true
        artifacts:
          items:
            $ref: '#/components/schemas/AiAgentMessageAssistantArtifact'
          type: array
          nullable: true
        savedQueryUuid:
          type: string
          nullable: true
        reasoning:
          items:
            $ref: '#/components/schemas/AiAgentReasoning'
          type: array
        toolResults:
          items:
            $ref: '#/components/schemas/AiAgentToolResult'
          type: array
        toolCalls:
          items:
            $ref: '#/components/schemas/AiAgentToolCall'
          type: array
        humanFeedback:
          type: string
          nullable: true
        humanScore:
          type: number
          format: double
          nullable: true
        createdAt:
          type: string
        interrupted:
          type: boolean
        errorMessage:
          type: string
          nullable: true
        message:
          type: string
          nullable: true
        threadUuid:
          type: string
        uuid:
          type: string
        status:
          type: string
          enum:
            - idle
            - pending
            - error
        role:
          type: string
          enum:
            - assistant
          nullable: false
      required:
        - loadout
        - jevDecision
        - responseTiming
        - tokenUsage
        - modelConfig
        - artifacts
        - savedQueryUuid
        - reasoning
        - toolResults
        - toolCalls
        - humanScore
        - createdAt
        - interrupted
        - errorMessage
        - message
        - threadUuid
        - uuid
        - status
        - role
      type: object
    Record_string.string_:
      properties: {}
      type: object
      description: Construct a type with a set of properties K of type T
    AiThreadBinding:
      anyOf:
        - properties:
            dashboardUuid:
              type: string
            type:
              type: string
              enum:
                - dashboard
              nullable: false
          required:
            - dashboardUuid
            - type
          type: object
        - properties:
            chartUuid:
              type: string
            type:
              type: string
              enum:
                - chart
              nullable: false
          required:
            - chartUuid
            - type
          type: object
      description: >-
        Resource a thread is bound to for its whole life. Same shape as the
        matching pinned context item.
    AiAgentThreadStateSource:
      type: string
      enum:
        - deterministic
        - classified
    AiAgentThreadLiveState:
      type: string
      enum:
        - working
        - waiting_for_you
        - idle
    AiPromptSteer:
      properties:
        consumedStep:
          type: number
          format: double
          nullable: true
        consumedAt:
          type: string
          nullable: true
        createdAt:
          type: string
        message:
          type: string
        promptUuid:
          type: string
        uuid:
          type: string
      required:
        - consumedStep
        - consumedAt
        - createdAt
        - message
        - promptUuid
        - uuid
      type: object
    AiPromptContext:
      items:
        $ref: '#/components/schemas/AiPromptContextItem'
      type: array
    AiAgentPromptLoadout:
      properties:
        base:
          $ref: '#/components/schemas/AiAgentLoadoutBase'
      required:
        - base
      type: object
    AiAgentJevDecision:
      properties:
        choices:
          items:
            $ref: '#/components/schemas/AiAgentJevChoice'
          type: array
          description: >-
            Options offered when JEV asked a clarifying question; sending
            `prompt` picks one.
        latencyMs:
          type: number
          format: double
        editKind:
          type: string
          nullable: true
          description: The resolved edit kind, e.g. filter_values or chart_type.
        fallbackReason:
          type: string
          nullable: true
          description: Why a resolved edit still went to the agent.
        reason:
          type: string
          nullable: true
          description: Why the edit could not be resolved, when JEV tried.
        applied:
          type: boolean
          description: True when the edit was applied without the agent.
        outcome:
          type: string
          enum:
            - intent
            - compound
            - needs_values
            - clarify
            - not_an_edit
            - unresolved
            - unavailable
            - routed
            - instant_reply
      required:
        - choices
        - latencyMs
        - editKind
        - fallbackReason
        - reason
        - applied
        - outcome
      type: object
    AiPromptResponseTiming:
      properties:
        stages:
          $ref: '#/components/schemas/AiPromptResponseStageTiming'
          description: Stage spans may overlap when the SDK runs tools concurrently.
        finishedAt:
          type: string
        firstTokenAt:
          type: string
          nullable: true
          description: >-
            First chunk the model produced (text, reasoning, or tool input).
            Null when nothing streamed.
        startedAt:
          type: string
      required:
        - finishedAt
        - firstTokenAt
        - startedAt
      type: object
    AiPromptTokenUsage:
      properties:
        decisionOutputTokens:
          type: number
          format: double
          description: >-
            TypeSafe/JEV output tokens, tracked separately from the main agent
            model.
        decisionInputTokens:
          type: number
          format: double
          description: >-
            TypeSafe/JEV input tokens, tracked separately from the main agent
            model.
        finalStepTotalTokens:
          type: number
          format: double
          description: >-
            Final step's total — the proxy for resident context size, drives
            compaction.
        totalTokens:
          type: number
          format: double
          description: 'Billing figure: tokens summed across every step of the run.'
      required:
        - totalTokens
      type: object
      description: >-
        Persisted shape. `finalStepTotalTokens` is absent on rows written before
        it existed.
    AiAgentModelConfig:
      properties:
        reasoning:
          type: boolean
        modelProvider:
          type: string
        modelName:
          type: string
      required:
        - modelProvider
        - modelName
      type: object
    AiAgentMessageAssistantArtifact:
      $ref: >-
        #/components/schemas/Pick_AiArtifact.artifactUuid-or-versionNumber-or-versionUuid-or-title-or-description-or-artifactType_
    AiAgentReasoning:
      properties:
        createdAt:
          type: string
          format: date-time
        text:
          type: string
        reasoningId:
          type: string
        promptUuid:
          type: string
        uuid:
          type: string
      required:
        - createdAt
        - text
        - reasoningId
        - promptUuid
        - uuid
      type: object
    AiAgentToolResult:
      allOf:
        - $ref: '#/components/schemas/AiAgentBaseToolResult'
        - anyOf:
            - properties:
                metadata:
                  anyOf:
                    - allOf:
                        - properties:
                            status:
                              type: string
                              enum:
                                - error
                                - success
                          required:
                            - status
                          type: object
                        - properties:
                            status:
                              type: string
                              enum:
                                - success
                              nullable: false
                          required:
                            - status
                          type: object
                    - allOf:
                        - properties:
                            status:
                              type: string
                              enum:
                                - error
                                - success
                          required:
                            - status
                          type: object
                        - properties:
                            requiresSnowflakeReauthentication:
                              type: boolean
                              enum:
                                - true
                            refusal:
                              properties:
                                projectUuid:
                                  type: string
                                  nullable: true
                                policyVersion:
                                  type: number
                                  format: double
                                operation:
                                  type: string
                                policyLayer:
                                  type: string
                                capability:
                                  type: string
                                  nullable: true
                                connectUrl:
                                  type: string
                                  nullable: true
                                settingsUrl:
                                  type: string
                                  nullable: true
                                action:
                                  type: string
                                  nullable: true
                                message:
                                  type: string
                                reason:
                                  type: string
                                code:
                                  type: string
                                  enum:
                                    - ai_access_refused
                                  nullable: false
                              required:
                                - connectUrl
                                - settingsUrl
                                - action
                                - message
                                - reason
                                - code
                              type: object
                            status:
                              type: string
                              enum:
                                - error
                              nullable: false
                          required:
                            - status
                          type: object
                    - allOf:
                        - properties:
                            ranking:
                              properties:
                                topMatchingFields:
                                  items:
                                    properties:
                                      verifiedChartUsage:
                                        type: number
                                        format: double
                                        nullable: true
                                      chartUsage:
                                        type: number
                                        format: double
                                        nullable: true
                                      searchRank:
                                        type: number
                                        format: double
                                        nullable: true
                                      fieldType:
                                        type: string
                                      tableName:
                                        type: string
                                      label:
                                        type: string
                                      name:
                                        type: string
                                    required:
                                      - fieldType
                                      - tableName
                                      - label
                                      - name
                                    type: object
                                  type: array
                                exploreSearchResults:
                                  items:
                                    properties:
                                      requiredFilters:
                                        items:
                                          properties:
                                            settings: {}
                                            values:
                                              items: {}
                                              type: array
                                            required:
                                              type: boolean
                                            operator:
                                              type: string
                                            tableName:
                                              type: string
                                            fieldRef:
                                              type: string
                                            fieldId:
                                              type: string
                                          required:
                                            - required
                                            - operator
                                            - tableName
                                            - fieldRef
                                            - fieldId
                                          type: object
                                        type: array
                                      joinedTables:
                                        items:
                                          type: string
                                        type: array
                                        nullable: true
                                      searchRank:
                                        type: number
                                        format: double
                                        nullable: true
                                      label:
                                        type: string
                                      name:
                                        type: string
                                    required:
                                      - label
                                      - name
                                    type: object
                                  type: array
                                searchQuery:
                                  type: string
                              required:
                                - searchQuery
                              type: object
                            status:
                              type: string
                              enum:
                                - error
                                - success
                          required:
                            - status
                          type: object
                        - properties:
                            status:
                              type: string
                              enum:
                                - success
                              nullable: false
                          required:
                            - status
                          type: object
                    - allOf:
                        - properties:
                            ranking:
                              properties:
                                topMatchingFields:
                                  items:
                                    properties:
                                      verifiedChartUsage:
                                        type: number
                                        format: double
                                        nullable: true
                                      chartUsage:
                                        type: number
                                        format: double
                                        nullable: true
                                      searchRank:
                                        type: number
                                        format: double
                                        nullable: true
                                      fieldType:
                                        type: string
                                      tableName:
                                        type: string
                                      label:
                                        type: string
                                      name:
                                        type: string
                                    required:
                                      - fieldType
                                      - tableName
                                      - label
                                      - name
                                    type: object
                                  type: array
                                exploreSearchResults:
                                  items:
                                    properties:
                                      requiredFilters:
                                        items:
                                          properties:
                                            settings: {}
                                            values:
                                              items: {}
                                              type: array
                                            required:
                                              type: boolean
                                            operator:
                                              type: string
                                            tableName:
                                              type: string
                                            fieldRef:
                                              type: string
                                            fieldId:
                                              type: string
                                          required:
                                            - required
                                            - operator
                                            - tableName
                                            - fieldRef
                                            - fieldId
                                          type: object
                                        type: array
                                      joinedTables:
                                        items:
                                          type: string
                                        type: array
                                        nullable: true
                                      searchRank:
                                        type: number
                                        format: double
                                        nullable: true
                                      label:
                                        type: string
                                      name:
                                        type: string
                                    required:
                                      - label
                                      - name
                                    type: object
                                  type: array
                                searchQuery:
                                  type: string
                              required:
                                - searchQuery
                              type: object
                            status:
                              type: string
                              enum:
                                - error
                                - success
                          required:
                            - status
                          type: object
                        - properties:
                            requiresSnowflakeReauthentication:
                              type: boolean
                              enum:
                                - true
                            refusal:
                              properties:
                                projectUuid:
                                  type: string
                                  nullable: true
                                policyVersion:
                                  type: number
                                  format: double
                                operation:
                                  type: string
                                policyLayer:
                                  type: string
                                capability:
                                  type: string
                                  nullable: true
                                connectUrl:
                                  type: string
                                  nullable: true
                                settingsUrl:
                                  type: string
                                  nullable: true
                                action:
                                  type: string
                                  nullable: true
                                message:
                                  type: string
                                reason:
                                  type: string
                                code:
                                  type: string
                                  enum:
                                    - ai_access_refused
                                  nullable: false
                              required:
                                - connectUrl
                                - settingsUrl
                                - action
                                - message
                                - reason
                                - code
                              type: object
                            status:
                              type: string
                              enum:
                                - error
                              nullable: false
                          required:
                            - status
                          type: object
                    - allOf:
                        - properties:
                            ranking:
                              properties:
                                searchQueries:
                                  items:
                                    properties:
                                      pagination:
                                        properties:
                                          totalPageCount:
                                            type: number
                                            format: double
                                          totalResults:
                                            type: number
                                            format: double
                                          pageSize:
                                            type: number
                                            format: double
                                          page:
                                            type: number
                                            format: double
                                        required:
                                          - totalPageCount
                                          - totalResults
                                          - pageSize
                                          - page
                                        type: object
                                      error:
                                        type: string
                                      status:
                                        type: string
                                        enum:
                                          - error
                                          - success
                                      results:
                                        items:
                                          properties:
                                            verifiedChartUsage:
                                              type: number
                                              format: double
                                              nullable: true
                                            chartUsage:
                                              type: number
                                              format: double
                                              nullable: true
                                            searchRank:
                                              type: number
                                              format: double
                                              nullable: true
                                            fieldType:
                                              type: string
                                            tableName:
                                              type: string
                                            label:
                                              type: string
                                            name:
                                              type: string
                                          required:
                                            - fieldType
                                            - tableName
                                            - label
                                            - name
                                          type: object
                                        type: array
                                      label:
                                        type: string
                                    required:
                                      - results
                                      - label
                                    type: object
                                  type: array
                              required:
                                - searchQueries
                              type: object
                            status:
                              type: string
                              enum:
                                - error
                                - success
                          required:
                            - status
                          type: object
                        - properties:
                            status:
                              type: string
                              enum:
                                - success
                              nullable: false
                          required:
                            - status
                          type: object
                    - allOf:
                        - properties:
                            ranking:
                              properties:
                                searchQueries:
                                  items:
                                    properties:
                                      pagination:
                                        properties:
                                          totalPageCount:
                                            type: number
                                            format: double
                                          totalResults:
                                            type: number
                                            format: double
                                          pageSize:
                                            type: number
                                            format: double
                                          page:
                                            type: number
                                            format: double
                                        required:
                                          - totalPageCount
                                          - totalResults
                                          - pageSize
                                          - page
                                        type: object
                                      error:
                                        type: string
                                      status:
                                        type: string
                                        enum:
                                          - error
                                          - success
                                      results:
                                        items:
                                          properties:
                                            verifiedChartUsage:
                                              type: number
                                              format: double
                                              nullable: true
                                            chartUsage:
                                              type: number
                                              format: double
                                              nullable: true
                                            searchRank:
                                              type: number
                                              format: double
                                              nullable: true
                                            fieldType:
                                              type: string
                                            tableName:
                                              type: string
                                            label:
                                              type: string
                                            name:
                                              type: string
                                          required:
                                            - fieldType
                                            - tableName
                                            - label
                                            - name
                                          type: object
                                        type: array
                                      label:
                                        type: string
                                    required:
                                      - results
                                      - label
                                    type: object
                                  type: array
                              required:
                                - searchQueries
                              type: object
                            status:
                              type: string
                              enum:
                                - error
                                - success
                          required:
                            - status
                          type: object
                        - properties:
                            requiresSnowflakeReauthentication:
                              type: boolean
                              enum:
                                - true
                            refusal:
                              properties:
                                projectUuid:
                                  type: string
                                  nullable: true
                                policyVersion:
                                  type: number
                                  format: double
                                operation:
                                  type: string
                                policyLayer:
                                  type: string
                                capability:
                                  type: string
                                  nullable: true
                                connectUrl:
                                  type: string
                                  nullable: true
                                settingsUrl:
                                  type: string
                                  nullable: true
                                action:
                                  type: string
                                  nullable: true
                                message:
                                  type: string
                                reason:
                                  type: string
                                code:
                                  type: string
                                  enum:
                                    - ai_access_refused
                                  nullable: false
                              required:
                                - connectUrl
                                - settingsUrl
                                - action
                                - message
                                - reason
                                - code
                              type: object
                            status:
                              type: string
                              enum:
                                - error
                              nullable: false
                          required:
                            - status
                          type: object
                    - properties:
                        contentSizeBytes:
                          type: number
                          format: double
                        name:
                          type: string
                        status:
                          type: string
                          enum:
                            - success
                          nullable: false
                      required:
                        - contentSizeBytes
                        - name
                        - status
                      type: object
                    - properties:
                        status:
                          type: string
                          enum:
                            - error
                          nullable: false
                      required:
                        - status
                      type: object
                    - allOf:
                        - properties:
                            status:
                              type: string
                              enum:
                                - error
                                - success
                                - not_found
                          required:
                            - status
                          type: object
                        - properties:
                            status:
                              type: string
                              enum:
                                - success
                                - not_found
                          required:
                            - status
                          type: object
                    - allOf:
                        - properties:
                            status:
                              type: string
                              enum:
                                - error
                                - success
                                - not_found
                          required:
                            - status
                          type: object
                        - properties:
                            requiresSnowflakeReauthentication:
                              type: boolean
                              enum:
                                - true
                            refusal:
                              properties:
                                projectUuid:
                                  type: string
                                  nullable: true
                                policyVersion:
                                  type: number
                                  format: double
                                operation:
                                  type: string
                                policyLayer:
                                  type: string
                                capability:
                                  type: string
                                  nullable: true
                                connectUrl:
                                  type: string
                                  nullable: true
                                settingsUrl:
                                  type: string
                                  nullable: true
                                action:
                                  type: string
                                  nullable: true
                                message:
                                  type: string
                                reason:
                                  type: string
                                code:
                                  type: string
                                  enum:
                                    - ai_access_refused
                                  nullable: false
                              required:
                                - connectUrl
                                - settingsUrl
                                - action
                                - message
                                - reason
                                - code
                              type: object
                            status:
                              type: string
                              enum:
                                - error
                              nullable: false
                          required:
                            - status
                          type: object
                    - properties:
                        streamingMessage: {}
                        status:
                          type: string
                          enum:
                            - streaming
                          nullable: false
                      required:
                        - status
                      type: object
                    - properties:
                        streamingMessage: {}
                        discovery:
                          anyOf:
                            - properties:
                                rationale:
                                  type: string
                                  nullable: true
                                fields:
                                  items:
                                    properties:
                                      description:
                                        type: string
                                        nullable: true
                                      isFromJoinedTable:
                                        type: boolean
                                      caseSensitiveFilters:
                                        type: string
                                        enum:
                                          - 'false'
                                          - not_applicable
                                          - 'true'
                                      fieldFilterType:
                                        type: string
                                      fieldValueType:
                                        type: string
                                      fieldType:
                                        enum:
                                          - metric
                                          - dimension
                                        type: string
                                      table:
                                        type: string
                                      label:
                                        type: string
                                      name:
                                        type: string
                                      fieldId:
                                        type: string
                                    required:
                                      - description
                                      - isFromJoinedTable
                                      - caseSensitiveFilters
                                      - fieldFilterType
                                      - fieldValueType
                                      - fieldType
                                      - table
                                      - label
                                      - name
                                      - fieldId
                                    type: object
                                  type: array
                                explore:
                                  properties:
                                    requiredFilters:
                                      items:
                                        properties:
                                          settings: {}
                                          values:
                                            items: {}
                                            type: array
                                          required:
                                            type: boolean
                                          operator:
                                            type: string
                                          tableName:
                                            type: string
                                          fieldRef:
                                            type: string
                                          fieldId:
                                            type: string
                                        required:
                                          - required
                                          - operator
                                          - tableName
                                          - fieldRef
                                          - fieldId
                                        type: object
                                      type: array
                                    joinedTables:
                                      items:
                                        type: string
                                      type: array
                                    baseTable:
                                      type: string
                                    label:
                                      type: string
                                    name:
                                      type: string
                                  required:
                                    - joinedTables
                                    - baseTable
                                    - label
                                    - name
                                  type: object
                                status:
                                  type: string
                                  enum:
                                    - resolved
                                  nullable: false
                              required:
                                - rationale
                                - fields
                                - explore
                                - status
                              type: object
                            - properties:
                                suggestedQuestion:
                                  type: string
                                candidates:
                                  items:
                                    properties:
                                      reason:
                                        type: string
                                      exploreLabel:
                                        type: string
                                      exploreName:
                                        type: string
                                    required:
                                      - reason
                                      - exploreLabel
                                      - exploreName
                                    type: object
                                  type: array
                                status:
                                  type: string
                                  enum:
                                    - ambiguous
                                  nullable: false
                              required:
                                - suggestedQuestion
                                - candidates
                                - status
                              type: object
                            - properties:
                                reason:
                                  type: string
                                status:
                                  type: string
                                  enum:
                                    - no_match
                                  nullable: false
                              required:
                                - reason
                                - status
                              type: object
                        status:
                          type: string
                          enum:
                            - success
                          nullable: false
                      required:
                        - discovery
                        - status
                      type: object
                    - properties:
                        status:
                          type: string
                          enum:
                            - rejected
                            - timeout
                      required:
                        - status
                      type: object
                    - properties:
                        versionUuids:
                          properties:
                            after:
                              type: string
                              nullable: true
                            before:
                              type: string
                              nullable: true
                          required:
                            - after
                            - before
                          type: object
                        warnings:
                          items:
                            type: string
                          type: array
                        href:
                          type: string
                        uuid:
                          type: string
                        name:
                          type: string
                        slug:
                          type: string
                        status:
                          type: string
                          enum:
                            - success
                          nullable: false
                      required:
                        - versionUuids
                        - warnings
                        - href
                        - uuid
                        - name
                        - slug
                        - status
                      type: object
                    - allOf:
                        - properties:
                            skill:
                              properties:
                                contentHash:
                                  type: string
                                  nullable: true
                                versionNumber:
                                  type: number
                                  format: double
                                  nullable: true
                                uuid:
                                  type: string
                                  nullable: true
                                builtIn:
                                  type: boolean
                                name:
                                  type: string
                              required:
                                - contentHash
                                - versionNumber
                                - uuid
                                - builtIn
                                - name
                              type: object
                            status:
                              type: string
                              enum:
                                - error
                                - success
                          required:
                            - status
                          type: object
                        - properties:
                            status:
                              type: string
                              enum:
                                - success
                              nullable: false
                          required:
                            - status
                          type: object
                    - allOf:
                        - properties:
                            skill:
                              properties:
                                contentHash:
                                  type: string
                                  nullable: true
                                versionNumber:
                                  type: number
                                  format: double
                                  nullable: true
                                uuid:
                                  type: string
                                  nullable: true
                                builtIn:
                                  type: boolean
                                name:
                                  type: string
                              required:
                                - contentHash
                                - versionNumber
                                - uuid
                                - builtIn
                                - name
                              type: object
                            status:
                              type: string
                              enum:
                                - error
                                - success
                          required:
                            - status
                          type: object
                        - properties:
                            requiresSnowflakeReauthentication:
                              type: boolean
                              enum:
                                - true
                            refusal:
                              properties:
                                projectUuid:
                                  type: string
                                  nullable: true
                                policyVersion:
                                  type: number
                                  format: double
                                operation:
                                  type: string
                                policyLayer:
                                  type: string
                                capability:
                                  type: string
                                  nullable: true
                                connectUrl:
                                  type: string
                                  nullable: true
                                settingsUrl:
                                  type: string
                                  nullable: true
                                action:
                                  type: string
                                  nullable: true
                                message:
                                  type: string
                                reason:
                                  type: string
                                code:
                                  type: string
                                  enum:
                                    - ai_access_refused
                                  nullable: false
                              required:
                                - connectUrl
                                - settingsUrl
                                - action
                                - message
                                - reason
                                - code
                              type: object
                            status:
                              type: string
                              enum:
                                - error
                              nullable: false
                          required:
                            - status
                          type: object
                    - allOf:
                        - properties:
                            diffs:
                              items:
                                type: string
                              type: array
                              nullable: true
                            aiWritebackRunUuid:
                              type: string
                            status:
                              type: string
                              enum:
                                - pending
                              nullable: false
                          required:
                            - aiWritebackRunUuid
                            - status
                          type: object
                        - properties:
                            status:
                              type: string
                              enum:
                                - pending
                                - success
                          required:
                            - status
                          type: object
                    - allOf:
                        - properties:
                            dbtSourceOptions:
                              items:
                                properties:
                                  projectSubPath:
                                    type: string
                                    nullable: true
                                  branch:
                                    type: string
                                    nullable: true
                                  repository:
                                    type: string
                                    nullable: true
                                  isPrimary:
                                    type: boolean
                                  name:
                                    type: string
                                  projectDbtSourceUuid:
                                    type: string
                                required:
                                  - projectSubPath
                                  - branch
                                  - repository
                                  - isPrimary
                                  - name
                                  - projectDbtSourceUuid
                                type: object
                              type: array
                              nullable: true
                            needsDbtSourceSelection:
                              type: boolean
                              nullable: true
                            changedModels:
                              items:
                                type: string
                              type: array
                              nullable: true
                            steps:
                              items:
                                properties:
                                  label:
                                    type: string
                                  kind:
                                    type: string
                                    enum:
                                      - stage
                                      - read
                                      - compile
                                      - edit
                                      - search
                                required:
                                  - label
                                  - kind
                                type: object
                              type: array
                              nullable: true
                            previewPendingSince:
                              type: string
                              nullable: true
                            previewUrl:
                              type: string
                              nullable: true
                            deletions:
                              type: number
                              format: double
                              nullable: true
                            additions:
                              type: number
                              format: double
                              nullable: true
                            commitSha:
                              type: string
                              nullable: true
                            prAction:
                              type: string
                              enum:
                                - opened
                                - updated
                                - null
                              nullable: true
                            prUrl:
                              type: string
                              nullable: true
                            status:
                              type: string
                              enum:
                                - success
                              nullable: false
                          required:
                            - prUrl
                            - status
                          type: object
                        - properties:
                            status:
                              type: string
                              enum:
                                - pending
                                - success
                          required:
                            - status
                          type: object
                    - allOf:
                        - properties:
                            errorCode:
                              type: string
                              enum:
                                - unknown
                                - bitbucket_token_missing
                                - git_write_permission
                                - github_not_installed
                                - gitlab_not_installed
                                - pull_request_not_open
                                - unsupported_source_control
                                - null
                              nullable: true
                            status:
                              type: string
                              enum:
                                - error
                              nullable: false
                          required:
                            - status
                          type: object
                        - properties:
                            requiresSnowflakeReauthentication:
                              type: boolean
                              enum:
                                - true
                            refusal:
                              properties:
                                projectUuid:
                                  type: string
                                  nullable: true
                                policyVersion:
                                  type: number
                                  format: double
                                operation:
                                  type: string
                                policyLayer:
                                  type: string
                                capability:
                                  type: string
                                  nullable: true
                                connectUrl:
                                  type: string
                                  nullable: true
                                settingsUrl:
                                  type: string
                                  nullable: true
                                action:
                                  type: string
                                  nullable: true
                                message:
                                  type: string
                                reason:
                                  type: string
                                code:
                                  type: string
                                  enum:
                                    - ai_access_refused
                                  nullable: false
                              required:
                                - connectUrl
                                - settingsUrl
                                - action
                                - message
                                - reason
                                - code
                              type: object
                            status:
                              type: string
                              enum:
                                - error
                              nullable: false
                          required:
                            - status
                          type: object
                    - properties:
                        name:
                          type: string
                          nullable: true
                        version:
                          type: number
                          format: double
                        appUuid:
                          type: string
                        status:
                          type: string
                          enum:
                            - pending
                          nullable: false
                      required:
                        - version
                        - appUuid
                        - status
                      type: object
                    - properties:
                        slug:
                          type: string
                          nullable: true
                        href:
                          type: string
                        name:
                          type: string
                        version:
                          type: number
                          format: double
                        appUuid:
                          type: string
                        status:
                          type: string
                          enum:
                            - success
                          nullable: false
                      required:
                        - href
                        - name
                        - version
                        - appUuid
                        - status
                      type: object
                    - properties:
                        message:
                          type: string
                        reason:
                          type: string
                          enum:
                            - failed
                            - cancelled
                        appUuid:
                          type: string
                          nullable: true
                        status:
                          type: string
                          enum:
                            - error
                          nullable: false
                      required:
                        - message
                        - reason
                        - appUuid
                        - status
                      type: object
                    - properties:
                        href:
                          type: string
                        name:
                          type: string
                        slug:
                          type: string
                        status:
                          type: string
                          enum:
                            - success
                          nullable: false
                      required:
                        - href
                        - name
                        - slug
                        - status
                      type: object
                    - allOf:
                        - properties:
                            queryReuseHit:
                              type: boolean
                            queryCacheHit:
                              type: boolean
                            chartImageUrl:
                              type: string
                              nullable: true
                            status:
                              type: string
                              enum:
                                - error
                                - success
                          required:
                            - status
                          type: object
                        - properties:
                            status:
                              type: string
                              enum:
                                - success
                              nullable: false
                          required:
                            - status
                          type: object
                    - allOf:
                        - properties:
                            queryReuseHit:
                              type: boolean
                            queryCacheHit:
                              type: boolean
                            chartImageUrl:
                              type: string
                              nullable: true
                            status:
                              type: string
                              enum:
                                - error
                                - success
                          required:
                            - status
                          type: object
                        - properties:
                            requiresSnowflakeReauthentication:
                              type: boolean
                              enum:
                                - true
                            refusal:
                              properties:
                                projectUuid:
                                  type: string
                                  nullable: true
                                policyVersion:
                                  type: number
                                  format: double
                                operation:
                                  type: string
                                policyLayer:
                                  type: string
                                capability:
                                  type: string
                                  nullable: true
                                connectUrl:
                                  type: string
                                  nullable: true
                                settingsUrl:
                                  type: string
                                  nullable: true
                                action:
                                  type: string
                                  nullable: true
                                message:
                                  type: string
                                reason:
                                  type: string
                                code:
                                  type: string
                                  enum:
                                    - ai_access_refused
                                  nullable: false
                              required:
                                - connectUrl
                                - settingsUrl
                                - action
                                - message
                                - reason
                                - code
                              type: object
                            status:
                              type: string
                              enum:
                                - error
                              nullable: false
                          required:
                            - status
                          type: object
                    - allOf:
                        - properties:
                            queryCacheHit:
                              type: boolean
                            status:
                              type: string
                              enum:
                                - error
                                - success
                          required:
                            - status
                          type: object
                        - properties:
                            status:
                              type: string
                              enum:
                                - success
                              nullable: false
                          required:
                            - status
                          type: object
                    - allOf:
                        - properties:
                            queryCacheHit:
                              type: boolean
                            status:
                              type: string
                              enum:
                                - error
                                - success
                          required:
                            - status
                          type: object
                        - properties:
                            requiresSnowflakeReauthentication:
                              type: boolean
                              enum:
                                - true
                            refusal:
                              properties:
                                projectUuid:
                                  type: string
                                  nullable: true
                                policyVersion:
                                  type: number
                                  format: double
                                operation:
                                  type: string
                                policyLayer:
                                  type: string
                                capability:
                                  type: string
                                  nullable: true
                                connectUrl:
                                  type: string
                                  nullable: true
                                settingsUrl:
                                  type: string
                                  nullable: true
                                action:
                                  type: string
                                  nullable: true
                                message:
                                  type: string
                                reason:
                                  type: string
                                code:
                                  type: string
                                  enum:
                                    - ai_access_refused
                                  nullable: false
                              required:
                                - connectUrl
                                - settingsUrl
                                - action
                                - message
                                - reason
                                - code
                              type: object
                            status:
                              type: string
                              enum:
                                - error
                              nullable: false
                          required:
                            - status
                          type: object
                    - allOf:
                        - properties:
                            status:
                              type: string
                              enum:
                                - error
                                - success
                                - rejected
                                - timeout
                          required:
                            - status
                          type: object
                        - properties:
                            status:
                              type: string
                              enum:
                                - success
                              nullable: false
                          required:
                            - status
                          type: object
                    - allOf:
                        - properties:
                            status:
                              type: string
                              enum:
                                - error
                                - success
                                - rejected
                                - timeout
                          required:
                            - status
                          type: object
                        - properties:
                            requiresSnowflakeReauthentication:
                              type: boolean
                              enum:
                                - true
                            refusal:
                              properties:
                                projectUuid:
                                  type: string
                                  nullable: true
                                policyVersion:
                                  type: number
                                  format: double
                                operation:
                                  type: string
                                policyLayer:
                                  type: string
                                capability:
                                  type: string
                                  nullable: true
                                connectUrl:
                                  type: string
                                  nullable: true
                                settingsUrl:
                                  type: string
                                  nullable: true
                                action:
                                  type: string
                                  nullable: true
                                message:
                                  type: string
                                reason:
                                  type: string
                                code:
                                  type: string
                                  enum:
                                    - ai_access_refused
                                  nullable: false
                              required:
                                - connectUrl
                                - settingsUrl
                                - action
                                - message
                                - reason
                                - code
                              type: object
                            status:
                              type: string
                              enum:
                                - error
                                - rejected
                                - timeout
                          required:
                            - status
                          type: object
                    - allOf:
                        - properties:
                            description:
                              type: string
                              nullable: true
                            title:
                              type: string
                            terminalNodeId:
                              type: string
                            queryUuid:
                              type: string
                            status:
                              type: string
                              enum:
                                - success
                              nullable: false
                          required:
                            - description
                            - title
                            - terminalNodeId
                            - queryUuid
                            - status
                          type: object
                        - properties:
                            status:
                              type: string
                              enum:
                                - success
                              nullable: false
                          required:
                            - status
                          type: object
                    - allOf:
                        - properties:
                            status:
                              type: string
                              enum:
                                - error
                                - rejected
                                - timeout
                          required:
                            - status
                          type: object
                        - properties:
                            requiresSnowflakeReauthentication:
                              type: boolean
                              enum:
                                - true
                            refusal:
                              properties:
                                projectUuid:
                                  type: string
                                  nullable: true
                                policyVersion:
                                  type: number
                                  format: double
                                operation:
                                  type: string
                                policyLayer:
                                  type: string
                                capability:
                                  type: string
                                  nullable: true
                                connectUrl:
                                  type: string
                                  nullable: true
                                settingsUrl:
                                  type: string
                                  nullable: true
                                action:
                                  type: string
                                  nullable: true
                                message:
                                  type: string
                                reason:
                                  type: string
                                code:
                                  type: string
                                  enum:
                                    - ai_access_refused
                                  nullable: false
                              required:
                                - connectUrl
                                - settingsUrl
                                - action
                                - message
                                - reason
                                - code
                              type: object
                            status:
                              type: string
                              enum:
                                - error
                                - rejected
                                - timeout
                          required:
                            - status
                          type: object
                    - allOf:
                        - properties:
                            ranking:
                              properties:
                                fields:
                                  items:
                                    properties:
                                      chartUsage:
                                        type: number
                                        format: double
                                        nullable: true
                                      searchRank:
                                        type: number
                                        format: double
                                        nullable: true
                                      fieldType:
                                        type: string
                                      tableName:
                                        type: string
                                      label:
                                        type: string
                                      name:
                                        type: string
                                    required:
                                      - fieldType
                                      - tableName
                                      - label
                                      - name
                                    type: object
                                  type: array
                                type:
                                  type: string
                                  enum:
                                    - metric
                                    - dimension
                                    - null
                                  nullable: true
                                searchQuery:
                                  type: string
                                  nullable: true
                              required:
                                - fields
                                - type
                                - searchQuery
                              type: object
                            status:
                              type: string
                              enum:
                                - error
                                - success
                          required:
                            - status
                          type: object
                        - properties:
                            status:
                              type: string
                              enum:
                                - success
                              nullable: false
                          required:
                            - status
                          type: object
                    - allOf:
                        - properties:
                            ranking:
                              properties:
                                fields:
                                  items:
                                    properties:
                                      chartUsage:
                                        type: number
                                        format: double
                                        nullable: true
                                      searchRank:
                                        type: number
                                        format: double
                                        nullable: true
                                      fieldType:
                                        type: string
                                      tableName:
                                        type: string
                                      label:
                                        type: string
                                      name:
                                        type: string
                                    required:
                                      - fieldType
                                      - tableName
                                      - label
                                      - name
                                    type: object
                                  type: array
                                type:
                                  type: string
                                  enum:
                                    - metric
                                    - dimension
                                    - null
                                  nullable: true
                                searchQuery:
                                  type: string
                                  nullable: true
                              required:
                                - fields
                                - type
                                - searchQuery
                              type: object
                            status:
                              type: string
                              enum:
                                - error
                                - success
                          required:
                            - status
                          type: object
                        - properties:
                            requiresSnowflakeReauthentication:
                              type: boolean
                              enum:
                                - true
                            refusal:
                              properties:
                                projectUuid:
                                  type: string
                                  nullable: true
                                policyVersion:
                                  type: number
                                  format: double
                                operation:
                                  type: string
                                policyLayer:
                                  type: string
                                capability:
                                  type: string
                                  nullable: true
                                connectUrl:
                                  type: string
                                  nullable: true
                                settingsUrl:
                                  type: string
                                  nullable: true
                                action:
                                  type: string
                                  nullable: true
                                message:
                                  type: string
                                reason:
                                  type: string
                                code:
                                  type: string
                                  enum:
                                    - ai_access_refused
                                  nullable: false
                              required:
                                - connectUrl
                                - settingsUrl
                                - action
                                - message
                                - reason
                                - code
                              type: object
                            status:
                              type: string
                              enum:
                                - error
                              nullable: false
                          required:
                            - status
                          type: object
                toolName:
                  $ref: '#/components/schemas/Exclude_ToolName.never_'
                toolType:
                  type: string
                  enum:
                    - built-in
                  nullable: false
              required:
                - metadata
                - toolName
                - toolType
              type: object
            - properties:
                metadata:
                  allOf:
                    - $ref: '#/components/schemas/Record_string.unknown_'
                  nullable: true
                toolName:
                  $ref: '#/components/schemas/AiAgentMcpToolName'
                toolType:
                  type: string
                  enum:
                    - mcp
                  nullable: false
              required:
                - metadata
                - toolName
                - toolType
              type: object
    AiAgentToolCall:
      allOf:
        - $ref: '#/components/schemas/AiAgentBaseToolCall'
        - anyOf:
            - properties:
                toolName:
                  type: string
                toolType:
                  type: string
                  enum:
                    - built-in
                  nullable: false
              required:
                - toolName
                - toolType
              type: object
            - properties:
                mcpServer:
                  allOf:
                    - $ref: '#/components/schemas/AiAgentToolCallMcpServer'
                  nullable: true
                toolName:
                  $ref: '#/components/schemas/AiAgentMcpToolName'
                toolType:
                  type: string
                  enum:
                    - mcp
                  nullable: false
              required:
                - mcpServer
                - toolName
                - toolType
              type: object
    AiPromptContextItem:
      anyOf:
        - properties:
            chartKind:
              allOf:
                - $ref: '#/components/schemas/ChartKind'
              nullable: true
            runtimeOverrides:
              allOf:
                - $ref: '#/components/schemas/AiChartRuntimeOverrides'
              nullable: true
            displayName:
              type: string
              nullable: true
            pinnedVersionUuid:
              type: string
              nullable: true
            chartSlug:
              type: string
              nullable: true
            chartUuid:
              type: string
            type:
              type: string
              enum:
                - chart
              nullable: false
          required:
            - chartKind
            - runtimeOverrides
            - displayName
            - pinnedVersionUuid
            - chartSlug
            - chartUuid
            - type
          type: object
        - properties:
            runtimeOverrides:
              allOf:
                - $ref: '#/components/schemas/AiDashboardRuntimeOverrides'
              nullable: true
            displayName:
              type: string
              nullable: true
            pinnedVersionUuid:
              type: string
              nullable: true
            dashboardSlug:
              type: string
              nullable: true
            dashboardUuid:
              type: string
            type:
              type: string
              enum:
                - dashboard
              nullable: false
          required:
            - runtimeOverrides
            - displayName
            - pinnedVersionUuid
            - dashboardSlug
            - dashboardUuid
            - type
          type: object
        - properties:
            displayName:
              type: string
              nullable: true
            pinnedVersionUuid:
              type: string
              nullable: true
            sqlChartSlug:
              type: string
              nullable: true
            sqlChartUuid:
              type: string
            type:
              type: string
              enum:
                - sql_chart
              nullable: false
          required:
            - displayName
            - pinnedVersionUuid
            - sqlChartSlug
            - sqlChartUuid
            - type
          type: object
        - properties:
            displayName:
              type: string
              nullable: true
            pinnedVersionUuid:
              type: string
              nullable: true
            composerChartSlug:
              type: string
              nullable: true
            composerChartUuid:
              type: string
            type:
              type: string
              enum:
                - composer_chart
              nullable: false
          required:
            - displayName
            - pinnedVersionUuid
            - composerChartSlug
            - composerChartUuid
            - type
          type: object
        - properties:
            displayName:
              type: string
              nullable: true
            promptUuid:
              type: string
              nullable: true
            threadUuid:
              type: string
            type:
              type: string
              enum:
                - thread
              nullable: false
          required:
            - displayName
            - promptUuid
            - threadUuid
            - type
          type: object
        - properties:
            path:
              type: string
            type:
              type: string
              enum:
                - file
              nullable: false
          required:
            - path
            - type
          type: object
        - properties:
            fullName:
              type: string
            type:
              type: string
              enum:
                - repository
              nullable: false
          required:
            - fullName
            - type
          type: object
        - properties:
            tables:
              items:
                $ref: '#/components/schemas/AiPromptExternalSourceTable'
              type: array
            sourceType:
              allOf:
                - $ref: '#/components/schemas/ExternalSourceType'
              nullable: true
            displayName:
              type: string
            sourceUuid:
              type: string
            type:
              type: string
              enum:
                - external_source
              nullable: false
          required:
            - tables
            - sourceType
            - displayName
            - sourceUuid
            - type
          type: object
        - properties:
            sizeBytes:
              type: number
              format: double
            fileName:
              type: string
            fileUuid:
              type: string
            type:
              type: string
              enum:
                - thread_file
              nullable: false
          required:
            - sizeBytes
            - fileName
            - fileUuid
            - type
          type: object
        - allOf:
            - properties:
                fileName:
                  type: string
                fileUuid:
                  type: string
                type:
                  type: string
                  enum:
                    - thread_image
                  nullable: false
              required:
                - fileName
                - fileUuid
                - type
              type: object
            - $ref: '#/components/schemas/AiPromptThreadImageSnapshot'
        - properties:
            title:
              type: string
              nullable: true
            status:
              allOf:
                - $ref: '#/components/schemas/AiAgentReviewItemPrState'
              nullable: true
            provider:
              allOf:
                - $ref: '#/components/schemas/PullRequestProvider'
              nullable: true
            prNumber:
              type: number
              format: double
              nullable: true
            prUrl:
              type: string
            type:
              type: string
              enum:
                - pull_request
              nullable: false
          required:
            - title
            - status
            - provider
            - prNumber
            - prUrl
            - type
          type: object
        - properties:
            payload:
              $ref: '#/components/schemas/AiPromptProposedChangePayload'
            fingerprint:
              type: string
            type:
              type: string
              enum:
                - proposed_change
              nullable: false
          required:
            - payload
            - fingerprint
            - type
          type: object
        - properties:
            evidenceExcerpts:
              items:
                $ref: '#/components/schemas/AiAgentEvidenceExcerpt'
              type: array
            findingCount:
              type: number
              format: double
            rootCause:
              $ref: '#/components/schemas/AiAgentRootCause'
            title:
              type: string
            fingerprint:
              type: string
            type:
              type: string
              enum:
                - review_finding
              nullable: false
          required:
            - evidenceExcerpts
            - findingCount
            - rootCause
            - title
            - fingerprint
            - type
          type: object
        - properties:
            projectName:
              type: string
              nullable: true
            status:
              allOf:
                - $ref: '#/components/schemas/AiAgentReviewRemediationStatus'
              nullable: true
            previewThreadUuid:
              type: string
              nullable: true
            previewProjectUuid:
              type: string
            type:
              type: string
              enum:
                - preview_environment
              nullable: false
          required:
            - projectName
            - status
            - previewThreadUuid
            - previewProjectUuid
            - type
          type: object
        - properties:
            displayName:
              type: string
              nullable: true
            appSlug:
              type: string
              nullable: true
            loc:
              type: string
            text:
              type: string
            tag:
              type: string
            version:
              type: number
              format: double
            appUuid:
              type: string
            type:
              type: string
              enum:
                - data_app_element
              nullable: false
          required:
            - displayName
            - appSlug
            - loc
            - text
            - tag
            - version
            - appUuid
            - type
          type: object
        - properties:
            title:
              type: string
            nodeId:
              type: string
            versionUuid:
              type: string
            artifactUuid:
              type: string
            type:
              type: string
              enum:
                - composer_node
              nullable: false
          required:
            - title
            - nodeId
            - versionUuid
            - artifactUuid
            - type
          type: object
        - properties:
            displayName:
              type: string
              nullable: true
            appSlug:
              type: string
              nullable: true
            restoredFromVersion:
              type: number
              format: double
            version:
              type: number
              format: double
            appUuid:
              type: string
            type:
              type: string
              enum:
                - data_app_restore
              nullable: false
          required:
            - displayName
            - appSlug
            - restoredFromVersion
            - version
            - appUuid
            - type
          type: object
        - properties:
            isPersonal:
              type: boolean
            pinnedVersion:
              type: number
              format: double
              nullable: true
            displayName:
              type: string
              nullable: true
            appSlug:
              type: string
              nullable: true
            appUuid:
              type: string
            type:
              type: string
              enum:
                - data_app
              nullable: false
          required:
            - isPersonal
            - pinnedVersion
            - displayName
            - appSlug
            - appUuid
            - type
          type: object
        - properties:
            displayName:
              type: string
              nullable: true
            pinnedVersionUuid:
              type: string
              nullable: true
            documentSlug:
              type: string
              nullable: true
            documentUuid:
              type: string
            type:
              type: string
              enum:
                - document
              nullable: false
          required:
            - displayName
            - pinnedVersionUuid
            - documentSlug
            - documentUuid
            - type
          type: object
        - properties:
            fieldName:
              type: string
              nullable: true
            modelName:
              type: string
            type:
              type: string
              enum:
                - semantic_model
              nullable: false
          required:
            - fieldName
            - modelName
            - type
          type: object
        - properties:
            displayName:
              type: string
              nullable: true
            designSlug:
              type: string
              nullable: true
            designUuid:
              type: string
            type:
              type: string
              enum:
                - design
              nullable: false
          required:
            - displayName
            - designSlug
            - designUuid
            - type
          type: object
        - properties:
            displayName:
              type: string
              nullable: true
            builtIn:
              type: boolean
            versionNumber:
              type: number
              format: double
              nullable: true
            pinnedVersionUuid:
              type: string
              nullable: true
            skillUuid:
              type: string
              nullable: true
            arguments:
              type: string
            name:
              type: string
            type:
              type: string
              enum:
                - skill
              nullable: false
          required:
            - displayName
            - builtIn
            - versionNumber
            - pinnedVersionUuid
            - skillUuid
            - arguments
            - name
            - type
          type: object
    AiAgentLoadoutBase:
      type: string
      enum:
        - classic
        - composer
        - no_data_access
        - deep_research_worker
        - deep_research_coordinator
        - semantic_studio
      description: The exclusive core of an agent run's loadout.
    AiAgentJevChoice:
      properties:
        prompt:
          type: string
        label:
          type: string
      required:
        - prompt
        - label
      type: object
    AiPromptResponseStageTiming:
      properties:
        queryReuseHits:
          type: number
          format: double
          description: Query tools served from a verified prior-query result.
        queryCacheHits:
          type: number
          format: double
          description: Query tools whose execution returned a result-cache hit.
        renderMs:
          type: number
          format: double
          description: Exact union of chart, dashboard, app and export tool spans.
        apiMs:
          type: number
          format: double
          description: Exact union of completed non-query/non-render tool spans.
        queryMs:
          type: number
          format: double
          description: Exact union of completed query-tool spans.
        providerMs:
          type: number
          format: double
          nullable: true
          description: Main model inference. Null when the provider hid the split.
        preparationMs:
          type: number
          format: double
          description: Request start through context, catalog and tool preparation.
      required:
        - queryReuseHits
        - queryCacheHits
        - renderMs
        - apiMs
        - queryMs
        - providerMs
        - preparationMs
      type: object
      description: >-
        Wall-clock timing of one model run, stamped by the agent loop. ISO
        strings.
    Pick_AiArtifact.artifactUuid-or-versionNumber-or-versionUuid-or-title-or-description-or-artifactType_:
      properties:
        title:
          type: string
          nullable: true
        description:
          type: string
          nullable: true
        versionUuid:
          type: string
        versionNumber:
          type: number
          format: double
        artifactUuid:
          type: string
        artifactType:
          type: string
          enum:
            - chart
            - dashboard
      required:
        - title
        - description
        - versionUuid
        - versionNumber
        - artifactUuid
        - artifactType
      type: object
      description: From T, pick a set of properties whose keys are in the union K
    AiAgentBaseToolResult:
      properties:
        toolCallId:
          type: string
        createdAt:
          type: string
          format: date-time
        result:
          type: string
        promptUuid:
          type: string
        uuid:
          type: string
      required:
        - toolCallId
        - createdAt
        - result
        - promptUuid
        - uuid
      type: object
    Exclude_ToolName.never_:
      type: string
      enum:
        - query
        - generateDashboard
        - generateVisualization
        - runSql
        - findContent
        - createContent
        - analyzeFieldImpact
        - askUser
        - closePullRequest
        - createScheduledDelivery
        - delegateResearchTask
        - describeWarehouseTable
        - discoverFields
        - discoverRepos
        - draftProjectContext
        - editContent
        - editDbtProject
        - editProjectContext
        - editRepo
        - exploreRepo
        - findCharts
        - findCustomChartTypes
        - findDashboards
        - findExplores
        - findFields
        - generateDataApp
        - generateHashes
        - generateUuids
        - getDashboardCharts
        - getKnowledgeDocumentContent
        - getMetadata
        - getProjectInfo
        - getPullRequestDiff
        - grepFields
        - grepWarehouseColumns
        - iterateDataApp
        - listChanges
        - listContent
        - listDataAppConnections
        - listDataAppThemes
        - listKnowledgeDocuments
        - listProjects
        - listWarehouseTables
        - listWorkstreams
        - loadMcpTools
        - loadProjectContext
        - loadSkill
        - proposeSemanticLayerChange
        - read
        - readAttachments
        - readContent
        - readPinnedThread
        - readSemanticModel
        - resolveUrl
        - runComposerQueries
        - runContentQuery
        - runMetricQuery
        - runQuery
        - runSavedChart
        - searchFieldValues
        - searchSemanticLayer
        - submitResearchReport
        - submitWorkerFindings
        - syncDbtProject
        - updateUserName
        - verify
        - visualize
        - write
      description: Exclude from T those types that are assignable to U
    Record_string.unknown_:
      properties: {}
      additionalProperties: {}
      type: object
      description: Construct a type with a set of properties K of type T
    AiAgentMcpToolName:
      type: string
    AiAgentBaseToolCall:
      properties:
        toolArgs:
          additionalProperties: true
          type: object
        createdAt:
          type: string
          format: date-time
        parentToolCallId:
          type: string
          nullable: true
        toolCallId:
          type: string
        promptUuid:
          type: string
        uuid:
          type: string
      required:
        - toolArgs
        - createdAt
        - parentToolCallId
        - toolCallId
        - promptUuid
        - uuid
      type: object
    AiAgentToolCallMcpServer:
      $ref: '#/components/schemas/Pick_AiMcpServer.uuid-or-name-or-iconUrl_'
    ChartKind:
      enum:
        - line
        - horizontal_bar
        - vertical_bar
        - scatter
        - area
        - mixed
        - pie
        - table
        - big_number
        - funnel
        - custom
        - treemap
        - gauge
        - map
        - sankey
        - data_app_viz
      type: string
    AiChartRuntimeOverrides:
      properties:
        dateZoom:
          $ref: '#/components/schemas/DateZoom'
        dashboardParameters:
          $ref: '#/components/schemas/ParametersValuesMap'
        dashboardFilters:
          $ref: '#/components/schemas/DashboardFilters'
      type: object
      description: >-
        Runtime state captured at pin time for a chart context. When a user pins
        a

        chart from a dashboard view, these are the dashboard-level overrides
        that

        were applied to the chart on screen at that moment.
    AiDashboardRuntimeOverrides:
      properties:
        tileParameters:
          items:
            $ref: '#/components/schemas/AiDashboardTileParameters'
          type: array
          description: >-
            The values each tile runs with; present only when the viewer's picks
            on parameter controls change them
        dateZoomControls:
          items:
            $ref: '#/components/schemas/AiDashboardDateZoomControl'
          type: array
          description: Every named date zoom on the dashboard; absent when it has none
        dateZoom:
          allOf:
            - $ref: '#/components/schemas/DateZoom'
          nullable: true
        dashboardParameters:
          $ref: '#/components/schemas/ParametersValuesMap'
        dashboardFilters:
          $ref: '#/components/schemas/AiDashboardFilters'
        activeTab:
          $ref: '#/components/schemas/AiDashboardActiveTab'
      type: object
    AiPromptExternalSourceTable:
      properties:
        displayName:
          type: string
        tableName:
          type: string
        tableUuid:
          type: string
      required:
        - displayName
        - tableName
        - tableUuid
      type: object
    ExternalSourceType:
      description: >-
        Typed parquet sources; catalog scope publishes explores, attachment
        scope does not.
      enum:
        - csv
        - google_sheets
      type: string
    AiPromptThreadImageSnapshot:
      properties:
        height:
          type: number
          format: double
        width:
          type: number
          format: double
        mediaType:
          $ref: '#/components/schemas/AiThreadImageMediaType'
        sizeBytes:
          type: number
          format: double
      required:
        - height
        - width
        - mediaType
        - sizeBytes
      type: object
    AiAgentReviewItemPrState:
      type: string
      enum:
        - open
        - merged
        - closed
    PullRequestProvider:
      enum:
        - github
        - gitlab
        - bitbucket
      type: string
    AiPromptProposedChangePayload:
      anyOf:
        - properties:
            entry:
              $ref: '#/components/schemas/AiAgentJudgeProjectContextEntry'
            changeKind:
              type: string
              enum:
                - project_context
              nullable: false
          required:
            - entry
            - changeKind
          type: object
        - properties:
            recommendation:
              $ref: '#/components/schemas/AiAgentRecommendation'
            changeKind:
              type: string
              enum:
                - semantic_layer
              nullable: false
          required:
            - recommendation
            - changeKind
          type: object
    AiAgentEvidenceExcerpt:
      properties:
        redacted:
          type: boolean
        text:
          type: string
        source:
          type: string
          enum:
            - user_prompt
            - assistant_answer
            - next_user_prompt
            - conversation_context
            - tool_call
            - tool_result
            - agent_config
      required:
        - redacted
        - text
        - source
      type: object
    AiAgentRootCause:
      type: string
      enum:
        - semantic_layer
        - project_context
        - agent_configuration
        - product_capability
        - runtime_reliability
        - feedback_quality
        - not_a_failure
        - ambiguous
    AiAgentReviewRemediationStatus:
      type: string
      enum:
        - queued
        - running
        - pr_open
        - preview_ready
        - resolved
        - failed
    Pick_AiMcpServer.uuid-or-name-or-iconUrl_:
      properties:
        name:
          type: string
        uuid:
          type: string
        iconUrl:
          type: string
          nullable: true
      required:
        - name
        - uuid
        - iconUrl
      type: object
      description: From T, pick a set of properties whose keys are in the union K
    DateZoom:
      properties:
        xAxisFieldId:
          type: string
        granularity:
          anyOf:
            - $ref: '#/components/schemas/DateGranularity'
            - type: string
      type: object
    ParametersValuesMap:
      $ref: '#/components/schemas/Record_string.ParameterValue_'
    DashboardFilters:
      properties:
        tableCalculations:
          items:
            $ref: '#/components/schemas/DashboardFilterRule'
          type: array
        metrics:
          items:
            $ref: '#/components/schemas/DashboardFilterRule'
          type: array
        dimensions:
          items:
            $ref: '#/components/schemas/DashboardFilterRule'
          type: array
      required:
        - tableCalculations
        - metrics
        - dimensions
      type: object
    AiDashboardTileParameters:
      properties:
        parameters:
          $ref: '#/components/schemas/ParametersValuesMap'
        tile:
          $ref: '#/components/schemas/AiDashboardTileRef'
      required:
        - parameters
        - tile
      type: object
    AiDashboardDateZoomControl:
      properties:
        tiles:
          items:
            $ref: '#/components/schemas/AiDashboardTileRef'
          type: array
        isViewerPick:
          type: boolean
          description: >-
            False: the saved grain when the context was attached, which the
            saved config supersedes
        granularity:
          anyOf:
            - $ref: '#/components/schemas/DateGranularity'
            - type: string
          description: The viewer's pick, else the control's saved grain
        name:
          type: string
        uuid:
          type: string
      required:
        - tiles
        - isViewerPick
        - granularity
        - name
        - uuid
      type: object
    AiDashboardFilters:
      properties:
        tableCalculations:
          items:
            $ref: '#/components/schemas/AiDashboardFilterRule'
          type: array
        metrics:
          items:
            $ref: '#/components/schemas/AiDashboardFilterRule'
          type: array
        dimensions:
          items:
            $ref: '#/components/schemas/AiDashboardFilterRule'
          type: array
      required:
        - tableCalculations
        - metrics
        - dimensions
      type: object
    AiDashboardActiveTab:
      properties:
        name:
          type: string
        uuid:
          type: string
      required:
        - name
        - uuid
      type: object
    AiThreadImageMediaType:
      type: string
      enum:
        - image/png
        - image/jpeg
        - image/webp
    AiAgentJudgeProjectContextEntry:
      properties:
        objects:
          items:
            $ref: '#/components/schemas/AiProjectContextObjectRef'
          type: array
        terms:
          items:
            type: string
          type: array
        content:
          type: string
        kind:
          type: string
          enum:
            - definition
            - context
        id:
          type: string
          nullable: true
        op:
          type: string
          enum:
            - create
            - update
      required:
        - objects
        - terms
        - content
        - kind
        - id
        - op
      type: object
    AiAgentRecommendation:
      properties:
        targetRefs:
          items:
            $ref: '#/components/schemas/AiAgentTargetRef'
          type: array
        rationale:
          type: string
        title:
          type: string
        actionType:
          $ref: '#/components/schemas/AiAgentRecommendationAction'
      required:
        - targetRefs
        - rationale
        - title
        - actionType
      type: object
    DateGranularity:
      enum:
        - Second
        - Minute
        - Hour
        - Day
        - Week
        - Month
        - Quarter
        - Year
      type: string
    Record_string.ParameterValue_:
      properties: {}
      additionalProperties:
        $ref: '#/components/schemas/ParameterValue'
      type: object
      description: Construct a type with a set of properties K of type T
    DashboardFilterRule:
      allOf:
        - $ref: >-
            #/components/schemas/FilterRule_FilterOperator.DashboardFieldTarget.AnyType.AnyType_
        - properties:
            sectionId:
              type: string
              description: >-
                Id of a DashboardConfig.controlSections entry; unsectioned if
                absent or dangling.
            lockedTabUuids:
              items:
                type: string
              type: array
              description: >-
                Tab UUIDs where this filter is locked. When the active tab is in
                this

                list, viewers see the filter but cannot change it, and URL /
                embed

                filter overrides targeting the same field are ignored on that
                tab.

                Empty or omitted means the filter is not locked anywhere.
            requiredGroupId:
              type: string
              description: >-
                Dashboard filters sharing a requiredGroupId form an "any-one
                required"

                group: the dashboard is locked until at least one member has a
                value.
            singleValue:
              type: boolean
            label:
              type: string
            tileTargets:
              $ref: '#/components/schemas/DashboardTileTargets'
          type: object
    AiDashboardTileRef:
      properties:
        name:
          type: string
        uuid:
          type: string
      required:
        - name
        - uuid
      type: object
    AiDashboardFilterRule:
      $ref: >-
        #/components/schemas/Omit_DashboardFilterRule.id-or-tileTargets-or-lockedTabUuids-or-requiredGroupId-or-sectionId_
    AiProjectContextObjectRef:
      anyOf:
        - type: string
        - $ref: '#/components/schemas/AiProjectContextTypedObjectRef'
    AiAgentTargetRef:
      anyOf:
        - $ref: '#/components/schemas/AiAgentSemanticTargetRef'
        - properties:
            agentUuid:
              type: string
            type:
              type: string
              enum:
                - agent
              nullable: false
          required:
            - agentUuid
            - type
          type: object
        - properties:
            setting:
              $ref: '#/components/schemas/AiAgentConfigurationSetting'
            type:
              type: string
              enum:
                - agent_config
              nullable: false
          required:
            - setting
            - type
          type: object
        - properties:
            capabilityKey:
              type: string
            type:
              type: string
              enum:
                - product_capability
              nullable: false
          required:
            - capabilityKey
            - type
          type: object
        - properties:
            key:
              type: string
            type:
              type: string
              enum:
                - runtime
              nullable: false
          required:
            - key
            - type
          type: object
        - properties:
            tileUuid:
              type: string
              nullable: true
            dashboardUuid:
              type: string
              nullable: true
            chartUuid:
              type: string
              nullable: true
            type:
              type: string
              enum:
                - content
              nullable: false
          required:
            - tileUuid
            - dashboardUuid
            - chartUuid
            - type
          type: object
    AiAgentRecommendationAction:
      type: string
      enum:
        - update_semantic_yaml
        - update_agent_instructions
        - add_knowledge_document
        - enable_data_access
        - enable_sql_mode
        - enable_self_improvement
        - configure_mcp_server
        - adjust_explore_tags
        - update_access
        - route_to_product_work
        - request_more_evidence
        - create_skill
        - no_action
    ParameterValue:
      anyOf:
        - type: string
        - type: number
          format: double
        - items:
            type: string
          type: array
        - items:
            type: number
            format: double
          type: array
    FilterRule_FilterOperator.DashboardFieldTarget.AnyType.AnyType_:
      properties:
        includeNull:
          type: boolean
          description: >-
            For the `equals` operator on string fields, also match rows where
            the

            field is null (compiles to `field IN (...) OR field IS NULL`). Lets
            users

            combine null with selected values in a single "is" rule.
        values:
          items:
            $ref: '#/components/schemas/AnyType'
          type: array
          description: Values to filter by
        operator:
          $ref: '#/components/schemas/FilterOperator'
          description: Filter operator
        id:
          type: string
          description: Unique identifier for the filter
        target:
          $ref: '#/components/schemas/DashboardFieldTarget'
          description: Target field for the filter
        settings:
          $ref: '#/components/schemas/AnyType'
          description: Additional settings for date/time filters
        disabled:
          type: boolean
          description: Whether this filter is disabled
        required:
          type: boolean
          description: Whether this filter is required
        caseSensitive:
          type: boolean
          description: >-
            Overrides the field/explore case-sensitivity for this rule only.

            Used by internal features like autocomplete search that must always

            match case-insensitively regardless of the field's configured
            setting.
      required:
        - operator
        - id
        - target
      type: object
      additionalProperties: true
    DashboardTileTargets:
      properties: {}
      additionalProperties:
        $ref: '#/components/schemas/DashboardTileTarget'
      type: object
      description: >-
        Deliberately an index-signature literal, not `Record<string, ...>`. When

        TSOA first resolves `Record<string, DashboardTileTarget>` inside a
        mapped

        type (e.g. `Omit<DashboardFilterRule, 'id'>` in content-as-code types),
        it

        caches an EMPTY model under the shared
        `Record_string.DashboardTileTarget_`

        name, and request validation then strips every tileTargets entry from

        bodies — silently breaking dashboard filters on SQL chart tiles. The

        index-signature form resolves correctly in every context.
    Omit_DashboardFilterRule.id-or-tileTargets-or-lockedTabUuids-or-requiredGroupId-or-sectionId_:
      $ref: >-
        #/components/schemas/Pick_DashboardFilterRule.Exclude_keyofDashboardFilterRule.id-or-tileTargets-or-lockedTabUuids-or-requiredGroupId-or-sectionId__
      description: Construct a type with the properties of T except for those in type K.
    AiProjectContextTypedObjectRef:
      anyOf:
        - properties:
            name:
              type: string
            type:
              type: string
              enum:
                - explore
              nullable: false
          required:
            - name
            - type
          type: object
        - properties:
            fieldId:
              type: string
            explore:
              type: string
            type:
              type: string
              enum:
                - field
              nullable: false
          required:
            - fieldId
            - explore
            - type
          type: object
    AiAgentSemanticTargetRef:
      anyOf:
        - properties:
            modelName:
              type: string
            type:
              type: string
              enum:
                - model
              nullable: false
          required:
            - modelName
            - type
          type: object
        - properties:
            exploreName:
              type: string
            modelName:
              type: string
            type:
              type: string
              enum:
                - explore
              nullable: false
          required:
            - exploreName
            - modelName
            - type
          type: object
        - properties:
            exploreName:
              type: string
            joinName:
              type: string
            modelName:
              type: string
            type:
              type: string
              enum:
                - join
              nullable: false
          required:
            - joinName
            - modelName
            - type
          type: object
        - properties:
            dimensionName:
              type: string
            modelName:
              type: string
            type:
              type: string
              enum:
                - dimension
              nullable: false
          required:
            - dimensionName
            - modelName
            - type
          type: object
        - properties:
            dimensionName:
              type: string
            metricName:
              type: string
            modelName:
              type: string
            type:
              type: string
              enum:
                - metric
              nullable: false
          required:
            - metricName
            - modelName
            - type
          type: object
        - properties:
            dimensionName:
              type: string
            parentDimensionName:
              type: string
            modelName:
              type: string
            type:
              type: string
              enum:
                - additional_dimension
              nullable: false
          required:
            - dimensionName
            - parentDimensionName
            - modelName
            - type
          type: object
        - properties:
            fieldName:
              type: string
            exploreName:
              type: string
            modelName:
              type: string
            type:
              type: string
              enum:
                - required_filter
              nullable: false
          required:
            - fieldName
            - exploreName
            - modelName
            - type
          type: object
        - properties:
            targetName:
              type: string
            targetType:
              type: string
              enum:
                - model
                - dimension
                - metric
            modelName:
              type: string
            type:
              type: string
              enum:
                - ai_hint
              nullable: false
          required:
            - targetName
            - targetType
            - modelName
            - type
          type: object
    AiAgentConfigurationSetting:
      type: string
      enum:
        - instructions
        - knowledge_documents
        - data_access
        - self_improvement
        - sql_mode
        - mcp_servers
        - explore_tags
        - space_access
        - user_or_group_access
        - skills
        - unknown
    FilterOperator:
      enum:
        - isNull
        - notNull
        - equals
        - notEquals
        - startsWith
        - endsWith
        - include
        - doesNotInclude
        - lessThan
        - lessThanOrEqual
        - greaterThan
        - greaterThanOrEqual
        - inThePast
        - notInThePast
        - inTheNext
        - inTheCurrent
        - notInTheCurrent
        - inBetween
        - notInBetween
        - inPeriodToDate
      type: string
    DashboardFieldTarget:
      properties:
        fallbackType:
          $ref: '#/components/schemas/DimensionType'
        isSqlColumn:
          type: boolean
        tableName:
          type: string
        fieldId:
          type: string
      required:
        - tableName
        - fieldId
      type: object
    DashboardTileTarget:
      anyOf:
        - $ref: '#/components/schemas/DashboardFieldTarget'
        - type: boolean
          enum:
            - false
    Pick_DashboardFilterRule.Exclude_keyofDashboardFilterRule.id-or-tileTargets-or-lockedTabUuids-or-requiredGroupId-or-sectionId__:
      properties:
        target:
          $ref: '#/components/schemas/DashboardFieldTarget'
          description: Target field for the filter
        label:
          type: string
        settings:
          description: Additional settings for date/time filters
        disabled:
          type: boolean
          description: Whether this filter is disabled
        required:
          type: boolean
          description: Whether this filter is required
        caseSensitive:
          type: boolean
          description: >-
            Overrides the field/explore case-sensitivity for this rule only.

            Used by internal features like autocomplete search that must always

            match case-insensitively regardless of the field's configured
            setting.
        operator:
          $ref: '#/components/schemas/FilterOperator'
          description: Filter operator
        values:
          items: {}
          type: array
          description: Values to filter by
        includeNull:
          type: boolean
          description: >-
            For the `equals` operator on string fields, also match rows where
            the

            field is null (compiles to `field IN (...) OR field IS NULL`). Lets
            users

            combine null with selected values in a single "is" rule.
        singleValue:
          type: boolean
      required:
        - target
        - operator
      type: object
      description: From T, pick a set of properties whose keys are in the union K
    DimensionType:
      enum:
        - string
        - number
        - timestamp
        - date
        - boolean
      type: string

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.