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

# Create a version of a reusable definition

> Manage reusable definitions and their immutable versions.

Required scopes: `metrics:write`.


## OpenAPI

````yaml POST /api/v2/metrics/definitions/{resourceType}/{resourceId}/versions
openapi: 3.1.1
info:
  title: chatobserver public API
  version: '2026-09-09'
  description: >-
    Track AI visibility, manage prompts, inspect collected answers and
    citations, and integrate workspace data with your own tools. Visibility
    endpoints use workspace API keys. Data endpoints use scoped service-account
    keys; spreadsheet client endpoints use authorised client sessions. See the
    authentication guide for each credential type.
  contact:
    name: chatobserver support
    url: https://chatobserver.com/contact
    email: support@chatobserver.com
servers:
  - url: https://app.chatobserver.com
    description: Production API
security:
  - WorkspaceKey: []
  - BearerKey: []
tags:
  - name: Workspace
    description: Validate access and list the workspace project and available platforms.
  - name: Prompts
    description: Create, schedule, organise, activate and retrieve tracked prompts.
  - name: Answers
    description: Retrieve collected AI answers, their analysis and visibility trends.
  - name: Brands
    description: Manage brands and compare their visibility in AI answers.
  - name: Sources and citations
    description: Analyse cited domains, pages and ownership across answers.
  - name: Visitor analytics
    description: Read website visitor and crawler analytics for the workspace.
  - name: Content opportunities
    description: Retrieve content-gap findings and recommendations for tracked prompts.
  - name: Usage
    description: Read workspace consumption and allowance summaries.
  - name: Data connections
    description: Discover authorised connections, source accounts and connector catalogues.
  - name: Data queries
    description: >-
      Create versioned queries, publish definitions and inspect integration
      contracts.
  - name: Data operations
    description: >-
      Execute, validate, cancel and inspect operations and page through result
      rows.
  - name: Data delivery
    description: Manage schedules, transfers, destinations and import workflows.
  - name: Data definitions
    description: Manage reusable definitions and their immutable versions.
  - name: Data webhooks
    description: >-
      Configure event delivery, inspect deliveries, replay events and rotate
      secrets.
  - name: Client authorisation
    description: Authorise spreadsheet clients using a user-approved challenge exchange.
  - name: Spreadsheet clients
    description: >-
      Access document-bound client sessions, queries, schedules, bindings and
      write claims.
  - name: AI visibility audits
    description: Create website visibility audits and retrieve their report links.
  - name: Version 1
    description: Integrate with the version 1 visibility and analytics endpoints.
paths:
  /api/v2/metrics/definitions/{resourceType}/{resourceId}/versions:
    post:
      tags:
        - Data definitions
      summary: Create a version of a reusable definition
      description: >-
        Manage reusable definitions and their immutable versions. Required
        scopes: `metrics:write`.
      operationId: postV2MetricsDefinitionsResourceTypeResourceIdVersions
      parameters:
        - name: resourceType
          in: path
          required: true
          schema:
            enum:
              - custom-fields
              - blends
              - models
              - table-groups
              - imported-datasets
              - client-bindings
            type: string
          description: >-
            The definition collection. The definition body must match this
            resource type.
        - name: resourceId
          in: path
          required: true
          schema:
            type: string
            format: uuid
          description: Resource identifier returned by the API.
        - name: Idempotency-Key
          in: header
          required: true
          schema:
            type: string
            minLength: 16
            maxLength: 160
            pattern: ^[A-Za-z0-9:_-]+$
          description: >-
            Unique key for one logical command. Reuse it only when retrying the
            same request and payload.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: >-
                #/components/schemas/postV2MetricsDefinitionsResourceTypeResourceIdVersionsRequest
      responses:
        '200':
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/postV2MetricsDefinitionsResourceTypeResourceIdVersionsResponse200
        '201':
          description: Created successfully.
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/postV2MetricsDefinitionsResourceTypeResourceIdVersionsResponse201
        default:
          description: >-
            Request failed. Inspect the error code and request identifier; retry
            only when the failure is retryable.
          content:
            application/json:
              schema:
                anyOf:
                  - $ref: '#/components/schemas/DataError'
                  - $ref: '#/components/schemas/ApiError'
