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

# Update assistant

> Update an existing assistant.



## OpenAPI

````yaml https://api.useinvent.com/openapi.json patch /orgs/assistants/{assistant_id}
openapi: 3.1.0
info:
  version: 1.0.0
  title: Invent API
servers:
  - url: https://api.useinvent.com
security:
  - bearerAuth: []
tags:
  - name: Inbox
  - name: Chats
  - name: Messages
  - name: Contacts
  - name: Custom channels
  - name: Segments
  - name: Suppressions
  - name: Assistants
  - name: Agents
  - name: Skills
  - name: Knowledge
  - name: AI
  - name: Broadcasts
  - name: Email sending
  - name: WhatsApp
  - name: WhatsApp Meta agent
  - name: Tables
  - name: Records
  - name: Views
  - name: Pages
  - name: Connections
  - name: Workspace
  - name: Sub-organizations
  - name: Analytics and logs
  - name: Workflows
paths:
  /orgs/assistants/{assistant_id}:
    patch:
      tags:
        - Assistants
      summary: Update assistant
      description: Update an existing assistant.
      parameters:
        - schema:
            type: string
          required: true
          description: The ID of the assistant
          name: assistant_id
          in: path
      requestBody:
        description: The assistant information to update.
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateAssistantSchema'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/UpdateAssistantSchema'
      responses:
        '200':
          description: The updated assistant.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AssistantSchema'
