title: Message Template Integration Capabilities
type: object
x-tags:
  - Models
description: >-
  Supported variants and constraints imposed by a configured messaging integration. Variants absent from the relevant
  supported-type array cannot be delivered through the integration. An omitted media constraint means the integration
  imposes no additional restriction beyond the selected platform media type.
required:
  - header_types
  - action_types
  - url_target_types
  - quick_reply_actions
additionalProperties: false
properties:
  header_types:
    type: array
    uniqueItems: true
    description: Header variants this integration can render. An omitted variant is unsupported.
    items:
      type: string
      enum:
        - text
        - image
        - video
  action_types:
    type: array
    uniqueItems: true
    description: Action variants this integration can render. An omitted variant is unsupported.
    items:
      type: string
      enum:
        - url
        - quick_replies
        - dynamic
  url_target_types:
    type: array
    uniqueItems: true
    description: URL target variants this integration can render. An omitted variant is unsupported.
    items:
      type: string
      enum:
        - static
        - dynamic
  quick_reply_actions:
    type: array
    uniqueItems: true
    description: Stable quick-reply actions this integration can render. An omitted action is unsupported.
    items:
      type: string
      minLength: 1
  max_text_length:
    type: integer
    minimum: 1
  max_header_text_length:
    type: integer
    minimum: 1
  max_action_label_length:
    type: integer
    minimum: 1
  max_quick_replies:
    type: integer
    minimum: 1
  text_header_requires_action:
    type: boolean
  image:
    $ref: ./MessageTemplateMediaCapabilities.yaml
  video:
    type: object
    required:
      - mime_types
      - max_size_in_bytes
    additionalProperties: false
    properties:
      mime_types:
        type: array
        minItems: 1
        uniqueItems: true
        items:
          type: string
      max_size_in_bytes:
        type: integer
        minimum: 1
      video_codecs:
        type: array
        uniqueItems: true
        items:
          type: string
      audio_codecs:
        type: array
        uniqueItems: true
        items:
          type: string
readOnly: true