components:
  schemas:
    postV2MetricsDefinitionsResourceTypeResourceIdVersionsRequest:
      type: object
      properties:
        definition:
          anyOf:
            - type: object
              properties:
                schemaVersion:
                  type: number
                  const: 2
                expression:
                  anyOf:
                    - type: object
                      properties:
                        kind:
                          type: string
                          const: literal
                        valueType:
                          enum:
                            - string
                            - number
                            - boolean
                            - integer
                            - date
                            - json
                            - duration
                            - url
                            - percent
                            - currency
                            - datetime
                            - decimal
                            - image_url
                          type: string
                        value:
                          anyOf:
                            - type: 'null'
                            - type: string
                            - type: number
                            - type: boolean
                              const: false
                            - type: boolean
                              const: true
                            - type: array
                              items:
                                $ref: '#/components/schemas/ContractType54286'
                            - type: object
                              properties: {}
                              additionalProperties:
                                $ref: '#/components/schemas/ContractType54286'
                      required:
                        - kind
                        - valueType
                        - value
                    - type: object
                      properties:
                        kind:
                          type: string
                          const: field
                        fieldId:
                          type: string
                      required:
                        - kind
                        - fieldId
                    - type: object
                      properties:
                        kind:
                          type: string
                          const: custom_field
                        customFieldVersionId:
                          type: string
                      required:
                        - kind
                        - customFieldVersionId
                    - type: object
                      properties:
                        kind:
                          type: string
                          const: call
                        function:
                          enum:
                            - minimum
                            - maximum
                            - concat
                            - replace
                            - substring
                            - trim
                            - if
                            - equals
                            - not_equals
                            - greater_than
                            - less_than
                            - absolute
                            - and
                            - or
                            - lowercase
                            - uppercase
                            - add
                            - subtract
                            - multiply
                            - divide
                            - modulo
                            - round
                            - coalesce
                            - case
                            - not
                            - regex_extract
                            - date_add
                            - date_difference
                            - date_truncate
                            - extract_date_part
                            - ratio
                            - percentage
                            - currency_convert
                            - lookup
                          type: string
                        arguments:
                          type: array
                          items:
                            $ref: '#/components/schemas/ContractType152093'
                        options:
                          type: object
                          properties: {}
                          additionalProperties:
                            anyOf:
                              - type: 'null'
                              - type: string
                              - type: number
                              - type: boolean
                                const: false
                              - type: boolean
                                const: true
                              - type: array
                                items:
                                  $ref: '#/components/schemas/ContractType54286'
                              - type: object
                                properties: {}
                                additionalProperties:
                                  $ref: '#/components/schemas/ContractType54286'
                      required:
                        - kind
                        - function
                        - arguments
                        - options
                outputType:
                  enum:
                    - string
                    - number
                    - boolean
                    - integer
                    - date
                    - json
                    - duration
                    - url
                    - percent
                    - currency
                    - datetime
                    - decimal
                    - image_url
                  type: string
                semanticRole:
                  enum:
                    - metric
                    - dimension
                    - identifier
                    - attribute
                  type: string
                nullBehavior:
                  enum:
                    - error
                    - propagate
                    - coalesce_zero
                    - coalesce_empty
                  type: string
                errorBehavior:
                  enum:
                    - 'null'
                    - error
                  type: string
                currencyContext:
                  anyOf:
                    - type: 'null'
                    - type: object
                      properties:
                        sourceCurrencyFieldId:
                          anyOf:
                            - type: 'null'
                            - type: string
                              minLength: 1
                              maxLength: 256
                        targetCurrency:
                          type: string
                          minLength: 3
                          maxLength: 3
                      required:
                        - sourceCurrencyFieldId
                        - targetCurrency
                      additionalProperties: false
                dateContext:
                  anyOf:
                    - type: 'null'
                    - type: object
                      properties:
                        timeZone:
                          type: string
                          minLength: 1
                          maxLength: 128
                        locale:
                          type: string
                          minLength: 2
                          maxLength: 35
                      required:
                        - timeZone
                        - locale
                      additionalProperties: false
                validationFixtures:
                  type: array
                  items:
                    type: object
                    properties:
                      expected:
                        anyOf:
                          - type: 'null'
                          - type: string
                          - type: number
                          - type: boolean
                            const: false
                          - type: boolean
                            const: true
                          - type: array
                            items:
                              $ref: '#/components/schemas/ContractType54286'
                          - type: object
                            properties: {}
                            additionalProperties:
                              $ref: '#/components/schemas/ContractType54286'
                      name:
                        type: string
                        minLength: 1
                        maxLength: 120
                      input:
                        type: object
                        properties: {}
                        additionalProperties:
                          anyOf:
                            - type: 'null'
                            - type: string
                            - type: number
                            - type: boolean
                              const: false
                            - type: boolean
                              const: true
                            - type: array
                              items:
                                $ref: '#/components/schemas/ContractType54286'
                            - type: object
                              properties: {}
                              additionalProperties:
                                $ref: '#/components/schemas/ContractType54286'
                    required:
                      - expected
                      - name
                      - input
                    additionalProperties: false
                  maxItems: 100
                catalogVisibility:
                  enum:
                    - workspace
                    - hidden
                  type: string
              required:
                - schemaVersion
                - expression
                - outputType
                - semanticRole
                - nullBehavior
                - errorBehavior
                - currencyContext
                - dateContext
                - validationFixtures
                - catalogVisibility
              additionalProperties: false
            - type: object
              properties:
                join:
                  anyOf:
                    - type: 'null'
                    - type: object
                      properties:
                        keys:
                          type: array
                          items:
                            type: object
                            properties:
                              leftFieldId:
                                type: string
                                minLength: 1
                                maxLength: 256
                              rightFieldId:
                                type: string
                                minLength: 1
                                maxLength: 256
                            required:
                              - leftFieldId
                              - rightFieldId
                            additionalProperties: false
                          minItems: 1
                        type:
                          enum:
                            - full
                            - inner
                            - left
                            - anti
                          type: string
                        leftInputIndex:
                          type: integer
                          minimum: 0
                        rightInputIndex:
                          type: integer
                          minimum: 0
                        cardinality:
                          enum:
                            - one_to_one
                            - one_to_many
                            - many_to_one
                          type: string
                        unmatchedRowPolicy:
                          enum:
                            - retain
                            - discard
                          type: string
                      required:
                        - keys
                        - type
                        - leftInputIndex
                        - rightInputIndex
                        - cardinality
                        - unmatchedRowPolicy
                      additionalProperties: false
                mode:
                  enum:
                    - join
                    - union
                    - union_by_name
                  type: string
                schemaVersion:
                  type: number
                  const: 2
                missingColumnPolicy:
                  enum:
                    - 'null'
                    - reject
                  type: string
                outputSchemaFingerprint:
                  type: string
                  minLength: 1
                  maxLength: 256
                inputs:
                  type: array
                  items:
                    type: object
                    properties:
                      id:
                        type: string
                        format: uuid
                      input:
                        anyOf:
                          - type: object
                            properties:
                              kind:
                                type: string
                                const: query
                              queryVersionId:
                                type: string
                            required:
                              - kind
                              - queryVersionId
                          - type: object
                            properties:
                              kind:
                                type: string
                                const: model
                              modelVersionId:
                                type: string
                            required:
                              - kind
                              - modelVersionId
                          - type: object
                            properties:
                              kind:
                                type: string
                                const: blend
                              blendVersionId:
                                type: string
                            required:
                              - kind
                              - blendVersionId
                          - type: object
                            properties:
                              kind:
                                type: string
                                const: imported_dataset
                              importedDatasetVersionId:
                                type: string
                            required:
                              - kind
                              - importedDatasetVersionId
                          - type: object
                            properties:
                              kind:
                                type: string
                                const: managed_dataset
                              managedDatasetVersionId:
                                type: string
                            required:
                              - kind
                              - managedDatasetVersionId
                          - type: object
                            properties:
                              kind:
                                type: string
                                const: table_group
                              tableGroupVersionId:
                                type: string
                            required:
                              - kind
                              - tableGroupVersionId
                    required:
                      - id
                      - input
                    additionalProperties: false
                  minItems: 2
                  maxItems: 25
                fieldMappings:
                  type: array
                  items:
                    type: object
                    properties:
                      outputFieldId:
                        type: string
                        minLength: 1
                        maxLength: 256
                      inputNodeId:
                        type: string
                        format: uuid
                      inputFieldId:
                        type: string
                        minLength: 1
                        maxLength: 256
                      outputLabel:
                        type: string
                        minLength: 1
                        maxLength: 160
                      cast:
                        anyOf:
                          - type: 'null'
                          - type: string
                            const: string
                          - type: string
                            const: number
                          - type: string
                            const: boolean
                          - type: string
                            const: integer
                          - type: string
                            const: date
                          - type: string
                            const: json
                          - type: string
                            const: duration
                          - type: string
                            const: url
                          - type: string
                            const: percent
                          - type: string
                            const: currency
                          - type: string
                            const: datetime
                          - type: string
                            const: decimal
                          - type: string
                            const: image_url
                    required:
                      - outputFieldId
                      - inputNodeId
                      - inputFieldId
                      - outputLabel
                      - cast
                    additionalProperties: false
                  minItems: 1
                  maxItems: 1000
              required:
                - join
                - mode
                - schemaVersion
                - missingColumnPolicy
                - outputSchemaFingerprint
                - inputs
                - fieldMappings
              additionalProperties: false
            - type: object
              properties:
                schemaVersion:
                  type: number
                  const: 2
                outputSchemaFingerprint:
                  type: string
                  minLength: 1
                  maxLength: 256
                nodes:
                  type: array
                  items:
                    type: object
                    properties:
                      type:
                        enum:
                          - join
                          - sort
                          - filter
                          - limit
                          - select
                          - union
                          - input
                          - pivot
                          - cast
                          - rename
                          - formula
                          - aggregate
                          - deduplicate
                          - unpivot
                          - date_bucket
                          - date_spine
                          - window
                          - assert
                        type: string
                      filter:
                        anyOf:
                          - type: 'null'
                          - type: object
                            properties:
                              kind:
                                type: string
                                const: condition
                              fieldId:
                                type: string
                              operator:
                                enum:
                                  - equals
                                  - not_equals
                                  - contains
                                  - greater_than
                                  - less_than
                                  - in
                                  - between
                                  - is_null
                                  - is_not_null
                                  - not_in
                                  - not_contains
                                  - starts_with
                                  - ends_with
                                  - regex
                                  - not_regex
                                  - greater_than_or_equal
                                  - less_than_or_equal
                                type: string
                              value:
                                anyOf:
                                  - type: 'null'
                                  - type: string
                                  - type: number
                                  - type: boolean
                                    const: false
                                  - type: boolean
                                    const: true
                                  - type: array
                                    items:
                                      $ref: '#/components/schemas/ContractType54286'
                                  - type: object
                                    properties: {}
                                    additionalProperties:
                                      $ref: '#/components/schemas/ContractType54286'
                              execution:
                                enum:
                                  - pushdown_required
                                  - pushdown_preferred
                                  - platform_allowed
                                type: string
                            required:
                              - kind
                              - fieldId
                              - operator
                              - value
                              - execution
                          - type: object
                            properties:
                              kind:
                                type: string
                                const: group
                              conjunction:
                                enum:
                                  - and
                                  - or
                                type: string
                              children:
                                type: array
                                items:
                                  anyOf:
                                    - type: object
                                      properties:
                                        kind:
                                          type: string
                                          const: condition
                                        fieldId:
                                          type: string
                                        operator:
                                          enum:
                                            - equals
                                            - not_equals
                                            - contains
                                            - greater_than
                                            - less_than
                                            - in
                                            - between
                                            - is_null
                                            - is_not_null
                                            - not_in
                                            - not_contains
                                            - starts_with
                                            - ends_with
                                            - regex
                                            - not_regex
                                            - greater_than_or_equal
                                            - less_than_or_equal
                                          type: string
                                        value:
                                          anyOf:
                                            - type: 'null'
                                            - type: string
                                            - type: number
                                            - type: boolean
                                              const: false
                                            - type: boolean
                                              const: true
                                            - type: array
                                              items:
                                                $ref: '#/components/schemas/ContractType54286'
                                            - type: object
                                              properties: {}
                                              additionalProperties:
                                                $ref: '#/components/schemas/ContractType54286'
                                        execution:
                                          enum:
                                            - pushdown_required
                                            - pushdown_preferred
                                            - platform_allowed
                                          type: string
                                      required:
                                        - kind
                                        - fieldId
                                        - operator
                                        - value
                                        - execution
                                    - $ref: '#/components/schemas/ContractType94867'
                            required:
                              - kind
                              - conjunction
                              - children
                      name:
                        type: string
                        minLength: 1
                        maxLength: 160
                      id:
                        type: string
                        format: uuid
                      input:
                        anyOf:
                          - type: 'null'
                          - type: object
                            properties:
                              kind:
                                type: string
                                const: query
                              queryVersionId:
                                type: string
                            required:
                              - kind
                              - queryVersionId
                          - type: object
                            properties:
                              kind:
                                type: string
                                const: model
                              modelVersionId:
                                type: string
                            required:
                              - kind
                              - modelVersionId
                          - type: object
                            properties:
                              kind:
                                type: string
                                const: blend
                              blendVersionId:
                                type: string
                            required:
                              - kind
                              - blendVersionId
                          - type: object
                            properties:
                              kind:
                                type: string
                                const: imported_dataset
                              importedDatasetVersionId:
                                type: string
                            required:
                              - kind
                              - importedDatasetVersionId
                          - type: object
                            properties:
                              kind:
                                type: string
                                const: managed_dataset
                              managedDatasetVersionId:
                                type: string
                            required:
                              - kind
                              - managedDatasetVersionId
                          - type: object
                            properties:
                              kind:
                                type: string
                                const: table_group
                              tableGroupVersionId:
                                type: string
                            required:
                              - kind
                              - tableGroupVersionId
                      config:
                        type: object
                        properties: {}
                        additionalProperties: {}
                      expressions:
                        type: array
                        items:
                          anyOf:
                            - type: object
                              properties:
                                kind:
                                  type: string
                                  const: literal
                                valueType:
                                  enum:
                                    - string
                                    - number
                                    - boolean
                                    - integer
                                    - date
                                    - json
                                    - duration
                                    - url
                                    - percent
                                    - currency
                                    - datetime
                                    - decimal
                                    - image_url
                                  type: string
                                value:
                                  anyOf:
                                    - type: 'null'
                                    - type: string
                                    - type: number
                                    - type: boolean
                                      const: false
                                    - type: boolean
                                      const: true
                                    - type: array
                                      items:
                                        $ref: '#/components/schemas/ContractType54286'
                                    - type: object
                                      properties: {}
                                      additionalProperties:
                                        $ref: '#/components/schemas/ContractType54286'
                              required:
                                - kind
                                - valueType
                                - value
                            - type: object
                              properties:
                                kind:
                                  type: string
                                  const: field
                                fieldId:
                                  type: string
                              required:
                                - kind
                                - fieldId
                            - type: object
                              properties:
                                kind:
                                  type: string
                                  const: custom_field
                                customFieldVersionId:
                                  type: string
                              required:
                                - kind
                                - customFieldVersionId
                            - type: object
                              properties:
                                kind:
                                  type: string
                                  const: call
                                function:
                                  enum:
                                    - minimum
                                    - maximum
                                    - concat
                                    - replace
                                    - substring
                                    - trim
                                    - if
                                    - equals
                                    - not_equals
                                    - greater_than
                                    - less_than
                                    - absolute
                                    - and
                                    - or
                                    - lowercase
                                    - uppercase
                                    - add
                                    - subtract
                                    - multiply
                                    - divide
                                    - modulo
                                    - round
                                    - coalesce
                                    - case
                                    - not
                                    - regex_extract
                                    - date_add
                                    - date_difference
                                    - date_truncate
                                    - extract_date_part
                                    - ratio
                                    - percentage
                                    - currency_convert
                                    - lookup
                                  type: string
                                arguments:
                                  $ref: '#/components/schemas/ContractType156929'
                                options:
                                  type: object
                                  properties: {}
                                  additionalProperties:
                                    anyOf:
                                      - type: 'null'
                                      - type: string
                                      - type: number
                                      - type: boolean
                                        const: false
                                      - type: boolean
                                        const: true
                                      - type: array
                                        items:
                                          $ref: '#/components/schemas/ContractType54286'
                                      - type: object
                                        properties: {}
                                        additionalProperties:
                                          $ref: '#/components/schemas/ContractType54286'
                              required:
                                - kind
                                - function
                                - arguments
                                - options
                        maxItems: 250
                    required:
                      - type
                      - filter
                      - name
                      - id
                      - input
                      - config
                      - expressions
                    additionalProperties: false
                  minItems: 1
                  maxItems: 500
                edges:
                  type: array
                  items:
                    type: object
                    properties:
                      fromNodeId:
                        type: string
                        format: uuid
                      toNodeId:
                        type: string
                        format: uuid
                      inputPort:
                        type: string
                        minLength: 1
                        maxLength: 64
                    required:
                      - fromNodeId
                      - toNodeId
                      - inputPort
                    additionalProperties: false
                  maxItems: 2000
                outputNodeId:
                  type: string
                  format: uuid
                materialization:
                  enum:
                    - managed_dataset
                    - ephemeral
                    - artifact
                  type: string
                assertions:
                  type: array
                  items:
                    type: object
                    properties:
                      id:
                        type: string
                        format: uuid
                      kind:
                        enum:
                          - row_count
                          - unique_key
                          - non_null
                          - accepted_range
                          - freshness
                        type: string
                      severity:
                        enum:
                          - error
                          - warning
                        type: string
                      config:
                        type: object
                        properties: {}
                        additionalProperties:
                          anyOf:
                            - type: 'null'
                            - type: string
                            - type: number
                            - type: boolean
                              const: false
                            - type: boolean
                              const: true
                      fieldIds:
                        type: array
                        items:
                          type: string
                          minLength: 1
                          maxLength: 256
                        maxItems: 50
                    required:
                      - id
                      - kind
                      - severity
                      - config
                      - fieldIds
                    additionalProperties: false
                  maxItems: 200
              required:
                - schemaVersion
                - outputSchemaFingerprint
                - nodes
                - edges
                - outputNodeId
                - materialization
                - assertions
              additionalProperties: false
            - type: object
              properties:
                schemaVersion:
                  type: number
                  const: 2
                templateId:
                  anyOf:
                    - type: 'null'
                    - type: string
                      minLength: 1
                      maxLength: 160
                tables:
                  type: array
                  items:
                    type: object
                    properties:
                      filter:
                        anyOf:
                          - type: 'null'
                          - type: object
                            properties:
                              kind:
                                type: string
                                const: condition
                              fieldId:
                                type: string
                              operator:
                                enum:
                                  - equals
                                  - not_equals
                                  - contains
                                  - greater_than
                                  - less_than
                                  - in
                                  - between
                                  - is_null
                                  - is_not_null
                                  - not_in
                                  - not_contains
                                  - starts_with
                                  - ends_with
                                  - regex
                                  - not_regex
                                  - greater_than_or_equal
                                  - less_than_or_equal
                                type: string
                              value:
                                anyOf:
                                  - type: 'null'
                                  - type: string
                                  - type: number
                                  - type: boolean
                                    const: false
                                  - type: boolean
                                    const: true
                                  - type: array
                                    items:
                                      $ref: '#/components/schemas/ContractType54286'
                                  - type: object
                                    properties: {}
                                    additionalProperties:
                                      $ref: '#/components/schemas/ContractType54286'
                              execution:
                                enum:
                                  - pushdown_required
                                  - pushdown_preferred
                                  - platform_allowed
                                type: string
                            required:
                              - kind
                              - fieldId
                              - operator
                              - value
                              - execution
                          - type: object
                            properties:
                              kind:
                                type: string
                                const: group
                              conjunction:
                                enum:
                                  - and
                                  - or
                                type: string
                              children:
                                type: array
                                items:
                                  anyOf:
                                    - type: object
                                      properties:
                                        kind:
                                          type: string
                                          const: condition
                                        fieldId:
                                          type: string
                                        operator:
                                          enum:
                                            - equals
                                            - not_equals
                                            - contains
                                            - greater_than
                                            - less_than
                                            - in
                                            - between
                                            - is_null
                                            - is_not_null
                                            - not_in
                                            - not_contains
                                            - starts_with
                                            - ends_with
                                            - regex
                                            - not_regex
                                            - greater_than_or_equal
                                            - less_than_or_equal
                                          type: string
                                        value:
                                          anyOf:
                                            - type: 'null'
                                            - type: string
                                            - type: number
                                            - type: boolean
                                              const: false
                                            - type: boolean
                                              const: true
                                            - type: array
                                              items:
                                                $ref: '#/components/schemas/ContractType54286'
                                            - type: object
                                              properties: {}
                                              additionalProperties:
                                                $ref: '#/components/schemas/ContractType54286'
                                        execution:
                                          enum:
                                            - pushdown_required
                                            - pushdown_preferred
                                            - platform_allowed
                                          type: string
                                      required:
                                        - kind
                                        - fieldId
                                        - operator
                                        - value
                                        - execution
                                    - $ref: '#/components/schemas/ContractType94867'
                            required:
                              - kind
                              - conjunction
                              - children
                      name:
                        type: string
                        minLength: 1
                        maxLength: 128
                        pattern: ^[A-Za-z_][A-Za-z0-9_]*$
                      id:
                        type: string
                        format: uuid
                      input:
                        anyOf:
                          - type: object
                            properties:
                              kind:
                                type: string
                                const: query
                              queryVersionId:
                                type: string
                            required:
                              - kind
                              - queryVersionId
                          - type: object
                            properties:
                              kind:
                                type: string
                                const: model
                              modelVersionId:
                                type: string
                            required:
                              - kind
                              - modelVersionId
                          - type: object
                            properties:
                              kind:
                                type: string
                                const: imported_dataset
                              importedDatasetVersionId:
                                type: string
                            required:
                              - kind
                              - importedDatasetVersionId
                          - type: object
                            properties:
                              kind:
                                type: string
                                const: managed_dataset
                              managedDatasetVersionId:
                                type: string
                            required:
                              - kind
                              - managedDatasetVersionId
                      displayName:
                        type: string
                        minLength: 1
                        maxLength: 160
                      fields:
                        type: array
                        items:
                          type: object
                          properties:
                            label:
                              type: string
                              minLength: 1
                              maxLength: 160
                            fieldId:
                              type: string
                              minLength: 1
                              maxLength: 256
                            position:
                              type: integer
                              minimum: 0
                            outputFieldId:
                              type: string
                              minLength: 1
                              maxLength: 256
                          required:
                            - label
                            - fieldId
                            - position
                            - outputFieldId
                          additionalProperties: false
                        minItems: 1
                        maxItems: 1000
                      keyFieldIds:
                        type: array
                        items:
                          type: string
                          minLength: 1
                          maxLength: 256
                        maxItems: 50
                      connectorOptions:
                        type: object
                        properties: {}
                        additionalProperties:
                          anyOf:
                            - type: 'null'
                            - type: string
                            - type: number
                            - type: boolean
                              const: false
                            - type: boolean
                              const: true
                            - type: array
                              items:
                                $ref: '#/components/schemas/ContractType54286'
                            - type: object
                              properties: {}
                              additionalProperties:
                                $ref: '#/components/schemas/ContractType54286'
                      schemaPolicy:
                        enum:
                          - locked
                          - additive
                          - reconcile
                        type: string
                      partitionFieldIds:
                        type: array
                        items:
                          type: string
                          minLength: 1
                          maxLength: 256
                        maxItems: 20
                      lookbackWindow:
                        anyOf:
                          - type: 'null'
                          - type: object
                            properties:
                              count:
                                type: integer
                                exclusiveMinimum: 0
                                maximum: 10000
                              unit:
                                enum:
                                  - hour
                                  - day
                                  - week
                                  - month
                                type: string
                            required:
                              - count
                              - unit
                            additionalProperties: false
                      updateMode:
                        enum:
                          - replace
                          - append
                          - upsert
                          - rolling_window
                          - single_day_snapshot
                          - historical_snapshot
                          - rolling_historical_snapshot
                        type: string
                    required:
                      - filter
                      - name
                      - id
                      - input
                      - displayName
                      - fields
                      - keyFieldIds
                      - connectorOptions
                      - schemaPolicy
                      - partitionFieldIds
                      - lookbackWindow
                      - updateMode
                    additionalProperties: false
                  minItems: 1
                  maxItems: 100
                dependencyVersionIds:
                  type: array
                  items:
                    type: string
                    format: uuid
                  maxItems: 500
                portableMetadata:
                  type: object
                  properties: {}
                  additionalProperties:
                    anyOf:
                      - type: 'null'
                      - type: string
                      - type: number
                      - type: boolean
                        const: false
                      - type: boolean
                        const: true
              required:
                - schemaVersion
                - templateId
                - tables
                - dependencyVersionIds
                - portableMetadata
              additionalProperties: false
            - anyOf:
                - type: object
                  properties:
                    schemaVersion:
                      type: number
                      const: 3
                    source:
                      anyOf:
                        - type: object
                          properties:
                            kind:
                              type: string
                              const: manual_upload
                            allowedFormats:
                              type: array
                              items:
                                enum:
                                  - csv
                                  - parquet
                                  - tsv
                                  - xlsx
                                  - jsonl
                                type: string
                          required:
                            - kind
                            - allowedFormats
                        - type: object
                          properties:
                            kind:
                              type: string
                              const: authenticated_file
                            connectionVersionId:
                              type: string
                            providerPath:
                              type: string
                            expectedFormat:
                              enum:
                                - csv
                                - parquet
                                - tsv
                                - xlsx
                                - jsonl
                              type: string
                          required:
                            - kind
                            - connectionVersionId
                            - providerPath
                            - expectedFormat
                        - type: object
                          properties:
                            kind:
                              type: string
                              const: email_intake
                            intakeId:
                              type: string
                          required:
                            - kind
                            - intakeId
                    target:
                      type: string
                      const: retained_import
                    qualityRules:
                      type: array
                      items:
                        anyOf:
                          - type: object
                            properties:
                              id:
                                type: string
                              kind:
                                type: string
                                const: not_null
                              severity:
                                enum:
                                  - error
                                  - warning
                                type: string
                              fieldId:
                                type: string
                            required:
                              - id
                              - kind
                              - severity
                              - fieldId
                          - type: object
                            properties:
                              id:
                                type: string
                              kind:
                                type: string
                                const: unique
                              severity:
                                enum:
                                  - error
                                  - warning
                                type: string
                              fieldIds:
                                type: array
                                items:
                                  type: string
                            required:
                              - id
                              - kind
                              - severity
                              - fieldIds
                          - type: object
                            properties:
                              values:
                                type: array
                                items:
                                  anyOf:
                                    - type: 'null'
                                    - type: string
                                    - type: number
                                    - type: boolean
                                      const: false
                                    - type: boolean
                                      const: true
                                    - type: array
                                      items:
                                        $ref: '#/components/schemas/ContractType54286'
                                    - type: object
                                      properties: {}
                                      additionalProperties:
                                        $ref: '#/components/schemas/ContractType54286'
                              id:
                                type: string
                              kind:
                                type: string
                                const: accepted_values
                              severity:
                                enum:
                                  - error
                                  - warning
                                type: string
                              fieldId:
                                type: string
                            required:
                              - values
                              - id
                              - kind
                              - severity
                              - fieldId
                          - type: object
                            properties:
                              minimum:
                                anyOf:
                                  - type: 'null'
                                  - type: number
                              maximum:
                                anyOf:
                                  - type: 'null'
                                  - type: number
                              id:
                                type: string
                              kind:
                                type: string
                                const: row_count
                              severity:
                                enum:
                                  - error
                                  - warning
                                type: string
                            required:
                              - minimum
                              - maximum
                              - id
                              - kind
                              - severity
                    maximumRows:
                      type: number
                    maximumBytes:
                      type: number
                    malformedRowPolicy:
                      enum:
                        - reject_file
                        - quarantine_rows
                      type: string
                    mappingVersionId:
                      type: string
                    updatePolicyVersionId:
                      type: string
                    retentionPolicyVersionId:
                      type: string
                  required:
                    - schemaVersion
                    - source
                    - target
                    - qualityRules
                    - maximumRows
                    - maximumBytes
                    - malformedRowPolicy
                    - mappingVersionId
                    - updatePolicyVersionId
                    - retentionPolicyVersionId
                - type: object
                  properties:
                    columns:
                      type: array
                      items:
                        type: object
                        properties:
                          type:
                            enum:
                              - string
                              - number
                              - boolean
                              - integer
                              - date
                              - json
                              - duration
                              - url
                              - percent
                              - currency
                              - datetime
                              - decimal
                              - image_url
                            type: string
                          nullable:
                            anyOf:
                              - type: boolean
                                const: false
                              - type: boolean
                                const: true
                          label:
                            type: string
                          fieldId:
                            type: string
                          sourceName:
                            type: string
                        required:
                          - type
                          - nullable
                          - label
                          - fieldId
                          - sourceName
                    schemaVersion:
                      type: number
                      const: 2
                    source:
                      anyOf:
                        - type: object
                          properties:
                            kind:
                              type: string
                              const: manual_upload
                            originalFileName:
                              type: string
                            sourceArtifactId:
                              type: string
                          required:
                            - kind
                            - originalFileName
                            - sourceArtifactId
                        - type: object
                          properties:
                            kind:
                              type: string
                              const: authenticated_file
                            connectionId:
                              type: string
                            providerPath:
                              type: string
                          required:
                            - kind
                            - connectionId
                            - providerPath
                        - type: object
                          properties:
                            kind:
                              type: string
                              const: email_intake
                            intakeId:
                              type: string
                            senderPolicyVersion:
                              type: number
                          required:
                            - kind
                            - intakeId
                            - senderPolicyVersion
                    retentionDays:
                      type: number
                    formulaInjectionPolicy:
                      enum:
                        - reject
                        - escape
                      type: string
                    keyFieldIds:
                      type: array
                      items:
                        type: string
                    maximumRows:
                      type: number
                    maximumBytes:
                      type: number
                    malformedRowPolicy:
                      enum:
                        - reject_file
                        - quarantine_rows
                      type: string
                    updateMode:
                      enum:
                        - replace
                        - append
                        - upsert
                      type: string
                    incrementalCursorFieldId:
                      anyOf:
                        - type: 'null'
                        - type: string
                  required:
                    - columns
                    - schemaVersion
                    - source
                    - retentionDays
                    - formulaInjectionPolicy
                    - keyFieldIds
                    - maximumRows
                    - maximumBytes
                    - malformedRowPolicy
                    - updateMode
                    - incrementalCursorFieldId
            - anyOf:
                - type: object
                  properties:
                    input:
                      anyOf:
                        - type: object
                          properties:
                            kind:
                              type: string
                              const: query
                            queryVersionId:
                              type: string
                          required:
                            - kind
                            - queryVersionId
                        - type: object
                          properties:
                            kind:
                              type: string
                              const: model
                            modelVersionId:
                              type: string
                          required:
                            - kind
                            - modelVersionId
                        - type: object
                          properties:
                            kind:
                              type: string
                              const: table_group
                            tableGroupVersionId:
                              type: string
                          required:
                            - kind
                            - tableGroupVersionId
                        - type: object
                          properties:
                            kind:
                              type: string
                              const: managed_dataset
                            managedDatasetVersionId:
                              type: string
                          required:
                            - kind
                            - managedDatasetVersionId
                        - type: object
                          properties:
                            kind:
                              type: string
                              const: imported_dataset
                            importedDatasetVersionId:
                              type: string
                          required:
                            - kind
                            - importedDatasetVersionId
                    schemaVersion:
                      type: number
                      const: 3
                    ownership:
                      type: object
                      properties:
                        ownerUserId:
                          type: string
                        hostOwnerReference:
                          anyOf:
                            - type: 'null'
                            - type: string
                      required:
                        - ownerUserId
                        - hostOwnerReference
                    clientKind:
                      type: string
                      const: google_sheets
                    targetIdentity:
                      type: object
                      properties:
                        sheetName:
                          type: string
                        spreadsheetReferenceHash:
                          type: string
                        stableSheetId:
                          type: number
                      required:
                        - sheetName
                        - spreadsheetReferenceHash
                        - stableSheetId
                    placement:
                      type: object
                      properties:
                        anchorRow:
                          type: number
                        anchorColumn:
                          type: number
                        selectedRangeA1:
                          type: string
                        lastWrittenRangeA1:
                          anyOf:
                            - type: 'null'
                            - type: string
                      required:
                        - anchorRow
                        - anchorColumn
                        - selectedRangeA1
                        - lastWrittenRangeA1
                    outputShape:
                      enum:
                        - table_group
                        - pivot
                        - rows
                        - semantic_model
                      type: string
                    writePolicy:
                      type: object
                      properties:
                        mode:
                          enum:
                            - replace
                            - append
                            - incremental
                            - combine
                          type: string
                        schemaDriftPolicy:
                          enum:
                            - replace
                            - fail
                            - add_columns
                          type: string
                        partialWritePolicy:
                          enum:
                            - resume
                            - rollback
                          type: string
                        incrementalKeyFieldIds:
                          type: array
                          items:
                            type: string
                        preserveOutputOnFailure:
                          anyOf:
                            - type: boolean
                              const: false
                            - type: boolean
                              const: true
                        maximumRowsPerBatch:
                          type: number
                      required:
                        - mode
                        - schemaDriftPolicy
                        - partialWritePolicy
                        - incrementalKeyFieldIds
                        - preserveOutputOnFailure
                        - maximumRowsPerBatch
                    formatting:
                      type: object
                      properties:
                        timeZone:
                          type: string
                        locale:
                          type: string
                        preserveExisting:
                          anyOf:
                            - type: boolean
                              const: false
                            - type: boolean
                              const: true
                        writeHeaders:
                          anyOf:
                            - type: boolean
                              const: false
                            - type: boolean
                              const: true
                        applyNumberFormats:
                          anyOf:
                            - type: boolean
                              const: false
                            - type: boolean
                              const: true
                        freezeHeaderRow:
                          anyOf:
                            - type: boolean
                              const: false
                            - type: boolean
                              const: true
                        resizeColumns:
                          enum:
                            - never
                            - new_columns
                            - all_columns
                          type: string
                      required:
                        - timeZone
                        - locale
                        - preserveExisting
                        - writeHeaders
                        - applyNumberFormats
                        - freezeHeaderRow
                        - resizeColumns
                    parameterBindings:
                      type: array
                      items:
                        anyOf:
                          - type: object
                            properties:
                              value:
                                anyOf:
                                  - type: 'null'
                                  - type: string
                                  - type: number
                                  - type: boolean
                                    const: false
                                  - type: boolean
                                    const: true
                                  - type: array
                                    items:
                                      $ref: '#/components/schemas/ContractType54286'
                                  - type: object
                                    properties: {}
                                    additionalProperties:
                                      $ref: '#/components/schemas/ContractType54286'
                              kind:
                                type: string
                                const: literal
                              parameterId:
                                type: string
                            required:
                              - value
                              - kind
                              - parameterId
                          - type: object
                            properties:
                              kind:
                                type: string
                                const: cell
                              valueType:
                                enum:
                                  - string
                                  - number
                                  - boolean
                                  - date
                                  - datetime
                                type: string
                              parameterId:
                                type: string
                              stableSheetReference:
                                type: string
                              rangeA1:
                                type: string
                              blankPolicy:
                                enum:
                                  - use_null
                                  - use_default
                                  - fail
                                type: string
                              errorPolicy:
                                enum:
                                  - use_default
                                  - fail
                                type: string
                            required:
                              - kind
                              - valueType
                              - parameterId
                              - stableSheetReference
                              - rangeA1
                              - blankPolicy
                              - errorPolicy
                          - type: object
                            properties:
                              kind:
                                type: string
                                const: host_parameter
                              valueType:
                                enum:
                                  - string
                                  - number
                                  - boolean
                                  - date
                                  - datetime
                                type: string
                              allowViewerOverride:
                                anyOf:
                                  - type: boolean
                                    const: false
                                  - type: boolean
                                    const: true
                              parameterId:
                                type: string
                              blankPolicy:
                                enum:
                                  - use_null
                                  - use_default
                                  - fail
                                type: string
                              hostParameterName:
                                type: string
                            required:
                              - kind
                              - valueType
                              - allowViewerOverride
                              - parameterId
                              - blankPolicy
                              - hostParameterName
                    unattendedAccess:
                      anyOf:
                        - type: boolean
                          const: false
                        - type: boolean
                          const: true
                    credentialReferenceVersion:
                      anyOf:
                        - type: 'null'
                        - type: string
                  required:
                    - input
                    - schemaVersion
                    - ownership
                    - clientKind
                    - targetIdentity
                    - placement
                    - outputShape
                    - writePolicy
                    - formatting
                    - parameterBindings
                    - unattendedAccess
                    - credentialReferenceVersion
                - type: object
                  properties:
                    input:
                      anyOf:
                        - type: object
                          properties:
                            kind:
                              type: string
                              const: query
                            queryVersionId:
                              type: string
                          required:
                            - kind
                            - queryVersionId
                        - type: object
                          properties:
                            kind:
                              type: string
                              const: model
                            modelVersionId:
                              type: string
                          required:
                            - kind
                            - modelVersionId
                        - type: object
                          properties:
                            kind:
                              type: string
                              const: table_group
                            tableGroupVersionId:
                              type: string
                          required:
                            - kind
                            - tableGroupVersionId
                        - type: object
                          properties:
                            kind:
                              type: string
                              const: managed_dataset
                            managedDatasetVersionId:
                              type: string
                          required:
                            - kind
                            - managedDatasetVersionId
                        - type: object
                          properties:
                            kind:
                              type: string
                              const: imported_dataset
                            importedDatasetVersionId:
                              type: string
                          required:
                            - kind
                            - importedDatasetVersionId
                    schemaVersion:
                      type: number
                      const: 3
                    ownership:
                      type: object
                      properties:
                        ownerUserId:
                          type: string
                        hostOwnerReference:
                          anyOf:
                            - type: 'null'
                            - type: string
                      required:
                        - ownerUserId
                        - hostOwnerReference
                    clientKind:
                      type: string
                      const: excel
                    targetIdentity:
                      type: object
                      properties:
                        workbookReferenceHash:
                          type: string
                        stableWorksheetId:
                          type: string
                        worksheetName:
                          type: string
                        storageKind:
                          enum:
                            - onedrive
                            - sharepoint
                            - local
                          type: string
                      required:
                        - workbookReferenceHash
                        - stableWorksheetId
                        - worksheetName
                        - storageKind
                    placement:
                      type: object
                      properties:
                        tableName:
                          anyOf:
                            - type: 'null'
                            - type: string
                        anchorRow:
                          type: number
                        anchorColumn:
                          type: number
                        selectedAddress:
                          type: string
                        lastWrittenAddress:
                          anyOf:
                            - type: 'null'
                            - type: string
                      required:
                        - tableName
                        - anchorRow
                        - anchorColumn
                        - selectedAddress
                        - lastWrittenAddress
                    outputShape:
                      enum:
                        - table_group
                        - pivot
                        - rows
                        - semantic_model
                      type: string
                    writePolicy:
                      type: object
                      properties:
                        mode:
                          enum:
                            - replace
                            - append
                            - incremental
                            - combine
                          type: string
                        schemaDriftPolicy:
                          enum:
                            - replace
                            - fail
                            - add_columns
                          type: string
                        partialWritePolicy:
                          enum:
                            - resume
                            - rollback
                          type: string
                        incrementalKeyFieldIds:
                          type: array
                          items:
                            type: string
                        preserveOutputOnFailure:
                          anyOf:
                            - type: boolean
                              const: false
                            - type: boolean
                              const: true
                        maximumRowsPerBatch:
                          type: number
                      required:
                        - mode
                        - schemaDriftPolicy
                        - partialWritePolicy
                        - incrementalKeyFieldIds
                        - preserveOutputOnFailure
                        - maximumRowsPerBatch
                    formatting:
                      type: object
                      properties:
                        timeZone:
                          type: string
                        locale:
                          type: string
                        preserveExisting:
                          anyOf:
                            - type: boolean
                              const: false
                            - type: boolean
                              const: true
                        writeHeaders:
                          anyOf:
                            - type: boolean
                              const: false
                            - type: boolean
                              const: true
                        applyNumberFormats:
                          anyOf:
                            - type: boolean
                              const: false
                            - type: boolean
                              const: true
                        freezeHeaderRow:
                          anyOf:
                            - type: boolean
                              const: false
                            - type: boolean
                              const: true
                        resizeColumns:
                          enum:
                            - never
                            - new_columns
                            - all_columns
                          type: string
                      required:
                        - timeZone
                        - locale
                        - preserveExisting
                        - writeHeaders
                        - applyNumberFormats
                        - freezeHeaderRow
                        - resizeColumns
                    parameterBindings:
                      type: array
                      items:
                        anyOf:
                          - type: object
                            properties:
                              value:
                                anyOf:
                                  - type: 'null'
                                  - type: string
                                  - type: number
                                  - type: boolean
                                    const: false
                                  - type: boolean
                                    const: true
                                  - type: array
                                    items:
                                      $ref: '#/components/schemas/ContractType54286'
                                  - type: object
                                    properties: {}
                                    additionalProperties:
                                      $ref: '#/components/schemas/ContractType54286'
                              kind:
                                type: string
                                const: literal
                              parameterId:
                                type: string
                            required:
                              - value
                              - kind
                              - parameterId
                          - type: object
                            properties:
                              kind:
                                type: string
                                const: cell
                              valueType:
                                enum:
                                  - string
                                  - number
                                  - boolean
                                  - date
                                  - datetime
                                type: string
                              parameterId:
                                type: string
                              stableSheetReference:
                                type: string
                              rangeA1:
                                type: string
                              blankPolicy:
                                enum:
                                  - use_null
                                  - use_default
                                  - fail
                                type: string
                              errorPolicy:
                                enum:
                                  - use_default
                                  - fail
                                type: string
                            required:
                              - kind
                              - valueType
                              - parameterId
                              - stableSheetReference
                              - rangeA1
                              - blankPolicy
                              - errorPolicy
                          - type: object
                            properties:
                              kind:
                                type: string
                                const: host_parameter
                              valueType:
                                enum:
                                  - string
                                  - number
                                  - boolean
                                  - date
                                  - datetime
                                type: string
                              allowViewerOverride:
                                anyOf:
                                  - type: boolean
                                    const: false
                                  - type: boolean
                                    const: true
                              parameterId:
                                type: string
                              blankPolicy:
                                enum:
                                  - use_null
                                  - use_default
                                  - fail
                                type: string
                              hostParameterName:
                                type: string
                            required:
                              - kind
                              - valueType
                              - allowViewerOverride
                              - parameterId
                              - blankPolicy
                              - hostParameterName
                    unattendedAccess:
                      anyOf:
                        - type: boolean
                          const: false
                        - type: boolean
                          const: true
                    credentialReferenceVersion:
                      anyOf:
                        - type: 'null'
                        - type: string
                  required:
                    - input
                    - schemaVersion
                    - ownership
                    - clientKind
                    - targetIdentity
                    - placement
                    - outputShape
                    - writePolicy
                    - formatting
                    - parameterBindings
                    - unattendedAccess
                    - credentialReferenceVersion
                - type: object
                  properties:
                    input:
                      anyOf:
                        - type: object
                          properties:
                            kind:
                              type: string
                              const: query
                            queryVersionId:
                              type: string
                          required:
                            - kind
                            - queryVersionId
                        - type: object
                          properties:
                            kind:
                              type: string
                              const: model
                            modelVersionId:
                              type: string
                          required:
                            - kind
                            - modelVersionId
                        - type: object
                          properties:
                            kind:
                              type: string
                              const: table_group
                            tableGroupVersionId:
                              type: string
                          required:
                            - kind
                            - tableGroupVersionId
                        - type: object
                          properties:
                            kind:
                              type: string
                              const: managed_dataset
                            managedDatasetVersionId:
                              type: string
                          required:
                            - kind
                            - managedDatasetVersionId
                        - type: object
                          properties:
                            kind:
                              type: string
                              const: imported_dataset
                            importedDatasetVersionId:
                              type: string
                          required:
                            - kind
                            - importedDatasetVersionId
                    schemaVersion:
                      type: number
                      const: 3
                    ownership:
                      type: object
                      properties:
                        ownerUserId:
                          type: string
                        hostOwnerReference:
                          anyOf:
                            - type: 'null'
                            - type: string
                      required:
                        - ownerUserId
                        - hostOwnerReference
                    clientKind:
                      type: string
                      const: looker_studio
                    targetIdentity:
                      type: object
                      properties:
                        dataSourceReferenceHash:
                          type: string
                        reportReferenceHash:
                          anyOf:
                            - type: 'null'
                            - type: string
                        credentialOwnership:
                          enum:
                            - owner
                            - viewer
                          type: string
                      required:
                        - dataSourceReferenceHash
                        - reportReferenceHash
                        - credentialOwnership
                    placement:
                      type: object
                      properties:
                        selectedFieldIds:
                          type: array
                          items:
                            type: string
                        dataSourceName:
                          type: string
                        defaultDateFieldId:
                          anyOf:
                            - type: 'null'
                            - type: string
                      required:
                        - selectedFieldIds
                        - dataSourceName
                        - defaultDateFieldId
                    outputShape:
                      enum:
                        - table_group
                        - pivot
                        - rows
                        - semantic_model
                      type: string
                    writePolicy:
                      type: object
                      properties:
                        mode:
                          enum:
                            - replace
                            - append
                            - incremental
                            - combine
                          type: string
                        schemaDriftPolicy:
                          enum:
                            - replace
                            - fail
                            - add_columns
                          type: string
                        partialWritePolicy:
                          enum:
                            - resume
                            - rollback
                          type: string
                        incrementalKeyFieldIds:
                          type: array
                          items:
                            type: string
                        preserveOutputOnFailure:
                          anyOf:
                            - type: boolean
                              const: false
                            - type: boolean
                              const: true
                        maximumRowsPerBatch:
                          type: number
                      required:
                        - mode
                        - schemaDriftPolicy
                        - partialWritePolicy
                        - incrementalKeyFieldIds
                        - preserveOutputOnFailure
                        - maximumRowsPerBatch
                    formatting:
                      type: object
                      properties:
                        timeZone:
                          type: string
                        locale:
                          type: string
                        preserveExisting:
                          anyOf:
                            - type: boolean
                              const: false
                            - type: boolean
                              const: true
                        writeHeaders:
                          anyOf:
                            - type: boolean
                              const: false
                            - type: boolean
                              const: true
                        applyNumberFormats:
                          anyOf:
                            - type: boolean
                              const: false
                            - type: boolean
                              const: true
                        freezeHeaderRow:
                          anyOf:
                            - type: boolean
                              const: false
                            - type: boolean
                              const: true
                        resizeColumns:
                          enum:
                            - never
                            - new_columns
                            - all_columns
                          type: string
                      required:
                        - timeZone
                        - locale
                        - preserveExisting
                        - writeHeaders
                        - applyNumberFormats
                        - freezeHeaderRow
                        - resizeColumns
                    parameterBindings:
                      type: array
                      items:
                        anyOf:
                          - type: object
                            properties:
                              value:
                                anyOf:
                                  - type: 'null'
                                  - type: string
                                  - type: number
                                  - type: boolean
                                    const: false
                                  - type: boolean
                                    const: true
                                  - type: array
                                    items:
                                      $ref: '#/components/schemas/ContractType54286'
                                  - type: object
                                    properties: {}
                                    additionalProperties:
                                      $ref: '#/components/schemas/ContractType54286'
                              kind:
                                type: string
                                const: literal
                              parameterId:
                                type: string
                            required:
                              - value
                              - kind
                              - parameterId
                          - type: object
                            properties:
                              kind:
                                type: string
                                const: cell
                              valueType:
                                enum:
                                  - string
                                  - number
                                  - boolean
                                  - date
                                  - datetime
                                type: string
                              parameterId:
                                type: string
                              stableSheetReference:
                                type: string
                              rangeA1:
                                type: string
                              blankPolicy:
                                enum:
                                  - use_null
                                  - use_default
                                  - fail
                                type: string
                              errorPolicy:
                                enum:
                                  - use_default
                                  - fail
                                type: string
                            required:
                              - kind
                              - valueType
                              - parameterId
                              - stableSheetReference
                              - rangeA1
                              - blankPolicy
                              - errorPolicy
                          - type: object
                            properties:
                              kind:
                                type: string
                                const: host_parameter
                              valueType:
                                enum:
                                  - string
                                  - number
                                  - boolean
                                  - date
                                  - datetime
                                type: string
                              allowViewerOverride:
                                anyOf:
                                  - type: boolean
                                    const: false
                                  - type: boolean
                                    const: true
                              parameterId:
                                type: string
                              blankPolicy:
                                enum:
                                  - use_null
                                  - use_default
                                  - fail
                                type: string
                              hostParameterName:
                                type: string
                            required:
                              - kind
                              - valueType
                              - allowViewerOverride
                              - parameterId
                              - blankPolicy
                              - hostParameterName
                    unattendedAccess:
                      anyOf:
                        - type: boolean
                          const: false
                        - type: boolean
                          const: true
                    credentialReferenceVersion:
                      anyOf:
                        - type: 'null'
                        - type: string
                    performance:
                      type: object
                      properties:
                        maximumRows:
                          type: number
                        refreshMode:
                          enum:
                            - live_operation
                            - latest_retained_result
                          type: string
                        maximumWaitSeconds:
                          type: number
                        resultPageSize:
                          type: number
                        imagePolicy:
                          enum:
                            - url
                            - download
                          type: string
                      required:
                        - maximumRows
                        - refreshMode
                        - maximumWaitSeconds
                        - resultPageSize
                        - imagePolicy
                    refreshFieldsOnCatalogueChange:
                      anyOf:
                        - type: boolean
                          const: false
                        - type: boolean
                          const: true
                    sharing:
                      type: object
                      properties:
                        allowCredentialSharing:
                          anyOf:
                            - type: boolean
                              const: false
                            - type: boolean
                              const: true
                        requireWorkspaceMembership:
                          anyOf:
                            - type: boolean
                              const: false
                            - type: boolean
                              const: true
                      required:
                        - allowCredentialSharing
                        - requireWorkspaceMembership
                  required:
                    - input
                    - schemaVersion
                    - ownership
                    - clientKind
                    - targetIdentity
                    - placement
                    - outputShape
                    - writePolicy
                    - formatting
                    - parameterBindings
                    - unattendedAccess
                    - credentialReferenceVersion
                    - performance
                    - refreshFieldsOnCatalogueChange
                    - sharing
                - type: object
                  properties:
                    input:
                      anyOf:
                        - type: object
                          properties:
                            kind:
                              type: string
                              const: query
                            queryVersionId:
                              type: string
                          required:
                            - kind
                            - queryVersionId
                        - type: object
                          properties:
                            kind:
                              type: string
                              const: model
                            modelVersionId:
                              type: string
                          required:
                            - kind
                            - modelVersionId
                        - type: object
                          properties:
                            kind:
                              type: string
                              const: table_group
                            tableGroupVersionId:
                              type: string
                          required:
                            - kind
                            - tableGroupVersionId
                        - type: object
                          properties:
                            kind:
                              type: string
                              const: managed_dataset
                            managedDatasetVersionId:
                              type: string
                          required:
                            - kind
                            - managedDatasetVersionId
                        - type: object
                          properties:
                            kind:
                              type: string
                              const: imported_dataset
                            importedDatasetVersionId:
                              type: string
                          required:
                            - kind
                            - importedDatasetVersionId
                    schemaVersion:
                      type: number
                      const: 3
                    ownership:
                      type: object
                      properties:
                        ownerUserId:
                          type: string
                        hostOwnerReference:
                          anyOf:
                            - type: 'null'
                            - type: string
                      required:
                        - ownerUserId
                        - hostOwnerReference
                    clientKind:
                      type: string
                      const: power_bi
                    targetIdentity:
                      type: object
                      properties:
                        tenantReferenceHash:
                          anyOf:
                            - type: 'null'
                            - type: string
                        workspaceReferenceHash:
                          anyOf:
                            - type: 'null'
                            - type: string
                        datasetReferenceHash:
                          type: string
                        storageMode:
                          type: string
                          const: import
                      required:
                        - tenantReferenceHash
                        - workspaceReferenceHash
                        - datasetReferenceHash
                        - storageMode
                    placement:
                      type: object
                      properties:
                        tableName:
                          type: string
                        selectedFieldIds:
                          type: array
                          items:
                            type: string
                        semanticModelName:
                          type: string
                      required:
                        - tableName
                        - selectedFieldIds
                        - semanticModelName
                    outputShape:
                      enum:
                        - table_group
                        - pivot
                        - rows
                        - semantic_model
                      type: string
                    writePolicy:
                      type: object
                      properties:
                        mode:
                          enum:
                            - replace
                            - append
                            - incremental
                            - combine
                          type: string
                        schemaDriftPolicy:
                          enum:
                            - replace
                            - fail
                            - add_columns
                          type: string
                        partialWritePolicy:
                          enum:
                            - resume
                            - rollback
                          type: string
                        incrementalKeyFieldIds:
                          type: array
                          items:
                            type: string
                        preserveOutputOnFailure:
                          anyOf:
                            - type: boolean
                              const: false
                            - type: boolean
                              const: true
                        maximumRowsPerBatch:
                          type: number
                      required:
                        - mode
                        - schemaDriftPolicy
                        - partialWritePolicy
                        - incrementalKeyFieldIds
                        - preserveOutputOnFailure
                        - maximumRowsPerBatch
                    formatting:
                      type: object
                      properties:
                        timeZone:
                          type: string
                        locale:
                          type: string
                        preserveExisting:
                          anyOf:
                            - type: boolean
                              const: false
                            - type: boolean
                              const: true
                        writeHeaders:
                          anyOf:
                            - type: boolean
                              const: false
                            - type: boolean
                              const: true
                        applyNumberFormats:
                          anyOf:
                            - type: boolean
                              const: false
                            - type: boolean
                              const: true
                        freezeHeaderRow:
                          anyOf:
                            - type: boolean
                              const: false
                            - type: boolean
                              const: true
                        resizeColumns:
                          enum:
                            - never
                            - new_columns
                            - all_columns
                          type: string
                      required:
                        - timeZone
                        - locale
                        - preserveExisting
                        - writeHeaders
                        - applyNumberFormats
                        - freezeHeaderRow
                        - resizeColumns
                    parameterBindings:
                      type: array
                      items:
                        anyOf:
                          - type: object
                            properties:
                              value:
                                anyOf:
                                  - type: 'null'
                                  - type: string
                                  - type: number
                                  - type: boolean
                                    const: false
                                  - type: boolean
                                    const: true
                                  - type: array
                                    items:
                                      $ref: '#/components/schemas/ContractType54286'
                                  - type: object
                                    properties: {}
                                    additionalProperties:
                                      $ref: '#/components/schemas/ContractType54286'
                              kind:
                                type: string
                                const: literal
                              parameterId:
                                type: string
                            required:
                              - value
                              - kind
                              - parameterId
                          - type: object
                            properties:
                              kind:
                                type: string
                                const: cell
                              valueType:
                                enum:
                                  - string
                                  - number
                                  - boolean
                                  - date
                                  - datetime
                                type: string
                              parameterId:
                                type: string
                              stableSheetReference:
                                type: string
                              rangeA1:
                                type: string
                              blankPolicy:
                                enum:
                                  - use_null
                                  - use_default
                                  - fail
                                type: string
                              errorPolicy:
                                enum:
                                  - use_default
                                  - fail
                                type: string
                            required:
                              - kind
                              - valueType
                              - parameterId
                              - stableSheetReference
                              - rangeA1
                              - blankPolicy
                              - errorPolicy
                          - type: object
                            properties:
                              kind:
                                type: string
                                const: host_parameter
                              valueType:
                                enum:
                                  - string
                                  - number
                                  - boolean
                                  - date
                                  - datetime
                                type: string
                              allowViewerOverride:
                                anyOf:
                                  - type: boolean
                                    const: false
                                  - type: boolean
                                    const: true
                              parameterId:
                                type: string
                              blankPolicy:
                                enum:
                                  - use_null
                                  - use_default
                                  - fail
                                type: string
                              hostParameterName:
                                type: string
                            required:
                              - kind
                              - valueType
                              - allowViewerOverride
                              - parameterId
                              - blankPolicy
                              - hostParameterName
                    unattendedAccess:
                      anyOf:
                        - type: boolean
                          const: false
                        - type: boolean
                          const: true
                    credentialReferenceVersion:
                      anyOf:
                        - type: 'null'
                        - type: string
                    performance:
                      type: object
                      properties:
                        maximumRows:
                          type: number
                        refreshMode:
                          enum:
                            - live_operation
                            - latest_retained_result
                          type: string
                        maximumWaitSeconds:
                          type: number
                        resultPageSize:
                          type: number
                        imagePolicy:
                          enum:
                            - url
                            - download
                          type: string
                      required:
                        - maximumRows
                        - refreshMode
                        - maximumWaitSeconds
                        - resultPageSize
                        - imagePolicy
                    scheduledRefresh:
                      type: object
                      properties:
                        managedBy:
                          enum:
                            - chatobserver
                            - power_bi
                          type: string
                        gatewayRequired:
                          anyOf:
                            - type: boolean
                              const: false
                            - type: boolean
                              const: true
                        privacyLevel:
                          enum:
                            - private
                            - organizational
                          type: string
                      required:
                        - managedBy
                        - gatewayRequired
                        - privacyLevel
                  required:
                    - input
                    - schemaVersion
                    - ownership
                    - clientKind
                    - targetIdentity
                    - placement
                    - outputShape
                    - writePolicy
                    - formatting
                    - parameterBindings
                    - unattendedAccess
                    - credentialReferenceVersion
                    - performance
                    - scheduledRefresh
                - type: object
                  properties:
                    input:
                      anyOf:
                        - type: object
                          properties:
                            kind:
                              type: string
                              const: query
                            queryVersionId:
                              type: string
                          required:
                            - kind
                            - queryVersionId
                        - type: object
                          properties:
                            kind:
                              type: string
                              const: model
                            modelVersionId:
                              type: string
                          required:
                            - kind
                            - modelVersionId
                        - type: object
                          properties:
                            kind:
                              type: string
                              const: table_group
                            tableGroupVersionId:
                              type: string
                          required:
                            - kind
                            - tableGroupVersionId
                        - type: object
                          properties:
                            kind:
                              type: string
                              const: managed_dataset
                            managedDatasetVersionId:
                              type: string
                          required:
                            - kind
                            - managedDatasetVersionId
                        - type: object
                          properties:
                            kind:
                              type: string
                              const: imported_dataset
                            importedDatasetVersionId:
                              type: string
                          required:
                            - kind
                            - importedDatasetVersionId
                    schemaVersion:
                      type: number
                      const: 3
                    ownership:
                      type: object
                      properties:
                        ownerUserId:
                          type: string
                        hostOwnerReference:
                          anyOf:
                            - type: 'null'
                            - type: string
                      required:
                        - ownerUserId
                        - hostOwnerReference
                    clientKind:
                      type: string
                      const: chatobserver_report
                    targetIdentity:
                      type: object
                      properties:
                        reportId:
                          type: string
                        pageId:
                          type: string
                        blockId:
                          type: string
                      required:
                        - reportId
                        - pageId
                        - blockId
                    placement:
                      type: object
                      properties:
                        anchor:
                          anyOf:
                            - type: 'null'
                            - type: string
                        container:
                          type: string
                          const: report_block
                        rangeOrTable:
                          anyOf:
                            - type: 'null'
                            - type: string
                      required:
                        - anchor
                        - container
                        - rangeOrTable
                    outputShape:
                      enum:
                        - table_group
                        - pivot
                        - rows
                        - semantic_model
                      type: string
                    writePolicy:
                      type: object
                      properties:
                        mode:
                          enum:
                            - replace
                            - append
                            - incremental
                            - combine
                          type: string
                        schemaDriftPolicy:
                          enum:
                            - replace
                            - fail
                            - add_columns
                          type: string
                        partialWritePolicy:
                          enum:
                            - resume
                            - rollback
                          type: string
                        incrementalKeyFieldIds:
                          type: array
                          items:
                            type: string
                        preserveOutputOnFailure:
                          anyOf:
                            - type: boolean
                              const: false
                            - type: boolean
                              const: true
                        maximumRowsPerBatch:
                          type: number
                      required:
                        - mode
                        - schemaDriftPolicy
                        - partialWritePolicy
                        - incrementalKeyFieldIds
                        - preserveOutputOnFailure
                        - maximumRowsPerBatch
                    formatting:
                      type: object
                      properties:
                        timeZone:
                          type: string
                        locale:
                          type: string
                        preserveExisting:
                          anyOf:
                            - type: boolean
                              const: false
                            - type: boolean
                              const: true
                        writeHeaders:
                          anyOf:
                            - type: boolean
                              const: false
                            - type: boolean
                              const: true
                        applyNumberFormats:
                          anyOf:
                            - type: boolean
                              const: false
                            - type: boolean
                              const: true
                        freezeHeaderRow:
                          anyOf:
                            - type: boolean
                              const: false
                            - type: boolean
                              const: true
                        resizeColumns:
                          enum:
                            - never
                            - new_columns
                            - all_columns
                          type: string
                      required:
                        - timeZone
                        - locale
                        - preserveExisting
                        - writeHeaders
                        - applyNumberFormats
                        - freezeHeaderRow
                        - resizeColumns
                    parameterBindings:
                      type: array
                      items:
                        anyOf:
                          - type: object
                            properties:
                              value:
                                anyOf:
                                  - type: 'null'
                                  - type: string
                                  - type: number
                                  - type: boolean
                                    const: false
                                  - type: boolean
                                    const: true
                                  - type: array
                                    items:
                                      $ref: '#/components/schemas/ContractType54286'
                                  - type: object
                                    properties: {}
                                    additionalProperties:
                                      $ref: '#/components/schemas/ContractType54286'
                              kind:
                                type: string
                                const: literal
                              parameterId:
                                type: string
                            required:
                              - value
                              - kind
                              - parameterId
                          - type: object
                            properties:
                              kind:
                                type: string
                                const: cell
                              valueType:
                                enum:
                                  - string
                                  - number
                                  - boolean
                                  - date
                                  - datetime
                                type: string
                              parameterId:
                                type: string
                              stableSheetReference:
                                type: string
                              rangeA1:
                                type: string
                              blankPolicy:
                                enum:
                                  - use_null
                                  - use_default
                                  - fail
                                type: string
                              errorPolicy:
                                enum:
                                  - use_default
                                  - fail
                                type: string
                            required:
                              - kind
                              - valueType
                              - parameterId
                              - stableSheetReference
                              - rangeA1
                              - blankPolicy
                              - errorPolicy
                          - type: object
                            properties:
                              kind:
                                type: string
                                const: host_parameter
                              valueType:
                                enum:
                                  - string
                                  - number
                                  - boolean
                                  - date
                                  - datetime
                                type: string
                              allowViewerOverride:
                                anyOf:
                                  - type: boolean
                                    const: false
                                  - type: boolean
                                    const: true
                              parameterId:
                                type: string
                              blankPolicy:
                                enum:
                                  - use_null
                                  - use_default
                                  - fail
                                type: string
                              hostParameterName:
                                type: string
                            required:
                              - kind
                              - valueType
                              - allowViewerOverride
                              - parameterId
                              - blankPolicy
                              - hostParameterName
                    unattendedAccess:
                      anyOf:
                        - type: boolean
                          const: false
                        - type: boolean
                          const: true
                    credentialReferenceVersion:
                      anyOf:
                        - type: 'null'
                        - type: string
                  required:
                    - input
                    - schemaVersion
                    - ownership
                    - clientKind
                    - targetIdentity
                    - placement
                    - outputShape
                    - writePolicy
                    - formatting
                    - parameterBindings
                    - unattendedAccess
                    - credentialReferenceVersion
                - type: object
                  properties:
                    input:
                      anyOf:
                        - type: object
                          properties:
                            kind:
                              type: string
                              const: query
                            queryVersionId:
                              type: string
                          required:
                            - kind
                            - queryVersionId
                        - type: object
                          properties:
                            kind:
                              type: string
                              const: model
                            modelVersionId:
                              type: string
                          required:
                            - kind
                            - modelVersionId
                        - type: object
                          properties:
                            kind:
                              type: string
                              const: table_group
                            tableGroupVersionId:
                              type: string
                          required:
                            - kind
                            - tableGroupVersionId
                        - type: object
                          properties:
                            kind:
                              type: string
                              const: managed_dataset
                            managedDatasetVersionId:
                              type: string
                          required:
                            - kind
                            - managedDatasetVersionId
                        - type: object
                          properties:
                            kind:
                              type: string
                              const: imported_dataset
                            importedDatasetVersionId:
                              type: string
                          required:
                            - kind
                            - importedDatasetVersionId
                    schemaVersion:
                      type: number
                      const: 3
                    ownership:
                      type: object
                      properties:
                        ownerUserId:
                          type: string
                        hostOwnerReference:
                          anyOf:
                            - type: 'null'
                            - type: string
                      required:
                        - ownerUserId
                        - hostOwnerReference
                    clientKind:
                      type: string
                      const: api_export
                    targetIdentity:
                      type: object
                      properties:
                        label:
                          type: string
                        consumerReferenceHash:
                          type: string
                        serviceAccountId:
                          type: string
                      required:
                        - label
                        - consumerReferenceHash
                        - serviceAccountId
                    placement:
                      type: object
                      properties:
                        anchor:
                          anyOf:
                            - type: 'null'
                            - type: string
                        container:
                          type: string
                          const: result_pages
                        rangeOrTable:
                          anyOf:
                            - type: 'null'
                            - type: string
                      required:
                        - anchor
                        - container
                        - rangeOrTable
                    outputShape:
                      enum:
                        - table_group
                        - pivot
                        - rows
                        - semantic_model
                      type: string
                    writePolicy:
                      type: object
                      properties:
                        mode:
                          enum:
                            - replace
                            - append
                            - incremental
                            - combine
                          type: string
                        schemaDriftPolicy:
                          enum:
                            - replace
                            - fail
                            - add_columns
                          type: string
                        partialWritePolicy:
                          enum:
                            - resume
                            - rollback
                          type: string
                        incrementalKeyFieldIds:
                          type: array
                          items:
                            type: string
                        preserveOutputOnFailure:
                          anyOf:
                            - type: boolean
                              const: false
                            - type: boolean
                              const: true
                        maximumRowsPerBatch:
                          type: number
                      required:
                        - mode
                        - schemaDriftPolicy
                        - partialWritePolicy
                        - incrementalKeyFieldIds
                        - preserveOutputOnFailure
                        - maximumRowsPerBatch
                    formatting:
                      type: object
                      properties:
                        timeZone:
                          type: string
                        locale:
                          type: string
                        preserveExisting:
                          anyOf:
                            - type: boolean
                              const: false
                            - type: boolean
                              const: true
                        writeHeaders:
                          anyOf:
                            - type: boolean
                              const: false
                            - type: boolean
                              const: true
                        applyNumberFormats:
                          anyOf:
                            - type: boolean
                              const: false
                            - type: boolean
                              const: true
                        freezeHeaderRow:
                          anyOf:
                            - type: boolean
                              const: false
                            - type: boolean
                              const: true
                        resizeColumns:
                          enum:
                            - never
                            - new_columns
                            - all_columns
                          type: string
                      required:
                        - timeZone
                        - locale
                        - preserveExisting
                        - writeHeaders
                        - applyNumberFormats
                        - freezeHeaderRow
                        - resizeColumns
                    parameterBindings:
                      type: array
                      items:
                        anyOf:
                          - type: object
                            properties:
                              value:
                                anyOf:
                                  - type: 'null'
                                  - type: string
                                  - type: number
                                  - type: boolean
                                    const: false
                                  - type: boolean
                                    const: true
                                  - type: array
                                    items:
                                      $ref: '#/components/schemas/ContractType54286'
                                  - type: object
                                    properties: {}
                                    additionalProperties:
                                      $ref: '#/components/schemas/ContractType54286'
                              kind:
                                type: string
                                const: literal
                              parameterId:
                                type: string
                            required:
                              - value
                              - kind
                              - parameterId
                          - type: object
                            properties:
                              kind:
                                type: string
                                const: cell
                              valueType:
                                enum:
                                  - string
                                  - number
                                  - boolean
                                  - date
                                  - datetime
                                type: string
                              parameterId:
                                type: string
                              stableSheetReference:
                                type: string
                              rangeA1:
                                type: string
                              blankPolicy:
                                enum:
                                  - use_null
                                  - use_default
                                  - fail
                                type: string
                              errorPolicy:
                                enum:
                                  - use_default
                                  - fail
                                type: string
                            required:
                              - kind
                              - valueType
                              - parameterId
                              - stableSheetReference
                              - rangeA1
                              - blankPolicy
                              - errorPolicy
                          - type: object
                            properties:
                              kind:
                                type: string
                                const: host_parameter
                              valueType:
                                enum:
                                  - string
                                  - number
                                  - boolean
                                  - date
                                  - datetime
                                type: string
                              allowViewerOverride:
                                anyOf:
                                  - type: boolean
                                    const: false
                                  - type: boolean
                                    const: true
                              parameterId:
                                type: string
                              blankPolicy:
                                enum:
                                  - use_null
                                  - use_default
                                  - fail
                                type: string
                              hostParameterName:
                                type: string
                            required:
                              - kind
                              - valueType
                              - allowViewerOverride
                              - parameterId
                              - blankPolicy
                              - hostParameterName
                    unattendedAccess:
                      anyOf:
                        - type: boolean
                          const: false
                        - type: boolean
                          const: true
                    credentialReferenceVersion:
                      anyOf:
                        - type: 'null'
                        - type: string
                  required:
                    - input
                    - schemaVersion
                    - ownership
                    - clientKind
                    - targetIdentity
                    - placement
                    - outputShape
                    - writePolicy
                    - formatting
                    - parameterBindings
                    - unattendedAccess
                    - credentialReferenceVersion
      required:
        - definition
    postV2MetricsDefinitionsResourceTypeResourceIdVersionsResponse200:
      type: object
      properties:
        data:
          type: object
          properties:
            actorId:
              type: string
            canonicalHash:
              type: string
            resourceId:
              type: string
            resourceType:
              enum:
                - model
                - table_group
                - imported_dataset
                - client_binding
                - blend
                - custom_field
              type: string
            versionId:
              type: string
            versionNumber:
              type: number
            versionStatus:
              type: string
          required:
            - actorId
            - canonicalHash
            - resourceId
            - resourceType
            - versionId
            - versionNumber
            - versionStatus
        replayed:
          anyOf:
            - type: boolean
              const: false
            - type: boolean
              const: true
      required:
        - data
        - replayed
    postV2MetricsDefinitionsResourceTypeResourceIdVersionsResponse201:
      type: object
      properties:
        data:
          type: object
          properties:
            actorId:
              type: string
            canonicalHash:
              type: string
            resourceId:
              type: string
            resourceType:
              enum:
                - model
                - table_group
                - imported_dataset
                - client_binding
                - blend
                - custom_field
              type: string
            versionId:
              type: string
            versionNumber:
              type: number
            versionStatus:
              type: string
          required:
            - actorId
            - canonicalHash
            - resourceId
            - resourceType
            - versionId
            - versionNumber
            - versionStatus
        replayed:
          anyOf:
            - type: boolean
              const: false
            - type: boolean
              const: true
      required:
        - data
        - replayed
    DataError:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              enum:
                - internal
                - validation_failed
                - authentication_required
                - forbidden
                - not_found
                - conflict
                - precondition_failed
                - idempotency_conflict
                - capability_unavailable
                - connection_unavailable
                - reauthentication_required
                - provider_rate_limited
                - workspace_limit_exceeded
                - result_expired
                - operation_failed
                - temporarily_unavailable
              type: string
            fieldPath:
              type: array
              items:
                anyOf:
                  - type: string
                  - type: number
            parameters:
              type: object
              properties: {}
              additionalProperties:
                anyOf:
                  - type: 'null'
                  - type: string
                  - type: number
                  - type: boolean
                    const: false
                  - type: boolean
                    const: true
            repairActions:
              type: array
              items:
                type: string
                minLength: 1
                maxLength: 96
              maxItems: 10
            requestId:
              type: string
              minLength: 1
              maxLength: 160
            retryable:
              anyOf:
                - type: boolean
                  const: false
                - type: boolean
                  const: true
            retryAfterSeconds:
              anyOf:
                - type: 'null'
                - type: integer
                  exclusiveMinimum: 0
          required:
            - code
            - fieldPath
            - parameters
            - repairActions
            - requestId
            - retryable
            - retryAfterSeconds
          additionalProperties: false
      required:
        - error
      additionalProperties: false
    ApiError:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
            message:
              type: string
            details: {}
          required:
            - code
            - message
        requestId:
          type: string
      required:
        - error
        - requestId
    ContractType54286:
      anyOf:
        - type: 'null'
        - type: string
        - type: number
        - type: boolean
          const: false
        - type: boolean
          const: true
        - type: array
          items:
            $ref: '#/components/schemas/ContractType54286'
        - type: object
          properties: {}
          additionalProperties:
            $ref: '#/components/schemas/ContractType54286'
    ContractType152093:
      anyOf:
        - type: object
          properties:
            kind:
              type: string
              const: literal
            valueType:
              enum:
                - string
                - number
                - boolean
                - integer
                - date
                - json
                - duration
                - url
                - percent
                - currency
                - datetime
                - decimal
                - image_url
              type: string
            value:
              anyOf:
                - type: 'null'
                - type: string
                - type: number
                - type: boolean
                  const: false
                - type: boolean
                  const: true
                - type: array
                  items:
                    $ref: '#/components/schemas/ContractType54286'
                - type: object
                  properties: {}
                  additionalProperties:
                    $ref: '#/components/schemas/ContractType54286'
          required:
            - kind
            - valueType
            - value
        - type: object
          properties:
            kind:
              type: string
              const: field
            fieldId:
              type: string
          required:
            - kind
            - fieldId
        - type: object
          properties:
            kind:
              type: string
              const: custom_field
            customFieldVersionId:
              type: string
          required:
            - kind
            - customFieldVersionId
        - type: object
          properties:
            kind:
              type: string
              const: call
            function:
              enum:
                - minimum
                - maximum
                - concat
                - replace
                - substring
                - trim
                - if
                - equals
                - not_equals
                - greater_than
                - less_than
                - absolute
                - and
                - or
                - lowercase
                - uppercase
                - add
                - subtract
                - multiply
                - divide
                - modulo
                - round
                - coalesce
                - case
                - not
                - regex_extract
                - date_add
                - date_difference
                - date_truncate
                - extract_date_part
                - ratio
                - percentage
                - currency_convert
                - lookup
              type: string
            arguments:
              type: array
              items:
                $ref: '#/components/schemas/ContractType152093'
            options:
              type: object
              properties: {}
              additionalProperties:
                anyOf:
                  - type: 'null'
                  - type: string
                  - type: number
                  - type: boolean
                    const: false
                  - type: boolean
                    const: true
                  - type: array
                    items:
                      $ref: '#/components/schemas/ContractType54286'
                  - type: object
                    properties: {}
                    additionalProperties:
                      $ref: '#/components/schemas/ContractType54286'
          required:
            - kind
            - function
            - arguments
            - options
    ContractType94867:
      type: object
      properties:
        kind:
          type: string
          const: group
        conjunction:
          enum:
            - and
            - or
          type: string
        children:
          type: array
          items:
            anyOf:
              - type: object
                properties:
                  kind:
                    type: string
                    const: condition
                  fieldId:
                    type: string
                  operator:
                    enum:
                      - equals
                      - not_equals
                      - contains
                      - greater_than
                      - less_than
                      - in
                      - between
                      - is_null
                      - is_not_null
                      - not_in
                      - not_contains
                      - starts_with
                      - ends_with
                      - regex
                      - not_regex
                      - greater_than_or_equal
                      - less_than_or_equal
                    type: string
                  value:
                    anyOf:
                      - type: 'null'
                      - type: string
                      - type: number
                      - type: boolean
                        const: false
                      - type: boolean
                        const: true
                      - type: array
                        items:
                          $ref: '#/components/schemas/ContractType54286'
                      - type: object
                        properties: {}
                        additionalProperties:
                          $ref: '#/components/schemas/ContractType54286'
                  execution:
                    enum:
                      - pushdown_required
                      - pushdown_preferred
                      - platform_allowed
                    type: string
                required:
                  - kind
                  - fieldId
                  - operator
                  - value
                  - execution
              - $ref: '#/components/schemas/ContractType94867'
      required:
        - kind
        - conjunction
        - children
    ContractType156929:
      type: array
      items:
        $ref: '#/components/schemas/ContractType152093'
  securitySchemes:
    WorkspaceKey:
      type: apiKey
      in: header
      name: x-chatobserver-key
      description: >-
        A workspace API key. Data endpoints require a service-account key with
        the specified scopes.
    BearerKey:
      type: http
      scheme: bearer
      description: The workspace or service-account API key as a bearer token.

````