components:
  schemas:
    UpdateAssistantSchema:
      type: object
      properties:
        name:
          type: string
          minLength: 1
          maxLength: 1024
          title: Name
          description: The name of the assistant
        avatar_id:
          type:
            - string
            - 'null'
          maxLength: 128
          description: The ID of the avatar file id
        contact_fields:
          type: array
          items:
            $ref: '#/components/schemas/UpdateAssistantContactFieldEntrySchema'
          maxItems: 32
        config:
          $ref: '#/components/schemas/UpdateAssistantConfigSchema'
      description: Schema for updating an existing assistant
    AssistantSchema:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
          description: The name of the assistant
        deleted:
          type: boolean
          description: Whether the assistant has been soft-deleted
        secret_key:
          type:
            - string
            - 'null'
          description: The secret key to create session hashes
        avatar_url:
          type:
            - string
            - 'null'
          description: The URL of the avatar photo
        config:
          $ref: '#/components/schemas/AssistantConfigSchema'
        channels:
          type: array
          items:
            $ref: '#/components/schemas/AssistantChannelSchema'
        actions:
          type: array
          items:
            $ref: '#/components/schemas/AssistantActionSchema'
        contact_fields:
          type: array
          items:
            $ref: '#/components/schemas/AssistantContactFieldSchema'
        members:
          type: array
          items:
            $ref: '#/components/schemas/OrgMemberSchema'
          description: >-
            Bounded preview of assigned members (list reads only) for the
            collage
        members_count:
          type: number
          description: Total number of assigned members (list reads only)
        spending_cap:
          anyOf:
            - $ref: '#/components/schemas/SpendingCapSchema'
            - type: 'null'
        created_at:
          type:
            - string
            - 'null'
          format: date-time
        updated_at:
          type:
            - string
            - 'null'
          format: date-time
      required:
        - id
        - name
        - deleted
        - secret_key
        - avatar_url
        - config
        - channels
        - actions
        - contact_fields
        - spending_cap
        - created_at
        - updated_at
      description: Schema for an assistant
    UpdateAssistantContactFieldEntrySchema:
      type: object
      properties:
        field_id:
          type: string
          title: Contact Property
          description: The contact property field id.
        mode:
          $ref: '#/components/schemas/AssistantContactFieldModeSchema'
      required:
        - field_id
        - mode
      description: Single entry for the contact-properties whitelist sync.
    UpdateAssistantConfigSchema:
      type: object
      properties:
        instructions:
          type: string
          maxLength: 40000
          title: Instructions
          description: 'The instructions for the assistant: its system prompt'
        language:
          $ref: '#/components/schemas/ModelLanguageSchema'
        model:
          type: string
          minLength: 1
          maxLength: 128
          title: Model
          description: The model to use for the assistant
        conversation:
          $ref: '#/components/schemas/PartialAssistantConversationConfigSchema'
        widget:
          $ref: '#/components/schemas/PartialAssistantWidgetConfigSchema'
        knowledge_scope:
          $ref: '#/components/schemas/KnowledgeModeSchema'
        timezone:
          $ref: '#/components/schemas/TimezoneValueSchema'
      description: Schema for updating the configuration of an assistant
    AssistantConfigSchema:
      type: object
      properties:
        instructions:
          type: string
          maxLength: 40000
          title: Instructions
          description: 'The instructions for the assistant: its system prompt'
        language:
          $ref: '#/components/schemas/ModelLanguageSchema'
        model:
          type: string
          minLength: 1
          maxLength: 128
          title: Model
          description: The model to use for the assistant
        conversation:
          $ref: '#/components/schemas/AssistantConversationConfigSchema'
        widget:
          $ref: '#/components/schemas/AssistantWidgetConfigSchema'
        knowledge_scope:
          $ref: '#/components/schemas/KnowledgeModeSchema'
        timezone:
          $ref: '#/components/schemas/TimezoneValueSchema'
      required:
        - language
        - model
        - conversation
        - knowledge_scope
        - timezone
      description: Schema for the configuration of an assistant
    AssistantChannelSchema:
      type: object
      properties:
        id:
          type: string
        enabled:
          type: boolean
        channel_type:
          $ref: '#/components/schemas/ChannelTypeIdSchema'
        assistant_id:
          type: string
        connection_id:
          type:
            - string
            - 'null'
        config:
          $ref: '#/components/schemas/AssistantChannelConfigSchema'
        error:
          type:
            - string
            - 'null'
        platform_url:
          type:
            - string
            - 'null'
        created_at:
          type:
            - string
            - 'null'
          format: date-time
        updated_at:
          type:
            - string
            - 'null'
          format: date-time
      required:
        - id
        - enabled
        - channel_type
        - assistant_id
        - connection_id
        - config
        - error
        - platform_url
        - created_at
        - updated_at
      description: Schema for an assistant channel
    AssistantActionSchema:
      type: object
      properties:
        id:
          type: string
          description: The ID of the action
        enabled:
          type: boolean
          description: Whether the action is enabled
        name:
          type:
            - string
            - 'null'
          description: The name of the action
        instructions:
          type:
            - string
            - 'null'
          description: The instructions for the action
        action_id:
          type: string
          description: The ID of the action, e.g. "TOOLS:HTTP_REQUEST"
          examples:
            - TOOLS:HTTP_REQUEST
            - TOOLS:WEB_SEARCH
            - TOOLS:WEB_SCRAPING
        assistant_id:
          type: string
          description: The ID of the assistant
          examples:
            - ast_XXX
        connection_id:
          type:
            - string
            - 'null'
          description: The ID of the connection to use for the action if required
          examples:
            - con_XXX
        config:
          $ref: '#/components/schemas/InputValuesWithDefinitionsSchema'
        approval_mode:
          $ref: '#/components/schemas/ConnectionActionApprovalModeSchema'
        position:
          type: integer
          description: >-
            The position of the action within its group. Bucketed in multiples
            of 100, e.g. 100, 101, 102 for the first group, 200, 201, 202 for
            the second
        created_at:
          type:
            - string
            - 'null'
          format: date-time
        updated_at:
          type:
            - string
            - 'null'
          format: date-time
      required:
        - id
        - enabled
        - name
        - instructions
        - action_id
        - assistant_id
        - connection_id
        - config
        - approval_mode
        - position
        - created_at
        - updated_at
      description: Schema for an assistant action
    AssistantContactFieldSchema:
      type: object
      properties:
        mode:
          $ref: '#/components/schemas/AssistantContactFieldModeSchema'
        field:
          $ref: '#/components/schemas/TableFieldSchema'
        created_at:
          type:
            - string
            - 'null'
          format: date-time
      required:
        - mode
        - field
        - created_at
      description: >-
        A contact-property field this assistant is allowed to see or update.
        Embeds the full TableField so callers do not have to remap individual
        props.
    OrgMemberSchema:
      type: object
      properties:
        id:
          type: string
          description: Unique identifier for the org member
        name:
          type:
            - string
            - 'null'
          description: Name of the org member
        email:
          type: string
          format: email
          description: Email address of the org member
        avatar:
          type:
            - string
            - 'null'
          description: Avatar URL of the org member
        role:
          $ref: '#/components/schemas/OrgMemberRoleSchema'
        status:
          $ref: '#/components/schemas/OrgMemberStatusSchema'
        description:
          type:
            - string
            - 'null'
          description: >-
            What this member handles — visible to the AI when routing
            conversations
        org_id:
          type: string
          description: Identifier of the org to which the member belongs
        user_id:
          type: string
          description: Identifier of the user associated with the org member
        preferences:
          $ref: '#/components/schemas/OrgMemberPreferencesSchema'
        roles:
          type: array
          items:
            $ref: '#/components/schemas/CustomRoleSchema'
          description: Custom roles assigned to the member
        spending_cap:
          anyOf:
            - $ref: '#/components/schemas/SpendingCapSchema'
            - type: 'null'
        created_at:
          type:
            - string
            - 'null'
          format: date-time
          description: Timestamp when the org member was created
        updated_at:
          type:
            - string
            - 'null'
          format: date-time
          description: Timestamp when the org member was last updated
        seen_at:
          type:
            - string
            - 'null'
          format: date-time
          description: Timestamp when the user was last seen
        routines_count:
          type: number
          description: >-
            How many private routines the member runs in this org, on the
            members list only
      required:
        - id
        - name
        - email
        - avatar
        - role
        - status
        - description
        - org_id
        - user_id
        - preferences
        - roles
        - spending_cap
        - created_at
        - updated_at
        - seen_at
      description: Detailed information about an org member
    SpendingCapSchema:
      type: object
      properties:
        id:
          type: string
        amount:
          anyOf:
            - type: number
            - type: 'null'
          description: >-
            The subject's own monthly limit in USD; null follows the org's
            default for its kind, or none
        used:
          type: number
          description: Spent this month in USD, back to zero on the first day of the month
      required:
        - id
        - amount
        - used
      description: A monthly spending cap on a user, an agent or an assistant
    AssistantContactFieldModeSchema:
      type: string
      enum:
        - none
        - read
        - write
      options:
        none:
          label: None
        read:
          label: Read
        write:
          label: Write
      title: Mode
      description: >-
        read: AI sees the property in its context but cannot update it. write:
        AI sees AND can update via the update_contact tool.
    ModelLanguageSchema:
      type: string
      enum:
        - auto
        - en
        - es
      description: List of supported languages for the model in ISO 639-1 format or "auto"
    PartialAssistantConversationConfigSchema:
      type: object
      properties:
        thread_mode:
          $ref: '#/components/schemas/AssistantThreadModeSchema'
        welcome_banner:
          type: string
          maxLength: 256
          title: Welcome Banner
          description: Static greeting shown in the UI when a conversation starts.
        suggested_messages:
          type: array
          items:
            type: string
            maxLength: 64
          maxItems: 5
          title: Suggested Messages
          description: Up to 5 suggested messages shown when a conversation starts.
        auto_intro_message:
          type: string
          maxLength: 256
          title: Auto Intro Message
          description: >-
            First message the assistant sends automatically when a conversation
            begins via API.
        enable_memories:
          type: boolean
          title: Memories
          description: Let the assistant store memories about the contact.
        enable_end_conversation_tool:
          type: boolean
          title: Close Conversation Tool
          description: Let the assistant close conversations on its own.
        enable_transfer_to_human_tool:
          type: boolean
          title: AI Routing
          description: >-
            The AI Routing switch: let the assistant hand a conversation to one
            of your members. Off turns routing off, whatever the routing
            instructions say. Who can receive a handoff is the Members list in
            the same AI Routing card: add members there to route only to them
            (empty means any member), and give each one a description so the
            assistant knows which chats go to whom.
        routing_instructions:
          type: string
          maxLength: 40000
          title: Routing Instructions
          description: >-
            Business instructions that steer how this assistant routes transfers
            to a human (which member or team to prefer, when to escalate).
            Appended to the transfer tool guidance. The assistant can only route
            to the members in the AI Routing Members list (any member when it is
            empty).
        enable_block_contact_tool:
          type: boolean
          title: Block Contact Tool
          description: Let the assistant block abusive contacts.
        enable_ai_replies:
          type: boolean
          title: AI Replies
          description: >-
            When false the assistant is human-only: messages are received but
            the AI never responds.
        enable_auto_resolve:
          type: boolean
          title: Auto Resolve
          description: Automatically resolve conversations after a period of inactivity.
        enable_auto_follow_ups:
          type: boolean
          title: Auto Follow-ups
          description: Let the assistant follow up on conversations on its own.
        follow_up_instructions:
          type: string
          maxLength: 40000
          title: Follow-up Instructions
          description: >-
            Business rules that steer automatic follow-ups (cadence, hours, stop
            rules, tone).
        follow_ups_outside_window:
          type: boolean
          title: Follow up after the window closes
          description: >-
            After the messaging window closes, still follow up about something
            the contact asked for or is waiting on (WhatsApp).
        enable_auto_csat:
          type: boolean
          title: Auto CSAT
          description: >-
            Automatically score customer satisfaction when closing
            conversations.
        enable_private_chats:
          type: boolean
          title: Private Chats
          description: Enable private chats that do not appear in the inbox.
        enable_update_contact_tool:
          type: boolean
          title: Update Contact Tool
          description: Let the assistant collect and update contact information.
        enable_transcription:
          type: boolean
          title: Transcriptions
          description: >-
            Turn voice notes and videos into text, and describe what videos
            show, so any model understands them.
      description: >-
        Partial conversation configuration for create/update payloads; omitted
        keys keep their stored values
    PartialAssistantWidgetConfigSchema:
      type: object
      properties:
        enabled:
          type: boolean
        mode:
          $ref: '#/components/schemas/AssistantWidgetModeSchema'
        appearance:
          $ref: '#/components/schemas/AssistantWidgetAppearanceSchema'
        position:
          $ref: '#/components/schemas/AssistantWidgetPositionSchema'
        omnibar_minimize_desktop:
          type: boolean
        hide_powered_by:
          type: boolean
        enable_dictation:
          type: boolean
        enable_file_uploads:
          type: boolean
        colors:
          type: object
          properties:
            accent:
              type: string
              pattern: ^#[0-9a-f]{6}$/i
              description: >-
                Accent color used inside the chat (buttons, visitor messages,
                links)
            launcher_background:
              type: string
              pattern: ^#[0-9a-f]{6}$/i
              description: >-
                Background color of the widget button; the icon color adapts
                automatically
        teaser:
          type: object
          properties:
            enabled:
              type: boolean
            message:
              type: string
              maxLength: 140
              description: Short invitation shown next to the closed widget button
            modes:
              type: string
              enum:
                - all
                - button
                - omnibar
            suggestions:
              type: string
              enum:
                - all
                - button
                - omnibar
                - none
            delay_seconds:
              type: integer
              minimum: 0
              maximum: 120
            frequency:
              $ref: '#/components/schemas/AssistantWidgetTeaserFrequencySchema'
            devices:
              $ref: '#/components/schemas/AssistantWidgetTeaserDevicesSchema'
            version:
              type: integer
              minimum: 1
        channels:
          type: object
          properties:
            items:
              type: array
              items:
                $ref: '#/components/schemas/AssistantWidgetChannelItemSchema'
              maxItems: 20
            label:
              type: string
              maxLength: 48
              description: Heading above the channels menu; defaults to "Talk to us on"
            chat_button_label:
              type: string
              maxLength: 48
              description: Label of the launcher chat action; defaults to "Chat with us"
      description: >-
        Partial widget configuration for create/update payloads; omitted keys
        keep their stored values
    KnowledgeModeSchema:
      type: string
      enum:
        - all
        - restricted
      options:
        all:
          label: All sources
        restricted:
          label: Selected sources
      title: Knowledge Scope
      description: >-
        Which knowledge the assistant searches: all sources, or only the ones
        linked to it (List/Link/Unlink Assistant Knowledge Source).
    TimezoneValueSchema:
      type: string
      title: Timezone
      description: IANA timezone, e.g. "America/New_York".
    AssistantConversationConfigSchema:
      type: object
      properties:
        thread_mode:
          $ref: '#/components/schemas/AssistantThreadModeSchema'
        welcome_banner:
          type: string
          maxLength: 256
          title: Welcome Banner
          description: Static greeting shown in the UI when a conversation starts.
        suggested_messages:
          type: array
          items:
            type: string
            maxLength: 64
          maxItems: 5
          title: Suggested Messages
          description: Up to 5 suggested messages shown when a conversation starts.
        auto_intro_message:
          type: string
          maxLength: 256
          title: Auto Intro Message
          description: >-
            First message the assistant sends automatically when a conversation
            begins via API.
        enable_memories:
          type: boolean
          title: Memories
          description: Let the assistant store memories about the contact.
        enable_end_conversation_tool:
          type: boolean
          title: Close Conversation Tool
          description: Let the assistant close conversations on its own.
        enable_transfer_to_human_tool:
          type: boolean
          title: AI Routing
          description: >-
            The AI Routing switch: let the assistant hand a conversation to one
            of your members. Off turns routing off, whatever the routing
            instructions say. Who can receive a handoff is the Members list in
            the same AI Routing card: add members there to route only to them
            (empty means any member), and give each one a description so the
            assistant knows which chats go to whom.
        routing_instructions:
          type: string
          maxLength: 40000
          title: Routing Instructions
          description: >-
            Business instructions that steer how this assistant routes transfers
            to a human (which member or team to prefer, when to escalate).
            Appended to the transfer tool guidance. The assistant can only route
            to the members in the AI Routing Members list (any member when it is
            empty).
        enable_block_contact_tool:
          type: boolean
          title: Block Contact Tool
          description: Let the assistant block abusive contacts.
        enable_ai_replies:
          type: boolean
          title: AI Replies
          description: >-
            When false the assistant is human-only: messages are received but
            the AI never responds.
        enable_auto_resolve:
          type: boolean
          title: Auto Resolve
          description: Automatically resolve conversations after a period of inactivity.
        enable_auto_follow_ups:
          type: boolean
          title: Auto Follow-ups
          description: Let the assistant follow up on conversations on its own.
        follow_up_instructions:
          type: string
          maxLength: 40000
          title: Follow-up Instructions
          description: >-
            Business rules that steer automatic follow-ups (cadence, hours, stop
            rules, tone).
        follow_ups_outside_window:
          type: boolean
          title: Follow up after the window closes
          description: >-
            After the messaging window closes, still follow up about something
            the contact asked for or is waiting on (WhatsApp).
        enable_auto_csat:
          type: boolean
          title: Auto CSAT
          description: >-
            Automatically score customer satisfaction when closing
            conversations.
        enable_private_chats:
          type: boolean
          title: Private Chats
          description: Enable private chats that do not appear in the inbox.
        enable_update_contact_tool:
          type: boolean
          title: Update Contact Tool
          description: Let the assistant collect and update contact information.
        enable_transcription:
          type: boolean
          title: Transcriptions
          description: >-
            Turn voice notes and videos into text, and describe what videos
            show, so any model understands them.
      required:
        - thread_mode
        - enable_memories
        - enable_transfer_to_human_tool
      description: Configuration options for the conversation thread of the assistant
    AssistantWidgetConfigSchema:
      type: object
      properties:
        enabled:
          type: boolean
          description: >-
            Whether the widget shows where its embed code is installed. Off
            hides it without removing the code.
        mode:
          $ref: '#/components/schemas/AssistantWidgetModeSchema'
        appearance:
          $ref: '#/components/schemas/AssistantWidgetAppearanceSchema'
        position:
          $ref: '#/components/schemas/AssistantWidgetPositionSchema'
        omnibar_minimize_desktop:
          type: boolean
          description: >-
            Fold the omnibar into its compact centered button while visitors
            scroll on desktop too. On mobile viewports it always folds.
        hide_powered_by:
          type: boolean
        enable_dictation:
          type: boolean
        enable_file_uploads:
          type: boolean
        colors:
          $ref: '#/components/schemas/AssistantWidgetColorsConfigSchema'
        teaser:
          $ref: '#/components/schemas/AssistantWidgetTeaserConfigSchema'
        channels:
          $ref: '#/components/schemas/AssistantWidgetChannelsConfigSchema'
      default: {}
      description: Configuration of the embeddable web chat widget
    ChannelTypeIdSchema:
      type: string
      enum:
        - internal
        - org
        - agent
        - custom
        - whatsapp_bot
        - messenger_bot
        - instagram_dm
        - tiktok_dm
        - telegram_bot
        - slack_bot
        - teams_bot
        - gmail
        - outlook
        - twilio
        - telnyx
        - email
        - smpp
      description: The channel type
    AssistantChannelConfigSchema:
      type: object
      additionalProperties:
        $ref: '#/components/schemas/InputValuesWithDefinitionsSchema'
      description: Configuration object for the assistant integration
    InputValuesWithDefinitionsSchema:
      type: object
      properties:
        input:
          allOf:
            - $ref: '#/components/schemas/InputValuesSchema'
            - description: Values of the fields
        definitions:
          type: array
          items:
            $ref: '#/components/schemas/DynamicFieldsSchema'
      required:
        - input
      description: The input values with their dynamic field definitions
    ConnectionActionApprovalModeSchema:
      type: string
      enum:
        - auto
        - ask
        - never
      description: When the assistant must ask before running the action
    TableFieldSchema:
      oneOf:
        - $ref: '#/components/schemas/TableSystemFieldSchema'
        - $ref: '#/components/schemas/TableCustomFieldSchema'
      discriminator:
        propertyName: kind
        mapping:
          system: '#/components/schemas/TableSystemFieldSchema'
          custom: '#/components/schemas/TableCustomFieldSchema'
    OrgMemberRoleSchema:
      type: string
      enum:
        - ADMIN
        - DEVELOPER
        - MANAGER
        - STAFF
      title: System Role
      description: Role of the org member within the org
    OrgMemberStatusSchema:
      type: string
      enum:
        - ACTIVE
        - INACTIVE
      title: Status
      description: Status of the org member
    OrgMemberPreferencesSchema:
      type: object
      properties:
        notifications:
          $ref: '#/components/schemas/OrgMemberNotificationsSchema'
      required:
        - notifications
      description: Preferences of the org member
    CustomRoleSchema:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        description:
          type:
            - string
            - 'null'
        color:
          $ref: '#/components/schemas/ColorNameSchema'
        permissions:
          type: array
          items:
            $ref: '#/components/schemas/OrgPermissionSchema'
      required:
        - id
        - name
        - description
        - color
        - permissions
      description: A user-created org role and its permissions
    AssistantThreadModeSchema:
      type: string
      enum:
        - new
        - continue
      options:
        new:
          label: New conversation
        continue:
          label: Continue previous
      title: Thread Mode
      description: >-
        Whether returning users start a new conversation or continue the
        previous one.
    AssistantWidgetModeSchema:
      type: string
      enum:
        - button
        - omnibar
        - auto
      default: button
      description: >-
        Default shape of the embedded widget: corner bubble button, centered
        omnibar, or auto (omnibar until the visitor has a conversation). A mode
        attribute on the embed element overrides it, and a visitor’s own
        header-toggle pick outranks both on desktop; mobile has no toggle and
        always follows the attribute or this setting.
    AssistantWidgetAppearanceSchema:
      type: string
      enum:
        - auto
        - light
        - dark
      default: auto
      description: 'Theme of the widget: follow the visitor system or force one'
    AssistantWidgetPositionSchema:
      type: string
      enum:
        - right
        - left
      default: right
      description: >-
        Corner where the bubble launcher is anchored (the omnibar is always
        centered). A position attribute on the embed element overrides it.
    AssistantWidgetTeaserFrequencySchema:
      type: string
      enum:
        - once_per_visitor
        - once_per_session
        - every_visit
      default: once_per_visitor
      description: How often the teaser can show again to the same visitor
    AssistantWidgetTeaserDevicesSchema:
      type: string
      enum:
        - all
        - desktop
        - mobile
      default: desktop
      description: Devices where the teaser shows
    AssistantWidgetChannelItemSchema:
      type: object
      properties:
        channel_id:
          type: string
          maxLength: 128
          description: >-
            Connected assistant channel to link to; the URL is generated from
            the connection and ignored when the channel no longer exists
        enabled:
          type: boolean
          description: >-
            Connected channels are included by default; set to false to hide one
            from the widget
        type:
          allOf:
            - $ref: '#/components/schemas/AssistantWidgetChannelTypeSchema'
            - description: Type of a custom channel link
        label:
          type: string
          maxLength: 48
        url:
          type: string
          maxLength: 2048
          format: uri
          description: Destination of a custom link channel
        email:
          type: string
          maxLength: 320
          format: email
          description: Address of a custom email channel
        phone:
          type: string
          pattern: ^\+[1-9]\d{6,14}$
          description: E.164 number of a custom phone channel
      description: >-
        A widget channel link: either a connected channel reference or a custom
        entry
    AssistantWidgetColorsConfigSchema:
      type: object
      properties:
        accent:
          type: string
          pattern: ^#[0-9a-f]{6}$/i
          description: Accent color used inside the chat (buttons, visitor messages, links)
        launcher_background:
          type: string
          pattern: ^#[0-9a-f]{6}$/i
          description: >-
            Background color of the widget button; the icon color adapts
            automatically
      default: {}
      description: Color overrides for the widget
    AssistantWidgetTeaserConfigSchema:
      type: object
      properties:
        enabled:
          type: boolean
        message:
          type: string
          maxLength: 140
          description: Short invitation shown next to the closed widget button
        modes:
          type: string
          enum:
            - all
            - button
            - omnibar
          default: all
          description: >-
            Which widget modes show the teaser: both, only the bubble button, or
            only the omnibar
        suggestions:
          type: string
          enum:
            - all
            - button
            - omnibar
            - none
          default: button
          description: >-
            Which widget modes show the suggested replies with the teaser, or
            none. Defaults to the bubble button; the omnibar already shows them
            when focused, independent of this setting.
        delay_seconds:
          type: integer
          minimum: 0
          maximum: 120
          default: 3
          description: Seconds to wait before showing the teaser
        frequency:
          $ref: '#/components/schemas/AssistantWidgetTeaserFrequencySchema'
        devices:
          $ref: '#/components/schemas/AssistantWidgetTeaserDevicesSchema'
        version:
          type: integer
          minimum: 1
          default: 1
          description: Bump to show the teaser again to visitors who already dismissed it
      default: {}
      description: >-
        Proactive teaser configuration for the widget. The suggested replies
        shown with the teaser come from conversation.suggested_messages.
    AssistantWidgetChannelsConfigSchema:
      type: object
      properties:
        items:
          type: array
          items:
            $ref: '#/components/schemas/AssistantWidgetChannelItemSchema'
          maxItems: 20
          default: []
        label:
          type: string
          maxLength: 48
          description: Heading above the channels menu; defaults to "Talk to us on"
        chat_button_label:
          type: string
          maxLength: 48
          description: Label of the launcher chat action; defaults to "Chat with us"
      default: {}
      description: >-
        Alternative channels offered in the widget launcher menu when any are
        configured
    InputValuesSchema:
      type: object
      additionalProperties: {}
      description: >-
        For connection-bound tools, locked input values (e.g. a selected
        resource) that drive dynamic fields and are injected at execution
    DynamicFieldsSchema:
      type: object
      properties:
        path:
          type: string
        definition:
          $ref: '#/components/schemas/FieldsSchema'
      required:
        - path
        - definition
      description: The dynamic fields input definitions
    TableSystemFieldSchema:
      type: object
      properties:
        id:
          type: string
        table_id:
          type: string
        key:
          type: string
        type:
          $ref: '#/components/schemas/TableFieldTypeSchema'
        schema:
          $ref: '#/components/schemas/FieldBaseSchema'
        readonly:
          type: boolean
        sortable:
          type: boolean
          description: Whether views can sort their records by this field.
        groupable_in:
          type: array
          items:
            type: string
            enum:
              - table
              - board
              - calendar
              - timeline
              - list
              - gallery
          description: View kinds that accept this field as their grouping axis.
        kind:
          type: string
          enum:
            - system
      required:
        - id
        - table_id
        - key
        - type
        - schema
        - readonly
        - sortable
        - groupable_in
        - kind
    TableCustomFieldSchema:
      type: object
      properties:
        id:
          type: string
        table_id:
          type: string
        key:
          type: string
        type:
          $ref: '#/components/schemas/TableFieldTypeSchema'
        schema:
          $ref: '#/components/schemas/FieldBaseSchema'
        readonly:
          type: boolean
        sortable:
          type: boolean
          description: Whether views can sort their records by this field.
        groupable_in:
          type: array
          items:
            type: string
            enum:
              - table
              - board
              - calendar
              - timeline
              - list
              - gallery
          description: View kinds that accept this field as their grouping axis.
        kind:
          type: string
          enum:
            - custom
        icon:
          anyOf:
            - $ref: '#/components/schemas/PickerIconEmojiSchema'
            - type: string
              maxLength: 64
              pattern: ^[a-zA-Z0-9_-]+$
              description: >-
                The name of a curated icon a user can pick for a table, view,
                field, or other entity
              oneOf:
                - $ref: '#/components/schemas/PickerIconNameSchema'
            - type: 'null'
        color:
          anyOf:
            - $ref: '#/components/schemas/ColorNameSchema'
            - type: 'null'
        unique:
          type: boolean
        on_target_delete:
          $ref: '#/components/schemas/TableFieldOnTargetDeleteSchema'
        archived:
          type: boolean
        created_at:
          type:
            - string
            - 'null'
          format: date-time
        updated_at:
          type:
            - string
            - 'null'
          format: date-time
      required:
        - id
        - table_id
        - key
        - type
        - schema
        - readonly
        - sortable
        - groupable_in
        - kind
        - icon
        - color
        - unique
        - on_target_delete
        - archived
        - created_at
        - updated_at
    OrgMemberNotificationsSchema:
      type: object
      properties:
        assigned_to_me:
          $ref: '#/components/schemas/OrgMemberNotificationSchema'
        billing:
          $ref: '#/components/schemas/OrgMemberNotificationSchema'
        agent_attention:
          $ref: '#/components/schemas/OrgMemberNotificationSchema'
        mentioned:
          $ref: '#/components/schemas/OrgMemberNotificationSchema'
      required:
        - assigned_to_me
        - billing
        - agent_attention
        - mentioned
      description: Notifications of the org member
    ColorNameSchema:
      type: string
      enum:
        - red
        - orange
        - amber
        - yellow
        - lime
        - green
        - teal
        - cyan
        - sky
        - blue
        - indigo
        - violet
        - purple
        - fuchsia
        - pink
        - rose
        - neutral
      options:
        red:
          label: Red
          color: red
        orange:
          label: Orange
          color: orange
        amber:
          label: Amber
          color: amber
        yellow:
          label: Yellow
          color: yellow
        lime:
          label: Lime
          color: lime
        green:
          label: Green
          color: green
        teal:
          label: Teal
          color: teal
        cyan:
          label: Cyan
          color: cyan
        sky:
          label: Sky
          color: sky
        blue:
          label: Blue
          color: blue
        indigo:
          label: Indigo
          color: indigo
        violet:
          label: Violet
          color: violet
        purple:
          label: Purple
          color: purple
        fuchsia:
          label: Fuchsia
          color: fuchsia
        pink:
          label: Pink
          color: pink
        rose:
          label: Rose
          color: rose
        neutral:
          label: Neutral
          color: neutral
      title: Color
      description: Accent color, by name
    OrgPermissionSchema:
      type: string
      enum:
        - org:write
        - admin:write
        - members:read
        - members:invite
        - members:write
        - members.roles.system:write
        - inbox:read
        - inbox:write
        - analytics:read
        - contacts:read
        - contacts:write
        - segments:write
        - broadcasts:read
        - broadcasts:write
        - assistants:read
        - assistants:write
        - assistants.members:write
        - agents:read
        - agents:write
        - routines:read
        - routines:write
        - knowledge:read
        - knowledge:write
        - skills:read
        - skills:write
        - workflows:write
        - connections:write
        - keys:write
        - webhooks:write
        - tables:read
        - tables:write
        - tables.records:write
        - tables.views:write
        - pages:read
        - pages:write
        - audit_logs:read
        - sso:write
        - domains:write
        - emails:write
        - billing:write
        - variables:write
        - templates:write
        - orgs:write
      description: An org permission (`resource:action`).
    AssistantWidgetChannelTypeSchema:
      type: string
      enum:
        - whatsapp
        - messenger
        - instagram
        - telegram
        - email
        - phone
        - link
      description: Type of a widget channel link
    FieldsSchema:
      type: object
      additionalProperties:
        $ref: '#/components/schemas/FieldSchema'
      description: The definition of the field schemas
    TableFieldTypeSchema:
      type: string
      enum:
        - id
        - string
        - number
        - boolean
        - date
        - datetime
        - enum
        - file
        - record
        - contact
        - user
        - chat
        - segment
        - assistant
        - agent
    FieldBaseSchema:
      oneOf:
        - $ref: '#/components/schemas/FieldIdBaseSchema'
        - $ref: '#/components/schemas/FieldStringBaseSchema'
        - $ref: '#/components/schemas/FieldNumberBaseSchema'
        - $ref: '#/components/schemas/FieldBooleanBaseSchema'
        - $ref: '#/components/schemas/FieldDateBaseSchema'
        - $ref: '#/components/schemas/FieldDateTimeBaseSchema'
        - $ref: '#/components/schemas/FieldEnumBaseSchema'
        - $ref: '#/components/schemas/FieldFileBaseSchema'
        - $ref: '#/components/schemas/FieldRecordBaseSchema'
        - $ref: '#/components/schemas/FieldContactBaseSchema'
        - $ref: '#/components/schemas/FieldUserBaseSchema'
        - $ref: '#/components/schemas/FieldChatBaseSchema'
        - $ref: '#/components/schemas/FieldSegmentBaseSchema'
        - $ref: '#/components/schemas/FieldAssistantBaseSchema'
        - $ref: '#/components/schemas/FieldAgentBaseSchema'
      discriminator:
        propertyName: type
        mapping:
          id: '#/components/schemas/FieldIdBaseSchema'
          string: '#/components/schemas/FieldStringBaseSchema'
          number: '#/components/schemas/FieldNumberBaseSchema'
          boolean: '#/components/schemas/FieldBooleanBaseSchema'
          date: '#/components/schemas/FieldDateBaseSchema'
          datetime: '#/components/schemas/FieldDateTimeBaseSchema'
          enum: '#/components/schemas/FieldEnumBaseSchema'
          file: '#/components/schemas/FieldFileBaseSchema'
          record: '#/components/schemas/FieldRecordBaseSchema'
          contact: '#/components/schemas/FieldContactBaseSchema'
          user: '#/components/schemas/FieldUserBaseSchema'
          chat: '#/components/schemas/FieldChatBaseSchema'
          segment: '#/components/schemas/FieldSegmentBaseSchema'
          assistant: '#/components/schemas/FieldAssistantBaseSchema'
          agent: '#/components/schemas/FieldAgentBaseSchema'
      description: >-
        A user-created field: the table field types, without the props only
        built-in definitions set
    PickerIconEmojiSchema:
      type: string
      format: emoji
      description: >-
        The emoji of a curated icon a user can pick for a table, view, field, or
        other entity
    PickerIconNameSchema:
      type: string
      enum:
        - TableCellsIcon
        - DatabaseIcon
        - DocumentTextIcon
        - DocumentChartBarIcon
        - ClipboardDocumentListIcon
        - ClipboardDocumentCheckIcon
        - FolderIcon
        - ArchiveBoxIcon
        - InboxIcon
        - BookOpenIcon
        - BookmarkIcon
        - NewspaperIcon
        - RectangleStackIcon
        - PencilSquareIcon
        - UserIcon
        - UsersIcon
        - UserGroupIcon
        - UserPlusIcon
        - IdentificationIcon
        - FaceSmileIcon
        - HandThumbUpIcon
        - HeartIcon
        - StarIcon
        - CheckBadgeIcon
        - TrophyIcon
        - CrownIcon
        - ChatBubbleLeftIcon
        - ChatBubbleLeftRightIcon
        - EnvelopeIcon
        - EnvelopeOpenIcon
        - PhoneIcon
        - DevicePhoneMobileIcon
        - MegaphoneIcon
        - BellIcon
        - PaperAirplaneIcon
        - AtSymbolIcon
        - RssIcon
        - LifebuoyIcon
        - ShoppingCartIcon
        - ShoppingBagIcon
        - BuildingStorefrontIcon
        - CreditCardIcon
        - BanknotesIcon
        - CurrencyDollarIcon
        - CurrencyEuroIcon
        - ReceiptPercentIcon
        - WalletIcon
        - CoinsIcon
        - GiftIcon
        - TagIcon
        - TicketIcon
        - ScaleIcon
        - TruckIcon
        - CubeIcon
        - CalendarIcon
        - CalendarDaysIcon
        - CalendarDateRangeIcon
        - ClockIcon
        - FlagIcon
        - CheckCircleIcon
        - ListBulletIcon
        - QueueListIcon
        - FunnelIcon
        - ChartBarIcon
        - ChartPieIcon
        - PresentationChartLineIcon
        - ArrowTrendingUpIcon
        - BriefcaseIcon
        - WrenchScrewdriverIcon
        - Cog6ToothIcon
        - KeyIcon
        - LockClosedIcon
        - ShieldCheckIcon
        - BoltIcon
        - LightBulbIcon
        - BeakerIcon
        - BugAntIcon
        - CpuChipIcon
        - CodeBracketIcon
        - CommandLineIcon
        - ServerIcon
        - LinkIcon
        - HomeIcon
        - HomeModernIcon
        - BuildingOfficeIcon
        - BuildingOffice2Icon
        - BuildingLibraryIcon
        - MapPinIcon
        - MapIcon
        - GlobeAltIcon
        - GlobeAmericasIcon
        - RocketLaunchIcon
        - PlaneIcon
        - CarIcon
        - SunIcon
        - MoonIcon
        - FireIcon
        - SparklesIcon
        - CakeIcon
        - AcademicCapIcon
        - ScissorsIcon
        - SwatchIcon
        - PaintBrushIcon
        - CoffeeIcon
        - UtensilsIcon
        - LeafIcon
        - DumbbellIcon
        - HeartPulseIcon
        - PawPrintIcon
        - StethoscopeIcon
        - CameraIcon
        - PhotoIcon
        - FilmIcon
        - VideoCameraIcon
        - MicrophoneIcon
        - MusicalNoteIcon
        - SpeakerWaveIcon
        - PlayCircleIcon
        - TvIcon
        - RadioIcon
        - PuzzlePieceIcon
        - GamepadIcon
      description: >-
        The name of a curated icon a user can pick for a table, view, field, or
        other entity
    TableFieldOnTargetDeleteSchema:
      type: string
      enum:
        - restrict
        - clear
        - cascade
      description: >-
        What happens when the referenced target is deleted (ref-typed fields
        only). `restrict` forbids deleting the target while any cell still
        points to it. `clear` allows the delete and drops those field values on
        remaining rows. `cascade` also deletes table rows that reference the
        target via this field.
    OrgMemberNotificationSchema:
      type: object
      properties:
        email:
          type: boolean
        push:
          type: boolean
        notified_at:
          type:
            - string
            - 'null'
          format: date-time
      required:
        - email
        - push
      description: Notification of the org member, one flag per channel
    FieldSchema:
      oneOf:
        - $ref: '#/components/schemas/FieldFileSchema'
        - $ref: '#/components/schemas/FieldIdSchema'
        - $ref: '#/components/schemas/FieldNumberSchema'
        - $ref: '#/components/schemas/FieldStringSchema'
        - $ref: '#/components/schemas/FieldBooleanSchema'
        - $ref: '#/components/schemas/FieldDateSchema'
        - $ref: '#/components/schemas/FieldDateTimeSchema'
        - $ref: '#/components/schemas/FieldTimeSchema'
        - $ref: '#/components/schemas/FieldEnumSchema'
        - $ref: '#/components/schemas/FieldContentSchema'
        - $ref: '#/components/schemas/FieldConnectionSchema'
        - $ref: '#/components/schemas/FieldRecordSchema'
        - $ref: '#/components/schemas/FieldTableFieldSchema'
        - $ref: '#/components/schemas/FieldContactSchema'
        - $ref: '#/components/schemas/FieldUserSchema'
        - $ref: '#/components/schemas/FieldChatSchema'
        - $ref: '#/components/schemas/FieldSegmentSchema'
        - $ref: '#/components/schemas/FieldAssistantSchema'
        - $ref: '#/components/schemas/FieldAgentSchema'
        - $ref: '#/components/schemas/FieldObjectSchema'
      discriminator:
        propertyName: type
        mapping:
          file: '#/components/schemas/FieldFileSchema'
          id: '#/components/schemas/FieldIdSchema'
          number: '#/components/schemas/FieldNumberSchema'
          string: '#/components/schemas/FieldStringSchema'
          boolean: '#/components/schemas/FieldBooleanSchema'
          date: '#/components/schemas/FieldDateSchema'
          datetime: '#/components/schemas/FieldDateTimeSchema'
          time: '#/components/schemas/FieldTimeSchema'
          enum: '#/components/schemas/FieldEnumSchema'
          content: '#/components/schemas/FieldContentSchema'
          connection: '#/components/schemas/FieldConnectionSchema'
          record: '#/components/schemas/FieldRecordSchema'
          table_field: '#/components/schemas/FieldTableFieldSchema'
          contact: '#/components/schemas/FieldContactSchema'
          user: '#/components/schemas/FieldUserSchema'
          chat: '#/components/schemas/FieldChatSchema'
          segment: '#/components/schemas/FieldSegmentSchema'
          assistant: '#/components/schemas/FieldAssistantSchema'
          agent: '#/components/schemas/FieldAgentSchema'
          object: '#/components/schemas/FieldObjectSchema'
    FieldIdBaseSchema:
      type: object
      properties:
        type:
          type: string
          enum:
            - id
          description: The type of the field
        name:
          type: string
          maxLength: 1024
          description: The name of the field
        description:
          type: string
          maxLength: 10240
          description: The description of the field
        optional:
          type: boolean
          description: Indicates whether the field is optional
        array:
          type: boolean
          description: Indicates whether the field can contain multiple values
        placeholder:
          type: string
          maxLength: 512
          description: The placeholder of the field
        display:
          $ref: '#/components/schemas/FieldDisplaySchema'
        prefix:
          type: string
          pattern: ^[A-Z][A-Z0-9]{0,15}$
          description: >-
            Uppercase alphanumeric prefix rendered before the record number
            (e.g. `LEAD` → `LEAD-42`). Omit to render the bare number.
      required:
        - type
    FieldStringBaseSchema:
      type: object
      properties:
        type:
          type: string
          enum:
            - string
          description: The type of the field
        name:
          type: string
          maxLength: 1024
          description: The name of the field
        description:
          type: string
          maxLength: 10240
          description: The description of the field
        optional:
          type: boolean
          description: Indicates whether the field is optional
        array:
          type: boolean
          description: Indicates whether the field can contain multiple values
        placeholder:
          type: string
          maxLength: 512
          description: The placeholder of the field
        display:
          $ref: '#/components/schemas/FieldStringDisplaySchema'
        default:
          anyOf:
            - type: string
            - type: array
              items:
                type: string
          description: The default value of the string field
        format:
          type: string
          enum:
            - url
            - email
            - phone
          description: The validation type for the field
        min:
          type: number
          minimum: 1
          description: The minimum length of the string field
        max:
          type: number
          minimum: 1
          description: The maximum length of the string field
      required:
        - type
    FieldNumberBaseSchema:
      type: object
      properties:
        type:
          type: string
          enum:
            - number
          description: The type of the field
        name:
          type: string
          maxLength: 1024
          description: The name of the field
        description:
          type: string
          maxLength: 10240
          description: The description of the field
        optional:
          type: boolean
          description: Indicates whether the field is optional
        array:
          type: boolean
          description: Indicates whether the field can contain multiple values
        placeholder:
          type: string
          maxLength: 512
          description: The placeholder of the field
        display:
          $ref: '#/components/schemas/FieldNumberDisplaySchema'
        default:
          anyOf:
            - type: number
            - type: string
              enum:
                - '{{auto}}'
          description: The default value of the number field
      required:
        - type
    FieldBooleanBaseSchema:
      type: object
      properties:
        type:
          type: string
          enum:
            - boolean
          description: The type of the field
        name:
          type: string
          maxLength: 1024
          description: The name of the field
        description:
          type: string
          maxLength: 10240
          description: The description of the field
        optional:
          type: boolean
          description: Indicates whether the field is optional
        array:
          type: boolean
          description: Indicates whether the field can contain multiple values
        placeholder:
          type: string
          maxLength: 512
          description: The placeholder of the field
        display:
          $ref: '#/components/schemas/FieldDisplaySchema'
        default:
          type: boolean
          description: The default value of the boolean field
      required:
        - type
    FieldDateBaseSchema:
      type: object
      properties:
        type:
          type: string
          enum:
            - date
          description: The type of the field
        name:
          type: string
          maxLength: 1024
          description: The name of the field
        description:
          type: string
          maxLength: 10240
          description: The description of the field
        optional:
          type: boolean
          description: Indicates whether the field is optional
        array:
          type: boolean
          description: Indicates whether the field can contain multiple values
        placeholder:
          type: string
          maxLength: 512
          description: The placeholder of the field
        display:
          $ref: '#/components/schemas/FieldDateDisplaySchema'
        default:
          type:
            - string
            - 'null'
          format: date-time
          description: The default value of the date field, formatted as YYYY-MM-DD
        range:
          type: boolean
          description: >-
            Turns the field into a range: requires `array: true`, and the value
            becomes an array of exactly two dates (start, end). A Timeline can
            draw it as a bar.
      required:
        - type
    FieldDateTimeBaseSchema:
      type: object
      properties:
        type:
          type: string
          enum:
            - datetime
          description: The type of the field
        name:
          type: string
          maxLength: 1024
          description: The name of the field
        description:
          type: string
          maxLength: 10240
          description: The description of the field
        optional:
          type: boolean
          description: Indicates whether the field is optional
        array:
          type: boolean
          description: Indicates whether the field can contain multiple values
        placeholder:
          type: string
          maxLength: 512
          description: The placeholder of the field
        display:
          $ref: '#/components/schemas/FieldDateTimeDisplaySchema'
        default:
          type:
            - string
            - 'null'
          format: date-time
          description: >-
            The default value of the date time field, formatted as
            YYYY-MM-DDTHH:MM:SS
        range:
          type: boolean
          description: >-
            Turns the field into a range: requires `array: true`, and the value
            becomes an array of exactly two dates (start, end). A Timeline can
            draw it as a bar.
        source:
          $ref: '#/components/schemas/FieldDateTimeSourceSchema'
      required:
        - type
    FieldEnumBaseSchema:
      type: object
      properties:
        type:
          type: string
          enum:
            - enum
          description: The type of the field
        name:
          type: string
          maxLength: 1024
          description: The name of the field
        description:
          type: string
          maxLength: 10240
          description: The description of the field
        optional:
          type: boolean
          description: Indicates whether the field is optional
        array:
          type: boolean
          description: Indicates whether the field can contain multiple values
        placeholder:
          type: string
          maxLength: 512
          description: The placeholder of the field
        display:
          $ref: '#/components/schemas/FieldEnumDisplaySchema'
        default:
          anyOf:
            - type: string
            - type: array
              items:
                type: string
          description: The default value of the enum field
        items:
          type: array
          items:
            $ref: '#/components/schemas/FieldEnumItemSchema'
          description: The options for the enum field
        additional_items:
          type: boolean
          description: Indicates whether additional unlisted items are allowed
      required:
        - type
        - items
    FieldFileBaseSchema:
      type: object
      properties:
        type:
          type: string
          enum:
            - file
          description: The type of the field
        name:
          type: string
          maxLength: 1024
          description: The name of the field
        description:
          type: string
          maxLength: 10240
          description: The description of the field
        optional:
          type: boolean
          description: Indicates whether the field is optional
        array:
          type: boolean
          description: Indicates whether the field can contain multiple values
        placeholder:
          type: string
          maxLength: 512
          description: The placeholder of the field
        display:
          $ref: '#/components/schemas/FieldFileDisplaySchema'
        allowed_types:
          type: array
          items:
            type: string
          description: >-
            Allowed mime types for the file field (e.g. image/*,
            application/pdf)
        visibility:
          $ref: '#/components/schemas/FileVisibilitySchema'
        default:
          anyOf:
            - $ref: '#/components/schemas/FileSchema'
            - type: array
              items:
                $ref: '#/components/schemas/FileSchema'
          description: >-
            The default value of the file field: the already-attached file(s),
            pre-filled and replaceable
      required:
        - type
    FieldRecordBaseSchema:
      type: object
      properties:
        type:
          type: string
          enum:
            - record
          description: The type of the field
        name:
          type: string
          maxLength: 1024
          description: The name of the field
        description:
          type: string
          maxLength: 10240
          description: The description of the field
        optional:
          type: boolean
          description: Indicates whether the field is optional
        array:
          type: boolean
          description: Indicates whether the field can contain multiple values
        placeholder:
          type: string
          maxLength: 512
          description: The placeholder of the field
        display:
          $ref: '#/components/schemas/FieldDisplaySchema'
        default:
          anyOf:
            - type: string
            - type: array
              items:
                type: string
          description: The default value of the record field (encoded record id)
        target_table_id:
          type: string
          description: The id of the table whose records are referenceable
      required:
        - type
    FieldContactBaseSchema:
      type: object
      properties:
        type:
          type: string
          enum:
            - contact
          description: The type of the field
        name:
          type: string
          maxLength: 1024
          description: The name of the field
        description:
          type: string
          maxLength: 10240
          description: The description of the field
        optional:
          type: boolean
          description: Indicates whether the field is optional
        array:
          type: boolean
          description: Indicates whether the field can contain multiple values
        placeholder:
          type: string
          maxLength: 512
          description: The placeholder of the field
        display:
          $ref: '#/components/schemas/FieldDisplaySchema'
        default:
          anyOf:
            - type: string
            - type: array
              items:
                type: string
          description: The default value of the contact field (encoded contact id)
      required:
        - type
    FieldUserBaseSchema:
      type: object
      properties:
        type:
          type: string
          enum:
            - user
          description: The type of the field
        name:
          type: string
          maxLength: 1024
          description: The name of the field
        description:
          type: string
          maxLength: 10240
          description: The description of the field
        optional:
          type: boolean
          description: Indicates whether the field is optional
        array:
          type: boolean
          description: Indicates whether the field can contain multiple values
        placeholder:
          type: string
          maxLength: 512
          description: The placeholder of the field
        display:
          $ref: '#/components/schemas/FieldDisplaySchema'
        default:
          anyOf:
            - type: string
            - type: array
              items:
                type: string
          description: >-
            The default value of the user field (encoded user id of an org
            member)
        source:
          $ref: '#/components/schemas/FieldUserSourceSchema'
      required:
        - type
    FieldChatBaseSchema:
      type: object
      properties:
        type:
          type: string
          enum:
            - chat
          description: The type of the field
        name:
          type: string
          maxLength: 1024
          description: The name of the field
        description:
          type: string
          maxLength: 10240
          description: The description of the field
        optional:
          type: boolean
          description: Indicates whether the field is optional
        array:
          type: boolean
          description: Indicates whether the field can contain multiple values
        placeholder:
          type: string
          maxLength: 512
          description: The placeholder of the field
        display:
          $ref: '#/components/schemas/FieldDisplaySchema'
        default:
          anyOf:
            - type: string
            - type: array
              items:
                type: string
          description: The default value of the chat field (encoded chat id)
      required:
        - type
    FieldSegmentBaseSchema:
      type: object
      properties:
        type:
          type: string
          enum:
            - segment
          description: The type of the field
        name:
          type: string
          maxLength: 1024
          description: The name of the field
        description:
          type: string
          maxLength: 10240
          description: The description of the field
        optional:
          type: boolean
          description: Indicates whether the field is optional
        array:
          type: boolean
          description: Indicates whether the field can contain multiple values
        placeholder:
          type: string
          maxLength: 512
          description: The placeholder of the field
        display:
          $ref: '#/components/schemas/FieldDisplaySchema'
        default:
          anyOf:
            - type: string
            - type: array
              items:
                type: string
          description: The default value of the segment field (encoded segment id)
      required:
        - type
    FieldAssistantBaseSchema:
      type: object
      properties:
        type:
          type: string
          enum:
            - assistant
          description: The type of the field
        name:
          type: string
          maxLength: 1024
          description: The name of the field
        description:
          type: string
          maxLength: 10240
          description: The description of the field
        optional:
          type: boolean
          description: Indicates whether the field is optional
        array:
          type: boolean
          description: Indicates whether the field can contain multiple values
        placeholder:
          type: string
          maxLength: 512
          description: The placeholder of the field
        display:
          $ref: '#/components/schemas/FieldDisplaySchema'
        default:
          anyOf:
            - type: string
            - type: array
              items:
                type: string
          description: The default value of the assistant field (encoded assistant id)
      required:
        - type
    FieldAgentBaseSchema:
      type: object
      properties:
        type:
          type: string
          enum:
            - agent
          description: The type of the field
        name:
          type: string
          maxLength: 1024
          description: The name of the field
        description:
          type: string
          maxLength: 10240
          description: The description of the field
        optional:
          type: boolean
          description: Indicates whether the field is optional
        array:
          type: boolean
          description: Indicates whether the field can contain multiple values
        placeholder:
          type: string
          maxLength: 512
          description: The placeholder of the field
        display:
          $ref: '#/components/schemas/FieldDisplaySchema'
        default:
          anyOf:
            - type: string
            - type: array
              items:
                type: string
          description: The default value of the agent field (encoded agent id)
      required:
        - type
    FieldFileSchema:
      type: object
      properties:
        type:
          type: string
          enum:
            - file
          description: The type of the field
        name:
          type: string
          maxLength: 1024
          description: The name of the field
        description:
          type: string
          maxLength: 10240
          description: The description of the field
        optional:
          type: boolean
          description: Indicates whether the field is optional
        array:
          type: boolean
          description: Indicates whether the field can contain multiple values
        placeholder:
          type: string
          maxLength: 512
          description: The placeholder of the field
        display:
          $ref: '#/components/schemas/FieldFileDisplaySchema'
        order:
          type: number
          minimum: 0
          description: The order of the field relative to other fields in the form
        link:
          type: string
          description: The link to the documentation for the field
        allowed_modes:
          type: array
          items:
            $ref: '#/components/schemas/FieldSelectorModeSchema'
        broadcast_field:
          type: boolean
          description: Indicates whether the field is used for broadcast
        broadcast_exposed:
          type: boolean
          description: >-
            A per-recipient slot: the broadcast trigger `variables` and imported
            values override it by key (string inputs only)
        integration_field:
          type: boolean
          description: Indicates whether the field is common to all integrations
        display_field:
          type: boolean
          description: >-
            Marks this field as the human-readable identifier for the
            integration. Its resolved value (enum label or string) is shown on
            the assistant channel card to disambiguate multiple integrations of
            the same type.
        conditions:
          type: array
          items:
            $ref: '#/components/schemas/FieldConditionSchema'
          description: Conditions that must be met for the field to be shown
        hidden:
          type: boolean
          description: Indicates whether the field is hidden from the UI
        picker:
          $ref: '#/components/schemas/FieldPickerSchema'
        requires:
          type: array
          items:
            $ref: '#/components/schemas/FieldKeySchema'
          description: >-
            Sibling field keys that must be filled before this field can resolve
            its data (list options, dynamic fields, or a scoped reference
            picker)
        disable_variables:
          type: boolean
          description: >-
            When true, skip template variable replacement ({{variable}}) for
            this field
        any:
          type: boolean
          description: >-
            Offers an "Any" choice first, stored as `any`: the field matches
            every value (enum and reference pickers)
        allowed_types:
          type: array
          items:
            type: string
          description: >-
            Allowed mime types for the file field (e.g. image/*,
            application/pdf)
        visibility:
          $ref: '#/components/schemas/FileVisibilitySchema'
        default:
          anyOf:
            - $ref: '#/components/schemas/FileSchema'
            - type: array
              items:
                $ref: '#/components/schemas/FileSchema'
          description: >-
            The default value of the file field: the already-attached file(s),
            pre-filled and replaceable
      required:
        - type
      description: The file type allows users to upload files
    FieldIdSchema:
      type: object
      properties:
        type:
          type: string
          enum:
            - id
          description: The type of the field
        name:
          type: string
          maxLength: 1024
          description: The name of the field
        description:
          type: string
          maxLength: 10240
          description: The description of the field
        optional:
          type: boolean
          description: Indicates whether the field is optional
        array:
          type: boolean
          description: Indicates whether the field can contain multiple values
        placeholder:
          type: string
          maxLength: 512
          description: The placeholder of the field
        display:
          $ref: '#/components/schemas/FieldDisplaySchema'
        order:
          type: number
          minimum: 0
          description: The order of the field relative to other fields in the form
        link:
          type: string
          description: The link to the documentation for the field
        allowed_modes:
          type: array
          items:
            $ref: '#/components/schemas/FieldSelectorModeSchema'
        broadcast_field:
          type: boolean
          description: Indicates whether the field is used for broadcast
        broadcast_exposed:
          type: boolean
          description: >-
            A per-recipient slot: the broadcast trigger `variables` and imported
            values override it by key (string inputs only)
        integration_field:
          type: boolean
          description: Indicates whether the field is common to all integrations
        display_field:
          type: boolean
          description: >-
            Marks this field as the human-readable identifier for the
            integration. Its resolved value (enum label or string) is shown on
            the assistant channel card to disambiguate multiple integrations of
            the same type.
        conditions:
          type: array
          items:
            $ref: '#/components/schemas/FieldConditionSchema'
          description: Conditions that must be met for the field to be shown
        hidden:
          type: boolean
          description: Indicates whether the field is hidden from the UI
        picker:
          $ref: '#/components/schemas/FieldPickerSchema'
        requires:
          type: array
          items:
            $ref: '#/components/schemas/FieldKeySchema'
          description: >-
            Sibling field keys that must be filled before this field can resolve
            its data (list options, dynamic fields, or a scoped reference
            picker)
        disable_variables:
          type: boolean
          description: >-
            When true, skip template variable replacement ({{variable}}) for
            this field
        any:
          type: boolean
          description: >-
            Offers an "Any" choice first, stored as `any`: the field matches
            every value (enum and reference pickers)
        prefix:
          type: string
          pattern: ^[A-Z][A-Z0-9]{0,15}$
          description: >-
            Uppercase alphanumeric prefix rendered before the record number
            (e.g. `LEAD` → `LEAD-42`). Omit to render the bare number.
      required:
        - type
      description: >-
        Readonly auto-numbered record identifier, rendered from the record
        number with an optional prefix
    FieldNumberSchema:
      type: object
      properties:
        type:
          type: string
          enum:
            - number
          description: The type of the field
        name:
          type: string
          maxLength: 1024
          description: The name of the field
        description:
          type: string
          maxLength: 10240
          description: The description of the field
        optional:
          type: boolean
          description: Indicates whether the field is optional
        array:
          type: boolean
          description: Indicates whether the field can contain multiple values
        placeholder:
          type: string
          maxLength: 512
          description: The placeholder of the field
        display:
          $ref: '#/components/schemas/FieldNumberDisplaySchema'
        order:
          type: number
          minimum: 0
          description: The order of the field relative to other fields in the form
        link:
          type: string
          description: The link to the documentation for the field
        allowed_modes:
          type: array
          items:
            $ref: '#/components/schemas/FieldSelectorModeSchema'
        broadcast_field:
          type: boolean
          description: Indicates whether the field is used for broadcast
        broadcast_exposed:
          type: boolean
          description: >-
            A per-recipient slot: the broadcast trigger `variables` and imported
            values override it by key (string inputs only)
        integration_field:
          type: boolean
          description: Indicates whether the field is common to all integrations
        display_field:
          type: boolean
          description: >-
            Marks this field as the human-readable identifier for the
            integration. Its resolved value (enum label or string) is shown on
            the assistant channel card to disambiguate multiple integrations of
            the same type.
        conditions:
          type: array
          items:
            $ref: '#/components/schemas/FieldConditionSchema'
          description: Conditions that must be met for the field to be shown
        hidden:
          type: boolean
          description: Indicates whether the field is hidden from the UI
        picker:
          $ref: '#/components/schemas/FieldPickerSchema'
        requires:
          type: array
          items:
            $ref: '#/components/schemas/FieldKeySchema'
          description: >-
            Sibling field keys that must be filled before this field can resolve
            its data (list options, dynamic fields, or a scoped reference
            picker)
        disable_variables:
          type: boolean
          description: >-
            When true, skip template variable replacement ({{variable}}) for
            this field
        any:
          type: boolean
          description: >-
            Offers an "Any" choice first, stored as `any`: the field matches
            every value (enum and reference pickers)
        default:
          anyOf:
            - type: number
            - type: string
              enum:
                - '{{auto}}'
          description: The default value of the number field
      required:
        - type
      description: The number field allows users to input numbers
    FieldStringSchema:
      type: object
      properties:
        type:
          type: string
          enum:
            - string
          description: The type of the field
        name:
          type: string
          maxLength: 1024
          description: The name of the field
        description:
          type: string
          maxLength: 10240
          description: The description of the field
        optional:
          type: boolean
          description: Indicates whether the field is optional
        array:
          type: boolean
          description: Indicates whether the field can contain multiple values
        placeholder:
          type: string
          maxLength: 512
          description: The placeholder of the field
        display:
          $ref: '#/components/schemas/FieldStringDisplaySchema'
        order:
          type: number
          minimum: 0
          description: The order of the field relative to other fields in the form
        link:
          type: string
          description: The link to the documentation for the field
        allowed_modes:
          type: array
          items:
            $ref: '#/components/schemas/FieldSelectorModeSchema'
        broadcast_field:
          type: boolean
          description: Indicates whether the field is used for broadcast
        broadcast_exposed:
          type: boolean
          description: >-
            A per-recipient slot: the broadcast trigger `variables` and imported
            values override it by key (string inputs only)
        integration_field:
          type: boolean
          description: Indicates whether the field is common to all integrations
        display_field:
          type: boolean
          description: >-
            Marks this field as the human-readable identifier for the
            integration. Its resolved value (enum label or string) is shown on
            the assistant channel card to disambiguate multiple integrations of
            the same type.
        conditions:
          type: array
          items:
            $ref: '#/components/schemas/FieldConditionSchema'
          description: Conditions that must be met for the field to be shown
        hidden:
          type: boolean
          description: Indicates whether the field is hidden from the UI
        picker:
          $ref: '#/components/schemas/FieldPickerSchema'
        requires:
          type: array
          items:
            $ref: '#/components/schemas/FieldKeySchema'
          description: >-
            Sibling field keys that must be filled before this field can resolve
            its data (list options, dynamic fields, or a scoped reference
            picker)
        disable_variables:
          type: boolean
          description: >-
            When true, skip template variable replacement ({{variable}}) for
            this field
        any:
          type: boolean
          description: >-
            Offers an "Any" choice first, stored as `any`: the field matches
            every value (enum and reference pickers)
        default:
          anyOf:
            - type: string
            - type: array
              items:
                type: string
          description: The default value of the string field
        format:
          type: string
          enum:
            - url
            - email
            - phone
          description: The validation type for the field
        min:
          type: number
          minimum: 1
          description: The minimum length of the string field
        max:
          type: number
          minimum: 1
          description: The maximum length of the string field
      required:
        - type
      description: The string field allows users to input text
    FieldBooleanSchema:
      type: object
      properties:
        type:
          type: string
          enum:
            - boolean
          description: The type of the field
        name:
          type: string
          maxLength: 1024
          description: The name of the field
        description:
          type: string
          maxLength: 10240
          description: The description of the field
        optional:
          type: boolean
          description: Indicates whether the field is optional
        array:
          type: boolean
          description: Indicates whether the field can contain multiple values
        placeholder:
          type: string
          maxLength: 512
          description: The placeholder of the field
        display:
          $ref: '#/components/schemas/FieldDisplaySchema'
        order:
          type: number
          minimum: 0
          description: The order of the field relative to other fields in the form
        link:
          type: string
          description: The link to the documentation for the field
        allowed_modes:
          type: array
          items:
            $ref: '#/components/schemas/FieldSelectorModeSchema'
        broadcast_field:
          type: boolean
          description: Indicates whether the field is used for broadcast
        broadcast_exposed:
          type: boolean
          description: >-
            A per-recipient slot: the broadcast trigger `variables` and imported
            values override it by key (string inputs only)
        integration_field:
          type: boolean
          description: Indicates whether the field is common to all integrations
        display_field:
          type: boolean
          description: >-
            Marks this field as the human-readable identifier for the
            integration. Its resolved value (enum label or string) is shown on
            the assistant channel card to disambiguate multiple integrations of
            the same type.
        conditions:
          type: array
          items:
            $ref: '#/components/schemas/FieldConditionSchema'
          description: Conditions that must be met for the field to be shown
        hidden:
          type: boolean
          description: Indicates whether the field is hidden from the UI
        picker:
          $ref: '#/components/schemas/FieldPickerSchema'
        requires:
          type: array
          items:
            $ref: '#/components/schemas/FieldKeySchema'
          description: >-
            Sibling field keys that must be filled before this field can resolve
            its data (list options, dynamic fields, or a scoped reference
            picker)
        disable_variables:
          type: boolean
          description: >-
            When true, skip template variable replacement ({{variable}}) for
            this field
        any:
          type: boolean
          description: >-
            Offers an "Any" choice first, stored as `any`: the field matches
            every value (enum and reference pickers)
        default:
          type: boolean
          description: The default value of the boolean field
      required:
        - type
      description: The boolean field allows users mark a field as true or false
    FieldDateSchema:
      type: object
      properties:
        type:
          type: string
          enum:
            - date
          description: The type of the field
        name:
          type: string
          maxLength: 1024
          description: The name of the field
        description:
          type: string
          maxLength: 10240
          description: The description of the field
        optional:
          type: boolean
          description: Indicates whether the field is optional
        array:
          type: boolean
          description: Indicates whether the field can contain multiple values
        placeholder:
          type: string
          maxLength: 512
          description: The placeholder of the field
        display:
          $ref: '#/components/schemas/FieldDateDisplaySchema'
        order:
          type: number
          minimum: 0
          description: The order of the field relative to other fields in the form
        link:
          type: string
          description: The link to the documentation for the field
        allowed_modes:
          type: array
          items:
            $ref: '#/components/schemas/FieldSelectorModeSchema'
        broadcast_field:
          type: boolean
          description: Indicates whether the field is used for broadcast
        broadcast_exposed:
          type: boolean
          description: >-
            A per-recipient slot: the broadcast trigger `variables` and imported
            values override it by key (string inputs only)
        integration_field:
          type: boolean
          description: Indicates whether the field is common to all integrations
        display_field:
          type: boolean
          description: >-
            Marks this field as the human-readable identifier for the
            integration. Its resolved value (enum label or string) is shown on
            the assistant channel card to disambiguate multiple integrations of
            the same type.
        conditions:
          type: array
          items:
            $ref: '#/components/schemas/FieldConditionSchema'
          description: Conditions that must be met for the field to be shown
        hidden:
          type: boolean
          description: Indicates whether the field is hidden from the UI
        picker:
          $ref: '#/components/schemas/FieldPickerSchema'
        requires:
          type: array
          items:
            $ref: '#/components/schemas/FieldKeySchema'
          description: >-
            Sibling field keys that must be filled before this field can resolve
            its data (list options, dynamic fields, or a scoped reference
            picker)
        disable_variables:
          type: boolean
          description: >-
            When true, skip template variable replacement ({{variable}}) for
            this field
        any:
          type: boolean
          description: >-
            Offers an "Any" choice first, stored as `any`: the field matches
            every value (enum and reference pickers)
        default:
          type:
            - string
            - 'null'
          format: date-time
          description: The default value of the date field, formatted as YYYY-MM-DD
        range:
          type: boolean
          description: >-
            Turns the field into a range: requires `array: true`, and the value
            becomes an array of exactly two dates (start, end). A Timeline can
            draw it as a bar.
      required:
        - type
      description: The date field allows users to select a date
    FieldDateTimeSchema:
      type: object
      properties:
        type:
          type: string
          enum:
            - datetime
          description: The type of the field
        name:
          type: string
          maxLength: 1024
          description: The name of the field
        description:
          type: string
          maxLength: 10240
          description: The description of the field
        optional:
          type: boolean
          description: Indicates whether the field is optional
        array:
          type: boolean
          description: Indicates whether the field can contain multiple values
        placeholder:
          type: string
          maxLength: 512
          description: The placeholder of the field
        display:
          $ref: '#/components/schemas/FieldDateTimeDisplaySchema'
        order:
          type: number
          minimum: 0
          description: The order of the field relative to other fields in the form
        link:
          type: string
          description: The link to the documentation for the field
        allowed_modes:
          type: array
          items:
            $ref: '#/components/schemas/FieldSelectorModeSchema'
        broadcast_field:
          type: boolean
          description: Indicates whether the field is used for broadcast
        broadcast_exposed:
          type: boolean
          description: >-
            A per-recipient slot: the broadcast trigger `variables` and imported
            values override it by key (string inputs only)
        integration_field:
          type: boolean
          description: Indicates whether the field is common to all integrations
        display_field:
          type: boolean
          description: >-
            Marks this field as the human-readable identifier for the
            integration. Its resolved value (enum label or string) is shown on
            the assistant channel card to disambiguate multiple integrations of
            the same type.
        conditions:
          type: array
          items:
            $ref: '#/components/schemas/FieldConditionSchema'
          description: Conditions that must be met for the field to be shown
        hidden:
          type: boolean
          description: Indicates whether the field is hidden from the UI
        picker:
          $ref: '#/components/schemas/FieldPickerSchema'
        requires:
          type: array
          items:
            $ref: '#/components/schemas/FieldKeySchema'
          description: >-
            Sibling field keys that must be filled before this field can resolve
            its data (list options, dynamic fields, or a scoped reference
            picker)
        disable_variables:
          type: boolean
          description: >-
            When true, skip template variable replacement ({{variable}}) for
            this field
        any:
          type: boolean
          description: >-
            Offers an "Any" choice first, stored as `any`: the field matches
            every value (enum and reference pickers)
        default:
          type:
            - string
            - 'null'
          format: date-time
          description: >-
            The default value of the date time field, formatted as
            YYYY-MM-DDTHH:MM:SS
        range:
          type: boolean
          description: >-
            Turns the field into a range: requires `array: true`, and the value
            becomes an array of exactly two dates (start, end). A Timeline can
            draw it as a bar.
        source:
          $ref: '#/components/schemas/FieldDateTimeSourceSchema'
      required:
        - type
      description: The date and time field allows users to select a date and time
    FieldTimeSchema:
      type: object
      properties:
        type:
          type: string
          enum:
            - time
          description: The type of the field
        name:
          type: string
          maxLength: 1024
          description: The name of the field
        description:
          type: string
          maxLength: 10240
          description: The description of the field
        optional:
          type: boolean
          description: Indicates whether the field is optional
        array:
          type: boolean
          description: Indicates whether the field can contain multiple values
        placeholder:
          type: string
          maxLength: 512
          description: The placeholder of the field
        display:
          $ref: '#/components/schemas/FieldTimeDisplaySchema'
        order:
          type: number
          minimum: 0
          description: The order of the field relative to other fields in the form
        link:
          type: string
          description: The link to the documentation for the field
        allowed_modes:
          type: array
          items:
            $ref: '#/components/schemas/FieldSelectorModeSchema'
        broadcast_field:
          type: boolean
          description: Indicates whether the field is used for broadcast
        broadcast_exposed:
          type: boolean
          description: >-
            A per-recipient slot: the broadcast trigger `variables` and imported
            values override it by key (string inputs only)
        integration_field:
          type: boolean
          description: Indicates whether the field is common to all integrations
        display_field:
          type: boolean
          description: >-
            Marks this field as the human-readable identifier for the
            integration. Its resolved value (enum label or string) is shown on
            the assistant channel card to disambiguate multiple integrations of
            the same type.
        conditions:
          type: array
          items:
            $ref: '#/components/schemas/FieldConditionSchema'
          description: Conditions that must be met for the field to be shown
        hidden:
          type: boolean
          description: Indicates whether the field is hidden from the UI
        picker:
          $ref: '#/components/schemas/FieldPickerSchema'
        requires:
          type: array
          items:
            $ref: '#/components/schemas/FieldKeySchema'
          description: >-
            Sibling field keys that must be filled before this field can resolve
            its data (list options, dynamic fields, or a scoped reference
            picker)
        disable_variables:
          type: boolean
          description: >-
            When true, skip template variable replacement ({{variable}}) for
            this field
        any:
          type: boolean
          description: >-
            Offers an "Any" choice first, stored as `any`: the field matches
            every value (enum and reference pickers)
      required:
        - type
      description: The time field allows users to select a time
    FieldEnumSchema:
      type: object
      properties:
        type:
          type: string
          enum:
            - enum
          description: The type of the field
        name:
          type: string
          maxLength: 1024
          description: The name of the field
        description:
          type: string
          maxLength: 10240
          description: The description of the field
        optional:
          type: boolean
          description: Indicates whether the field is optional
        array:
          type: boolean
          description: Indicates whether the field can contain multiple values
        placeholder:
          type: string
          maxLength: 512
          description: The placeholder of the field
        display:
          $ref: '#/components/schemas/FieldEnumDisplaySchema'
        order:
          type: number
          minimum: 0
          description: The order of the field relative to other fields in the form
        link:
          type: string
          description: The link to the documentation for the field
        allowed_modes:
          type: array
          items:
            $ref: '#/components/schemas/FieldSelectorModeSchema'
        broadcast_field:
          type: boolean
          description: Indicates whether the field is used for broadcast
        broadcast_exposed:
          type: boolean
          description: >-
            A per-recipient slot: the broadcast trigger `variables` and imported
            values override it by key (string inputs only)
        integration_field:
          type: boolean
          description: Indicates whether the field is common to all integrations
        display_field:
          type: boolean
          description: >-
            Marks this field as the human-readable identifier for the
            integration. Its resolved value (enum label or string) is shown on
            the assistant channel card to disambiguate multiple integrations of
            the same type.
        conditions:
          type: array
          items:
            $ref: '#/components/schemas/FieldConditionSchema'
          description: Conditions that must be met for the field to be shown
        hidden:
          type: boolean
          description: Indicates whether the field is hidden from the UI
        picker:
          $ref: '#/components/schemas/FieldPickerSchema'
        requires:
          type: array
          items:
            $ref: '#/components/schemas/FieldKeySchema'
          description: >-
            Sibling field keys that must be filled before this field can resolve
            its data (list options, dynamic fields, or a scoped reference
            picker)
        disable_variables:
          type: boolean
          description: >-
            When true, skip template variable replacement ({{variable}}) for
            this field
        any:
          type: boolean
          description: >-
            Offers an "Any" choice first, stored as `any`: the field matches
            every value (enum and reference pickers)
        default:
          anyOf:
            - type: string
            - type: array
              items:
                type: string
          description: The default value of the enum field
        items:
          type: array
          items:
            $ref: '#/components/schemas/FieldEnumItemSchema'
          description: The options for the enum field
        list:
          $ref: '#/components/schemas/FieldListSchema'
        additional_items:
          type: boolean
          description: Indicates whether additional unlisted items are allowed
        component:
          $ref: '#/components/schemas/FieldComponentSchema'
      required:
        - type
        - items
      description: The select field used to select from a list of items
    FieldContentSchema:
      type: object
      properties:
        type:
          type: string
          enum:
            - content
          description: The type of the field
        name:
          type: string
          maxLength: 1024
          description: The name of the field
        description:
          type: string
          maxLength: 10240
          description: The description of the field
        optional:
          type: boolean
          description: Indicates whether the field is optional
        array:
          type: boolean
          description: Indicates whether the field can contain multiple values
        placeholder:
          type: string
          maxLength: 512
          description: The placeholder of the field
        display:
          $ref: '#/components/schemas/FieldDisplaySchema'
        order:
          type: number
          minimum: 0
          description: The order of the field relative to other fields in the form
        link:
          type: string
          description: The link to the documentation for the field
        allowed_modes:
          type: array
          items:
            $ref: '#/components/schemas/FieldSelectorModeSchema'
        broadcast_field:
          type: boolean
          description: Indicates whether the field is used for broadcast
        broadcast_exposed:
          type: boolean
          description: >-
            A per-recipient slot: the broadcast trigger `variables` and imported
            values override it by key (string inputs only)
        integration_field:
          type: boolean
          description: Indicates whether the field is common to all integrations
        display_field:
          type: boolean
          description: >-
            Marks this field as the human-readable identifier for the
            integration. Its resolved value (enum label or string) is shown on
            the assistant channel card to disambiguate multiple integrations of
            the same type.
        conditions:
          type: array
          items:
            $ref: '#/components/schemas/FieldConditionSchema'
          description: Conditions that must be met for the field to be shown
        hidden:
          type: boolean
          description: Indicates whether the field is hidden from the UI
        picker:
          $ref: '#/components/schemas/FieldPickerSchema'
        requires:
          type: array
          items:
            $ref: '#/components/schemas/FieldKeySchema'
          description: >-
            Sibling field keys that must be filled before this field can resolve
            its data (list options, dynamic fields, or a scoped reference
            picker)
        disable_variables:
          type: boolean
          description: >-
            When true, skip template variable replacement ({{variable}}) for
            this field
        any:
          type: boolean
          description: >-
            Offers an "Any" choice first, stored as `any`: the field matches
            every value (enum and reference pickers)
        content:
          type: string
          description: Any markdown content
        component:
          $ref: '#/components/schemas/FieldComponentSchema'
      required:
        - type
      description: The content field used to display markdown content
    FieldConnectionSchema:
      type: object
      properties:
        type:
          type: string
          enum:
            - connection
          description: The type of the field
        name:
          type: string
          maxLength: 1024
          description: The name of the field
        description:
          type: string
          maxLength: 10240
          description: The description of the field
        optional:
          type: boolean
          description: Indicates whether the field is optional
        array:
          type: boolean
          description: Indicates whether the field can contain multiple values
        placeholder:
          type: string
          maxLength: 512
          description: The placeholder of the field
        display:
          $ref: '#/components/schemas/FieldDisplaySchema'
        order:
          type: number
          minimum: 0
          description: The order of the field relative to other fields in the form
        link:
          type: string
          description: The link to the documentation for the field
        allowed_modes:
          type: array
          items:
            $ref: '#/components/schemas/FieldSelectorModeSchema'
        broadcast_field:
          type: boolean
          description: Indicates whether the field is used for broadcast
        broadcast_exposed:
          type: boolean
          description: >-
            A per-recipient slot: the broadcast trigger `variables` and imported
            values override it by key (string inputs only)
        integration_field:
          type: boolean
          description: Indicates whether the field is common to all integrations
        display_field:
          type: boolean
          description: >-
            Marks this field as the human-readable identifier for the
            integration. Its resolved value (enum label or string) is shown on
            the assistant channel card to disambiguate multiple integrations of
            the same type.
        conditions:
          type: array
          items:
            $ref: '#/components/schemas/FieldConditionSchema'
          description: Conditions that must be met for the field to be shown
        hidden:
          type: boolean
          description: Indicates whether the field is hidden from the UI
        picker:
          $ref: '#/components/schemas/FieldPickerSchema'
        requires:
          type: array
          items:
            $ref: '#/components/schemas/FieldKeySchema'
          description: >-
            Sibling field keys that must be filled before this field can resolve
            its data (list options, dynamic fields, or a scoped reference
            picker)
        disable_variables:
          type: boolean
          description: >-
            When true, skip template variable replacement ({{variable}}) for
            this field
        any:
          type: boolean
          description: >-
            Offers an "Any" choice first, stored as `any`: the field matches
            every value (enum and reference pickers)
        connection_type:
          $ref: '#/components/schemas/ConnectionTypeSchema'
      required:
        - type
        - connection_type
      description: The connection field used to select a connection
    FieldRecordSchema:
      type: object
      properties:
        type:
          type: string
          enum:
            - record
          description: The type of the field
        name:
          type: string
          maxLength: 1024
          description: The name of the field
        description:
          type: string
          maxLength: 10240
          description: The description of the field
        optional:
          type: boolean
          description: Indicates whether the field is optional
        array:
          type: boolean
          description: Indicates whether the field can contain multiple values
        placeholder:
          type: string
          maxLength: 512
          description: The placeholder of the field
        display:
          $ref: '#/components/schemas/FieldDisplaySchema'
        order:
          type: number
          minimum: 0
          description: The order of the field relative to other fields in the form
        link:
          type: string
          description: The link to the documentation for the field
        allowed_modes:
          type: array
          items:
            $ref: '#/components/schemas/FieldSelectorModeSchema'
        broadcast_field:
          type: boolean
          description: Indicates whether the field is used for broadcast
        broadcast_exposed:
          type: boolean
          description: >-
            A per-recipient slot: the broadcast trigger `variables` and imported
            values override it by key (string inputs only)
        integration_field:
          type: boolean
          description: Indicates whether the field is common to all integrations
        display_field:
          type: boolean
          description: >-
            Marks this field as the human-readable identifier for the
            integration. Its resolved value (enum label or string) is shown on
            the assistant channel card to disambiguate multiple integrations of
            the same type.
        conditions:
          type: array
          items:
            $ref: '#/components/schemas/FieldConditionSchema'
          description: Conditions that must be met for the field to be shown
        hidden:
          type: boolean
          description: Indicates whether the field is hidden from the UI
        picker:
          $ref: '#/components/schemas/FieldPickerSchema'
        requires:
          type: array
          items:
            $ref: '#/components/schemas/FieldKeySchema'
          description: >-
            Sibling field keys that must be filled before this field can resolve
            its data (list options, dynamic fields, or a scoped reference
            picker)
        disable_variables:
          type: boolean
          description: >-
            When true, skip template variable replacement ({{variable}}) for
            this field
        any:
          type: boolean
          description: >-
            Offers an "Any" choice first, stored as `any`: the field matches
            every value (enum and reference pickers)
        default:
          anyOf:
            - type: string
            - type: array
              items:
                type: string
          description: The default value of the record field (encoded record id)
        target_table_id:
          type: string
          description: The id of the table whose records are referenceable
      required:
        - type
      description: A reference to one or more records in another table
    FieldTableFieldSchema:
      type: object
      properties:
        type:
          type: string
          enum:
            - table_field
          description: The type of the field
        name:
          type: string
          maxLength: 1024
          description: The name of the field
        description:
          type: string
          maxLength: 10240
          description: The description of the field
        optional:
          type: boolean
          description: Indicates whether the field is optional
        array:
          type: boolean
          description: Indicates whether the field can contain multiple values
        placeholder:
          type: string
          maxLength: 512
          description: The placeholder of the field
        display:
          $ref: '#/components/schemas/FieldDisplaySchema'
        order:
          type: number
          minimum: 0
          description: The order of the field relative to other fields in the form
        link:
          type: string
          description: The link to the documentation for the field
        allowed_modes:
          type: array
          items:
            $ref: '#/components/schemas/FieldSelectorModeSchema'
        broadcast_field:
          type: boolean
          description: Indicates whether the field is used for broadcast
        broadcast_exposed:
          type: boolean
          description: >-
            A per-recipient slot: the broadcast trigger `variables` and imported
            values override it by key (string inputs only)
        integration_field:
          type: boolean
          description: Indicates whether the field is common to all integrations
        display_field:
          type: boolean
          description: >-
            Marks this field as the human-readable identifier for the
            integration. Its resolved value (enum label or string) is shown on
            the assistant channel card to disambiguate multiple integrations of
            the same type.
        conditions:
          type: array
          items:
            $ref: '#/components/schemas/FieldConditionSchema'
          description: Conditions that must be met for the field to be shown
        hidden:
          type: boolean
          description: Indicates whether the field is hidden from the UI
        picker:
          $ref: '#/components/schemas/FieldPickerSchema'
        requires:
          type: array
          items:
            $ref: '#/components/schemas/FieldKeySchema'
          description: >-
            Sibling field keys that must be filled before this field can resolve
            its data (list options, dynamic fields, or a scoped reference
            picker)
        disable_variables:
          type: boolean
          description: >-
            When true, skip template variable replacement ({{variable}}) for
            this field
        any:
          type: boolean
          description: >-
            Offers an "Any" choice first, stored as `any`: the field matches
            every value (enum and reference pickers)
        default:
          type: string
          description: >-
            The default value of the table field (field id, or the key of a
            system field)
        target_table_id:
          type: string
          description: The id of the table whose fields are listed
      required:
        - type
      description: >-
        A reference to a field (column) of a table, kept by id so a rename never
        breaks it
    FieldContactSchema:
      type: object
      properties:
        type:
          type: string
          enum:
            - contact
          description: The type of the field
        name:
          type: string
          maxLength: 1024
          description: The name of the field
        description:
          type: string
          maxLength: 10240
          description: The description of the field
        optional:
          type: boolean
          description: Indicates whether the field is optional
        array:
          type: boolean
          description: Indicates whether the field can contain multiple values
        placeholder:
          type: string
          maxLength: 512
          description: The placeholder of the field
        display:
          $ref: '#/components/schemas/FieldDisplaySchema'
        order:
          type: number
          minimum: 0
          description: The order of the field relative to other fields in the form
        link:
          type: string
          description: The link to the documentation for the field
        allowed_modes:
          type: array
          items:
            $ref: '#/components/schemas/FieldSelectorModeSchema'
        broadcast_field:
          type: boolean
          description: Indicates whether the field is used for broadcast
        broadcast_exposed:
          type: boolean
          description: >-
            A per-recipient slot: the broadcast trigger `variables` and imported
            values override it by key (string inputs only)
        integration_field:
          type: boolean
          description: Indicates whether the field is common to all integrations
        display_field:
          type: boolean
          description: >-
            Marks this field as the human-readable identifier for the
            integration. Its resolved value (enum label or string) is shown on
            the assistant channel card to disambiguate multiple integrations of
            the same type.
        conditions:
          type: array
          items:
            $ref: '#/components/schemas/FieldConditionSchema'
          description: Conditions that must be met for the field to be shown
        hidden:
          type: boolean
          description: Indicates whether the field is hidden from the UI
        picker:
          $ref: '#/components/schemas/FieldPickerSchema'
        requires:
          type: array
          items:
            $ref: '#/components/schemas/FieldKeySchema'
          description: >-
            Sibling field keys that must be filled before this field can resolve
            its data (list options, dynamic fields, or a scoped reference
            picker)
        disable_variables:
          type: boolean
          description: >-
            When true, skip template variable replacement ({{variable}}) for
            this field
        any:
          type: boolean
          description: >-
            Offers an "Any" choice first, stored as `any`: the field matches
            every value (enum and reference pickers)
        default:
          anyOf:
            - type: string
            - type: array
              items:
                type: string
          description: The default value of the contact field (encoded contact id)
      required:
        - type
      description: A reference to one or more contacts
    FieldUserSchema:
      type: object
      properties:
        type:
          type: string
          enum:
            - user
          description: The type of the field
        name:
          type: string
          maxLength: 1024
          description: The name of the field
        description:
          type: string
          maxLength: 10240
          description: The description of the field
        optional:
          type: boolean
          description: Indicates whether the field is optional
        array:
          type: boolean
          description: Indicates whether the field can contain multiple values
        placeholder:
          type: string
          maxLength: 512
          description: The placeholder of the field
        display:
          $ref: '#/components/schemas/FieldDisplaySchema'
        order:
          type: number
          minimum: 0
          description: The order of the field relative to other fields in the form
        link:
          type: string
          description: The link to the documentation for the field
        allowed_modes:
          type: array
          items:
            $ref: '#/components/schemas/FieldSelectorModeSchema'
        broadcast_field:
          type: boolean
          description: Indicates whether the field is used for broadcast
        broadcast_exposed:
          type: boolean
          description: >-
            A per-recipient slot: the broadcast trigger `variables` and imported
            values override it by key (string inputs only)
        integration_field:
          type: boolean
          description: Indicates whether the field is common to all integrations
        display_field:
          type: boolean
          description: >-
            Marks this field as the human-readable identifier for the
            integration. Its resolved value (enum label or string) is shown on
            the assistant channel card to disambiguate multiple integrations of
            the same type.
        conditions:
          type: array
          items:
            $ref: '#/components/schemas/FieldConditionSchema'
          description: Conditions that must be met for the field to be shown
        hidden:
          type: boolean
          description: Indicates whether the field is hidden from the UI
        picker:
          $ref: '#/components/schemas/FieldPickerSchema'
        requires:
          type: array
          items:
            $ref: '#/components/schemas/FieldKeySchema'
          description: >-
            Sibling field keys that must be filled before this field can resolve
            its data (list options, dynamic fields, or a scoped reference
            picker)
        disable_variables:
          type: boolean
          description: >-
            When true, skip template variable replacement ({{variable}}) for
            this field
        any:
          type: boolean
          description: >-
            Offers an "Any" choice first, stored as `any`: the field matches
            every value (enum and reference pickers)
        default:
          anyOf:
            - type: string
            - type: array
              items:
                type: string
          description: >-
            The default value of the user field (encoded user id of an org
            member)
        source:
          $ref: '#/components/schemas/FieldUserSourceSchema'
      required:
        - type
      description: A reference to one or more users (org members)
    FieldChatSchema:
      type: object
      properties:
        type:
          type: string
          enum:
            - chat
          description: The type of the field
        name:
          type: string
          maxLength: 1024
          description: The name of the field
        description:
          type: string
          maxLength: 10240
          description: The description of the field
        optional:
          type: boolean
          description: Indicates whether the field is optional
        array:
          type: boolean
          description: Indicates whether the field can contain multiple values
        placeholder:
          type: string
          maxLength: 512
          description: The placeholder of the field
        display:
          $ref: '#/components/schemas/FieldDisplaySchema'
        order:
          type: number
          minimum: 0
          description: The order of the field relative to other fields in the form
        link:
          type: string
          description: The link to the documentation for the field
        allowed_modes:
          type: array
          items:
            $ref: '#/components/schemas/FieldSelectorModeSchema'
        broadcast_field:
          type: boolean
          description: Indicates whether the field is used for broadcast
        broadcast_exposed:
          type: boolean
          description: >-
            A per-recipient slot: the broadcast trigger `variables` and imported
            values override it by key (string inputs only)
        integration_field:
          type: boolean
          description: Indicates whether the field is common to all integrations
        display_field:
          type: boolean
          description: >-
            Marks this field as the human-readable identifier for the
            integration. Its resolved value (enum label or string) is shown on
            the assistant channel card to disambiguate multiple integrations of
            the same type.
        conditions:
          type: array
          items:
            $ref: '#/components/schemas/FieldConditionSchema'
          description: Conditions that must be met for the field to be shown
        hidden:
          type: boolean
          description: Indicates whether the field is hidden from the UI
        picker:
          $ref: '#/components/schemas/FieldPickerSchema'
        requires:
          type: array
          items:
            $ref: '#/components/schemas/FieldKeySchema'
          description: >-
            Sibling field keys that must be filled before this field can resolve
            its data (list options, dynamic fields, or a scoped reference
            picker)
        disable_variables:
          type: boolean
          description: >-
            When true, skip template variable replacement ({{variable}}) for
            this field
        any:
          type: boolean
          description: >-
            Offers an "Any" choice first, stored as `any`: the field matches
            every value (enum and reference pickers)
        default:
          anyOf:
            - type: string
            - type: array
              items:
                type: string
          description: The default value of the chat field (encoded chat id)
      required:
        - type
      description: A reference to one or more chats
    FieldSegmentSchema:
      type: object
      properties:
        type:
          type: string
          enum:
            - segment
          description: The type of the field
        name:
          type: string
          maxLength: 1024
          description: The name of the field
        description:
          type: string
          maxLength: 10240
          description: The description of the field
        optional:
          type: boolean
          description: Indicates whether the field is optional
        array:
          type: boolean
          description: Indicates whether the field can contain multiple values
        placeholder:
          type: string
          maxLength: 512
          description: The placeholder of the field
        display:
          $ref: '#/components/schemas/FieldDisplaySchema'
        order:
          type: number
          minimum: 0
          description: The order of the field relative to other fields in the form
        link:
          type: string
          description: The link to the documentation for the field
        allowed_modes:
          type: array
          items:
            $ref: '#/components/schemas/FieldSelectorModeSchema'
        broadcast_field:
          type: boolean
          description: Indicates whether the field is used for broadcast
        broadcast_exposed:
          type: boolean
          description: >-
            A per-recipient slot: the broadcast trigger `variables` and imported
            values override it by key (string inputs only)
        integration_field:
          type: boolean
          description: Indicates whether the field is common to all integrations
        display_field:
          type: boolean
          description: >-
            Marks this field as the human-readable identifier for the
            integration. Its resolved value (enum label or string) is shown on
            the assistant channel card to disambiguate multiple integrations of
            the same type.
        conditions:
          type: array
          items:
            $ref: '#/components/schemas/FieldConditionSchema'
          description: Conditions that must be met for the field to be shown
        hidden:
          type: boolean
          description: Indicates whether the field is hidden from the UI
        picker:
          $ref: '#/components/schemas/FieldPickerSchema'
        requires:
          type: array
          items:
            $ref: '#/components/schemas/FieldKeySchema'
          description: >-
            Sibling field keys that must be filled before this field can resolve
            its data (list options, dynamic fields, or a scoped reference
            picker)
        disable_variables:
          type: boolean
          description: >-
            When true, skip template variable replacement ({{variable}}) for
            this field
        any:
          type: boolean
          description: >-
            Offers an "Any" choice first, stored as `any`: the field matches
            every value (enum and reference pickers)
        default:
          anyOf:
            - type: string
            - type: array
              items:
                type: string
          description: The default value of the segment field (encoded segment id)
      required:
        - type
      description: A reference to one or more segments
    FieldAssistantSchema:
      type: object
      properties:
        type:
          type: string
          enum:
            - assistant
          description: The type of the field
        name:
          type: string
          maxLength: 1024
          description: The name of the field
        description:
          type: string
          maxLength: 10240
          description: The description of the field
        optional:
          type: boolean
          description: Indicates whether the field is optional
        array:
          type: boolean
          description: Indicates whether the field can contain multiple values
        placeholder:
          type: string
          maxLength: 512
          description: The placeholder of the field
        display:
          $ref: '#/components/schemas/FieldDisplaySchema'
        order:
          type: number
          minimum: 0
          description: The order of the field relative to other fields in the form
        link:
          type: string
          description: The link to the documentation for the field
        allowed_modes:
          type: array
          items:
            $ref: '#/components/schemas/FieldSelectorModeSchema'
        broadcast_field:
          type: boolean
          description: Indicates whether the field is used for broadcast
        broadcast_exposed:
          type: boolean
          description: >-
            A per-recipient slot: the broadcast trigger `variables` and imported
            values override it by key (string inputs only)
        integration_field:
          type: boolean
          description: Indicates whether the field is common to all integrations
        display_field:
          type: boolean
          description: >-
            Marks this field as the human-readable identifier for the
            integration. Its resolved value (enum label or string) is shown on
            the assistant channel card to disambiguate multiple integrations of
            the same type.
        conditions:
          type: array
          items:
            $ref: '#/components/schemas/FieldConditionSchema'
          description: Conditions that must be met for the field to be shown
        hidden:
          type: boolean
          description: Indicates whether the field is hidden from the UI
        picker:
          $ref: '#/components/schemas/FieldPickerSchema'
        requires:
          type: array
          items:
            $ref: '#/components/schemas/FieldKeySchema'
          description: >-
            Sibling field keys that must be filled before this field can resolve
            its data (list options, dynamic fields, or a scoped reference
            picker)
        disable_variables:
          type: boolean
          description: >-
            When true, skip template variable replacement ({{variable}}) for
            this field
        any:
          type: boolean
          description: >-
            Offers an "Any" choice first, stored as `any`: the field matches
            every value (enum and reference pickers)
        default:
          anyOf:
            - type: string
            - type: array
              items:
                type: string
          description: The default value of the assistant field (encoded assistant id)
      required:
        - type
      description: A reference to one or more assistants
    FieldAgentSchema:
      type: object
      properties:
        type:
          type: string
          enum:
            - agent
          description: The type of the field
        name:
          type: string
          maxLength: 1024
          description: The name of the field
        description:
          type: string
          maxLength: 10240
          description: The description of the field
        optional:
          type: boolean
          description: Indicates whether the field is optional
        array:
          type: boolean
          description: Indicates whether the field can contain multiple values
        placeholder:
          type: string
          maxLength: 512
          description: The placeholder of the field
        display:
          $ref: '#/components/schemas/FieldDisplaySchema'
        order:
          type: number
          minimum: 0
          description: The order of the field relative to other fields in the form
        link:
          type: string
          description: The link to the documentation for the field
        allowed_modes:
          type: array
          items:
            $ref: '#/components/schemas/FieldSelectorModeSchema'
        broadcast_field:
          type: boolean
          description: Indicates whether the field is used for broadcast
        broadcast_exposed:
          type: boolean
          description: >-
            A per-recipient slot: the broadcast trigger `variables` and imported
            values override it by key (string inputs only)
        integration_field:
          type: boolean
          description: Indicates whether the field is common to all integrations
        display_field:
          type: boolean
          description: >-
            Marks this field as the human-readable identifier for the
            integration. Its resolved value (enum label or string) is shown on
            the assistant channel card to disambiguate multiple integrations of
            the same type.
        conditions:
          type: array
          items:
            $ref: '#/components/schemas/FieldConditionSchema'
          description: Conditions that must be met for the field to be shown
        hidden:
          type: boolean
          description: Indicates whether the field is hidden from the UI
        picker:
          $ref: '#/components/schemas/FieldPickerSchema'
        requires:
          type: array
          items:
            $ref: '#/components/schemas/FieldKeySchema'
          description: >-
            Sibling field keys that must be filled before this field can resolve
            its data (list options, dynamic fields, or a scoped reference
            picker)
        disable_variables:
          type: boolean
          description: >-
            When true, skip template variable replacement ({{variable}}) for
            this field
        any:
          type: boolean
          description: >-
            Offers an "Any" choice first, stored as `any`: the field matches
            every value (enum and reference pickers)
        default:
          anyOf:
            - type: string
            - type: array
              items:
                type: string
          description: The default value of the agent field (encoded agent id)
      required:
        - type
      description: A reference to one or more agents
    FieldObjectSchema:
      type: object
      properties:
        type:
          type: string
          enum:
            - object
          description: The type of the field
        name:
          type: string
          maxLength: 1024
          description: The name of the field
        description:
          type: string
          maxLength: 10240
          description: The description of the field
        optional:
          type: boolean
          description: Indicates whether the field is optional
        array:
          type: boolean
          description: Indicates whether the field can contain multiple values
        placeholder:
          type: string
          maxLength: 512
          description: The placeholder of the field
        display:
          $ref: '#/components/schemas/FieldDisplaySchema'
        order:
          type: number
          minimum: 0
          description: The order of the field relative to other fields in the form
        link:
          type: string
          description: The link to the documentation for the field
        allowed_modes:
          type: array
          items:
            $ref: '#/components/schemas/FieldSelectorModeSchema'
        broadcast_field:
          type: boolean
          description: Indicates whether the field is used for broadcast
        broadcast_exposed:
          type: boolean
          description: >-
            A per-recipient slot: the broadcast trigger `variables` and imported
            values override it by key (string inputs only)
        integration_field:
          type: boolean
          description: Indicates whether the field is common to all integrations
        display_field:
          type: boolean
          description: >-
            Marks this field as the human-readable identifier for the
            integration. Its resolved value (enum label or string) is shown on
            the assistant channel card to disambiguate multiple integrations of
            the same type.
        conditions:
          type: array
          items:
            $ref: '#/components/schemas/FieldConditionSchema'
          description: Conditions that must be met for the field to be shown
        hidden:
          type: boolean
          description: Indicates whether the field is hidden from the UI
        picker:
          $ref: '#/components/schemas/FieldPickerSchema'
        requires:
          type: array
          items:
            $ref: '#/components/schemas/FieldKeySchema'
          description: >-
            Sibling field keys that must be filled before this field can resolve
            its data (list options, dynamic fields, or a scoped reference
            picker)
        disable_variables:
          type: boolean
          description: >-
            When true, skip template variable replacement ({{variable}}) for
            this field
        any:
          type: boolean
          description: >-
            Offers an "Any" choice first, stored as `any`: the field matches
            every value (enum and reference pickers)
        properties:
          type: object
          additionalProperties:
            $ref: '#/components/schemas/FieldSchema'
          description: >-
            A record of fields that can be of various types including object
            fields
        format:
          type: string
          enum:
            - schema
          description: The validation type for the object field
        additional_properties:
          anyOf:
            - $ref: '#/components/schemas/FieldAdditionalPropertiesSchema'
            - $ref: '#/components/schemas/FieldListSchema'
            - type: boolean
        default:
          anyOf:
            - type: object
              properties: {}
              additionalProperties: {}
            - type: array
              items:
                type: object
                properties: {}
                additionalProperties: {}
          description: The default value of the object field
      required:
        - type
        - properties
      description: The object field that can contain other fields, including nested objects
    FieldDisplaySchema:
      type: object
      properties:
        field:
          $ref: '#/components/schemas/FieldLayoutSchema'
        container:
          $ref: '#/components/schemas/FieldContainerSchema'
        empty:
          $ref: '#/components/schemas/FieldEmptySchema'
      description: Display options for the field
    FieldStringDisplaySchema:
      allOf:
        - $ref: '#/components/schemas/FieldDisplaySchema'
        - type: object
          properties:
            render:
              $ref: '#/components/schemas/FieldStringDisplayRenderSchema'
      description: Display options for the string field
    FieldNumberDisplaySchema:
      type: object
      properties:
        field:
          $ref: '#/components/schemas/FieldLayoutSchema'
        container:
          $ref: '#/components/schemas/FieldContainerSchema'
        empty:
          $ref: '#/components/schemas/FieldEmptySchema'
        format:
          $ref: '#/components/schemas/FieldNumberDisplayFormatSchema'
        notation:
          $ref: '#/components/schemas/FieldNumberDisplayNotationSchema'
        decimals:
          type: integer
          minimum: 0
          maximum: 8
          description: Fixed fraction digits (min and max); omit for the locale default
        currency:
          type: string
          maxLength: 3
          description: >-
            ISO 4217 currency code, used when `format` is `currency`; defaults
            to USD when omitted
        show_as:
          $ref: '#/components/schemas/FieldNumberShowAsSchema'
      description: Display options for the number field
    FieldDateDisplaySchema:
      allOf:
        - $ref: '#/components/schemas/FieldDisplaySchema'
        - type: object
          properties:
            date_format:
              $ref: '#/components/schemas/FieldDateFormatSchema'
      description: Display options for the date field
    FieldDateTimeDisplaySchema:
      allOf:
        - $ref: '#/components/schemas/FieldDisplaySchema'
        - type: object
          properties:
            date_format:
              $ref: '#/components/schemas/FieldDateFormatSchema'
            time_format:
              $ref: '#/components/schemas/FieldTimeFormatSchema'
      description: Display options for the datetime field
    FieldDateTimeSourceSchema:
      type: string
      enum:
        - created_at
        - updated_at
      description: >-
        Record timestamp a sourced datetime field renders. A sourced field is
        readonly and stores no values. Table fields on custom tables only;
        immutable after create.
    FieldEnumDisplaySchema:
      allOf:
        - $ref: '#/components/schemas/FieldDisplaySchema'
        - type: object
          properties:
            render:
              $ref: '#/components/schemas/FieldEnumDisplayRenderSchema'
            sort:
              $ref: '#/components/schemas/FieldEnumDisplaySortSchema'
      description: Display options for the enum field
    FieldEnumItemSchema:
      type: object
      properties:
        label:
          type: string
          description: Label of the enum item
        value:
          type: string
          description: Value of the enum item
        description:
          type: string
          description: Description of the enum item
        color:
          $ref: '#/components/schemas/ColorNameSchema'
        icon:
          type: string
          maxLength: 64
          pattern: ^[a-zA-Z0-9_-]+$
          description: The name of the icon to use in the UI
          oneOf:
            - $ref: '#/components/schemas/IconNameSchema'
        icon_url:
          type: string
        metadata:
          $ref: '#/components/schemas/FieldEnumItemMetadataSchema'
      required:
        - value
      description: The enum item
    FieldFileDisplaySchema:
      allOf:
        - $ref: '#/components/schemas/FieldDisplaySchema'
        - type: object
          properties:
            render:
              $ref: '#/components/schemas/FieldFileDisplayRenderSchema'
      description: Display options for the file field
    FileVisibilitySchema:
      type: string
      enum:
        - PUBLIC
        - PRIVATE
      description: >-
        Whether the file is private or public, private files URLs are signed
        with a token and can be accessed temporarily
      example: PRIVATE
    FileSchema:
      type: object
      properties:
        id:
          type: string
          description: Unique identifier for the file
        file_path:
          type: string
          maxLength: 2048
          description: Path to the file in the storage system
        file_filename:
          type: string
          maxLength: 255
          description: Name of the file
          example: document.pdf
        file_size:
          type: number
          description: Size of the file in bytes
          example: 1024
        file_mimetype:
          type: string
          maxLength: 255
          description: MIME type of the file
          example: application/pdf
        file_url:
          type: string
          maxLength: 2048
          description: URL to access the file
        created_at:
          type:
            - string
            - 'null'
          format: date-time
          description: Timestamp when the file was created
      required:
        - id
        - file_path
        - file_filename
        - file_size
        - file_mimetype
        - file_url
        - created_at
      description: Detailed information about a file
    FieldUserSourceSchema:
      type: string
      enum:
        - created_by
        - updated_by
      description: >-
        Record actor a sourced user field renders. A sourced field is readonly
        and stores no values. Table fields on custom tables only; immutable
        after create.
    FieldSelectorModeSchema:
      type: string
      enum:
        - all
        - auto
        - manual
      description: >-
        Indicates the mode of the selector, auto will allow AI to determine the
        value, manual will allow the user to manually input a value
    FieldConditionSchema:
      type: object
      properties:
        field:
          $ref: '#/components/schemas/FieldKeySchema'
        operator:
          $ref: '#/components/schemas/FieldConditionOperatorSchema'
        value: {}
      required:
        - field
        - operator
      description: Condition for the field
    FieldPickerSchema:
      oneOf:
        - $ref: '#/components/schemas/FieldPickerGoogleDriveSchema'
        - $ref: '#/components/schemas/FieldPickerWhatsappTemplateSchema'
        - $ref: '#/components/schemas/FieldPickerMetaEventsSchema'
      discriminator:
        propertyName: type
        mapping:
          google_drive: '#/components/schemas/FieldPickerGoogleDriveSchema'
          whatsapp_template: '#/components/schemas/FieldPickerWhatsappTemplateSchema'
          meta_events: '#/components/schemas/FieldPickerMetaEventsSchema'
      description: Picker configuration, when specified it makes this field a picker
    FieldKeySchema:
      type: string
      maxLength: 256
      pattern: ^[^.]+$
      description: The key of the field
    FieldTimeDisplaySchema:
      allOf:
        - $ref: '#/components/schemas/FieldDisplaySchema'
        - type: object
          properties:
            time_format:
              $ref: '#/components/schemas/FieldTimeFormatSchema'
      description: Display options for the time field
    FieldListSchema:
      type: object
      properties:
        path:
          type: string
          description: The connection list action path used to show autocomplete options
        resource_id:
          type: string
          description: >-
            An optional resource ID to scope the list to a specific resource,
            only used on dynamic fields
        sync_on_mount:
          type: boolean
          description: >-
            When true, the selected value is re-fetched on mount to keep cached
            metadata in sync with the remote source
      description: >-
        Configuration for fields that fetch their data from a remote connection
        list action
    FieldComponentSchema:
      oneOf:
        - $ref: '#/components/schemas/FieldWhatsappTemplateComponentSchema'
        - $ref: '#/components/schemas/FieldDynamicToolsComponentSchema'
      discriminator:
        propertyName: type
        mapping:
          whatsapp_template: '#/components/schemas/FieldWhatsappTemplateComponentSchema'
          dynamic_tools: '#/components/schemas/FieldDynamicToolsComponentSchema'
      description: The component field used to display a custom component
    ConnectionTypeSchema:
      type: string
      enum:
        - SCHEDULER
        - WORKFLOWS
        - TOOLS
        - FILES
        - EMAILS
        - HTTP_CREDENTIALS
        - TABLES
        - PAGES
        - KNOWLEDGE
        - SKILLS
        - CONTACTS
        - SEGMENTS
        - ASSISTANTS
        - AGENTS
        - CHATS
        - INBOX
        - MEMBERS
        - SUB_ORGS
        - BILLING
        - BROADCASTS
        - ANALYTICS
        - AUDIT
        - PHONE
        - GMAIL
        - GOOGLE_SHEETS
        - GOOGLE_CALENDAR
        - GOOGLE_DRIVE
        - GOOGLE_MEET
        - ONEDRIVE
        - SHAREPOINT
        - OUTLOOK_CALENDAR
        - OUTLOOK
        - AIRTABLE
        - NOTION
        - LINEAR
        - HUBSPOT
        - GOHIGHLEVEL
        - CAL
        - CALENDLY
        - RESEND
        - OAUTH
        - SLACK
        - TEAMS
        - TELEGRAM
        - TRELLO
        - FACEBOOK
        - WHATSAPP
        - INSTAGRAM
        - MESSENGER
        - TIKTOK
        - JAPIFON
        - SMPP
        - TWILIO
        - TELNYX
        - ZOHO
        - ZOHO_BOOKINGS
        - ZOHO_INVENTORY
        - ZOHO_CALENDAR
        - SALESFORCE
        - STRIPE
        - SHOPIFY
        - ZENDESK
        - MCP
        - OPENAPI
        - ODOO
        - WOOCOMMERCE
      description: Connection type
      example: SLACK
    FieldAdditionalPropertiesSchema:
      type: object
      properties:
        schema:
          $ref: '#/components/schemas/FieldSchema'
      required:
        - schema
    FieldLayoutSchema:
      type: string
      enum:
        - inline
        - stacked
      description: Controls how the label and field are arranged (inline or stacked)
    FieldContainerSchema:
      type: string
      enum:
        - grid
        - full
        - center
      description: >-
        Controls how the field container behaves in terms of width and
        positioning
    FieldEmptySchema:
      type: string
      enum:
        - show
        - hide
      description: >-
        What to render when an `object` field resolves to no visible sub-fields.
        Defaults to `hide` when the sub-fields come from a remote sync
        (`additional_properties.path`) — an empty result has nothing to fill in
        — and to `show` for every other field. Only honoured on fields marked
        `optional`: hiding a required field would leave a form that cannot be
        completed and no visible reason why. Never applies while the sync is
        loading or errored, nor while `requires` siblings are unfilled — those
        states keep rendering their own message — and never in the field editor,
        where the empty container is the drop target.
    FieldStringDisplayRenderSchema:
      type: string
      enum:
        - text
        - textarea
        - password
      description: >-
        The render type of the string field, text is a single line input,
        textarea is a multi-line input
    FieldNumberDisplayFormatSchema:
      type: string
      enum:
        - number
        - percent
        - currency
      description: >-
        Numeric style (maps to Intl.NumberFormat `style`); `number` is a plain
        number. Thousand separators are always applied.
    FieldNumberDisplayNotationSchema:
      type: string
      enum:
        - standard
        - compact
      description: >-
        Number notation (maps to Intl.NumberFormat `notation`); `compact`
        renders 1.2K (short form)
    FieldNumberShowAsSchema:
      type: object
      properties:
        kind:
          type: string
          enum:
            - number
            - bar
            - ring
          description: 'How to render the number: a plain value, a progress bar, or a ring'
        color:
          $ref: '#/components/schemas/ColorNameSchema'
        divide_by:
          type: number
          exclusiveMinimum: 0
          description: Denominator for the bar / ring progress (value / divide_by)
        show_number:
          type: boolean
          description: Show the numeric value alongside the bar / ring
      required:
        - kind
      description: Renders the number as a plain value, a progress bar, or a ring
    FieldDateFormatSchema:
      type: string
      enum:
        - full
        - short
        - month_day_year
        - day_month_year
        - year_month_day
        - relative
      description: The rendered date format for date / datetime fields
    FieldTimeFormatSchema:
      type: string
      enum:
        - hidden
        - 12h
        - 24h
      description: >-
        The rendered time format for datetime / time fields. `hidden` collapses
        a datetime to a date-only render.
    FieldEnumDisplayRenderSchema:
      type: string
      enum:
        - dropdown
        - inline
      description: The render type of the enum field
    FieldEnumDisplaySortSchema:
      type: string
      enum:
        - manual
        - asc
        - desc
      description: >-
        Option ordering by label; `manual` keeps the `items[]` order (default),
        `asc` A→Z, `desc` Z→A
    IconNameSchema:
      type: string
      enum:
        - StepFormIcon
        - StepAiIcon
        - StepNoteIcon
        - StepBranchIcon
        - StepCodeIcon
        - SmsIcon
        - ConnectionIcon
        - ConnectionSchedulerIcon
        - ConnectionFilesIcon
        - ConnectionHttpIcon
        - ConnectionHttpCredentialsIcon
        - ConnectionWorkflowIcon
        - ConnectionMcpIcon
        - ConnectionOpenApiIcon
        - ConnectionAudienceIcon
        - ConnectionContactsIcon
        - ConnectionTablesIcon
        - ConnectionAssistantsIcon
        - ConnectionAgentsIcon
        - ConnectionChatsIcon
        - ConnectionInboxIcon
        - ConnectionKnowledgeIcon
        - ConnectionAuditIcon
        - InternalIntegrationIcon
        - CustomIntegrationIcon
        - ToolThinkIcon
        - ToolWebSearchIcon
        - ToolWebScrapingIcon
        - ToolGenerateImageIcon
        - ToolDisplayFileIcon
        - ToolCalculatorIcon
        - ToolGenerateFileIcon
        - ToolGeneratePdfIcon
        - ToolRunCodeIcon
        - ToolDeepResearchIcon
        - ToolSearchKbIcon
        - ToolShowOptionsIcon
        - ToolRequestLocationIcon
        - ToolSendLocationIcon
        - ToolSendContactIcon
        - ToolManageMemoryIcon
        - ToolUpdateContactIcon
        - TextIcon
        - ClockFadingIcon
        - CalendarIcon
        - CloudIcon
        - GlobeAltIcon
        - LockClosedIcon
        - NoSymbolIcon
        - SparklesIcon
        - AcademicCapIcon
        - HandRaisedIcon
        - BoltIcon
        - WorkflowIcon
        - FileSpreadsheetIcon
        - DatabaseIcon
        - TableIcon
        - TableRowIcon
        - TableRowAddIcon
        - TableRowEditIcon
        - TableRowDeleteIcon
        - TableRowsIcon
        - PageIcon
        - UserIcon
        - UsersIcon
        - EmailIcon
        - PhoneIcon
        - CurrencyIcon
        - FunctionIcon
        - TableCellsIcon
        - DocumentTextIcon
        - QueueListIcon
        - TagIcon
        - SettingsIcon
        - ShoppingCartIcon
        - ShoppingBagIcon
        - BuildingStorefrontIcon
        - MegaphoneIcon
        - WrenchScrewdriverIcon
        - MagnifyingGlassIcon
        - DocumentChartBarIcon
        - ClipboardDocumentListIcon
        - ClipboardDocumentCheckIcon
        - FolderIcon
        - ArchiveBoxIcon
        - InboxIcon
        - BookOpenIcon
        - BookmarkIcon
        - NewspaperIcon
        - RectangleStackIcon
        - PencilSquareIcon
        - UserGroupIcon
        - UserPlusIcon
        - IdentificationIcon
        - FaceSmileIcon
        - HandThumbUpIcon
        - HeartIcon
        - StarIcon
        - CheckBadgeIcon
        - TrophyIcon
        - CrownIcon
        - ChatBubbleLeftIcon
        - ChatBubbleLeftRightIcon
        - EnvelopeIcon
        - EnvelopeOpenIcon
        - DevicePhoneMobileIcon
        - BellIcon
        - PaperAirplaneIcon
        - AtSymbolIcon
        - RssIcon
        - LifebuoyIcon
        - CreditCardIcon
        - BanknotesIcon
        - CurrencyDollarIcon
        - CurrencyEuroIcon
        - ReceiptPercentIcon
        - WalletIcon
        - CoinsIcon
        - GiftIcon
        - TicketIcon
        - ScaleIcon
        - TruckIcon
        - CubeIcon
        - CalendarDaysIcon
        - CalendarDateRangeIcon
        - ClockIcon
        - FlagIcon
        - CheckCircleIcon
        - ListBulletIcon
        - FunnelIcon
        - ChartBarIcon
        - ChartPieIcon
        - PresentationChartLineIcon
        - ArrowTrendingUpIcon
        - BriefcaseIcon
        - Cog6ToothIcon
        - KeyIcon
        - ShieldCheckIcon
        - LightBulbIcon
        - BeakerIcon
        - BugAntIcon
        - CpuChipIcon
        - CodeBracketIcon
        - CommandLineIcon
        - ServerIcon
        - LinkIcon
        - HomeIcon
        - HomeModernIcon
        - BuildingOfficeIcon
        - BuildingOffice2Icon
        - BuildingLibraryIcon
        - MapPinIcon
        - MapIcon
        - GlobeAmericasIcon
        - RocketLaunchIcon
        - PlaneIcon
        - CarIcon
        - SunIcon
        - MoonIcon
        - FireIcon
        - CakeIcon
        - ScissorsIcon
        - SwatchIcon
        - PaintBrushIcon
        - CoffeeIcon
        - UtensilsIcon
        - LeafIcon
        - DumbbellIcon
        - HeartPulseIcon
        - PawPrintIcon
        - StethoscopeIcon
        - CameraIcon
        - PhotoIcon
        - FilmIcon
        - VideoCameraIcon
        - MicrophoneIcon
        - MusicalNoteIcon
        - SpeakerWaveIcon
        - PlayCircleIcon
        - TvIcon
        - RadioIcon
        - PuzzlePieceIcon
        - GamepadIcon
        - ModelAutoIcon
        - ModelOpenAIIcon
        - ModelAnthropicIcon
        - ModelClaudeIcon
        - ModelGoogleIcon
        - ModelGeminiIcon
        - ModelXAIIcon
        - ModelGrokIcon
        - ModelPerplexityIcon
        - ModelGroqIcon
        - ModelAzureIcon
        - ModelElevenLabsIcon
        - ModelDeepgramIcon
        - ModelOpenRouterIcon
        - ModelDeepSeekIcon
        - ModelMoonshotIcon
        - ModelQwenIcon
        - ModelMetaIcon
        - ModelZhipuIcon
      description: The name of the icon to use in the UI
    FieldEnumItemMetadataSchema:
      type: object
      properties:
        link:
          type: string
          format: uri
          description: A link associated with the enum item
        data:
          description: Additional data for the enum item
      description: Additional metadata for the enum item
    FieldFileDisplayRenderSchema:
      type: string
      enum:
        - button
        - dropzone
      description: The render type of the file field
    FieldConditionOperatorSchema:
      type: string
      enum:
        - eq
        - neq
        - gt
        - gte
        - lt
        - lte
        - contains
        - not_contains
        - is_empty
        - is_not_empty
      description: The operator for the field condition
    FieldPickerGoogleDriveSchema:
      type: object
      properties:
        type:
          type: string
          enum:
            - google_drive
          description: Picker that allows selecting files from Google Drive
        views:
          type: array
          items:
            $ref: '#/components/schemas/FieldPickerGoogleDriveViewSchema'
        selectable_mime_types:
          type: array
          items:
            type: string
          description: >-
            A comma-separated list of MIME types to restrict the selectable
            files in the picker
      required:
        - type
        - views
      description: Picker that allows selecting from Google Drive files
    FieldPickerWhatsappTemplateSchema:
      type: object
      properties:
        type:
          type: string
          enum:
            - whatsapp_template
          description: Picker that allows selecting from WhatsApp templates
      required:
        - type
      description: Picker that allows selecting a WhatsApp template
    FieldPickerMetaEventsSchema:
      type: object
      properties:
        type:
          type: string
          enum:
            - meta_events
          description: Picker that opens Meta Events Manager
      required:
        - type
      description: Picker that links out to Meta Events Manager datasets
    FieldWhatsappTemplateComponentSchema:
      type: object
      properties:
        type:
          type: string
          enum:
            - whatsapp_template
      required:
        - type
      description: The component field used to display a WhatsApp template
    FieldDynamicToolsComponentSchema:
      type: object
      properties:
        type:
          type: string
          enum:
            - dynamic_tools
        path:
          type: string
          description: >-
            The dynamic action whose tool catalog the component lists, e.g.
            MCP:TOOLS
      required:
        - type
        - path
      description: >-
        The component field that lists the tools of a dynamic action and lets
        the user turn them off
    FieldPickerGoogleDriveViewSchema:
      type: string
      enum:
        - DOCS
        - DOCS_IMAGES
        - DOCS_IMAGES_AND_VIDEOS
        - DOCS_VIDEOS
        - DOCUMENTS
        - DRAWINGS
        - FOLDERS
        - FORMS
        - PDFS
        - PRESENTATIONS
        - SPREADSHEETS
      description: The views available for the Google Drive picker
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: Bearer token authentication using your API key

````

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