{
  "openapi": "3.0.0",
  "info": {
    "version": "1.0.0",
    "title": "API"
  },
  "components": {
    "schemas": {
      "CreateSeedInviteSchema": {
        "type": "object",
        "properties": {
          "email": {
            "type": "string",
            "format": "email"
          }
        },
        "required": [
          "email"
        ]
      },
      "ConnectionTypeSchema": {
        "type": "string",
        "enum": [
          "SCHEDULER",
          "TOOLS",
          "FILES",
          "COLLECTIONS",
          "OAUTH",
          "GOOGLE_SHEETS",
          "GOOGLE_CALENDAR",
          "GMAIL",
          "GOOGLE_DRIVE",
          "SLACK",
          "ENCOMPASS",
          "STATIC_SYNAPSE",
          "PERSONA",
          "NOTION",
          "SALESFORCE",
          "WHATSAPP",
          "RAPIDAPI",
          "RAPIDAPI_DAXY_ENRICH_CONTACT",
          "RAPIDAPI_ZILLOW",
          "RAPIDAPI_FRESH_LINKEDIN_PROFILE",
          "RAPIDAPI_LINKEDIN_SCRAPER_API",
          "RAPIDAPI_JSEARCH",
          "RAPIDAPI_INSTAGRAM_SOCIAL",
          "OPENAI",
          "ANTHROPIC",
          "GOOGLE_AI",
          "XAI",
          "AZURE_AI",
          "OPENROUTER",
          "GROQ",
          "MISTRAL"
        ],
        "description": "Connection type",
        "example": "SLACK"
      },
      "ConnectionAuthMethodSchema": {
        "type": "string",
        "enum": [
          "OAUTH",
          "MANUAL"
        ],
        "description": "Connection auth method"
      },
      "InputFieldLayoutSchema": {
        "type": "string",
        "enum": [
          "inline",
          "stacked"
        ],
        "description": "Controls how the label and input field are arranged (inline or stacked)"
      },
      "InputContainerSchema": {
        "type": "string",
        "enum": [
          "grid",
          "full",
          "center"
        ],
        "description": "Controls how the field container behaves in terms of width and positioning"
      },
      "InputDisplaySchema": {
        "type": "object",
        "properties": {
          "field": {
            "$ref": "#/components/schemas/InputFieldLayoutSchema"
          },
          "container": {
            "$ref": "#/components/schemas/InputContainerSchema"
          },
          "hidden": {
            "type": "boolean",
            "description": "Indicates whether the input field is hidden from the UI"
          }
        },
        "description": "Display options for the input field"
      },
      "FieldFileDisplaySchema": {
        "allOf": [
          {
            "$ref": "#/components/schemas/InputDisplaySchema"
          },
          {
            "type": "object",
            "properties": {
              "render": {
                "type": "string",
                "enum": [
                  "button",
                  "dropzone"
                ],
                "description": "The render type of the file field"
              }
            }
          }
        ],
        "description": "Display options for the file field"
      },
      "AppFileVisibilitySchema": {
        "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"
      },
      "FieldFileSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "file"
            ],
            "description": "The type of the input field"
          },
          "name": {
            "type": "string",
            "maxLength": 1024,
            "description": "The name of the input field"
          },
          "desc": {
            "type": "string",
            "maxLength": 10240,
            "description": "The description of the input field"
          },
          "optional": {
            "type": "boolean",
            "description": "Indicates whether the input field is optional"
          },
          "array": {
            "type": "boolean",
            "description": "Indicates whether the input field can contain multiple values"
          },
          "placeholder": {
            "type": "string",
            "maxLength": 512,
            "description": "The placeholder of the input field"
          },
          "display": {
            "$ref": "#/components/schemas/FieldFileDisplaySchema"
          },
          "order": {
            "type": "number",
            "minimum": 0,
            "description": "The order of the input field relative to other fields in the form"
          },
          "config": {
            "type": "boolean",
            "description": "Whether to make the field a configuration field (only visible in the configuration tab)"
          },
          "link": {
            "type": "string",
            "description": "The link to the documentation for the input field"
          },
          "metadata": {
            "type": "object",
            "properties": {},
            "description": "Additional metadata for the input field"
          },
          "allowed_types": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Allowed mime types for the file field (e.g. image/*, application/pdf)"
          },
          "extract_contents": {
            "type": "boolean",
            "description": "Flag to extract contents from the file"
          },
          "extract_images": {
            "type": "boolean",
            "description": "Flag to extract images from the file"
          },
          "visibility": {
            "$ref": "#/components/schemas/AppFileVisibilitySchema"
          }
        },
        "required": [
          "type"
        ],
        "description": "The file type allows users to upload files"
      },
      "InputFieldKeySchema": {
        "type": "string",
        "pattern": "^[a-zA-Z][a-zA-Z0-9_-]*$",
        "description": "The key of the input field"
      },
      "InputListSchema": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "description": "The connection list action path used to show autocomplete options"
          },
          "requires": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/InputFieldKeySchema"
            },
            "description": "Fields that must be filled before the list can be fetched"
          }
        },
        "description": "Configuration for fields that fetch their data from a remote connection list action"
      },
      "FieldNumberSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "number"
            ],
            "description": "The type of the input field"
          },
          "name": {
            "type": "string",
            "maxLength": 1024,
            "description": "The name of the input field"
          },
          "desc": {
            "type": "string",
            "maxLength": 10240,
            "description": "The description of the input field"
          },
          "optional": {
            "type": "boolean",
            "description": "Indicates whether the input field is optional"
          },
          "array": {
            "type": "boolean",
            "description": "Indicates whether the input field can contain multiple values"
          },
          "placeholder": {
            "type": "string",
            "maxLength": 512,
            "description": "The placeholder of the input field"
          },
          "display": {
            "$ref": "#/components/schemas/InputDisplaySchema"
          },
          "order": {
            "type": "number",
            "minimum": 0,
            "description": "The order of the input field relative to other fields in the form"
          },
          "config": {
            "type": "boolean",
            "description": "Whether to make the field a configuration field (only visible in the configuration tab)"
          },
          "link": {
            "type": "string",
            "description": "The link to the documentation for the input field"
          },
          "metadata": {
            "type": "object",
            "properties": {},
            "description": "Additional metadata for the input field"
          },
          "default": {
            "type": "number",
            "description": "The default value of the number field"
          },
          "list": {
            "$ref": "#/components/schemas/InputListSchema"
          }
        },
        "required": [
          "type"
        ],
        "description": "The number field allows users to input numbers"
      },
      "FieldStringDisplaySchema": {
        "allOf": [
          {
            "$ref": "#/components/schemas/InputDisplaySchema"
          },
          {
            "type": "object",
            "properties": {
              "render": {
                "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"
              }
            }
          }
        ],
        "description": "Display options for the string field"
      },
      "FieldStringSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "string"
            ],
            "description": "The type of the input field"
          },
          "name": {
            "type": "string",
            "maxLength": 1024,
            "description": "The name of the input field"
          },
          "desc": {
            "type": "string",
            "maxLength": 10240,
            "description": "The description of the input field"
          },
          "optional": {
            "type": "boolean",
            "description": "Indicates whether the input field is optional"
          },
          "array": {
            "type": "boolean",
            "description": "Indicates whether the input field can contain multiple values"
          },
          "placeholder": {
            "type": "string",
            "maxLength": 512,
            "description": "The placeholder of the input field"
          },
          "display": {
            "$ref": "#/components/schemas/FieldStringDisplaySchema"
          },
          "order": {
            "type": "number",
            "minimum": 0,
            "description": "The order of the input field relative to other fields in the form"
          },
          "config": {
            "type": "boolean",
            "description": "Whether to make the field a configuration field (only visible in the configuration tab)"
          },
          "link": {
            "type": "string",
            "description": "The link to the documentation for the input field"
          },
          "metadata": {
            "type": "object",
            "properties": {},
            "description": "Additional metadata for the input field"
          },
          "default": {
            "type": "string",
            "description": "The default value of the string field"
          },
          "validation": {
            "type": "string",
            "enum": [
              "url"
            ],
            "description": "The validation type for the input field"
          },
          "list": {
            "$ref": "#/components/schemas/InputListSchema"
          }
        },
        "required": [
          "type"
        ],
        "description": "The string field allows users to input text"
      },
      "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"
      },
      "FieldBooleanSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "boolean"
            ],
            "description": "The type of the input field"
          },
          "name": {
            "type": "string",
            "maxLength": 1024,
            "description": "The name of the input field"
          },
          "desc": {
            "type": "string",
            "maxLength": 10240,
            "description": "The description of the input field"
          },
          "optional": {
            "type": "boolean",
            "description": "Indicates whether the input field is optional"
          },
          "array": {
            "type": "boolean",
            "description": "Indicates whether the input field can contain multiple values"
          },
          "placeholder": {
            "type": "string",
            "maxLength": 512,
            "description": "The placeholder of the input field"
          },
          "display": {
            "$ref": "#/components/schemas/InputDisplaySchema"
          },
          "order": {
            "type": "number",
            "minimum": 0,
            "description": "The order of the input field relative to other fields in the form"
          },
          "config": {
            "type": "boolean",
            "description": "Whether to make the field a configuration field (only visible in the configuration tab)"
          },
          "link": {
            "type": "string",
            "description": "The link to the documentation for the input field"
          },
          "metadata": {
            "type": "object",
            "properties": {},
            "description": "Additional metadata for the input field"
          },
          "allowed_modes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FieldSelectorModeSchema"
            }
          },
          "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 input field"
          },
          "name": {
            "type": "string",
            "maxLength": 1024,
            "description": "The name of the input field"
          },
          "desc": {
            "type": "string",
            "maxLength": 10240,
            "description": "The description of the input field"
          },
          "optional": {
            "type": "boolean",
            "description": "Indicates whether the input field is optional"
          },
          "array": {
            "type": "boolean",
            "description": "Indicates whether the input field can contain multiple values"
          },
          "placeholder": {
            "type": "string",
            "maxLength": 512,
            "description": "The placeholder of the input field"
          },
          "display": {
            "$ref": "#/components/schemas/InputDisplaySchema"
          },
          "order": {
            "type": "number",
            "minimum": 0,
            "description": "The order of the input field relative to other fields in the form"
          },
          "config": {
            "type": "boolean",
            "description": "Whether to make the field a configuration field (only visible in the configuration tab)"
          },
          "link": {
            "type": "string",
            "description": "The link to the documentation for the input field"
          },
          "metadata": {
            "type": "object",
            "properties": {},
            "description": "Additional metadata for the input field"
          }
        },
        "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 input field"
          },
          "name": {
            "type": "string",
            "maxLength": 1024,
            "description": "The name of the input field"
          },
          "desc": {
            "type": "string",
            "maxLength": 10240,
            "description": "The description of the input field"
          },
          "optional": {
            "type": "boolean",
            "description": "Indicates whether the input field is optional"
          },
          "array": {
            "type": "boolean",
            "description": "Indicates whether the input field can contain multiple values"
          },
          "placeholder": {
            "type": "string",
            "maxLength": 512,
            "description": "The placeholder of the input field"
          },
          "display": {
            "$ref": "#/components/schemas/InputDisplaySchema"
          },
          "order": {
            "type": "number",
            "minimum": 0,
            "description": "The order of the input field relative to other fields in the form"
          },
          "config": {
            "type": "boolean",
            "description": "Whether to make the field a configuration field (only visible in the configuration tab)"
          },
          "link": {
            "type": "string",
            "description": "The link to the documentation for the input field"
          },
          "metadata": {
            "type": "object",
            "properties": {},
            "description": "Additional metadata for the input field"
          }
        },
        "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 input field"
          },
          "name": {
            "type": "string",
            "maxLength": 1024,
            "description": "The name of the input field"
          },
          "desc": {
            "type": "string",
            "maxLength": 10240,
            "description": "The description of the input field"
          },
          "optional": {
            "type": "boolean",
            "description": "Indicates whether the input field is optional"
          },
          "array": {
            "type": "boolean",
            "description": "Indicates whether the input field can contain multiple values"
          },
          "placeholder": {
            "type": "string",
            "maxLength": 512,
            "description": "The placeholder of the input field"
          },
          "display": {
            "$ref": "#/components/schemas/InputDisplaySchema"
          },
          "order": {
            "type": "number",
            "minimum": 0,
            "description": "The order of the input field relative to other fields in the form"
          },
          "config": {
            "type": "boolean",
            "description": "Whether to make the field a configuration field (only visible in the configuration tab)"
          },
          "link": {
            "type": "string",
            "description": "The link to the documentation for the input field"
          },
          "metadata": {
            "type": "object",
            "properties": {},
            "description": "Additional metadata for the input field"
          }
        },
        "required": [
          "type"
        ],
        "description": "The time field allows users to select a time"
      },
      "FieldSelectDisplaySchema": {
        "allOf": [
          {
            "$ref": "#/components/schemas/InputDisplaySchema"
          },
          {
            "type": "object",
            "properties": {
              "render": {
                "type": "string",
                "enum": [
                  "dropdown",
                  "inline"
                ],
                "description": "The render type of the select field"
              }
            }
          }
        ],
        "description": "Display options for the select field"
      },
      "FieldSelectOptionSchema": {
        "type": "object",
        "properties": {
          "label": {
            "type": "string",
            "description": "Label of the select option"
          },
          "value": {
            "type": "string",
            "description": "Value of the select option"
          },
          "description": {
            "type": "string",
            "description": "Description of the select option"
          },
          "icon": {
            "type": "string",
            "description": "Icon of the selected option"
          }
        },
        "required": [
          "label",
          "value"
        ],
        "description": "The select option"
      },
      "FieldSelectSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "select"
            ],
            "description": "The type of the input field"
          },
          "name": {
            "type": "string",
            "maxLength": 1024,
            "description": "The name of the input field"
          },
          "desc": {
            "type": "string",
            "maxLength": 10240,
            "description": "The description of the input field"
          },
          "optional": {
            "type": "boolean",
            "description": "Indicates whether the input field is optional"
          },
          "array": {
            "type": "boolean",
            "description": "Indicates whether the input field can contain multiple values"
          },
          "placeholder": {
            "type": "string",
            "maxLength": 512,
            "description": "The placeholder of the input field"
          },
          "display": {
            "$ref": "#/components/schemas/FieldSelectDisplaySchema"
          },
          "order": {
            "type": "number",
            "minimum": 0,
            "description": "The order of the input field relative to other fields in the form"
          },
          "config": {
            "type": "boolean",
            "description": "Whether to make the field a configuration field (only visible in the configuration tab)"
          },
          "link": {
            "type": "string",
            "description": "The link to the documentation for the input field"
          },
          "metadata": {
            "type": "object",
            "properties": {},
            "description": "Additional metadata for the input field"
          },
          "default": {
            "type": "string",
            "description": "The default value of the select field"
          },
          "options": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FieldSelectOptionSchema"
            },
            "minItems": 1,
            "description": "The options for the select field (min 1)"
          },
          "list": {
            "$ref": "#/components/schemas/InputListSchema"
          },
          "allowed_modes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FieldSelectorModeSchema"
            }
          },
          "additional_options": {
            "type": "boolean",
            "description": "Indicates whether additional unlisted options are allowed"
          }
        },
        "required": [
          "type",
          "options"
        ],
        "description": "The select field used to select from a list of options"
      },
      "FieldContentSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "content"
            ],
            "description": "The type of the input field"
          },
          "name": {
            "type": "string",
            "maxLength": 1024,
            "description": "The name of the input field"
          },
          "desc": {
            "type": "string",
            "maxLength": 10240,
            "description": "The description of the input field"
          },
          "optional": {
            "type": "boolean",
            "description": "Indicates whether the input field is optional"
          },
          "array": {
            "type": "boolean",
            "description": "Indicates whether the input field can contain multiple values"
          },
          "placeholder": {
            "type": "string",
            "maxLength": 512,
            "description": "The placeholder of the input field"
          },
          "display": {
            "$ref": "#/components/schemas/InputDisplaySchema"
          },
          "order": {
            "type": "number",
            "minimum": 0,
            "description": "The order of the input field relative to other fields in the form"
          },
          "config": {
            "type": "boolean",
            "description": "Whether to make the field a configuration field (only visible in the configuration tab)"
          },
          "link": {
            "type": "string",
            "description": "The link to the documentation for the input field"
          },
          "metadata": {
            "type": "object",
            "properties": {},
            "description": "Additional metadata for the input field"
          },
          "content": {
            "type": "string",
            "description": "Any markdown content"
          }
        },
        "required": [
          "type"
        ],
        "description": "The content field used to display markdown content"
      },
      "FieldConnectionTypesSchema": {
        "type": "string",
        "enum": [
          "SCHEDULER",
          "TOOLS",
          "FILES",
          "COLLECTIONS",
          "OAUTH",
          "GOOGLE_SHEETS",
          "GOOGLE_CALENDAR",
          "GMAIL",
          "GOOGLE_DRIVE",
          "SLACK",
          "ENCOMPASS",
          "STATIC_SYNAPSE",
          "PERSONA",
          "NOTION",
          "SALESFORCE",
          "WHATSAPP",
          "RAPIDAPI",
          "RAPIDAPI_DAXY_ENRICH_CONTACT",
          "RAPIDAPI_ZILLOW",
          "RAPIDAPI_FRESH_LINKEDIN_PROFILE",
          "RAPIDAPI_LINKEDIN_SCRAPER_API",
          "RAPIDAPI_JSEARCH",
          "RAPIDAPI_INSTAGRAM_SOCIAL",
          "OPENAI",
          "ANTHROPIC",
          "GOOGLE_AI",
          "XAI",
          "AZURE_AI",
          "OPENROUTER",
          "GROQ",
          "MISTRAL"
        ],
        "description": "Allowed connection types, if not provided all are allowed",
        "example": "SLACK"
      },
      "FieldConnectionSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "connection"
            ],
            "description": "The type of the input field"
          },
          "name": {
            "type": "string",
            "maxLength": 1024,
            "description": "The name of the input field"
          },
          "desc": {
            "type": "string",
            "maxLength": 10240,
            "description": "The description of the input field"
          },
          "optional": {
            "type": "boolean",
            "description": "Indicates whether the input field is optional"
          },
          "array": {
            "type": "boolean",
            "description": "Indicates whether the input field can contain multiple values"
          },
          "placeholder": {
            "type": "string",
            "maxLength": 512,
            "description": "The placeholder of the input field"
          },
          "display": {
            "$ref": "#/components/schemas/InputDisplaySchema"
          },
          "order": {
            "type": "number",
            "minimum": 0,
            "description": "The order of the input field relative to other fields in the form"
          },
          "config": {
            "type": "boolean",
            "description": "Whether to make the field a configuration field (only visible in the configuration tab)"
          },
          "link": {
            "type": "string",
            "description": "The link to the documentation for the input field"
          },
          "metadata": {
            "type": "object",
            "properties": {},
            "description": "Additional metadata for the input field"
          },
          "allowed_types": {
            "$ref": "#/components/schemas/FieldConnectionTypesSchema"
          }
        },
        "required": [
          "type"
        ],
        "description": "The connection field used to select a connection"
      },
      "FieldObjectSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "object"
            ],
            "description": "The type of the input field"
          },
          "name": {
            "type": "string",
            "maxLength": 1024,
            "description": "The name of the input field"
          },
          "desc": {
            "type": "string",
            "maxLength": 10240,
            "description": "The description of the input field"
          },
          "optional": {
            "type": "boolean",
            "description": "Indicates whether the input field is optional"
          },
          "array": {
            "type": "boolean",
            "description": "Indicates whether the input field can contain multiple values"
          },
          "placeholder": {
            "type": "string",
            "maxLength": 512,
            "description": "The placeholder of the input field"
          },
          "display": {
            "$ref": "#/components/schemas/InputDisplaySchema"
          },
          "order": {
            "type": "number",
            "minimum": 0,
            "description": "The order of the input field relative to other fields in the form"
          },
          "config": {
            "type": "boolean",
            "description": "Whether to make the field a configuration field (only visible in the configuration tab)"
          },
          "link": {
            "type": "string",
            "description": "The link to the documentation for the input field"
          },
          "metadata": {
            "type": "object",
            "properties": {},
            "description": "Additional metadata for the input field"
          },
          "fields": {
            "type": "object",
            "additionalProperties": {
              "$ref": "#/components/schemas/InputSchema"
            },
            "description": "A record of fields that can be of various types including object fields"
          },
          "additional_fields": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/InputListSchema"
              },
              {
                "type": "boolean"
              }
            ],
            "description": "Indicates whether additional fields are allowed"
          }
        },
        "required": [
          "type",
          "fields"
        ],
        "description": "The object field that can contain other fields, including nested objects"
      },
      "InputSchema": {
        "oneOf": [
          {
            "$ref": "#/components/schemas/FieldFileSchema"
          },
          {
            "$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/FieldSelectSchema"
          },
          {
            "$ref": "#/components/schemas/FieldContentSchema"
          },
          {
            "$ref": "#/components/schemas/FieldConnectionSchema"
          },
          {
            "$ref": "#/components/schemas/FieldObjectSchema"
          }
        ],
        "discriminator": {
          "propertyName": "type",
          "mapping": {
            "file": "#/components/schemas/FieldFileSchema",
            "number": "#/components/schemas/FieldNumberSchema",
            "string": "#/components/schemas/FieldStringSchema",
            "boolean": "#/components/schemas/FieldBooleanSchema",
            "date": "#/components/schemas/FieldDateSchema",
            "datetime": "#/components/schemas/FieldDateTimeSchema",
            "time": "#/components/schemas/FieldTimeSchema",
            "select": "#/components/schemas/FieldSelectSchema",
            "content": "#/components/schemas/FieldContentSchema",
            "connection": "#/components/schemas/FieldConnectionSchema",
            "object": "#/components/schemas/FieldObjectSchema"
          }
        }
      },
      "InputDefinitionSchema": {
        "type": "object",
        "additionalProperties": {
          "$ref": "#/components/schemas/InputSchema"
        },
        "description": "The definition of the input fields"
      },
      "ConnectionClientSchema": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "auth_method": {
            "$ref": "#/components/schemas/ConnectionAuthMethodSchema"
          },
          "protected_config_paths": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "config": {
            "$ref": "#/components/schemas/InputDefinitionSchema"
          }
        },
        "required": [
          "name",
          "auth_method",
          "protected_config_paths",
          "config"
        ],
        "description": "Connection client"
      },
      "ConnectionClientsSchema": {
        "type": "object",
        "properties": {
          "OAUTH": {
            "$ref": "#/components/schemas/ConnectionClientSchema"
          },
          "MANUAL": {
            "$ref": "#/components/schemas/ConnectionClientSchema"
          }
        },
        "description": "Connection clients"
      },
      "ModelProviderTypeSchema": {
        "type": "string",
        "enum": [
          "auto",
          "text",
          "cloudflare",
          "openai",
          "openai_chat_completions",
          "anthropic",
          "google",
          "azure",
          "x",
          "openrouter",
          "groq",
          "mistral",
          "cerebras",
          "fireworks",
          "deepseek",
          "browser_use",
          "bytedance",
          "minimax",
          "kuaishou",
          "zai"
        ],
        "description": "Model provider type"
      },
      "ConnectionDisplaySchema": {
        "type": "object",
        "properties": {
          "icon": {
            "type": "string",
            "description": "Icon name"
          },
          "hide_selector": {
            "type": "boolean",
            "description": "Whether the connection should be hidden from the selector"
          },
          "open_in_popup": {
            "type": "boolean",
            "description": "Whether the connection should be opened in a popup"
          }
        },
        "required": [
          "icon"
        ],
        "description": "Connection display"
      },
      "ConnectionLimitsSchema": {
        "type": "object",
        "properties": {
          "max_concurrency": {
            "type": "number",
            "description": "Maximum number of concurrent requests"
          },
          "max_requests_per_minute": {
            "type": "number",
            "description": "Maximum number of requests per minute"
          }
        },
        "required": [
          "max_concurrency",
          "max_requests_per_minute"
        ],
        "description": "Connection limits"
      },
      "ConnectionInfoSchema": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "type": {
            "$ref": "#/components/schemas/ConnectionTypeSchema"
          },
          "system": {
            "type": "boolean",
            "description": "Whether the connection is a system connection"
          },
          "clients": {
            "$ref": "#/components/schemas/ConnectionClientsSchema"
          },
          "has_clients": {
            "type": "boolean",
            "description": "Whether the connection has clients"
          },
          "models_adapter": {
            "$ref": "#/components/schemas/ModelProviderTypeSchema"
          },
          "display": {
            "$ref": "#/components/schemas/ConnectionDisplaySchema"
          },
          "limits": {
            "$ref": "#/components/schemas/ConnectionLimitsSchema"
          },
          "disabled": {
            "type": "boolean",
            "description": "Whether the connection is disabled"
          }
        },
        "required": [
          "name",
          "description",
          "type",
          "system",
          "clients",
          "has_clients",
          "display",
          "limits",
          "disabled"
        ],
        "description": "Connection info"
      },
      "QueryActiveUsersSchema": {
        "type": "object",
        "properties": {
          "from_date": {
            "type": "string",
            "nullable": true,
            "format": "date"
          }
        },
        "required": [
          "from_date"
        ]
      },
      "MetricsIntervalSchema": {
        "type": "string",
        "enum": [
          "hour",
          "day",
          "week",
          "month",
          "year"
        ]
      },
      "QueryMetricsSchema": {
        "type": "object",
        "properties": {
          "interval": {
            "$ref": "#/components/schemas/MetricsIntervalSchema"
          },
          "from_date": {
            "type": "string",
            "nullable": true,
            "format": "date"
          },
          "to_date": {
            "type": "string",
            "nullable": true,
            "format": "date"
          }
        }
      },
      "QueryPostCategoriesSchema": {
        "type": "object",
        "properties": {
          "search": {
            "type": "string"
          }
        }
      },
      "QueryPostsSchema": {
        "type": "object",
        "properties": {
          "search": {
            "type": "string"
          },
          "category": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": [
              "ALL",
              "DRAFT",
              "PUBLISHED"
            ]
          }
        }
      },
      "QuerySecureUserSurveyResponsesSchema": {
        "type": "object",
        "properties": {
          "search": {
            "type": "string"
          }
        }
      },
      "QueryUsersSchema": {
        "type": "object",
        "properties": {
          "search": {
            "type": "string"
          },
          "role": {
            "type": "string",
            "enum": [
              "ALL",
              "USER",
              "STAFF",
              "ADMIN",
              "ANALYST"
            ]
          },
          "sort_field": {
            "type": "string",
            "enum": [
              "created_at",
              "seen_at"
            ]
          }
        }
      },
      "QueryAppSchema": {
        "type": "object",
        "properties": {
          "search": {
            "type": "string"
          },
          "verified": {
            "type": "string",
            "enum": [
              "ALL",
              "VERIFIED",
              "UNVERIFIED"
            ]
          },
          "user_id": {
            "type": "string"
          }
        }
      },
      "QueryWorkflowsSchema": {
        "type": "object",
        "properties": {
          "search": {
            "type": "string"
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "QuerySecurePaymentInvoicesSchema": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "ALL",
              "DRAFT",
              "PENDING",
              "PAID",
              "OVERDUE"
            ]
          }
        }
      },
      "QueryCollectionsSchema": {
        "type": "object",
        "properties": {
          "search": {
            "type": "string",
            "description": "What you want to search for in collections"
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Tags to filter collections by (you can use up to 20)",
            "example": [
              "tag_xxx",
              "tag_yyy"
            ]
          }
        }
      },
      "QueryTemplatesSchema": {
        "type": "object",
        "properties": {
          "search": {
            "type": "string",
            "description": "Search term to filter"
          },
          "categories": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Category slugs to filter"
          },
          "type": {
            "type": "string",
            "enum": [
              "ALL",
              "WORKFLOW",
              "COLLECTION"
            ],
            "description": "Type of the app template"
          },
          "status": {
            "type": "string",
            "enum": [
              "ALL",
              "DRAFT",
              "PUBLISHED"
            ],
            "description": "Status of the app template"
          }
        }
      },
      "QueryTemplateCategorySchema": {
        "type": "object",
        "properties": {
          "search": {
            "type": "string",
            "nullable": true,
            "description": "Search term to filter template categories"
          }
        }
      },
      "QueryPublicPostsSchema": {
        "type": "object",
        "properties": {
          "search": {
            "type": "string"
          },
          "category": {
            "type": "string"
          }
        }
      },
      "PublicQueryTemplatesSchema": {
        "type": "object",
        "properties": {
          "search": {
            "type": "string",
            "description": "Search term to filter"
          },
          "categories": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Category slugs to filter"
          },
          "type": {
            "type": "string",
            "enum": [
              "WORKFLOW",
              "COLLECTION"
            ],
            "description": "Type of the app template"
          }
        }
      },
      "IncludeRecordPropsSchema": {
        "type": "array",
        "items": {
          "type": "string",
          "enum": [
            "all"
          ]
        },
        "description": "Properties to include in the record response",
        "example": [
          "all"
        ]
      },
      "IncludeRecordSchema": {
        "type": "object",
        "properties": {
          "verbose": {
            "$ref": "#/components/schemas/IncludeRecordPropsSchema"
          }
        },
        "description": "Options for including additional record properties",
        "example": {
          "verbose": [
            "all"
          ]
        }
      },
      "QueryConversationsSchema": {
        "type": "object",
        "properties": {
          "search": {
            "type": "string",
            "maxLength": 256,
            "description": "Search term to filter conversations"
          }
        },
        "description": "Query parameters for conversations"
      },
      "QueryUsageGroupsSchema": {
        "type": "object",
        "properties": {
          "start_date": {
            "type": "string",
            "nullable": true,
            "description": "Start date for the usage query",
            "format": "date"
          },
          "end_date": {
            "type": "string",
            "nullable": true,
            "description": "End date for the usage query",
            "format": "date"
          },
          "group_by": {
            "type": "string",
            "enum": [
              "HOUR",
              "DAY"
            ],
            "description": "Group results by time interval"
          },
          "user_id": {
            "type": "string",
            "description": "Filter by user ID. Staff users can only view their own data."
          },
          "group_by_member": {
            "type": "boolean",
            "description": "Group results by member (admin only). Returns per-member breakdown."
          }
        }
      },
      "QueryPaymentInvoicesSchema": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "ALL",
              "PENDING",
              "PAID",
              "OVERDUE"
            ]
          }
        }
      },
      "QueryPaymentsTransactionsGroupsSchema": {
        "type": "object",
        "properties": {
          "start_date": {
            "type": "string",
            "nullable": true,
            "description": "Date filter to search from",
            "format": "date"
          },
          "end_date": {
            "type": "string",
            "nullable": true,
            "description": "Date filter to search to",
            "format": "date"
          },
          "group_by": {
            "type": "string",
            "enum": [
              "HOUR",
              "DAY"
            ],
            "description": "Group by a date part filter"
          },
          "type": {
            "type": "string",
            "enum": [
              "ALL",
              "CHARGE",
              "FUNDING",
              "BONUS",
              "PAYMENT",
              "REFUND"
            ],
            "description": "Type filter to search"
          },
          "user_id": {
            "type": "string",
            "description": "Filter transactions by the user who triggered them"
          },
          "group_by_member": {
            "type": "boolean",
            "description": "Group by member (admin only). Returns per-member breakdown."
          }
        }
      },
      "QueryTagsSchema": {
        "type": "object",
        "properties": {
          "search": {
            "type": "string"
          }
        }
      },
      "CreateConnectionOAuthUrlSchema": {
        "type": "object",
        "properties": {
          "type": {
            "$ref": "#/components/schemas/ConnectionTypeSchema"
          }
        },
        "required": [
          "type"
        ],
        "description": "Create OAuth provider URL"
      },
      "QueryExecuteConnectionActionListSchema ": {
        "type": "object",
        "properties": {
          "search": {
            "type": "string",
            "description": "Search query"
          },
          "value": {
            "type": "string",
            "description": "Filter by value"
          }
        },
        "description": "Query connection action"
      },
      "ConnectionStaticSynapseManualConfigSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "STATIC_SYNAPSE"
            ],
            "description": "The type of the connection"
          },
          "auth_method": {
            "type": "string",
            "enum": [
              "MANUAL"
            ],
            "description": "The authentication method to use"
          },
          "destination": {
            "type": "string",
            "description": "The initial URL of the connection"
          },
          "instructions": {
            "type": "string",
            "description": "The description of the tasks to be completed"
          },
          "output_format": {
            "type": "string",
            "description": "The format for the output data"
          }
        },
        "required": [
          "type",
          "auth_method",
          "destination",
          "instructions",
          "output_format"
        ],
        "description": "Configuration of an Static Synapse connection"
      },
      "ConnectionOauthOauthConfigSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "OAUTH"
            ],
            "description": "The type of the connection"
          },
          "auth_method": {
            "type": "string",
            "enum": [
              "OAUTH"
            ],
            "description": "The authentication method to use"
          },
          "access_token": {
            "type": "string",
            "description": "The access token for OAuth authentication"
          },
          "refresh_token": {
            "type": "string",
            "description": "The refresh token for OAuth authentication"
          },
          "expires_in": {
            "type": "number",
            "description": "The expiration time of the access token"
          },
          "scope": {
            "type": "string",
            "description": "The scope of the access token"
          },
          "api_url": {
            "type": "string",
            "description": "API URL"
          }
        },
        "required": [
          "type",
          "auth_method"
        ],
        "description": "Configuration of an OAuth connection"
      },
      "ConnectionGoogleSheetsOauthConfigSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "GOOGLE_SHEETS"
            ],
            "description": "The type of the connection"
          },
          "auth_method": {
            "type": "string",
            "enum": [
              "OAUTH"
            ],
            "description": "The authentication method to use"
          },
          "access_token": {
            "type": "string",
            "description": "The access token for OAuth authentication"
          },
          "refresh_token": {
            "type": "string",
            "description": "The refresh token for OAuth authentication"
          },
          "expires_in": {
            "type": "number",
            "description": "The expiration time of the access token"
          },
          "scope": {
            "type": "string",
            "description": "The scope of the access token"
          },
          "api_url": {
            "type": "string",
            "description": "API URL"
          }
        },
        "required": [
          "type",
          "auth_method"
        ],
        "description": "Configuration of an Google Sheets connection"
      },
      "ConnectionGoogleDriveOauthConfigSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "GOOGLE_DRIVE"
            ],
            "description": "The type of the connection"
          },
          "auth_method": {
            "type": "string",
            "enum": [
              "OAUTH"
            ],
            "description": "The authentication method to use"
          },
          "access_token": {
            "type": "string",
            "description": "The access token for OAuth authentication"
          },
          "refresh_token": {
            "type": "string",
            "description": "The refresh token for OAuth authentication"
          },
          "expires_in": {
            "type": "number",
            "description": "The expiration time of the access token"
          },
          "scope": {
            "type": "string",
            "description": "The scope of the access token"
          },
          "api_url": {
            "type": "string",
            "description": "API URL"
          }
        },
        "required": [
          "type",
          "auth_method"
        ],
        "description": "Configuration of an Google Drive connection"
      },
      "ConnectionGoogleCalendarOauthConfigSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "GOOGLE_CALENDAR"
            ],
            "description": "The type of the connection"
          },
          "auth_method": {
            "type": "string",
            "enum": [
              "OAUTH"
            ],
            "description": "The authentication method to use"
          },
          "access_token": {
            "type": "string",
            "description": "The access token for OAuth authentication"
          },
          "refresh_token": {
            "type": "string",
            "description": "The refresh token for OAuth authentication"
          },
          "expires_in": {
            "type": "number",
            "description": "The expiration time of the access token"
          },
          "scope": {
            "type": "string",
            "description": "The scope of the access token"
          },
          "api_url": {
            "type": "string",
            "description": "API URL"
          }
        },
        "required": [
          "type",
          "auth_method"
        ],
        "description": "Configuration of an Google Calendar connection"
      },
      "ConnectionGmailOauthConfigSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "GMAIL"
            ],
            "description": "The type of the connection"
          },
          "auth_method": {
            "type": "string",
            "enum": [
              "OAUTH"
            ],
            "description": "The authentication method to use"
          },
          "access_token": {
            "type": "string",
            "description": "The access token for OAuth authentication"
          },
          "refresh_token": {
            "type": "string",
            "description": "The refresh token for OAuth authentication"
          },
          "expires_in": {
            "type": "number",
            "description": "The expiration time of the access token"
          },
          "scope": {
            "type": "string",
            "description": "The scope of the access token"
          },
          "api_url": {
            "type": "string",
            "description": "API URL"
          }
        },
        "required": [
          "type",
          "auth_method"
        ],
        "description": "Configuration of an Gmail connection"
      },
      "ConnectionSlackOauthConfigSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "SLACK"
            ],
            "description": "The type of the connection"
          },
          "auth_method": {
            "type": "string",
            "enum": [
              "OAUTH"
            ],
            "description": "The authentication method to use"
          },
          "access_token": {
            "type": "string",
            "description": "The access token for OAuth authentication"
          },
          "refresh_token": {
            "type": "string",
            "description": "The refresh token for OAuth authentication"
          },
          "expires_in": {
            "type": "number",
            "description": "The expiration time of the access token"
          },
          "scope": {
            "type": "string",
            "description": "The scope of the access token"
          },
          "api_url": {
            "type": "string",
            "description": "API URL"
          }
        },
        "required": [
          "type",
          "auth_method"
        ],
        "description": "Configuration of an Slack connection"
      },
      "ConnectionNotionOauthConfigSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "NOTION"
            ],
            "description": "The type of the connection"
          },
          "auth_method": {
            "type": "string",
            "enum": [
              "OAUTH"
            ],
            "description": "The authentication method to use"
          },
          "access_token": {
            "type": "string",
            "description": "The access token for OAuth authentication"
          },
          "refresh_token": {
            "type": "string",
            "description": "The refresh token for OAuth authentication"
          },
          "expires_in": {
            "type": "number",
            "description": "The expiration time of the access token"
          },
          "scope": {
            "type": "string",
            "description": "The scope of the access token"
          },
          "api_url": {
            "type": "string",
            "description": "API URL"
          }
        },
        "required": [
          "type",
          "auth_method"
        ],
        "description": "Configuration of an Notion connection"
      },
      "ConnectionSalesforceOauthConfigSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "SALESFORCE"
            ],
            "description": "The type of the connection"
          },
          "auth_method": {
            "type": "string",
            "enum": [
              "OAUTH"
            ],
            "description": "The authentication method to use"
          },
          "access_token": {
            "type": "string",
            "description": "The access token for OAuth authentication"
          },
          "refresh_token": {
            "type": "string",
            "description": "The refresh token for OAuth authentication"
          },
          "expires_in": {
            "type": "number",
            "description": "The expiration time of the access token"
          },
          "scope": {
            "type": "string",
            "description": "The scope of the access token"
          },
          "api_url": {
            "type": "string",
            "description": "API URL"
          }
        },
        "required": [
          "type",
          "auth_method"
        ],
        "description": "Configuration of an Salesforce connection"
      },
      "ConnectionEncompassManualConfigSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "ENCOMPASS"
            ],
            "description": "The type of the connection"
          },
          "auth_method": {
            "type": "string",
            "enum": [
              "MANUAL"
            ],
            "description": "The authentication method to use"
          },
          "username": {
            "type": "string",
            "description": "Replace the following placeholders with your Encompass credentials: [username]@encompass:[instance_id]"
          },
          "password": {
            "type": "string",
            "description": "The password for Encompass authentication"
          },
          "client_id": {
            "type": "string",
            "description": "The client ID for Encompass authentication"
          },
          "client_secret": {
            "type": "string",
            "description": "The client secret for Encompass authentication"
          }
        },
        "required": [
          "type",
          "auth_method",
          "username",
          "password",
          "client_id",
          "client_secret"
        ],
        "description": "Configuration of an Encompass connection"
      },
      "ConnectionPersonaManualConfigSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "PERSONA"
            ],
            "description": "The type of the connection"
          },
          "auth_method": {
            "type": "string",
            "enum": [
              "MANUAL"
            ],
            "description": "The authentication method to use"
          },
          "api_key": {
            "type": "string",
            "description": "The API key for Persona authentication"
          },
          "custom_endpoint": {
            "type": "string",
            "description": "The custom endpoint for Persona API"
          }
        },
        "required": [
          "type",
          "auth_method",
          "api_key"
        ],
        "description": "Configuration of an Persona connection"
      },
      "ConnectionOpenaiManualConfigSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "OPENAI"
            ],
            "description": "The type of the connection"
          },
          "auth_method": {
            "type": "string",
            "enum": [
              "MANUAL"
            ],
            "description": "The authentication method to use"
          },
          "api_key": {
            "type": "string",
            "description": "The API key for Bearer authentication."
          },
          "base_url": {
            "type": "string",
            "description": "The base URL for compatible OpenAI endpoints, e.g OpenRouter, Groq, TogetherAI, etc."
          },
          "adapter": {
            "type": "string",
            "description": "Adapter",
            "enum": [
              "responses",
              "chat_completions"
            ]
          }
        },
        "required": [
          "type",
          "auth_method",
          "api_key",
          "adapter"
        ],
        "description": "Configuration of an OpenAI connection"
      },
      "ConnectionAnthropicManualConfigSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "ANTHROPIC"
            ],
            "description": "The type of the connection"
          },
          "auth_method": {
            "type": "string",
            "enum": [
              "MANUAL"
            ],
            "description": "The authentication method to use"
          },
          "api_key": {
            "type": "string",
            "description": "The API key from Anthropic"
          }
        },
        "required": [
          "type",
          "auth_method",
          "api_key"
        ],
        "description": "Configuration of an Anthropic connection"
      },
      "ConnectionGoogleAiManualConfigSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "GOOGLE_AI"
            ],
            "description": "The type of the connection"
          },
          "auth_method": {
            "type": "string",
            "enum": [
              "MANUAL"
            ],
            "description": "The authentication method to use"
          },
          "api_key": {
            "type": "string",
            "description": "The API key from Google AI Studio"
          }
        },
        "required": [
          "type",
          "auth_method",
          "api_key"
        ],
        "description": "Configuration of an Google AI connection"
      },
      "ConnectionXaiManualConfigSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "XAI"
            ],
            "description": "The type of the connection"
          },
          "auth_method": {
            "type": "string",
            "enum": [
              "MANUAL"
            ],
            "description": "The authentication method to use"
          },
          "api_key": {
            "type": "string",
            "description": "The API key from XAI"
          }
        },
        "required": [
          "type",
          "auth_method",
          "api_key"
        ],
        "description": "Configuration of an xAI connection"
      },
      "ConnectionAzureAiManualConfigSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "AZURE_AI"
            ],
            "description": "The type of the connection"
          },
          "auth_method": {
            "type": "string",
            "enum": [
              "MANUAL"
            ],
            "description": "The authentication method to use"
          },
          "api_key": {
            "type": "string",
            "description": "The API key for Bearer authentication."
          },
          "base_url": {
            "type": "string",
            "description": "Deployment URL for Azure OpenAI Service."
          },
          "deployment_ids": {
            "type": "array",
            "description": "Custom deployment IDs for Azure OpenAI Service.",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "type",
          "auth_method",
          "api_key",
          "base_url"
        ],
        "description": "Configuration of an Azure AI connection"
      },
      "ConnectionOpenrouterManualConfigSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "OPENROUTER"
            ],
            "description": "The type of the connection"
          },
          "auth_method": {
            "type": "string",
            "enum": [
              "MANUAL"
            ],
            "description": "The authentication method to use"
          },
          "api_key": {
            "type": "string",
            "description": "The API key from OpenRouter"
          }
        },
        "required": [
          "type",
          "auth_method",
          "api_key"
        ],
        "description": "Configuration of an Open Router connection"
      },
      "ConnectionGroqManualConfigSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "GROQ"
            ],
            "description": "The type of the connection"
          },
          "auth_method": {
            "type": "string",
            "enum": [
              "MANUAL"
            ],
            "description": "The authentication method to use"
          },
          "api_key": {
            "type": "string",
            "description": "The API key from GROQ"
          }
        },
        "required": [
          "type",
          "auth_method",
          "api_key"
        ],
        "description": "Configuration of an Groq connection"
      },
      "ConnectionMistralManualConfigSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "MISTRAL"
            ],
            "description": "The type of the connection"
          },
          "auth_method": {
            "type": "string",
            "enum": [
              "MANUAL"
            ],
            "description": "The authentication method to use"
          },
          "api_key": {
            "type": "string",
            "description": "The API key for Mistral AI authentication."
          },
          "base_url": {
            "type": "string",
            "description": "The base URL for Mistral AI API endpoints."
          }
        },
        "required": [
          "type",
          "auth_method",
          "api_key"
        ],
        "description": "Configuration of an Mistral AI connection"
      },
      "ConnectionWhatsappManualConfigSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "WHATSAPP"
            ],
            "description": "The type of the connection"
          },
          "auth_method": {
            "type": "string",
            "enum": [
              "MANUAL"
            ],
            "description": "The authentication method to use"
          },
          "access_token": {
            "type": "string",
            "description": "WhatsApp Business API access token from Meta Developer Console → WhatsApp → API Setup"
          },
          "phone_number_id": {
            "type": "string",
            "description": "Phone Number ID from WhatsApp API Setup (numbers only)"
          },
          "whatsapp_business_account_id": {
            "type": "string",
            "description": "WABA ID (optional, for analytics and management features)"
          }
        },
        "required": [
          "type",
          "auth_method"
        ],
        "description": "Configuration of an WhatsApp connection"
      },
      "ConnectionRapidapiManualConfigSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "RAPIDAPI"
            ],
            "description": "The type of the connection"
          },
          "auth_method": {
            "type": "string",
            "enum": [
              "MANUAL"
            ],
            "description": "The authentication method to use"
          },
          "api_key": {
            "type": "string",
            "description": "Your X-RapidAPI-Key from rapidapi.com. You can find this in your RapidAPI dashboard. Note: Your key will be validated when you use an action."
          }
        },
        "required": [
          "type",
          "auth_method",
          "api_key"
        ],
        "description": "Configuration of an RapidAPI connection"
      },
      "ConnectionConfigSchema": {
        "anyOf": [
          {
            "$ref": "#/components/schemas/ConnectionStaticSynapseManualConfigSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionOauthOauthConfigSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionGoogleSheetsOauthConfigSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionGoogleDriveOauthConfigSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionGoogleCalendarOauthConfigSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionGmailOauthConfigSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionSlackOauthConfigSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionNotionOauthConfigSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionSalesforceOauthConfigSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionEncompassManualConfigSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionPersonaManualConfigSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionOpenaiManualConfigSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionAnthropicManualConfigSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionGoogleAiManualConfigSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionXaiManualConfigSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionAzureAiManualConfigSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionOpenrouterManualConfigSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionGroqManualConfigSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionMistralManualConfigSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionWhatsappManualConfigSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionRapidapiManualConfigSchema"
          }
        ],
        "description": "Configuration of a connection"
      },
      "ConnectionConfigPartialSchema": {
        "anyOf": [
          {
            "$ref": "#/components/schemas/ConnectionStaticSynapseManualConfigSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionOauthOauthConfigSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionGoogleSheetsOauthConfigSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionGoogleDriveOauthConfigSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionGoogleCalendarOauthConfigSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionGmailOauthConfigSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionSlackOauthConfigSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionNotionOauthConfigSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionSalesforceOauthConfigSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionEncompassManualConfigSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionPersonaManualConfigSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionOpenaiManualConfigSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionAnthropicManualConfigSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionGoogleAiManualConfigSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionXaiManualConfigSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionAzureAiManualConfigSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionOpenrouterManualConfigSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionGroqManualConfigSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionMistralManualConfigSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionWhatsappManualConfigSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionRapidapiManualConfigSchema"
          }
        ],
        "description": "Configuration of a connection"
      },
      "QueryWorkflowsDiscoverSchema": {
        "type": "object",
        "properties": {
          "search": {
            "type": "string"
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "IncludeRunPropsSchema": {
        "type": "array",
        "items": {
          "type": "string",
          "enum": [
            "all"
          ]
        }
      },
      "IncludeRunSchema": {
        "type": "object",
        "properties": {
          "verbose": {
            "$ref": "#/components/schemas/IncludeRunPropsSchema"
          }
        }
      },
      "WorkflowRunDataRetentionConfigSchema": {
        "type": "object",
        "nullable": true,
        "properties": {
          "max_age_in_seconds": {
            "type": "number",
            "minimum": -1,
            "maximum": 157680000,
            "description": "Maximum time in seconds to retain run data after completion, -1 means no limit (keep indefinitely)"
          },
          "preserve_on_failure": {
            "type": "boolean",
            "description": "Whether to preserve run data beyond the standard retention period if it fails",
            "example": true
          }
        },
        "required": [
          "max_age_in_seconds"
        ],
        "description": "Data retention policy for the run",
        "example": {
          "max_age_in_seconds": 3600,
          "preserve_on_failure": true
        }
      },
      "StepKeySchema": {
        "type": "string",
        "minLength": 1,
        "maxLength": 128,
        "description": "A unique key for the step"
      },
      "StepDisplaySchema": {
        "type": "string",
        "enum": [
          "expanded",
          "collapsed",
          "minimal"
        ],
        "description": "Display mode of the step"
      },
      "StepAutoConfigSchema": {
        "type": "object",
        "properties": {
          "provider": {
            "type": "string",
            "description": "Model provider name"
          },
          "model": {
            "type": "string",
            "description": "Model name"
          },
          "temperature": {
            "type": "number",
            "minimum": 0,
            "maximum": 2,
            "description": "Model temperature"
          }
        },
        "description": "Auto configuration for the step"
      },
      "StepNoteSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "note"
            ],
            "description": "The type of the step"
          },
          "key": {
            "$ref": "#/components/schemas/StepKeySchema"
          },
          "display": {
            "$ref": "#/components/schemas/StepDisplaySchema"
          },
          "conditional": {
            "type": "string",
            "description": "A condition to determine if the step should run"
          },
          "loop": {
            "type": "string",
            "description": "A loop condition for the step to repeat running until the condition is met"
          },
          "throw_on_error": {
            "type": "boolean",
            "description": "Whether to throw an error if the step fails"
          },
          "input_connected": {
            "type": "boolean",
            "description": "Whether the step is connected to the input"
          },
          "destinations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/StepKeySchema"
            },
            "description": "The step keys that this step connects to"
          },
          "position": {
            "type": "array",
            "items": {
              "type": "number"
            },
            "minItems": 2,
            "maxItems": 2,
            "description": "The position of the step on the canvas"
          },
          "size": {
            "type": "array",
            "items": {
              "anyOf": [
                {
                  "type": "number",
                  "minimum": 100
                },
                {
                  "type": "number",
                  "minimum": 0
                }
              ]
            },
            "minItems": 2,
            "maxItems": 2,
            "description": "The size of the step on the canvas"
          },
          "auto": {
            "$ref": "#/components/schemas/StepAutoConfigSchema"
          },
          "note": {
            "type": "string",
            "description": "The note content (markdown supported)"
          }
        },
        "required": [
          "type",
          "key",
          "note"
        ],
        "description": "A step that displays as a note on the canvas"
      },
      "StepWebhookConfigSchema": {
        "type": "object",
        "properties": {
          "method": {
            "type": "string",
            "enum": [
              "GET",
              "POST",
              "PUT",
              "PATCH",
              "DELETE"
            ],
            "description": "HTTP method for the webhook"
          },
          "path": {
            "type": "string",
            "maxLength": 1024,
            "description": "The path for the webhook, e.g. /some/path"
          }
        },
        "required": [
          "method"
        ],
        "description": "Webhook configuration for the input step"
      },
      "StepInputSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "input"
            ],
            "description": "The type of the step"
          },
          "key": {
            "$ref": "#/components/schemas/StepKeySchema"
          },
          "display": {
            "$ref": "#/components/schemas/StepDisplaySchema"
          },
          "conditional": {
            "type": "string",
            "description": "A condition to determine if the step should run"
          },
          "loop": {
            "type": "string",
            "description": "A loop condition for the step to repeat running until the condition is met"
          },
          "throw_on_error": {
            "type": "boolean",
            "description": "Whether to throw an error if the step fails"
          },
          "input_connected": {
            "type": "boolean",
            "description": "Whether the step is connected to the input"
          },
          "destinations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/StepKeySchema"
            },
            "description": "The step keys that this step connects to"
          },
          "position": {
            "type": "array",
            "items": {
              "type": "number"
            },
            "minItems": 2,
            "maxItems": 2,
            "description": "The position of the step on the canvas"
          },
          "size": {
            "type": "array",
            "items": {
              "anyOf": [
                {
                  "type": "number",
                  "minimum": 100
                },
                {
                  "type": "number",
                  "minimum": 0
                }
              ]
            },
            "minItems": 2,
            "maxItems": 2,
            "description": "The size of the step on the canvas"
          },
          "auto": {
            "$ref": "#/components/schemas/StepAutoConfigSchema"
          },
          "input": {
            "$ref": "#/components/schemas/InputDefinitionSchema"
          },
          "webhook": {
            "$ref": "#/components/schemas/StepWebhookConfigSchema"
          }
        },
        "required": [
          "type",
          "key",
          "input"
        ],
        "description": "A step that provides input values for the workflow"
      },
      "StepBranchConditionSchema": {
        "type": "object",
        "properties": {
          "condition": {
            "type": "string",
            "description": "The condition to evaluate"
          },
          "destinations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/StepKeySchema"
            },
            "description": "The step keys that this branch connects to"
          },
          "order": {
            "type": "number",
            "description": "The order of the branch condition"
          }
        },
        "required": [
          "destinations",
          "order"
        ],
        "description": "A condition to evaluate for branching"
      },
      "StepBranchSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "branch"
            ],
            "description": "The type of the step"
          },
          "key": {
            "$ref": "#/components/schemas/StepKeySchema"
          },
          "display": {
            "$ref": "#/components/schemas/StepDisplaySchema"
          },
          "conditional": {
            "type": "string",
            "description": "A condition to determine if the step should run"
          },
          "loop": {
            "type": "string",
            "description": "A loop condition for the step to repeat running until the condition is met"
          },
          "throw_on_error": {
            "type": "boolean",
            "description": "Whether to throw an error if the step fails"
          },
          "input_connected": {
            "type": "boolean",
            "description": "Whether the step is connected to the input"
          },
          "destinations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/StepKeySchema"
            },
            "description": "The step keys that this step connects to"
          },
          "position": {
            "type": "array",
            "items": {
              "type": "number"
            },
            "minItems": 2,
            "maxItems": 2,
            "description": "The position of the step on the canvas"
          },
          "size": {
            "type": "array",
            "items": {
              "anyOf": [
                {
                  "type": "number",
                  "minimum": 100
                },
                {
                  "type": "number",
                  "minimum": 0
                }
              ]
            },
            "minItems": 2,
            "maxItems": 2,
            "description": "The size of the step on the canvas"
          },
          "auto": {
            "$ref": "#/components/schemas/StepAutoConfigSchema"
          },
          "conditions": {
            "type": "object",
            "additionalProperties": {
              "$ref": "#/components/schemas/StepBranchConditionSchema"
            }
          },
          "else": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/StepKeySchema"
            },
            "description": "The step keys that the branch should connect to if none of the conditions are met"
          }
        },
        "required": [
          "type",
          "key",
          "conditions"
        ],
        "description": "A step that allows branching based on one or more conditions"
      },
      "StepCodeSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "code"
            ],
            "description": "The type of the step"
          },
          "key": {
            "$ref": "#/components/schemas/StepKeySchema"
          },
          "display": {
            "$ref": "#/components/schemas/StepDisplaySchema"
          },
          "conditional": {
            "type": "string",
            "description": "A condition to determine if the step should run"
          },
          "loop": {
            "type": "string",
            "description": "A loop condition for the step to repeat running until the condition is met"
          },
          "throw_on_error": {
            "type": "boolean",
            "description": "Whether to throw an error if the step fails"
          },
          "input_connected": {
            "type": "boolean",
            "description": "Whether the step is connected to the input"
          },
          "destinations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/StepKeySchema"
            },
            "description": "The step keys that this step connects to"
          },
          "position": {
            "type": "array",
            "items": {
              "type": "number"
            },
            "minItems": 2,
            "maxItems": 2,
            "description": "The position of the step on the canvas"
          },
          "size": {
            "type": "array",
            "items": {
              "anyOf": [
                {
                  "type": "number",
                  "minimum": 100
                },
                {
                  "type": "number",
                  "minimum": 0
                }
              ]
            },
            "minItems": 2,
            "maxItems": 2,
            "description": "The size of the step on the canvas"
          },
          "auto": {
            "$ref": "#/components/schemas/StepAutoConfigSchema"
          },
          "code": {
            "type": "string",
            "description": "The code to be executed in this step"
          }
        },
        "required": [
          "type",
          "key",
          "code"
        ],
        "description": "A step that executes a code block"
      },
      "ModelSystemMessageSchema": {
        "type": "object",
        "properties": {
          "role": {
            "type": "string",
            "enum": [
              "system"
            ]
          },
          "content": {
            "type": "string"
          },
          "disable_variables": {
            "type": "boolean"
          }
        },
        "required": [
          "role",
          "content"
        ],
        "description": "System message"
      },
      "ModelMessageTextSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "text"
            ]
          },
          "text": {
            "type": "string"
          },
          "disable_variables": {
            "type": "boolean"
          }
        },
        "required": [
          "type",
          "text"
        ]
      },
      "ModelToolCallSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier for the tool call"
          },
          "name": {
            "type": "string",
            "description": "The name of the tool to call"
          },
          "input": {
            "anyOf": [
              {
                "type": "object",
                "additionalProperties": {
                  "nullable": true
                }
              },
              {
                "type": "string"
              },
              {
                "nullable": true
              }
            ],
            "description": "The input of the tool call"
          },
          "disable_variables": {
            "type": "boolean"
          }
        },
        "required": [
          "id",
          "name"
        ]
      },
      "ModelAssistantMessageSchema": {
        "type": "object",
        "properties": {
          "role": {
            "type": "string",
            "enum": [
              "assistant"
            ]
          },
          "content": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/ModelMessageTextSchema"
                    }
                  ],
                  "discriminator": {
                    "propertyName": "type",
                    "mapping": {
                      "text": "#/components/schemas/ModelMessageTextSchema"
                    }
                  }
                }
              }
            ]
          },
          "tools": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ModelToolCallSchema"
            },
            "description": "The tools called by the model"
          },
          "disable_variables": {
            "type": "boolean"
          }
        },
        "required": [
          "role",
          "content"
        ],
        "description": "Assistant message"
      },
      "ModelMessageFileSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "file"
            ]
          },
          "url": {
            "type": "string"
          },
          "disable_variables": {
            "type": "boolean"
          }
        },
        "required": [
          "type",
          "url"
        ]
      },
      "ModelMessageImageSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "image"
            ]
          },
          "url": {
            "type": "string"
          },
          "disable_variables": {
            "type": "boolean"
          }
        },
        "required": [
          "type",
          "url"
        ]
      },
      "ModelUserMessageContentSchema": {
        "oneOf": [
          {
            "$ref": "#/components/schemas/ModelMessageTextSchema"
          },
          {
            "$ref": "#/components/schemas/ModelMessageFileSchema"
          },
          {
            "$ref": "#/components/schemas/ModelMessageImageSchema"
          }
        ],
        "discriminator": {
          "propertyName": "type",
          "mapping": {
            "text": "#/components/schemas/ModelMessageTextSchema",
            "file": "#/components/schemas/ModelMessageFileSchema",
            "image": "#/components/schemas/ModelMessageImageSchema"
          }
        },
        "description": "User message content"
      },
      "ModelUserMessageSchema": {
        "type": "object",
        "properties": {
          "role": {
            "type": "string",
            "enum": [
              "user"
            ]
          },
          "content": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/ModelUserMessageContentSchema"
                }
              }
            ]
          },
          "disable_variables": {
            "type": "boolean"
          }
        },
        "required": [
          "role",
          "content"
        ],
        "description": "User message"
      },
      "ModelMessageToolResultSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "tool_result"
            ]
          },
          "id": {
            "type": "string",
            "description": "Unique identifier for the tool call"
          },
          "name": {
            "type": "string",
            "description": "The name of the tool called"
          },
          "output": {
            "anyOf": [
              {
                "type": "object",
                "additionalProperties": {
                  "nullable": true
                }
              },
              {
                "type": "string"
              },
              {
                "nullable": true
              }
            ],
            "description": "The output of the tool call"
          },
          "disable_variables": {
            "type": "boolean"
          }
        },
        "required": [
          "type",
          "id",
          "name"
        ]
      },
      "ModelToolMessageSchema": {
        "type": "object",
        "properties": {
          "role": {
            "type": "string",
            "enum": [
              "tool"
            ]
          },
          "content": {
            "type": "array",
            "items": {
              "oneOf": [
                {
                  "$ref": "#/components/schemas/ModelMessageToolResultSchema"
                }
              ],
              "discriminator": {
                "propertyName": "type",
                "mapping": {
                  "tool_result": "#/components/schemas/ModelMessageToolResultSchema"
                }
              }
            }
          },
          "disable_variables": {
            "type": "boolean"
          }
        },
        "required": [
          "role",
          "content"
        ],
        "description": "Tool message"
      },
      "ModelMessageSchema": {
        "oneOf": [
          {
            "$ref": "#/components/schemas/ModelSystemMessageSchema"
          },
          {
            "$ref": "#/components/schemas/ModelAssistantMessageSchema"
          },
          {
            "$ref": "#/components/schemas/ModelUserMessageSchema"
          },
          {
            "$ref": "#/components/schemas/ModelToolMessageSchema"
          }
        ],
        "discriminator": {
          "propertyName": "role",
          "mapping": {
            "system": "#/components/schemas/ModelSystemMessageSchema",
            "assistant": "#/components/schemas/ModelAssistantMessageSchema",
            "user": "#/components/schemas/ModelUserMessageSchema",
            "tool": "#/components/schemas/ModelToolMessageSchema"
          }
        }
      },
      "ModelMessagesListSchema": {
        "type": "array",
        "items": {
          "$ref": "#/components/schemas/ModelMessageSchema"
        },
        "description": "List of model messages"
      },
      "ModelResponseFormatSchema": {
        "type": "string",
        "enum": [
          "text",
          "json"
        ],
        "description": "Response format"
      },
      "ModelToolSchema": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Name of the tool to call. If the name matches a step key in the workflow, it will be treated as a step-based tool. Otherwise, it will be treated as an external tool."
          },
          "description": {
            "type": "string",
            "description": "Description of the tool"
          },
          "input": {
            "allOf": [
              {
                "$ref": "#/components/schemas/InputDefinitionSchema"
              },
              {
                "description": "Input definition for the tool"
              }
            ]
          },
          "config": {
            "type": "object",
            "additionalProperties": {
              "nullable": true
            },
            "description": "Configuration/metadata for external tools (only used for tools that are not workflow steps)"
          }
        },
        "required": [
          "name"
        ]
      },
      "ModelToolsModeSchema": {
        "type": "string",
        "enum": [
          "auto",
          "required",
          "none"
        ],
        "description": "Controls which (if any) tool is called by the model. `none` means the model will not call any tool and instead generates a message. `auto` means the model can pick between generating a message or calling one or more tools. `required` means the model must call one or more tools."
      },
      "ModelFeaturesSchema": {
        "type": "object",
        "properties": {
          "web_search": {
            "type": "object",
            "properties": {}
          }
        },
        "description": "Model features"
      },
      "ModelProviderSchema": {
        "type": "object",
        "properties": {
          "provider": {
            "type": "string",
            "description": "Provider name"
          },
          "model": {
            "type": "string",
            "description": "Model name"
          },
          "messages": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ModelMessagesListSchema"
              },
              {
                "type": "string"
              }
            ]
          },
          "temperature": {
            "type": "number",
            "minimum": 0,
            "maximum": 2,
            "description": "Model temperature"
          },
          "response_format": {
            "$ref": "#/components/schemas/ModelResponseFormatSchema"
          },
          "response_format_schema": {
            "type": "object",
            "additionalProperties": {
              "nullable": true
            },
            "description": "JSON schema for structured outputs (used when response_format is \"json\"). For Anthropic, this defines the output_format schema. Must be a valid JSON Schema object."
          },
          "max_tokens": {
            "type": "number",
            "minimum": 0,
            "description": "Maximum tokens to generate"
          },
          "tools": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "$ref": "#/components/schemas/ModelToolSchema"
                    }
                  ]
                }
              },
              {
                "type": "string"
              }
            ],
            "description": "List of tools to call. Can be an array or a string (JSON array or template expression like {{step1.tools}})"
          },
          "tools_parallel": {
            "type": "boolean",
            "description": "Whether to call tools in parallel"
          },
          "tools_mode": {
            "$ref": "#/components/schemas/ModelToolsModeSchema"
          },
          "max_iterations": {
            "type": "number",
            "minimum": 1,
            "maximum": 512,
            "description": "Maximum number of iterations for the model when using tools or reasoning"
          },
          "features": {
            "$ref": "#/components/schemas/ModelFeaturesSchema"
          }
        },
        "required": [
          "provider",
          "model",
          "messages"
        ],
        "description": "The model provider configuration"
      },
      "StepModelSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "model"
            ],
            "description": "The type of the step"
          },
          "key": {
            "$ref": "#/components/schemas/StepKeySchema"
          },
          "display": {
            "$ref": "#/components/schemas/StepDisplaySchema"
          },
          "conditional": {
            "type": "string",
            "description": "A condition to determine if the step should run"
          },
          "loop": {
            "type": "string",
            "description": "A loop condition for the step to repeat running until the condition is met"
          },
          "throw_on_error": {
            "type": "boolean",
            "description": "Whether to throw an error if the step fails"
          },
          "input_connected": {
            "type": "boolean",
            "description": "Whether the step is connected to the input"
          },
          "destinations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/StepKeySchema"
            },
            "description": "The step keys that this step connects to"
          },
          "position": {
            "type": "array",
            "items": {
              "type": "number"
            },
            "minItems": 2,
            "maxItems": 2,
            "description": "The position of the step on the canvas"
          },
          "size": {
            "type": "array",
            "items": {
              "anyOf": [
                {
                  "type": "number",
                  "minimum": 100
                },
                {
                  "type": "number",
                  "minimum": 0
                }
              ]
            },
            "minItems": 2,
            "maxItems": 2,
            "description": "The size of the step on the canvas"
          },
          "auto": {
            "$ref": "#/components/schemas/StepAutoConfigSchema"
          },
          "provider": {
            "$ref": "#/components/schemas/ModelProviderSchema"
          }
        },
        "required": [
          "type",
          "key",
          "provider"
        ],
        "description": "A step that configures and runs a machine learning model"
      },
      "StepHttpRequestSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "http_request"
            ],
            "description": "The type of the step"
          },
          "key": {
            "$ref": "#/components/schemas/StepKeySchema"
          },
          "display": {
            "$ref": "#/components/schemas/StepDisplaySchema"
          },
          "conditional": {
            "type": "string",
            "description": "A condition to determine if the step should run"
          },
          "loop": {
            "type": "string",
            "description": "A loop condition for the step to repeat running until the condition is met"
          },
          "throw_on_error": {
            "type": "boolean",
            "description": "Whether to throw an error if the step fails"
          },
          "input_connected": {
            "type": "boolean",
            "description": "Whether the step is connected to the input"
          },
          "destinations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/StepKeySchema"
            },
            "description": "The step keys that this step connects to"
          },
          "position": {
            "type": "array",
            "items": {
              "type": "number"
            },
            "minItems": 2,
            "maxItems": 2,
            "description": "The position of the step on the canvas"
          },
          "size": {
            "type": "array",
            "items": {
              "anyOf": [
                {
                  "type": "number",
                  "minimum": 100
                },
                {
                  "type": "number",
                  "minimum": 0
                }
              ]
            },
            "minItems": 2,
            "maxItems": 2,
            "description": "The size of the step on the canvas"
          },
          "auto": {
            "$ref": "#/components/schemas/StepAutoConfigSchema"
          },
          "url": {
            "type": "string",
            "description": "The URL for the HTTP request, e.g. https://example.com"
          },
          "method": {
            "type": "string",
            "enum": [
              "GET",
              "POST",
              "PUT",
              "PATCH",
              "DELETE"
            ],
            "description": "HTTP method"
          },
          "headers": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "additionalProperties": {
                  "type": "string"
                }
              }
            ],
            "description": "Headers to include in the HTTP request as JSON key-value pairs"
          },
          "body": {
            "type": "string",
            "description": "The body string of the HTTP request (E.g. JSON string)"
          }
        },
        "required": [
          "type",
          "key",
          "url"
        ],
        "description": "A step that makes an HTTP request"
      },
      "StepBrowserSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "browser"
            ],
            "description": "The type of the step"
          },
          "key": {
            "$ref": "#/components/schemas/StepKeySchema"
          },
          "display": {
            "$ref": "#/components/schemas/StepDisplaySchema"
          },
          "conditional": {
            "type": "string",
            "description": "A condition to determine if the step should run"
          },
          "loop": {
            "type": "string",
            "description": "A loop condition for the step to repeat running until the condition is met"
          },
          "throw_on_error": {
            "type": "boolean",
            "description": "Whether to throw an error if the step fails"
          },
          "input_connected": {
            "type": "boolean",
            "description": "Whether the step is connected to the input"
          },
          "destinations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/StepKeySchema"
            },
            "description": "The step keys that this step connects to"
          },
          "position": {
            "type": "array",
            "items": {
              "type": "number"
            },
            "minItems": 2,
            "maxItems": 2,
            "description": "The position of the step on the canvas"
          },
          "size": {
            "type": "array",
            "items": {
              "anyOf": [
                {
                  "type": "number",
                  "minimum": 100
                },
                {
                  "type": "number",
                  "minimum": 0
                }
              ]
            },
            "minItems": 2,
            "maxItems": 2,
            "description": "The size of the step on the canvas"
          },
          "auto": {
            "$ref": "#/components/schemas/StepAutoConfigSchema"
          },
          "url": {
            "type": "string",
            "description": "The URL to be scraped, e.g. https://example.com"
          },
          "strip_html": {
            "type": "boolean",
            "description": "Whether to strip HTML from the page content"
          },
          "wait_for_selector": {
            "type": "string",
            "description": "A CSS selector to wait for before proceeding"
          }
        },
        "required": [
          "type",
          "key",
          "url"
        ],
        "description": "A step that interacts with a browser"
      },
      "WorkflowInputValuesSchema": {
        "anyOf": [
          {
            "type": "object",
            "additionalProperties": {
              "nullable": true
            }
          },
          {
            "type": "string"
          },
          {
            "nullable": true
          }
        ],
        "description": "Input values for the workflow"
      },
      "WorkflowVersionIdSchema": {
        "anyOf": [
          {
            "type": "string",
            "enum": [
              "draft",
              "latest"
            ]
          },
          {
            "type": "string"
          },
          {
            "type": "number"
          }
        ],
        "description": "ID of the workflow version. Also you can use \"latest\", \"draft\" or \"version number\" to use a specific version",
        "example": "latest"
      },
      "StepWorkflowSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "workflow"
            ],
            "description": "The type of the step"
          },
          "key": {
            "$ref": "#/components/schemas/StepKeySchema"
          },
          "display": {
            "$ref": "#/components/schemas/StepDisplaySchema"
          },
          "conditional": {
            "type": "string",
            "description": "A condition to determine if the step should run"
          },
          "loop": {
            "type": "string",
            "description": "A loop condition for the step to repeat running until the condition is met"
          },
          "throw_on_error": {
            "type": "boolean",
            "description": "Whether to throw an error if the step fails"
          },
          "input_connected": {
            "type": "boolean",
            "description": "Whether the step is connected to the input"
          },
          "destinations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/StepKeySchema"
            },
            "description": "The step keys that this step connects to"
          },
          "position": {
            "type": "array",
            "items": {
              "type": "number"
            },
            "minItems": 2,
            "maxItems": 2,
            "description": "The position of the step on the canvas"
          },
          "size": {
            "type": "array",
            "items": {
              "anyOf": [
                {
                  "type": "number",
                  "minimum": 100
                },
                {
                  "type": "number",
                  "minimum": 0
                }
              ]
            },
            "minItems": 2,
            "maxItems": 2,
            "description": "The size of the step on the canvas"
          },
          "auto": {
            "$ref": "#/components/schemas/StepAutoConfigSchema"
          },
          "input": {
            "$ref": "#/components/schemas/WorkflowInputValuesSchema"
          },
          "step_key": {
            "type": "string",
            "nullable": true,
            "description": "The key of the input step to run"
          },
          "workflow_id": {
            "type": "string",
            "description": "The ID of the associated workflow"
          },
          "workflow_version_id": {
            "$ref": "#/components/schemas/WorkflowVersionIdSchema"
          }
        },
        "required": [
          "type",
          "key",
          "input"
        ]
      },
      "DynamicFieldsInputDefinition": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string"
          },
          "definition": {
            "$ref": "#/components/schemas/InputDefinitionSchema"
          }
        },
        "required": [
          "path",
          "definition"
        ],
        "description": "The dynamic fields input definitions"
      },
      "SchedulerOnScheduleActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "schedule": {
            "type": "string",
            "description": "The interval (seconds) or cron expression",
            "nullable": true,
            "enum": [
              "60",
              "300",
              "900",
              "1800",
              "3600",
              "86400",
              "604800",
              "2592000",
              "0 0 * * 1",
              "0 0 * * 2",
              "0 0 * * 3",
              "0 0 * * 4",
              "0 0 * * 5",
              "0 0 * * 6",
              "0 0 * * 0",
              "0 0 * * 1-5",
              "0 0 * * 6,0"
            ]
          },
          "timezone": {
            "type": "string",
            "description": "The timezone to use for the schedule",
            "nullable": true
          }
        },
        "description": "The input for ON_SCHEDULE"
      },
      "SchedulerOnScheduleActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "SCHEDULER"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "ON_SCHEDULE"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SchedulerOnScheduleActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The ON_SCHEDULE service"
      },
      "ToolsWebSearchActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "engine": {
            "type": "string",
            "description": "The search engine to be used for the search",
            "nullable": true,
            "enum": [
              "google",
              "bing",
              "youtube",
              "apple_app_store",
              "google_play",
              "google_images",
              "google_videos",
              "google_maps",
              "google_trends",
              "google_news",
              "google_finance",
              "google_shopping",
              "google_hotels",
              "google_events",
              "google_scholar",
              "google_jobs",
              "ebay",
              "baidu",
              "yandex",
              "naver"
            ]
          },
          "query": {
            "type": "string",
            "description": "The search query to be used for the search",
            "nullable": true
          }
        },
        "description": "The input for WEB_SEARCH"
      },
      "ToolsWebSearchActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "TOOLS"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "WEB_SEARCH"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ToolsWebSearchActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The WEB_SEARCH service"
      },
      "FilesDownloadFileActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "file": {
            "type": "string",
            "description": "File URL or base64 encoded data",
            "nullable": true
          },
          "storage": {
            "type": "string",
            "description": "Persistent storage will keep the file even after the run finishes. Temporary storage will delete the file after 24 hours",
            "nullable": true,
            "enum": [
              "PERSISTENT",
              "TEMPORARY"
            ]
          },
          "visibility": {
            "type": "string",
            "description": "Whether the file is private or public, private files URLs are signed with a token and can be accessed temporarily",
            "nullable": true,
            "enum": [
              "PRIVATE",
              "PUBLIC"
            ]
          }
        },
        "description": "The input for DOWNLOAD_FILE"
      },
      "FilesDownloadFileActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "FILES"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "DOWNLOAD_FILE"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/FilesDownloadFileActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The DOWNLOAD_FILE service"
      },
      "FilesUploadFileActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "file": {
            "type": "string",
            "description": "Use an URL to download a file or plain text to create a new file with its content",
            "nullable": true
          },
          "name": {
            "type": "string",
            "description": "A custom name for the file",
            "nullable": true
          },
          "mime_type": {
            "type": "string",
            "description": "MIME type of the file, by default it will be auto-detected",
            "nullable": true,
            "enum": [
              "auto",
              "text/plain",
              "text/csv",
              "text/html",
              "application/json",
              "application/xml"
            ]
          },
          "storage": {
            "type": "string",
            "description": "Persistent storage will keep the file even after the run finishes. Temporary storage will delete the file after 24 hours",
            "nullable": true,
            "enum": [
              "PERSISTENT",
              "TEMPORARY"
            ]
          },
          "visibility": {
            "type": "string",
            "description": "Whether the file is private or public, private files URLs are signed with a token and can be accessed temporarily",
            "nullable": true,
            "enum": [
              "PRIVATE",
              "PUBLIC"
            ]
          }
        },
        "description": "The input for UPLOAD_FILE"
      },
      "FilesUploadFileActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "FILES"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "UPLOAD_FILE"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/FilesUploadFileActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The UPLOAD_FILE service"
      },
      "FilesDeleteFileActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "file_id": {
            "type": "string",
            "description": "ID of the file to delete",
            "nullable": true
          }
        },
        "description": "The input for DELETE_FILE"
      },
      "FilesDeleteFileActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "FILES"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "DELETE_FILE"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/FilesDeleteFileActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The DELETE_FILE service"
      },
      "FilesExtractPagesActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "file": {
            "type": "string",
            "description": "Document to extract pages from",
            "nullable": true
          },
          "name": {
            "type": "string",
            "description": "A custom name for the file",
            "nullable": true
          },
          "pages": {
            "type": "string",
            "description": "Page numbers to extract",
            "nullable": true
          },
          "storage": {
            "type": "string",
            "description": "Persistent storage will keep the file even after the run finishes. Temporary storage will delete the file after 24 hours",
            "nullable": true,
            "enum": [
              "PERSISTENT",
              "TEMPORARY"
            ]
          },
          "visibility": {
            "type": "string",
            "description": "Whether the file is private or public, private files URLs are signed with a token and can be accessed temporarily",
            "nullable": true,
            "enum": [
              "PRIVATE",
              "PUBLIC"
            ]
          }
        },
        "description": "The input for EXTRACT_PAGES"
      },
      "FilesExtractPagesActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "FILES"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "EXTRACT_PAGES"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/FilesExtractPagesActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The EXTRACT_PAGES service"
      },
      "FilesExtractContentsActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "file": {
            "type": "string",
            "description": "Document to extract contents from",
            "nullable": true
          },
          "storage": {
            "type": "string",
            "description": "Persistent storage will keep the file even after the run finishes. Temporary storage will delete the file after 24 hours",
            "nullable": true,
            "enum": [
              "PERSISTENT",
              "TEMPORARY"
            ]
          },
          "visibility": {
            "type": "string",
            "description": "Whether the file is private or public, private files URLs are signed with a token and can be accessed temporarily",
            "nullable": true,
            "enum": [
              "PRIVATE",
              "PUBLIC"
            ]
          }
        },
        "description": "The input for EXTRACT_CONTENTS"
      },
      "FilesExtractContentsActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "FILES"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "EXTRACT_CONTENTS"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/FilesExtractContentsActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The EXTRACT_CONTENTS service"
      },
      "FilesExtractImagesActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "file": {
            "type": "string",
            "description": "Document to extract images from",
            "nullable": true
          },
          "storage": {
            "type": "string",
            "description": "Persistent storage will keep the file even after the run finishes. Temporary storage will delete the file after 24 hours",
            "nullable": true,
            "enum": [
              "PERSISTENT",
              "TEMPORARY"
            ]
          },
          "visibility": {
            "type": "string",
            "description": "Whether the file is private or public, private files URLs are signed with a token and can be accessed temporarily",
            "nullable": true,
            "enum": [
              "PRIVATE",
              "PUBLIC"
            ]
          }
        },
        "description": "The input for EXTRACT_IMAGES"
      },
      "FilesExtractImagesActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "FILES"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "EXTRACT_IMAGES"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/FilesExtractImagesActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The EXTRACT_IMAGES service"
      },
      "FilesMarkdownToPdfActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "file": {
            "type": "string",
            "description": "Markdown to convert to PDF",
            "nullable": true
          },
          "name": {
            "type": "string",
            "description": "A custom name for the file",
            "nullable": true
          },
          "storage": {
            "type": "string",
            "description": "Persistent storage will keep the file even after the run finishes. Temporary storage will delete the file after 24 hours",
            "nullable": true,
            "enum": [
              "PERSISTENT",
              "TEMPORARY"
            ]
          },
          "visibility": {
            "type": "string",
            "description": "Whether the file is private or public, private files URLs are signed with a token and can be accessed temporarily",
            "nullable": true,
            "enum": [
              "PRIVATE",
              "PUBLIC"
            ]
          }
        },
        "description": "The input for MARKDOWN_TO_PDF"
      },
      "FilesMarkdownToPdfActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "FILES"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "MARKDOWN_TO_PDF"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/FilesMarkdownToPdfActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The MARKDOWN_TO_PDF service"
      },
      "FilesHtmlToPdfActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "file": {
            "type": "string",
            "description": "Raw HTML or Website URL to convert to PDF",
            "nullable": true
          },
          "name": {
            "type": "string",
            "description": "A custom name for the file",
            "nullable": true
          },
          "storage": {
            "type": "string",
            "description": "Persistent storage will keep the file even after the run finishes. Temporary storage will delete the file after 24 hours",
            "nullable": true,
            "enum": [
              "PERSISTENT",
              "TEMPORARY"
            ]
          },
          "visibility": {
            "type": "string",
            "description": "Whether the file is private or public, private files URLs are signed with a token and can be accessed temporarily",
            "nullable": true,
            "enum": [
              "PRIVATE",
              "PUBLIC"
            ]
          }
        },
        "description": "The input for HTML_TO_PDF"
      },
      "FilesHtmlToPdfActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "FILES"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "HTML_TO_PDF"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/FilesHtmlToPdfActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The HTML_TO_PDF service"
      },
      "CollectionsRecordsSearchActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "collection_id": {
            "type": "string",
            "description": "The collection to search in",
            "nullable": true
          },
          "search": {
            "type": "string",
            "description": "Search term to filter records by name",
            "nullable": true
          },
          "status": {
            "type": "string",
            "description": "Filter records by status",
            "nullable": true,
            "enum": [
              "ALL",
              "DRAFT",
              "QUEUED",
              "RUNNING",
              "COMPLETED",
              "FAILED",
              "CANCELLED"
            ]
          },
          "tag_ids": {
            "type": "array",
            "description": "Filter records by tags",
            "nullable": true,
            "items": {
              "type": "string"
            }
          }
        },
        "description": "The input for RECORDS_SEARCH"
      },
      "CollectionsRecordsSearchActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "COLLECTIONS"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "RECORDS_SEARCH"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CollectionsRecordsSearchActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The RECORDS_SEARCH service"
      },
      "CollectionsRecordsGetActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "collection_id": {
            "type": "string",
            "description": "The collection to get the record from",
            "nullable": true
          },
          "record_id": {
            "type": "string",
            "description": "The record to retrieve",
            "nullable": true
          }
        },
        "description": "The input for RECORDS_GET"
      },
      "CollectionsRecordsGetActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "COLLECTIONS"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "RECORDS_GET"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CollectionsRecordsGetActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The RECORDS_GET service"
      },
      "CollectionsRecordsCreateActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "collection_id": {
            "type": "string",
            "description": "The ID of the collection to create the record in",
            "nullable": true
          },
          "name": {
            "type": "string",
            "description": "Name of the record",
            "nullable": true
          },
          "run": {
            "type": "string",
            "description": "Whether to run rules after creation",
            "nullable": true,
            "enum": [
              "all",
              "changed"
            ]
          },
          "tags_ids": {
            "type": "array",
            "description": "Tags to apply to the record",
            "nullable": true,
            "items": {
              "type": "string"
            }
          }
        },
        "description": "The input for RECORDS_CREATE"
      },
      "CollectionsRecordsCreateActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "COLLECTIONS"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "RECORDS_CREATE"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CollectionsRecordsCreateActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The RECORDS_CREATE service"
      },
      "CollectionsRecordsUpdateActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "collection_id": {
            "type": "string",
            "description": "The collection to update the record in",
            "nullable": true
          },
          "record_id": {
            "type": "string",
            "description": "The record to update",
            "nullable": true
          },
          "name": {
            "type": "string",
            "description": "Name of the record",
            "nullable": true
          },
          "tag_ids": {
            "type": "array",
            "description": "Tags to apply to the record",
            "nullable": true,
            "items": {
              "type": "string"
            }
          }
        },
        "description": "The input for RECORDS_UPDATE"
      },
      "CollectionsRecordsUpdateActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "COLLECTIONS"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "RECORDS_UPDATE"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CollectionsRecordsUpdateActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The RECORDS_UPDATE service"
      },
      "CollectionsRecordsDeleteActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "collection_id": {
            "type": "string",
            "description": "The collection to update the record in",
            "nullable": true
          },
          "record_id": {
            "type": "string",
            "description": "The record to delete",
            "nullable": true
          }
        },
        "description": "The input for RECORDS_DELETE"
      },
      "CollectionsRecordsDeleteActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "COLLECTIONS"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "RECORDS_DELETE"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CollectionsRecordsDeleteActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The RECORDS_DELETE service"
      },
      "CollectionsRecordsAnalyzeActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "collection_id": {
            "type": "string",
            "description": "The collection to update the record in",
            "nullable": true
          },
          "record_id": {
            "type": "string",
            "description": "The record to analyze",
            "nullable": true
          },
          "rules_scope": {
            "type": "string",
            "description": "Whether to analyze all rules or only those that have been changed",
            "nullable": true,
            "enum": [
              "all",
              "changed"
            ]
          },
          "execution_type": {
            "type": "string",
            "description": "Whether to wait for results or run in the background",
            "nullable": true,
            "enum": [
              "sync",
              "async"
            ]
          }
        },
        "description": "The input for RECORDS_ANALYZE"
      },
      "CollectionsRecordsAnalyzeActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "COLLECTIONS"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "RECORDS_ANALYZE"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CollectionsRecordsAnalyzeActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The RECORDS_ANALYZE service"
      },
      "CollectionsRecordsCancelActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "collection_id": {
            "type": "string",
            "description": "The collection to update the record in",
            "nullable": true
          },
          "record_id": {
            "type": "string",
            "description": "The record with running analysis to cancel",
            "nullable": true
          }
        },
        "description": "The input for RECORDS_CANCEL"
      },
      "CollectionsRecordsCancelActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "COLLECTIONS"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "RECORDS_CANCEL"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CollectionsRecordsCancelActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The RECORDS_CANCEL service"
      },
      "CollectionsRulesUpdateActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "collection_id": {
            "type": "string",
            "description": "The collection to update the record in",
            "nullable": true
          },
          "rule_key": {
            "type": "string",
            "description": "The rule to update",
            "nullable": true
          },
          "record_id": {
            "type": "string",
            "description": "The record to update rules for",
            "nullable": true
          },
          "rule_input": {
            "nullable": true,
            "description": "Input values for the selected rule"
          }
        },
        "description": "The input for RULES_UPDATE"
      },
      "CollectionsRulesUpdateActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "COLLECTIONS"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "RULES_UPDATE"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CollectionsRulesUpdateActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The RULES_UPDATE service"
      },
      "CollectionsRulesUpdateAllActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "collection_id": {
            "type": "string",
            "description": "The collection to update the record in",
            "nullable": true
          },
          "record_id": {
            "type": "string",
            "description": "The record to update rules for",
            "nullable": true
          },
          "rules": {
            "nullable": true,
            "description": "Input values for all rules"
          }
        },
        "description": "The input for RULES_UPDATE_ALL"
      },
      "CollectionsRulesUpdateAllActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "COLLECTIONS"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "RULES_UPDATE_ALL"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CollectionsRulesUpdateAllActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The RULES_UPDATE_ALL service"
      },
      "StaticSynapseRunActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "parameters": {
            "nullable": true,
            "description": "Parameters for the static synapse operation"
          }
        },
        "description": "The input for RUN"
      },
      "StaticSynapseRunActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "STATIC_SYNAPSE"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "RUN"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/StaticSynapseRunActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection integration"
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The RUN service"
      },
      "GoogleSheetsOnSpreadsheetsNewRowActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "spreadsheet_id": {
            "type": "string",
            "description": "Spreadsheet to watch for new rows",
            "nullable": true
          },
          "worksheet": {
            "type": "string",
            "description": "Worksheet to watch for new rows. Defaults to the first sheet",
            "nullable": true
          }
        },
        "description": "The input for ON_SPREADSHEETS_NEW_ROW"
      },
      "GoogleSheetsOnSpreadsheetsNewRowActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "GOOGLE_SHEETS"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "ON_SPREADSHEETS_NEW_ROW"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/GoogleSheetsOnSpreadsheetsNewRowActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection integration"
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The ON_SPREADSHEETS_NEW_ROW service"
      },
      "GoogleSheetsSpreadsheetsListActionServiceInputSchema": {
        "type": "object",
        "properties": {},
        "description": "The input for SPREADSHEETS_LIST"
      },
      "GoogleSheetsSpreadsheetsListActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "GOOGLE_SHEETS"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "SPREADSHEETS_LIST"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/GoogleSheetsSpreadsheetsListActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection integration"
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The SPREADSHEETS_LIST service"
      },
      "GoogleSheetsSpreadsheetsAppendRowActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "spreadsheet_id": {
            "type": "string",
            "description": "Spreadsheet",
            "nullable": true
          },
          "worksheet": {
            "type": "string",
            "description": "Worksheet to append the row to. Defaults to the first sheet",
            "nullable": true
          },
          "values": {
            "nullable": true,
            "description": "Values to append to the row to each column"
          }
        },
        "description": "The input for SPREADSHEETS_APPEND_ROW"
      },
      "GoogleSheetsSpreadsheetsAppendRowActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "GOOGLE_SHEETS"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "SPREADSHEETS_APPEND_ROW"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/GoogleSheetsSpreadsheetsAppendRowActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection integration"
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The SPREADSHEETS_APPEND_ROW service"
      },
      "GoogleSheetsWorksheetsListActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "spreadsheet_id": {
            "type": "string",
            "description": "Spreadsheet",
            "nullable": true
          }
        },
        "description": "The input for WORKSHEETS_LIST"
      },
      "GoogleSheetsWorksheetsListActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "GOOGLE_SHEETS"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "WORKSHEETS_LIST"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/GoogleSheetsWorksheetsListActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection integration"
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The WORKSHEETS_LIST service"
      },
      "GoogleDriveOnNewFileActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "folder_id": {
            "type": "string",
            "description": "The folder to monitor for new files",
            "nullable": true
          },
          "mime_type": {
            "type": "string",
            "description": "Filter results by file type (e.g., image/*, application/pdf)",
            "nullable": true,
            "enum": [
              "*/*",
              "application/vnd.google-apps.document",
              "application/vnd.google-apps.spreadsheet",
              "application/vnd.google-apps.presentation",
              "application/pdf",
              "image/*",
              "video/*",
              "audio/*",
              "application/zip",
              "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
              "application/vnd.openxmlformats-officedocument.presentationml.presentation",
              "text/plain"
            ]
          }
        },
        "description": "The input for ON_NEW_FILE"
      },
      "GoogleDriveOnNewFileActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "GOOGLE_DRIVE"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "ON_NEW_FILE"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/GoogleDriveOnNewFileActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection integration"
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The ON_NEW_FILE service"
      },
      "GoogleDriveFilesSearchActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "folder_id": {
            "type": "string",
            "description": "The folder where to search for files",
            "nullable": true
          },
          "search_text": {
            "type": "string",
            "description": "Search for files in Google Drive",
            "nullable": true
          },
          "mime_type": {
            "type": "string",
            "description": "Filter results by file type (e.g., image/*, application/pdf)",
            "nullable": true,
            "enum": [
              "*/*",
              "application/vnd.google-apps.document",
              "application/vnd.google-apps.spreadsheet",
              "application/vnd.google-apps.presentation",
              "application/pdf",
              "image/*",
              "video/*",
              "audio/*",
              "application/zip",
              "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
              "application/vnd.openxmlformats-officedocument.presentationml.presentation",
              "text/plain"
            ]
          },
          "created_after": {
            "nullable": true,
            "description": "Show folders created after this date"
          },
          "created_before": {
            "nullable": true,
            "description": "Show folders created before this date"
          },
          "modified_after": {
            "nullable": true,
            "description": "Show folders modified after this date"
          },
          "modified_before": {
            "nullable": true,
            "description": "Show folders modified before this date"
          },
          "include_trashed": {
            "type": "boolean",
            "description": "include files that have been moved to trash",
            "nullable": true
          }
        },
        "description": "The input for FILES_SEARCH"
      },
      "GoogleDriveFilesSearchActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "GOOGLE_DRIVE"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "FILES_SEARCH"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/GoogleDriveFilesSearchActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection integration"
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The FILES_SEARCH service"
      },
      "GoogleDriveFilesGetActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "file_id": {
            "type": "string",
            "description": "The Google Drive File ID of the file to retrieve",
            "nullable": true
          }
        },
        "description": "The input for FILES_GET"
      },
      "GoogleDriveFilesGetActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "GOOGLE_DRIVE"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "FILES_GET"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/GoogleDriveFilesGetActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection integration"
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The FILES_GET service"
      },
      "GoogleDriveFilesUploadActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "folder_id": {
            "type": "string",
            "description": "The folder where to upload the file.",
            "nullable": true
          },
          "file": {
            "nullable": true,
            "description": "File to upload (select a file or provide a URL)"
          },
          "name": {
            "type": "string",
            "description": "Name for the uploaded file",
            "nullable": true
          },
          "description": {
            "type": "string",
            "description": "Description for the file",
            "nullable": true
          },
          "convert_to_google_format": {
            "type": "boolean",
            "description": "Convert the file to a Google format (e.g. Google Docs, Sheets)",
            "nullable": true
          }
        },
        "description": "The input for FILES_UPLOAD"
      },
      "GoogleDriveFilesUploadActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "GOOGLE_DRIVE"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "FILES_UPLOAD"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/GoogleDriveFilesUploadActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection integration"
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The FILES_UPLOAD service"
      },
      "GoogleDriveFilesDownloadActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "file_id": {
            "type": "string",
            "description": "The Google Drive File ID of the file to retrieve",
            "nullable": true
          },
          "storage": {
            "type": "string",
            "description": "Persistent storage will keep the file even after the run finishes. Temporary storage will delete the file after 24 hours",
            "nullable": true,
            "enum": [
              "PERSISTENT",
              "TEMPORARY"
            ]
          },
          "visibility": {
            "type": "string",
            "description": "Whether the file is private or public, private files URLs are signed with a token and can be accessed temporarily",
            "nullable": true,
            "enum": [
              "PRIVATE",
              "PUBLIC"
            ]
          },
          "export_mime_type": {
            "type": "string",
            "description": "Format for exporting Google Native files (e.g. Google Docs, Sheets)",
            "nullable": true,
            "enum": [
              "auto",
              "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
              "application/vnd.openxmlformats-officedocument.presentationml.presentation",
              "application/pdf",
              "text/markdown",
              "image/jpeg",
              "image/png",
              "text/plain",
              "application/zip",
              "application/epub+zip",
              "application/vnd.oasis.opendocument.text",
              "application/vnd.oasis.opendocument.presentation",
              "application/vnd.oasis.opendocument.spreadsheet",
              "application/rtf",
              "image/svg+xml",
              "application/json",
              "video/mp4"
            ]
          }
        },
        "description": "The input for FILES_DOWNLOAD"
      },
      "GoogleDriveFilesDownloadActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "GOOGLE_DRIVE"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "FILES_DOWNLOAD"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/GoogleDriveFilesDownloadActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection integration"
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The FILES_DOWNLOAD service"
      },
      "GoogleDriveFilesMoveActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "file_id": {
            "type": "string",
            "description": "The Google Drive File ID of the file to move",
            "nullable": true
          },
          "destination_folder_id": {
            "type": "string",
            "description": "The folder where to move the file",
            "nullable": true
          }
        },
        "description": "The input for FILES_MOVE"
      },
      "GoogleDriveFilesMoveActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "GOOGLE_DRIVE"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "FILES_MOVE"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/GoogleDriveFilesMoveActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection integration"
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The FILES_MOVE service"
      },
      "GoogleDriveFilesCopyActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "file_id": {
            "type": "string",
            "description": "The Google Drive File ID of the file to copy",
            "nullable": true
          },
          "name": {
            "type": "string",
            "description": "Name for the copied file",
            "nullable": true
          },
          "folder_id": {
            "type": "string",
            "description": "The folder where to place the copied file. Leave empty for same folder.",
            "nullable": true
          },
          "description": {
            "type": "string",
            "description": "Description for the copied file",
            "nullable": true
          }
        },
        "description": "The input for FILES_COPY"
      },
      "GoogleDriveFilesCopyActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "GOOGLE_DRIVE"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "FILES_COPY"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/GoogleDriveFilesCopyActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection integration"
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The FILES_COPY service"
      },
      "GoogleDriveFilesUpdateActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "file_id": {
            "type": "string",
            "description": "The Google Drive File ID of the file to update",
            "nullable": true
          },
          "name": {
            "type": "string",
            "description": "New name for the file",
            "nullable": true
          },
          "description": {
            "type": "string",
            "description": "New description for the file",
            "nullable": true
          },
          "starred": {
            "type": "boolean",
            "description": "Mark the file as starred",
            "nullable": true
          }
        },
        "description": "The input for FILES_UPDATE"
      },
      "GoogleDriveFilesUpdateActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "GOOGLE_DRIVE"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "FILES_UPDATE"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/GoogleDriveFilesUpdateActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection integration"
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The FILES_UPDATE service"
      },
      "GoogleDriveFilesTrashActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "file_id": {
            "type": "string",
            "description": "The Google Drive File ID of the file to move to trash",
            "nullable": true
          }
        },
        "description": "The input for FILES_TRASH"
      },
      "GoogleDriveFilesTrashActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "GOOGLE_DRIVE"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "FILES_TRASH"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/GoogleDriveFilesTrashActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection integration"
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The FILES_TRASH service"
      },
      "GoogleDriveFoldersSearchActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "search_text": {
            "type": "string",
            "description": "Search for folders in Google Drive",
            "nullable": true
          },
          "created_after": {
            "nullable": true,
            "description": "Show folders created after this date"
          },
          "created_before": {
            "nullable": true,
            "description": "Show folders created before this date"
          },
          "modified_after": {
            "nullable": true,
            "description": "Show folders modified after this date"
          },
          "modified_before": {
            "nullable": true,
            "description": "Show folders modified before this date"
          },
          "include_trashed": {
            "type": "boolean",
            "description": "include folders that have been moved to trash",
            "nullable": true
          }
        },
        "description": "The input for FOLDERS_SEARCH"
      },
      "GoogleDriveFoldersSearchActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "GOOGLE_DRIVE"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "FOLDERS_SEARCH"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/GoogleDriveFoldersSearchActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection integration"
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The FOLDERS_SEARCH service"
      },
      "GoogleDriveFoldersCreateActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Name for the new folder",
            "nullable": true
          },
          "folder_id": {
            "type": "string",
            "description": "The folder where to create the new folder.",
            "nullable": true
          },
          "description": {
            "type": "string",
            "description": "Description for the folder",
            "nullable": true
          }
        },
        "description": "The input for FOLDERS_CREATE"
      },
      "GoogleDriveFoldersCreateActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "GOOGLE_DRIVE"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "FOLDERS_CREATE"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/GoogleDriveFoldersCreateActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection integration"
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The FOLDERS_CREATE service"
      },
      "GoogleDriveFoldersTrashActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "folder_id": {
            "type": "string",
            "description": "The Google Drive ID of the folder to move to trash",
            "nullable": true
          }
        },
        "description": "The input for FOLDERS_TRASH"
      },
      "GoogleDriveFoldersTrashActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "GOOGLE_DRIVE"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "FOLDERS_TRASH"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/GoogleDriveFoldersTrashActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection integration"
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The FOLDERS_TRASH service"
      },
      "GoogleCalendarOnCalendarNewEventActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "calendar_id": {
            "type": "string",
            "description": "The calendar to watch for new events",
            "nullable": true
          }
        },
        "description": "The input for ON_CALENDAR_NEW_EVENT"
      },
      "GoogleCalendarOnCalendarNewEventActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "GOOGLE_CALENDAR"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "ON_CALENDAR_NEW_EVENT"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/GoogleCalendarOnCalendarNewEventActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection integration"
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The ON_CALENDAR_NEW_EVENT service"
      },
      "GoogleCalendarCalendarsListActionServiceInputSchema": {
        "type": "object",
        "properties": {},
        "description": "The input for CALENDARS_LIST"
      },
      "GoogleCalendarCalendarsListActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "GOOGLE_CALENDAR"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "CALENDARS_LIST"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/GoogleCalendarCalendarsListActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection integration"
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The CALENDARS_LIST service"
      },
      "GoogleCalendarCalendarsGetActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "calendar_id": {
            "type": "string",
            "description": "The calendar to retrieve",
            "nullable": true
          }
        },
        "description": "The input for CALENDARS_GET"
      },
      "GoogleCalendarCalendarsGetActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "GOOGLE_CALENDAR"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "CALENDARS_GET"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/GoogleCalendarCalendarsGetActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection integration"
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The CALENDARS_GET service"
      },
      "GoogleCalendarCalendarsCreateActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "summary": {
            "type": "string",
            "description": "The name of the calendar",
            "nullable": true
          },
          "description": {
            "type": "string",
            "description": "Description of the calendar",
            "nullable": true
          },
          "timezone": {
            "type": "string",
            "description": "The time zone of the calendar (e.g., America/New_York)",
            "nullable": true
          }
        },
        "description": "The input for CALENDARS_CREATE"
      },
      "GoogleCalendarCalendarsCreateActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "GOOGLE_CALENDAR"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "CALENDARS_CREATE"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/GoogleCalendarCalendarsCreateActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection integration"
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The CALENDARS_CREATE service"
      },
      "GoogleCalendarCalendarsUpdateActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "calendar_id": {
            "type": "string",
            "description": "The calendar to update",
            "nullable": true
          },
          "summary": {
            "type": "string",
            "description": "The name of the calendar",
            "nullable": true
          },
          "description": {
            "type": "string",
            "description": "Description of the calendar",
            "nullable": true
          },
          "timezone": {
            "type": "string",
            "description": "The time zone of the calendar (e.g., America/New_York)",
            "nullable": true
          }
        },
        "description": "The input for CALENDARS_UPDATE"
      },
      "GoogleCalendarCalendarsUpdateActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "GOOGLE_CALENDAR"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "CALENDARS_UPDATE"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/GoogleCalendarCalendarsUpdateActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection integration"
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The CALENDARS_UPDATE service"
      },
      "GoogleCalendarCalendarsDeleteActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "calendar_id": {
            "type": "string",
            "description": "The calendar to delete",
            "nullable": true
          }
        },
        "description": "The input for CALENDARS_DELETE"
      },
      "GoogleCalendarCalendarsDeleteActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "GOOGLE_CALENDAR"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "CALENDARS_DELETE"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/GoogleCalendarCalendarsDeleteActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection integration"
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The CALENDARS_DELETE service"
      },
      "GoogleCalendarCalendarsClearActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "calendar_id": {
            "type": "string",
            "description": "The primary calendar to clear",
            "nullable": true
          }
        },
        "description": "The input for CALENDARS_CLEAR"
      },
      "GoogleCalendarCalendarsClearActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "GOOGLE_CALENDAR"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "CALENDARS_CLEAR"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/GoogleCalendarCalendarsClearActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection integration"
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The CALENDARS_CLEAR service"
      },
      "GoogleCalendarEventsSearchActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "calendar_id": {
            "type": "string",
            "description": "The calendar to search in",
            "nullable": true
          },
          "q": {
            "type": "string",
            "description": "Free text search terms to find events that match",
            "nullable": true
          },
          "time_min": {
            "nullable": true,
            "description": "Lower bound (inclusive) for an event's start time"
          },
          "time_max": {
            "nullable": true,
            "description": "Upper bound (exclusive) for an event's start time"
          }
        },
        "description": "The input for EVENTS_SEARCH"
      },
      "GoogleCalendarEventsSearchActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "GOOGLE_CALENDAR"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "EVENTS_SEARCH"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/GoogleCalendarEventsSearchActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection integration"
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The EVENTS_SEARCH service"
      },
      "GoogleCalendarEventsGetActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "calendar_id": {
            "type": "string",
            "description": "The calendar containing the event",
            "nullable": true
          },
          "event_id": {
            "type": "string",
            "description": "The event to retrieve",
            "nullable": true
          },
          "timezone": {
            "type": "string",
            "description": "Time zone used in the response",
            "nullable": true
          }
        },
        "description": "The input for EVENTS_GET"
      },
      "GoogleCalendarEventsGetActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "GOOGLE_CALENDAR"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "EVENTS_GET"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/GoogleCalendarEventsGetActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection integration"
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The EVENTS_GET service"
      },
      "GoogleCalendarEventsCreateActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "calendar_id": {
            "type": "string",
            "description": "The calendar where the event will be created",
            "nullable": true
          },
          "title": {
            "type": "string",
            "description": "Title of the event",
            "nullable": true
          },
          "description": {
            "type": "string",
            "description": "Description of the event",
            "nullable": true
          },
          "start_date": {
            "nullable": true,
            "description": "Start date and time of the event (In ISO format)"
          },
          "end_date": {
            "nullable": true,
            "description": "End date and time of the event (In ISO format)"
          },
          "all_day": {
            "type": "boolean",
            "description": "Whether the event is an all-day event",
            "nullable": true
          },
          "attendees": {
            "type": "string",
            "description": "Email addresses of attendees, separated by commas",
            "nullable": true
          },
          "recurrence_pattern": {
            "type": "string",
            "description": "How often the event repeats",
            "nullable": true,
            "enum": [
              "",
              "RRULE:FREQ=DAILY",
              "RRULE:FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR",
              "RRULE:FREQ=WEEKLY",
              "RRULE:FREQ=WEEKLY;INTERVAL=2",
              "RRULE:FREQ=MONTHLY",
              "RRULE:FREQ=YEARLY"
            ]
          },
          "recurrence_until_date": {
            "nullable": true,
            "description": "When the recurring event should stop"
          },
          "visibility": {
            "type": "string",
            "description": "Visibility of the event",
            "nullable": true,
            "enum": [
              "default",
              "public",
              "private"
            ]
          },
          "color_id": {
            "type": "string",
            "description": "Color of the event",
            "nullable": true,
            "enum": [
              "",
              "1",
              "2",
              "3",
              "4",
              "5",
              "6",
              "7",
              "8",
              "9",
              "10",
              "11"
            ]
          },
          "reminder_method": {
            "type": "string",
            "description": "How the reminder should be delivered",
            "nullable": true,
            "enum": [
              "email",
              "popup"
            ]
          },
          "reminder_minutes": {
            "type": "string",
            "description": "How many minutes before the event to send the reminder",
            "nullable": true,
            "enum": [
              "5",
              "10",
              "15",
              "30",
              "60",
              "120",
              "1440",
              "2880",
              "10080"
            ]
          },
          "send_updates": {
            "type": "string",
            "description": "Whether to send notifications about the event",
            "nullable": true,
            "enum": [
              "none",
              "all",
              "externalOnly"
            ]
          },
          "location": {
            "type": "string",
            "description": "Location of the event",
            "nullable": true
          }
        },
        "description": "The input for EVENTS_CREATE"
      },
      "GoogleCalendarEventsCreateActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "GOOGLE_CALENDAR"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "EVENTS_CREATE"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/GoogleCalendarEventsCreateActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection integration"
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The EVENTS_CREATE service"
      },
      "GoogleCalendarEventsUpdateActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "calendar_id": {
            "type": "string",
            "description": "The calendar where the event will be created",
            "nullable": true
          },
          "event_id": {
            "type": "string",
            "description": "The event to update",
            "nullable": true
          },
          "title": {
            "type": "string",
            "description": "Title of the event",
            "nullable": true
          },
          "description": {
            "type": "string",
            "description": "Description of the event",
            "nullable": true
          },
          "start_date": {
            "nullable": true,
            "description": "Start date and time of the event (In ISO format)"
          },
          "end_date": {
            "nullable": true,
            "description": "End date and time of the event (In ISO format)"
          },
          "all_day": {
            "type": "boolean",
            "description": "Whether the event is an all-day event",
            "nullable": true
          },
          "attendees": {
            "type": "string",
            "description": "Email addresses of attendees, separated by commas",
            "nullable": true
          },
          "recurrence_pattern": {
            "type": "string",
            "description": "How often the event repeats",
            "nullable": true,
            "enum": [
              "",
              "RRULE:FREQ=DAILY",
              "RRULE:FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR",
              "RRULE:FREQ=WEEKLY",
              "RRULE:FREQ=WEEKLY;INTERVAL=2",
              "RRULE:FREQ=MONTHLY",
              "RRULE:FREQ=YEARLY"
            ]
          },
          "recurrence_until_date": {
            "nullable": true,
            "description": "When the recurring event should stop"
          },
          "visibility": {
            "type": "string",
            "description": "Visibility of the event",
            "nullable": true,
            "enum": [
              "default",
              "public",
              "private"
            ]
          },
          "color_id": {
            "type": "string",
            "description": "Color of the event",
            "nullable": true,
            "enum": [
              "",
              "1",
              "2",
              "3",
              "4",
              "5",
              "6",
              "7",
              "8",
              "9",
              "10",
              "11"
            ]
          },
          "reminder_method": {
            "type": "string",
            "description": "How the reminder should be delivered",
            "nullable": true,
            "enum": [
              "email",
              "popup"
            ]
          },
          "reminder_minutes": {
            "type": "string",
            "description": "How many minutes before the event to send the reminder",
            "nullable": true,
            "enum": [
              "5",
              "10",
              "15",
              "30",
              "60",
              "120",
              "1440",
              "2880",
              "10080"
            ]
          },
          "send_updates": {
            "type": "string",
            "description": "Whether to send notifications about the event",
            "nullable": true,
            "enum": [
              "none",
              "all",
              "externalOnly"
            ]
          },
          "location": {
            "type": "string",
            "description": "Location of the event",
            "nullable": true
          }
        },
        "description": "The input for EVENTS_UPDATE"
      },
      "GoogleCalendarEventsUpdateActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "GOOGLE_CALENDAR"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "EVENTS_UPDATE"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/GoogleCalendarEventsUpdateActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection integration"
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The EVENTS_UPDATE service"
      },
      "GoogleCalendarEventsDeleteActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "calendar_id": {
            "type": "string",
            "description": "The calendar containing the event",
            "nullable": true
          },
          "event_id": {
            "type": "string",
            "description": "The event to delete",
            "nullable": true
          },
          "send_notifications": {
            "type": "boolean",
            "description": "Whether to send notifications about the deletion",
            "nullable": true
          },
          "send_updates": {
            "type": "string",
            "description": "How to notify attendees about the deletion",
            "nullable": true,
            "enum": [
              "none",
              "all",
              "externalOnly"
            ]
          }
        },
        "description": "The input for EVENTS_DELETE"
      },
      "GoogleCalendarEventsDeleteActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "GOOGLE_CALENDAR"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "EVENTS_DELETE"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/GoogleCalendarEventsDeleteActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection integration"
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The EVENTS_DELETE service"
      },
      "GoogleCalendarEventsQuickAddActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "calendar_id": {
            "type": "string",
            "description": "The calendar where the event will be created",
            "nullable": true
          },
          "event_description": {
            "type": "string",
            "description": "Natural language expression describing the event (e.g., \"Dinner with John tomorrow at 7pm\")",
            "nullable": true
          },
          "send_updates": {
            "type": "string",
            "description": "Whether to send notifications about the event",
            "nullable": true,
            "enum": [
              "none",
              "all",
              "externalOnly"
            ]
          }
        },
        "description": "The input for EVENTS_QUICK_ADD"
      },
      "GoogleCalendarEventsQuickAddActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "GOOGLE_CALENDAR"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "EVENTS_QUICK_ADD"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/GoogleCalendarEventsQuickAddActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection integration"
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The EVENTS_QUICK_ADD service"
      },
      "GmailOnReceivedEmailActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "label_ids": {
            "type": "array",
            "description": "Labels required from the received email",
            "nullable": true,
            "items": {
              "type": "string"
            }
          }
        },
        "description": "The input for ON_RECEIVED_EMAIL"
      },
      "GmailOnReceivedEmailActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "GMAIL"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "ON_RECEIVED_EMAIL"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/GmailOnReceivedEmailActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection integration"
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The ON_RECEIVED_EMAIL service"
      },
      "GmailOnSentEmailActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "label_ids": {
            "type": "array",
            "description": "Labels required from the sent email",
            "nullable": true,
            "items": {
              "type": "string"
            }
          }
        },
        "description": "The input for ON_SENT_EMAIL"
      },
      "GmailOnSentEmailActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "GMAIL"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "ON_SENT_EMAIL"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/GmailOnSentEmailActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection integration"
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The ON_SENT_EMAIL service"
      },
      "GmailEmailsSearchActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "search": {
            "type": "string",
            "description": "Search in Gmail format (e.g. \"from:example@gmail.com\" or \"is:unread\")",
            "nullable": true
          },
          "label_ids": {
            "type": "array",
            "description": "Labels to filter the search results",
            "nullable": true,
            "items": {
              "type": "string"
            }
          }
        },
        "description": "The input for EMAILS_SEARCH"
      },
      "GmailEmailsSearchActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "GMAIL"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "EMAILS_SEARCH"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/GmailEmailsSearchActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection integration"
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The EMAILS_SEARCH service"
      },
      "GmailEmailsSendActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "from": {
            "type": "string",
            "description": "The email address to send the email from",
            "nullable": true
          },
          "recipients": {
            "type": "string",
            "description": "Email addresses of the recipients, separated by commas",
            "nullable": true
          },
          "subject": {
            "type": "string",
            "description": "Subject",
            "nullable": true
          },
          "message": {
            "type": "string",
            "description": "Plain text or HTML content of the email",
            "nullable": true
          },
          "label_ids": {
            "type": "array",
            "description": "Labels to apply to the email",
            "nullable": true,
            "items": {
              "type": "string"
            }
          },
          "attachments": {
            "nullable": true,
            "description": "A list of files you want to attach"
          }
        },
        "description": "The input for EMAILS_SEND"
      },
      "GmailEmailsSendActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "GMAIL"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "EMAILS_SEND"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/GmailEmailsSendActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection integration"
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The EMAILS_SEND service"
      },
      "GmailEmailsReplyActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "message_id": {
            "type": "string",
            "description": "The ID of the email to reply to",
            "nullable": true
          },
          "from": {
            "type": "string",
            "description": "The email address to send the email from",
            "nullable": true
          },
          "recipients": {
            "type": "string",
            "description": "Email addresses of the additional recipients, separated by commas",
            "nullable": true
          },
          "message": {
            "type": "string",
            "description": "Plain text or HTML content of the email",
            "nullable": true
          },
          "attachments": {
            "nullable": true,
            "description": "A list of files you want to attach"
          }
        },
        "description": "The input for EMAILS_REPLY"
      },
      "GmailEmailsReplyActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "GMAIL"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "EMAILS_REPLY"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/GmailEmailsReplyActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection integration"
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The EMAILS_REPLY service"
      },
      "GmailEmailsGetActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "message_id": {
            "type": "string",
            "description": "The ID of the email message to retrieve",
            "nullable": true
          }
        },
        "description": "The input for EMAILS_GET"
      },
      "GmailEmailsGetActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "GMAIL"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "EMAILS_GET"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/GmailEmailsGetActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection integration"
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The EMAILS_GET service"
      },
      "GmailEmailsUpdateActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "message_id": {
            "type": "string",
            "description": "The ID of the email to update",
            "nullable": true
          },
          "add_label_ids": {
            "type": "array",
            "description": "Labels to add to the email",
            "nullable": true,
            "items": {
              "type": "string"
            }
          },
          "remove_label_ids": {
            "type": "array",
            "description": "Labels to remove from the email",
            "nullable": true,
            "items": {
              "type": "string"
            }
          }
        },
        "description": "The input for EMAILS_UPDATE"
      },
      "GmailEmailsUpdateActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "GMAIL"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "EMAILS_UPDATE"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/GmailEmailsUpdateActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection integration"
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The EMAILS_UPDATE service"
      },
      "GmailEmailsAttachmentsDownloadActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "message_id": {
            "type": "string",
            "description": "The ID of the email to download attachments from",
            "nullable": true
          },
          "storage": {
            "type": "string",
            "description": "Persistent storage will keep the file even after the run finishes. Temporary storage will delete the file after 24 hours",
            "nullable": true,
            "enum": [
              "PERSISTENT",
              "TEMPORARY"
            ]
          },
          "visibility": {
            "type": "string",
            "description": "Whether the file is private or public, private files URLs are signed with a token and can be accessed temporarily",
            "nullable": true,
            "enum": [
              "PRIVATE",
              "PUBLIC"
            ]
          }
        },
        "description": "The input for EMAILS_ATTACHMENTS_DOWNLOAD"
      },
      "GmailEmailsAttachmentsDownloadActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "GMAIL"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "EMAILS_ATTACHMENTS_DOWNLOAD"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/GmailEmailsAttachmentsDownloadActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection integration"
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The EMAILS_ATTACHMENTS_DOWNLOAD service"
      },
      "GmailDraftsSearchActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "search": {
            "type": "string",
            "description": "Search in Gmail format (e.g. \"from:example@gmail.com\" or \"is:unread\")",
            "nullable": true
          }
        },
        "description": "The input for DRAFTS_SEARCH"
      },
      "GmailDraftsSearchActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "GMAIL"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "DRAFTS_SEARCH"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/GmailDraftsSearchActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection integration"
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The DRAFTS_SEARCH service"
      },
      "GmailDraftsSendActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "draft_id": {
            "type": "string",
            "description": "The ID of the draft to send",
            "nullable": true
          },
          "label_ids": {
            "type": "array",
            "description": "Labels to add to the draft",
            "nullable": true,
            "items": {
              "type": "string"
            }
          }
        },
        "description": "The input for DRAFTS_SEND"
      },
      "GmailDraftsSendActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "GMAIL"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "DRAFTS_SEND"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/GmailDraftsSendActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection integration"
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The DRAFTS_SEND service"
      },
      "GmailDraftsCreateActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "from": {
            "type": "string",
            "description": "The email address to send the email from",
            "nullable": true
          },
          "recipients": {
            "type": "string",
            "description": "Email addresses of the recipients, separated by commas",
            "nullable": true
          },
          "subject": {
            "type": "string",
            "description": "Subject",
            "nullable": true
          },
          "message": {
            "type": "string",
            "description": "Plain text or HTML content of the email",
            "nullable": true
          },
          "attachments": {
            "nullable": true,
            "description": "A list of files you want to attach"
          }
        },
        "description": "The input for DRAFTS_CREATE"
      },
      "GmailDraftsCreateActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "GMAIL"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "DRAFTS_CREATE"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/GmailDraftsCreateActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection integration"
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The DRAFTS_CREATE service"
      },
      "GmailLabelsListActionServiceInputSchema": {
        "type": "object",
        "properties": {},
        "description": "The input for LABELS_LIST"
      },
      "GmailLabelsListActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "GMAIL"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "LABELS_LIST"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/GmailLabelsListActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection integration"
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The LABELS_LIST service"
      },
      "GmailLabelsCreateActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Name of the new label to create",
            "nullable": true
          },
          "text_color": {
            "type": "string",
            "description": "Color for the label text",
            "nullable": true,
            "enum": [
              "#000000",
              "#434343",
              "#666666",
              "#999999",
              "#ffffff",
              "#fb4c2f",
              "#ffad47",
              "#fad165",
              "#16a766",
              "#43d692",
              "#4a86e8",
              "#a479e2",
              "#f691b3",
              "#3c78d8",
              "#0b804b"
            ]
          },
          "background_color": {
            "type": "string",
            "description": "Color for the label background",
            "nullable": true,
            "enum": [
              "#ffffff",
              "#efefef",
              "#666666",
              "#000000",
              "#fb4c2f",
              "#ff7537",
              "#fad165",
              "#16a766",
              "#c6f3de",
              "#4a86e8",
              "#c9daf8",
              "#8e63ce",
              "#fcdee8",
              "#ffad46",
              "#0b804b"
            ]
          },
          "label_list_visibility": {
            "type": "string",
            "description": "The visibility of the label in the label list in the Gmail web interface",
            "nullable": true,
            "enum": [
              "labelShow",
              "labelShowIfUnread",
              "labelHide"
            ]
          },
          "message_list_visibility": {
            "type": "string",
            "description": "The visibility of the label in the label list in the Gmail web interface",
            "nullable": true,
            "enum": [
              "show",
              "hide"
            ]
          }
        },
        "description": "The input for LABELS_CREATE"
      },
      "GmailLabelsCreateActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "GMAIL"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "LABELS_CREATE"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/GmailLabelsCreateActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection integration"
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The LABELS_CREATE service"
      },
      "SlackOnChannelNewMessageActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "channel": {
            "type": "string",
            "description": "The channel to watch for new messages",
            "nullable": true
          },
          "message_source": {
            "type": "string",
            "description": "Message Source",
            "nullable": true,
            "enum": [
              "all",
              "users",
              "bots"
            ]
          }
        },
        "description": "The input for ON_CHANNEL_NEW_MESSAGE"
      },
      "SlackOnChannelNewMessageActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "SLACK"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "ON_CHANNEL_NEW_MESSAGE"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SlackOnChannelNewMessageActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection integration"
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The ON_CHANNEL_NEW_MESSAGE service"
      },
      "SlackChannelsMessagesListActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "channel": {
            "type": "string",
            "description": "Channel ID to list messages from",
            "nullable": true
          }
        },
        "description": "The input for CHANNELS_MESSAGES_LIST"
      },
      "SlackChannelsMessagesListActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "SLACK"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "CHANNELS_MESSAGES_LIST"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SlackChannelsMessagesListActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection integration"
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The CHANNELS_MESSAGES_LIST service"
      },
      "SlackSearchActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "search": {
            "type": "string",
            "description": "Search query to find messages and files",
            "nullable": true
          },
          "sort_field": {
            "type": "string",
            "description": "Field to sort results by",
            "nullable": true,
            "enum": [
              "score",
              "timestamp"
            ]
          },
          "sort_direction": {
            "type": "string",
            "description": "Direction to sort results",
            "nullable": true,
            "enum": [
              "desc",
              "asc"
            ]
          }
        },
        "description": "The input for SEARCH"
      },
      "SlackSearchActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "SLACK"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "SEARCH"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SlackSearchActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection integration"
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The SEARCH service"
      },
      "SlackChannelsSendMessageActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "channel": {
            "type": "string",
            "description": "Channel name or ID where the message will be sent, make sure the bot is a member of private channels.",
            "nullable": true
          },
          "message": {
            "type": "string",
            "description": "Message",
            "nullable": true
          },
          "file_urls": {
            "type": "array",
            "description": "URLs of the files to upload",
            "nullable": true,
            "items": {
              "type": "string"
            }
          }
        },
        "description": "The input for CHANNELS_SEND_MESSAGE"
      },
      "SlackChannelsSendMessageActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "SLACK"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "CHANNELS_SEND_MESSAGE"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SlackChannelsSendMessageActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection integration"
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The CHANNELS_SEND_MESSAGE service"
      },
      "SlackChannelsReplyMessageActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "channel": {
            "type": "string",
            "description": "Channel ID where the thread is located",
            "nullable": true
          },
          "message": {
            "type": "string",
            "description": "Text of the message to send in the thread",
            "nullable": true
          },
          "thread_ts": {
            "type": "string",
            "description": "Timestamp of the parent message to reply to (e.g., 1744483861.471079)",
            "nullable": true
          },
          "file_urls": {
            "type": "array",
            "description": "URLs of the files to upload",
            "nullable": true,
            "items": {
              "type": "string"
            }
          }
        },
        "description": "The input for CHANNELS_REPLY_MESSAGE"
      },
      "SlackChannelsReplyMessageActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "SLACK"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "CHANNELS_REPLY_MESSAGE"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SlackChannelsReplyMessageActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection integration"
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The CHANNELS_REPLY_MESSAGE service"
      },
      "NotionOnDatabasesNewRowActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "database_id": {
            "type": "string",
            "description": "The database to watch for new rows",
            "nullable": true
          }
        },
        "description": "The input for ON_DATABASES_NEW_ROW"
      },
      "NotionOnDatabasesNewRowActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "NOTION"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "ON_DATABASES_NEW_ROW"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/NotionOnDatabasesNewRowActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection integration"
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The ON_DATABASES_NEW_ROW service"
      },
      "NotionOnDatabasesUpdatedRowActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "database_id": {
            "type": "string",
            "description": "Database to watch for row updates",
            "nullable": true
          },
          "watch_properties": {
            "type": "array",
            "description": "Triggers only when selected properties change. Leave empty to watch all.",
            "nullable": true,
            "items": {
              "type": "string"
            }
          }
        },
        "description": "The input for ON_DATABASES_UPDATED_ROW"
      },
      "NotionOnDatabasesUpdatedRowActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "NOTION"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "ON_DATABASES_UPDATED_ROW"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/NotionOnDatabasesUpdatedRowActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection integration"
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The ON_DATABASES_UPDATED_ROW service"
      },
      "NotionSearchActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "search": {
            "type": "string",
            "description": "Text to search for across all properties",
            "nullable": true
          }
        },
        "description": "The input for SEARCH"
      },
      "NotionSearchActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "NOTION"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "SEARCH"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/NotionSearchActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection integration"
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The SEARCH service"
      },
      "NotionPagesCreateActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "parent_id": {
            "type": "string",
            "description": "Parent page where will be created the new page",
            "nullable": true
          },
          "title": {
            "type": "string",
            "description": "Title of the new page",
            "nullable": true
          },
          "content": {
            "type": "string",
            "description": "It can contain either markdown text or a JSON array of Notion blocks (with type, content, children, etc.).",
            "nullable": true
          }
        },
        "description": "The input for PAGES_CREATE"
      },
      "NotionPagesCreateActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "NOTION"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "PAGES_CREATE"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/NotionPagesCreateActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection integration"
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The PAGES_CREATE service"
      },
      "NotionPagesGetContentActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "page_id": {
            "type": "string",
            "description": "Page to get content from",
            "nullable": true
          },
          "recursive": {
            "type": "boolean",
            "description": "Load nested child content from the page",
            "nullable": true
          }
        },
        "description": "The input for PAGES_GET_CONTENT"
      },
      "NotionPagesGetContentActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "NOTION"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "PAGES_GET_CONTENT"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/NotionPagesGetContentActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection integration"
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The PAGES_GET_CONTENT service"
      },
      "NotionPagesAddContentActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "page_id": {
            "type": "string",
            "description": "Page to add content to",
            "nullable": true
          },
          "content": {
            "type": "string",
            "description": "It can contain either markdown text or a JSON array of Notion blocks (with type, content, children, etc.).",
            "nullable": true
          }
        },
        "description": "The input for PAGES_ADD_CONTENT"
      },
      "NotionPagesAddContentActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "NOTION"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "PAGES_ADD_CONTENT"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/NotionPagesAddContentActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection integration"
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The PAGES_ADD_CONTENT service"
      },
      "NotionPagesAddCommentActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "page_id": {
            "type": "string",
            "description": "Page to add the comment to",
            "nullable": true
          },
          "comment": {
            "type": "string",
            "description": "Text of the comment to add",
            "nullable": true
          }
        },
        "description": "The input for PAGES_ADD_COMMENT"
      },
      "NotionPagesAddCommentActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "NOTION"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "PAGES_ADD_COMMENT"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/NotionPagesAddCommentActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection integration"
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The PAGES_ADD_COMMENT service"
      },
      "NotionDatabasesSearchActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "database_id": {
            "type": "string",
            "description": "The database to search in",
            "nullable": true
          },
          "search": {
            "type": "string",
            "description": "Search to filter across all properties",
            "nullable": true
          },
          "sort_direction": {
            "type": "string",
            "description": "Whether to sort the results in ascending or descending order",
            "nullable": true,
            "enum": [
              "descending",
              "ascending"
            ]
          }
        },
        "description": "The input for DATABASES_SEARCH"
      },
      "NotionDatabasesSearchActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "NOTION"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "DATABASES_SEARCH"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/NotionDatabasesSearchActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection integration"
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The DATABASES_SEARCH service"
      },
      "NotionDatabasesAddRowActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "database_id": {
            "type": "string",
            "description": "Database where the row will be added",
            "nullable": true
          },
          "properties": {
            "nullable": true,
            "description": "Row properties to add"
          }
        },
        "description": "The input for DATABASES_ADD_ROW"
      },
      "NotionDatabasesAddRowActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "NOTION"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "DATABASES_ADD_ROW"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/NotionDatabasesAddRowActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection integration"
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The DATABASES_ADD_ROW service"
      },
      "NotionDatabasesUpdateRowActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "database_id": {
            "type": "string",
            "description": "Database containing the row to update",
            "nullable": true
          },
          "page_id": {
            "type": "string",
            "description": "Select the row (page) you want to update",
            "nullable": true
          },
          "properties": {
            "nullable": true,
            "description": "Row properties to update"
          }
        },
        "description": "The input for DATABASES_UPDATE_ROW"
      },
      "NotionDatabasesUpdateRowActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "NOTION"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "DATABASES_UPDATE_ROW"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/NotionDatabasesUpdateRowActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection integration"
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The DATABASES_UPDATE_ROW service"
      },
      "SalesforceOnContactsNewActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "schedule": {
            "type": "string",
            "description": "The interval (seconds) or cron expression",
            "nullable": true,
            "enum": [
              "60",
              "300",
              "900",
              "1800",
              "3600",
              "86400",
              "604800",
              "2592000",
              "0 0 * * 1",
              "0 0 * * 2",
              "0 0 * * 3",
              "0 0 * * 4",
              "0 0 * * 5",
              "0 0 * * 6",
              "0 0 * * 0",
              "0 0 * * 1-5",
              "0 0 * * 6,0"
            ]
          },
          "timezone": {
            "type": "string",
            "description": "The timezone to use for the schedule",
            "nullable": true
          }
        },
        "description": "The input for ON_CONTACTS_NEW"
      },
      "SalesforceOnContactsNewActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "SALESFORCE"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "ON_CONTACTS_NEW"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SalesforceOnContactsNewActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection integration"
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The ON_CONTACTS_NEW service"
      },
      "SalesforceOnLeadsNewActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "schedule": {
            "type": "string",
            "description": "The interval (seconds) or cron expression",
            "nullable": true,
            "enum": [
              "60",
              "300",
              "900",
              "1800",
              "3600",
              "86400",
              "604800",
              "2592000",
              "0 0 * * 1",
              "0 0 * * 2",
              "0 0 * * 3",
              "0 0 * * 4",
              "0 0 * * 5",
              "0 0 * * 6",
              "0 0 * * 0",
              "0 0 * * 1-5",
              "0 0 * * 6,0"
            ]
          },
          "timezone": {
            "type": "string",
            "description": "The timezone to use for the schedule",
            "nullable": true
          }
        },
        "description": "The input for ON_LEADS_NEW"
      },
      "SalesforceOnLeadsNewActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "SALESFORCE"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "ON_LEADS_NEW"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SalesforceOnLeadsNewActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection integration"
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The ON_LEADS_NEW service"
      },
      "SalesforceOnOpportunitiesNewActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "schedule": {
            "type": "string",
            "description": "The interval (seconds) or cron expression",
            "nullable": true,
            "enum": [
              "60",
              "300",
              "900",
              "1800",
              "3600",
              "86400",
              "604800",
              "2592000",
              "0 0 * * 1",
              "0 0 * * 2",
              "0 0 * * 3",
              "0 0 * * 4",
              "0 0 * * 5",
              "0 0 * * 6",
              "0 0 * * 0",
              "0 0 * * 1-5",
              "0 0 * * 6,0"
            ]
          },
          "timezone": {
            "type": "string",
            "description": "The timezone to use for the schedule",
            "nullable": true
          }
        },
        "description": "The input for ON_OPPORTUNITIES_NEW"
      },
      "SalesforceOnOpportunitiesNewActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "SALESFORCE"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "ON_OPPORTUNITIES_NEW"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SalesforceOnOpportunitiesNewActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection integration"
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The ON_OPPORTUNITIES_NEW service"
      },
      "SalesforceOnCasesNewActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "schedule": {
            "type": "string",
            "description": "The interval (seconds) or cron expression",
            "nullable": true,
            "enum": [
              "60",
              "300",
              "900",
              "1800",
              "3600",
              "86400",
              "604800",
              "2592000",
              "0 0 * * 1",
              "0 0 * * 2",
              "0 0 * * 3",
              "0 0 * * 4",
              "0 0 * * 5",
              "0 0 * * 6",
              "0 0 * * 0",
              "0 0 * * 1-5",
              "0 0 * * 6,0"
            ]
          },
          "timezone": {
            "type": "string",
            "description": "The timezone to use for the schedule",
            "nullable": true
          }
        },
        "description": "The input for ON_CASES_NEW"
      },
      "SalesforceOnCasesNewActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "SALESFORCE"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "ON_CASES_NEW"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SalesforceOnCasesNewActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection integration"
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The ON_CASES_NEW service"
      },
      "SalesforceOnOpportunitiesStageChangeActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "schedule": {
            "type": "string",
            "description": "The interval (seconds) or cron expression",
            "nullable": true,
            "enum": [
              "60",
              "300",
              "900",
              "1800",
              "3600",
              "86400",
              "604800",
              "2592000",
              "0 0 * * 1",
              "0 0 * * 2",
              "0 0 * * 3",
              "0 0 * * 4",
              "0 0 * * 5",
              "0 0 * * 6",
              "0 0 * * 0",
              "0 0 * * 1-5",
              "0 0 * * 6,0"
            ]
          },
          "timezone": {
            "type": "string",
            "description": "The timezone to use for the schedule",
            "nullable": true
          }
        },
        "description": "The input for ON_OPPORTUNITIES_STAGE_CHANGE"
      },
      "SalesforceOnOpportunitiesStageChangeActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "SALESFORCE"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "ON_OPPORTUNITIES_STAGE_CHANGE"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SalesforceOnOpportunitiesStageChangeActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection integration"
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The ON_OPPORTUNITIES_STAGE_CHANGE service"
      },
      "SalesforceLeadsGetActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "lead_id": {
            "type": "string",
            "description": "The ID of the lead to retrieve",
            "nullable": true
          }
        },
        "description": "The input for LEADS_GET"
      },
      "SalesforceLeadsGetActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "SALESFORCE"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "LEADS_GET"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SalesforceLeadsGetActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection integration"
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The LEADS_GET service"
      },
      "SalesforceLeadsSearchActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "search_text": {
            "type": "string",
            "description": "Search across name, email, company, and phone fields",
            "nullable": true
          },
          "status": {
            "type": "string",
            "description": "Filter leads by status",
            "nullable": true,
            "enum": [
              "all",
              "Open - Not Contacted",
              "Working - Contacted",
              "Closed - Converted",
              "Closed - Not Converted"
            ]
          },
          "sort_field": {
            "type": "string",
            "description": "Field to sort results by",
            "nullable": true,
            "enum": [
              "LastModifiedDate",
              "CreatedDate",
              "FirstName",
              "LastName",
              "Email",
              "Company",
              "Status",
              "Title",
              "Status",
              "Industry",
              "Website",
              "Rating"
            ]
          },
          "sort_order": {
            "type": "string",
            "description": "Order to sort results",
            "nullable": true,
            "enum": [
              "DESC",
              "ASC"
            ]
          },
          "include_converted": {
            "type": "boolean",
            "description": "Include leads that have been converted to accounts or contacts",
            "nullable": true
          },
          "include_trashed": {
            "type": "boolean",
            "description": "Include leads that have been moved to the Recycle Bin",
            "nullable": true
          }
        },
        "description": "The input for LEADS_SEARCH"
      },
      "SalesforceLeadsSearchActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "SALESFORCE"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "LEADS_SEARCH"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SalesforceLeadsSearchActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection integration"
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The LEADS_SEARCH service"
      },
      "SalesforceLeadsCreateActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "first_name": {
            "type": "string",
            "description": "First name of the lead",
            "nullable": true
          },
          "last_name": {
            "type": "string",
            "description": "Last name of the lead",
            "nullable": true
          },
          "company": {
            "type": "string",
            "description": "Company name of the lead",
            "nullable": true
          },
          "title": {
            "type": "string",
            "description": "Job title of the lead",
            "nullable": true
          },
          "website": {
            "type": "string",
            "description": "Website URL of the lead",
            "nullable": true
          },
          "description": {
            "type": "string",
            "description": "Additional information about the lead",
            "nullable": true
          },
          "email": {
            "type": "string",
            "description": "Email address of the lead",
            "nullable": true
          },
          "phone": {
            "type": "string",
            "description": "Phone number of the lead",
            "nullable": true
          },
          "status": {
            "type": "string",
            "description": "Status of the lead",
            "nullable": true,
            "enum": [
              "Open - Not Contacted",
              "Working - Contacted",
              "Qualified",
              "Nurturing",
              "Unqualified",
              "In Progress",
              "Closed - Converted",
              "Closed - Not Converted"
            ]
          },
          "industry": {
            "type": "string",
            "description": "Industry of the lead company",
            "nullable": true,
            "enum": [
              "Agriculture",
              "Banking",
              "Consulting",
              "Education",
              "Energy",
              "Healthcare",
              "Manufacturing",
              "Retail",
              "Technology",
              "Other"
            ]
          },
          "annual_revenue": {
            "type": "number",
            "description": "Annual revenue of the company in dollars",
            "nullable": true
          },
          "lead_source": {
            "type": "string",
            "description": "Source of the lead",
            "nullable": true,
            "enum": [
              "Advertisement",
              "Employee Referral",
              "External Referral",
              "Partner",
              "Public Relations",
              "Seminar - Internal",
              "Seminar - Partner",
              "Trade Show",
              "Web",
              "Word of mouth",
              "Other",
              "Email",
              "Direct Mail",
              "Phone Inquiry",
              "Purchased List",
              "Campaign"
            ]
          },
          "number_of_employees": {
            "type": "number",
            "description": "Total number of employees in the company",
            "nullable": true
          },
          "street": {
            "type": "string",
            "description": "Street address of the lead",
            "nullable": true
          },
          "city": {
            "type": "string",
            "description": "City of the lead",
            "nullable": true
          },
          "state": {
            "type": "string",
            "description": "State or province of the lead",
            "nullable": true
          },
          "postal_code": {
            "type": "string",
            "description": "Postal or ZIP code of the lead",
            "nullable": true
          },
          "country": {
            "type": "string",
            "description": "Country of the lead",
            "nullable": true
          }
        },
        "description": "The input for LEADS_CREATE"
      },
      "SalesforceLeadsCreateActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "SALESFORCE"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "LEADS_CREATE"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SalesforceLeadsCreateActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection integration"
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The LEADS_CREATE service"
      },
      "SalesforceLeadsUpdateActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "lead_id": {
            "type": "string",
            "description": "The ID of the lead to update",
            "nullable": true
          },
          "first_name": {
            "type": "string",
            "description": "First name of the lead",
            "nullable": true
          },
          "last_name": {
            "type": "string",
            "description": "Last name of the lead",
            "nullable": true
          },
          "company": {
            "type": "string",
            "description": "Company name of the lead",
            "nullable": true
          },
          "email": {
            "type": "string",
            "description": "Email address of the lead",
            "nullable": true
          },
          "phone": {
            "type": "string",
            "description": "Phone number of the lead",
            "nullable": true
          },
          "title": {
            "type": "string",
            "description": "Job title of the lead",
            "nullable": true
          },
          "website": {
            "type": "string",
            "description": "Website URL of the lead",
            "nullable": true
          },
          "description": {
            "type": "string",
            "description": "Additional information about the lead",
            "nullable": true
          },
          "status": {
            "type": "string",
            "description": "Status of the lead",
            "nullable": true,
            "enum": [
              "Open - Not Contacted",
              "Working - Contacted",
              "Qualified",
              "Nurturing",
              "Unqualified",
              "In Progress",
              "Closed - Converted",
              "Closed - Not Converted"
            ]
          },
          "industry": {
            "type": "string",
            "description": "Industry of the lead company",
            "nullable": true,
            "enum": [
              "Agriculture",
              "Banking",
              "Consulting",
              "Education",
              "Energy",
              "Healthcare",
              "Manufacturing",
              "Retail",
              "Technology",
              "Other"
            ]
          },
          "annual_revenue": {
            "type": "number",
            "description": "Annual revenue of the company in dollars",
            "nullable": true
          },
          "lead_source": {
            "type": "string",
            "description": "Source of the lead",
            "nullable": true,
            "enum": [
              "Advertisement",
              "Employee Referral",
              "External Referral",
              "Partner",
              "Public Relations",
              "Seminar - Internal",
              "Seminar - Partner",
              "Trade Show",
              "Web",
              "Word of mouth",
              "Other",
              "Email",
              "Direct Mail",
              "Phone Inquiry",
              "Purchased List",
              "Campaign"
            ]
          },
          "number_of_employees": {
            "type": "number",
            "description": "Total number of employees in the company",
            "nullable": true
          },
          "street": {
            "type": "string",
            "description": "Street address of the lead",
            "nullable": true
          },
          "city": {
            "type": "string",
            "description": "City of the lead",
            "nullable": true
          },
          "state": {
            "type": "string",
            "description": "State or province of the lead",
            "nullable": true
          },
          "postal_code": {
            "type": "string",
            "description": "Postal or ZIP code of the lead",
            "nullable": true
          },
          "country": {
            "type": "string",
            "description": "Country of the lead",
            "nullable": true
          }
        },
        "description": "The input for LEADS_UPDATE"
      },
      "SalesforceLeadsUpdateActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "SALESFORCE"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "LEADS_UPDATE"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SalesforceLeadsUpdateActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection integration"
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The LEADS_UPDATE service"
      },
      "SalesforceLeadsTrashActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "lead_id": {
            "type": "string",
            "description": "The ID of the lead to move to recycle bin",
            "nullable": true
          }
        },
        "description": "The input for LEADS_TRASH"
      },
      "SalesforceLeadsTrashActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "SALESFORCE"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "LEADS_TRASH"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SalesforceLeadsTrashActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection integration"
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The LEADS_TRASH service"
      },
      "SalesforceContactsGetActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "contact_id": {
            "type": "string",
            "description": "The ID of the contact to retrieve",
            "nullable": true
          }
        },
        "description": "The input for CONTACTS_GET"
      },
      "SalesforceContactsGetActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "SALESFORCE"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "CONTACTS_GET"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SalesforceContactsGetActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection integration"
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The CONTACTS_GET service"
      },
      "SalesforceContactsSearchActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "search_text": {
            "type": "string",
            "description": "Search across name, email and phone fields",
            "nullable": true
          },
          "account_id": {
            "type": "string",
            "description": "Filter contacts by account",
            "nullable": true
          },
          "sort_field": {
            "type": "string",
            "description": "Field to sort results by",
            "nullable": true,
            "enum": [
              "LastModifiedDate",
              "CreatedDate",
              "FirstName",
              "LastName",
              "Email",
              "Title"
            ]
          },
          "sort_order": {
            "type": "string",
            "description": "Order to sort results",
            "nullable": true,
            "enum": [
              "DESC",
              "ASC"
            ]
          },
          "include_trashed": {
            "type": "boolean",
            "description": "Include contacts that have been moved to the Recycle Bin",
            "nullable": true
          }
        },
        "description": "The input for CONTACTS_SEARCH"
      },
      "SalesforceContactsSearchActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "SALESFORCE"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "CONTACTS_SEARCH"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SalesforceContactsSearchActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection integration"
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The CONTACTS_SEARCH service"
      },
      "SalesforceContactsCreateActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "first_name": {
            "type": "string",
            "description": "First name of the contact",
            "nullable": true
          },
          "last_name": {
            "type": "string",
            "description": "Last name of the contact",
            "nullable": true
          },
          "account_id": {
            "type": "string",
            "description": "The account this contact belongs to",
            "nullable": true
          },
          "email": {
            "type": "string",
            "description": "Email address of the contact",
            "nullable": true
          },
          "phone": {
            "type": "string",
            "description": "Phone number of the contact",
            "nullable": true
          },
          "title": {
            "type": "string",
            "description": "Job title of the contact",
            "nullable": true
          },
          "reports_to_id": {
            "type": "string",
            "description": "The supervisor of this contact",
            "nullable": true
          },
          "description": {
            "type": "string",
            "description": "Additional information about the contact",
            "nullable": true
          }
        },
        "description": "The input for CONTACTS_CREATE"
      },
      "SalesforceContactsCreateActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "SALESFORCE"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "CONTACTS_CREATE"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SalesforceContactsCreateActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection integration"
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The CONTACTS_CREATE service"
      },
      "SalesforceContactsUpdateActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "contact_id": {
            "type": "string",
            "description": "The ID of the contact to update",
            "nullable": true
          },
          "first_name": {
            "type": "string",
            "description": "First name of the contact",
            "nullable": true
          },
          "last_name": {
            "type": "string",
            "description": "Last name of the contact",
            "nullable": true
          },
          "account_id": {
            "type": "string",
            "description": "The account this contact belongs to",
            "nullable": true
          },
          "email": {
            "type": "string",
            "description": "Email address of the contact",
            "nullable": true
          },
          "phone": {
            "type": "string",
            "description": "Phone number of the contact",
            "nullable": true
          },
          "title": {
            "type": "string",
            "description": "Job title of the contact",
            "nullable": true
          },
          "reports_to_id": {
            "type": "string",
            "description": "The supervisor of this contact",
            "nullable": true
          },
          "description": {
            "type": "string",
            "description": "Additional information about the contact",
            "nullable": true
          }
        },
        "description": "The input for CONTACTS_UPDATE"
      },
      "SalesforceContactsUpdateActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "SALESFORCE"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "CONTACTS_UPDATE"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SalesforceContactsUpdateActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection integration"
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The CONTACTS_UPDATE service"
      },
      "SalesforceContactsTrashActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "contact_id": {
            "type": "string",
            "description": "The ID of the contact to move to recycle bin",
            "nullable": true
          }
        },
        "description": "The input for CONTACTS_TRASH"
      },
      "SalesforceContactsTrashActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "SALESFORCE"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "CONTACTS_TRASH"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SalesforceContactsTrashActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection integration"
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The CONTACTS_TRASH service"
      },
      "SalesforceAccountsGetActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "account_id": {
            "type": "string",
            "description": "The ID of the account to retrieve in Salesforce",
            "nullable": true
          }
        },
        "description": "The input for ACCOUNTS_GET"
      },
      "SalesforceAccountsGetActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "SALESFORCE"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "ACCOUNTS_GET"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SalesforceAccountsGetActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection integration"
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The ACCOUNTS_GET service"
      },
      "SalesforceAccountsSearchActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "search_text": {
            "type": "string",
            "description": "Search across name, account number, website, industry and phone fields",
            "nullable": true
          },
          "type": {
            "type": "string",
            "description": "Filter accounts by type",
            "nullable": true,
            "enum": [
              "Analyst",
              "Competitor",
              "Customer",
              "Integrator",
              "Investor",
              "Partner",
              "Press",
              "Prospect",
              "Reseller",
              "Other"
            ]
          },
          "sort_field": {
            "type": "string",
            "description": "Field to sort results by",
            "nullable": true,
            "enum": [
              "LastModifiedDate",
              "CreatedDate",
              "Name"
            ]
          },
          "sort_order": {
            "type": "string",
            "description": "Order to sort results",
            "nullable": true,
            "enum": [
              "DESC",
              "ASC"
            ]
          },
          "include_trashed": {
            "type": "boolean",
            "description": "Include accounts that have been moved to the Recycle Bin",
            "nullable": true
          }
        },
        "description": "The input for ACCOUNTS_SEARCH"
      },
      "SalesforceAccountsSearchActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "SALESFORCE"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "ACCOUNTS_SEARCH"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SalesforceAccountsSearchActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection integration"
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The ACCOUNTS_SEARCH service"
      },
      "SalesforceAccountsCreateActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Name of the account (required)",
            "nullable": true
          },
          "type": {
            "type": "string",
            "description": "Type of account",
            "nullable": true,
            "enum": [
              "Analyst",
              "Competitor",
              "Customer",
              "Integrator",
              "Investor",
              "Partner",
              "Press",
              "Prospect",
              "Reseller",
              "Other"
            ]
          },
          "phone": {
            "type": "string",
            "description": "Phone number of the account",
            "nullable": true
          },
          "website": {
            "type": "string",
            "description": "Website URL of the account",
            "nullable": true
          },
          "description": {
            "type": "string",
            "description": "Additional information about the account",
            "nullable": true
          },
          "billing_street": {
            "type": "string",
            "description": "Street address for billing",
            "nullable": true
          },
          "billing_city": {
            "type": "string",
            "description": "City for billing address",
            "nullable": true
          },
          "billing_state": {
            "type": "string",
            "description": "State or province for billing address",
            "nullable": true
          },
          "billing_postal_code": {
            "type": "string",
            "description": "Postal code for billing address",
            "nullable": true
          },
          "billing_country": {
            "type": "string",
            "description": "Country for billing address",
            "nullable": true
          },
          "shipping_street": {
            "type": "string",
            "description": "Street address for shipping",
            "nullable": true
          },
          "shipping_city": {
            "type": "string",
            "description": "City for shipping address",
            "nullable": true
          },
          "shipping_state": {
            "type": "string",
            "description": "State or province for shipping address",
            "nullable": true
          },
          "shipping_postal_code": {
            "type": "string",
            "description": "Postal code for shipping address",
            "nullable": true
          },
          "shipping_country": {
            "type": "string",
            "description": "Country for shipping address",
            "nullable": true
          },
          "parent_account_id": {
            "type": "string",
            "description": "Select a parent account for this account, if applicable",
            "nullable": true
          }
        },
        "description": "The input for ACCOUNTS_CREATE"
      },
      "SalesforceAccountsCreateActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "SALESFORCE"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "ACCOUNTS_CREATE"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SalesforceAccountsCreateActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection integration"
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The ACCOUNTS_CREATE service"
      },
      "SalesforceAccountsUpdateActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "account_id": {
            "type": "string",
            "description": "The ID of the account to update",
            "nullable": true
          },
          "name": {
            "type": "string",
            "description": "Name of the account",
            "nullable": true
          },
          "type": {
            "type": "string",
            "description": "Type of account",
            "nullable": true,
            "enum": [
              "Analyst",
              "Competitor",
              "Customer",
              "Integrator",
              "Investor",
              "Partner",
              "Press",
              "Prospect",
              "Reseller",
              "Other"
            ]
          },
          "phone": {
            "type": "string",
            "description": "Phone number of the account",
            "nullable": true
          },
          "website": {
            "type": "string",
            "description": "Website URL of the account",
            "nullable": true
          },
          "description": {
            "type": "string",
            "description": "Additional information about the account",
            "nullable": true
          },
          "billing_street": {
            "type": "string",
            "description": "Street address for billing",
            "nullable": true
          },
          "billing_city": {
            "type": "string",
            "description": "City for billing address",
            "nullable": true
          },
          "billing_state": {
            "type": "string",
            "description": "State or province for billing address",
            "nullable": true
          },
          "billing_postal_code": {
            "type": "string",
            "description": "Postal code for billing address",
            "nullable": true
          },
          "billing_country": {
            "type": "string",
            "description": "Country for billing address",
            "nullable": true
          },
          "shipping_street": {
            "type": "string",
            "description": "Street address for shipping",
            "nullable": true
          },
          "shipping_city": {
            "type": "string",
            "description": "City for shipping address",
            "nullable": true
          },
          "shipping_state": {
            "type": "string",
            "description": "State or province for shipping address",
            "nullable": true
          },
          "shipping_postal_code": {
            "type": "string",
            "description": "Postal code for shipping address",
            "nullable": true
          },
          "shipping_country": {
            "type": "string",
            "description": "Country for shipping address",
            "nullable": true
          },
          "parent_account_id": {
            "type": "string",
            "description": "Select a parent account for this account, if applicable",
            "nullable": true
          }
        },
        "description": "The input for ACCOUNTS_UPDATE"
      },
      "SalesforceAccountsUpdateActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "SALESFORCE"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "ACCOUNTS_UPDATE"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SalesforceAccountsUpdateActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection integration"
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The ACCOUNTS_UPDATE service"
      },
      "SalesforceAccountsTrashActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "account_id": {
            "type": "string",
            "description": "The ID of the account to move to recycle bin",
            "nullable": true
          }
        },
        "description": "The input for ACCOUNTS_TRASH"
      },
      "SalesforceAccountsTrashActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "SALESFORCE"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "ACCOUNTS_TRASH"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SalesforceAccountsTrashActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection integration"
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The ACCOUNTS_TRASH service"
      },
      "SalesforceOpportunitiesGetActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "opportunity_id": {
            "type": "string",
            "description": "The ID of the opportunity to retrieve",
            "nullable": true
          }
        },
        "description": "The input for OPPORTUNITIES_GET"
      },
      "SalesforceOpportunitiesGetActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "SALESFORCE"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "OPPORTUNITIES_GET"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SalesforceOpportunitiesGetActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection integration"
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The OPPORTUNITIES_GET service"
      },
      "SalesforceOpportunitiesSearchActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "search_text": {
            "type": "string",
            "description": "Search in opportunity name",
            "nullable": true
          },
          "account_id": {
            "type": "string",
            "description": "Filter by specific account",
            "nullable": true
          },
          "stage": {
            "type": "string",
            "description": "Filter by opportunity stage",
            "nullable": true,
            "enum": [
              "all",
              "Qualify",
              "Meet & Present",
              "Propose",
              "Negotiate",
              "Closed Won",
              "Closed Lost",
              "Needs Analysis"
            ]
          },
          "sort_field": {
            "type": "string",
            "description": "Sort opportunities by",
            "nullable": true,
            "enum": [
              "LastModifiedDate",
              "CreatedDate",
              "CloseDate",
              "Name",
              "Amount",
              "Probability"
            ]
          },
          "sort_order": {
            "type": "string",
            "description": "Direction to sort the results",
            "nullable": true,
            "enum": [
              "DESC",
              "ASC"
            ]
          },
          "include_trashed": {
            "type": "boolean",
            "description": "Include opportunities in the recycle bin",
            "nullable": true
          }
        },
        "description": "The input for OPPORTUNITIES_SEARCH"
      },
      "SalesforceOpportunitiesSearchActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "SALESFORCE"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "OPPORTUNITIES_SEARCH"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SalesforceOpportunitiesSearchActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection integration"
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The OPPORTUNITIES_SEARCH service"
      },
      "SalesforceOpportunitiesCreateActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Name of the opportunity",
            "nullable": true
          },
          "account_id": {
            "type": "string",
            "description": "ID of the associated account",
            "nullable": true
          },
          "close_date": {
            "nullable": true,
            "description": "Expected close date for the opportunity"
          },
          "amount": {
            "type": "number",
            "description": "Opportunity amount",
            "nullable": true
          },
          "description": {
            "type": "string",
            "description": "Detailed description of the opportunity",
            "nullable": true
          },
          "stage_name": {
            "type": "string",
            "description": "Stage of the opportunity in the sales process",
            "nullable": true,
            "enum": [
              "Prospecting",
              "Qualification",
              "Needs Analysis",
              "Value Proposition",
              "Id. Decision Makers",
              "Proposal/Price Quote",
              "Negotiation/Review",
              "Closed Won",
              "Closed Lost"
            ]
          },
          "probability": {
            "type": "number",
            "description": "Probability of closing the opportunity (0-100)",
            "nullable": true
          },
          "forecast_category_name": {
            "type": "string",
            "description": "Forecast category for the opportunity",
            "nullable": true,
            "enum": [
              "Omitted",
              "Pipeline",
              "Best Case",
              "Commit",
              "Closed"
            ]
          },
          "next_step": {
            "type": "string",
            "description": "Next step in the sales process",
            "nullable": true
          }
        },
        "description": "The input for OPPORTUNITIES_CREATE"
      },
      "SalesforceOpportunitiesCreateActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "SALESFORCE"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "OPPORTUNITIES_CREATE"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SalesforceOpportunitiesCreateActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection integration"
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The OPPORTUNITIES_CREATE service"
      },
      "SalesforceOpportunitiesUpdateActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "opportunity_id": {
            "type": "string",
            "description": "The ID of the opportunity to update",
            "nullable": true
          },
          "name": {
            "type": "string",
            "description": "Name for the opportunity",
            "nullable": true
          },
          "account_id": {
            "type": "string",
            "description": "ID of the associated account",
            "nullable": true
          },
          "close_date": {
            "nullable": true,
            "description": "Close date for the opportunity"
          },
          "amount": {
            "type": "number",
            "description": "Opportunity amount",
            "nullable": true
          },
          "description": {
            "type": "string",
            "description": "Description of the opportunity",
            "nullable": true
          },
          "stage_name": {
            "type": "string",
            "description": "Updated stage of the opportunity",
            "nullable": true,
            "enum": [
              "Prospecting",
              "Qualification",
              "Needs Analysis",
              "Value Proposition",
              "Id. Decision Makers",
              "Proposal/Price Quote",
              "Negotiation/Review",
              "Closed Won",
              "Closed Lost"
            ]
          },
          "probability": {
            "type": "number",
            "description": "Probability of closing the opportunity (0-100)",
            "nullable": true
          },
          "forecast_category_name": {
            "type": "string",
            "description": "Forecast category for the opportunity",
            "nullable": true,
            "enum": [
              "Omitted",
              "Pipeline",
              "Best Case",
              "Commit",
              "Closed"
            ]
          },
          "next_step": {
            "type": "string",
            "description": "Next step in the sales process",
            "nullable": true
          }
        },
        "description": "The input for OPPORTUNITIES_UPDATE"
      },
      "SalesforceOpportunitiesUpdateActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "SALESFORCE"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "OPPORTUNITIES_UPDATE"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SalesforceOpportunitiesUpdateActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection integration"
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The OPPORTUNITIES_UPDATE service"
      },
      "SalesforceOpportunitiesTrashActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "opportunity_id": {
            "type": "string",
            "description": "The ID of the opportunity to move to recycle bin",
            "nullable": true
          }
        },
        "description": "The input for OPPORTUNITIES_TRASH"
      },
      "SalesforceOpportunitiesTrashActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "SALESFORCE"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "OPPORTUNITIES_TRASH"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SalesforceOpportunitiesTrashActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection integration"
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The OPPORTUNITIES_TRASH service"
      },
      "SalesforceCasesGetActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "case_id": {
            "type": "string",
            "description": "The ID of the case to retrieve",
            "nullable": true
          }
        },
        "description": "The input for CASES_GET"
      },
      "SalesforceCasesGetActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "SALESFORCE"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "CASES_GET"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SalesforceCasesGetActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection integration"
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The CASES_GET service"
      },
      "SalesforceCasesSearchActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "search_text": {
            "type": "string",
            "description": "Search in case subject and description",
            "nullable": true
          },
          "origin": {
            "type": "string",
            "description": "How the case originated",
            "nullable": true,
            "enum": [
              "all",
              "Email",
              "Phone",
              "Web"
            ]
          },
          "account_id": {
            "type": "string",
            "description": "Filter by specific account",
            "nullable": true
          },
          "contact_id": {
            "type": "string",
            "description": "Filter by specific contact",
            "nullable": true
          },
          "status": {
            "type": "string",
            "description": "Filter by case status",
            "nullable": true,
            "enum": [
              "all",
              "New",
              "Working",
              "Waiting on customer",
              "Escalated",
              "Closed"
            ]
          },
          "priority": {
            "type": "string",
            "description": "Filter by case priority",
            "nullable": true,
            "enum": [
              "all",
              "High",
              "Medium",
              "Low"
            ]
          },
          "sort_field": {
            "type": "string",
            "description": "Field to sort cases by",
            "nullable": true,
            "enum": [
              "LastModifiedDate",
              "CreatedDate",
              "CaseNumber",
              "Subject",
              "Priority",
              "Status"
            ]
          },
          "sort_order": {
            "type": "string",
            "description": "Direction to sort the results",
            "nullable": true,
            "enum": [
              "DESC",
              "ASC"
            ]
          },
          "include_trashed": {
            "type": "boolean",
            "description": "Include cases in the recycle bin",
            "nullable": true
          }
        },
        "description": "The input for CASES_SEARCH"
      },
      "SalesforceCasesSearchActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "SALESFORCE"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "CASES_SEARCH"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SalesforceCasesSearchActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection integration"
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The CASES_SEARCH service"
      },
      "SalesforceCasesCreateActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "subject": {
            "type": "string",
            "description": "Subject of the case",
            "nullable": true
          },
          "description": {
            "type": "string",
            "description": "Detailed description of the case",
            "nullable": true
          },
          "status": {
            "type": "string",
            "description": "The status of the case",
            "nullable": true,
            "enum": [
              "New",
              "Working",
              "Waiting on customer",
              "Escalated",
              "Closed"
            ]
          },
          "origin": {
            "type": "string",
            "description": "How the case originated",
            "nullable": true,
            "enum": [
              "all",
              "Email",
              "Phone",
              "Web"
            ]
          },
          "priority": {
            "type": "string",
            "description": "The priority of the case",
            "nullable": true,
            "enum": [
              "High",
              "Medium",
              "Low"
            ]
          },
          "reason": {
            "type": "string",
            "description": "Reason for the case",
            "nullable": true
          },
          "account_id": {
            "type": "string",
            "description": "ID of the associated account",
            "nullable": true
          },
          "contact_id": {
            "type": "string",
            "description": "ID of the associated contact",
            "nullable": true
          }
        },
        "description": "The input for CASES_CREATE"
      },
      "SalesforceCasesCreateActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "SALESFORCE"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "CASES_CREATE"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SalesforceCasesCreateActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection integration"
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The CASES_CREATE service"
      },
      "SalesforceCasesUpdateActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "case_id": {
            "type": "string",
            "description": "The ID of the case to update",
            "nullable": true
          },
          "subject": {
            "type": "string",
            "description": "Subject of the case",
            "nullable": true
          },
          "description": {
            "type": "string",
            "description": "Description of the case",
            "nullable": true
          },
          "status": {
            "type": "string",
            "description": "Status of the case",
            "nullable": true,
            "enum": [
              "New",
              "Working",
              "Waiting on customer",
              "Escalated",
              "Closed"
            ]
          },
          "origin": {
            "type": "string",
            "description": "How the case originated",
            "nullable": true,
            "enum": [
              "all",
              "Email",
              "Phone",
              "Web"
            ]
          },
          "priority": {
            "type": "string",
            "description": "Priority of the case",
            "nullable": true,
            "enum": [
              "High",
              "Medium",
              "Low"
            ]
          },
          "reason": {
            "type": "string",
            "description": "Reason for the case",
            "nullable": true
          },
          "account_id": {
            "type": "string",
            "description": "ID of the associated account",
            "nullable": true
          },
          "contact_id": {
            "type": "string",
            "description": "ID of the associated contact",
            "nullable": true
          }
        },
        "description": "The input for CASES_UPDATE"
      },
      "SalesforceCasesUpdateActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "SALESFORCE"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "CASES_UPDATE"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SalesforceCasesUpdateActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection integration"
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The CASES_UPDATE service"
      },
      "SalesforceCasesTrashActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "case_id": {
            "type": "string",
            "description": "The ID of the case to move to recycle bin",
            "nullable": true
          }
        },
        "description": "The input for CASES_TRASH"
      },
      "SalesforceCasesTrashActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "SALESFORCE"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "CASES_TRASH"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SalesforceCasesTrashActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection integration"
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The CASES_TRASH service"
      },
      "SalesforceCampaignsGetActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "campaign_id": {
            "type": "string",
            "description": "The ID of the campaign to retrieve",
            "nullable": true
          }
        },
        "description": "The input for CAMPAIGNS_GET"
      },
      "SalesforceCampaignsGetActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "SALESFORCE"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "CAMPAIGNS_GET"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SalesforceCampaignsGetActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection integration"
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The CAMPAIGNS_GET service"
      },
      "SalesforceCampaignsSearchActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "search_text": {
            "type": "string",
            "description": "Search in campaign name",
            "nullable": true
          },
          "campaign_type": {
            "type": "string",
            "description": "Filter by campaign type",
            "nullable": true,
            "enum": [
              "all",
              "Advertisement",
              "Email",
              "Telemarketing",
              "Banner Ads",
              "Conference",
              "Public Relations",
              "Partners",
              "Referral Program",
              "Other"
            ]
          },
          "status": {
            "type": "string",
            "description": "Filter by campaign status",
            "nullable": true,
            "enum": [
              "all",
              "Planned",
              "In Progress",
              "Completed",
              "Aborted"
            ]
          },
          "is_active": {
            "type": "boolean",
            "description": "Filter by active campaigns only",
            "nullable": true
          },
          "start_date_after": {
            "nullable": true,
            "description": "Filter by campaigns starting on or after this date"
          },
          "start_date_before": {
            "nullable": true,
            "description": "Filter by campaigns starting on or before this date"
          },
          "end_date_after": {
            "nullable": true,
            "description": "Filter by campaigns ending on or after this date"
          },
          "end_date_before": {
            "nullable": true,
            "description": "Filter by campaigns ending on or before this date"
          },
          "parent_id": {
            "type": "string",
            "description": "Filter by parent campaign",
            "nullable": true
          },
          "sort_field": {
            "type": "string",
            "description": "Field to sort campaigns by",
            "nullable": true,
            "enum": [
              "LastModifiedDate",
              "CreatedDate",
              "StartDate",
              "EndDate",
              "Name",
              "IsActive"
            ]
          },
          "sort_order": {
            "type": "string",
            "description": "Direction to sort the results",
            "nullable": true,
            "enum": [
              "DESC",
              "ASC"
            ]
          },
          "include_trashed": {
            "type": "boolean",
            "description": "Include campaigns in the recycle bin",
            "nullable": true
          }
        },
        "description": "The input for CAMPAIGNS_SEARCH"
      },
      "SalesforceCampaignsSearchActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "SALESFORCE"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "CAMPAIGNS_SEARCH"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SalesforceCampaignsSearchActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection integration"
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The CAMPAIGNS_SEARCH service"
      },
      "SalesforceCampaignsCreateActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Name of the campaign",
            "nullable": true
          },
          "description": {
            "type": "string",
            "description": "Detailed description of the campaign",
            "nullable": true
          },
          "status": {
            "type": "string",
            "description": "The status of the campaign",
            "nullable": true,
            "enum": [
              "Planned",
              "In Progress",
              "Completed",
              "Aborted"
            ]
          },
          "type": {
            "type": "string",
            "description": "The type of campaign",
            "nullable": true,
            "enum": [
              "Advertisement",
              "Email",
              "Telemarketing",
              "Banner Ads",
              "Conference",
              "Public Relations",
              "Partners",
              "Referral Program",
              "Other"
            ]
          },
          "start_date": {
            "nullable": true,
            "description": "The start date of the campaign"
          },
          "end_date": {
            "nullable": true,
            "description": "The end date of the campaign"
          },
          "is_active": {
            "type": "boolean",
            "description": "Whether the campaign is active",
            "nullable": true
          },
          "budgeted_cost": {
            "type": "number",
            "description": "The budgeted cost of the campaign",
            "nullable": true
          },
          "expected_revenue": {
            "type": "number",
            "description": "The expected revenue from the campaign",
            "nullable": true
          },
          "number_sent": {
            "type": "number",
            "description": "The number of elements sent in the campaign",
            "nullable": true
          },
          "actual_cost": {
            "type": "number",
            "description": "The actual cost incurred for the campaign",
            "nullable": true
          },
          "expected_response": {
            "type": "string",
            "description": "Expected response from the campaign",
            "nullable": true
          },
          "parent_id": {
            "type": "string",
            "description": "ID of the parent campaign",
            "nullable": true
          }
        },
        "description": "The input for CAMPAIGNS_CREATE"
      },
      "SalesforceCampaignsCreateActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "SALESFORCE"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "CAMPAIGNS_CREATE"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SalesforceCampaignsCreateActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection integration"
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The CAMPAIGNS_CREATE service"
      },
      "SalesforceCampaignsUpdateActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "campaign_id": {
            "type": "string",
            "description": "The ID of the campaign to update",
            "nullable": true
          },
          "name": {
            "type": "string",
            "description": "Updated name of the campaign",
            "nullable": true
          },
          "description": {
            "type": "string",
            "description": "Updated description of the campaign",
            "nullable": true
          },
          "status": {
            "type": "string",
            "description": "Updated status of the campaign",
            "nullable": true,
            "enum": [
              "Planned",
              "In Progress",
              "Completed",
              "Aborted"
            ]
          },
          "type": {
            "type": "string",
            "description": "Updated type of the campaign",
            "nullable": true,
            "enum": [
              "Advertisement",
              "Email",
              "Telemarketing",
              "Banner Ads",
              "Conference",
              "Public Relations",
              "Partners",
              "Referral Program",
              "Other"
            ]
          },
          "start_date": {
            "nullable": true,
            "description": "Updated start date of the campaign"
          },
          "end_date": {
            "nullable": true,
            "description": "Updated end date of the campaign"
          },
          "is_active": {
            "type": "boolean",
            "description": "Whether the campaign is active",
            "nullable": true
          },
          "budgeted_cost": {
            "type": "number",
            "description": "Updated budgeted cost of the campaign",
            "nullable": true
          },
          "expected_revenue": {
            "type": "number",
            "description": "Updated expected revenue from the campaign",
            "nullable": true
          },
          "actual_cost": {
            "type": "number",
            "description": "The actual cost incurred for the campaign",
            "nullable": true
          },
          "number_sent": {
            "type": "number",
            "description": "The number of elements sent in the campaign",
            "nullable": true
          },
          "expected_response": {
            "type": "string",
            "description": "Expected response from the campaign",
            "nullable": true
          },
          "parent_id": {
            "type": "string",
            "description": "Updated ID of the parent campaign",
            "nullable": true
          }
        },
        "description": "The input for CAMPAIGNS_UPDATE"
      },
      "SalesforceCampaignsUpdateActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "SALESFORCE"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "CAMPAIGNS_UPDATE"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SalesforceCampaignsUpdateActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection integration"
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The CAMPAIGNS_UPDATE service"
      },
      "SalesforceCampaignsTrashActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "campaign_id": {
            "type": "string",
            "description": "The ID of the campaign to move to recycle bin",
            "nullable": true
          }
        },
        "description": "The input for CAMPAIGNS_TRASH"
      },
      "SalesforceCampaignsTrashActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "SALESFORCE"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "CAMPAIGNS_TRASH"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SalesforceCampaignsTrashActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection integration"
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The CAMPAIGNS_TRASH service"
      },
      "SalesforceFilesSearchActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "search_text": {
            "type": "string",
            "description": "Search for files by title or description",
            "nullable": true
          },
          "related_record_id": {
            "type": "string",
            "description": "List files related to a specific Salesforce record",
            "nullable": true
          },
          "file_type": {
            "type": "string",
            "description": "Filter by file extension (e.g. pdf, docx)",
            "nullable": true,
            "enum": [
              "all",
              "pdf",
              "docx",
              "xlsx",
              "pptx",
              "jpg,png,svg",
              "csv",
              "txt"
            ]
          },
          "sort_field": {
            "type": "string",
            "description": "Field to sort results by",
            "nullable": true,
            "enum": [
              "LastModifiedDate",
              "CreatedDate",
              "Title",
              "ContentSize"
            ]
          },
          "sort_order": {
            "type": "string",
            "description": "Direction to sort",
            "nullable": true,
            "enum": [
              "DESC",
              "ASC"
            ]
          },
          "include_trashed": {
            "type": "boolean",
            "description": "Include files that have been moved to the recycle bin",
            "nullable": true
          }
        },
        "description": "The input for FILES_SEARCH"
      },
      "SalesforceFilesSearchActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "SALESFORCE"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "FILES_SEARCH"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SalesforceFilesSearchActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection integration"
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The FILES_SEARCH service"
      },
      "SalesforceFilesUploadActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "file": {
            "nullable": true,
            "description": "File to upload (select a file or provide a URL)"
          },
          "name": {
            "type": "string",
            "description": "Name for the uploaded file",
            "nullable": true
          },
          "description": {
            "type": "string",
            "description": "Description for the file",
            "nullable": true
          },
          "related_record_id": {
            "type": "string",
            "description": "Salesforce record ID to associate this file with (e.g., Account, Opportunity)",
            "nullable": true
          },
          "visibility": {
            "type": "string",
            "description": "Controls who can see this file when it is linked to a record",
            "nullable": true,
            "enum": [
              "AllUsers",
              "InternalUsers",
              "SharedUsers"
            ]
          }
        },
        "description": "The input for FILES_UPLOAD"
      },
      "SalesforceFilesUploadActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "SALESFORCE"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "FILES_UPLOAD"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SalesforceFilesUploadActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection integration"
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The FILES_UPLOAD service"
      },
      "SalesforceFilesDownloadActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "file_id": {
            "type": "string",
            "description": "The Salesforce File ID of the file to retrieve",
            "nullable": true
          },
          "storage": {
            "type": "string",
            "description": "Persistent storage will keep the file even after the run finishes. Temporary storage will delete the file after 24 hours",
            "nullable": true,
            "enum": [
              "PERSISTENT",
              "TEMPORARY"
            ]
          },
          "visibility": {
            "type": "string",
            "description": "Whether the file is private or public, private files URLs are signed with a token and can be accessed temporarily",
            "nullable": true,
            "enum": [
              "PRIVATE",
              "PUBLIC"
            ]
          }
        },
        "description": "The input for FILES_DOWNLOAD"
      },
      "SalesforceFilesDownloadActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "SALESFORCE"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "FILES_DOWNLOAD"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SalesforceFilesDownloadActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection integration"
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The FILES_DOWNLOAD service"
      },
      "SalesforceSoqlSearchActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "query": {
            "type": "string",
            "description": "Custom SOQL query to execute (must start with SELECT)",
            "nullable": true
          },
          "include_trashed": {
            "type": "boolean",
            "description": "Include records in the Recycle Bin (deleted but not permanently)",
            "nullable": true
          },
          "batch_size": {
            "type": "number",
            "description": "Maximum number of records to return (1-2000)",
            "nullable": true
          },
          "enforce_limit": {
            "type": "boolean",
            "description": "Automatically add a LIMIT clause if not present in the query",
            "nullable": true
          }
        },
        "description": "The input for SOQL_SEARCH"
      },
      "SalesforceSoqlSearchActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "SALESFORCE"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "SOQL_SEARCH"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SalesforceSoqlSearchActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection integration"
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The SOQL_SEARCH service"
      },
      "EncompassCasesGetActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "case_id": {
            "type": "string",
            "description": "The ID of the case to retrieve",
            "nullable": true
          }
        },
        "description": "The input for CASES_GET"
      },
      "EncompassCasesGetActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "ENCOMPASS"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "CASES_GET"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/EncompassCasesGetActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection integration"
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The CASES_GET service"
      },
      "EncompassCasesUpdateActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "case_id": {
            "type": "string",
            "description": "The ID of the case to update",
            "nullable": true
          },
          "data": {
            "type": "string",
            "description": "The partial application data to update stringified as JSON",
            "nullable": true
          }
        },
        "description": "The input for CASES_UPDATE"
      },
      "EncompassCasesUpdateActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "ENCOMPASS"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "CASES_UPDATE"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/EncompassCasesUpdateActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection integration"
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The CASES_UPDATE service"
      },
      "EncompassDocumentsListActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "case_id": {
            "type": "string",
            "description": "Optional: List documents for a specific case only",
            "nullable": true
          }
        },
        "description": "The input for DOCUMENTS_LIST"
      },
      "EncompassDocumentsListActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "ENCOMPASS"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "DOCUMENTS_LIST"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/EncompassDocumentsListActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection integration"
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The DOCUMENTS_LIST service"
      },
      "EncompassDocumentsCreateActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "case_id": {
            "type": "string",
            "description": "The case to create the document in",
            "nullable": true
          },
          "document_name": {
            "type": "string",
            "description": "Name for the new document placeholder",
            "nullable": true
          },
          "application_id": {
            "type": "string",
            "description": "ID of the borrower application to associate with the document",
            "nullable": true
          }
        },
        "description": "The input for DOCUMENTS_CREATE"
      },
      "EncompassDocumentsCreateActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "ENCOMPASS"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "DOCUMENTS_CREATE"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/EncompassDocumentsCreateActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection integration"
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The DOCUMENTS_CREATE service"
      },
      "EncompassDocumentsDeleteActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "case_id": {
            "type": "string",
            "description": "The case containing the document",
            "nullable": true
          },
          "document_id": {
            "type": "string",
            "description": "ID of the document to delete",
            "nullable": true
          }
        },
        "description": "The input for DOCUMENTS_DELETE"
      },
      "EncompassDocumentsDeleteActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "ENCOMPASS"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "DOCUMENTS_DELETE"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/EncompassDocumentsDeleteActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection integration"
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The DOCUMENTS_DELETE service"
      },
      "EncompassDocumentsAttachmentsListActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "case_id": {
            "type": "string",
            "description": "The case containing the document",
            "nullable": true
          },
          "document_id": {
            "type": "string",
            "description": "The document to list attachments for",
            "nullable": true
          }
        },
        "description": "The input for DOCUMENTS_ATTACHMENTS_LIST"
      },
      "EncompassDocumentsAttachmentsListActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "ENCOMPASS"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "DOCUMENTS_ATTACHMENTS_LIST"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/EncompassDocumentsAttachmentsListActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection integration"
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The DOCUMENTS_ATTACHMENTS_LIST service"
      },
      "EncompassDocumentsAssignAttachmentsActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "case_id": {
            "type": "string",
            "description": "The case containing the document",
            "nullable": true
          },
          "document_id": {
            "type": "string",
            "description": "The document to assign files to",
            "nullable": true
          },
          "attachment_ids": {
            "type": "array",
            "description": "IDs of the attachments to assign to this document",
            "nullable": true,
            "items": {
              "type": "string"
            }
          }
        },
        "description": "The input for DOCUMENTS_ASSIGN_ATTACHMENTS"
      },
      "EncompassDocumentsAssignAttachmentsActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "ENCOMPASS"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "DOCUMENTS_ASSIGN_ATTACHMENTS"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/EncompassDocumentsAssignAttachmentsActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection integration"
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The DOCUMENTS_ASSIGN_ATTACHMENTS service"
      },
      "EncompassDocumentsUnassignAttachmentsActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "case_id": {
            "type": "string",
            "description": "The case containing the document",
            "nullable": true
          },
          "attachment_ids": {
            "type": "array",
            "description": "IDs of the attachments to unassign from this document",
            "nullable": true,
            "items": {
              "type": "string"
            }
          },
          "document_id": {
            "type": "string",
            "description": "The document to unassign attachments from",
            "nullable": true
          }
        },
        "description": "The input for DOCUMENTS_UNASSIGN_ATTACHMENTS"
      },
      "EncompassDocumentsUnassignAttachmentsActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "ENCOMPASS"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "DOCUMENTS_UNASSIGN_ATTACHMENTS"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/EncompassDocumentsUnassignAttachmentsActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection integration"
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The DOCUMENTS_UNASSIGN_ATTACHMENTS service"
      },
      "EncompassAttachmentsListActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "case_id": {
            "type": "string",
            "description": "Case ID to filter attachments by",
            "nullable": true
          }
        },
        "description": "The input for ATTACHMENTS_LIST"
      },
      "EncompassAttachmentsListActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "ENCOMPASS"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "ATTACHMENTS_LIST"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/EncompassAttachmentsListActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection integration"
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The ATTACHMENTS_LIST service"
      },
      "EncompassAttachmentsUploadActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "case_id": {
            "type": "string",
            "description": "The case containing the document",
            "nullable": true
          },
          "document_id": {
            "type": "string",
            "description": "The document to attach files to",
            "nullable": true
          },
          "file_urls": {
            "type": "array",
            "description": "URLs of the files to upload",
            "nullable": true,
            "items": {
              "type": "string"
            }
          }
        },
        "description": "The input for ATTACHMENTS_UPLOAD"
      },
      "EncompassAttachmentsUploadActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "ENCOMPASS"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "ATTACHMENTS_UPLOAD"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/EncompassAttachmentsUploadActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection integration"
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The ATTACHMENTS_UPLOAD service"
      },
      "EncompassAttachmentsDeleteActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "case_id": {
            "type": "string",
            "description": "Case ID to delete attachments from",
            "nullable": true
          },
          "attachment_ids": {
            "type": "array",
            "description": "IDs of the attachments to delete",
            "nullable": true,
            "items": {
              "type": "string"
            }
          }
        },
        "description": "The input for ATTACHMENTS_DELETE"
      },
      "EncompassAttachmentsDeleteActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "ENCOMPASS"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "ATTACHMENTS_DELETE"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/EncompassAttachmentsDeleteActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection integration"
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The ATTACHMENTS_DELETE service"
      },
      "WhatsappOnMessageStatusActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "status_types": {
            "type": "string",
            "description": "Status types to track (comma-separated: delivered,read,failed)",
            "nullable": true
          }
        },
        "description": "The input for ON_MESSAGE_STATUS"
      },
      "WhatsappOnMessageStatusActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "WHATSAPP"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "ON_MESSAGE_STATUS"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/WhatsappOnMessageStatusActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection integration"
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The ON_MESSAGE_STATUS service"
      },
      "WhatsappOnMessageReceivedActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "filter_senders": {
            "type": "string",
            "description": "Only process messages from these phone numbers. Leave empty to accept all. Separate multiple numbers with commas.",
            "nullable": true
          }
        },
        "description": "The input for ON_MESSAGE_RECEIVED"
      },
      "WhatsappOnMessageReceivedActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "WHATSAPP"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "ON_MESSAGE_RECEIVED"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/WhatsappOnMessageReceivedActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection integration"
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The ON_MESSAGE_RECEIVED service"
      },
      "WhatsappMessagesSendTextActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "to": {
            "type": "string",
            "description": "Recipient phone number with country code (e.g., +5215512345678)",
            "nullable": true
          },
          "message_text": {
            "type": "string",
            "description": "Free-form text message content",
            "nullable": true
          }
        },
        "description": "The input for MESSAGES_SEND_TEXT"
      },
      "WhatsappMessagesSendTextActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "WHATSAPP"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "MESSAGES_SEND_TEXT"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/WhatsappMessagesSendTextActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection integration"
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The MESSAGES_SEND_TEXT service"
      },
      "WhatsappMessagesSendTemplateActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "to": {
            "type": "string",
            "description": "Recipient phone number with country code (e.g., +5215512345678)",
            "nullable": true
          },
          "template_name": {
            "type": "string",
            "description": "Name of the approved template from Meta Business Manager",
            "nullable": true
          },
          "template_language": {
            "type": "string",
            "description": "Language code for the template (e.g., en_US, es_MX)",
            "nullable": true
          },
          "template_parameters": {
            "type": "string",
            "description": "Comma-separated parameters for template variables (e.g., \"John,December 25th\" for {{1}} and {{2}})",
            "nullable": true
          }
        },
        "description": "The input for MESSAGES_SEND_TEMPLATE"
      },
      "WhatsappMessagesSendTemplateActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "WHATSAPP"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "MESSAGES_SEND_TEMPLATE"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/WhatsappMessagesSendTemplateActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection integration"
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The MESSAGES_SEND_TEMPLATE service"
      },
      "WhatsappMessagesSendInteractiveActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "to": {
            "type": "string",
            "description": "Recipient phone number with country code",
            "nullable": true
          },
          "interactive_type": {
            "type": "string",
            "description": "Choose between quick reply buttons or list menu",
            "nullable": true,
            "enum": [
              "button",
              "list"
            ]
          },
          "header_text": {
            "type": "string",
            "description": "Optional header text",
            "nullable": true
          },
          "body_text": {
            "type": "string",
            "description": "Main message content (required)",
            "nullable": true
          },
          "footer_text": {
            "type": "string",
            "description": "Optional footer text",
            "nullable": true
          },
          "buttons": {
            "type": "string",
            "description": "Format: id:text,id:text (max 3 buttons, 20 chars each)",
            "nullable": true
          },
          "list_button_text": {
            "type": "string",
            "description": "For lists: Text on the menu button",
            "nullable": true
          },
          "list_sections": {
            "type": "string",
            "description": "For lists: Format: ##Section Title\\nrow_id|Title|Description",
            "nullable": true
          }
        },
        "description": "The input for MESSAGES_SEND_INTERACTIVE"
      },
      "WhatsappMessagesSendInteractiveActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "WHATSAPP"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "MESSAGES_SEND_INTERACTIVE"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/WhatsappMessagesSendInteractiveActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection integration"
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The MESSAGES_SEND_INTERACTIVE service"
      },
      "WhatsappMessagesSendMediaActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "to": {
            "type": "string",
            "description": "Recipient phone number with country code",
            "nullable": true
          },
          "media_type": {
            "type": "string",
            "description": "Media Type",
            "nullable": true,
            "enum": [
              "image",
              "document",
              "audio",
              "video"
            ]
          },
          "media_url": {
            "type": "string",
            "description": "Public URL of media file",
            "nullable": true
          },
          "caption": {
            "type": "string",
            "description": "Optional caption",
            "nullable": true
          },
          "filename": {
            "type": "string",
            "description": "Optional filename (documents only)",
            "nullable": true
          }
        },
        "description": "The input for MESSAGES_SEND_MEDIA"
      },
      "WhatsappMessagesSendMediaActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "WHATSAPP"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "MESSAGES_SEND_MEDIA"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/WhatsappMessagesSendMediaActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection integration"
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The MESSAGES_SEND_MEDIA service"
      },
      "WhatsappMessagesMarkReadActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "message_id": {
            "type": "string",
            "description": "WhatsApp message ID to mark as read (from ON_MESSAGE_RECEIVED)",
            "nullable": true
          },
          "sender_number": {
            "type": "string",
            "description": "Phone number who sent the message (from field in ON_MESSAGE_RECEIVED)",
            "nullable": true
          }
        },
        "description": "The input for MESSAGES_MARK_READ"
      },
      "WhatsappMessagesMarkReadActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "WHATSAPP"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "MESSAGES_MARK_READ"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/WhatsappMessagesMarkReadActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection integration"
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The MESSAGES_MARK_READ service"
      },
      "RapidapiHttpRequestActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "url": {
            "type": "string",
            "description": "Complete RapidAPI URL (e.g., https://weatherapi-com.p.rapidapi.com/current.json)",
            "nullable": true
          },
          "method": {
            "type": "string",
            "description": "The HTTP method to use for the request",
            "nullable": true,
            "enum": [
              "GET",
              "POST",
              "PUT",
              "DELETE",
              "PATCH",
              "HEAD",
              "OPTIONS"
            ]
          },
          "query_params": {
            "type": "array",
            "description": "Query parameters to append to the URL (for GET, DELETE, etc.) in the format key=value",
            "nullable": true,
            "items": {
              "type": "string"
            }
          },
          "body": {
            "type": "array",
            "description": "Body parameter for POST, PUT, PATCH requests (ignored for GET, DELETE) in the format key=value",
            "nullable": true,
            "items": {
              "type": "string"
            }
          },
          "headers": {
            "type": "array",
            "description": "Additional headers to send (X-RapidAPI headers are added automatically) in the format key=value",
            "nullable": true,
            "items": {
              "type": "string"
            }
          }
        },
        "description": "The input for HTTP_REQUEST"
      },
      "RapidapiHttpRequestActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "RAPIDAPI"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "HTTP_REQUEST"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RapidapiHttpRequestActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection integration"
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The HTTP_REQUEST service"
      },
      "RapidapiGetRequestActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "url": {
            "type": "string",
            "description": "Complete RapidAPI URL (e.g., https://weather-api167.p.rapidapi.com/api/weather/forecast)",
            "nullable": true
          },
          "query_params": {
            "type": "array",
            "description": "Query parameter to send with the request in the format key=value",
            "nullable": true,
            "items": {
              "type": "string"
            }
          }
        },
        "description": "The input for GET_REQUEST"
      },
      "RapidapiGetRequestActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "RAPIDAPI"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "GET_REQUEST"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RapidapiGetRequestActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection integration"
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The GET_REQUEST service"
      },
      "RapidapiPostRequestActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "url": {
            "type": "string",
            "description": "Complete RapidAPI URL (e.g., https://url-shortener-service.p.rapidapi.com/shorten)",
            "nullable": true
          },
          "body": {
            "type": "array",
            "description": "Body parameters to send with the request in the format key=value",
            "nullable": true,
            "items": {
              "type": "string"
            }
          },
          "headers": {
            "type": "array",
            "description": "Additional headers to send (X-RapidAPI headers are added automatically) in the format key=value",
            "nullable": true,
            "items": {
              "type": "string"
            }
          }
        },
        "description": "The input for POST_REQUEST"
      },
      "RapidapiPostRequestActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "RAPIDAPI"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "POST_REQUEST"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RapidapiPostRequestActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection integration"
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The POST_REQUEST service"
      },
      "RapidapiDaxyEnrichContactDaxyEnrichContactActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "email": {
            "type": "string",
            "description": "Email address to enrich and get contact information",
            "nullable": true
          }
        },
        "description": "The input for DAXY_ENRICH_CONTACT"
      },
      "RapidapiDaxyEnrichContactDaxyEnrichContactActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "RAPIDAPI_DAXY_ENRICH_CONTACT"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "DAXY_ENRICH_CONTACT"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RapidapiDaxyEnrichContactDaxyEnrichContactActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The DAXY_ENRICH_CONTACT service"
      },
      "RapidapiZillowZillowWorkingApiProByAddressActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "propertyaddress": {
            "type": "string",
            "description": "Exact property address to search for detailed information",
            "nullable": true
          }
        },
        "description": "The input for ZILLOW_WORKING_API_PRO_BY_ADDRESS"
      },
      "RapidapiZillowZillowWorkingApiProByAddressActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "RAPIDAPI_ZILLOW"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "ZILLOW_WORKING_API_PRO_BY_ADDRESS"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RapidapiZillowZillowWorkingApiProByAddressActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The ZILLOW_WORKING_API_PRO_BY_ADDRESS service"
      },
      "RapidapiZillowZillowWorkingApiProByZpidActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "zpid": {
            "type": "string",
            "description": "Unique Zillow Property ID to get detailed property information",
            "nullable": true
          }
        },
        "description": "The input for ZILLOW_WORKING_API_PRO_BY_ZPID"
      },
      "RapidapiZillowZillowWorkingApiProByZpidActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "RAPIDAPI_ZILLOW"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "ZILLOW_WORKING_API_PRO_BY_ZPID"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RapidapiZillowZillowWorkingApiProByZpidActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The ZILLOW_WORKING_API_PRO_BY_ZPID service"
      },
      "RapidapiZillowZillowWorkingApiProByUrlActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "url": {
            "type": "string",
            "description": "Complete Zillow URL containing ZPID for individual property details. Do not use for apartment URLs containing /b/ or /apartment/",
            "nullable": true
          }
        },
        "description": "The input for ZILLOW_WORKING_API_PRO_BY_URL"
      },
      "RapidapiZillowZillowWorkingApiProByUrlActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "RAPIDAPI_ZILLOW"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "ZILLOW_WORKING_API_PRO_BY_URL"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RapidapiZillowZillowWorkingApiProByUrlActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The ZILLOW_WORKING_API_PRO_BY_URL service"
      },
      "RapidapiZillowZillowWorkingApiSearchByAddressActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "location": {
            "type": "string",
            "description": "Enter an address, neighborhood, city, or ZIP code. For Multi-inputs up to 5 (separate with a semicolon): New York, NY; Seattle, WA; 78006",
            "nullable": true
          },
          "listingStatus": {
            "type": "string",
            "description": "Select which type of property data you want to find",
            "nullable": true,
            "enum": [
              "For_Sale",
              "For_Rent",
              "Sold"
            ]
          },
          "page": {
            "type": "number",
            "description": "Zillow provides 1000 results on each search. This endpoint returns 200 results per call. Maximum page number is 5.",
            "nullable": true
          },
          "sortOrder": {
            "type": "string",
            "description": "Select how you want to sort your search results",
            "nullable": true,
            "enum": [
              "Homes_for_you",
              "Rental_Priority_Score",
              "Newest",
              "Price_Low_High",
              "Price_High_Low",
              "Most_Recent"
            ]
          },
          "listPriceRange": {
            "type": "string",
            "description": "Price range filter. Examples: min:5000, max:500000, min:5000,max:500000",
            "nullable": true
          },
          "bed_min": {
            "type": "string",
            "description": "Minimum number of bedrooms",
            "nullable": true,
            "enum": [
              "No_Min",
              "1",
              "2",
              "3",
              "4",
              "5"
            ]
          },
          "bed_max": {
            "type": "string",
            "description": "Maximum number of bedrooms",
            "nullable": true,
            "enum": [
              "No_Max",
              "1",
              "2",
              "3",
              "4",
              "5",
              "6"
            ]
          },
          "bathrooms": {
            "type": "string",
            "description": "Number of bathrooms filter",
            "nullable": true,
            "enum": [
              "Any",
              "OnePlus",
              "OneHalfPlus",
              "TwoPlus",
              "ThreePlus",
              "FourPlus"
            ]
          },
          "homeType": {
            "type": "string",
            "description": "Property type filter. For multiple inputs, separate with comma. Options: Houses, Townhomes, Multi-family, Condos/Co-ops, Lots-Land, Apartments, Manufactured",
            "nullable": true
          }
        },
        "description": "The input for ZILLOW_WORKING_API_SEARCH_BY_ADDRESS"
      },
      "RapidapiZillowZillowWorkingApiSearchByAddressActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "RAPIDAPI_ZILLOW"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "ZILLOW_WORKING_API_SEARCH_BY_ADDRESS"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RapidapiZillowZillowWorkingApiSearchByAddressActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The ZILLOW_WORKING_API_SEARCH_BY_ADDRESS service"
      },
      "RapidapiZillowZillowWorkingApiSearchByAiPromptActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "ai_search_prompt": {
            "type": "string",
            "description": "Natural language search prompt describing the properties you want to find",
            "nullable": true
          },
          "page": {
            "type": "number",
            "description": "Page number for pagination results",
            "nullable": true
          },
          "sortOrder": {
            "type": "string",
            "description": "Select how you want to sort your search results",
            "nullable": true,
            "enum": [
              "Homes_for_you",
              "Rental_Priority_Score",
              "Price_High_Low",
              "Price_Low_High",
              "Newest",
              "Bedrooms",
              "Bathrooms",
              "Square_Feet",
              "Lot_Size"
            ]
          },
          "keywords": {
            "type": "string",
            "description": "Enter different keywords like MLS #, yard, agent, etc. to refine your search",
            "nullable": true
          }
        },
        "description": "The input for ZILLOW_WORKING_API_SEARCH_BY_AI_PROMPT"
      },
      "RapidapiZillowZillowWorkingApiSearchByAiPromptActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "RAPIDAPI_ZILLOW"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "ZILLOW_WORKING_API_SEARCH_BY_AI_PROMPT"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RapidapiZillowZillowWorkingApiSearchByAiPromptActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The ZILLOW_WORKING_API_SEARCH_BY_AI_PROMPT service"
      },
      "RapidapiZillowZillowWorkingApiSearchByUrlActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "url": {
            "type": "string",
            "description": "Complete Zillow URL from search results or property listing page",
            "nullable": true
          },
          "page": {
            "type": "number",
            "description": "Page number for pagination when extracting search results from URL",
            "nullable": true
          }
        },
        "description": "The input for ZILLOW_WORKING_API_SEARCH_BY_URL"
      },
      "RapidapiZillowZillowWorkingApiSearchByUrlActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "RAPIDAPI_ZILLOW"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "ZILLOW_WORKING_API_SEARCH_BY_URL"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RapidapiZillowZillowWorkingApiSearchByUrlActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The ZILLOW_WORKING_API_SEARCH_BY_URL service"
      },
      "RapidapiZillowZillowWorkingApiApartmentDetailsActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "bylotid": {
            "type": "string",
            "description": "Valid LotID for the apartment. You can find it from the Lotid From Address endpoint.",
            "nullable": true
          },
          "byapturl": {
            "type": "string",
            "description": "Direct apartment URL from Zillow. Must contain /b/ or /apartments/ path.",
            "nullable": true
          }
        },
        "description": "The input for ZILLOW_WORKING_API_APARTMENT_DETAILS"
      },
      "RapidapiZillowZillowWorkingApiApartmentDetailsActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "RAPIDAPI_ZILLOW"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "ZILLOW_WORKING_API_APARTMENT_DETAILS"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RapidapiZillowZillowWorkingApiApartmentDetailsActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The ZILLOW_WORKING_API_APARTMENT_DETAILS service"
      },
      "RapidapiZillowZillowWorkingApiLotidFromAddressActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "propertyaddress": {
            "type": "string",
            "description": "Address of apartment or building to get LotID. Only apartment/building addresses will return a LotID.",
            "nullable": true
          }
        },
        "description": "The input for ZILLOW_WORKING_API_LOTID_FROM_ADDRESS"
      },
      "RapidapiZillowZillowWorkingApiLotidFromAddressActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "RAPIDAPI_ZILLOW"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "ZILLOW_WORKING_API_LOTID_FROM_ADDRESS"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RapidapiZillowZillowWorkingApiLotidFromAddressActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The ZILLOW_WORKING_API_LOTID_FROM_ADDRESS service"
      },
      "RapidapiZillowZillowWorkingApiPriceHistoryActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "byzpid": {
            "type": "string",
            "description": "Zillow Property ID to get price history",
            "nullable": true
          },
          "byurl": {
            "type": "string",
            "description": "Zillow property URL to get price history",
            "nullable": true
          },
          "byaddress": {
            "type": "string",
            "description": "Property address to get price history",
            "nullable": true
          }
        },
        "description": "The input for ZILLOW_WORKING_API_PRICE_HISTORY"
      },
      "RapidapiZillowZillowWorkingApiPriceHistoryActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "RAPIDAPI_ZILLOW"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "ZILLOW_WORKING_API_PRICE_HISTORY"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RapidapiZillowZillowWorkingApiPriceHistoryActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The ZILLOW_WORKING_API_PRICE_HISTORY service"
      },
      "RapidapiZillowZillowWorkingApiSimilarPropertiesActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "byzpid": {
            "type": "string",
            "description": "Zillow Property ID to find similar properties",
            "nullable": true
          },
          "byurl": {
            "type": "string",
            "description": "Zillow property URL to find similar properties",
            "nullable": true
          },
          "byaddress": {
            "type": "string",
            "description": "Property address to find similar properties",
            "nullable": true
          },
          "bylotid": {
            "type": "string",
            "description": "LotID of the property to find similar properties",
            "nullable": true
          }
        },
        "description": "The input for ZILLOW_WORKING_API_SIMILAR_PROPERTIES"
      },
      "RapidapiZillowZillowWorkingApiSimilarPropertiesActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "RAPIDAPI_ZILLOW"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "ZILLOW_WORKING_API_SIMILAR_PROPERTIES"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RapidapiZillowZillowWorkingApiSimilarPropertiesActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The ZILLOW_WORKING_API_SIMILAR_PROPERTIES service"
      },
      "RapidapiZillowZillowWorkingApiAgentSearchActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "location": {
            "type": "string",
            "description": "Enter city, neighborhood, or zip code",
            "nullable": true
          },
          "agentName": {
            "type": "string",
            "description": "Enter an agent name to search for specific agents",
            "nullable": true
          },
          "page": {
            "type": "number",
            "description": "Page number for pagination",
            "nullable": true
          },
          "isBuying": {
            "type": "boolean",
            "description": "Filter for agents who specialize in helping buyers",
            "nullable": true
          },
          "isSelling": {
            "type": "boolean",
            "description": "Filter for agents who specialize in helping sellers",
            "nullable": true
          },
          "isTopAgent": {
            "type": "boolean",
            "description": "Filter for top-rated agents only",
            "nullable": true
          },
          "priceRange": {
            "type": "string",
            "description": "Set minimum and maximum price range (format: min,max)",
            "nullable": true
          },
          "specialties": {
            "type": "string",
            "description": "Agent specialties separated by commas. Options: first-time-home-buyers, foreclosure, investment-properties, lot-or-land, luxury-homes, military-or-veterans, new-construction, property-management, relocation, rentals, senior-communities, vacation-short-term-rentals",
            "nullable": true
          },
          "languages": {
            "type": "string",
            "description": "Languages spoken by agent, separated by commas. Default is English. Options: arabic, bengali, cantonese, farsi, filipino, french, german, greek, hebrew, hindi, hungarian, italian, japanese, korean, mandarin, polish, portuguese, russian, spanish, thai, turkish, vietnamese",
            "nullable": true
          }
        },
        "description": "The input for ZILLOW_WORKING_API_AGENT_SEARCH"
      },
      "RapidapiZillowZillowWorkingApiAgentSearchActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "RAPIDAPI_ZILLOW"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "ZILLOW_WORKING_API_AGENT_SEARCH"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RapidapiZillowZillowWorkingApiAgentSearchActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The ZILLOW_WORKING_API_AGENT_SEARCH service"
      },
      "RapidapiZillowZillowWorkingApiAgentDetailsActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "agent_link": {
            "type": "string",
            "description": "Enter agent's Zillow page URL",
            "nullable": true
          },
          "username": {
            "type": "string",
            "description": "Enter an agent username. If both agent_link and username are provided, agent_link takes priority.",
            "nullable": true
          }
        },
        "description": "The input for ZILLOW_WORKING_API_AGENT_DETAILS"
      },
      "RapidapiZillowZillowWorkingApiAgentDetailsActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "RAPIDAPI_ZILLOW"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "ZILLOW_WORKING_API_AGENT_DETAILS"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RapidapiZillowZillowWorkingApiAgentDetailsActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The ZILLOW_WORKING_API_AGENT_DETAILS service"
      },
      "RapidapiZillowZillowWorkingApiHousingMarketActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "search_query": {
            "type": "string",
            "description": "Search any city/state/zip code. To search for full country, use: USA/United States",
            "nullable": true
          },
          "home_type": {
            "type": "string",
            "description": "Type of homes to analyze in the market data",
            "nullable": true,
            "enum": [
              "All_Homes",
              "Single_Family",
              "Condos"
            ]
          },
          "exclude_rentalMarketTrends": {
            "type": "boolean",
            "description": "Set to False if you want to include rental market data. Default is True (excludes rental data).",
            "nullable": true
          },
          "exclude_neighborhoods_zhvi": {
            "type": "boolean",
            "description": "Set to False if you want to include neighborhood-level home value index data. Default is True (excludes neighborhood ZHVI).",
            "nullable": true
          }
        },
        "description": "The input for ZILLOW_WORKING_API_HOUSING_MARKET"
      },
      "RapidapiZillowZillowWorkingApiHousingMarketActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "RAPIDAPI_ZILLOW"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "ZILLOW_WORKING_API_HOUSING_MARKET"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RapidapiZillowZillowWorkingApiHousingMarketActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The ZILLOW_WORKING_API_HOUSING_MARKET service"
      },
      "RapidapiLinkedinScraperApiLinkedinScraperApiProfileDetailsActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "username": {
            "type": "string",
            "description": "LinkedIn profile username (e.g., \"satyanadella\") or full URL (e.g., \"linkedin.com/in/satyanadella\") or URN",
            "nullable": true
          }
        },
        "description": "The input for LINKEDIN_SCRAPER_API_PROFILE_DETAILS"
      },
      "RapidapiLinkedinScraperApiLinkedinScraperApiProfileDetailsActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "RAPIDAPI_LINKEDIN_SCRAPER_API"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "LINKEDIN_SCRAPER_API_PROFILE_DETAILS"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RapidapiLinkedinScraperApiLinkedinScraperApiProfileDetailsActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The LINKEDIN_SCRAPER_API_PROFILE_DETAILS service"
      },
      "RapidapiLinkedinScraperApiLinkedinScraperApiProfilePostsActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "username": {
            "type": "string",
            "description": "LinkedIn profile username (e.g., \"satyanadella\" or \"linkedin.com/in/satyanadella\")",
            "nullable": true
          },
          "page_number": {
            "type": "number",
            "description": "Page number for paginated results (starts from 1)",
            "nullable": true
          },
          "pagination_token": {
            "type": "string",
            "description": "Token from previous page response for paginated requests (only needed for pages after first)",
            "nullable": true
          }
        },
        "description": "The input for LINKEDIN_SCRAPER_API_PROFILE_POSTS"
      },
      "RapidapiLinkedinScraperApiLinkedinScraperApiProfilePostsActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "RAPIDAPI_LINKEDIN_SCRAPER_API"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "LINKEDIN_SCRAPER_API_PROFILE_POSTS"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RapidapiLinkedinScraperApiLinkedinScraperApiProfilePostsActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The LINKEDIN_SCRAPER_API_PROFILE_POSTS service"
      },
      "RapidapiLinkedinScraperApiLinkedinScraperApiProfileCommentsActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "username": {
            "type": "string",
            "description": "LinkedIn profile username (e.g., \"satyanadella\" or \"linkedin.com/in/satyanadella\")",
            "nullable": true
          },
          "page_number": {
            "type": "number",
            "description": "Page number for paginated results (starts from 1)",
            "nullable": true
          },
          "pagination_token": {
            "type": "string",
            "description": "Token from previous page response for paginated requests (only needed for pages after first)",
            "nullable": true
          }
        },
        "description": "The input for LINKEDIN_SCRAPER_API_PROFILE_COMMENTS"
      },
      "RapidapiLinkedinScraperApiLinkedinScraperApiProfileCommentsActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "RAPIDAPI_LINKEDIN_SCRAPER_API"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "LINKEDIN_SCRAPER_API_PROFILE_COMMENTS"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RapidapiLinkedinScraperApiLinkedinScraperApiProfileCommentsActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The LINKEDIN_SCRAPER_API_PROFILE_COMMENTS service"
      },
      "RapidapiJsearchJsearchSearchActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "query": {
            "type": "string",
            "description": "Free-form jobs search query. Include job title and location for best results.",
            "nullable": true
          },
          "page": {
            "type": "number",
            "description": "Page to return (each page includes up to 10 results). Range: 1-100",
            "nullable": true
          },
          "num_pages": {
            "type": "number",
            "description": "Number of pages to return, starting from page. Range: 1-20. Note: >1 page = 2x cost, >10 pages = 3x cost.",
            "nullable": true
          },
          "country": {
            "type": "string",
            "description": "Country code (ISO 3166-1 alpha-2). Examples: us, ca, gb, de, fr, au, in, jp, br, mx",
            "nullable": true
          },
          "language": {
            "type": "string",
            "description": "Language code (ISO 639). Examples: en, es, fr, de, pt, it, ja, ko, zh",
            "nullable": true
          },
          "date_posted": {
            "type": "string",
            "description": "Find jobs posted within specified time. Values: all, today, 3days, week, month",
            "nullable": true,
            "enum": [
              "all",
              "today",
              "3days",
              "week",
              "month"
            ]
          },
          "work_from_home": {
            "type": "boolean",
            "description": "Only return work from home / remote jobs",
            "nullable": true
          },
          "employment_types": {
            "type": "string",
            "description": "Comma-separated list. Values: FULLTIME, CONTRACTOR, PARTTIME, INTERN",
            "nullable": true,
            "enum": [
              "FULLTIME",
              "CONTRACTOR",
              "PARTTIME",
              "INTERN"
            ]
          },
          "job_requirements": {
            "type": "string",
            "description": "Comma-separated list. Values: under_3_years_experience, more_than_3_years_experience, no_experience, no_degree",
            "nullable": true,
            "enum": [
              "under_3_years_experience",
              "more_than_3_years_experience",
              "no_experience",
              "no_degree"
            ]
          },
          "radius": {
            "type": "number",
            "description": "Return jobs within distance from location specified in query (in kilometers)",
            "nullable": true
          },
          "exclude_job_publishers": {
            "type": "string",
            "description": "Comma-separated list of job publishers to exclude from results",
            "nullable": true
          },
          "fields": {
            "type": "string",
            "description": "Comma-separated list of job fields to include in response. Leave empty for all fields.",
            "nullable": true
          }
        },
        "description": "The input for JSEARCH_SEARCH"
      },
      "RapidapiJsearchJsearchSearchActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "RAPIDAPI_JSEARCH"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "JSEARCH_SEARCH"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RapidapiJsearchJsearchSearchActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The JSEARCH_SEARCH service"
      },
      "RapidapiJsearchJsearchJobDetailsActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "job_id": {
            "type": "string",
            "description": "Job ID or multiple Job IDs separated by comma. Max 20 IDs per request.",
            "nullable": true
          },
          "country": {
            "type": "string",
            "description": "Country code (ISO 3166-1 alpha-2). Examples: us, ca, gb, de, fr, au, in, jp, br, mx",
            "nullable": true
          },
          "language": {
            "type": "string",
            "description": "Language code (ISO 639). Examples: en, es, fr, de, pt, it, ja, ko, zh",
            "nullable": true
          },
          "fields": {
            "type": "string",
            "description": "Comma-separated list of fields to include in response. Leave empty for all fields.",
            "nullable": true
          }
        },
        "description": "The input for JSEARCH_JOB_DETAILS"
      },
      "RapidapiJsearchJsearchJobDetailsActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "RAPIDAPI_JSEARCH"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "JSEARCH_JOB_DETAILS"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RapidapiJsearchJsearchJobDetailsActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The JSEARCH_JOB_DETAILS service"
      },
      "RapidapiInstagramSocialInstagramSocialGetInfoActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "username_or_id_or_url": {
            "type": "string",
            "description": "Insert a username (e.g. mrbeast), user id (e.g. 2278169415) or URL (e.g. instagram.com/mrbeast)",
            "nullable": true
          },
          "include_about": {
            "type": "boolean",
            "description": "Include \"About this account\" information: country and date_joined (in about field). Default: false. Note: enabling this will cost one extra request",
            "nullable": true
          },
          "url_embed_safe": {
            "type": "boolean",
            "description": "If you need to embed images/videos on your website, set to \"true\" to evade CORS restrictions. URLs are valid from 6 to 24 hours. Default: false",
            "nullable": true
          }
        },
        "description": "The input for INSTAGRAM_SOCIAL_GET_INFO"
      },
      "RapidapiInstagramSocialInstagramSocialGetInfoActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "RAPIDAPI_INSTAGRAM_SOCIAL"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "INSTAGRAM_SOCIAL_GET_INFO"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RapidapiInstagramSocialInstagramSocialGetInfoActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The INSTAGRAM_SOCIAL_GET_INFO service"
      },
      "RapidapiInstagramSocialInstagramSocialGetPostsActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "username_or_id_or_url": {
            "type": "string",
            "description": "Insert a username (e.g. mrbeast), user id (e.g. 2278169415) or URL (e.g. instagram.com/mrbeast)",
            "nullable": true
          },
          "pagination_token": {
            "type": "string",
            "description": "Use the value from the previous request to retrieve the continuation of the list. Leave empty in the first request.",
            "nullable": true
          },
          "url_embed_safe": {
            "type": "boolean",
            "description": "If you need to embed images/videos on your website, set to \"true\" to evade CORS restrictions. URLs are valid from 6 to 24 hours. Default: false",
            "nullable": true
          }
        },
        "description": "The input for INSTAGRAM_SOCIAL_GET_POSTS"
      },
      "RapidapiInstagramSocialInstagramSocialGetPostsActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "RAPIDAPI_INSTAGRAM_SOCIAL"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "INSTAGRAM_SOCIAL_GET_POSTS"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RapidapiInstagramSocialInstagramSocialGetPostsActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The INSTAGRAM_SOCIAL_GET_POSTS service"
      },
      "RapidapiInstagramSocialInstagramSocialGetFollowersActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "username_or_id_or_url": {
            "type": "string",
            "description": "Insert a username (e.g. mrbeast), user id (e.g. 2278169415) or URL (e.g. instagram.com/mrbeast)",
            "nullable": true
          },
          "amount": {
            "type": "number",
            "description": "Minimum number of followers to retrieve. Maximum: 1000. Default: 50. Note: costs one extra request for every 50 users requested (e.g. amount=100 costs 2 requests)",
            "nullable": true
          },
          "pagination_token": {
            "type": "string",
            "description": "Use the value from the previous request to retrieve the continuation of the list. Leave empty in the first request.",
            "nullable": true
          }
        },
        "description": "The input for INSTAGRAM_SOCIAL_GET_FOLLOWERS"
      },
      "RapidapiInstagramSocialInstagramSocialGetFollowersActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "RAPIDAPI_INSTAGRAM_SOCIAL"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "INSTAGRAM_SOCIAL_GET_FOLLOWERS"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RapidapiInstagramSocialInstagramSocialGetFollowersActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The INSTAGRAM_SOCIAL_GET_FOLLOWERS service"
      },
      "RapidapiInstagramSocialInstagramSocialGetFollowingActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "username_or_id_or_url": {
            "type": "string",
            "description": "Insert a username (e.g. mrbeast), user id (e.g. 2278169415) or URL (e.g. instagram.com/mrbeast)",
            "nullable": true
          },
          "amount": {
            "type": "number",
            "description": "Minimum number of following users to retrieve. Maximum: 1000. Default: 50. Note: costs one extra request for every 50 users requested (e.g. amount=100 costs 2 requests)",
            "nullable": true
          },
          "pagination_token": {
            "type": "string",
            "description": "Use the value from the previous request to retrieve the continuation of the list. Leave empty in the first request.",
            "nullable": true
          }
        },
        "description": "The input for INSTAGRAM_SOCIAL_GET_FOLLOWING"
      },
      "RapidapiInstagramSocialInstagramSocialGetFollowingActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "RAPIDAPI_INSTAGRAM_SOCIAL"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "INSTAGRAM_SOCIAL_GET_FOLLOWING"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RapidapiInstagramSocialInstagramSocialGetFollowingActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The INSTAGRAM_SOCIAL_GET_FOLLOWING service"
      },
      "RapidapiInstagramSocialInstagramSocialGetCommentsActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "code_or_id_or_url": {
            "type": "string",
            "description": "The code in the URL after /p/ or /reel/ or /tv/ (e.g. instagram.com/p/CxYQJO8xuC6/). ID or full URL also accepted.",
            "nullable": true
          },
          "pagination_token": {
            "type": "string",
            "description": "Use the value from the previous request to retrieve the continuation of the list. Leave empty in the first request.",
            "nullable": true
          },
          "sort_by": {
            "type": "string",
            "description": "Sort by \"recent\" or \"popular\". Default: \"recent\". Note: using \"popular\" includes a preview of inner comments",
            "nullable": true
          }
        },
        "description": "The input for INSTAGRAM_SOCIAL_GET_COMMENTS"
      },
      "RapidapiInstagramSocialInstagramSocialGetCommentsActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "RAPIDAPI_INSTAGRAM_SOCIAL"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "INSTAGRAM_SOCIAL_GET_COMMENTS"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RapidapiInstagramSocialInstagramSocialGetCommentsActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The INSTAGRAM_SOCIAL_GET_COMMENTS service"
      },
      "RapidapiInstagramSocialInstagramSocialGetLikesActionServiceInputSchema": {
        "type": "object",
        "properties": {
          "code_or_id_or_url": {
            "type": "string",
            "description": "The code in the URL after /p/ or /reel/ or /tv/ (e.g. instagram.com/p/CxYQJO8xuC6/). ID or full URL also accepted.",
            "nullable": true
          },
          "pagination_token": {
            "type": "string",
            "description": "Use the value from the previous request to retrieve the continuation of the list. Leave empty in the first request.",
            "nullable": true
          }
        },
        "description": "The input for INSTAGRAM_SOCIAL_GET_LIKES"
      },
      "RapidapiInstagramSocialInstagramSocialGetLikesActionServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "RAPIDAPI_INSTAGRAM_SOCIAL"
            ],
            "description": "The type of the service"
          },
          "action": {
            "type": "string",
            "enum": [
              "INSTAGRAM_SOCIAL_GET_LIKES"
            ]
          },
          "definitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicFieldsInputDefinition"
            },
            "description": "List of dynamic fields definitions"
          },
          "input": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RapidapiInstagramSocialInstagramSocialGetLikesActionServiceInputSchema"
              },
              {
                "type": "string",
                "description": "The input string template"
              }
            ]
          }
        },
        "required": [
          "type",
          "action",
          "input"
        ],
        "description": "The INSTAGRAM_SOCIAL_GET_LIKES service"
      },
      "ServiceSchema": {
        "anyOf": [
          {
            "$ref": "#/components/schemas/SchedulerOnScheduleActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/ToolsWebSearchActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/FilesDownloadFileActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/FilesUploadFileActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/FilesDeleteFileActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/FilesExtractPagesActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/FilesExtractContentsActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/FilesExtractImagesActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/FilesMarkdownToPdfActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/FilesHtmlToPdfActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/CollectionsRecordsSearchActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/CollectionsRecordsGetActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/CollectionsRecordsCreateActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/CollectionsRecordsUpdateActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/CollectionsRecordsDeleteActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/CollectionsRecordsAnalyzeActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/CollectionsRecordsCancelActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/CollectionsRulesUpdateActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/CollectionsRulesUpdateAllActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/StaticSynapseRunActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/GoogleSheetsOnSpreadsheetsNewRowActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/GoogleSheetsSpreadsheetsListActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/GoogleSheetsSpreadsheetsAppendRowActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/GoogleSheetsWorksheetsListActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/GoogleDriveOnNewFileActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/GoogleDriveFilesSearchActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/GoogleDriveFilesGetActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/GoogleDriveFilesUploadActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/GoogleDriveFilesDownloadActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/GoogleDriveFilesMoveActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/GoogleDriveFilesCopyActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/GoogleDriveFilesUpdateActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/GoogleDriveFilesTrashActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/GoogleDriveFoldersSearchActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/GoogleDriveFoldersCreateActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/GoogleDriveFoldersTrashActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/GoogleCalendarOnCalendarNewEventActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/GoogleCalendarCalendarsListActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/GoogleCalendarCalendarsGetActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/GoogleCalendarCalendarsCreateActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/GoogleCalendarCalendarsUpdateActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/GoogleCalendarCalendarsDeleteActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/GoogleCalendarCalendarsClearActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/GoogleCalendarEventsSearchActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/GoogleCalendarEventsGetActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/GoogleCalendarEventsCreateActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/GoogleCalendarEventsUpdateActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/GoogleCalendarEventsDeleteActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/GoogleCalendarEventsQuickAddActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/GmailOnReceivedEmailActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/GmailOnSentEmailActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/GmailEmailsSearchActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/GmailEmailsSendActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/GmailEmailsReplyActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/GmailEmailsGetActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/GmailEmailsUpdateActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/GmailEmailsAttachmentsDownloadActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/GmailDraftsSearchActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/GmailDraftsSendActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/GmailDraftsCreateActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/GmailLabelsListActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/GmailLabelsCreateActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/SlackOnChannelNewMessageActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/SlackChannelsMessagesListActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/SlackSearchActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/SlackChannelsSendMessageActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/SlackChannelsReplyMessageActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/NotionOnDatabasesNewRowActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/NotionOnDatabasesUpdatedRowActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/NotionSearchActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/NotionPagesCreateActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/NotionPagesGetContentActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/NotionPagesAddContentActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/NotionPagesAddCommentActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/NotionDatabasesSearchActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/NotionDatabasesAddRowActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/NotionDatabasesUpdateRowActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/SalesforceOnContactsNewActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/SalesforceOnLeadsNewActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/SalesforceOnOpportunitiesNewActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/SalesforceOnCasesNewActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/SalesforceOnOpportunitiesStageChangeActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/SalesforceLeadsGetActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/SalesforceLeadsSearchActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/SalesforceLeadsCreateActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/SalesforceLeadsUpdateActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/SalesforceLeadsTrashActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/SalesforceContactsGetActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/SalesforceContactsSearchActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/SalesforceContactsCreateActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/SalesforceContactsUpdateActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/SalesforceContactsTrashActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/SalesforceAccountsGetActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/SalesforceAccountsSearchActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/SalesforceAccountsCreateActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/SalesforceAccountsUpdateActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/SalesforceAccountsTrashActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/SalesforceOpportunitiesGetActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/SalesforceOpportunitiesSearchActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/SalesforceOpportunitiesCreateActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/SalesforceOpportunitiesUpdateActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/SalesforceOpportunitiesTrashActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/SalesforceCasesGetActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/SalesforceCasesSearchActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/SalesforceCasesCreateActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/SalesforceCasesUpdateActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/SalesforceCasesTrashActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/SalesforceCampaignsGetActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/SalesforceCampaignsSearchActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/SalesforceCampaignsCreateActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/SalesforceCampaignsUpdateActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/SalesforceCampaignsTrashActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/SalesforceFilesSearchActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/SalesforceFilesUploadActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/SalesforceFilesDownloadActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/SalesforceSoqlSearchActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/EncompassCasesGetActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/EncompassCasesUpdateActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/EncompassDocumentsListActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/EncompassDocumentsCreateActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/EncompassDocumentsDeleteActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/EncompassDocumentsAttachmentsListActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/EncompassDocumentsAssignAttachmentsActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/EncompassDocumentsUnassignAttachmentsActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/EncompassAttachmentsListActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/EncompassAttachmentsUploadActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/EncompassAttachmentsDeleteActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/WhatsappOnMessageStatusActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/WhatsappOnMessageReceivedActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/WhatsappMessagesSendTextActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/WhatsappMessagesSendTemplateActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/WhatsappMessagesSendInteractiveActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/WhatsappMessagesSendMediaActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/WhatsappMessagesMarkReadActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/RapidapiHttpRequestActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/RapidapiGetRequestActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/RapidapiPostRequestActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/RapidapiDaxyEnrichContactDaxyEnrichContactActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/RapidapiZillowZillowWorkingApiProByAddressActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/RapidapiZillowZillowWorkingApiProByZpidActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/RapidapiZillowZillowWorkingApiProByUrlActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/RapidapiZillowZillowWorkingApiSearchByAddressActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/RapidapiZillowZillowWorkingApiSearchByAiPromptActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/RapidapiZillowZillowWorkingApiSearchByUrlActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/RapidapiZillowZillowWorkingApiApartmentDetailsActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/RapidapiZillowZillowWorkingApiLotidFromAddressActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/RapidapiZillowZillowWorkingApiPriceHistoryActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/RapidapiZillowZillowWorkingApiSimilarPropertiesActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/RapidapiZillowZillowWorkingApiAgentSearchActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/RapidapiZillowZillowWorkingApiAgentDetailsActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/RapidapiZillowZillowWorkingApiHousingMarketActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/RapidapiLinkedinScraperApiLinkedinScraperApiProfileDetailsActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/RapidapiLinkedinScraperApiLinkedinScraperApiProfilePostsActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/RapidapiLinkedinScraperApiLinkedinScraperApiProfileCommentsActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/RapidapiJsearchJsearchSearchActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/RapidapiJsearchJsearchJobDetailsActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/RapidapiInstagramSocialInstagramSocialGetInfoActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/RapidapiInstagramSocialInstagramSocialGetPostsActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/RapidapiInstagramSocialInstagramSocialGetFollowersActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/RapidapiInstagramSocialInstagramSocialGetFollowingActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/RapidapiInstagramSocialInstagramSocialGetCommentsActionServiceSchema"
          },
          {
            "$ref": "#/components/schemas/RapidapiInstagramSocialInstagramSocialGetLikesActionServiceSchema"
          }
        ],
        "description": "The service configuration for the step"
      },
      "StepServiceSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "service"
            ],
            "description": "The type of the step"
          },
          "key": {
            "$ref": "#/components/schemas/StepKeySchema"
          },
          "display": {
            "$ref": "#/components/schemas/StepDisplaySchema"
          },
          "conditional": {
            "type": "string",
            "description": "A condition to determine if the step should run"
          },
          "loop": {
            "type": "string",
            "description": "A loop condition for the step to repeat running until the condition is met"
          },
          "throw_on_error": {
            "type": "boolean",
            "description": "Whether to throw an error if the step fails"
          },
          "input_connected": {
            "type": "boolean",
            "description": "Whether the step is connected to the input"
          },
          "destinations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/StepKeySchema"
            },
            "description": "The step keys that this step connects to"
          },
          "position": {
            "type": "array",
            "items": {
              "type": "number"
            },
            "minItems": 2,
            "maxItems": 2,
            "description": "The position of the step on the canvas"
          },
          "size": {
            "type": "array",
            "items": {
              "anyOf": [
                {
                  "type": "number",
                  "minimum": 100
                },
                {
                  "type": "number",
                  "minimum": 0
                }
              ]
            },
            "minItems": 2,
            "maxItems": 2,
            "description": "The size of the step on the canvas"
          },
          "auto": {
            "$ref": "#/components/schemas/StepAutoConfigSchema"
          },
          "service": {
            "$ref": "#/components/schemas/ServiceSchema"
          }
        },
        "required": [
          "type",
          "key",
          "service"
        ],
        "description": "A step that runs a service integration, like a file upload or a third-party service"
      },
      "StepCortexUseSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "cortex_use"
            ],
            "description": "The type of the step"
          },
          "key": {
            "$ref": "#/components/schemas/StepKeySchema"
          },
          "display": {
            "$ref": "#/components/schemas/StepDisplaySchema"
          },
          "conditional": {
            "type": "string",
            "description": "A condition to determine if the step should run"
          },
          "loop": {
            "type": "string",
            "description": "A loop condition for the step to repeat running until the condition is met"
          },
          "throw_on_error": {
            "type": "boolean",
            "description": "Whether to throw an error if the step fails"
          },
          "input_connected": {
            "type": "boolean",
            "description": "Whether the step is connected to the input"
          },
          "destinations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/StepKeySchema"
            },
            "description": "The step keys that this step connects to"
          },
          "position": {
            "type": "array",
            "items": {
              "type": "number"
            },
            "minItems": 2,
            "maxItems": 2,
            "description": "The position of the step on the canvas"
          },
          "size": {
            "type": "array",
            "items": {
              "anyOf": [
                {
                  "type": "number",
                  "minimum": 100
                },
                {
                  "type": "number",
                  "minimum": 0
                }
              ]
            },
            "minItems": 2,
            "maxItems": 2,
            "description": "The size of the step on the canvas"
          },
          "auto": {
            "$ref": "#/components/schemas/StepAutoConfigSchema"
          },
          "input": {
            "allOf": [
              {
                "$ref": "#/components/schemas/WorkflowInputValuesSchema"
              },
              {
                "description": "Input values for the Cortex workflow"
              }
            ]
          },
          "workflow_id": {
            "type": "string"
          },
          "workflow_version_id": {
            "$ref": "#/components/schemas/WorkflowVersionIdSchema"
          }
        },
        "required": [
          "type",
          "key",
          "input"
        ],
        "description": "Cortex Use workflow step with pre-configured workflow"
      },
      "StepSchema": {
        "oneOf": [
          {
            "$ref": "#/components/schemas/StepNoteSchema"
          },
          {
            "$ref": "#/components/schemas/StepInputSchema"
          },
          {
            "$ref": "#/components/schemas/StepBranchSchema"
          },
          {
            "$ref": "#/components/schemas/StepCodeSchema"
          },
          {
            "$ref": "#/components/schemas/StepModelSchema"
          },
          {
            "$ref": "#/components/schemas/StepHttpRequestSchema"
          },
          {
            "$ref": "#/components/schemas/StepBrowserSchema"
          },
          {
            "$ref": "#/components/schemas/StepWorkflowSchema"
          },
          {
            "$ref": "#/components/schemas/StepServiceSchema"
          },
          {
            "$ref": "#/components/schemas/StepCortexUseSchema"
          }
        ],
        "discriminator": {
          "propertyName": "type",
          "mapping": {
            "note": "#/components/schemas/StepNoteSchema",
            "input": "#/components/schemas/StepInputSchema",
            "branch": "#/components/schemas/StepBranchSchema",
            "code": "#/components/schemas/StepCodeSchema",
            "model": "#/components/schemas/StepModelSchema",
            "http_request": "#/components/schemas/StepHttpRequestSchema",
            "browser": "#/components/schemas/StepBrowserSchema",
            "workflow": "#/components/schemas/StepWorkflowSchema",
            "service": "#/components/schemas/StepServiceSchema",
            "cortex_use": "#/components/schemas/StepCortexUseSchema"
          }
        }
      },
      "InputValuesSchema": {
        "type": "object",
        "nullable": true,
        "additionalProperties": {
          "nullable": true
        },
        "description": "Values of the input fields"
      },
      "InputOptionsDisplaySchema": {
        "type": "object",
        "properties": {
          "field": {
            "$ref": "#/components/schemas/InputFieldLayoutSchema"
          },
          "container": {
            "$ref": "#/components/schemas/InputContainerSchema"
          },
          "hidden": {
            "type": "boolean",
            "description": "Indicates whether the input field is hidden from the UI"
          }
        },
        "description": "Display options for the input fields"
      },
      "InputOptionsSchema": {
        "type": "object",
        "properties": {
          "display": {
            "$ref": "#/components/schemas/InputOptionsDisplaySchema"
          }
        },
        "description": "Global options for the input fields"
      },
      "PartialWorkflowUpdateSchema": {
        "type": "object",
        "properties": {
          "new_step": {
            "type": "object",
            "properties": {
              "data": {
                "$ref": "#/components/schemas/StepSchema"
              },
              "before_step": {
                "type": "string"
              }
            },
            "required": [
              "data"
            ]
          },
          "rename_step": {
            "type": "object",
            "properties": {
              "key": {
                "type": "string"
              },
              "new_key": {
                "type": "string"
              }
            },
            "required": [
              "key",
              "new_key"
            ]
          },
          "update_step": {
            "type": "object",
            "properties": {
              "key": {
                "type": "string"
              },
              "data": {
                "type": "object",
                "properties": {}
              }
            },
            "required": [
              "key",
              "data"
            ]
          },
          "update_step_order": {
            "type": "object",
            "properties": {
              "key": {
                "type": "string"
              },
              "before_step": {
                "type": "string"
              }
            },
            "required": [
              "key"
            ]
          },
          "delete_step": {
            "type": "string"
          },
          "delete_paths": {
            "type": "object",
            "properties": {
              "key": {
                "type": "string"
              },
              "paths": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            },
            "required": [
              "key",
              "paths"
            ]
          }
        },
        "description": "Partial update of a workflow"
      },
      "UpdateWorkflowSchema": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 2,
            "maxLength": 128
          },
          "description": {
            "type": "string",
            "nullable": true,
            "maxLength": 1024
          },
          "enabled": {
            "type": "boolean"
          },
          "retention": {
            "$ref": "#/components/schemas/WorkflowRunDataRetentionConfigSchema"
          },
          "visibility": {
            "type": "string",
            "enum": [
              "PRIVATE",
              "UNLISTED",
              "SHARED",
              "PUBLIC"
            ]
          },
          "from_workflow_id": {
            "type": "string"
          },
          "from_workflow_version_id": {
            "type": "string"
          },
          "from_template_id": {
            "type": "string"
          },
          "tags_ids": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "maxItems": 20
          },
          "key": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "input": {
            "$ref": "#/components/schemas/InputDefinitionSchema"
          },
          "steps": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/StepSchema"
            },
            "maxItems": 100
          },
          "input_default": {
            "$ref": "#/components/schemas/InputValuesSchema"
          },
          "input_options": {
            "$ref": "#/components/schemas/InputOptionsSchema"
          },
          "partial": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PartialWorkflowUpdateSchema"
            }
          },
          "request_resync": {
            "type": "boolean"
          }
        }
      },
      "UpdateWorkflowUserEventSchema": {
        "type": "object",
        "properties": {
          "cursor": {
            "type": "array",
            "items": {
              "type": "number"
            },
            "minItems": 2,
            "maxItems": 2,
            "description": "Cursor position"
          },
          "center": {
            "type": "array",
            "items": {
              "type": "number"
            },
            "minItems": 2,
            "maxItems": 2,
            "description": "Center of the view"
          },
          "zoom": {
            "type": "number",
            "description": "Zoom level"
          },
          "caret": {
            "type": "array",
            "items": {
              "type": "number"
            },
            "minItems": 2,
            "maxItems": 2,
            "description": "Caret position"
          },
          "step": {
            "type": "string",
            "maxLength": 128,
            "description": "Selected or hovered step key"
          },
          "focus": {
            "type": "string",
            "maxLength": 512,
            "description": "Focused step path"
          },
          "run": {
            "type": "string",
            "maxLength": 128,
            "description": "Selected run id"
          },
          "following": {
            "type": "string",
            "maxLength": 256,
            "description": "Following client id"
          }
        }
      },
      "WorkflowInteractionScrollEventSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "scroll"
            ]
          },
          "step": {
            "type": "string",
            "maxLength": 128
          },
          "element": {
            "type": "string",
            "maxLength": 128
          },
          "value": {
            "type": "number"
          }
        },
        "required": [
          "type",
          "step",
          "element",
          "value"
        ]
      },
      "WorkflowInteractionEventSchema": {
        "oneOf": [
          {
            "$ref": "#/components/schemas/WorkflowInteractionScrollEventSchema"
          }
        ],
        "discriminator": {
          "propertyName": "type",
          "mapping": {
            "scroll": "#/components/schemas/WorkflowInteractionScrollEventSchema"
          }
        },
        "description": "Workflow event for interaction actions"
      },
      "UpdateWorkflowEventSchema": {
        "oneOf": [
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "update"
                ]
              },
              "data": {
                "$ref": "#/components/schemas/UpdateWorkflowSchema"
              }
            },
            "required": [
              "type",
              "data"
            ]
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "user"
                ]
              },
              "data": {
                "$ref": "#/components/schemas/UpdateWorkflowUserEventSchema"
              }
            },
            "required": [
              "type",
              "data"
            ]
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "user-state"
                ]
              },
              "data": {
                "$ref": "#/components/schemas/UpdateWorkflowUserEventSchema"
              }
            },
            "required": [
              "type",
              "data"
            ]
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "interaction"
                ]
              },
              "data": {
                "$ref": "#/components/schemas/WorkflowInteractionEventSchema"
              }
            },
            "required": [
              "type",
              "data"
            ]
          }
        ]
      },
      "ModelAutoSchema": {
        "type": "object",
        "properties": {
          "provider": {
            "type": "string",
            "enum": [
              "auto"
            ]
          },
          "model": {
            "type": "string",
            "enum": [
              "auto"
            ]
          },
          "messages": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ModelMessagesListSchema"
              },
              {
                "type": "string"
              }
            ]
          },
          "temperature": {
            "type": "number",
            "minimum": 0,
            "maximum": 2,
            "description": "Model temperature"
          },
          "response_format": {
            "$ref": "#/components/schemas/ModelResponseFormatSchema"
          },
          "response_format_schema": {
            "type": "object",
            "additionalProperties": {
              "nullable": true
            },
            "description": "JSON schema for structured outputs (used when response_format is \"json\"). For Anthropic, this defines the output_format schema. Must be a valid JSON Schema object."
          },
          "max_tokens": {
            "type": "number",
            "minimum": 0,
            "description": "Maximum tokens to generate"
          },
          "tools": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "$ref": "#/components/schemas/ModelToolSchema"
                    }
                  ]
                }
              },
              {
                "type": "string"
              }
            ],
            "description": "List of tools to call. Can be an array or a string (JSON array or template expression like {{step1.tools}})"
          },
          "tools_parallel": {
            "type": "boolean",
            "description": "Whether to call tools in parallel"
          },
          "tools_mode": {
            "$ref": "#/components/schemas/ModelToolsModeSchema"
          },
          "max_iterations": {
            "type": "number",
            "minimum": 1,
            "maximum": 512,
            "description": "Maximum number of iterations for the model when using tools or reasoning"
          },
          "features": {
            "$ref": "#/components/schemas/ModelFeaturesSchema"
          }
        },
        "required": [
          "provider",
          "model",
          "messages"
        ]
      },
      "ModelTextSchema": {
        "type": "object",
        "properties": {
          "provider": {
            "type": "string",
            "enum": [
              "text"
            ]
          },
          "model": {
            "type": "string",
            "enum": [
              "openai",
              "anthropic",
              "google"
            ]
          },
          "messages": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ModelMessagesListSchema"
              },
              {
                "type": "string"
              }
            ]
          },
          "temperature": {
            "type": "number",
            "minimum": 0,
            "maximum": 2,
            "description": "Model temperature"
          },
          "response_format": {
            "$ref": "#/components/schemas/ModelResponseFormatSchema"
          },
          "response_format_schema": {
            "type": "object",
            "additionalProperties": {
              "nullable": true
            },
            "description": "JSON schema for structured outputs (used when response_format is \"json\"). For Anthropic, this defines the output_format schema. Must be a valid JSON Schema object."
          },
          "max_tokens": {
            "type": "number",
            "minimum": 0,
            "description": "Maximum tokens to generate"
          },
          "tools": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "$ref": "#/components/schemas/ModelToolSchema"
                    }
                  ]
                }
              },
              {
                "type": "string"
              }
            ],
            "description": "List of tools to call. Can be an array or a string (JSON array or template expression like {{step1.tools}})"
          },
          "tools_parallel": {
            "type": "boolean",
            "description": "Whether to call tools in parallel"
          },
          "tools_mode": {
            "$ref": "#/components/schemas/ModelToolsModeSchema"
          },
          "max_iterations": {
            "type": "number",
            "minimum": 1,
            "maximum": 512,
            "description": "Maximum number of iterations for the model when using tools or reasoning"
          },
          "features": {
            "$ref": "#/components/schemas/ModelFeaturesSchema"
          }
        },
        "required": [
          "provider",
          "model",
          "messages"
        ]
      },
      "ModelCloudflareSchema": {
        "type": "object",
        "properties": {
          "provider": {
            "type": "string",
            "enum": [
              "cloudflare"
            ]
          },
          "model": {
            "type": "string",
            "enum": [
              "@cf/meta/llama-3.2-11b-vision-instruct"
            ]
          },
          "messages": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ModelMessagesListSchema"
              },
              {
                "type": "string"
              }
            ]
          },
          "temperature": {
            "type": "number",
            "minimum": 0,
            "maximum": 2,
            "description": "Model temperature"
          },
          "response_format": {
            "$ref": "#/components/schemas/ModelResponseFormatSchema"
          },
          "response_format_schema": {
            "type": "object",
            "additionalProperties": {
              "nullable": true
            },
            "description": "JSON schema for structured outputs (used when response_format is \"json\"). For Anthropic, this defines the output_format schema. Must be a valid JSON Schema object."
          },
          "max_tokens": {
            "type": "number",
            "minimum": 0,
            "description": "Maximum tokens to generate"
          },
          "tools": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "$ref": "#/components/schemas/ModelToolSchema"
                    }
                  ]
                }
              },
              {
                "type": "string"
              }
            ],
            "description": "List of tools to call. Can be an array or a string (JSON array or template expression like {{step1.tools}})"
          },
          "tools_parallel": {
            "type": "boolean",
            "description": "Whether to call tools in parallel"
          },
          "tools_mode": {
            "$ref": "#/components/schemas/ModelToolsModeSchema"
          },
          "max_iterations": {
            "type": "number",
            "minimum": 1,
            "maximum": 512,
            "description": "Maximum number of iterations for the model when using tools or reasoning"
          },
          "features": {
            "$ref": "#/components/schemas/ModelFeaturesSchema"
          }
        },
        "required": [
          "provider",
          "model",
          "messages"
        ]
      },
      "ModelOpenaiSchema": {
        "type": "object",
        "properties": {
          "provider": {
            "type": "string",
            "enum": [
              "openai"
            ]
          },
          "model": {
            "type": "string",
            "enum": [
              "gpt-5-nano-2025-08-07",
              "gpt-5-mini-2025-08-07",
              "gpt-5-2025-08-07",
              "gpt-5.2-2025-12-17",
              "gpt-5.2-pro-2025-12-17",
              "gpt-4.1-2025-04-14",
              "gpt-4.1-nano-2025-04-14",
              "gpt-4.1-mini-2025-04-14",
              "o3-2025-04-16",
              "o3-mini-2025-01-31",
              "o4-mini-2025-04-16",
              "gpt-5.4-2026-03-05",
              "gpt-5.4-pro-2026-03-05",
              "gpt-5.4-mini",
              "gpt-5.4-nano",
              "gpt-6-sol",
              "gpt-6-luna",
              "gpt-5.6-terra",
              "gpt-5.5-2026-04-23",
              "gpt-5.5-pro-2026-04-23",
              "gpt-5-pro-2025-08-07",
              "gpt-5-codex",
              "gpt-5.1-codex",
              "gpt-5.1-codex-max",
              "gpt-5.1-codex-mini",
              "gpt-5.2-codex",
              "gpt-5.3-codex",
              "gpt-4o-mini-transcribe",
              "gpt-4o-mini-tts",
              "gpt-image-2.5",
              "gpt-image-2"
            ]
          },
          "messages": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ModelMessagesListSchema"
              },
              {
                "type": "string"
              }
            ]
          },
          "temperature": {
            "type": "number",
            "minimum": 0,
            "maximum": 2,
            "description": "Model temperature"
          },
          "response_format": {
            "$ref": "#/components/schemas/ModelResponseFormatSchema"
          },
          "response_format_schema": {
            "type": "object",
            "additionalProperties": {
              "nullable": true
            },
            "description": "JSON schema for structured outputs (used when response_format is \"json\"). For Anthropic, this defines the output_format schema. Must be a valid JSON Schema object."
          },
          "max_tokens": {
            "type": "number",
            "minimum": 0,
            "description": "Maximum tokens to generate"
          },
          "tools": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "$ref": "#/components/schemas/ModelToolSchema"
                    }
                  ]
                }
              },
              {
                "type": "string"
              }
            ],
            "description": "List of tools to call. Can be an array or a string (JSON array or template expression like {{step1.tools}})"
          },
          "tools_parallel": {
            "type": "boolean",
            "description": "Whether to call tools in parallel"
          },
          "tools_mode": {
            "$ref": "#/components/schemas/ModelToolsModeSchema"
          },
          "max_iterations": {
            "type": "number",
            "minimum": 1,
            "maximum": 512,
            "description": "Maximum number of iterations for the model when using tools or reasoning"
          },
          "features": {
            "$ref": "#/components/schemas/ModelFeaturesSchema"
          }
        },
        "required": [
          "provider",
          "model",
          "messages"
        ]
      },
      "ModelOpenaiChatCompletionsSchema": {
        "type": "object",
        "properties": {
          "provider": {
            "type": "string",
            "enum": [
              "openai_chat_completions"
            ]
          },
          "model": {
            "type": "string",
            "enum": []
          },
          "messages": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ModelMessagesListSchema"
              },
              {
                "type": "string"
              }
            ]
          },
          "temperature": {
            "type": "number",
            "minimum": 0,
            "maximum": 2,
            "description": "Model temperature"
          },
          "response_format": {
            "$ref": "#/components/schemas/ModelResponseFormatSchema"
          },
          "response_format_schema": {
            "type": "object",
            "additionalProperties": {
              "nullable": true
            },
            "description": "JSON schema for structured outputs (used when response_format is \"json\"). For Anthropic, this defines the output_format schema. Must be a valid JSON Schema object."
          },
          "max_tokens": {
            "type": "number",
            "minimum": 0,
            "description": "Maximum tokens to generate"
          },
          "tools": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "$ref": "#/components/schemas/ModelToolSchema"
                    }
                  ]
                }
              },
              {
                "type": "string"
              }
            ],
            "description": "List of tools to call. Can be an array or a string (JSON array or template expression like {{step1.tools}})"
          },
          "tools_parallel": {
            "type": "boolean",
            "description": "Whether to call tools in parallel"
          },
          "tools_mode": {
            "$ref": "#/components/schemas/ModelToolsModeSchema"
          },
          "max_iterations": {
            "type": "number",
            "minimum": 1,
            "maximum": 512,
            "description": "Maximum number of iterations for the model when using tools or reasoning"
          },
          "features": {
            "$ref": "#/components/schemas/ModelFeaturesSchema"
          }
        },
        "required": [
          "provider",
          "model",
          "messages"
        ]
      },
      "ModelAnthropicSchema": {
        "type": "object",
        "properties": {
          "provider": {
            "type": "string",
            "enum": [
              "anthropic"
            ]
          },
          "model": {
            "type": "string",
            "enum": [
              "claude-fable-5",
              "claude-opus-5-5",
              "claude-opus-4-7",
              "claude-opus-4-6",
              "claude-sonnet-5-5",
              "claude-sonnet-4-6",
              "claude-sonnet-4-5-20250929",
              "claude-sonnet-4-20250514",
              "claude-opus-4-20250514",
              "claude-3-5-sonnet-20241022",
              "claude-haiku-5-5",
              "claude-3-5-haiku-20241022"
            ]
          },
          "messages": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ModelMessagesListSchema"
              },
              {
                "type": "string"
              }
            ]
          },
          "temperature": {
            "type": "number",
            "minimum": 0,
            "maximum": 2,
            "description": "Model temperature"
          },
          "response_format": {
            "$ref": "#/components/schemas/ModelResponseFormatSchema"
          },
          "response_format_schema": {
            "type": "object",
            "additionalProperties": {
              "nullable": true
            },
            "description": "JSON schema for structured outputs (used when response_format is \"json\"). For Anthropic, this defines the output_format schema. Must be a valid JSON Schema object."
          },
          "max_tokens": {
            "type": "number",
            "minimum": 0,
            "description": "Maximum tokens to generate"
          },
          "tools": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "$ref": "#/components/schemas/ModelToolSchema"
                    }
                  ]
                }
              },
              {
                "type": "string"
              }
            ],
            "description": "List of tools to call. Can be an array or a string (JSON array or template expression like {{step1.tools}})"
          },
          "tools_parallel": {
            "type": "boolean",
            "description": "Whether to call tools in parallel"
          },
          "tools_mode": {
            "$ref": "#/components/schemas/ModelToolsModeSchema"
          },
          "max_iterations": {
            "type": "number",
            "minimum": 1,
            "maximum": 512,
            "description": "Maximum number of iterations for the model when using tools or reasoning"
          },
          "features": {
            "$ref": "#/components/schemas/ModelFeaturesSchema"
          }
        },
        "required": [
          "provider",
          "model",
          "messages"
        ]
      },
      "ModelGoogleSchema": {
        "type": "object",
        "properties": {
          "provider": {
            "type": "string",
            "enum": [
              "google"
            ]
          },
          "model": {
            "type": "string",
            "enum": [
              "gemini-3.1-pro-preview",
              "gemini-3.1-flash-lite",
              "gemini-3-pro-preview",
              "gemini-3-flash-preview",
              "gemini-3.8-flash",
              "gemini-2.5-pro-preview-03-25",
              "gemini-2.5-flash",
              "gemini-2.5-flash-lite",
              "gemini-omni-1.1-flash"
            ]
          },
          "messages": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ModelMessagesListSchema"
              },
              {
                "type": "string"
              }
            ]
          },
          "temperature": {
            "type": "number",
            "minimum": 0,
            "maximum": 2,
            "description": "Model temperature"
          },
          "response_format": {
            "$ref": "#/components/schemas/ModelResponseFormatSchema"
          },
          "response_format_schema": {
            "type": "object",
            "additionalProperties": {
              "nullable": true
            },
            "description": "JSON schema for structured outputs (used when response_format is \"json\"). For Anthropic, this defines the output_format schema. Must be a valid JSON Schema object."
          },
          "max_tokens": {
            "type": "number",
            "minimum": 0,
            "description": "Maximum tokens to generate"
          },
          "tools": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "$ref": "#/components/schemas/ModelToolSchema"
                    }
                  ]
                }
              },
              {
                "type": "string"
              }
            ],
            "description": "List of tools to call. Can be an array or a string (JSON array or template expression like {{step1.tools}})"
          },
          "tools_parallel": {
            "type": "boolean",
            "description": "Whether to call tools in parallel"
          },
          "tools_mode": {
            "$ref": "#/components/schemas/ModelToolsModeSchema"
          },
          "max_iterations": {
            "type": "number",
            "minimum": 1,
            "maximum": 512,
            "description": "Maximum number of iterations for the model when using tools or reasoning"
          },
          "features": {
            "$ref": "#/components/schemas/ModelFeaturesSchema"
          }
        },
        "required": [
          "provider",
          "model",
          "messages"
        ]
      },
      "ModelAzureSchema": {
        "type": "object",
        "properties": {
          "provider": {
            "type": "string",
            "enum": [
              "azure"
            ]
          },
          "model": {
            "type": "string",
            "enum": []
          },
          "messages": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ModelMessagesListSchema"
              },
              {
                "type": "string"
              }
            ]
          },
          "temperature": {
            "type": "number",
            "minimum": 0,
            "maximum": 2,
            "description": "Model temperature"
          },
          "response_format": {
            "$ref": "#/components/schemas/ModelResponseFormatSchema"
          },
          "response_format_schema": {
            "type": "object",
            "additionalProperties": {
              "nullable": true
            },
            "description": "JSON schema for structured outputs (used when response_format is \"json\"). For Anthropic, this defines the output_format schema. Must be a valid JSON Schema object."
          },
          "max_tokens": {
            "type": "number",
            "minimum": 0,
            "description": "Maximum tokens to generate"
          },
          "tools": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "$ref": "#/components/schemas/ModelToolSchema"
                    }
                  ]
                }
              },
              {
                "type": "string"
              }
            ],
            "description": "List of tools to call. Can be an array or a string (JSON array or template expression like {{step1.tools}})"
          },
          "tools_parallel": {
            "type": "boolean",
            "description": "Whether to call tools in parallel"
          },
          "tools_mode": {
            "$ref": "#/components/schemas/ModelToolsModeSchema"
          },
          "max_iterations": {
            "type": "number",
            "minimum": 1,
            "maximum": 512,
            "description": "Maximum number of iterations for the model when using tools or reasoning"
          },
          "features": {
            "$ref": "#/components/schemas/ModelFeaturesSchema"
          }
        },
        "required": [
          "provider",
          "model",
          "messages"
        ]
      },
      "ModelXSchema": {
        "type": "object",
        "properties": {
          "provider": {
            "type": "string",
            "enum": [
              "x"
            ]
          },
          "model": {
            "type": "string",
            "enum": [
              "grok-4-0709",
              "grok-4-1-fast",
              "grok-4-1-fast-reasoning",
              "grok-4-fast",
              "grok-4-fast-reasoning",
              "grok-code-fast-1",
              "grok-2-image-1212",
              "grok-3",
              "grok-3-mini",
              "grok-2-vision-1212"
            ]
          },
          "messages": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ModelMessagesListSchema"
              },
              {
                "type": "string"
              }
            ]
          },
          "temperature": {
            "type": "number",
            "minimum": 0,
            "maximum": 2,
            "description": "Model temperature"
          },
          "response_format": {
            "$ref": "#/components/schemas/ModelResponseFormatSchema"
          },
          "response_format_schema": {
            "type": "object",
            "additionalProperties": {
              "nullable": true
            },
            "description": "JSON schema for structured outputs (used when response_format is \"json\"). For Anthropic, this defines the output_format schema. Must be a valid JSON Schema object."
          },
          "max_tokens": {
            "type": "number",
            "minimum": 0,
            "description": "Maximum tokens to generate"
          },
          "tools": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "$ref": "#/components/schemas/ModelToolSchema"
                    }
                  ]
                }
              },
              {
                "type": "string"
              }
            ],
            "description": "List of tools to call. Can be an array or a string (JSON array or template expression like {{step1.tools}})"
          },
          "tools_parallel": {
            "type": "boolean",
            "description": "Whether to call tools in parallel"
          },
          "tools_mode": {
            "$ref": "#/components/schemas/ModelToolsModeSchema"
          },
          "max_iterations": {
            "type": "number",
            "minimum": 1,
            "maximum": 512,
            "description": "Maximum number of iterations for the model when using tools or reasoning"
          },
          "features": {
            "$ref": "#/components/schemas/ModelFeaturesSchema"
          }
        },
        "required": [
          "provider",
          "model",
          "messages"
        ]
      },
      "ModelOpenrouterSchema": {
        "type": "object",
        "properties": {
          "provider": {
            "type": "string",
            "enum": [
              "openrouter"
            ]
          },
          "model": {
            "type": "string",
            "enum": [
              "openai/gpt-oss-120b:free",
              "z-ai/glm-4.5-air:free"
            ]
          },
          "messages": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ModelMessagesListSchema"
              },
              {
                "type": "string"
              }
            ]
          },
          "temperature": {
            "type": "number",
            "minimum": 0,
            "maximum": 2,
            "description": "Model temperature"
          },
          "response_format": {
            "$ref": "#/components/schemas/ModelResponseFormatSchema"
          },
          "response_format_schema": {
            "type": "object",
            "additionalProperties": {
              "nullable": true
            },
            "description": "JSON schema for structured outputs (used when response_format is \"json\"). For Anthropic, this defines the output_format schema. Must be a valid JSON Schema object."
          },
          "max_tokens": {
            "type": "number",
            "minimum": 0,
            "description": "Maximum tokens to generate"
          },
          "tools": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "$ref": "#/components/schemas/ModelToolSchema"
                    }
                  ]
                }
              },
              {
                "type": "string"
              }
            ],
            "description": "List of tools to call. Can be an array or a string (JSON array or template expression like {{step1.tools}})"
          },
          "tools_parallel": {
            "type": "boolean",
            "description": "Whether to call tools in parallel"
          },
          "tools_mode": {
            "$ref": "#/components/schemas/ModelToolsModeSchema"
          },
          "max_iterations": {
            "type": "number",
            "minimum": 1,
            "maximum": 512,
            "description": "Maximum number of iterations for the model when using tools or reasoning"
          },
          "features": {
            "$ref": "#/components/schemas/ModelFeaturesSchema"
          }
        },
        "required": [
          "provider",
          "model",
          "messages"
        ]
      },
      "ModelGroqSchema": {
        "type": "object",
        "properties": {
          "provider": {
            "type": "string",
            "enum": [
              "groq"
            ]
          },
          "model": {
            "type": "string",
            "enum": []
          },
          "messages": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ModelMessagesListSchema"
              },
              {
                "type": "string"
              }
            ]
          },
          "temperature": {
            "type": "number",
            "minimum": 0,
            "maximum": 2,
            "description": "Model temperature"
          },
          "response_format": {
            "$ref": "#/components/schemas/ModelResponseFormatSchema"
          },
          "response_format_schema": {
            "type": "object",
            "additionalProperties": {
              "nullable": true
            },
            "description": "JSON schema for structured outputs (used when response_format is \"json\"). For Anthropic, this defines the output_format schema. Must be a valid JSON Schema object."
          },
          "max_tokens": {
            "type": "number",
            "minimum": 0,
            "description": "Maximum tokens to generate"
          },
          "tools": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "$ref": "#/components/schemas/ModelToolSchema"
                    }
                  ]
                }
              },
              {
                "type": "string"
              }
            ],
            "description": "List of tools to call. Can be an array or a string (JSON array or template expression like {{step1.tools}})"
          },
          "tools_parallel": {
            "type": "boolean",
            "description": "Whether to call tools in parallel"
          },
          "tools_mode": {
            "$ref": "#/components/schemas/ModelToolsModeSchema"
          },
          "max_iterations": {
            "type": "number",
            "minimum": 1,
            "maximum": 512,
            "description": "Maximum number of iterations for the model when using tools or reasoning"
          },
          "features": {
            "$ref": "#/components/schemas/ModelFeaturesSchema"
          }
        },
        "required": [
          "provider",
          "model",
          "messages"
        ]
      },
      "ModelMistralSchema": {
        "type": "object",
        "properties": {
          "provider": {
            "type": "string",
            "enum": [
              "mistral"
            ]
          },
          "model": {
            "type": "string",
            "enum": [
              "mistral-large-2411",
              "mistral-medium-2508",
              "mistral-small-latest",
              "pixtral-large-2411",
              "pixtral-12b-2409",
              "mistral-ocr-latest",
              "codestral-2508",
              "ministral-8b-2410",
              "open-mistral-nemo"
            ]
          },
          "messages": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ModelMessagesListSchema"
              },
              {
                "type": "string"
              }
            ]
          },
          "temperature": {
            "type": "number",
            "minimum": 0,
            "maximum": 2,
            "description": "Model temperature"
          },
          "response_format": {
            "$ref": "#/components/schemas/ModelResponseFormatSchema"
          },
          "response_format_schema": {
            "type": "object",
            "additionalProperties": {
              "nullable": true
            },
            "description": "JSON schema for structured outputs (used when response_format is \"json\"). For Anthropic, this defines the output_format schema. Must be a valid JSON Schema object."
          },
          "max_tokens": {
            "type": "number",
            "minimum": 0,
            "description": "Maximum tokens to generate"
          },
          "tools": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "$ref": "#/components/schemas/ModelToolSchema"
                    }
                  ]
                }
              },
              {
                "type": "string"
              }
            ],
            "description": "List of tools to call. Can be an array or a string (JSON array or template expression like {{step1.tools}})"
          },
          "tools_parallel": {
            "type": "boolean",
            "description": "Whether to call tools in parallel"
          },
          "tools_mode": {
            "$ref": "#/components/schemas/ModelToolsModeSchema"
          },
          "max_iterations": {
            "type": "number",
            "minimum": 1,
            "maximum": 512,
            "description": "Maximum number of iterations for the model when using tools or reasoning"
          },
          "features": {
            "$ref": "#/components/schemas/ModelFeaturesSchema"
          }
        },
        "required": [
          "provider",
          "model",
          "messages"
        ]
      },
      "ModelCerebrasSchema": {
        "type": "object",
        "properties": {
          "provider": {
            "type": "string",
            "enum": [
              "cerebras"
            ]
          },
          "model": {
            "type": "string",
            "enum": [
              "llama3.1-8b",
              "qwen-3-235b-a22b-instruct-2507",
              "zai-glm-4.7"
            ]
          },
          "messages": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ModelMessagesListSchema"
              },
              {
                "type": "string"
              }
            ]
          },
          "temperature": {
            "type": "number",
            "minimum": 0,
            "maximum": 2,
            "description": "Model temperature"
          },
          "response_format": {
            "$ref": "#/components/schemas/ModelResponseFormatSchema"
          },
          "response_format_schema": {
            "type": "object",
            "additionalProperties": {
              "nullable": true
            },
            "description": "JSON schema for structured outputs (used when response_format is \"json\"). For Anthropic, this defines the output_format schema. Must be a valid JSON Schema object."
          },
          "max_tokens": {
            "type": "number",
            "minimum": 0,
            "description": "Maximum tokens to generate"
          },
          "tools": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "$ref": "#/components/schemas/ModelToolSchema"
                    }
                  ]
                }
              },
              {
                "type": "string"
              }
            ],
            "description": "List of tools to call. Can be an array or a string (JSON array or template expression like {{step1.tools}})"
          },
          "tools_parallel": {
            "type": "boolean",
            "description": "Whether to call tools in parallel"
          },
          "tools_mode": {
            "$ref": "#/components/schemas/ModelToolsModeSchema"
          },
          "max_iterations": {
            "type": "number",
            "minimum": 1,
            "maximum": 512,
            "description": "Maximum number of iterations for the model when using tools or reasoning"
          },
          "features": {
            "$ref": "#/components/schemas/ModelFeaturesSchema"
          }
        },
        "required": [
          "provider",
          "model",
          "messages"
        ]
      },
      "ModelFireworksSchema": {
        "type": "object",
        "properties": {
          "provider": {
            "type": "string",
            "enum": [
              "fireworks"
            ]
          },
          "model": {
            "type": "string",
            "enum": [
              "accounts/fireworks/models/deepseek-v4-pro-0813",
              "accounts/fireworks/models/deepseek-v4-flash-0731",
              "accounts/fireworks/models/glm-5p2",
              "accounts/fireworks/models/kimi-k3",
              "accounts/fireworks/models/kimi-k2p7-code",
              "accounts/fireworks/models/kimi-k2p6",
              "accounts/fireworks/models/qwen3p8-2p4t-a95b",
              "accounts/fireworks/models/qwen3p7-plus",
              "accounts/fireworks/models/minimax-m3",
              "accounts/fireworks/models/minimax-m2p7"
            ]
          },
          "messages": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ModelMessagesListSchema"
              },
              {
                "type": "string"
              }
            ]
          },
          "temperature": {
            "type": "number",
            "minimum": 0,
            "maximum": 2,
            "description": "Model temperature"
          },
          "response_format": {
            "$ref": "#/components/schemas/ModelResponseFormatSchema"
          },
          "response_format_schema": {
            "type": "object",
            "additionalProperties": {
              "nullable": true
            },
            "description": "JSON schema for structured outputs (used when response_format is \"json\"). For Anthropic, this defines the output_format schema. Must be a valid JSON Schema object."
          },
          "max_tokens": {
            "type": "number",
            "minimum": 0,
            "description": "Maximum tokens to generate"
          },
          "tools": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "$ref": "#/components/schemas/ModelToolSchema"
                    }
                  ]
                }
              },
              {
                "type": "string"
              }
            ],
            "description": "List of tools to call. Can be an array or a string (JSON array or template expression like {{step1.tools}})"
          },
          "tools_parallel": {
            "type": "boolean",
            "description": "Whether to call tools in parallel"
          },
          "tools_mode": {
            "$ref": "#/components/schemas/ModelToolsModeSchema"
          },
          "max_iterations": {
            "type": "number",
            "minimum": 1,
            "maximum": 512,
            "description": "Maximum number of iterations for the model when using tools or reasoning"
          },
          "features": {
            "$ref": "#/components/schemas/ModelFeaturesSchema"
          }
        },
        "required": [
          "provider",
          "model",
          "messages"
        ]
      },
      "ModelDeepseekSchema": {
        "type": "object",
        "properties": {
          "provider": {
            "type": "string",
            "enum": [
              "deepseek"
            ]
          },
          "model": {
            "type": "string",
            "enum": [
              "deepseek-v4-pro"
            ]
          },
          "messages": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ModelMessagesListSchema"
              },
              {
                "type": "string"
              }
            ]
          },
          "temperature": {
            "type": "number",
            "minimum": 0,
            "maximum": 2,
            "description": "Model temperature"
          },
          "response_format": {
            "$ref": "#/components/schemas/ModelResponseFormatSchema"
          },
          "response_format_schema": {
            "type": "object",
            "additionalProperties": {
              "nullable": true
            },
            "description": "JSON schema for structured outputs (used when response_format is \"json\"). For Anthropic, this defines the output_format schema. Must be a valid JSON Schema object."
          },
          "max_tokens": {
            "type": "number",
            "minimum": 0,
            "description": "Maximum tokens to generate"
          },
          "tools": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "$ref": "#/components/schemas/ModelToolSchema"
                    }
                  ]
                }
              },
              {
                "type": "string"
              }
            ],
            "description": "List of tools to call. Can be an array or a string (JSON array or template expression like {{step1.tools}})"
          },
          "tools_parallel": {
            "type": "boolean",
            "description": "Whether to call tools in parallel"
          },
          "tools_mode": {
            "$ref": "#/components/schemas/ModelToolsModeSchema"
          },
          "max_iterations": {
            "type": "number",
            "minimum": 1,
            "maximum": 512,
            "description": "Maximum number of iterations for the model when using tools or reasoning"
          },
          "features": {
            "$ref": "#/components/schemas/ModelFeaturesSchema"
          }
        },
        "required": [
          "provider",
          "model",
          "messages"
        ]
      },
      "ModelBrowserUseSchema": {
        "type": "object",
        "properties": {
          "provider": {
            "type": "string",
            "enum": [
              "browser_use"
            ]
          },
          "model": {
            "type": "string",
            "enum": [
              "bu-1-0",
              "bu-2-0"
            ]
          },
          "messages": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ModelMessagesListSchema"
              },
              {
                "type": "string"
              }
            ]
          },
          "temperature": {
            "type": "number",
            "minimum": 0,
            "maximum": 2,
            "description": "Model temperature"
          },
          "response_format": {
            "$ref": "#/components/schemas/ModelResponseFormatSchema"
          },
          "response_format_schema": {
            "type": "object",
            "additionalProperties": {
              "nullable": true
            },
            "description": "JSON schema for structured outputs (used when response_format is \"json\"). For Anthropic, this defines the output_format schema. Must be a valid JSON Schema object."
          },
          "max_tokens": {
            "type": "number",
            "minimum": 0,
            "description": "Maximum tokens to generate"
          },
          "tools": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "$ref": "#/components/schemas/ModelToolSchema"
                    }
                  ]
                }
              },
              {
                "type": "string"
              }
            ],
            "description": "List of tools to call. Can be an array or a string (JSON array or template expression like {{step1.tools}})"
          },
          "tools_parallel": {
            "type": "boolean",
            "description": "Whether to call tools in parallel"
          },
          "tools_mode": {
            "$ref": "#/components/schemas/ModelToolsModeSchema"
          },
          "max_iterations": {
            "type": "number",
            "minimum": 1,
            "maximum": 512,
            "description": "Maximum number of iterations for the model when using tools or reasoning"
          },
          "features": {
            "$ref": "#/components/schemas/ModelFeaturesSchema"
          }
        },
        "required": [
          "provider",
          "model",
          "messages"
        ]
      },
      "ModelBytedanceSchema": {
        "type": "object",
        "properties": {
          "provider": {
            "type": "string",
            "enum": [
              "bytedance"
            ]
          },
          "model": {
            "type": "string",
            "enum": [
              "seedream-5-0-pro",
              "seedance-2.5",
              "seedance-2.5-flash",
              "seedance-2.0-mini",
              "seedance-2.0-fast"
            ]
          },
          "messages": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ModelMessagesListSchema"
              },
              {
                "type": "string"
              }
            ]
          },
          "temperature": {
            "type": "number",
            "minimum": 0,
            "maximum": 2,
            "description": "Model temperature"
          },
          "response_format": {
            "$ref": "#/components/schemas/ModelResponseFormatSchema"
          },
          "response_format_schema": {
            "type": "object",
            "additionalProperties": {
              "nullable": true
            },
            "description": "JSON schema for structured outputs (used when response_format is \"json\"). For Anthropic, this defines the output_format schema. Must be a valid JSON Schema object."
          },
          "max_tokens": {
            "type": "number",
            "minimum": 0,
            "description": "Maximum tokens to generate"
          },
          "tools": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "$ref": "#/components/schemas/ModelToolSchema"
                    }
                  ]
                }
              },
              {
                "type": "string"
              }
            ],
            "description": "List of tools to call. Can be an array or a string (JSON array or template expression like {{step1.tools}})"
          },
          "tools_parallel": {
            "type": "boolean",
            "description": "Whether to call tools in parallel"
          },
          "tools_mode": {
            "$ref": "#/components/schemas/ModelToolsModeSchema"
          },
          "max_iterations": {
            "type": "number",
            "minimum": 1,
            "maximum": 512,
            "description": "Maximum number of iterations for the model when using tools or reasoning"
          },
          "features": {
            "$ref": "#/components/schemas/ModelFeaturesSchema"
          }
        },
        "required": [
          "provider",
          "model",
          "messages"
        ]
      },
      "ModelMinimaxSchema": {
        "type": "object",
        "properties": {
          "provider": {
            "type": "string",
            "enum": [
              "minimax"
            ]
          },
          "model": {
            "type": "string",
            "enum": [
              "minimax-h3",
              "minimax-h3-promote-2k",
              "minimax-h3-context-ir"
            ]
          },
          "messages": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ModelMessagesListSchema"
              },
              {
                "type": "string"
              }
            ]
          },
          "temperature": {
            "type": "number",
            "minimum": 0,
            "maximum": 2,
            "description": "Model temperature"
          },
          "response_format": {
            "$ref": "#/components/schemas/ModelResponseFormatSchema"
          },
          "response_format_schema": {
            "type": "object",
            "additionalProperties": {
              "nullable": true
            },
            "description": "JSON schema for structured outputs (used when response_format is \"json\"). For Anthropic, this defines the output_format schema. Must be a valid JSON Schema object."
          },
          "max_tokens": {
            "type": "number",
            "minimum": 0,
            "description": "Maximum tokens to generate"
          },
          "tools": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "$ref": "#/components/schemas/ModelToolSchema"
                    }
                  ]
                }
              },
              {
                "type": "string"
              }
            ],
            "description": "List of tools to call. Can be an array or a string (JSON array or template expression like {{step1.tools}})"
          },
          "tools_parallel": {
            "type": "boolean",
            "description": "Whether to call tools in parallel"
          },
          "tools_mode": {
            "$ref": "#/components/schemas/ModelToolsModeSchema"
          },
          "max_iterations": {
            "type": "number",
            "minimum": 1,
            "maximum": 512,
            "description": "Maximum number of iterations for the model when using tools or reasoning"
          },
          "features": {
            "$ref": "#/components/schemas/ModelFeaturesSchema"
          }
        },
        "required": [
          "provider",
          "model",
          "messages"
        ]
      },
      "ModelKuaishouSchema": {
        "type": "object",
        "properties": {
          "provider": {
            "type": "string",
            "enum": [
              "kuaishou"
            ]
          },
          "model": {
            "type": "string",
            "enum": [
              "kling-3.0-omni"
            ]
          },
          "messages": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ModelMessagesListSchema"
              },
              {
                "type": "string"
              }
            ]
          },
          "temperature": {
            "type": "number",
            "minimum": 0,
            "maximum": 2,
            "description": "Model temperature"
          },
          "response_format": {
            "$ref": "#/components/schemas/ModelResponseFormatSchema"
          },
          "response_format_schema": {
            "type": "object",
            "additionalProperties": {
              "nullable": true
            },
            "description": "JSON schema for structured outputs (used when response_format is \"json\"). For Anthropic, this defines the output_format schema. Must be a valid JSON Schema object."
          },
          "max_tokens": {
            "type": "number",
            "minimum": 0,
            "description": "Maximum tokens to generate"
          },
          "tools": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "$ref": "#/components/schemas/ModelToolSchema"
                    }
                  ]
                }
              },
              {
                "type": "string"
              }
            ],
            "description": "List of tools to call. Can be an array or a string (JSON array or template expression like {{step1.tools}})"
          },
          "tools_parallel": {
            "type": "boolean",
            "description": "Whether to call tools in parallel"
          },
          "tools_mode": {
            "$ref": "#/components/schemas/ModelToolsModeSchema"
          },
          "max_iterations": {
            "type": "number",
            "minimum": 1,
            "maximum": 512,
            "description": "Maximum number of iterations for the model when using tools or reasoning"
          },
          "features": {
            "$ref": "#/components/schemas/ModelFeaturesSchema"
          }
        },
        "required": [
          "provider",
          "model",
          "messages"
        ]
      },
      "ModelZaiSchema": {
        "type": "object",
        "properties": {
          "provider": {
            "type": "string",
            "enum": [
              "zai"
            ]
          },
          "model": {
            "type": "string",
            "enum": [
              "glm-5.3-flash"
            ]
          },
          "messages": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ModelMessagesListSchema"
              },
              {
                "type": "string"
              }
            ]
          },
          "temperature": {
            "type": "number",
            "minimum": 0,
            "maximum": 2,
            "description": "Model temperature"
          },
          "response_format": {
            "$ref": "#/components/schemas/ModelResponseFormatSchema"
          },
          "response_format_schema": {
            "type": "object",
            "additionalProperties": {
              "nullable": true
            },
            "description": "JSON schema for structured outputs (used when response_format is \"json\"). For Anthropic, this defines the output_format schema. Must be a valid JSON Schema object."
          },
          "max_tokens": {
            "type": "number",
            "minimum": 0,
            "description": "Maximum tokens to generate"
          },
          "tools": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "$ref": "#/components/schemas/ModelToolSchema"
                    }
                  ]
                }
              },
              {
                "type": "string"
              }
            ],
            "description": "List of tools to call. Can be an array or a string (JSON array or template expression like {{step1.tools}})"
          },
          "tools_parallel": {
            "type": "boolean",
            "description": "Whether to call tools in parallel"
          },
          "tools_mode": {
            "$ref": "#/components/schemas/ModelToolsModeSchema"
          },
          "max_iterations": {
            "type": "number",
            "minimum": 1,
            "maximum": 512,
            "description": "Maximum number of iterations for the model when using tools or reasoning"
          },
          "features": {
            "$ref": "#/components/schemas/ModelFeaturesSchema"
          }
        },
        "required": [
          "provider",
          "model",
          "messages"
        ]
      },
      "ModelProviderListSchema": {
        "oneOf": [
          {
            "$ref": "#/components/schemas/ModelAutoSchema"
          },
          {
            "$ref": "#/components/schemas/ModelTextSchema"
          },
          {
            "$ref": "#/components/schemas/ModelCloudflareSchema"
          },
          {
            "$ref": "#/components/schemas/ModelOpenaiSchema"
          },
          {
            "$ref": "#/components/schemas/ModelOpenaiChatCompletionsSchema"
          },
          {
            "$ref": "#/components/schemas/ModelAnthropicSchema"
          },
          {
            "$ref": "#/components/schemas/ModelGoogleSchema"
          },
          {
            "$ref": "#/components/schemas/ModelAzureSchema"
          },
          {
            "$ref": "#/components/schemas/ModelXSchema"
          },
          {
            "$ref": "#/components/schemas/ModelOpenrouterSchema"
          },
          {
            "$ref": "#/components/schemas/ModelGroqSchema"
          },
          {
            "$ref": "#/components/schemas/ModelMistralSchema"
          },
          {
            "$ref": "#/components/schemas/ModelCerebrasSchema"
          },
          {
            "$ref": "#/components/schemas/ModelFireworksSchema"
          },
          {
            "$ref": "#/components/schemas/ModelDeepseekSchema"
          },
          {
            "$ref": "#/components/schemas/ModelBrowserUseSchema"
          },
          {
            "$ref": "#/components/schemas/ModelBytedanceSchema"
          },
          {
            "$ref": "#/components/schemas/ModelMinimaxSchema"
          },
          {
            "$ref": "#/components/schemas/ModelKuaishouSchema"
          },
          {
            "$ref": "#/components/schemas/ModelZaiSchema"
          }
        ],
        "discriminator": {
          "propertyName": "provider",
          "mapping": {
            "auto": "#/components/schemas/ModelAutoSchema",
            "text": "#/components/schemas/ModelTextSchema",
            "cloudflare": "#/components/schemas/ModelCloudflareSchema",
            "openai": "#/components/schemas/ModelOpenaiSchema",
            "openai_chat_completions": "#/components/schemas/ModelOpenaiChatCompletionsSchema",
            "anthropic": "#/components/schemas/ModelAnthropicSchema",
            "google": "#/components/schemas/ModelGoogleSchema",
            "azure": "#/components/schemas/ModelAzureSchema",
            "x": "#/components/schemas/ModelXSchema",
            "openrouter": "#/components/schemas/ModelOpenrouterSchema",
            "groq": "#/components/schemas/ModelGroqSchema",
            "mistral": "#/components/schemas/ModelMistralSchema",
            "cerebras": "#/components/schemas/ModelCerebrasSchema",
            "fireworks": "#/components/schemas/ModelFireworksSchema",
            "deepseek": "#/components/schemas/ModelDeepseekSchema",
            "browser_use": "#/components/schemas/ModelBrowserUseSchema",
            "bytedance": "#/components/schemas/ModelBytedanceSchema",
            "minimax": "#/components/schemas/ModelMinimaxSchema",
            "kuaishou": "#/components/schemas/ModelKuaishouSchema",
            "zai": "#/components/schemas/ModelZaiSchema"
          }
        }
      },
      "ModelMessageContentSchema": {
        "oneOf": [
          {
            "$ref": "#/components/schemas/ModelMessageTextSchema"
          },
          {
            "$ref": "#/components/schemas/ModelMessageFileSchema"
          },
          {
            "$ref": "#/components/schemas/ModelMessageImageSchema"
          },
          {
            "$ref": "#/components/schemas/ModelMessageToolResultSchema"
          }
        ],
        "discriminator": {
          "propertyName": "type",
          "mapping": {
            "text": "#/components/schemas/ModelMessageTextSchema",
            "file": "#/components/schemas/ModelMessageFileSchema",
            "image": "#/components/schemas/ModelMessageImageSchema",
            "tool_result": "#/components/schemas/ModelMessageToolResultSchema"
          }
        }
      },
      "RunResultSchema": {
        "nullable": true,
        "description": "Result of the run"
      },
      "RuleSchemaOutput": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Name of the rule"
          },
          "key": {
            "type": "string",
            "description": "Key of the rule"
          },
          "input": {
            "allOf": [
              {
                "$ref": "#/components/schemas/InputValuesSchema"
              },
              {
                "description": "Input values of the workflow step run"
              }
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "PENDING",
              "RUNNING",
              "CANCELLED",
              "COMPLETED",
              "SKIPPED",
              "FAILED"
            ],
            "description": "Status of the run",
            "example": "COMPLETED"
          },
          "origin": {
            "type": "string",
            "enum": [
              "WORKFLOW",
              "TRIGGER",
              "RECORD",
              "TEST",
              "ENDPOINT",
              "WEBHOOK"
            ],
            "description": "Origin of the run",
            "example": "RECORD"
          },
          "error": {
            "type": "string",
            "nullable": true,
            "description": "Error message of the run"
          },
          "result": {
            "$ref": "#/components/schemas/RunResultSchema"
          },
          "output": {
            "nullable": true,
            "description": "Output of the run"
          }
        },
        "required": [
          "name",
          "key",
          "input",
          "status",
          "origin",
          "error"
        ]
      },
      "CreateWebhookRunSchema": {
        "type": "object",
        "properties": {
          "background": {
            "type": "boolean",
            "description": "Indicates if the run should be executed in the background and return the run information immediately"
          }
        },
        "description": "Data to call the webhook"
      },
      "QueryRunSchema": {
        "allOf": [
          {
            "$ref": "#/components/schemas/IncludeRunSchema"
          },
          {
            "type": "object",
            "properties": {
              "origin": {
                "type": "string",
                "enum": [
                  "ALL",
                  "WORKFLOW",
                  "TRIGGER",
                  "RECORD",
                  "TEST",
                  "ENDPOINT",
                  "WEBHOOK"
                ]
              },
              "status": {
                "type": "string",
                "enum": [
                  "ALL",
                  "PENDING",
                  "RUNNING",
                  "CANCELLED",
                  "COMPLETED",
                  "SKIPPED",
                  "FAILED"
                ]
              }
            }
          }
        ]
      },
      "QueryWorkflowExpectationsSchema": {
        "type": "object",
        "properties": {
          "search": {
            "type": "string"
          }
        }
      },
      "IncludeTestPropsSchema": {
        "type": "array",
        "items": {
          "type": "string",
          "enum": [
            "all"
          ]
        }
      },
      "IncludeTestSchema": {
        "type": "object",
        "properties": {
          "verbose": {
            "$ref": "#/components/schemas/IncludeTestPropsSchema"
          }
        }
      },
      "QueryWorkflowTestsSchema": {
        "allOf": [
          {
            "$ref": "#/components/schemas/IncludeTestSchema"
          },
          {
            "type": "object",
            "properties": {
              "search": {
                "type": "string"
              },
              "status": {
                "type": "string",
                "enum": [
                  "ALL",
                  "DRAFT",
                  "CANCELLED",
                  "RUNNING",
                  "FAILED",
                  "PASSED"
                ]
              }
            }
          }
        ]
      },
      "QueryWorkflowEndpoints": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "ALL",
              "USER",
              "MCP"
            ]
          }
        }
      },
      "QueryCollectionsDiscoverSchema": {
        "type": "object",
        "properties": {
          "search": {
            "type": "string",
            "description": "What you want to search for in collections"
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Tags to filter collections by (you can use up to 20)",
            "example": [
              "tag_xxx",
              "tag_yyy"
            ]
          }
        }
      },
      "TriggerEntitiesListPaginationSchema": {
        "type": "object",
        "properties": {
          "after": {
            "type": "string"
          },
          "page": {
            "type": "number",
            "nullable": true
          },
          "limit": {
            "type": "number",
            "minimum": 1,
            "maximum": 100
          }
        },
        "description": "Detailed information about a trigger entity list pagination"
      },
      "QueryRecordsSchema": {
        "allOf": [
          {
            "$ref": "#/components/schemas/IncludeRecordSchema"
          },
          {
            "type": "object",
            "properties": {
              "search": {
                "type": "string"
              },
              "status": {
                "type": "string",
                "enum": [
                  "ALL",
                  "DRAFT",
                  "QUEUED",
                  "RUNNING",
                  "CANCELLED",
                  "COMPLETED",
                  "FAILED"
                ]
              },
              "tags": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "tag_ids": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            }
          }
        ],
        "description": "Options for including additional record properties",
        "example": {
          "verbose": [
            "all"
          ]
        }
      },
      "IncludeRecordRulePropsSchema": {
        "type": "array",
        "items": {
          "type": "string",
          "enum": [
            "all"
          ]
        }
      },
      "IncludeRecordRuleSchema": {
        "type": "object",
        "properties": {
          "verbose": {
            "$ref": "#/components/schemas/IncludeRecordRulePropsSchema"
          }
        }
      },
      "ConnectionSchedulerInfoSchema": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "SCHEDULER"
            ],
            "description": "Connection type"
          },
          "system": {
            "type": "boolean",
            "description": "Whether the connection is a system connection"
          },
          "clients": {
            "$ref": "#/components/schemas/ConnectionClientsSchema"
          },
          "has_clients": {
            "type": "boolean",
            "description": "Whether the connection has clients"
          },
          "models_adapter": {
            "$ref": "#/components/schemas/ModelProviderTypeSchema"
          },
          "display": {
            "$ref": "#/components/schemas/ConnectionDisplaySchema"
          },
          "limits": {
            "$ref": "#/components/schemas/ConnectionLimitsSchema"
          },
          "disabled": {
            "type": "boolean",
            "description": "Whether the connection is disabled"
          }
        },
        "required": [
          "name",
          "description",
          "type",
          "system",
          "clients",
          "has_clients",
          "display",
          "limits",
          "disabled"
        ],
        "description": "Connection info for SCHEDULER"
      },
      "ConnectionToolsInfoSchema": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "TOOLS"
            ],
            "description": "Connection type"
          },
          "system": {
            "type": "boolean",
            "description": "Whether the connection is a system connection"
          },
          "clients": {
            "$ref": "#/components/schemas/ConnectionClientsSchema"
          },
          "has_clients": {
            "type": "boolean",
            "description": "Whether the connection has clients"
          },
          "models_adapter": {
            "$ref": "#/components/schemas/ModelProviderTypeSchema"
          },
          "display": {
            "$ref": "#/components/schemas/ConnectionDisplaySchema"
          },
          "limits": {
            "$ref": "#/components/schemas/ConnectionLimitsSchema"
          },
          "disabled": {
            "type": "boolean",
            "description": "Whether the connection is disabled"
          }
        },
        "required": [
          "name",
          "description",
          "type",
          "system",
          "clients",
          "has_clients",
          "display",
          "limits",
          "disabled"
        ],
        "description": "Connection info for TOOLS"
      },
      "ConnectionFilesInfoSchema": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "FILES"
            ],
            "description": "Connection type"
          },
          "system": {
            "type": "boolean",
            "description": "Whether the connection is a system connection"
          },
          "clients": {
            "$ref": "#/components/schemas/ConnectionClientsSchema"
          },
          "has_clients": {
            "type": "boolean",
            "description": "Whether the connection has clients"
          },
          "models_adapter": {
            "$ref": "#/components/schemas/ModelProviderTypeSchema"
          },
          "display": {
            "$ref": "#/components/schemas/ConnectionDisplaySchema"
          },
          "limits": {
            "$ref": "#/components/schemas/ConnectionLimitsSchema"
          },
          "disabled": {
            "type": "boolean",
            "description": "Whether the connection is disabled"
          }
        },
        "required": [
          "name",
          "description",
          "type",
          "system",
          "clients",
          "has_clients",
          "display",
          "limits",
          "disabled"
        ],
        "description": "Connection info for FILES"
      },
      "ConnectionCollectionsInfoSchema": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "COLLECTIONS"
            ],
            "description": "Connection type"
          },
          "system": {
            "type": "boolean",
            "description": "Whether the connection is a system connection"
          },
          "clients": {
            "$ref": "#/components/schemas/ConnectionClientsSchema"
          },
          "has_clients": {
            "type": "boolean",
            "description": "Whether the connection has clients"
          },
          "models_adapter": {
            "$ref": "#/components/schemas/ModelProviderTypeSchema"
          },
          "display": {
            "$ref": "#/components/schemas/ConnectionDisplaySchema"
          },
          "limits": {
            "$ref": "#/components/schemas/ConnectionLimitsSchema"
          },
          "disabled": {
            "type": "boolean",
            "description": "Whether the connection is disabled"
          }
        },
        "required": [
          "name",
          "description",
          "type",
          "system",
          "clients",
          "has_clients",
          "display",
          "limits",
          "disabled"
        ],
        "description": "Connection info for COLLECTIONS"
      },
      "ConnectionOauthInfoSchema": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "OAUTH"
            ],
            "description": "Connection type"
          },
          "system": {
            "type": "boolean",
            "description": "Whether the connection is a system connection"
          },
          "clients": {
            "$ref": "#/components/schemas/ConnectionClientsSchema"
          },
          "has_clients": {
            "type": "boolean",
            "description": "Whether the connection has clients"
          },
          "models_adapter": {
            "$ref": "#/components/schemas/ModelProviderTypeSchema"
          },
          "display": {
            "$ref": "#/components/schemas/ConnectionDisplaySchema"
          },
          "limits": {
            "$ref": "#/components/schemas/ConnectionLimitsSchema"
          },
          "disabled": {
            "type": "boolean",
            "description": "Whether the connection is disabled"
          }
        },
        "required": [
          "name",
          "description",
          "type",
          "system",
          "clients",
          "has_clients",
          "display",
          "limits",
          "disabled"
        ],
        "description": "Connection info for OAUTH"
      },
      "ConnectionGoogleSheetsInfoSchema": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "GOOGLE_SHEETS"
            ],
            "description": "Connection type"
          },
          "system": {
            "type": "boolean",
            "description": "Whether the connection is a system connection"
          },
          "clients": {
            "$ref": "#/components/schemas/ConnectionClientsSchema"
          },
          "has_clients": {
            "type": "boolean",
            "description": "Whether the connection has clients"
          },
          "models_adapter": {
            "$ref": "#/components/schemas/ModelProviderTypeSchema"
          },
          "display": {
            "$ref": "#/components/schemas/ConnectionDisplaySchema"
          },
          "limits": {
            "$ref": "#/components/schemas/ConnectionLimitsSchema"
          },
          "disabled": {
            "type": "boolean",
            "description": "Whether the connection is disabled"
          }
        },
        "required": [
          "name",
          "description",
          "type",
          "system",
          "clients",
          "has_clients",
          "display",
          "limits",
          "disabled"
        ],
        "description": "Connection info for GOOGLE_SHEETS"
      },
      "ConnectionGoogleCalendarInfoSchema": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "GOOGLE_CALENDAR"
            ],
            "description": "Connection type"
          },
          "system": {
            "type": "boolean",
            "description": "Whether the connection is a system connection"
          },
          "clients": {
            "$ref": "#/components/schemas/ConnectionClientsSchema"
          },
          "has_clients": {
            "type": "boolean",
            "description": "Whether the connection has clients"
          },
          "models_adapter": {
            "$ref": "#/components/schemas/ModelProviderTypeSchema"
          },
          "display": {
            "$ref": "#/components/schemas/ConnectionDisplaySchema"
          },
          "limits": {
            "$ref": "#/components/schemas/ConnectionLimitsSchema"
          },
          "disabled": {
            "type": "boolean",
            "description": "Whether the connection is disabled"
          }
        },
        "required": [
          "name",
          "description",
          "type",
          "system",
          "clients",
          "has_clients",
          "display",
          "limits",
          "disabled"
        ],
        "description": "Connection info for GOOGLE_CALENDAR"
      },
      "ConnectionGmailInfoSchema": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "GMAIL"
            ],
            "description": "Connection type"
          },
          "system": {
            "type": "boolean",
            "description": "Whether the connection is a system connection"
          },
          "clients": {
            "$ref": "#/components/schemas/ConnectionClientsSchema"
          },
          "has_clients": {
            "type": "boolean",
            "description": "Whether the connection has clients"
          },
          "models_adapter": {
            "$ref": "#/components/schemas/ModelProviderTypeSchema"
          },
          "display": {
            "$ref": "#/components/schemas/ConnectionDisplaySchema"
          },
          "limits": {
            "$ref": "#/components/schemas/ConnectionLimitsSchema"
          },
          "disabled": {
            "type": "boolean",
            "description": "Whether the connection is disabled"
          }
        },
        "required": [
          "name",
          "description",
          "type",
          "system",
          "clients",
          "has_clients",
          "display",
          "limits",
          "disabled"
        ],
        "description": "Connection info for GMAIL"
      },
      "ConnectionGoogleDriveInfoSchema": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "GOOGLE_DRIVE"
            ],
            "description": "Connection type"
          },
          "system": {
            "type": "boolean",
            "description": "Whether the connection is a system connection"
          },
          "clients": {
            "$ref": "#/components/schemas/ConnectionClientsSchema"
          },
          "has_clients": {
            "type": "boolean",
            "description": "Whether the connection has clients"
          },
          "models_adapter": {
            "$ref": "#/components/schemas/ModelProviderTypeSchema"
          },
          "display": {
            "$ref": "#/components/schemas/ConnectionDisplaySchema"
          },
          "limits": {
            "$ref": "#/components/schemas/ConnectionLimitsSchema"
          },
          "disabled": {
            "type": "boolean",
            "description": "Whether the connection is disabled"
          }
        },
        "required": [
          "name",
          "description",
          "type",
          "system",
          "clients",
          "has_clients",
          "display",
          "limits",
          "disabled"
        ],
        "description": "Connection info for GOOGLE_DRIVE"
      },
      "ConnectionSlackInfoSchema": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "SLACK"
            ],
            "description": "Connection type"
          },
          "system": {
            "type": "boolean",
            "description": "Whether the connection is a system connection"
          },
          "clients": {
            "$ref": "#/components/schemas/ConnectionClientsSchema"
          },
          "has_clients": {
            "type": "boolean",
            "description": "Whether the connection has clients"
          },
          "models_adapter": {
            "$ref": "#/components/schemas/ModelProviderTypeSchema"
          },
          "display": {
            "$ref": "#/components/schemas/ConnectionDisplaySchema"
          },
          "limits": {
            "$ref": "#/components/schemas/ConnectionLimitsSchema"
          },
          "disabled": {
            "type": "boolean",
            "description": "Whether the connection is disabled"
          }
        },
        "required": [
          "name",
          "description",
          "type",
          "system",
          "clients",
          "has_clients",
          "display",
          "limits",
          "disabled"
        ],
        "description": "Connection info for SLACK"
      },
      "ConnectionEncompassInfoSchema": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "ENCOMPASS"
            ],
            "description": "Connection type"
          },
          "system": {
            "type": "boolean",
            "description": "Whether the connection is a system connection"
          },
          "clients": {
            "$ref": "#/components/schemas/ConnectionClientsSchema"
          },
          "has_clients": {
            "type": "boolean",
            "description": "Whether the connection has clients"
          },
          "models_adapter": {
            "$ref": "#/components/schemas/ModelProviderTypeSchema"
          },
          "display": {
            "$ref": "#/components/schemas/ConnectionDisplaySchema"
          },
          "limits": {
            "$ref": "#/components/schemas/ConnectionLimitsSchema"
          },
          "disabled": {
            "type": "boolean",
            "description": "Whether the connection is disabled"
          }
        },
        "required": [
          "name",
          "description",
          "type",
          "system",
          "clients",
          "has_clients",
          "display",
          "limits",
          "disabled"
        ],
        "description": "Connection info for ENCOMPASS"
      },
      "ConnectionStaticSynapseInfoSchema": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "STATIC_SYNAPSE"
            ],
            "description": "Connection type"
          },
          "system": {
            "type": "boolean",
            "description": "Whether the connection is a system connection"
          },
          "clients": {
            "$ref": "#/components/schemas/ConnectionClientsSchema"
          },
          "has_clients": {
            "type": "boolean",
            "description": "Whether the connection has clients"
          },
          "models_adapter": {
            "$ref": "#/components/schemas/ModelProviderTypeSchema"
          },
          "display": {
            "$ref": "#/components/schemas/ConnectionDisplaySchema"
          },
          "limits": {
            "$ref": "#/components/schemas/ConnectionLimitsSchema"
          },
          "disabled": {
            "type": "boolean",
            "description": "Whether the connection is disabled"
          }
        },
        "required": [
          "name",
          "description",
          "type",
          "system",
          "clients",
          "has_clients",
          "display",
          "limits",
          "disabled"
        ],
        "description": "Connection info for STATIC_SYNAPSE"
      },
      "ConnectionPersonaInfoSchema": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "PERSONA"
            ],
            "description": "Connection type"
          },
          "system": {
            "type": "boolean",
            "description": "Whether the connection is a system connection"
          },
          "clients": {
            "$ref": "#/components/schemas/ConnectionClientsSchema"
          },
          "has_clients": {
            "type": "boolean",
            "description": "Whether the connection has clients"
          },
          "models_adapter": {
            "$ref": "#/components/schemas/ModelProviderTypeSchema"
          },
          "display": {
            "$ref": "#/components/schemas/ConnectionDisplaySchema"
          },
          "limits": {
            "$ref": "#/components/schemas/ConnectionLimitsSchema"
          },
          "disabled": {
            "type": "boolean",
            "description": "Whether the connection is disabled"
          }
        },
        "required": [
          "name",
          "description",
          "type",
          "system",
          "clients",
          "has_clients",
          "display",
          "limits",
          "disabled"
        ],
        "description": "Connection info for PERSONA"
      },
      "ConnectionNotionInfoSchema": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "NOTION"
            ],
            "description": "Connection type"
          },
          "system": {
            "type": "boolean",
            "description": "Whether the connection is a system connection"
          },
          "clients": {
            "$ref": "#/components/schemas/ConnectionClientsSchema"
          },
          "has_clients": {
            "type": "boolean",
            "description": "Whether the connection has clients"
          },
          "models_adapter": {
            "$ref": "#/components/schemas/ModelProviderTypeSchema"
          },
          "display": {
            "$ref": "#/components/schemas/ConnectionDisplaySchema"
          },
          "limits": {
            "$ref": "#/components/schemas/ConnectionLimitsSchema"
          },
          "disabled": {
            "type": "boolean",
            "description": "Whether the connection is disabled"
          }
        },
        "required": [
          "name",
          "description",
          "type",
          "system",
          "clients",
          "has_clients",
          "display",
          "limits",
          "disabled"
        ],
        "description": "Connection info for NOTION"
      },
      "ConnectionSalesforceInfoSchema": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "SALESFORCE"
            ],
            "description": "Connection type"
          },
          "system": {
            "type": "boolean",
            "description": "Whether the connection is a system connection"
          },
          "clients": {
            "$ref": "#/components/schemas/ConnectionClientsSchema"
          },
          "has_clients": {
            "type": "boolean",
            "description": "Whether the connection has clients"
          },
          "models_adapter": {
            "$ref": "#/components/schemas/ModelProviderTypeSchema"
          },
          "display": {
            "$ref": "#/components/schemas/ConnectionDisplaySchema"
          },
          "limits": {
            "$ref": "#/components/schemas/ConnectionLimitsSchema"
          },
          "disabled": {
            "type": "boolean",
            "description": "Whether the connection is disabled"
          }
        },
        "required": [
          "name",
          "description",
          "type",
          "system",
          "clients",
          "has_clients",
          "display",
          "limits",
          "disabled"
        ],
        "description": "Connection info for SALESFORCE"
      },
      "ConnectionWhatsappInfoSchema": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "WHATSAPP"
            ],
            "description": "Connection type"
          },
          "system": {
            "type": "boolean",
            "description": "Whether the connection is a system connection"
          },
          "clients": {
            "$ref": "#/components/schemas/ConnectionClientsSchema"
          },
          "has_clients": {
            "type": "boolean",
            "description": "Whether the connection has clients"
          },
          "models_adapter": {
            "$ref": "#/components/schemas/ModelProviderTypeSchema"
          },
          "display": {
            "$ref": "#/components/schemas/ConnectionDisplaySchema"
          },
          "limits": {
            "$ref": "#/components/schemas/ConnectionLimitsSchema"
          },
          "disabled": {
            "type": "boolean",
            "description": "Whether the connection is disabled"
          }
        },
        "required": [
          "name",
          "description",
          "type",
          "system",
          "clients",
          "has_clients",
          "display",
          "limits",
          "disabled"
        ],
        "description": "Connection info for WHATSAPP"
      },
      "ConnectionRapidapiInfoSchema": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "RAPIDAPI"
            ],
            "description": "Connection type"
          },
          "system": {
            "type": "boolean",
            "description": "Whether the connection is a system connection"
          },
          "clients": {
            "$ref": "#/components/schemas/ConnectionClientsSchema"
          },
          "has_clients": {
            "type": "boolean",
            "description": "Whether the connection has clients"
          },
          "models_adapter": {
            "$ref": "#/components/schemas/ModelProviderTypeSchema"
          },
          "display": {
            "$ref": "#/components/schemas/ConnectionDisplaySchema"
          },
          "limits": {
            "$ref": "#/components/schemas/ConnectionLimitsSchema"
          },
          "disabled": {
            "type": "boolean",
            "description": "Whether the connection is disabled"
          }
        },
        "required": [
          "name",
          "description",
          "type",
          "system",
          "clients",
          "has_clients",
          "display",
          "limits",
          "disabled"
        ],
        "description": "Connection info for RAPIDAPI"
      },
      "ConnectionRapidapiDaxyEnrichContactInfoSchema": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "RAPIDAPI_DAXY_ENRICH_CONTACT"
            ],
            "description": "Connection type"
          },
          "system": {
            "type": "boolean",
            "description": "Whether the connection is a system connection"
          },
          "clients": {
            "$ref": "#/components/schemas/ConnectionClientsSchema"
          },
          "has_clients": {
            "type": "boolean",
            "description": "Whether the connection has clients"
          },
          "models_adapter": {
            "$ref": "#/components/schemas/ModelProviderTypeSchema"
          },
          "display": {
            "$ref": "#/components/schemas/ConnectionDisplaySchema"
          },
          "limits": {
            "$ref": "#/components/schemas/ConnectionLimitsSchema"
          },
          "disabled": {
            "type": "boolean",
            "description": "Whether the connection is disabled"
          }
        },
        "required": [
          "name",
          "description",
          "type",
          "system",
          "clients",
          "has_clients",
          "display",
          "limits",
          "disabled"
        ],
        "description": "Connection info for RAPIDAPI_DAXY_ENRICH_CONTACT"
      },
      "ConnectionRapidapiZillowInfoSchema": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "RAPIDAPI_ZILLOW"
            ],
            "description": "Connection type"
          },
          "system": {
            "type": "boolean",
            "description": "Whether the connection is a system connection"
          },
          "clients": {
            "$ref": "#/components/schemas/ConnectionClientsSchema"
          },
          "has_clients": {
            "type": "boolean",
            "description": "Whether the connection has clients"
          },
          "models_adapter": {
            "$ref": "#/components/schemas/ModelProviderTypeSchema"
          },
          "display": {
            "$ref": "#/components/schemas/ConnectionDisplaySchema"
          },
          "limits": {
            "$ref": "#/components/schemas/ConnectionLimitsSchema"
          },
          "disabled": {
            "type": "boolean",
            "description": "Whether the connection is disabled"
          }
        },
        "required": [
          "name",
          "description",
          "type",
          "system",
          "clients",
          "has_clients",
          "display",
          "limits",
          "disabled"
        ],
        "description": "Connection info for RAPIDAPI_ZILLOW"
      },
      "ConnectionRapidapiFreshLinkedinProfileInfoSchema": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "RAPIDAPI_FRESH_LINKEDIN_PROFILE"
            ],
            "description": "Connection type"
          },
          "system": {
            "type": "boolean",
            "description": "Whether the connection is a system connection"
          },
          "clients": {
            "$ref": "#/components/schemas/ConnectionClientsSchema"
          },
          "has_clients": {
            "type": "boolean",
            "description": "Whether the connection has clients"
          },
          "models_adapter": {
            "$ref": "#/components/schemas/ModelProviderTypeSchema"
          },
          "display": {
            "$ref": "#/components/schemas/ConnectionDisplaySchema"
          },
          "limits": {
            "$ref": "#/components/schemas/ConnectionLimitsSchema"
          },
          "disabled": {
            "type": "boolean",
            "description": "Whether the connection is disabled"
          }
        },
        "required": [
          "name",
          "description",
          "type",
          "system",
          "clients",
          "has_clients",
          "display",
          "limits",
          "disabled"
        ],
        "description": "Connection info for RAPIDAPI_FRESH_LINKEDIN_PROFILE"
      },
      "ConnectionRapidapiLinkedinScraperApiInfoSchema": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "RAPIDAPI_LINKEDIN_SCRAPER_API"
            ],
            "description": "Connection type"
          },
          "system": {
            "type": "boolean",
            "description": "Whether the connection is a system connection"
          },
          "clients": {
            "$ref": "#/components/schemas/ConnectionClientsSchema"
          },
          "has_clients": {
            "type": "boolean",
            "description": "Whether the connection has clients"
          },
          "models_adapter": {
            "$ref": "#/components/schemas/ModelProviderTypeSchema"
          },
          "display": {
            "$ref": "#/components/schemas/ConnectionDisplaySchema"
          },
          "limits": {
            "$ref": "#/components/schemas/ConnectionLimitsSchema"
          },
          "disabled": {
            "type": "boolean",
            "description": "Whether the connection is disabled"
          }
        },
        "required": [
          "name",
          "description",
          "type",
          "system",
          "clients",
          "has_clients",
          "display",
          "limits",
          "disabled"
        ],
        "description": "Connection info for RAPIDAPI_LINKEDIN_SCRAPER_API"
      },
      "ConnectionRapidapiJsearchInfoSchema": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "RAPIDAPI_JSEARCH"
            ],
            "description": "Connection type"
          },
          "system": {
            "type": "boolean",
            "description": "Whether the connection is a system connection"
          },
          "clients": {
            "$ref": "#/components/schemas/ConnectionClientsSchema"
          },
          "has_clients": {
            "type": "boolean",
            "description": "Whether the connection has clients"
          },
          "models_adapter": {
            "$ref": "#/components/schemas/ModelProviderTypeSchema"
          },
          "display": {
            "$ref": "#/components/schemas/ConnectionDisplaySchema"
          },
          "limits": {
            "$ref": "#/components/schemas/ConnectionLimitsSchema"
          },
          "disabled": {
            "type": "boolean",
            "description": "Whether the connection is disabled"
          }
        },
        "required": [
          "name",
          "description",
          "type",
          "system",
          "clients",
          "has_clients",
          "display",
          "limits",
          "disabled"
        ],
        "description": "Connection info for RAPIDAPI_JSEARCH"
      },
      "ConnectionRapidapiInstagramSocialInfoSchema": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "RAPIDAPI_INSTAGRAM_SOCIAL"
            ],
            "description": "Connection type"
          },
          "system": {
            "type": "boolean",
            "description": "Whether the connection is a system connection"
          },
          "clients": {
            "$ref": "#/components/schemas/ConnectionClientsSchema"
          },
          "has_clients": {
            "type": "boolean",
            "description": "Whether the connection has clients"
          },
          "models_adapter": {
            "$ref": "#/components/schemas/ModelProviderTypeSchema"
          },
          "display": {
            "$ref": "#/components/schemas/ConnectionDisplaySchema"
          },
          "limits": {
            "$ref": "#/components/schemas/ConnectionLimitsSchema"
          },
          "disabled": {
            "type": "boolean",
            "description": "Whether the connection is disabled"
          }
        },
        "required": [
          "name",
          "description",
          "type",
          "system",
          "clients",
          "has_clients",
          "display",
          "limits",
          "disabled"
        ],
        "description": "Connection info for RAPIDAPI_INSTAGRAM_SOCIAL"
      },
      "ConnectionOpenaiInfoSchema": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "OPENAI"
            ],
            "description": "Connection type"
          },
          "system": {
            "type": "boolean",
            "description": "Whether the connection is a system connection"
          },
          "clients": {
            "$ref": "#/components/schemas/ConnectionClientsSchema"
          },
          "has_clients": {
            "type": "boolean",
            "description": "Whether the connection has clients"
          },
          "models_adapter": {
            "$ref": "#/components/schemas/ModelProviderTypeSchema"
          },
          "display": {
            "$ref": "#/components/schemas/ConnectionDisplaySchema"
          },
          "limits": {
            "$ref": "#/components/schemas/ConnectionLimitsSchema"
          },
          "disabled": {
            "type": "boolean",
            "description": "Whether the connection is disabled"
          }
        },
        "required": [
          "name",
          "description",
          "type",
          "system",
          "clients",
          "has_clients",
          "display",
          "limits",
          "disabled"
        ],
        "description": "Connection info for OPENAI"
      },
      "ConnectionAnthropicInfoSchema": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "ANTHROPIC"
            ],
            "description": "Connection type"
          },
          "system": {
            "type": "boolean",
            "description": "Whether the connection is a system connection"
          },
          "clients": {
            "$ref": "#/components/schemas/ConnectionClientsSchema"
          },
          "has_clients": {
            "type": "boolean",
            "description": "Whether the connection has clients"
          },
          "models_adapter": {
            "$ref": "#/components/schemas/ModelProviderTypeSchema"
          },
          "display": {
            "$ref": "#/components/schemas/ConnectionDisplaySchema"
          },
          "limits": {
            "$ref": "#/components/schemas/ConnectionLimitsSchema"
          },
          "disabled": {
            "type": "boolean",
            "description": "Whether the connection is disabled"
          }
        },
        "required": [
          "name",
          "description",
          "type",
          "system",
          "clients",
          "has_clients",
          "display",
          "limits",
          "disabled"
        ],
        "description": "Connection info for ANTHROPIC"
      },
      "ConnectionGoogleAiInfoSchema": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "GOOGLE_AI"
            ],
            "description": "Connection type"
          },
          "system": {
            "type": "boolean",
            "description": "Whether the connection is a system connection"
          },
          "clients": {
            "$ref": "#/components/schemas/ConnectionClientsSchema"
          },
          "has_clients": {
            "type": "boolean",
            "description": "Whether the connection has clients"
          },
          "models_adapter": {
            "$ref": "#/components/schemas/ModelProviderTypeSchema"
          },
          "display": {
            "$ref": "#/components/schemas/ConnectionDisplaySchema"
          },
          "limits": {
            "$ref": "#/components/schemas/ConnectionLimitsSchema"
          },
          "disabled": {
            "type": "boolean",
            "description": "Whether the connection is disabled"
          }
        },
        "required": [
          "name",
          "description",
          "type",
          "system",
          "clients",
          "has_clients",
          "display",
          "limits",
          "disabled"
        ],
        "description": "Connection info for GOOGLE_AI"
      },
      "ConnectionXaiInfoSchema": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "XAI"
            ],
            "description": "Connection type"
          },
          "system": {
            "type": "boolean",
            "description": "Whether the connection is a system connection"
          },
          "clients": {
            "$ref": "#/components/schemas/ConnectionClientsSchema"
          },
          "has_clients": {
            "type": "boolean",
            "description": "Whether the connection has clients"
          },
          "models_adapter": {
            "$ref": "#/components/schemas/ModelProviderTypeSchema"
          },
          "display": {
            "$ref": "#/components/schemas/ConnectionDisplaySchema"
          },
          "limits": {
            "$ref": "#/components/schemas/ConnectionLimitsSchema"
          },
          "disabled": {
            "type": "boolean",
            "description": "Whether the connection is disabled"
          }
        },
        "required": [
          "name",
          "description",
          "type",
          "system",
          "clients",
          "has_clients",
          "display",
          "limits",
          "disabled"
        ],
        "description": "Connection info for XAI"
      },
      "ConnectionAzureAiInfoSchema": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "AZURE_AI"
            ],
            "description": "Connection type"
          },
          "system": {
            "type": "boolean",
            "description": "Whether the connection is a system connection"
          },
          "clients": {
            "$ref": "#/components/schemas/ConnectionClientsSchema"
          },
          "has_clients": {
            "type": "boolean",
            "description": "Whether the connection has clients"
          },
          "models_adapter": {
            "$ref": "#/components/schemas/ModelProviderTypeSchema"
          },
          "display": {
            "$ref": "#/components/schemas/ConnectionDisplaySchema"
          },
          "limits": {
            "$ref": "#/components/schemas/ConnectionLimitsSchema"
          },
          "disabled": {
            "type": "boolean",
            "description": "Whether the connection is disabled"
          }
        },
        "required": [
          "name",
          "description",
          "type",
          "system",
          "clients",
          "has_clients",
          "display",
          "limits",
          "disabled"
        ],
        "description": "Connection info for AZURE_AI"
      },
      "ConnectionOpenrouterInfoSchema": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "OPENROUTER"
            ],
            "description": "Connection type"
          },
          "system": {
            "type": "boolean",
            "description": "Whether the connection is a system connection"
          },
          "clients": {
            "$ref": "#/components/schemas/ConnectionClientsSchema"
          },
          "has_clients": {
            "type": "boolean",
            "description": "Whether the connection has clients"
          },
          "models_adapter": {
            "$ref": "#/components/schemas/ModelProviderTypeSchema"
          },
          "display": {
            "$ref": "#/components/schemas/ConnectionDisplaySchema"
          },
          "limits": {
            "$ref": "#/components/schemas/ConnectionLimitsSchema"
          },
          "disabled": {
            "type": "boolean",
            "description": "Whether the connection is disabled"
          }
        },
        "required": [
          "name",
          "description",
          "type",
          "system",
          "clients",
          "has_clients",
          "display",
          "limits",
          "disabled"
        ],
        "description": "Connection info for OPENROUTER"
      },
      "ConnectionGroqInfoSchema": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "GROQ"
            ],
            "description": "Connection type"
          },
          "system": {
            "type": "boolean",
            "description": "Whether the connection is a system connection"
          },
          "clients": {
            "$ref": "#/components/schemas/ConnectionClientsSchema"
          },
          "has_clients": {
            "type": "boolean",
            "description": "Whether the connection has clients"
          },
          "models_adapter": {
            "$ref": "#/components/schemas/ModelProviderTypeSchema"
          },
          "display": {
            "$ref": "#/components/schemas/ConnectionDisplaySchema"
          },
          "limits": {
            "$ref": "#/components/schemas/ConnectionLimitsSchema"
          },
          "disabled": {
            "type": "boolean",
            "description": "Whether the connection is disabled"
          }
        },
        "required": [
          "name",
          "description",
          "type",
          "system",
          "clients",
          "has_clients",
          "display",
          "limits",
          "disabled"
        ],
        "description": "Connection info for GROQ"
      },
      "ConnectionMistralInfoSchema": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "MISTRAL"
            ],
            "description": "Connection type"
          },
          "system": {
            "type": "boolean",
            "description": "Whether the connection is a system connection"
          },
          "clients": {
            "$ref": "#/components/schemas/ConnectionClientsSchema"
          },
          "has_clients": {
            "type": "boolean",
            "description": "Whether the connection has clients"
          },
          "models_adapter": {
            "$ref": "#/components/schemas/ModelProviderTypeSchema"
          },
          "display": {
            "$ref": "#/components/schemas/ConnectionDisplaySchema"
          },
          "limits": {
            "$ref": "#/components/schemas/ConnectionLimitsSchema"
          },
          "disabled": {
            "type": "boolean",
            "description": "Whether the connection is disabled"
          }
        },
        "required": [
          "name",
          "description",
          "type",
          "system",
          "clients",
          "has_clients",
          "display",
          "limits",
          "disabled"
        ],
        "description": "Connection info for MISTRAL"
      },
      "ConnectionsInfoSchema": {
        "type": "object",
        "properties": {
          "SCHEDULER": {
            "$ref": "#/components/schemas/ConnectionSchedulerInfoSchema"
          },
          "TOOLS": {
            "$ref": "#/components/schemas/ConnectionToolsInfoSchema"
          },
          "FILES": {
            "$ref": "#/components/schemas/ConnectionFilesInfoSchema"
          },
          "COLLECTIONS": {
            "$ref": "#/components/schemas/ConnectionCollectionsInfoSchema"
          },
          "OAUTH": {
            "$ref": "#/components/schemas/ConnectionOauthInfoSchema"
          },
          "GOOGLE_SHEETS": {
            "$ref": "#/components/schemas/ConnectionGoogleSheetsInfoSchema"
          },
          "GOOGLE_CALENDAR": {
            "$ref": "#/components/schemas/ConnectionGoogleCalendarInfoSchema"
          },
          "GMAIL": {
            "$ref": "#/components/schemas/ConnectionGmailInfoSchema"
          },
          "GOOGLE_DRIVE": {
            "$ref": "#/components/schemas/ConnectionGoogleDriveInfoSchema"
          },
          "SLACK": {
            "$ref": "#/components/schemas/ConnectionSlackInfoSchema"
          },
          "ENCOMPASS": {
            "$ref": "#/components/schemas/ConnectionEncompassInfoSchema"
          },
          "STATIC_SYNAPSE": {
            "$ref": "#/components/schemas/ConnectionStaticSynapseInfoSchema"
          },
          "PERSONA": {
            "$ref": "#/components/schemas/ConnectionPersonaInfoSchema"
          },
          "NOTION": {
            "$ref": "#/components/schemas/ConnectionNotionInfoSchema"
          },
          "SALESFORCE": {
            "$ref": "#/components/schemas/ConnectionSalesforceInfoSchema"
          },
          "WHATSAPP": {
            "$ref": "#/components/schemas/ConnectionWhatsappInfoSchema"
          },
          "RAPIDAPI": {
            "$ref": "#/components/schemas/ConnectionRapidapiInfoSchema"
          },
          "RAPIDAPI_DAXY_ENRICH_CONTACT": {
            "$ref": "#/components/schemas/ConnectionRapidapiDaxyEnrichContactInfoSchema"
          },
          "RAPIDAPI_ZILLOW": {
            "$ref": "#/components/schemas/ConnectionRapidapiZillowInfoSchema"
          },
          "RAPIDAPI_FRESH_LINKEDIN_PROFILE": {
            "$ref": "#/components/schemas/ConnectionRapidapiFreshLinkedinProfileInfoSchema"
          },
          "RAPIDAPI_LINKEDIN_SCRAPER_API": {
            "$ref": "#/components/schemas/ConnectionRapidapiLinkedinScraperApiInfoSchema"
          },
          "RAPIDAPI_JSEARCH": {
            "$ref": "#/components/schemas/ConnectionRapidapiJsearchInfoSchema"
          },
          "RAPIDAPI_INSTAGRAM_SOCIAL": {
            "$ref": "#/components/schemas/ConnectionRapidapiInstagramSocialInfoSchema"
          },
          "OPENAI": {
            "$ref": "#/components/schemas/ConnectionOpenaiInfoSchema"
          },
          "ANTHROPIC": {
            "$ref": "#/components/schemas/ConnectionAnthropicInfoSchema"
          },
          "GOOGLE_AI": {
            "$ref": "#/components/schemas/ConnectionGoogleAiInfoSchema"
          },
          "XAI": {
            "$ref": "#/components/schemas/ConnectionXaiInfoSchema"
          },
          "AZURE_AI": {
            "$ref": "#/components/schemas/ConnectionAzureAiInfoSchema"
          },
          "OPENROUTER": {
            "$ref": "#/components/schemas/ConnectionOpenrouterInfoSchema"
          },
          "GROQ": {
            "$ref": "#/components/schemas/ConnectionGroqInfoSchema"
          },
          "MISTRAL": {
            "$ref": "#/components/schemas/ConnectionMistralInfoSchema"
          }
        },
        "required": [
          "SCHEDULER",
          "TOOLS",
          "FILES",
          "COLLECTIONS",
          "OAUTH",
          "GOOGLE_SHEETS",
          "GOOGLE_CALENDAR",
          "GMAIL",
          "GOOGLE_DRIVE",
          "SLACK",
          "ENCOMPASS",
          "STATIC_SYNAPSE",
          "PERSONA",
          "NOTION",
          "SALESFORCE",
          "WHATSAPP",
          "RAPIDAPI",
          "RAPIDAPI_DAXY_ENRICH_CONTACT",
          "RAPIDAPI_ZILLOW",
          "RAPIDAPI_FRESH_LINKEDIN_PROFILE",
          "RAPIDAPI_LINKEDIN_SCRAPER_API",
          "RAPIDAPI_JSEARCH",
          "RAPIDAPI_INSTAGRAM_SOCIAL",
          "OPENAI",
          "ANTHROPIC",
          "GOOGLE_AI",
          "XAI",
          "AZURE_AI",
          "OPENROUTER",
          "GROQ",
          "MISTRAL"
        ],
        "description": "Connection info"
      },
      "ConnectionActionTypeSchema": {
        "type": "string",
        "enum": [
          "action",
          "trigger",
          "none"
        ],
        "description": "Type of the action"
      },
      "ConnectionActionSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "type": {
            "$ref": "#/components/schemas/ConnectionActionTypeSchema"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "input": {
            "$ref": "#/components/schemas/InputDefinitionSchema"
          },
          "output": {
            "$ref": "#/components/schemas/InputSchema"
          },
          "icon": {
            "type": "string"
          },
          "icon_path": {
            "type": "string"
          },
          "preview_path": {
            "type": "string"
          },
          "system": {
            "type": "boolean"
          },
          "disabled": {
            "type": "boolean"
          },
          "has_options": {
            "type": "boolean"
          },
          "has_fields": {
            "type": "boolean"
          }
        },
        "required": [
          "id",
          "type",
          "name",
          "system",
          "disabled",
          "has_options",
          "has_fields"
        ],
        "description": "Connection action"
      },
      "ConnectionActionsSchema": {
        "type": "object",
        "additionalProperties": {
          "type": "object",
          "additionalProperties": {
            "$ref": "#/components/schemas/ConnectionActionSchema"
          }
        },
        "description": "Connection actions"
      },
      "ModelSpeedSchema": {
        "type": "string",
        "enum": [
          "very-slow",
          "slow",
          "medium",
          "fast",
          "very-fast"
        ],
        "description": "Model latency/speed classification"
      },
      "GenerationQuoteCardSchema": {
        "type": "object",
        "properties": {
          "modality": {
            "type": "string",
            "enum": [
              "image",
              "video",
              "text"
            ]
          },
          "quoteParams": {
            "type": "object",
            "additionalProperties": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "enum": [
                    "enum",
                    "integer",
                    "number",
                    "boolean"
                  ]
                },
                "values": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "min": {
                  "type": "number"
                },
                "max": {
                  "type": "number"
                },
                "default": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "number"
                    },
                    {
                      "type": "boolean"
                    }
                  ]
                },
                "optional": {
                  "type": "boolean"
                }
              },
              "required": [
                "type"
              ]
            }
          },
          "generateParams": {
            "type": "object",
            "additionalProperties": {
              "nullable": true
            }
          },
          "pricing": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "billable": {
                  "type": "string"
                },
                "unit": {
                  "type": "string",
                  "enum": [
                    "image",
                    "second",
                    "token"
                  ]
                },
                "costUsd": {
                  "type": "number"
                },
                "includedUnits": {
                  "type": "number",
                  "minimum": 0
                },
                "minimumUnits": {
                  "type": "number",
                  "minimum": 0
                },
                "when": {
                  "type": "object",
                  "properties": {
                    "resolution": {
                      "type": "string"
                    },
                    "quality": {
                      "type": "string"
                    },
                    "generateAudio": {
                      "type": "boolean"
                    },
                    "hasVideoInput": {
                      "type": "boolean"
                    }
                  }
                },
                "times": {
                  "type": "string",
                  "enum": [
                    "n",
                    "duration",
                    "referenceCount",
                    "durationPlusInputSeconds",
                    "inputVideoSeconds",
                    "promptTokens"
                  ]
                }
              },
              "required": [
                "billable",
                "unit",
                "costUsd"
              ]
            }
          },
          "tokenEstimates": {
            "type": "object",
            "additionalProperties": {
              "type": "object",
              "additionalProperties": {
                "type": "number"
              }
            }
          },
          "tokenSettle": {
            "type": "object",
            "properties": {
              "inputUsdPerMillion": {
                "type": "number"
              },
              "outputUsdPerMillion": {
                "type": "number"
              },
              "outputUsdPerMillionVideoInput": {
                "type": "number"
              },
              "reasoningUsdPerMillion": {
                "type": "number"
              },
              "pixelsPerOutputToken": {
                "type": "number"
              },
              "maxPixelsForFirstResolution": {
                "type": "number"
              }
            }
          }
        },
        "required": [
          "modality",
          "quoteParams",
          "pricing"
        ]
      },
      "ModelPricingSchema": {
        "type": "object",
        "properties": {
          "input": {
            "type": "number"
          },
          "input_cache": {
            "type": "number"
          },
          "input_cache_create": {
            "type": "number"
          },
          "output": {
            "type": "number"
          },
          "output_reasoning": {
            "type": "number"
          },
          "generation": {
            "$ref": "#/components/schemas/GenerationQuoteCardSchema"
          }
        },
        "required": [
          "input",
          "output"
        ]
      },
      "ModelSupportInputSchema": {
        "type": "string",
        "enum": [
          "text",
          "image",
          "file"
        ],
        "description": "Supported input types"
      },
      "ModelSupportOutputSchema": {
        "type": "string",
        "enum": [
          "text",
          "json",
          "image",
          "video"
        ],
        "description": "Supported output types"
      },
      "ModelSupportSchema": {
        "type": "object",
        "properties": {
          "input": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ModelSupportInputSchema"
            }
          },
          "output": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ModelSupportOutputSchema"
            }
          }
        },
        "required": [
          "input",
          "output"
        ],
        "description": "Supported input and output types"
      },
      "ModelFeatureTypeSchema": {
        "type": "string",
        "enum": [
          "web_search"
        ],
        "description": "Model features type"
      },
      "ModelInfoSchema": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "provider": {
            "type": "string"
          },
          "model": {
            "type": "string"
          },
          "date": {
            "type": "string"
          },
          "latency": {
            "$ref": "#/components/schemas/ModelSpeedSchema"
          },
          "description": {
            "type": "string"
          },
          "input_tokens": {
            "type": "number"
          },
          "output_tokens": {
            "type": "number"
          },
          "pricing": {
            "$ref": "#/components/schemas/ModelPricingSchema"
          },
          "support": {
            "$ref": "#/components/schemas/ModelSupportSchema"
          },
          "category": {
            "type": "string"
          },
          "features": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ModelFeatureTypeSchema"
            }
          },
          "cutoff_date": {
            "type": "string"
          },
          "beta": {
            "type": "boolean"
          },
          "legacy": {
            "type": "boolean"
          },
          "latest": {
            "type": "boolean"
          }
        },
        "required": [
          "name",
          "provider",
          "model",
          "date",
          "latency",
          "description",
          "input_tokens",
          "output_tokens",
          "pricing",
          "support",
          "features",
          "beta",
          "legacy",
          "latest"
        ]
      },
      "ModelFeaturesListSchema": {
        "type": "object",
        "properties": {
          "web_search": {
            "$ref": "#/components/schemas/FieldObjectSchema"
          }
        }
      },
      "ModelCategorySchema": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "value": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "value"
        ]
      },
      "InfoSchema": {
        "type": "object",
        "properties": {
          "connections": {
            "$ref": "#/components/schemas/ConnectionsInfoSchema"
          },
          "actions": {
            "$ref": "#/components/schemas/ConnectionActionsSchema"
          },
          "models": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ModelInfoSchema"
            }
          },
          "model_features": {
            "$ref": "#/components/schemas/ModelFeaturesListSchema"
          },
          "models_categories": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ModelCategorySchema"
            }
          }
        },
        "required": [
          "connections",
          "actions",
          "models",
          "model_features",
          "models_categories"
        ],
        "description": "Information about the platform"
      },
      "AuthUserSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "role": {
            "type": "string",
            "enum": [
              "USER",
              "STAFF",
              "ADMIN",
              "ANALYST"
            ]
          },
          "has_redeemed_invitation": {
            "type": "boolean"
          }
        },
        "required": [
          "id",
          "email",
          "name",
          "role",
          "has_redeemed_invitation"
        ]
      },
      "AuthSchema": {
        "type": "object",
        "nullable": true,
        "properties": {
          "user": {
            "$ref": "#/components/schemas/AuthUserSchema"
          },
          "is_new": {
            "type": "boolean"
          },
          "session_token": {
            "type": "string"
          }
        },
        "required": [
          "user",
          "is_new"
        ]
      },
      "ValidateAuthSchema": {
        "type": "object",
        "properties": {
          "firebase_token_id": {
            "type": "string"
          },
          "code": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              }
            ]
          },
          "email": {
            "type": "string",
            "format": "email"
          },
          "token": {
            "type": "string",
            "minLength": 64,
            "maxLength": 64
          },
          "invite_link_token": {
            "type": "string",
            "minLength": 64,
            "maxLength": 64
          },
          "invitation_code": {
            "type": "string",
            "minLength": 3,
            "maxLength": 64,
            "pattern": "^[a-zA-Z0-9_-]+$"
          },
          "source": {
            "type": "string",
            "description": "Source of the login request: \"workspace\" for Cortex Workspace, omit for Cortex App"
          }
        }
      },
      "AuthCodeSchema": {
        "type": "object",
        "properties": {
          "login_link": {
            "type": "string"
          }
        }
      },
      "RequestAuthCodeSchema": {
        "type": "object",
        "properties": {
          "email": {
            "type": "string",
            "format": "email"
          },
          "token": {
            "type": "string",
            "minLength": 64,
            "maxLength": 64
          },
          "invite_link_token": {
            "type": "string",
            "minLength": 64,
            "maxLength": 64
          },
          "invitation_code": {
            "type": "string",
            "minLength": 3,
            "maxLength": 64,
            "pattern": "^[a-zA-Z0-9_-]+$"
          },
          "source": {
            "type": "string",
            "description": "Source of the login request: \"workspace\" for Cortex Workspace, omit for Cortex App"
          }
        },
        "required": [
          "email"
        ]
      },
      "UserRoleSchema": {
        "type": "string",
        "enum": [
          "USER",
          "STAFF",
          "ADMIN",
          "ANALYST"
        ]
      },
      "UserSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "email": {
            "type": "string",
            "format": "email"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "role": {
            "$ref": "#/components/schemas/UserRoleSchema"
          },
          "status": {
            "type": "string",
            "enum": [
              "ACTIVE",
              "INACTIVE"
            ]
          },
          "created_at": {
            "type": "string",
            "nullable": true,
            "format": "date"
          },
          "seen_at": {
            "type": "string",
            "nullable": true,
            "format": "date"
          },
          "has_redeemed_invitation": {
            "type": "boolean"
          }
        },
        "required": [
          "id",
          "email",
          "name",
          "role",
          "status",
          "created_at",
          "seen_at",
          "has_redeemed_invitation"
        ]
      },
      "UpdateUserMeSchema": {
        "type": "object",
        "properties": {
          "email": {
            "type": "string",
            "format": "email"
          },
          "name": {
            "type": "string",
            "nullable": true,
            "minLength": 1,
            "maxLength": 64
          }
        }
      },
      "ReplyUserSurveySchema": {
        "oneOf": [
          {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "enum": [
                  "onboarding_v1"
                ]
              },
              "response": {
                "type": "object",
                "properties": {
                  "role": {
                    "type": "array",
                    "description": "Select the option that best describes your role.",
                    "items": {
                      "type": "string",
                      "enum": [
                        "engineer_developer",
                        "cto_technical_leader",
                        "data_ai_lead",
                        "operations",
                        "business_sales",
                        "founder_executive"
                      ]
                    }
                  },
                  "role_other": {
                    "type": "string",
                    "description": "Please specify your role."
                  },
                  "what_to_automate": {
                    "type": "array",
                    "description": "Select the option that best describes your needs.",
                    "items": {
                      "type": "string",
                      "enum": [
                        "internal_processes",
                        "customer_apps",
                        "centralize_ai",
                        "prototype_test",
                        "team_setup",
                        "exploring"
                      ]
                    }
                  },
                  "what_to_automate_other": {
                    "type": "string",
                    "description": "Please specify what you want to automate."
                  },
                  "discovery_source": {
                    "type": "string",
                    "description": "Select the option that best describes how you learned about Cortex.",
                    "enum": [
                      "google",
                      "x",
                      "linkedin",
                      "youtube"
                    ]
                  },
                  "discovery_source_other": {
                    "type": "string",
                    "description": "Please specify how you learned about Cortex."
                  }
                }
              }
            },
            "required": [
              "id",
              "response"
            ]
          }
        ],
        "description": "User survey response",
        "example": {
          "id": "onboarding",
          "response": {
            "what_to_automate": "internal_processes",
            "what_to_automate_other": "Other reason"
          }
        }
      },
      "UserSurveyCheckSchema": {
        "type": "object",
        "properties": {
          "answered": {
            "type": "boolean"
          }
        },
        "required": [
          "answered"
        ],
        "description": "Whether the user has answered the survey",
        "example": {
          "answered": true
        }
      },
      "PersonalizeV1AnswersSchema": {
        "type": "object",
        "properties": {
          "role": {
            "type": "string",
            "nullable": true
          },
          "role_other": {
            "type": "string",
            "nullable": true
          },
          "surface": {
            "type": "string",
            "nullable": true
          },
          "surface_other": {
            "type": "string",
            "nullable": true
          },
          "first_task_id": {
            "type": "string",
            "nullable": true
          },
          "first_task_label": {
            "type": "string",
            "nullable": true
          },
          "is_custom_task": {
            "type": "boolean",
            "nullable": true
          }
        },
        "description": "Workspace onboarding answers for personalize_v1"
      },
      "WorkspaceOnboardingProgressSchema": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "not_started",
              "in_progress",
              "completed"
            ]
          },
          "step": {
            "type": "string",
            "enum": [
              "role",
              "surface",
              "task",
              "done"
            ]
          },
          "schema_version": {
            "type": "string",
            "enum": [
              "personalize_v1"
            ]
          },
          "answers": {
            "$ref": "#/components/schemas/PersonalizeV1AnswersSchema"
          },
          "completed_at": {
            "type": "string",
            "nullable": true,
            "format": "date"
          },
          "updated_at": {
            "type": "string",
            "nullable": true,
            "format": "date"
          },
          "created_at": {
            "type": "string",
            "nullable": true,
            "format": "date"
          }
        },
        "required": [
          "status",
          "step",
          "schema_version",
          "answers"
        ],
        "description": "Resumable workspace onboarding progress for the current user"
      },
      "PatchWorkspaceOnboardingSchema": {
        "type": "object",
        "properties": {
          "schema_version": {
            "type": "string",
            "enum": [
              "personalize_v1"
            ]
          },
          "step": {
            "type": "string",
            "enum": [
              "role",
              "surface",
              "task",
              "done"
            ]
          },
          "answers": {
            "$ref": "#/components/schemas/PersonalizeV1AnswersSchema"
          },
          "complete": {
            "type": "boolean"
          }
        },
        "description": "Partial upsert for workspace onboarding progress"
      },
      "DebugIpSchema": {
        "type": "object",
        "properties": {
          "ip": {
            "type": "string",
            "nullable": true
          }
        },
        "required": [
          "ip"
        ]
      },
      "PublicCreditsInfoSchema": {
        "type": "object",
        "properties": {
          "credit_unit_cost": {
            "type": "number"
          },
          "steps_cost": {
            "type": "object",
            "properties": {
              "note": {
                "type": "number"
              },
              "input": {
                "type": "number"
              },
              "branch": {
                "type": "number"
              },
              "code": {
                "type": "number"
              },
              "model": {
                "type": "number"
              },
              "http_request": {
                "type": "number"
              },
              "browser": {
                "type": "number"
              },
              "workflow": {
                "type": "number"
              },
              "service": {
                "type": "number"
              },
              "cortex_use": {
                "type": "number"
              }
            }
          }
        },
        "required": [
          "credit_unit_cost",
          "steps_cost"
        ]
      },
      "CreditsInfoSchema": {
        "allOf": [
          {
            "$ref": "#/components/schemas/PublicCreditsInfoSchema"
          },
          {
            "type": "object",
            "properties": {
              "models_pricing": {
                "type": "object",
                "properties": {
                  "auto": {
                    "type": "object",
                    "additionalProperties": {
                      "type": "object",
                      "properties": {
                        "input": {
                          "type": "number"
                        },
                        "output": {
                          "type": "number"
                        }
                      },
                      "required": [
                        "input",
                        "output"
                      ]
                    }
                  },
                  "text": {
                    "type": "object",
                    "additionalProperties": {
                      "type": "object",
                      "properties": {
                        "input": {
                          "type": "number"
                        },
                        "output": {
                          "type": "number"
                        }
                      },
                      "required": [
                        "input",
                        "output"
                      ]
                    }
                  },
                  "cloudflare": {
                    "type": "object",
                    "additionalProperties": {
                      "type": "object",
                      "properties": {
                        "input": {
                          "type": "number"
                        },
                        "output": {
                          "type": "number"
                        }
                      },
                      "required": [
                        "input",
                        "output"
                      ]
                    }
                  },
                  "openai": {
                    "type": "object",
                    "additionalProperties": {
                      "type": "object",
                      "properties": {
                        "input": {
                          "type": "number"
                        },
                        "output": {
                          "type": "number"
                        }
                      },
                      "required": [
                        "input",
                        "output"
                      ]
                    }
                  },
                  "openai_chat_completions": {
                    "type": "object",
                    "additionalProperties": {
                      "type": "object",
                      "properties": {
                        "input": {
                          "type": "number"
                        },
                        "output": {
                          "type": "number"
                        }
                      },
                      "required": [
                        "input",
                        "output"
                      ]
                    }
                  },
                  "anthropic": {
                    "type": "object",
                    "additionalProperties": {
                      "type": "object",
                      "properties": {
                        "input": {
                          "type": "number"
                        },
                        "output": {
                          "type": "number"
                        }
                      },
                      "required": [
                        "input",
                        "output"
                      ]
                    }
                  },
                  "google": {
                    "type": "object",
                    "additionalProperties": {
                      "type": "object",
                      "properties": {
                        "input": {
                          "type": "number"
                        },
                        "output": {
                          "type": "number"
                        }
                      },
                      "required": [
                        "input",
                        "output"
                      ]
                    }
                  },
                  "x": {
                    "type": "object",
                    "additionalProperties": {
                      "type": "object",
                      "properties": {
                        "input": {
                          "type": "number"
                        },
                        "output": {
                          "type": "number"
                        }
                      },
                      "required": [
                        "input",
                        "output"
                      ]
                    }
                  },
                  "openrouter": {
                    "type": "object",
                    "additionalProperties": {
                      "type": "object",
                      "properties": {
                        "input": {
                          "type": "number"
                        },
                        "output": {
                          "type": "number"
                        }
                      },
                      "required": [
                        "input",
                        "output"
                      ]
                    }
                  },
                  "groq": {
                    "type": "object",
                    "additionalProperties": {
                      "type": "object",
                      "properties": {
                        "input": {
                          "type": "number"
                        },
                        "output": {
                          "type": "number"
                        }
                      },
                      "required": [
                        "input",
                        "output"
                      ]
                    }
                  },
                  "azure": {
                    "type": "object",
                    "additionalProperties": {
                      "type": "object",
                      "properties": {
                        "input": {
                          "type": "number"
                        },
                        "output": {
                          "type": "number"
                        }
                      },
                      "required": [
                        "input",
                        "output"
                      ]
                    }
                  },
                  "mistral": {
                    "type": "object",
                    "additionalProperties": {
                      "type": "object",
                      "properties": {
                        "input": {
                          "type": "number"
                        },
                        "output": {
                          "type": "number"
                        }
                      },
                      "required": [
                        "input",
                        "output"
                      ]
                    }
                  },
                  "cerebras": {
                    "type": "object",
                    "additionalProperties": {
                      "type": "object",
                      "properties": {
                        "input": {
                          "type": "number"
                        },
                        "output": {
                          "type": "number"
                        }
                      },
                      "required": [
                        "input",
                        "output"
                      ]
                    }
                  },
                  "fireworks": {
                    "type": "object",
                    "additionalProperties": {
                      "type": "object",
                      "properties": {
                        "input": {
                          "type": "number"
                        },
                        "output": {
                          "type": "number"
                        }
                      },
                      "required": [
                        "input",
                        "output"
                      ]
                    }
                  },
                  "deepseek": {
                    "type": "object",
                    "additionalProperties": {
                      "type": "object",
                      "properties": {
                        "input": {
                          "type": "number"
                        },
                        "output": {
                          "type": "number"
                        }
                      },
                      "required": [
                        "input",
                        "output"
                      ]
                    }
                  },
                  "browser_use": {
                    "type": "object",
                    "additionalProperties": {
                      "type": "object",
                      "properties": {
                        "input": {
                          "type": "number"
                        },
                        "output": {
                          "type": "number"
                        }
                      },
                      "required": [
                        "input",
                        "output"
                      ]
                    }
                  },
                  "bytedance": {
                    "type": "object",
                    "additionalProperties": {
                      "type": "object",
                      "properties": {
                        "input": {
                          "type": "number"
                        },
                        "output": {
                          "type": "number"
                        }
                      },
                      "required": [
                        "input",
                        "output"
                      ]
                    }
                  },
                  "minimax": {
                    "type": "object",
                    "additionalProperties": {
                      "type": "object",
                      "properties": {
                        "input": {
                          "type": "number"
                        },
                        "output": {
                          "type": "number"
                        }
                      },
                      "required": [
                        "input",
                        "output"
                      ]
                    }
                  },
                  "kuaishou": {
                    "type": "object",
                    "additionalProperties": {
                      "type": "object",
                      "properties": {
                        "input": {
                          "type": "number"
                        },
                        "output": {
                          "type": "number"
                        }
                      },
                      "required": [
                        "input",
                        "output"
                      ]
                    }
                  },
                  "zai": {
                    "type": "object",
                    "additionalProperties": {
                      "type": "object",
                      "properties": {
                        "input": {
                          "type": "number"
                        },
                        "output": {
                          "type": "number"
                        }
                      },
                      "required": [
                        "input",
                        "output"
                      ]
                    }
                  }
                }
              }
            },
            "required": [
              "models_pricing"
            ]
          }
        ]
      },
      "DashboardAnalyticsSchema": {
        "type": "object",
        "properties": {
          "records_created_count": {
            "type": "number"
          },
          "records_analyzed_count": {
            "type": "number"
          },
          "workflows_count": {
            "type": "number"
          },
          "workflows_runs_count": {
            "type": "number"
          },
          "collections_count": {
            "type": "number"
          },
          "organizations_count": {
            "type": "number"
          },
          "users_count": {
            "type": "number"
          }
        },
        "required": [
          "records_created_count",
          "records_analyzed_count",
          "workflows_count",
          "workflows_runs_count",
          "collections_count",
          "organizations_count",
          "users_count"
        ]
      },
      "ActiveUsersSchema": {
        "type": "object",
        "properties": {
          "amount": {
            "type": "number"
          }
        },
        "required": [
          "amount"
        ]
      },
      "MetricSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "intervals": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MetricsIntervalSchema"
            }
          }
        },
        "required": [
          "id",
          "name"
        ]
      },
      "MetricItemSchema": {
        "type": "object",
        "properties": {
          "date": {
            "type": "string",
            "nullable": true,
            "format": "date"
          },
          "amount": {
            "type": "number"
          }
        },
        "required": [
          "date",
          "amount"
        ]
      },
      "SecureStatusTypeSchema": {
        "type": "string",
        "enum": [
          "HEALTHY",
          "UNHEALTHY",
          "DEGRADED"
        ]
      },
      "SecureSystemCriticalServiceItemSchema": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "status": {
            "$ref": "#/components/schemas/SecureStatusTypeSchema"
          },
          "latency": {
            "type": "number"
          },
          "error": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "status"
        ]
      },
      "SecureStatusProviderSchema": {
        "type": "string",
        "enum": [
          "SYSTEM",
          "PROVIDER"
        ]
      },
      "HealthCheckSchema": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "type": {
            "$ref": "#/components/schemas/SecureStatusProviderSchema"
          },
          "status": {
            "$ref": "#/components/schemas/SecureStatusTypeSchema"
          },
          "latency": {
            "type": "number"
          },
          "response": {
            "type": "object",
            "nullable": true,
            "properties": {}
          },
          "error": {
            "type": "string",
            "nullable": true
          },
          "failed_checks": {
            "type": "number"
          },
          "last_healthy_at": {
            "type": "string",
            "nullable": true,
            "format": "date"
          },
          "reported": {
            "type": "boolean"
          },
          "updated_at": {
            "type": "string",
            "nullable": true,
            "format": "date"
          }
        },
        "required": [
          "name",
          "type",
          "status",
          "response",
          "error",
          "failed_checks",
          "last_healthy_at"
        ]
      },
      "SecureStatusSchema": {
        "type": "object",
        "properties": {
          "main_healthchecks": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SecureSystemCriticalServiceItemSchema"
            }
          },
          "healthchecks": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/HealthCheckSchema"
            }
          }
        },
        "required": [
          "main_healthchecks",
          "healthchecks"
        ]
      },
      "InstanceSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "is_controller": {
            "type": "boolean"
          },
          "is_worker": {
            "type": "boolean"
          },
          "created_at": {
            "type": "string",
            "nullable": true,
            "format": "date"
          },
          "last_update_at": {
            "type": "string",
            "nullable": true,
            "format": "date"
          }
        },
        "required": [
          "id",
          "is_controller",
          "is_worker",
          "created_at",
          "last_update_at"
        ]
      },
      "SchedulerSchema": {
        "type": "object",
        "properties": {
          "instances_count": {
            "type": "number"
          },
          "workers_count": {
            "type": "number"
          },
          "worker_tasks_count": {
            "type": "number"
          }
        },
        "required": [
          "instances_count",
          "workers_count",
          "worker_tasks_count"
        ]
      },
      "SettingNameSchema": {
        "type": "string",
        "enum": [
          "staff_emails"
        ]
      },
      "SettingSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "$ref": "#/components/schemas/SettingNameSchema"
          },
          "value": {
            "type": "string",
            "nullable": true
          },
          "created_at": {
            "type": "string",
            "nullable": true,
            "format": "date"
          },
          "updated_at": {
            "type": "string",
            "nullable": true,
            "format": "date"
          }
        },
        "required": [
          "id",
          "name",
          "value",
          "created_at",
          "updated_at"
        ]
      },
      "UpdateSettingSchema": {
        "type": "object",
        "properties": {
          "value": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "FileSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier for the file"
          },
          "file_id": {
            "type": "string",
            "description": "File identifier used in the storage system"
          },
          "file_filename": {
            "type": "string",
            "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",
            "description": "MIME type of the file",
            "example": "application/pdf"
          },
          "file_url": {
            "type": "string",
            "description": "URL to access the file"
          },
          "created_at": {
            "type": "string",
            "nullable": true,
            "description": "Timestamp when the file was created",
            "format": "date"
          }
        },
        "required": [
          "id",
          "file_id",
          "file_filename",
          "file_size",
          "file_mimetype",
          "file_url",
          "created_at"
        ],
        "description": "Detailed information about a file"
      },
      "FileDataSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "string",
            "description": "URL, Raw or Base64 encoded file data.",
            "example": "SGVsbG8sIHdvcmxkIQ=="
          },
          "type": {
            "type": "string",
            "maxLength": 64,
            "description": "Mime type of the file, if not provided it will be inferred.",
            "example": "application/pdf"
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "description": "Name of the file.",
            "example": "document.pdf"
          },
          "encoding": {
            "type": "string",
            "enum": [
              "base64",
              "raw"
            ],
            "description": "Encoding of the file data when it's a direct input, by default base64 is expected.",
            "example": "base64"
          }
        },
        "required": [
          "data"
        ],
        "description": "Data payload for creating a file"
      },
      "FileAllowedTypesSchema": {
        "type": "array",
        "items": {
          "type": "string",
          "maxLength": 255
        },
        "maxItems": 255,
        "default": [
          "*/*"
        ],
        "description": "The allowed mime types for the file field (e.g. image/*, application/pdf)"
      },
      "CreateFileSchema": {
        "type": "object",
        "properties": {
          "file": {
            "anyOf": [
              {
                "type": "string",
                "format": "binary"
              },
              {
                "$ref": "#/components/schemas/FileDataSchema"
              },
              {
                "type": "string"
              }
            ],
            "description": "File to be uploaded. It can be a file object, a base64 encoded string, or a file data object containing base64 data, name, and type."
          },
          "file_url": {
            "type": "string",
            "description": "URL of the file to be uploaded",
            "example": "https://example.com/files/document.pdf"
          },
          "allowed_types": {
            "$ref": "#/components/schemas/FileAllowedTypesSchema"
          },
          "bucket": {
            "type": "string",
            "description": "The specific storage bucket to upload the file to. Defaults to the system configuration if not provided.",
            "example": "devbucket-eu"
          }
        }
      },
      "PostCategorySchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "slug": {
            "type": "string"
          },
          "created_at": {
            "type": "string",
            "nullable": true,
            "format": "date"
          },
          "updated_at": {
            "type": "string",
            "nullable": true,
            "format": "date"
          }
        },
        "required": [
          "id",
          "name",
          "slug",
          "created_at",
          "updated_at"
        ]
      },
      "CreatePostCategorySchema": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "slug": {
            "type": "string"
          }
        },
        "required": [
          "name"
        ]
      },
      "UpdatePostCategorySchema": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "slug": {
            "type": "string"
          }
        }
      },
      "PostSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "cover_url": {
            "type": "string",
            "nullable": true
          },
          "title": {
            "type": "string",
            "maxLength": 255
          },
          "content": {
            "type": "string"
          },
          "authors": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "category": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PostCategorySchema"
              },
              {
                "nullable": true
              }
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "DRAFT",
              "PUBLISHED"
            ]
          },
          "published_at": {
            "type": "string",
            "nullable": true,
            "format": "date"
          },
          "created_at": {
            "type": "string",
            "nullable": true,
            "format": "date"
          },
          "updated_at": {
            "type": "string",
            "nullable": true,
            "format": "date"
          }
        },
        "required": [
          "id",
          "cover_url",
          "title",
          "authors",
          "category",
          "status",
          "published_at",
          "created_at",
          "updated_at"
        ]
      },
      "CreatePostSchema": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string",
            "maxLength": 255
          },
          "content": {
            "type": "string"
          },
          "cover_file_id": {
            "type": "string"
          },
          "category_id": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": [
              "DRAFT",
              "PUBLISHED"
            ]
          },
          "authors": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "slug": {
            "type": "string",
            "maxLength": 255
          },
          "published_at": {
            "type": "string",
            "nullable": true,
            "format": "date"
          }
        },
        "required": [
          "title"
        ]
      },
      "UpdatePostSchema": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string",
            "maxLength": 255
          },
          "content": {
            "type": "string"
          },
          "cover_file_id": {
            "type": "string"
          },
          "category_id": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": [
              "DRAFT",
              "PUBLISHED"
            ]
          },
          "authors": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "slug": {
            "type": "string",
            "maxLength": 255
          },
          "published_at": {
            "type": "string",
            "nullable": true,
            "format": "date"
          }
        }
      },
      "SecureUserSurveyQuestionSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "name"
        ]
      },
      "SecureUserSurveyDefinitionSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "questions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SecureUserSurveyQuestionSchema"
            }
          },
          "total_participants": {
            "type": "number"
          }
        },
        "required": [
          "id",
          "name",
          "questions",
          "total_participants"
        ]
      },
      "SecureUserSurveyResponseTotalSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "response": {
            "type": "string",
            "nullable": true
          },
          "count": {
            "type": "number"
          }
        },
        "required": [
          "id",
          "name",
          "count"
        ]
      },
      "SecureUserSurveyTotalsSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "responses_count": {
            "type": "number"
          },
          "responses": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SecureUserSurveyResponseTotalSchema"
            }
          }
        },
        "required": [
          "id",
          "name",
          "responses_count",
          "responses"
        ]
      },
      "SecureUserSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "email": {
            "type": "string",
            "format": "email"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "role": {
            "$ref": "#/components/schemas/UserRoleSchema"
          },
          "status": {
            "type": "string",
            "enum": [
              "ACTIVE",
              "INACTIVE"
            ]
          },
          "created_at": {
            "type": "string",
            "nullable": true,
            "format": "date"
          },
          "seen_at": {
            "type": "string",
            "nullable": true,
            "format": "date"
          },
          "has_redeemed_invitation": {
            "type": "boolean"
          },
          "ip": {
            "type": "string",
            "nullable": true
          },
          "country": {
            "type": "string",
            "nullable": true
          }
        },
        "required": [
          "id",
          "email",
          "name",
          "role",
          "status",
          "created_at",
          "seen_at",
          "has_redeemed_invitation",
          "ip",
          "country"
        ]
      },
      "SecureUserSurveyUserSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "user": {
            "$ref": "#/components/schemas/SecureUserSchema"
          },
          "created_at": {
            "type": "string",
            "nullable": true,
            "format": "date"
          }
        },
        "required": [
          "id",
          "user",
          "created_at"
        ]
      },
      "SecureUserSurveyResponseUserSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "user": {
            "$ref": "#/components/schemas/SecureUserSchema"
          },
          "response": {
            "type": "string",
            "nullable": true
          },
          "created_at": {
            "type": "string",
            "nullable": true,
            "format": "date"
          }
        },
        "required": [
          "id",
          "user",
          "created_at"
        ]
      },
      "SecureUserSurveyResponseSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "response": {
            "type": "string",
            "nullable": true
          }
        },
        "required": [
          "id",
          "name",
          "response"
        ]
      },
      "SecureUserSurveyResponsesSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "responses": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SecureUserSurveyResponseSchema"
            }
          },
          "created_at": {
            "type": "string",
            "nullable": true,
            "format": "date"
          }
        },
        "required": [
          "id",
          "name",
          "responses",
          "created_at"
        ]
      },
      "CreateUserSchema": {
        "type": "object",
        "properties": {
          "email": {
            "type": "string",
            "maxLength": 64,
            "format": "email"
          },
          "name": {
            "type": "string",
            "nullable": true,
            "minLength": 1,
            "maxLength": 64
          },
          "role": {
            "type": "string",
            "enum": [
              "USER",
              "STAFF",
              "ADMIN",
              "ANALYST"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "ACTIVE",
              "INACTIVE"
            ]
          }
        },
        "required": [
          "email"
        ]
      },
      "SecureUpdateUserSchema": {
        "type": "object",
        "properties": {
          "email": {
            "type": "string",
            "maxLength": 64,
            "format": "email"
          },
          "name": {
            "type": "string",
            "maxLength": 64
          },
          "role": {
            "type": "string",
            "enum": [
              "USER",
              "STAFF",
              "ADMIN",
              "ANALYST"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "ACTIVE",
              "INACTIVE"
            ]
          }
        }
      },
      "AppPublicSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier for the app"
          },
          "name": {
            "type": "string",
            "description": "Name of the app"
          },
          "verified": {
            "type": "boolean",
            "description": "Verification status of the app"
          }
        },
        "required": [
          "id",
          "name",
          "verified"
        ],
        "description": "Public information about an app (organization)"
      },
      "AppMemberWithAppSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier for the app member"
          },
          "name": {
            "type": "string",
            "nullable": true,
            "description": "Name of the app member"
          },
          "email": {
            "type": "string",
            "format": "email",
            "description": "Email address of the app member"
          },
          "role": {
            "type": "string",
            "enum": [
              "ADMIN",
              "DEVELOPER",
              "STAFF",
              "MEMBER",
              "PARTNER"
            ],
            "description": "Role of the app member within the app"
          },
          "app_id": {
            "type": "string",
            "description": "Identifier of the app to which the member belongs"
          },
          "user_id": {
            "type": "string",
            "description": "Identifier of the user associated with the app member"
          },
          "created_at": {
            "type": "string",
            "nullable": true,
            "description": "Timestamp when the app member was created",
            "format": "date"
          },
          "updated_at": {
            "type": "string",
            "nullable": true,
            "description": "Timestamp when the app member was last updated",
            "format": "date"
          },
          "app": {
            "$ref": "#/components/schemas/AppPublicSchema"
          }
        },
        "required": [
          "id",
          "name",
          "email",
          "role",
          "app_id",
          "user_id",
          "created_at",
          "updated_at",
          "app"
        ],
        "description": "Detailed information about an app member, including app details"
      },
      "PaymentsBalanceMetadataSchema": {
        "type": "object",
        "properties": {
          "funds": {
            "type": "number"
          },
          "charges": {
            "type": "number"
          },
          "bonus": {
            "type": "number"
          },
          "payments": {
            "type": "number"
          },
          "bonus_used": {
            "type": "number"
          }
        },
        "required": [
          "funds",
          "charges",
          "bonus",
          "payments",
          "bonus_used"
        ],
        "description": "Metadata for the payments balance"
      },
      "AutoReloadSchema": {
        "type": "object",
        "nullable": true,
        "properties": {
          "enabled": {
            "type": "boolean",
            "description": "Flag to enable/disable auto reload"
          },
          "balance_threshold": {
            "type": "number",
            "minimum": 1,
            "maximum": 500,
            "description": "Balance threshold to auto reload credits"
          },
          "balance_limit": {
            "type": "number",
            "minimum": 5,
            "maximum": 2000,
            "description": "Balance of credits to auto reload"
          }
        },
        "required": [
          "enabled",
          "balance_threshold",
          "balance_limit"
        ],
        "description": "Auto reload configuration"
      },
      "CardDataSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "CARD"
            ],
            "description": "The type of the payment method"
          },
          "brand": {
            "type": "string",
            "nullable": true,
            "description": "The brand of the card"
          },
          "expiration_month": {
            "type": "number",
            "nullable": true,
            "description": "The expiration month of the card"
          },
          "expiration_year": {
            "type": "number",
            "nullable": true,
            "description": "The expiration year of the card"
          },
          "last_4_digits": {
            "type": "string",
            "nullable": true,
            "description": "Last 4 digits of the card"
          }
        },
        "required": [
          "type"
        ],
        "description": "Information of a card's payment method"
      },
      "PaymentMethodDataSchema": {
        "oneOf": [
          {
            "$ref": "#/components/schemas/CardDataSchema"
          }
        ],
        "discriminator": {
          "propertyName": "type",
          "mapping": {
            "CARD": "#/components/schemas/CardDataSchema"
          }
        }
      },
      "BillingDetailsSchema": {
        "type": "object",
        "nullable": true,
        "properties": {
          "name": {
            "type": "string",
            "nullable": true,
            "description": "Name of the customer"
          },
          "address": {
            "type": "object",
            "nullable": true,
            "properties": {
              "city": {
                "type": "string",
                "nullable": true
              },
              "country": {
                "type": "string",
                "nullable": true
              },
              "line1": {
                "type": "string",
                "nullable": true
              },
              "line2": {
                "type": "string",
                "nullable": true
              },
              "postal_code": {
                "type": "string",
                "nullable": true
              },
              "state": {
                "type": "string",
                "nullable": true
              }
            },
            "description": "Address of the customer"
          }
        },
        "description": "Billing details of the customer"
      },
      "PaymentMethodSchema": {
        "type": "object",
        "nullable": true,
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier for the payment method"
          },
          "external_id": {
            "type": "string",
            "description": "Unique identifier for the payment method in the payments provider system"
          },
          "type": {
            "type": "string",
            "enum": [
              "CARD"
            ],
            "description": "The type of the payment method"
          },
          "data": {
            "$ref": "#/components/schemas/PaymentMethodDataSchema"
          },
          "billing_details": {
            "$ref": "#/components/schemas/BillingDetailsSchema"
          },
          "payments_provider_id": {
            "type": "string",
            "description": "Identifier of the payments provider to which the payment method belongs"
          },
          "created_at": {
            "type": "string",
            "nullable": true,
            "description": "Timestamp when the payment method was created",
            "format": "date"
          },
          "updated_at": {
            "type": "string",
            "nullable": true,
            "description": "Timestamp when the payment method was last updated",
            "format": "date"
          }
        },
        "required": [
          "id",
          "external_id",
          "type",
          "payments_provider_id",
          "created_at",
          "updated_at"
        ],
        "description": "Current payment method selected"
      },
      "SecurePaymentsBalanceSchema": {
        "type": "object",
        "nullable": true,
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier for the payments balance"
          },
          "credits": {
            "type": "number",
            "description": "Current credits"
          },
          "total": {
            "type": "number",
            "description": "Current total amount"
          },
          "metadata": {
            "$ref": "#/components/schemas/PaymentsBalanceMetadataSchema"
          },
          "billing_model": {
            "type": "string",
            "enum": [
              "PREPAID",
              "POSTPAID"
            ],
            "description": "Billing model for the app"
          },
          "auto_reload": {
            "$ref": "#/components/schemas/AutoReloadSchema"
          },
          "created_at": {
            "type": "string",
            "nullable": true,
            "description": "Timestamp when the payment balance was created",
            "format": "date"
          },
          "current_payment_method": {
            "$ref": "#/components/schemas/PaymentMethodSchema"
          },
          "updated_at": {
            "type": "string",
            "nullable": true,
            "description": "Timestamp when the payment balance was last updated",
            "format": "date"
          }
        },
        "required": [
          "id",
          "credits",
          "total",
          "metadata",
          "billing_model",
          "auto_reload",
          "created_at",
          "current_payment_method",
          "updated_at"
        ]
      },
      "SecureAppBillingListSummarySchema": {
        "type": "object",
        "properties": {
          "plan": {
            "type": "string",
            "enum": [
              "EARLY_ACCESS_FREE",
              "EARLY_ACCESS_PRO",
              "PAY_AS_YOU_GO",
              "FREE",
              "STARTER",
              "PLUS",
              "PRO",
              "PRO_PLUS",
              "ULTRA",
              "TEAM",
              "ENTERPRISE"
            ]
          },
          "billing_interval": {
            "type": "string",
            "nullable": true,
            "enum": [
              "MONTHLY",
              "ANNUAL"
            ]
          },
          "subscription_status": {
            "type": "string",
            "nullable": true,
            "enum": [
              "ACTIVE",
              "PAST_DUE",
              "CANCELED",
              "TRIALING"
            ]
          },
          "stripe_subscription_linked": {
            "type": "boolean"
          },
          "plan_credits_used_percent": {
            "type": "number",
            "nullable": true
          },
          "prepaid_usd": {
            "type": "number"
          },
          "overage_usd": {
            "type": "number",
            "nullable": true
          },
          "health": {
            "type": "string",
            "enum": [
              "healthy",
              "warning",
              "at_risk"
            ]
          }
        },
        "required": [
          "plan",
          "billing_interval",
          "subscription_status",
          "stripe_subscription_linked",
          "plan_credits_used_percent",
          "prepaid_usd",
          "overage_usd",
          "health"
        ]
      },
      "SecureAppSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier for the app"
          },
          "name": {
            "type": "string",
            "description": "Name of the app"
          },
          "phone": {
            "type": "string",
            "nullable": true,
            "description": "Phone number associated with the app"
          },
          "records_count": {
            "type": "number",
            "description": "Number of records associated with the app"
          },
          "workflows_count": {
            "type": "number",
            "description": "Number of workflows associated with the app"
          },
          "collections_count": {
            "type": "number",
            "description": "Number of collections associated with the app"
          },
          "verified": {
            "type": "boolean",
            "description": "Verification status of the app"
          },
          "role": {
            "type": "string",
            "enum": [
              "ADMIN",
              "DEVELOPER",
              "STAFF",
              "MEMBER",
              "PARTNER"
            ],
            "description": "Role of the user within the app"
          },
          "disabled": {
            "type": "boolean",
            "description": "Whether the app is disabled by the system"
          },
          "deleted": {
            "type": "boolean",
            "description": "Deletion status of the app"
          },
          "created_at": {
            "type": "string",
            "nullable": true,
            "description": "Timestamp when the app was created",
            "format": "date"
          },
          "updated_at": {
            "type": "string",
            "nullable": true,
            "description": "Timestamp when the app was last updated",
            "format": "date"
          },
          "members_count": {
            "type": "number"
          },
          "balance": {
            "$ref": "#/components/schemas/SecurePaymentsBalanceSchema"
          },
          "billing_list": {
            "$ref": "#/components/schemas/SecureAppBillingListSummarySchema"
          }
        },
        "required": [
          "id",
          "name",
          "phone",
          "records_count",
          "workflows_count",
          "collections_count",
          "verified",
          "disabled",
          "deleted",
          "created_at",
          "updated_at",
          "members_count",
          "balance",
          "billing_list"
        ],
        "description": "Secure information about an app (organization)"
      },
      "AppSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier for the app"
          },
          "name": {
            "type": "string",
            "description": "Name of the app"
          },
          "phone": {
            "type": "string",
            "nullable": true,
            "description": "Phone number associated with the app"
          },
          "records_count": {
            "type": "number",
            "description": "Number of records associated with the app"
          },
          "workflows_count": {
            "type": "number",
            "description": "Number of workflows associated with the app"
          },
          "collections_count": {
            "type": "number",
            "description": "Number of collections associated with the app"
          },
          "verified": {
            "type": "boolean",
            "description": "Verification status of the app"
          },
          "role": {
            "type": "string",
            "enum": [
              "ADMIN",
              "DEVELOPER",
              "STAFF",
              "MEMBER",
              "PARTNER"
            ],
            "description": "Role of the user within the app"
          },
          "disabled": {
            "type": "boolean",
            "description": "Whether the app is disabled by the system"
          },
          "deleted": {
            "type": "boolean",
            "description": "Deletion status of the app"
          },
          "created_at": {
            "type": "string",
            "nullable": true,
            "description": "Timestamp when the app was created",
            "format": "date"
          },
          "updated_at": {
            "type": "string",
            "nullable": true,
            "description": "Timestamp when the app was last updated",
            "format": "date"
          }
        },
        "required": [
          "id",
          "name",
          "phone",
          "records_count",
          "workflows_count",
          "collections_count",
          "verified",
          "disabled",
          "deleted",
          "created_at",
          "updated_at"
        ],
        "description": "Detailed information about an app (organization)"
      },
      "UserPublicSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string",
            "nullable": true
          }
        },
        "required": [
          "id",
          "name"
        ],
        "description": "User who deployed the version"
      },
      "TagSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier for the tag"
          },
          "name": {
            "type": "string",
            "description": "Name of the tag"
          },
          "color": {
            "type": "string",
            "nullable": true,
            "description": "Color associated with the tag"
          },
          "app_id": {
            "type": "string",
            "description": "Identifier for the associated app"
          },
          "created_at": {
            "type": "string",
            "nullable": true,
            "description": "Timestamp when the tag was created",
            "format": "date"
          },
          "updated_at": {
            "type": "string",
            "nullable": true,
            "description": "Timestamp when the tag was last updated",
            "format": "date"
          }
        },
        "required": [
          "id",
          "name",
          "color",
          "app_id",
          "created_at",
          "updated_at"
        ],
        "description": "Detailed information about an app tag (which can be attached to records, workflows, etc.)"
      },
      "WorkflowTestStatsSchema": {
        "type": "object",
        "nullable": true,
        "properties": {
          "total_count": {
            "type": "number",
            "description": "Total number of workflow tests"
          },
          "running_count": {
            "type": "number",
            "description": "Number of running workflow tests"
          },
          "cancelled_count": {
            "type": "number",
            "description": "Number of cancelled workflow tests"
          },
          "passing_count": {
            "type": "number",
            "description": "Number of passing workflow tests"
          },
          "failing_count": {
            "type": "number",
            "description": "Number of failing workflow tests"
          },
          "expectations_failing_count": {
            "type": "number",
            "description": "Number of expectations failing in workflow tests"
          },
          "expectations_passing_count": {
            "type": "number",
            "description": "Number of expectations passing in workflow tests"
          }
        },
        "required": [
          "total_count",
          "running_count",
          "cancelled_count",
          "passing_count",
          "failing_count",
          "expectations_failing_count",
          "expectations_passing_count"
        ],
        "description": "Statistics of the workflow tests"
      },
      "WorkflowSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier for the workflow"
          },
          "name": {
            "type": "string",
            "description": "Name of the workflow"
          },
          "description": {
            "type": "string",
            "nullable": true,
            "description": "Description of the workflow"
          },
          "app": {
            "allOf": [
              {
                "$ref": "#/components/schemas/AppPublicSchema"
              },
              {
                "description": "Associated app with the workflow"
              }
            ]
          },
          "version": {
            "type": "object",
            "nullable": true,
            "properties": {
              "id": {
                "type": "string",
                "description": "Unique identifier for the workflow version"
              },
              "app_id": {
                "type": "string",
                "description": "App id where the workflow version belongs to"
              },
              "workflow_id": {
                "type": "string",
                "description": "Workflow id where the version belongs to"
              },
              "description": {
                "type": "string",
                "nullable": true,
                "description": "Description of the workflow at the time this version was deployed"
              },
              "version": {
                "type": "number",
                "description": "Version number"
              },
              "rollback_version": {
                "type": "number",
                "description": "Version number from which this version was rolled back"
              },
              "notes": {
                "type": "string",
                "nullable": true,
                "description": "Release notes"
              },
              "created_by": {
                "$ref": "#/components/schemas/UserPublicSchema"
              },
              "created_at": {
                "type": "string",
                "nullable": true,
                "description": "Date when the version was deployed",
                "format": "date"
              },
              "key": {
                "type": "string",
                "description": "Unique key for the workflow version"
              },
              "input": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/InputDefinitionSchema"
                  },
                  {
                    "description": "Input definition of the workflow"
                  }
                ]
              },
              "input_default": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/InputValuesSchema"
                  },
                  {
                    "description": "Default config input values of the workflow"
                  }
                ]
              },
              "input_options": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/InputOptionsSchema"
                  },
                  {
                    "nullable": true,
                    "description": "Input options of the workflow"
                  }
                ]
              },
              "steps": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/StepSchema"
                },
                "description": "Steps of the workflow at the time this version was deployed"
              }
            },
            "required": [
              "id",
              "app_id",
              "workflow_id",
              "description",
              "version",
              "notes",
              "created_at",
              "key",
              "input",
              "input_default",
              "input_options",
              "steps"
            ],
            "description": "Current version of the workflow"
          },
          "tags": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TagSchema"
            },
            "description": "Tags associated with the workflow"
          },
          "tests_stats": {
            "$ref": "#/components/schemas/WorkflowTestStatsSchema"
          },
          "template_id": {
            "type": "string",
            "nullable": true,
            "description": "Unique identifier for the template"
          },
          "runs_count": {
            "type": "number",
            "description": "Number of runs of the workflow",
            "example": 0
          },
          "retention": {
            "$ref": "#/components/schemas/WorkflowRunDataRetentionConfigSchema"
          },
          "enabled": {
            "type": "boolean",
            "description": "Indicates if the workflow is enabled",
            "example": true
          },
          "deleted": {
            "type": "boolean",
            "description": "Indicates if the workflow is deleted",
            "example": false
          },
          "visibility": {
            "type": "string",
            "enum": [
              "PRIVATE",
              "UNLISTED",
              "SHARED",
              "PUBLIC"
            ],
            "description": "Visibility level of the workflow",
            "example": "PRIVATE"
          },
          "created_at": {
            "type": "string",
            "nullable": true,
            "description": "Creation date of the workflow",
            "format": "date"
          },
          "updated_at": {
            "type": "string",
            "nullable": true,
            "description": "Last update date of the workflow",
            "format": "date"
          },
          "key": {
            "type": "string",
            "description": "Unique key for the workflow version"
          },
          "input": {
            "allOf": [
              {
                "$ref": "#/components/schemas/InputDefinitionSchema"
              },
              {
                "description": "Input definition of the workflow"
              }
            ]
          },
          "input_default": {
            "allOf": [
              {
                "$ref": "#/components/schemas/InputValuesSchema"
              },
              {
                "description": "Default config input values of the workflow"
              }
            ]
          },
          "input_options": {
            "allOf": [
              {
                "$ref": "#/components/schemas/InputOptionsSchema"
              },
              {
                "nullable": true,
                "description": "Input options of the workflow"
              }
            ]
          },
          "steps": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/StepSchema"
            },
            "description": "Steps of the workflow at the time this version was deployed"
          }
        },
        "required": [
          "id",
          "name",
          "description",
          "app",
          "version",
          "tags",
          "template_id",
          "runs_count",
          "retention",
          "enabled",
          "deleted",
          "visibility",
          "created_at",
          "updated_at",
          "key",
          "input",
          "input_default",
          "input_options",
          "steps"
        ],
        "description": "Detailed information about a workflow"
      },
      "AppMemberSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier for the app member"
          },
          "name": {
            "type": "string",
            "nullable": true,
            "description": "Name of the app member"
          },
          "email": {
            "type": "string",
            "format": "email",
            "description": "Email address of the app member"
          },
          "role": {
            "type": "string",
            "enum": [
              "ADMIN",
              "DEVELOPER",
              "STAFF",
              "MEMBER",
              "PARTNER"
            ],
            "description": "Role of the app member within the app"
          },
          "app_id": {
            "type": "string",
            "description": "Identifier of the app to which the member belongs"
          },
          "user_id": {
            "type": "string",
            "description": "Identifier of the user associated with the app member"
          },
          "created_at": {
            "type": "string",
            "nullable": true,
            "description": "Timestamp when the app member was created",
            "format": "date"
          },
          "updated_at": {
            "type": "string",
            "nullable": true,
            "description": "Timestamp when the app member was last updated",
            "format": "date"
          }
        },
        "required": [
          "id",
          "name",
          "email",
          "role",
          "app_id",
          "user_id",
          "created_at",
          "updated_at"
        ],
        "description": "Detailed information about an app member"
      },
      "AppInviteLinkSchema": {
        "type": "object",
        "nullable": true,
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier for the invite link"
          },
          "token": {
            "type": "string",
            "description": "Shareable token; include in the join URL"
          },
          "url": {
            "type": "string",
            "description": "Fully-qualified shareable URL for joining the app"
          },
          "created_at": {
            "type": "string",
            "nullable": true,
            "format": "date"
          },
          "updated_at": {
            "type": "string",
            "nullable": true,
            "format": "date"
          }
        },
        "required": [
          "id",
          "token",
          "url",
          "created_at",
          "updated_at"
        ],
        "description": "Admin-facing information about an app invite link"
      },
      "PaymentsBalanceSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier for the payments balance"
          },
          "credits": {
            "type": "number",
            "description": "Current credits"
          },
          "total": {
            "type": "number",
            "description": "Current total amount"
          },
          "metadata": {
            "$ref": "#/components/schemas/PaymentsBalanceMetadataSchema"
          },
          "billing_model": {
            "type": "string",
            "enum": [
              "PREPAID",
              "POSTPAID"
            ],
            "description": "Billing model for the app"
          },
          "auto_reload": {
            "$ref": "#/components/schemas/AutoReloadSchema"
          },
          "created_at": {
            "type": "string",
            "nullable": true,
            "description": "Timestamp when the payment balance was created",
            "format": "date"
          },
          "current_payment_method": {
            "$ref": "#/components/schemas/PaymentMethodSchema"
          },
          "updated_at": {
            "type": "string",
            "nullable": true,
            "description": "Timestamp when the payment balance was last updated",
            "format": "date"
          }
        },
        "required": [
          "id",
          "credits",
          "total",
          "metadata",
          "billing_model",
          "auto_reload",
          "created_at",
          "current_payment_method",
          "updated_at"
        ]
      },
      "UpdateSecurePaymentsBalanceSchema": {
        "type": "object",
        "properties": {
          "billing_model": {
            "type": "string",
            "enum": [
              "PREPAID",
              "POSTPAID"
            ],
            "description": "Billing model for the app"
          }
        }
      },
      "UpdateSecurePaymentsBalanceFundsSchema": {
        "type": "object",
        "properties": {
          "amount": {
            "type": "number",
            "minimum": 1,
            "maximum": 100000,
            "description": "Amount to add/remove to the balance"
          }
        },
        "required": [
          "amount"
        ]
      },
      "BillingAdminBalanceSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "billing_model": {
            "type": "string",
            "enum": [
              "PREPAID",
              "POSTPAID"
            ]
          },
          "total": {
            "type": "number"
          },
          "funds": {
            "type": "number"
          },
          "charges": {
            "type": "number"
          },
          "bonus": {
            "type": "number"
          },
          "bonus_used": {
            "type": "number"
          },
          "payments": {
            "type": "number"
          },
          "plan_credits": {
            "type": "number"
          },
          "plan_credits_total": {
            "type": "number"
          },
          "premium_used": {
            "type": "number"
          },
          "premium_cap": {
            "type": "number"
          },
          "spending_cap": {
            "type": "number",
            "nullable": true
          },
          "charges_at_cycle_start": {
            "type": "number"
          },
          "funds_at_cycle_start": {
            "type": "number",
            "nullable": true
          },
          "bonus_at_cycle_start": {
            "type": "number",
            "nullable": true
          },
          "bonus_used_at_cycle_start": {
            "type": "number",
            "nullable": true
          },
          "overage_auto_charged": {
            "type": "number"
          },
          "slip_charges": {
            "type": "number"
          },
          "slip_charges_count": {
            "type": "number"
          },
          "cycle_start": {
            "type": "string",
            "nullable": true,
            "format": "date"
          },
          "cycle_end": {
            "type": "string",
            "nullable": true,
            "format": "date"
          },
          "bonus_expiration_date": {
            "type": "string",
            "nullable": true,
            "format": "date"
          },
          "created_at": {
            "type": "string",
            "nullable": true,
            "format": "date"
          },
          "updated_at": {
            "type": "string",
            "nullable": true,
            "format": "date"
          }
        },
        "required": [
          "id",
          "billing_model",
          "total",
          "funds",
          "charges",
          "bonus",
          "bonus_used",
          "payments",
          "plan_credits",
          "plan_credits_total",
          "premium_used",
          "premium_cap",
          "spending_cap",
          "charges_at_cycle_start",
          "funds_at_cycle_start",
          "bonus_at_cycle_start",
          "bonus_used_at_cycle_start",
          "overage_auto_charged",
          "slip_charges",
          "slip_charges_count",
          "cycle_start",
          "cycle_end",
          "bonus_expiration_date",
          "created_at",
          "updated_at"
        ]
      },
      "BillingAdminSubscriptionSchema": {
        "type": "object",
        "nullable": true,
        "properties": {
          "id": {
            "type": "string"
          },
          "plan": {
            "type": "string",
            "enum": [
              "EARLY_ACCESS_FREE",
              "EARLY_ACCESS_PRO",
              "PAY_AS_YOU_GO",
              "FREE",
              "STARTER",
              "PLUS",
              "PRO",
              "PRO_PLUS",
              "ULTRA",
              "TEAM",
              "ENTERPRISE"
            ]
          },
          "billing_interval": {
            "type": "string",
            "enum": [
              "MONTHLY",
              "ANNUAL"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "ACTIVE",
              "PAST_DUE",
              "CANCELED",
              "TRIALING"
            ]
          },
          "current_period_start": {
            "type": "string",
            "nullable": true,
            "format": "date"
          },
          "current_period_end": {
            "type": "string",
            "nullable": true,
            "format": "date"
          },
          "cancel_at_period_end": {
            "type": "boolean"
          },
          "pending_plan": {
            "type": "string",
            "nullable": true,
            "enum": [
              "EARLY_ACCESS_FREE",
              "EARLY_ACCESS_PRO",
              "PAY_AS_YOU_GO",
              "FREE",
              "STARTER",
              "PLUS",
              "PRO",
              "PRO_PLUS",
              "ULTRA",
              "TEAM",
              "ENTERPRISE"
            ]
          },
          "pending_interval": {
            "type": "string",
            "nullable": true,
            "enum": [
              "MONTHLY",
              "ANNUAL"
            ]
          },
          "seat_count": {
            "type": "number"
          },
          "stripe_subscription_id": {
            "type": "string",
            "nullable": true
          },
          "stripe_customer_id": {
            "type": "string",
            "nullable": true
          },
          "last_credit_refresh": {
            "type": "string",
            "nullable": true,
            "format": "date"
          },
          "member_spend_cap_policy": {
            "type": "number",
            "nullable": true
          }
        },
        "required": [
          "id",
          "plan",
          "billing_interval",
          "status",
          "current_period_start",
          "current_period_end",
          "cancel_at_period_end",
          "pending_plan",
          "pending_interval",
          "seat_count",
          "stripe_subscription_id",
          "stripe_customer_id",
          "last_credit_refresh",
          "member_spend_cap_policy"
        ]
      },
      "BillingAdminEnterpriseConfigSchema": {
        "type": "object",
        "nullable": true,
        "properties": {
          "id": {
            "type": "string"
          },
          "price_per_seat": {
            "type": "number"
          },
          "credits_per_seat": {
            "type": "number"
          },
          "premium_percent": {
            "type": "number"
          },
          "overage_rate": {
            "type": "number",
            "nullable": true
          },
          "default_spending_cap": {
            "type": "number",
            "nullable": true
          },
          "contract_start": {
            "type": "string",
            "nullable": true,
            "format": "date"
          },
          "contract_end": {
            "type": "string",
            "nullable": true,
            "format": "date"
          },
          "notes": {
            "type": "string",
            "nullable": true
          }
        },
        "required": [
          "id",
          "price_per_seat",
          "credits_per_seat",
          "premium_percent",
          "overage_rate",
          "default_spending_cap",
          "contract_start",
          "contract_end",
          "notes"
        ]
      },
      "BillingAdminBillingConfigSchema": {
        "type": "object",
        "nullable": true,
        "properties": {
          "plan": {
            "type": "string",
            "enum": [
              "EARLY_ACCESS_FREE",
              "EARLY_ACCESS_PRO",
              "PAY_AS_YOU_GO",
              "FREE",
              "STARTER",
              "PLUS",
              "PRO",
              "PRO_PLUS",
              "ULTRA",
              "TEAM",
              "ENTERPRISE"
            ]
          },
          "billingInterval": {
            "type": "string",
            "enum": [
              "MONTHLY",
              "ANNUAL"
            ]
          },
          "creditsPerSeat": {
            "type": "number"
          },
          "premiumCapPercent": {
            "type": "number"
          },
          "overageRate": {
            "type": "number"
          },
          "defaultSpendingCap": {
            "type": "number",
            "nullable": true
          },
          "seatCount": {
            "type": "number"
          },
          "supportsMemberCaps": {
            "type": "boolean"
          },
          "overageAllowed": {
            "type": "boolean"
          },
          "isTeam": {
            "type": "boolean"
          }
        },
        "required": [
          "plan",
          "billingInterval",
          "creditsPerSeat",
          "premiumCapPercent",
          "overageRate",
          "defaultSpendingCap",
          "seatCount",
          "supportsMemberCaps",
          "overageAllowed",
          "isTeam"
        ]
      },
      "BillingAdminMemberUsageSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "user_id": {
            "type": "string"
          },
          "user_email": {
            "type": "string",
            "nullable": true
          },
          "user_name": {
            "type": "string",
            "nullable": true
          },
          "credits_used": {
            "type": "number"
          },
          "premium_used": {
            "type": "number"
          },
          "nonplan_used": {
            "type": "number"
          },
          "member_cap": {
            "type": "number",
            "nullable": true
          },
          "deleted_at": {
            "type": "string",
            "nullable": true,
            "format": "date"
          }
        },
        "required": [
          "id",
          "user_id",
          "user_email",
          "user_name",
          "credits_used",
          "premium_used",
          "nonplan_used",
          "member_cap",
          "deleted_at"
        ]
      },
      "BillingAdminAlertSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string"
          },
          "severity": {
            "type": "string"
          },
          "message": {
            "type": "string"
          }
        },
        "required": [
          "type",
          "severity",
          "message"
        ]
      },
      "BillingAdminDerivedStateSchema": {
        "type": "object",
        "properties": {
          "postPaidSoFar": {
            "type": "number",
            "nullable": true
          },
          "extraUsage": {
            "type": "number"
          },
          "prepaidBalance": {
            "type": "number"
          },
          "prepaidUsedThisCycle": {
            "type": "number"
          },
          "prepaidAtCycleStart": {
            "type": "number",
            "nullable": true
          },
          "availableAmount": {
            "type": "number",
            "nullable": true
          },
          "premiumAvailableAmount": {
            "type": "number"
          },
          "prepaidAvailableAmount": {
            "type": "number"
          },
          "spendingCapRemainingAmount": {
            "type": "number",
            "nullable": true
          },
          "blocks": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "kvFlags": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "alerts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BillingAdminAlertSchema"
            }
          }
        },
        "required": [
          "postPaidSoFar",
          "extraUsage",
          "prepaidBalance",
          "prepaidUsedThisCycle",
          "prepaidAtCycleStart",
          "availableAmount",
          "premiumAvailableAmount",
          "prepaidAvailableAmount",
          "spendingCapRemainingAmount",
          "blocks",
          "kvFlags",
          "alerts"
        ]
      },
      "BillingAdminModelUsageCycleRowSchema": {
        "type": "object",
        "properties": {
          "billing_model": {
            "type": "string",
            "nullable": true
          },
          "model_tier": {
            "type": "string",
            "nullable": true
          },
          "call_count": {
            "type": "number"
          },
          "credits": {
            "type": "number"
          },
          "amount": {
            "type": "number"
          },
          "first_charge_at": {
            "type": "string",
            "nullable": true,
            "format": "date"
          },
          "last_charge_at": {
            "type": "string",
            "nullable": true,
            "format": "date"
          }
        },
        "required": [
          "billing_model",
          "model_tier",
          "call_count",
          "credits",
          "amount",
          "first_charge_at",
          "last_charge_at"
        ]
      },
      "BillingAdminModelUsageCycleSchema": {
        "type": "object",
        "properties": {
          "cycle_start": {
            "type": "string",
            "nullable": true,
            "format": "date"
          },
          "cycle_end": {
            "type": "string",
            "nullable": true,
            "format": "date"
          },
          "rows": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BillingAdminModelUsageCycleRowSchema"
            }
          }
        },
        "required": [
          "cycle_start",
          "cycle_end",
          "rows"
        ]
      },
      "BillingAdminResponseSchema": {
        "type": "object",
        "properties": {
          "balance": {
            "$ref": "#/components/schemas/BillingAdminBalanceSchema"
          },
          "subscription": {
            "$ref": "#/components/schemas/BillingAdminSubscriptionSchema"
          },
          "enterprise_config": {
            "$ref": "#/components/schemas/BillingAdminEnterpriseConfigSchema"
          },
          "billing_config": {
            "$ref": "#/components/schemas/BillingAdminBillingConfigSchema"
          },
          "members": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BillingAdminMemberUsageSchema"
            }
          },
          "derived": {
            "$ref": "#/components/schemas/BillingAdminDerivedStateSchema"
          },
          "model_usage_cycle": {
            "$ref": "#/components/schemas/BillingAdminModelUsageCycleSchema"
          }
        },
        "required": [
          "balance",
          "subscription",
          "enterprise_config",
          "billing_config",
          "members",
          "derived",
          "model_usage_cycle"
        ]
      },
      "UpdateBillingAdminBalanceSchema": {
        "type": "object",
        "properties": {
          "plan_credits": {
            "type": "number",
            "minimum": 0
          },
          "plan_credits_total": {
            "type": "number",
            "minimum": 0
          },
          "premium_cap": {
            "type": "number",
            "minimum": -1
          },
          "premium_used": {
            "type": "number",
            "minimum": 0
          },
          "spending_cap": {
            "type": "number",
            "nullable": true,
            "minimum": 0
          },
          "billing_model": {
            "type": "string",
            "enum": [
              "PREPAID",
              "POSTPAID"
            ]
          }
        }
      },
      "UpdateBillingAdminMemberUsageSchema": {
        "type": "object",
        "properties": {
          "member_cap": {
            "type": "number",
            "nullable": true,
            "minimum": 0
          }
        }
      },
      "UpdateBillingAdminMemberSpendCapPolicySchema": {
        "type": "object",
        "properties": {
          "member_spend_cap_policy": {
            "type": "number",
            "nullable": true
          }
        },
        "required": [
          "member_spend_cap_policy"
        ]
      },
      "UpsertBillingAdminEnterpriseConfigSchema": {
        "type": "object",
        "properties": {
          "price_per_seat": {
            "type": "number",
            "minimum": 0
          },
          "credits_per_seat": {
            "type": "number",
            "minimum": 0
          },
          "premium_percent": {
            "type": "number",
            "minimum": -1,
            "maximum": 1
          },
          "overage_rate": {
            "type": "number",
            "nullable": true,
            "minimum": 0
          },
          "default_spending_cap": {
            "type": "number",
            "nullable": true,
            "minimum": 0
          },
          "contract_start": {
            "type": "string",
            "nullable": true,
            "format": "date"
          },
          "contract_end": {
            "type": "string",
            "nullable": true,
            "format": "date"
          },
          "notes": {
            "type": "string",
            "nullable": true
          }
        },
        "required": [
          "price_per_seat",
          "credits_per_seat",
          "premium_percent"
        ]
      },
      "UpdateBillingAdminSubscriptionSchema": {
        "type": "object",
        "properties": {
          "plan": {
            "type": "string",
            "enum": [
              "EARLY_ACCESS_FREE",
              "EARLY_ACCESS_PRO",
              "PAY_AS_YOU_GO",
              "FREE",
              "STARTER",
              "PLUS",
              "PRO",
              "PRO_PLUS",
              "ULTRA",
              "TEAM",
              "ENTERPRISE"
            ]
          },
          "billing_interval": {
            "type": "string",
            "enum": [
              "MONTHLY",
              "ANNUAL"
            ]
          },
          "seat_count": {
            "type": "number",
            "minimum": 1
          }
        }
      },
      "ConvertToEnterpriseSchema": {
        "type": "object",
        "properties": {
          "seat_count": {
            "type": "number",
            "minimum": 1
          },
          "credits_per_seat": {
            "type": "number",
            "minimum": 0
          },
          "premium_percent": {
            "type": "number",
            "minimum": -1,
            "maximum": 1
          },
          "price_per_seat": {
            "type": "number",
            "minimum": 0
          },
          "overage_rate": {
            "type": "number",
            "nullable": true,
            "minimum": 0
          },
          "default_spending_cap": {
            "type": "number",
            "nullable": true,
            "minimum": 0
          },
          "contract_start": {
            "type": "string",
            "nullable": true,
            "format": "date"
          },
          "contract_end": {
            "type": "string",
            "nullable": true,
            "format": "date"
          },
          "notes": {
            "type": "string",
            "nullable": true
          }
        },
        "required": [
          "seat_count",
          "credits_per_seat",
          "premium_percent",
          "price_per_seat"
        ]
      },
      "PaymentInvoiceSourceSchema": {
        "type": "string",
        "enum": [
          "SUBSCRIPTION",
          "ONE_OFF",
          "STRIPE",
          "SYSTEM_ADD",
          "SYSTEM_REMOVE"
        ],
        "description": "Source of the invoice"
      },
      "PaymentInvoiceStatusSchema": {
        "type": "string",
        "enum": [
          "DRAFT",
          "PENDING",
          "PAID",
          "OVERDUE"
        ],
        "description": "Invoice status"
      },
      "PaymentInvoiceLineSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier for the invoice line"
          },
          "item": {
            "type": "string",
            "description": "Item of the invoice line"
          },
          "amount": {
            "type": "number",
            "description": "Amount of the invoice line"
          },
          "quantity": {
            "type": "number",
            "description": "Quantity of the invoice line"
          },
          "created_at": {
            "type": "string",
            "nullable": true,
            "description": "Timestamp when the invoice line was created",
            "format": "date"
          },
          "updated_at": {
            "type": "string",
            "nullable": true,
            "description": "Timestamp when the invoice line was last updated",
            "format": "date"
          }
        },
        "required": [
          "id",
          "item",
          "amount",
          "quantity",
          "created_at",
          "updated_at"
        ]
      },
      "PaymentInvoiceSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier for the invoice"
          },
          "number": {
            "type": "number",
            "description": "Invoice number"
          },
          "source": {
            "$ref": "#/components/schemas/PaymentInvoiceSourceSchema"
          },
          "amount_due": {
            "type": "number",
            "description": "Amount paid"
          },
          "total_amount": {
            "type": "number",
            "description": "Total amount"
          },
          "status": {
            "$ref": "#/components/schemas/PaymentInvoiceStatusSchema"
          },
          "billing_from": {
            "allOf": [
              {
                "$ref": "#/components/schemas/BillingDetailsSchema"
              },
              {
                "description": "Cortex billing details"
              }
            ]
          },
          "billing_to": {
            "allOf": [
              {
                "$ref": "#/components/schemas/BillingDetailsSchema"
              },
              {
                "description": "Snapshot of the customer billing details"
              }
            ]
          },
          "payment_method_data": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PaymentMethodDataSchema"
              },
              {
                "description": "Snapshot of the payment method data used in the last transaction belonging to the invoice"
              }
            ]
          },
          "start_date": {
            "type": "string",
            "nullable": true,
            "description": "Start date of the period for the invoice",
            "format": "date"
          },
          "end_date": {
            "type": "string",
            "nullable": true,
            "description": "End date of the period for the invoice",
            "format": "date"
          },
          "due_date": {
            "type": "string",
            "nullable": true,
            "description": "Due date to pay the invoice",
            "format": "date"
          },
          "paid_date": {
            "type": "string",
            "nullable": true,
            "description": "Date in which the invoice was paid",
            "format": "date"
          },
          "issued_date": {
            "type": "string",
            "nullable": true,
            "description": "Date in which the invoice was issued",
            "format": "date"
          },
          "lines": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PaymentInvoiceLineSchema"
            }
          },
          "created_at": {
            "type": "string",
            "nullable": true,
            "description": "Timestamp when the invoice was created",
            "format": "date"
          },
          "updated_at": {
            "type": "string",
            "nullable": true,
            "description": "Timestamp when the invoice was last updated",
            "format": "date"
          }
        },
        "required": [
          "id",
          "number",
          "source",
          "amount_due",
          "total_amount",
          "status",
          "start_date",
          "end_date",
          "due_date",
          "paid_date",
          "issued_date",
          "lines",
          "created_at",
          "updated_at"
        ]
      },
      "CreatePaymentInvoiceSchema": {
        "type": "object",
        "properties": {
          "date": {
            "type": "string",
            "nullable": true,
            "description": "Invoice date to calculate the start and due dates",
            "format": "date"
          },
          "payment_terms_in_days": {
            "type": "number",
            "description": "Payment terms in days for the invoice"
          },
          "lines": {
            "type": "array",
            "items": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/PaymentInvoiceLineSchema"
                },
                {
                  "properties": {
                    "key": {
                      "type": "string",
                      "description": "Key of the invoice line"
                    },
                    "item": {
                      "type": "string",
                      "description": "Item of the invoice line"
                    },
                    "amount": {
                      "type": "number",
                      "minimum": 1,
                      "maximum": 100000,
                      "description": "Amount of the invoice line"
                    },
                    "quantity": {
                      "type": "number",
                      "minimum": 1,
                      "maximum": 10000000,
                      "description": "Quantity of the invoice line"
                    }
                  },
                  "required": [
                    "item",
                    "amount",
                    "quantity"
                  ]
                }
              ]
            }
          }
        },
        "required": [
          "date",
          "payment_terms_in_days"
        ]
      },
      "UpdatePaymentInvoiceLineSchema": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string",
            "description": "Key of the invoice line"
          },
          "item": {
            "type": "string",
            "description": "Item of the invoice line"
          },
          "amount": {
            "type": "number",
            "minimum": 1,
            "maximum": 100000,
            "description": "Amount of the invoice line"
          },
          "quantity": {
            "type": "number",
            "minimum": 1,
            "maximum": 10000000,
            "description": "Quantity of the invoice line"
          },
          "id": {
            "type": "string",
            "description": "Unique identifier for the invoice line"
          }
        },
        "required": [
          "item",
          "amount",
          "quantity",
          "id"
        ]
      },
      "UpdatePaymentInvoiceSchema": {
        "type": "object",
        "properties": {
          "date": {
            "type": "string",
            "nullable": true,
            "description": "Invoice date to calculate the start and due dates",
            "format": "date"
          },
          "payment_terms_in_days": {
            "type": "number",
            "description": "Payment terms in days for the invoice"
          },
          "lines": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/UpdatePaymentInvoiceLineSchema"
            }
          }
        }
      },
      "UpdatePaymentInvoiceStatusSchema": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "DRAFT",
              "PENDING",
              "PAID",
              "OVERDUE"
            ],
            "description": "Invoice status"
          }
        },
        "required": [
          "status"
        ]
      },
      "RuleSchema": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Name of the rule",
            "example": "Check Business Name"
          },
          "key": {
            "type": "string",
            "description": "Unique key of the rule within the collection",
            "example": "CHECK_BUSINESS_NAME"
          },
          "execution_order": {
            "type": "string",
            "description": "When to run this rule compared to others",
            "example": "before-all"
          },
          "on_success": {
            "type": "string",
            "enum": [
              "PASS",
              "FAIL",
              "WARN"
            ],
            "description": "Action to take if the rule passes",
            "example": "PASS"
          },
          "on_fail": {
            "type": "string",
            "enum": [
              "PASS",
              "FAIL",
              "WARN"
            ],
            "description": "Action to take if the rule fails",
            "example": "WARN"
          },
          "step_key": {
            "type": "string",
            "nullable": true,
            "description": "Step key to run the rule on"
          },
          "workflow_id": {
            "type": "string",
            "description": "Unique identifier of the linked workflow",
            "example": "work_xxx"
          },
          "workflow_version_id": {
            "type": "string",
            "description": "Unique identifier of the specific workflow version to use",
            "example": "workv_xxx"
          },
          "workflow_use_latest": {
            "type": "boolean",
            "description": "Should the rule use the latest version of the workflow?",
            "example": true
          },
          "workflow_input_default": {
            "allOf": [
              {
                "$ref": "#/components/schemas/InputValuesSchema"
              },
              {
                "description": "Default config input values to execute the workflow with",
                "example": {
                  "business_name": "Example Corp"
                }
              }
            ]
          },
          "disabled": {
            "type": "boolean",
            "description": "Whether the rule is disabled",
            "example": false
          }
        },
        "required": [
          "name",
          "key",
          "on_success",
          "on_fail",
          "workflow_id",
          "workflow_version_id",
          "workflow_use_latest"
        ],
        "description": "Detailed information about a rule"
      },
      "CollectionConfigMappingSchema": {
        "type": "object",
        "properties": {
          "source_path": {
            "type": "string",
            "description": "Path to the source input field",
            "example": "LOAN_APPLICATION:income"
          },
          "destination_paths": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Paths to the destination input fields to map to",
            "example": [
              "MONTHLY_INCOME:amount",
              "ANNUAL_INCOME:amount"
            ]
          }
        },
        "required": [
          "source_path",
          "destination_paths"
        ],
        "description": "Mapping of a source field to multiple destination fields"
      },
      "MappingFieldDocumentSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "document"
            ]
          },
          "name": {
            "type": "string"
          },
          "entity_path": {
            "type": "string"
          },
          "input_path": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "maxItems": 512
          }
        },
        "required": [
          "type",
          "entity_path",
          "input_path"
        ],
        "description": "Detailed information about a document mapping field"
      },
      "MappingFieldPropertySchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "property"
            ]
          },
          "name": {
            "type": "string"
          },
          "entity_path": {
            "type": "string"
          },
          "input_path": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "maxItems": 512
          }
        },
        "required": [
          "type",
          "entity_path",
          "input_path"
        ],
        "description": "Detailed information about a property mapping field"
      },
      "TriggerMappingSchema": {
        "oneOf": [
          {
            "$ref": "#/components/schemas/MappingFieldDocumentSchema"
          },
          {
            "$ref": "#/components/schemas/MappingFieldPropertySchema"
          }
        ],
        "discriminator": {
          "propertyName": "type",
          "mapping": {
            "document": "#/components/schemas/MappingFieldDocumentSchema",
            "property": "#/components/schemas/MappingFieldPropertySchema"
          }
        },
        "description": "Detailed information about a trigger mapping"
      },
      "TriggerEncompassConfigSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "ENCOMPASS"
            ],
            "description": "Type of the trigger connection"
          },
          "mappings": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TriggerMappingSchema"
            },
            "maxItems": 512,
            "description": "Mappings of the trigger"
          },
          "pull_on_millestones": {
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 512
            },
            "maxItems": 5,
            "description": "Milestones to pull from Encompass",
            "example": [
              "Application Received",
              "Underwriting Complete",
              "Clear to Close"
            ]
          },
          "pull_on_folders": {
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 512
            },
            "maxItems": 5,
            "description": "Folders to pull from Encompass",
            "example": [
              "Loan Folder",
              "Document Folder",
              "Underwriting Folder"
            ]
          }
        },
        "required": [
          "type"
        ],
        "description": "Configuration for an Encompass trigger"
      },
      "TriggerPersonaConfigSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "PERSONA"
            ],
            "description": "Type of the trigger connection"
          },
          "mappings": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TriggerMappingSchema"
            },
            "maxItems": 512,
            "description": "Mappings of the trigger"
          }
        },
        "required": [
          "type"
        ],
        "description": "Configuration for a Persona trigger"
      },
      "TriggerConfigSchema": {
        "oneOf": [
          {
            "$ref": "#/components/schemas/TriggerEncompassConfigSchema"
          },
          {
            "$ref": "#/components/schemas/TriggerPersonaConfigSchema"
          }
        ],
        "discriminator": {
          "propertyName": "type",
          "mapping": {
            "ENCOMPASS": "#/components/schemas/TriggerEncompassConfigSchema",
            "PERSONA": "#/components/schemas/TriggerPersonaConfigSchema"
          }
        },
        "description": "Configuration of the trigger"
      },
      "TriggerSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier for the trigger"
          },
          "type": {
            "type": "string",
            "enum": [
              "ENCOMPASS",
              "PERSONA"
            ],
            "description": "Service that the trigger is connected to",
            "example": "ENCOMPASS"
          },
          "name": {
            "type": "string",
            "nullable": true,
            "description": "Name of the trigger",
            "example": "My Encompass Trigger"
          },
          "config": {
            "$ref": "#/components/schemas/TriggerConfigSchema"
          },
          "enabled": {
            "type": "boolean",
            "description": "Whether the trigger is enabled or not"
          },
          "connection_id": {
            "type": "string",
            "nullable": true,
            "description": "Unique identifier of the connected service",
            "example": "con_xxx"
          },
          "collection_id": {
            "type": "string",
            "description": "Unique identifier of the collection this trigger belongs to"
          },
          "created_at": {
            "type": "string",
            "nullable": true,
            "description": "Creation date of the trigger",
            "format": "date"
          },
          "updated_at": {
            "type": "string",
            "nullable": true,
            "description": "Last update date of the trigger",
            "format": "date"
          }
        },
        "required": [
          "id",
          "type",
          "name",
          "config",
          "enabled",
          "connection_id",
          "collection_id",
          "created_at",
          "updated_at"
        ],
        "description": "Detailed information about a trigger"
      },
      "CollectionSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier for the collection"
          },
          "name": {
            "type": "string",
            "description": "Name of the collection"
          },
          "description": {
            "type": "string",
            "nullable": true,
            "description": "Description of the collection"
          },
          "app": {
            "$ref": "#/components/schemas/AppPublicSchema"
          },
          "config": {
            "type": "object",
            "nullable": true,
            "properties": {
              "id": {
                "type": "string",
                "description": "Unique identifier for the collection configuration"
              },
              "rules": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/RuleSchema"
                },
                "description": "List of rules associated with the collection"
              },
              "mappings": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/CollectionConfigMappingSchema"
                },
                "description": "List of input field mappings of the collection"
              },
              "created_at": {
                "type": "string",
                "nullable": true,
                "description": "Timestamp when the configuration was created",
                "format": "date"
              },
              "updated_at": {
                "type": "string",
                "nullable": true,
                "description": "Timestamp when the configuration was last updated",
                "format": "date"
              }
            },
            "required": [
              "id",
              "rules",
              "mappings",
              "created_at",
              "updated_at"
            ],
            "description": "Configuration of the collection. Including rules, triggers, etc."
          },
          "tags": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TagSchema"
            },
            "description": "Tags attached to this collection"
          },
          "records_count": {
            "type": "number",
            "description": "How many records are in the collection"
          },
          "deleted": {
            "type": "boolean",
            "description": "Has the collection been deleted"
          },
          "triggers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TriggerSchema"
            },
            "description": "Triggers associated with the collection"
          },
          "created_at": {
            "type": "string",
            "nullable": true,
            "description": "Timestamp when the collection was created",
            "format": "date"
          },
          "updated_at": {
            "type": "string",
            "nullable": true,
            "description": "Timestamp when the collection was last updated",
            "format": "date"
          },
          "link": {
            "type": "string",
            "description": "Link to the collection in the UI"
          }
        },
        "required": [
          "id",
          "name",
          "description",
          "app",
          "config",
          "tags",
          "records_count",
          "deleted",
          "triggers",
          "created_at",
          "updated_at",
          "link"
        ],
        "description": "Detailed information about a collection"
      },
      "WorkflowPublicSchema": {
        "type": "object",
        "nullable": true,
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier for the workflow"
          },
          "name": {
            "type": "string",
            "description": "Name of the workflow"
          },
          "app_id": {
            "type": "string",
            "description": "App ID where the workflow belongs"
          }
        },
        "required": [
          "id",
          "name",
          "app_id"
        ],
        "description": "Workflow that the template belongs to"
      },
      "AppTemplateSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier for the app template"
          },
          "name": {
            "type": "string",
            "description": "Name of the template category"
          },
          "slug": {
            "type": "string",
            "description": "Slug of the template category"
          },
          "templates_count": {
            "type": "number",
            "description": "Number of templates in the category"
          },
          "created_at": {
            "type": "string",
            "nullable": true,
            "description": "Timestamp when the template category was created",
            "format": "date"
          },
          "updated_at": {
            "type": "string",
            "nullable": true,
            "description": "Timestamp when the template category was last updated",
            "format": "date"
          }
        },
        "required": [
          "id",
          "name",
          "slug",
          "templates_count",
          "created_at",
          "updated_at"
        ],
        "description": "Detailed information about an app template"
      },
      "TemplateSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier for the app template"
          },
          "type": {
            "type": "string",
            "enum": [
              "WORKFLOW",
              "COLLECTION"
            ],
            "description": "Type of the app template"
          },
          "status": {
            "type": "string",
            "enum": [
              "DRAFT",
              "PUBLISHED"
            ],
            "description": "Status of the app template"
          },
          "name": {
            "type": "string",
            "description": "Name of the app template"
          },
          "description": {
            "type": "string",
            "nullable": true,
            "description": "Description of the app template"
          },
          "readme": {
            "type": "string",
            "nullable": true,
            "description": "Readme of the app template"
          },
          "app": {
            "allOf": [
              {
                "$ref": "#/components/schemas/AppPublicSchema"
              },
              {
                "description": "App that the template belongs to"
              }
            ]
          },
          "workflow": {
            "$ref": "#/components/schemas/WorkflowPublicSchema"
          },
          "workflow_version_id": {
            "type": "string",
            "nullable": true,
            "description": "Unique identifier for the workflow version"
          },
          "workflow_snapshot": {
            "type": "object",
            "nullable": true,
            "properties": {
              "key": {
                "type": "string",
                "description": "Unique key for the workflow version"
              },
              "input": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/InputDefinitionSchema"
                  },
                  {
                    "description": "Input definition of the workflow"
                  }
                ]
              },
              "input_default": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/InputValuesSchema"
                  },
                  {
                    "description": "Default config input values of the workflow"
                  }
                ]
              },
              "input_options": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/InputOptionsSchema"
                  },
                  {
                    "nullable": true,
                    "description": "Input options of the workflow"
                  }
                ]
              },
              "steps": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/StepSchema"
                },
                "description": "Steps of the workflow at the time this version was deployed"
              }
            },
            "required": [
              "key",
              "input",
              "input_default",
              "input_options",
              "steps"
            ],
            "description": "Snapshot of the workflow version"
          },
          "used_count": {
            "type": "number",
            "description": "Number of times the app template has been used"
          },
          "categories": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AppTemplateSchema"
            }
          },
          "created_at": {
            "type": "string",
            "nullable": true,
            "description": "Timestamp when the app template was created",
            "format": "date"
          },
          "updated_at": {
            "type": "string",
            "nullable": true,
            "description": "Timestamp when the app template was last updated",
            "format": "date"
          }
        },
        "required": [
          "id",
          "type",
          "status",
          "name",
          "description",
          "readme",
          "app",
          "workflow",
          "workflow_version_id",
          "workflow_snapshot",
          "used_count",
          "categories",
          "created_at",
          "updated_at"
        ],
        "description": "Detailed information about an app template"
      },
      "CreateTemplateCategorySchema": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Name of the template category"
          },
          "slug": {
            "type": "string",
            "description": "Slug of the template category"
          }
        },
        "required": [
          "name"
        ]
      },
      "UpdateTemplateCategorySchema": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Name of the template category"
          },
          "slug": {
            "type": "string",
            "description": "Slug of the template category"
          }
        }
      },
      "ContactSupportSchema": {
        "type": "object",
        "properties": {
          "subject": {
            "type": "string",
            "maxLength": 128
          },
          "message": {
            "type": "string",
            "maxLength": 2048
          }
        },
        "required": [
          "subject",
          "message"
        ]
      },
      "ContactSchema": {
        "type": "object",
        "properties": {
          "full_name": {
            "type": "string",
            "maxLength": 128
          },
          "email": {
            "type": "string",
            "maxLength": 256,
            "format": "email"
          },
          "company_website": {
            "type": "string",
            "maxLength": 128
          },
          "team_size": {
            "type": "string",
            "maxLength": 1024
          },
          "role": {
            "type": "string",
            "maxLength": 1024
          },
          "country": {
            "type": "string",
            "maxLength": 1024
          },
          "workflow_to_automate": {
            "type": "string",
            "maxLength": 1024
          },
          "what_do_you_want_to_see": {
            "type": "string",
            "maxLength": 1024
          },
          "comments": {
            "type": "string",
            "maxLength": 1024
          }
        },
        "required": [
          "full_name",
          "email"
        ]
      },
      "InstallLinkSchema": {
        "type": "object",
        "properties": {
          "email": {
            "type": "string",
            "maxLength": 256,
            "format": "email"
          },
          "name": {
            "type": "string",
            "maxLength": 128
          },
          "utm_source": {
            "type": "string",
            "maxLength": 128
          },
          "utm_medium": {
            "type": "string",
            "maxLength": 128
          },
          "utm_campaign": {
            "type": "string",
            "maxLength": 128
          },
          "utm_term": {
            "type": "string",
            "maxLength": 128
          },
          "utm_content": {
            "type": "string",
            "maxLength": 128
          },
          "entry_path": {
            "type": "string",
            "maxLength": 256
          },
          "source": {
            "type": "string",
            "maxLength": 256
          },
          "surface": {
            "type": "string",
            "maxLength": 256
          },
          "plan": {
            "type": "string",
            "maxLength": 256
          },
          "interval": {
            "type": "string",
            "maxLength": 256
          },
          "entry_live_page": {
            "type": "string",
            "maxLength": 256
          },
          "creative": {
            "type": "string",
            "maxLength": 16
          }
        },
        "required": [
          "email"
        ]
      },
      "ReportIssueResponseSchema": {
        "type": "object",
        "properties": {
          "trelloCardUrl": {
            "type": "string"
          }
        },
        "required": [
          "trelloCardUrl"
        ]
      },
      "ReportIssueRequestSchema": {
        "type": "object",
        "properties": {
          "userMessage": {
            "type": "string"
          },
          "extensionActivationId": {
            "type": "string",
            "minLength": 1
          },
          "windowMinutes": {
            "type": "integer",
            "minimum": 0,
            "exclusiveMinimum": true
          },
          "systemInfo": {
            "type": "object",
            "properties": {
              "cortexRelease": {
                "type": "string",
                "minLength": 1
              },
              "vscodeVersion": {
                "type": "string",
                "minLength": 1
              },
              "extensionVersion": {
                "type": "string",
                "minLength": 1
              },
              "os": {
                "type": "string",
                "minLength": 1
              },
              "osVersion": {
                "type": "string"
              },
              "freeMemoryMB": {
                "type": "number",
                "minimum": 0,
                "exclusiveMinimum": true
              },
              "arch": {
                "type": "string",
                "minLength": 1
              },
              "osDisplay": {
                "type": "string",
                "minLength": 1
              },
              "cpuModel": {
                "type": "string",
                "minLength": 1
              },
              "totalMemoryMB": {
                "type": "number",
                "minimum": 0,
                "exclusiveMinimum": true
              },
              "deviceModel": {
                "type": "string"
              }
            },
            "required": [
              "cortexRelease",
              "vscodeVersion",
              "extensionVersion",
              "os",
              "freeMemoryMB",
              "arch",
              "osDisplay",
              "cpuModel",
              "totalMemoryMB"
            ]
          },
          "entries": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "extensionActivationId": {
                  "type": "string",
                  "minLength": 1
                },
                "timestamp": {
                  "type": "string",
                  "minLength": 1
                },
                "level": {
                  "type": "string",
                  "minLength": 1
                },
                "topic": {
                  "type": "string"
                },
                "message": {
                  "type": "string",
                  "minLength": 1
                },
                "requestId": {
                  "type": "string"
                }
              },
              "required": [
                "extensionActivationId",
                "timestamp",
                "level",
                "message"
              ]
            }
          },
          "anonymous": {
            "type": "boolean"
          },
          "userEmail": {
            "type": "string",
            "format": "email"
          },
          "screenshot": {
            "type": "object",
            "properties": {
              "filename": {
                "type": "string",
                "minLength": 1
              },
              "mimeType": {
                "type": "string",
                "enum": [
                  "image/png",
                  "image/jpeg",
                  "image/gif",
                  "image/webp"
                ]
              },
              "data": {
                "type": "string",
                "minLength": 1
              },
              "sizeBytes": {
                "type": "integer",
                "minimum": 0,
                "exclusiveMinimum": true
              }
            },
            "required": [
              "filename",
              "mimeType",
              "data",
              "sizeBytes"
            ]
          },
          "screenshots": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "filename": {
                  "type": "string",
                  "minLength": 1
                },
                "mimeType": {
                  "type": "string",
                  "enum": [
                    "image/png",
                    "image/jpeg",
                    "image/gif",
                    "image/webp"
                  ]
                },
                "data": {
                  "type": "string",
                  "minLength": 1
                },
                "sizeBytes": {
                  "type": "integer",
                  "minimum": 0,
                  "exclusiveMinimum": true
                }
              },
              "required": [
                "filename",
                "mimeType",
                "data",
                "sizeBytes"
              ]
            }
          },
          "rendererLogText": {
            "type": "string"
          },
          "rendererLogLines": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "report": {
            "type": "object",
            "properties": {
              "context": {
                "type": "object",
                "properties": {
                  "userMessage": {
                    "type": "string"
                  },
                  "extensionActivationId": {
                    "type": "string",
                    "minLength": 1
                  },
                  "windowMinutes": {
                    "type": "integer",
                    "minimum": 0,
                    "exclusiveMinimum": true
                  },
                  "productMode": {
                    "type": "string",
                    "enum": [
                      "workspace",
                      "aios"
                    ]
                  },
                  "windowCount": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "focusedSessionId": {
                    "type": "string"
                  },
                  "focusedAssistantId": {
                    "type": "string"
                  },
                  "systemInfo": {
                    "type": "object",
                    "properties": {
                      "cortexRelease": {
                        "type": "string",
                        "minLength": 1
                      },
                      "vscodeVersion": {
                        "type": "string",
                        "minLength": 1
                      },
                      "extensionVersion": {
                        "type": "string",
                        "minLength": 1
                      },
                      "os": {
                        "type": "string",
                        "minLength": 1
                      },
                      "osVersion": {
                        "type": "string"
                      },
                      "freeMemoryMB": {
                        "type": "number",
                        "minimum": 0,
                        "exclusiveMinimum": true
                      },
                      "arch": {
                        "type": "string",
                        "minLength": 1
                      },
                      "osDisplay": {
                        "type": "string",
                        "minLength": 1
                      },
                      "cpuModel": {
                        "type": "string",
                        "minLength": 1
                      },
                      "totalMemoryMB": {
                        "type": "number",
                        "minimum": 0,
                        "exclusiveMinimum": true
                      },
                      "deviceModel": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "cortexRelease",
                      "vscodeVersion",
                      "extensionVersion",
                      "os",
                      "freeMemoryMB",
                      "arch",
                      "osDisplay",
                      "cpuModel",
                      "totalMemoryMB"
                    ]
                  }
                },
                "required": [
                  "extensionActivationId",
                  "windowMinutes",
                  "systemInfo"
                ]
              },
              "exceptions": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "v": {
                      "type": "integer",
                      "minimum": 0,
                      "exclusiveMinimum": true
                    },
                    "kind": {
                      "type": "string",
                      "enum": [
                        "event",
                        "exception"
                      ]
                    },
                    "ts": {
                      "type": "string",
                      "minLength": 1
                    },
                    "source": {
                      "type": "string",
                      "enum": [
                        "main",
                        "renderer",
                        "exthost"
                      ]
                    },
                    "name": {
                      "type": "string",
                      "minLength": 1
                    },
                    "rid": {
                      "type": "string"
                    },
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string",
                      "minLength": 1
                    },
                    "stack": {
                      "type": "string"
                    },
                    "userMessage": {
                      "type": "string"
                    },
                    "data": {
                      "type": "object",
                      "additionalProperties": {
                        "nullable": true
                      }
                    }
                  },
                  "required": [
                    "v",
                    "kind",
                    "ts",
                    "source",
                    "name",
                    "message"
                  ]
                }
              },
              "events": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "v": {
                      "type": "integer",
                      "minimum": 0,
                      "exclusiveMinimum": true
                    },
                    "kind": {
                      "type": "string",
                      "enum": [
                        "event",
                        "exception"
                      ]
                    },
                    "ts": {
                      "type": "string",
                      "minLength": 1
                    },
                    "source": {
                      "type": "string",
                      "enum": [
                        "main",
                        "renderer",
                        "exthost"
                      ]
                    },
                    "name": {
                      "type": "string",
                      "minLength": 1
                    },
                    "rid": {
                      "type": "string"
                    },
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string",
                      "minLength": 1
                    },
                    "stack": {
                      "type": "string"
                    },
                    "userMessage": {
                      "type": "string"
                    },
                    "data": {
                      "type": "object",
                      "additionalProperties": {
                        "nullable": true
                      }
                    }
                  },
                  "required": [
                    "v",
                    "kind",
                    "ts",
                    "source",
                    "name",
                    "message"
                  ]
                }
              }
            },
            "required": [
              "context",
              "exceptions",
              "events"
            ]
          }
        },
        "required": [
          "extensionActivationId",
          "windowMinutes",
          "systemInfo",
          "entries",
          "anonymous"
        ]
      },
      "WorkflowVersionDraftSchema": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string",
            "description": "Unique key for the workflow version"
          },
          "input": {
            "allOf": [
              {
                "$ref": "#/components/schemas/InputDefinitionSchema"
              },
              {
                "description": "Input definition of the workflow"
              }
            ]
          },
          "input_default": {
            "allOf": [
              {
                "$ref": "#/components/schemas/InputValuesSchema"
              },
              {
                "description": "Default config input values of the workflow"
              }
            ]
          },
          "input_options": {
            "allOf": [
              {
                "$ref": "#/components/schemas/InputOptionsSchema"
              },
              {
                "nullable": true,
                "description": "Input options of the workflow"
              }
            ]
          },
          "steps": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/StepSchema"
            },
            "description": "Steps of the workflow at the time this version was deployed"
          }
        },
        "required": [
          "key",
          "input",
          "input_default",
          "input_options",
          "steps"
        ],
        "description": "Information about a draft workflow version"
      },
      "PublicWorkflowEndpointSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier for the workflow endpoint"
          },
          "slug": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256,
            "description": "URL-friendly unique identifier for accessing the endpoint"
          },
          "name": {
            "type": "string"
          },
          "version": {
            "$ref": "#/components/schemas/WorkflowVersionDraftSchema"
          }
        },
        "required": [
          "id",
          "slug",
          "name",
          "version"
        ]
      },
      "StepTypeSchema": {
        "type": "string",
        "enum": [
          "note",
          "branch",
          "code",
          "model",
          "http_request",
          "browser",
          "workflow",
          "service",
          "input",
          "cortex_use"
        ],
        "description": "Step type"
      },
      "CreditsCallUsageSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "total": {
            "type": "number"
          },
          "calls": {
            "type": "array",
            "items": {
              "nullable": false,
              "oneOf": [
                {
                  "$ref": "#/components/schemas/CreditsUsageSchema"
                }
              ]
            }
          }
        },
        "required": [
          "id",
          "total"
        ]
      },
      "CreditsUsageSchema": {
        "type": "object",
        "properties": {
          "total": {
            "type": "number"
          },
          "calls": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CreditsCallUsageSchema"
            }
          }
        },
        "required": [
          "total"
        ]
      },
      "CreditsRunUsageSchema": {
        "allOf": [
          {
            "$ref": "#/components/schemas/CreditsUsageSchema"
          },
          {
            "type": "object",
            "properties": {
              "steps": {
                "type": "object",
                "additionalProperties": {
                  "$ref": "#/components/schemas/CreditsUsageSchema"
                }
              }
            },
            "required": [
              "steps"
            ]
          }
        ],
        "description": "Credits usage of the step run"
      },
      "RunRequestSchema": {
        "type": "object",
        "properties": {
          "method": {
            "type": "string",
            "description": "HTTP method of the request"
          },
          "url": {
            "type": "string",
            "description": "URL of the request"
          },
          "headers": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "description": "Headers of the request"
          },
          "query": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "description": "Query parameters of the request"
          },
          "ip": {
            "type": "string",
            "nullable": true,
            "description": "IP address of the request"
          }
        },
        "required": [
          "method",
          "url",
          "headers",
          "query",
          "ip"
        ],
        "description": "Request information for the workflow step run when executed from API or Webhook"
      },
      "StepWorkflowOutputSchema": {
        "type": "object",
        "properties": {
          "run_id": {
            "type": "string",
            "description": "ID of the workflow run that ran this step"
          },
          "app_id": {
            "type": "string",
            "description": "ID of the app that this step belongs to"
          },
          "workflow_id": {
            "type": "string",
            "description": "ID of the workflow"
          },
          "workflow_app_id": {
            "type": "string",
            "description": "ID of the app that the workflow belongs to"
          },
          "status": {
            "type": "string",
            "enum": [
              "PENDING",
              "RUNNING",
              "CANCELLED",
              "COMPLETED",
              "SKIPPED",
              "FAILED"
            ],
            "description": "Status of the step run",
            "example": "COMPLETED"
          },
          "origin": {
            "type": "string",
            "enum": [
              "WORKFLOW",
              "TRIGGER",
              "RECORD",
              "TEST",
              "ENDPOINT",
              "WEBHOOK"
            ],
            "description": "Origin of the step run",
            "example": "RECORD"
          },
          "error": {
            "type": "string",
            "nullable": true,
            "description": "Error message if the step run failed"
          },
          "usage": {
            "$ref": "#/components/schemas/CreditsRunUsageSchema"
          },
          "result": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RunResultSchema"
              },
              {
                "description": "Result of the workflow step run"
              }
            ]
          },
          "output": {
            "nullable": true,
            "description": "Output of the workflow step run"
          },
          "date": {
            "type": "string",
            "description": "Date of the workflow step run"
          },
          "request": {
            "$ref": "#/components/schemas/RunRequestSchema"
          }
        },
        "required": [
          "run_id",
          "app_id",
          "workflow_id",
          "workflow_app_id",
          "status",
          "origin",
          "error",
          "date"
        ]
      },
      "StepWorkflowRecordOutputSchema": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true,
            "description": "Name of the record that ran this run"
          },
          "record_id": {
            "type": "string",
            "description": "ID of the record that ran this run"
          },
          "collection_id": {
            "type": "string",
            "description": "ID of the collection that the record belongs to"
          }
        },
        "required": [
          "name",
          "record_id",
          "collection_id"
        ]
      },
      "StepBranchConditionOutputSchema": {
        "type": "object",
        "additionalProperties": {
          "nullable": true
        },
        "description": "The output of the branch condition"
      },
      "StepCodeOutputSchema": {
        "nullable": true,
        "description": "The output of the code step"
      },
      "ModelToolResultSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier for the tool call"
          },
          "name": {
            "type": "string",
            "description": "The name of the tool called"
          },
          "output": {
            "anyOf": [
              {
                "type": "object",
                "additionalProperties": {
                  "nullable": true
                }
              },
              {
                "type": "string"
              },
              {
                "nullable": true
              }
            ],
            "description": "The output of the tool call"
          }
        },
        "required": [
          "id",
          "name"
        ]
      },
      "StepModelOutputSchema": {
        "type": "object",
        "properties": {
          "provider": {
            "type": "string",
            "description": "The provider of the model"
          },
          "model": {
            "type": "string",
            "description": "The model ran"
          },
          "connection_id": {
            "type": "string",
            "description": "The connection id of the model"
          },
          "connection_type": {
            "type": "string",
            "description": "The connection type of the model"
          },
          "message": {
            "anyOf": [
              {
                "type": "object",
                "additionalProperties": {
                  "nullable": true
                }
              },
              {
                "type": "string"
              },
              {
                "nullable": true
              }
            ],
            "description": "The message output of the model, can be a string or an object based on the response_format."
          },
          "tool_calls": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ModelToolCallSchema"
            },
            "description": "The tools called by the model"
          },
          "tool_results": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ModelToolResultSchema"
            },
            "description": "The results of the tools called by the model"
          },
          "refusal": {
            "type": "string",
            "description": "The refusal message if the model refused to run"
          },
          "index": {
            "type": "number",
            "description": "The index of the loop when running in a loop"
          },
          "tool_index": {
            "type": "number",
            "description": "The index of the tool when part of a tool call"
          },
          "raw": {
            "type": "object",
            "additionalProperties": {
              "nullable": true
            },
            "description": "The raw output of the model provider"
          }
        },
        "required": [
          "model"
        ],
        "description": "The output of the model"
      },
      "StepHttpRequestOutputSchema": {
        "type": "object",
        "properties": {
          "ok": {
            "type": "boolean",
            "description": "Whether the request was successful"
          },
          "status": {
            "type": "number",
            "description": "The status code of the response"
          },
          "headers": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "description": "The headers of the response"
          },
          "body": {
            "nullable": true,
            "description": "The body of the response"
          },
          "error": {
            "type": "string",
            "description": "Error message if the request failed"
          }
        },
        "required": [
          "ok",
          "status",
          "headers"
        ],
        "description": "The output of the HTTP request step"
      },
      "StepBrowserOutputSchema": {
        "type": "object",
        "properties": {
          "ok": {
            "type": "boolean",
            "description": "Whether the request was successful"
          },
          "status": {
            "type": "number",
            "description": "The status code of the response"
          },
          "headers": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "description": "The headers of the response"
          },
          "body": {
            "nullable": true,
            "description": "The body of the response"
          }
        },
        "required": [
          "ok",
          "status",
          "headers"
        ],
        "description": "The output of the browser step"
      },
      "StepServiceOutputSchema": {
        "nullable": true
      },
      "StepOutputSchema": {
        "anyOf": [
          {
            "$ref": "#/components/schemas/StepWorkflowOutputSchema"
          },
          {
            "$ref": "#/components/schemas/StepWorkflowRecordOutputSchema"
          },
          {
            "$ref": "#/components/schemas/StepBranchConditionOutputSchema"
          },
          {
            "$ref": "#/components/schemas/StepCodeOutputSchema"
          },
          {
            "$ref": "#/components/schemas/StepModelOutputSchema"
          },
          {
            "$ref": "#/components/schemas/StepHttpRequestOutputSchema"
          },
          {
            "$ref": "#/components/schemas/StepBrowserOutputSchema"
          },
          {
            "$ref": "#/components/schemas/StepServiceOutputSchema"
          },
          {
            "nullable": true
          }
        ]
      },
      "RuntimeLogs": {
        "type": "array",
        "items": {
          "nullable": true
        }
      },
      "RunStepOutputCallSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier for the call"
          },
          "status": {
            "type": "string",
            "enum": [
              "PENDING",
              "RUNNING",
              "CANCELLED",
              "COMPLETED",
              "SKIPPED",
              "FAILED"
            ],
            "description": "Status of the call"
          },
          "index": {
            "type": "number"
          },
          "key": {
            "type": "string",
            "description": "Key of the step run",
            "example": "STEP_1"
          },
          "type": {
            "$ref": "#/components/schemas/StepTypeSchema"
          },
          "output": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/StepWorkflowOutputSchema"
              },
              {
                "$ref": "#/components/schemas/StepWorkflowRecordOutputSchema"
              },
              {
                "$ref": "#/components/schemas/StepBranchConditionOutputSchema"
              },
              {
                "$ref": "#/components/schemas/StepCodeOutputSchema"
              },
              {
                "$ref": "#/components/schemas/StepModelOutputSchema"
              },
              {
                "$ref": "#/components/schemas/StepHttpRequestOutputSchema"
              },
              {
                "$ref": "#/components/schemas/StepBrowserOutputSchema"
              },
              {
                "$ref": "#/components/schemas/StepServiceOutputSchema"
              },
              {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/StepOutputSchema"
                }
              },
              {
                "nullable": true
              }
            ],
            "description": "Output of the step run"
          },
          "logs": {
            "$ref": "#/components/schemas/RuntimeLogs"
          },
          "start": {
            "type": "number",
            "description": "Timestamp of when the step run started"
          },
          "end": {
            "type": "number",
            "description": "Timestamp of when the step run ended"
          },
          "error": {
            "type": "string",
            "description": "Error message if the step run failed"
          }
        },
        "required": [
          "status",
          "key",
          "start"
        ]
      },
      "RunStepOutputCallsSchema": {
        "type": "array",
        "items": {
          "$ref": "#/components/schemas/RunStepOutputCallSchema"
        }
      },
      "RunStepRunningOutputSchema": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "RUNNING"
            ],
            "description": "Status of the step run, must be RUNNING"
          },
          "type": {
            "$ref": "#/components/schemas/StepTypeSchema"
          },
          "key": {
            "type": "string",
            "description": "Key of the step run",
            "example": "STEP_1"
          },
          "output": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/StepWorkflowOutputSchema"
              },
              {
                "$ref": "#/components/schemas/StepWorkflowRecordOutputSchema"
              },
              {
                "$ref": "#/components/schemas/StepBranchConditionOutputSchema"
              },
              {
                "$ref": "#/components/schemas/StepCodeOutputSchema"
              },
              {
                "$ref": "#/components/schemas/StepModelOutputSchema"
              },
              {
                "$ref": "#/components/schemas/StepHttpRequestOutputSchema"
              },
              {
                "$ref": "#/components/schemas/StepBrowserOutputSchema"
              },
              {
                "$ref": "#/components/schemas/StepServiceOutputSchema"
              },
              {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/StepOutputSchema"
                }
              },
              {
                "nullable": true
              }
            ],
            "description": "Output of the step run"
          },
          "logs": {
            "$ref": "#/components/schemas/RuntimeLogs"
          },
          "calls": {
            "$ref": "#/components/schemas/RunStepOutputCallsSchema"
          },
          "start": {
            "type": "number",
            "description": "Timestamp of when the step run started"
          }
        },
        "required": [
          "status",
          "key",
          "start"
        ]
      },
      "RunStepCancelledOutputSchema": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "CANCELLED"
            ],
            "description": "Status of the step run, must be CANCELLED"
          },
          "type": {
            "$ref": "#/components/schemas/StepTypeSchema"
          },
          "key": {
            "type": "string",
            "description": "Key of the step run",
            "example": "STEP_1"
          },
          "output": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/StepWorkflowOutputSchema"
              },
              {
                "$ref": "#/components/schemas/StepWorkflowRecordOutputSchema"
              },
              {
                "$ref": "#/components/schemas/StepBranchConditionOutputSchema"
              },
              {
                "$ref": "#/components/schemas/StepCodeOutputSchema"
              },
              {
                "$ref": "#/components/schemas/StepModelOutputSchema"
              },
              {
                "$ref": "#/components/schemas/StepHttpRequestOutputSchema"
              },
              {
                "$ref": "#/components/schemas/StepBrowserOutputSchema"
              },
              {
                "$ref": "#/components/schemas/StepServiceOutputSchema"
              },
              {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/StepOutputSchema"
                }
              },
              {
                "nullable": true
              }
            ],
            "description": "Output of the step run"
          },
          "logs": {
            "$ref": "#/components/schemas/RuntimeLogs"
          },
          "calls": {
            "$ref": "#/components/schemas/RunStepOutputCallsSchema"
          },
          "start": {
            "type": "number",
            "description": "Timestamp of when the step run started"
          },
          "end": {
            "type": "number",
            "description": "Timestamp of when the step run ended"
          },
          "error": {
            "type": "string",
            "description": "Error message if the step run failed"
          }
        },
        "required": [
          "status",
          "key",
          "start"
        ]
      },
      "RunStepSkippedOutputSchema": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "SKIPPED"
            ],
            "description": "Status of the step run, must be SKIPPED"
          },
          "type": {
            "$ref": "#/components/schemas/StepTypeSchema"
          },
          "key": {
            "type": "string",
            "description": "Key of the step run",
            "example": "STEP_1"
          },
          "output": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/StepWorkflowOutputSchema"
              },
              {
                "$ref": "#/components/schemas/StepWorkflowRecordOutputSchema"
              },
              {
                "$ref": "#/components/schemas/StepBranchConditionOutputSchema"
              },
              {
                "$ref": "#/components/schemas/StepCodeOutputSchema"
              },
              {
                "$ref": "#/components/schemas/StepModelOutputSchema"
              },
              {
                "$ref": "#/components/schemas/StepHttpRequestOutputSchema"
              },
              {
                "$ref": "#/components/schemas/StepBrowserOutputSchema"
              },
              {
                "$ref": "#/components/schemas/StepServiceOutputSchema"
              },
              {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/StepOutputSchema"
                }
              },
              {
                "nullable": true
              }
            ],
            "description": "Output of the step run"
          },
          "logs": {
            "$ref": "#/components/schemas/RuntimeLogs"
          },
          "calls": {
            "$ref": "#/components/schemas/RunStepOutputCallsSchema"
          },
          "start": {
            "type": "number",
            "description": "Timestamp of when the step run started"
          },
          "end": {
            "type": "number",
            "description": "Timestamp of when the step run ended"
          }
        },
        "required": [
          "status",
          "key",
          "start"
        ]
      },
      "RunStepCompletedOutputSchema": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "COMPLETED"
            ],
            "description": "Status of the step run, must be COMPLETED"
          },
          "type": {
            "$ref": "#/components/schemas/StepTypeSchema"
          },
          "key": {
            "type": "string",
            "description": "Key of the step run",
            "example": "STEP_1"
          },
          "output": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/StepWorkflowOutputSchema"
              },
              {
                "$ref": "#/components/schemas/StepWorkflowRecordOutputSchema"
              },
              {
                "$ref": "#/components/schemas/StepBranchConditionOutputSchema"
              },
              {
                "$ref": "#/components/schemas/StepCodeOutputSchema"
              },
              {
                "$ref": "#/components/schemas/StepModelOutputSchema"
              },
              {
                "$ref": "#/components/schemas/StepHttpRequestOutputSchema"
              },
              {
                "$ref": "#/components/schemas/StepBrowserOutputSchema"
              },
              {
                "$ref": "#/components/schemas/StepServiceOutputSchema"
              },
              {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/StepOutputSchema"
                }
              },
              {
                "nullable": true
              }
            ],
            "description": "Output of the step run"
          },
          "logs": {
            "$ref": "#/components/schemas/RuntimeLogs"
          },
          "calls": {
            "$ref": "#/components/schemas/RunStepOutputCallsSchema"
          },
          "start": {
            "type": "number",
            "description": "Timestamp of when the step run started"
          },
          "end": {
            "type": "number",
            "description": "Timestamp of when the step run ended"
          }
        },
        "required": [
          "status",
          "key",
          "start"
        ]
      },
      "RunStepFailedOutputSchema": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "FAILED"
            ],
            "description": "Status of the step run, must be FAILED"
          },
          "type": {
            "$ref": "#/components/schemas/StepTypeSchema"
          },
          "key": {
            "type": "string",
            "description": "Key of the step run",
            "example": "STEP_1"
          },
          "output": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/StepWorkflowOutputSchema"
              },
              {
                "$ref": "#/components/schemas/StepWorkflowRecordOutputSchema"
              },
              {
                "$ref": "#/components/schemas/StepBranchConditionOutputSchema"
              },
              {
                "$ref": "#/components/schemas/StepCodeOutputSchema"
              },
              {
                "$ref": "#/components/schemas/StepModelOutputSchema"
              },
              {
                "$ref": "#/components/schemas/StepHttpRequestOutputSchema"
              },
              {
                "$ref": "#/components/schemas/StepBrowserOutputSchema"
              },
              {
                "$ref": "#/components/schemas/StepServiceOutputSchema"
              },
              {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/StepOutputSchema"
                }
              },
              {
                "nullable": true
              }
            ],
            "description": "Output of the step run"
          },
          "logs": {
            "$ref": "#/components/schemas/RuntimeLogs"
          },
          "calls": {
            "$ref": "#/components/schemas/RunStepOutputCallsSchema"
          },
          "start": {
            "type": "number",
            "description": "Timestamp of when the step run started"
          },
          "end": {
            "type": "number",
            "description": "Timestamp of when the step run ended"
          },
          "error": {
            "type": "string",
            "description": "Error message if the step run failed"
          }
        },
        "required": [
          "status",
          "key",
          "start"
        ]
      },
      "RunStepOutputSchema": {
        "oneOf": [
          {
            "$ref": "#/components/schemas/RunStepRunningOutputSchema"
          },
          {
            "$ref": "#/components/schemas/RunStepCancelledOutputSchema"
          },
          {
            "$ref": "#/components/schemas/RunStepSkippedOutputSchema"
          },
          {
            "$ref": "#/components/schemas/RunStepCompletedOutputSchema"
          },
          {
            "$ref": "#/components/schemas/RunStepFailedOutputSchema"
          }
        ],
        "discriminator": {
          "propertyName": "status",
          "mapping": {
            "RUNNING": "#/components/schemas/RunStepRunningOutputSchema",
            "CANCELLED": "#/components/schemas/RunStepCancelledOutputSchema",
            "SKIPPED": "#/components/schemas/RunStepSkippedOutputSchema",
            "COMPLETED": "#/components/schemas/RunStepCompletedOutputSchema",
            "FAILED": "#/components/schemas/RunStepFailedOutputSchema"
          }
        },
        "description": "Detailed information about the step run"
      },
      "RunOutputSchema": {
        "type": "object",
        "additionalProperties": {
          "$ref": "#/components/schemas/RunStepOutputSchema"
        },
        "description": "Output of the run"
      },
      "RunStatusSchema": {
        "type": "string",
        "enum": [
          "PENDING",
          "RUNNING",
          "CANCELLED",
          "COMPLETED",
          "SKIPPED",
          "FAILED"
        ],
        "description": "Status of the run",
        "example": "RUNNING"
      },
      "RunDataRetentionConfigSchema": {
        "type": "object",
        "nullable": true,
        "properties": {
          "max_age_in_seconds": {
            "type": "number",
            "minimum": -1,
            "maximum": 157680000,
            "description": "Maximum time in seconds to retain run data after completion, -1 means no limit (keep indefinitely)"
          },
          "preserve_on_failure": {
            "type": "boolean",
            "description": "Whether to preserve run data beyond the standard retention period if it fails",
            "example": true
          }
        },
        "required": [
          "max_age_in_seconds"
        ],
        "description": "Configuration for how long run data is preserved in the system",
        "example": {
          "max_age_in_seconds": 3600,
          "preserve_on_failure": true
        }
      },
      "RunSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier for the run"
          },
          "result": {
            "$ref": "#/components/schemas/RunResultSchema"
          },
          "input": {
            "allOf": [
              {
                "$ref": "#/components/schemas/InputValuesSchema"
              },
              {
                "description": "Input values used for the run"
              }
            ]
          },
          "output": {
            "$ref": "#/components/schemas/RunOutputSchema"
          },
          "status": {
            "$ref": "#/components/schemas/RunStatusSchema"
          },
          "origin": {
            "type": "string",
            "enum": [
              "WORKFLOW",
              "TRIGGER",
              "RECORD",
              "TEST",
              "ENDPOINT",
              "WEBHOOK"
            ],
            "description": "Origin of the run",
            "example": "WORKFLOW"
          },
          "error": {
            "type": "string",
            "description": "Error message if the run failed"
          },
          "started_at": {
            "type": "string",
            "nullable": true,
            "description": "Timestamp of when the run started",
            "format": "date"
          },
          "ended_at": {
            "type": "string",
            "nullable": true,
            "description": "Timestamp of when the run ended",
            "format": "date"
          },
          "app_id": {
            "type": "string",
            "description": "ID of the associated app where the run was triggered from"
          },
          "workflow_app_id": {
            "type": "string",
            "description": "ID of the associated app where the workflow belongs to"
          },
          "workflow_id": {
            "type": "string",
            "description": "ID of the associated workflow"
          },
          "workflow_version_draft": {
            "type": "object",
            "nullable": true,
            "properties": {
              "key": {
                "type": "string",
                "description": "Unique key for the workflow version"
              },
              "input": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/InputDefinitionSchema"
                  },
                  {
                    "description": "Input definition of the workflow"
                  }
                ]
              },
              "input_default": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/InputValuesSchema"
                  },
                  {
                    "description": "Default config input values of the workflow"
                  }
                ]
              },
              "input_options": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/InputOptionsSchema"
                  },
                  {
                    "nullable": true,
                    "description": "Input options of the workflow"
                  }
                ]
              },
              "steps": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/StepSchema"
                },
                "description": "Steps of the workflow at the time this version was deployed"
              }
            },
            "required": [
              "key",
              "input",
              "input_default",
              "input_options",
              "steps"
            ],
            "description": "Draft version of the workflow"
          },
          "workflow_version": {
            "type": "object",
            "nullable": true,
            "properties": {
              "id": {
                "type": "string",
                "description": "Unique identifier for the workflow version"
              },
              "app_id": {
                "type": "string",
                "description": "App id where the workflow version belongs to"
              },
              "workflow_id": {
                "type": "string",
                "description": "Workflow id where the version belongs to"
              },
              "description": {
                "type": "string",
                "nullable": true,
                "description": "Description of the workflow at the time this version was deployed"
              },
              "version": {
                "type": "number",
                "description": "Version number"
              },
              "rollback_version": {
                "type": "number",
                "description": "Version number from which this version was rolled back"
              },
              "notes": {
                "type": "string",
                "nullable": true,
                "description": "Release notes"
              },
              "created_by": {
                "$ref": "#/components/schemas/UserPublicSchema"
              },
              "created_at": {
                "type": "string",
                "nullable": true,
                "description": "Date when the version was deployed",
                "format": "date"
              },
              "key": {
                "type": "string",
                "description": "Unique key for the workflow version"
              },
              "input": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/InputDefinitionSchema"
                  },
                  {
                    "description": "Input definition of the workflow"
                  }
                ]
              },
              "input_default": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/InputValuesSchema"
                  },
                  {
                    "description": "Default config input values of the workflow"
                  }
                ]
              },
              "input_options": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/InputOptionsSchema"
                  },
                  {
                    "nullable": true,
                    "description": "Input options of the workflow"
                  }
                ]
              },
              "steps": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/StepSchema"
                },
                "description": "Steps of the workflow at the time this version was deployed"
              }
            },
            "required": [
              "id",
              "app_id",
              "workflow_id",
              "description",
              "version",
              "notes",
              "created_at",
              "key",
              "input",
              "input_default",
              "input_options",
              "steps"
            ],
            "description": "Details of the workflow version used for the run"
          },
          "collection_id": {
            "type": "string",
            "description": "ID of the associated collection"
          },
          "record_id": {
            "type": "string",
            "description": "ID of the associated record"
          },
          "version": {
            "type": "number",
            "description": "Version number of the workflow"
          },
          "usage": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CreditsRunUsageSchema"
              },
              {
                "description": "Credits usage of the run"
              }
            ]
          },
          "retention": {
            "$ref": "#/components/schemas/RunDataRetentionConfigSchema"
          },
          "retention_due_at": {
            "type": "string",
            "nullable": true,
            "description": "Timestamp of when the run data retention policy will be applied",
            "format": "date"
          },
          "created_at": {
            "type": "string",
            "nullable": true,
            "description": "Timestamp of when the run was created",
            "format": "date"
          },
          "updated_at": {
            "type": "string",
            "nullable": true,
            "description": "Timestamp of when the run was last updated",
            "format": "date"
          }
        },
        "required": [
          "id",
          "input",
          "output",
          "status",
          "origin",
          "started_at",
          "ended_at",
          "app_id",
          "workflow_app_id",
          "workflow_id",
          "workflow_version_draft",
          "workflow_version",
          "created_at",
          "updated_at"
        ]
      },
      "RunWorkflowEndpointSchema": {
        "type": "object",
        "properties": {
          "input": {
            "$ref": "#/components/schemas/InputValuesSchema"
          }
        },
        "required": [
          "input"
        ]
      },
      "DocumentContentSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "number",
            "description": "Unique identifier for the content"
          },
          "type": {
            "type": "string",
            "enum": [
              "TITLE",
              "TEXT",
              "UNTEXT",
              "NARRATIVETEXT",
              "BULLETEDTEXT",
              "ABSTRACT",
              "THREADING",
              "FORM",
              "FIELD-NAME",
              "VALUE",
              "LINK",
              "COMPOSITEELEMENT",
              "IMAGE",
              "PICTURE",
              "FIGURECAPTION",
              "FIGURE",
              "CAPTION",
              "LIST",
              "LISTITEM",
              "LIST-ITEM",
              "CHECKED",
              "UNCHECKED",
              "ADDRESS",
              "EMAILADDRESS",
              "PAGEBREAK",
              "FORMULA",
              "TABLE",
              "HEADER",
              "HEADLINE",
              "SUBHEADLINE",
              "PAGE-HEADER",
              "SECTION-HEADER",
              "FOOTER",
              "FOOTNOTE",
              "PAGE-FOOTER"
            ],
            "description": "Type of the content element"
          },
          "content": {
            "type": "string",
            "description": "Content text"
          },
          "content_as_html": {
            "type": "string",
            "description": "Content text in HTML format"
          },
          "page": {
            "type": "number",
            "description": "Page number where the content is located in the document"
          },
          "parent": {
            "type": "number",
            "description": "Parent content identifier"
          }
        },
        "required": [
          "id",
          "type",
          "content",
          "page"
        ],
        "description": "Detailed information about the content of a document"
      },
      "DocumentImageSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier for the image"
          },
          "file_id": {
            "type": "string",
            "description": "File identifier associated with the image"
          },
          "image_url": {
            "type": "string",
            "description": "URL of the image"
          },
          "type": {
            "type": "string",
            "description": "Type of the image"
          },
          "page": {
            "type": "number",
            "description": "Page number where the image is located in the document"
          },
          "height": {
            "type": "number",
            "description": "Height of the image"
          },
          "width": {
            "type": "number",
            "description": "Width of the image"
          }
        },
        "required": [
          "id",
          "file_id",
          "image_url",
          "type",
          "page",
          "height",
          "width"
        ],
        "description": "Detailed information about an image in a document"
      },
      "DocumentSchema": {
        "type": "object",
        "properties": {
          "filename": {
            "type": "string",
            "description": "Name of the document file"
          },
          "filetype": {
            "type": "string",
            "description": "Type of the document file"
          },
          "contents": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DocumentContentSchema"
            },
            "description": "Array of document contents (only available if extract_contents is true)"
          },
          "images": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DocumentImageSchema"
            },
            "description": "Array of document images (only available if extract_images is true)"
          },
          "extracted_pages": {
            "type": "string",
            "description": "Extracted pages from the document (only available if extract_pages is true)"
          },
          "time": {
            "type": "number",
            "description": "Time taken to process the document"
          }
        },
        "required": [
          "filename",
          "filetype",
          "contents",
          "images"
        ],
        "description": "Document data associated with the file"
      },
      "AppFileStorageSchema": {
        "type": "string",
        "enum": [
          "PERSISTENT",
          "TEMPORARY"
        ],
        "default": "PERSISTENT",
        "description": "Whether the file is stored permanently or temporarily, indicating the storage type",
        "example": "PERSISTENT"
      },
      "AppFileSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier for the file"
          },
          "file_id": {
            "type": "string",
            "description": "File identifier used in the storage system"
          },
          "file_filename": {
            "type": "string",
            "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",
            "description": "MIME type of the file",
            "example": "application/pdf"
          },
          "file_url": {
            "type": "string",
            "description": "URL to access the file"
          },
          "file_format": {
            "type": "string",
            "enum": [
              "DOCUMENT",
              "TEXT"
            ],
            "description": "Format of the file",
            "example": "DOCUMENT"
          },
          "file_status": {
            "type": "string",
            "enum": [
              "PROCESSING",
              "PROCESSED",
              "FAILED"
            ],
            "description": "Current status of the file",
            "example": "PROCESSED"
          },
          "file_status_message": {
            "type": "string",
            "description": "Status message providing additional information about the file status"
          },
          "document": {
            "$ref": "#/components/schemas/DocumentSchema"
          },
          "document_extract_contents": {
            "type": "boolean",
            "description": "Flag indicating whether to extract contents from the document"
          },
          "document_extract_images": {
            "type": "boolean",
            "description": "Flag indicating whether to extract images from the document"
          },
          "document_extract_pages": {
            "type": "boolean",
            "description": "Flag indicating whether to extract pages from the document"
          },
          "document_pages": {
            "type": "array",
            "items": {
              "type": "number"
            },
            "maxItems": 1024,
            "description": "Array of page numbers to extract from the document",
            "example": [
              1,
              2,
              3
            ]
          },
          "document_progress": {
            "type": "number",
            "description": "Progress of the document extraction process"
          },
          "storage": {
            "$ref": "#/components/schemas/AppFileStorageSchema"
          },
          "created_at": {
            "type": "string",
            "nullable": true,
            "description": "Timestamp when the file was created",
            "format": "date"
          }
        },
        "required": [
          "id",
          "file_id",
          "file_filename",
          "file_size",
          "file_mimetype",
          "file_url",
          "created_at"
        ],
        "description": "Detailed information about a file"
      },
      "CreateEndpointAppFileSchema": {
        "type": "object",
        "properties": {
          "file": {
            "anyOf": [
              {
                "type": "string",
                "format": "binary"
              },
              {
                "$ref": "#/components/schemas/FileDataSchema"
              },
              {
                "type": "string"
              }
            ],
            "description": "File to be uploaded. It can be a file object, a base64 encoded string, or a file data object containing base64 data, name, and type."
          },
          "file_url": {
            "type": "string",
            "description": "URL of the file to be uploaded",
            "example": "https://example.com/files/document.pdf"
          },
          "allowed_types": {
            "$ref": "#/components/schemas/FileAllowedTypesSchema"
          },
          "document_extract_contents": {
            "type": "boolean",
            "description": "Flag indicating whether to extract contents from the document",
            "example": false
          },
          "document_extract_images": {
            "type": "boolean",
            "description": "Flag indicating whether to extract images from the document",
            "example": false
          },
          "document_extract_pages": {
            "type": "boolean",
            "description": "Flag indicating whether to extract pages from the document",
            "example": false
          },
          "document_pages": {
            "type": "array",
            "items": {
              "type": "number"
            },
            "maxItems": 1024,
            "description": "Array of page numbers to extract from the document",
            "example": [
              1,
              2,
              3
            ]
          },
          "document_max_pages": {
            "type": "number",
            "minimum": 1,
            "description": "Maximum number of pages to extract from the document",
            "example": 10
          },
          "bucket": {
            "type": "string",
            "description": "Storage bucket for the file",
            "example": "cortex-eu"
          },
          "region": {
            "type": "string",
            "description": "Region on R2/cloudflare",
            "example": "cortex-eu"
          }
        }
      },
      "CreditsRecordUsageSchema": {
        "allOf": [
          {
            "$ref": "#/components/schemas/CreditsUsageSchema"
          },
          {
            "type": "object",
            "properties": {
              "rules": {
                "type": "object",
                "additionalProperties": {
                  "$ref": "#/components/schemas/CreditsRunUsageSchema"
                }
              }
            },
            "required": [
              "rules"
            ]
          }
        ],
        "description": "Credit usage information of the record"
      },
      "RecordRuleSchema": {
        "allOf": [
          {
            "$ref": "#/components/schemas/IncludeRecordRuleSchema"
          },
          {
            "type": "object",
            "properties": {
              "status": {
                "type": "string",
                "enum": [
                  "DRAFT",
                  "RUNNING",
                  "PASSED",
                  "FAILED",
                  "WARN"
                ],
                "description": "Current status of the record rule",
                "example": "PASSED"
              },
              "key": {
                "type": "string",
                "description": "Unique key of the rule within the collection",
                "example": "CHECK_BUSINESS_NAME"
              },
              "result": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/RunResultSchema"
                  },
                  {
                    "description": "Result of the rule execution"
                  }
                ]
              },
              "error": {
                "type": "string",
                "description": "Error message if the rule execution failed",
                "example": "Invalid input data"
              },
              "input": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/InputValuesSchema"
                  },
                  {
                    "description": "Input values used for the rule execution",
                    "example": {
                      "business_name": "Acme Corp"
                    }
                  }
                ]
              },
              "run": {
                "type": "object",
                "nullable": true,
                "properties": {
                  "id": {
                    "type": "string",
                    "description": "Unique identifier for the run"
                  },
                  "result": {
                    "$ref": "#/components/schemas/RunResultSchema"
                  },
                  "input": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/InputValuesSchema"
                      },
                      {
                        "description": "Input values used for the run"
                      }
                    ]
                  },
                  "output": {
                    "$ref": "#/components/schemas/RunOutputSchema"
                  },
                  "status": {
                    "$ref": "#/components/schemas/RunStatusSchema"
                  },
                  "origin": {
                    "type": "string",
                    "enum": [
                      "WORKFLOW",
                      "TRIGGER",
                      "RECORD",
                      "TEST",
                      "ENDPOINT",
                      "WEBHOOK"
                    ],
                    "description": "Origin of the run",
                    "example": "WORKFLOW"
                  },
                  "error": {
                    "type": "string",
                    "description": "Error message if the run failed"
                  },
                  "started_at": {
                    "type": "string",
                    "nullable": true,
                    "description": "Timestamp of when the run started",
                    "format": "date"
                  },
                  "ended_at": {
                    "type": "string",
                    "nullable": true,
                    "description": "Timestamp of when the run ended",
                    "format": "date"
                  },
                  "app_id": {
                    "type": "string",
                    "description": "ID of the associated app where the run was triggered from"
                  },
                  "workflow_app_id": {
                    "type": "string",
                    "description": "ID of the associated app where the workflow belongs to"
                  },
                  "workflow_id": {
                    "type": "string",
                    "description": "ID of the associated workflow"
                  },
                  "workflow_version_draft": {
                    "type": "object",
                    "nullable": true,
                    "properties": {
                      "key": {
                        "type": "string",
                        "description": "Unique key for the workflow version"
                      },
                      "input": {
                        "allOf": [
                          {
                            "$ref": "#/components/schemas/InputDefinitionSchema"
                          },
                          {
                            "description": "Input definition of the workflow"
                          }
                        ]
                      },
                      "input_default": {
                        "allOf": [
                          {
                            "$ref": "#/components/schemas/InputValuesSchema"
                          },
                          {
                            "description": "Default config input values of the workflow"
                          }
                        ]
                      },
                      "input_options": {
                        "allOf": [
                          {
                            "$ref": "#/components/schemas/InputOptionsSchema"
                          },
                          {
                            "nullable": true,
                            "description": "Input options of the workflow"
                          }
                        ]
                      },
                      "steps": {
                        "type": "array",
                        "items": {
                          "$ref": "#/components/schemas/StepSchema"
                        },
                        "description": "Steps of the workflow at the time this version was deployed"
                      }
                    },
                    "required": [
                      "key",
                      "input",
                      "input_default",
                      "input_options",
                      "steps"
                    ],
                    "description": "Draft version of the workflow"
                  },
                  "workflow_version": {
                    "type": "object",
                    "nullable": true,
                    "properties": {
                      "id": {
                        "type": "string",
                        "description": "Unique identifier for the workflow version"
                      },
                      "app_id": {
                        "type": "string",
                        "description": "App id where the workflow version belongs to"
                      },
                      "workflow_id": {
                        "type": "string",
                        "description": "Workflow id where the version belongs to"
                      },
                      "description": {
                        "type": "string",
                        "nullable": true,
                        "description": "Description of the workflow at the time this version was deployed"
                      },
                      "version": {
                        "type": "number",
                        "description": "Version number"
                      },
                      "rollback_version": {
                        "type": "number",
                        "description": "Version number from which this version was rolled back"
                      },
                      "notes": {
                        "type": "string",
                        "nullable": true,
                        "description": "Release notes"
                      },
                      "created_by": {
                        "$ref": "#/components/schemas/UserPublicSchema"
                      },
                      "created_at": {
                        "type": "string",
                        "nullable": true,
                        "description": "Date when the version was deployed",
                        "format": "date"
                      },
                      "key": {
                        "type": "string",
                        "description": "Unique key for the workflow version"
                      },
                      "input": {
                        "allOf": [
                          {
                            "$ref": "#/components/schemas/InputDefinitionSchema"
                          },
                          {
                            "description": "Input definition of the workflow"
                          }
                        ]
                      },
                      "input_default": {
                        "allOf": [
                          {
                            "$ref": "#/components/schemas/InputValuesSchema"
                          },
                          {
                            "description": "Default config input values of the workflow"
                          }
                        ]
                      },
                      "input_options": {
                        "allOf": [
                          {
                            "$ref": "#/components/schemas/InputOptionsSchema"
                          },
                          {
                            "nullable": true,
                            "description": "Input options of the workflow"
                          }
                        ]
                      },
                      "steps": {
                        "type": "array",
                        "items": {
                          "$ref": "#/components/schemas/StepSchema"
                        },
                        "description": "Steps of the workflow at the time this version was deployed"
                      }
                    },
                    "required": [
                      "id",
                      "app_id",
                      "workflow_id",
                      "description",
                      "version",
                      "notes",
                      "created_at",
                      "key",
                      "input",
                      "input_default",
                      "input_options",
                      "steps"
                    ],
                    "description": "Details of the workflow version used for the run"
                  },
                  "collection_id": {
                    "type": "string",
                    "description": "ID of the associated collection"
                  },
                  "record_id": {
                    "type": "string",
                    "description": "ID of the associated record"
                  },
                  "version": {
                    "type": "number",
                    "description": "Version number of the workflow"
                  },
                  "usage": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/CreditsRunUsageSchema"
                      },
                      {
                        "description": "Credits usage of the run"
                      }
                    ]
                  },
                  "retention": {
                    "$ref": "#/components/schemas/RunDataRetentionConfigSchema"
                  },
                  "retention_due_at": {
                    "type": "string",
                    "nullable": true,
                    "description": "Timestamp of when the run data retention policy will be applied",
                    "format": "date"
                  },
                  "created_at": {
                    "type": "string",
                    "nullable": true,
                    "description": "Timestamp of when the run was created",
                    "format": "date"
                  },
                  "updated_at": {
                    "type": "string",
                    "nullable": true,
                    "description": "Timestamp of when the run was last updated",
                    "format": "date"
                  }
                },
                "required": [
                  "id",
                  "input",
                  "output",
                  "status",
                  "origin",
                  "started_at",
                  "ended_at",
                  "app_id",
                  "workflow_app_id",
                  "workflow_id",
                  "workflow_version_draft",
                  "workflow_version",
                  "created_at",
                  "updated_at"
                ],
                "description": "Details of the rule execution workflow run"
              },
              "created_at": {
                "type": "string",
                "nullable": true,
                "description": "Timestamp when the record rule was created",
                "format": "date"
              },
              "updated_at": {
                "type": "string",
                "nullable": true,
                "description": "Timestamp when the record rule was last updated",
                "format": "date"
              }
            },
            "required": [
              "status",
              "key",
              "input",
              "run",
              "created_at",
              "updated_at"
            ]
          }
        ],
        "description": "Detailed information about a record rule"
      },
      "WorkflowVersionSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier for the workflow version"
          },
          "app_id": {
            "type": "string",
            "description": "App id where the workflow version belongs to"
          },
          "workflow_id": {
            "type": "string",
            "description": "Workflow id where the version belongs to"
          },
          "description": {
            "type": "string",
            "nullable": true,
            "description": "Description of the workflow at the time this version was deployed"
          },
          "version": {
            "type": "number",
            "description": "Version number"
          },
          "rollback_version": {
            "type": "number",
            "description": "Version number from which this version was rolled back"
          },
          "notes": {
            "type": "string",
            "nullable": true,
            "description": "Release notes"
          },
          "created_by": {
            "$ref": "#/components/schemas/UserPublicSchema"
          },
          "created_at": {
            "type": "string",
            "nullable": true,
            "description": "Date when the version was deployed",
            "format": "date"
          },
          "key": {
            "type": "string",
            "description": "Unique key for the workflow version"
          },
          "input": {
            "allOf": [
              {
                "$ref": "#/components/schemas/InputDefinitionSchema"
              },
              {
                "description": "Input definition of the workflow"
              }
            ]
          },
          "input_default": {
            "allOf": [
              {
                "$ref": "#/components/schemas/InputValuesSchema"
              },
              {
                "description": "Default config input values of the workflow"
              }
            ]
          },
          "input_options": {
            "allOf": [
              {
                "$ref": "#/components/schemas/InputOptionsSchema"
              },
              {
                "nullable": true,
                "description": "Input options of the workflow"
              }
            ]
          },
          "steps": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/StepSchema"
            },
            "description": "Steps of the workflow at the time this version was deployed"
          }
        },
        "required": [
          "id",
          "app_id",
          "workflow_id",
          "description",
          "version",
          "notes",
          "created_at",
          "key",
          "input",
          "input_default",
          "input_options",
          "steps"
        ],
        "description": "Information about the workflow version"
      },
      "ExtendedRuleSchema": {
        "allOf": [
          {
            "$ref": "#/components/schemas/RuleSchema"
          },
          {
            "type": "object",
            "properties": {
              "workflow": {
                "$ref": "#/components/schemas/WorkflowSchema"
              },
              "workflow_version": {
                "$ref": "#/components/schemas/WorkflowVersionSchema"
              }
            },
            "required": [
              "workflow",
              "workflow_version"
            ]
          }
        ],
        "description": "Detailed information about a rule with workflow details"
      },
      "ExtendedCollectionConfigSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier for the collection configuration"
          },
          "mappings": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CollectionConfigMappingSchema"
            },
            "description": "List of input field mappings of the collection"
          },
          "created_at": {
            "type": "string",
            "nullable": true,
            "description": "Timestamp when the configuration was created",
            "format": "date"
          },
          "updated_at": {
            "type": "string",
            "nullable": true,
            "description": "Timestamp when the configuration was last updated",
            "format": "date"
          },
          "rules": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ExtendedRuleSchema"
            },
            "description": "List of rules associated with the collection with workflow details"
          }
        },
        "required": [
          "id",
          "mappings",
          "created_at",
          "updated_at",
          "rules"
        ],
        "description": ""
      },
      "TriggerEntityDataSchema": {
        "type": "object",
        "properties": {},
        "description": "Data associated with the trigger entity"
      },
      "TriggerEntitySchema": {
        "type": "object",
        "nullable": true,
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier for the trigger entity"
          },
          "entity_id": {
            "type": "string",
            "description": "Unique identifier of the external source in the connected service"
          },
          "status": {
            "type": "string",
            "enum": [
              "SYNCED",
              "SYNCING"
            ],
            "description": "Current status of the trigger entity",
            "example": "SYNCED"
          },
          "type": {
            "type": "string",
            "enum": [
              "ENCOMPASS",
              "PERSONA"
            ],
            "description": "Type of the trigger",
            "example": "ENCOMPASS"
          },
          "trigger_id": {
            "type": "string",
            "nullable": true,
            "description": "Unique identifier of the associated trigger"
          },
          "record_id": {
            "type": "string",
            "nullable": true,
            "description": "Unique identifier of the record associated with the trigger entity"
          },
          "data": {
            "$ref": "#/components/schemas/TriggerEntityDataSchema"
          },
          "created_at": {
            "type": "string",
            "nullable": true,
            "description": "Timestamp of when the trigger entity was created",
            "format": "date"
          },
          "updated_at": {
            "type": "string",
            "nullable": true,
            "description": "Timestamp of when the trigger entity was last updated",
            "format": "date"
          }
        },
        "required": [
          "id",
          "entity_id",
          "status",
          "type",
          "trigger_id",
          "record_id",
          "data",
          "created_at",
          "updated_at"
        ],
        "description": "Detailed information about a trigger entity"
      },
      "ExtendedRecordSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier for the record"
          },
          "name": {
            "type": "string",
            "nullable": true,
            "description": "Name of the record",
            "example": "Important Record"
          },
          "status": {
            "type": "string",
            "enum": [
              "DRAFT",
              "QUEUED",
              "RUNNING",
              "CANCELLED",
              "COMPLETED",
              "FAILED"
            ],
            "description": "Current status of the record",
            "example": "COMPLETED"
          },
          "source": {
            "type": "string",
            "enum": [
              "APP",
              "API",
              "TRIGGER",
              "WORKFLOW"
            ],
            "description": "Source from which the record was created",
            "example": "API"
          },
          "usage": {
            "$ref": "#/components/schemas/CreditsRecordUsageSchema"
          },
          "rules_count": {
            "type": "number",
            "description": "Total number of rules of this record"
          },
          "rules_pass_count": {
            "type": "number",
            "description": "Number of passed rules"
          },
          "rules_fail_count": {
            "type": "number",
            "description": "Number of failed rules"
          },
          "rules_warn_count": {
            "type": "number",
            "description": "Number of rules with warnings"
          },
          "rules": {
            "type": "object",
            "additionalProperties": {
              "$ref": "#/components/schemas/RecordRuleSchema"
            },
            "description": "Rules associated with this record"
          },
          "collection_name": {
            "type": "string",
            "description": "Name of the collection this record belongs to"
          },
          "collection_id": {
            "type": "string",
            "description": "Unique identifier of the collection this record belongs to",
            "example": "col_xxx"
          },
          "created_by": {
            "allOf": [
              {
                "$ref": "#/components/schemas/UserPublicSchema"
              },
              {
                "nullable": true,
                "description": "User who created this record",
                "example": {
                  "id": "user_xxx",
                  "name": "John Doe"
                }
              }
            ]
          },
          "tags": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TagSchema"
            },
            "description": "Tags associated with this record"
          },
          "created_at": {
            "type": "string",
            "nullable": true,
            "description": "Timestamp when the record was created",
            "format": "date"
          },
          "updated_at": {
            "type": "string",
            "nullable": true,
            "description": "Timestamp when the record was last updated",
            "format": "date"
          },
          "link": {
            "type": "string",
            "description": "Link to the record in the UI"
          },
          "config": {
            "$ref": "#/components/schemas/ExtendedCollectionConfigSchema"
          },
          "entity": {
            "$ref": "#/components/schemas/TriggerEntitySchema"
          }
        },
        "required": [
          "id",
          "name",
          "status",
          "source",
          "rules_count",
          "rules_pass_count",
          "rules_fail_count",
          "rules_warn_count",
          "rules",
          "collection_name",
          "collection_id",
          "created_by",
          "tags",
          "created_at",
          "updated_at",
          "link",
          "config",
          "entity"
        ],
        "description": "Detailed information about a record with the details of the trigger entity and collection configuration"
      },
      "UploadAppFileSchema": {
        "type": "object",
        "properties": {
          "file": {
            "anyOf": [
              {
                "type": "string",
                "format": "binary"
              },
              {
                "$ref": "#/components/schemas/FileDataSchema"
              },
              {
                "type": "string"
              }
            ],
            "description": "File to be uploaded. It can be a file object, a base64 encoded string, or a file data object containing base64 data, name, and type."
          },
          "file_url": {
            "type": "string",
            "description": "URL of the file to be uploaded",
            "example": "https://example.com/files/document.pdf"
          }
        }
      },
      "ConversationSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "title": {
            "type": "string",
            "nullable": true,
            "description": "The title of the conversation"
          },
          "model": {
            "type": "string",
            "description": "The model used for the conversation"
          },
          "app": {
            "allOf": [
              {
                "$ref": "#/components/schemas/AppPublicSchema"
              },
              {
                "nullable": true,
                "description": "The app that this conversation belongs to"
              }
            ]
          },
          "members": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/UserPublicSchema"
            },
            "description": "The members of the conversation"
          },
          "status": {
            "type": "string",
            "enum": [
              "RUNNING",
              "COMPLETED",
              "FAILED",
              "CANCELLED"
            ],
            "description": "The status of the conversation"
          },
          "created_at": {
            "type": "string",
            "nullable": true,
            "format": "date"
          },
          "updated_at": {
            "type": "string",
            "nullable": true,
            "format": "date"
          }
        },
        "required": [
          "id",
          "title",
          "model",
          "app",
          "members",
          "status",
          "created_at",
          "updated_at"
        ]
      },
      "ModelMessageRoleSchema": {
        "type": "string",
        "enum": [
          "user",
          "assistant",
          "system",
          "tool"
        ],
        "description": "The role of the message"
      },
      "ConversationMessageSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "role": {
            "$ref": "#/components/schemas/ModelMessageRoleSchema"
          },
          "model": {
            "type": "string",
            "description": "The model used for the message"
          },
          "message": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ModelMessageSchema"
              },
              {
                "description": "The message content"
              }
            ]
          },
          "message_output": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RunStepOutputSchema"
              },
              {
                "description": "The full message output"
              }
            ]
          },
          "user": {
            "allOf": [
              {
                "$ref": "#/components/schemas/UserPublicSchema"
              },
              {
                "description": "The members of the conversation"
              }
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "RUNNING",
              "COMPLETED",
              "FAILED",
              "CANCELLED"
            ],
            "description": "The status of the message"
          },
          "created_at": {
            "type": "string",
            "nullable": true,
            "format": "date"
          },
          "updated_at": {
            "type": "string",
            "nullable": true,
            "format": "date"
          }
        },
        "required": [
          "id",
          "role",
          "model",
          "status",
          "created_at",
          "updated_at"
        ],
        "description": "The conversation message schema"
      },
      "RunStepOutputChunkSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier for the call"
          },
          "status": {
            "type": "string",
            "enum": [
              "PENDING",
              "RUNNING",
              "CANCELLED",
              "COMPLETED",
              "SKIPPED",
              "FAILED"
            ],
            "description": "Status of the call"
          },
          "index": {
            "type": "number"
          },
          "key": {
            "type": "string",
            "description": "Key of the step run",
            "example": "STEP_1"
          },
          "type": {
            "$ref": "#/components/schemas/StepTypeSchema"
          },
          "output": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/StepWorkflowOutputSchema"
              },
              {
                "$ref": "#/components/schemas/StepWorkflowRecordOutputSchema"
              },
              {
                "$ref": "#/components/schemas/StepBranchConditionOutputSchema"
              },
              {
                "$ref": "#/components/schemas/StepCodeOutputSchema"
              },
              {
                "$ref": "#/components/schemas/StepModelOutputSchema"
              },
              {
                "$ref": "#/components/schemas/StepHttpRequestOutputSchema"
              },
              {
                "$ref": "#/components/schemas/StepBrowserOutputSchema"
              },
              {
                "$ref": "#/components/schemas/StepServiceOutputSchema"
              },
              {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/StepOutputSchema"
                }
              },
              {
                "nullable": true
              }
            ],
            "description": "Output of the step run"
          },
          "logs": {
            "$ref": "#/components/schemas/RuntimeLogs"
          },
          "start": {
            "type": "number",
            "description": "Timestamp of when the step run started"
          },
          "end": {
            "type": "number",
            "description": "Timestamp of when the step run ended"
          },
          "error": {
            "type": "string",
            "description": "Error message if the step run failed"
          },
          "calls": {
            "$ref": "#/components/schemas/RunStepOutputCallsSchema"
          }
        },
        "required": [
          "status",
          "key",
          "start"
        ]
      },
      "ConversationEventSchema": {
        "oneOf": [
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "create"
                ]
              },
              "data": {
                "$ref": "#/components/schemas/ConversationSchema"
              },
              "identifier": {
                "type": "string",
                "nullable": true
              }
            },
            "required": [
              "type",
              "data",
              "identifier"
            ]
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "update"
                ]
              },
              "data": {
                "$ref": "#/components/schemas/ConversationSchema"
              }
            },
            "required": [
              "type",
              "data"
            ]
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "delete"
                ]
              },
              "conversation_id": {
                "type": "string"
              }
            },
            "required": [
              "type",
              "conversation_id"
            ]
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "message"
                ]
              },
              "conversation_id": {
                "type": "string"
              },
              "data": {
                "$ref": "#/components/schemas/ConversationMessageSchema"
              }
            },
            "required": [
              "type",
              "conversation_id",
              "data"
            ]
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "message-step"
                ]
              },
              "conversation_id": {
                "type": "string"
              },
              "message_id": {
                "type": "string"
              },
              "data": {
                "$ref": "#/components/schemas/RunStepOutputSchema"
              }
            },
            "required": [
              "type",
              "conversation_id",
              "message_id",
              "data"
            ]
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "message-chunk"
                ]
              },
              "conversation_id": {
                "type": "string"
              },
              "message_id": {
                "type": "string"
              },
              "data": {
                "$ref": "#/components/schemas/RunStepOutputChunkSchema"
              }
            },
            "required": [
              "type",
              "conversation_id",
              "message_id",
              "data"
            ]
          }
        ]
      },
      "ConversationMessageContentsSchema": {
        "type": "array",
        "items": {
          "$ref": "#/components/schemas/ModelUserMessageContentSchema"
        },
        "minItems": 1,
        "description": "The user message to open the conversation with"
      },
      "CreateConversationSchema": {
        "type": "object",
        "properties": {
          "identifier": {
            "type": "string",
            "maxLength": 256,
            "description": "Conversation identifier to be used in the create event (used in websockets)"
          },
          "title": {
            "type": "string",
            "nullable": true,
            "description": "The title of the conversation"
          },
          "model": {
            "type": "string",
            "description": "The model used for the conversation"
          },
          "message": {
            "$ref": "#/components/schemas/ConversationMessageContentsSchema"
          }
        }
      },
      "UpdateConversationSchema": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string",
            "nullable": true,
            "description": "The title of the conversation"
          },
          "model": {
            "type": "string",
            "description": "The model used for the conversation"
          }
        },
        "description": "The conversation update schema"
      },
      "CreateConversationMessageSchema": {
        "type": "object",
        "properties": {
          "message": {
            "$ref": "#/components/schemas/ConversationMessageContentsSchema"
          }
        },
        "required": [
          "message"
        ],
        "description": "The user message"
      },
      "ValidateStepSchema": {
        "type": "object",
        "properties": {
          "step": {
            "allOf": [
              {
                "$ref": "#/components/schemas/StepSchema"
              },
              {
                "description": "Step schema to validate"
              }
            ]
          }
        },
        "required": [
          "step"
        ]
      },
      "ValidateInputSchema": {
        "type": "object",
        "properties": {
          "input": {
            "$ref": "#/components/schemas/InputDefinitionSchema"
          }
        },
        "required": [
          "input"
        ],
        "description": "Input schema to validate"
      },
      "CreateAppSchema": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 2,
            "maxLength": 64
          }
        },
        "required": [
          "name"
        ]
      },
      "AppPhoneNumberResponseSchema": {
        "type": "object",
        "properties": {
          "code": {
            "type": "number",
            "description": "Verification code sent via SMS"
          }
        },
        "required": [
          "code"
        ]
      },
      "VerifyAppPhoneNumberSchema": {
        "type": "object",
        "properties": {
          "number": {
            "type": "string",
            "pattern": "^\\+?[0-9]{8,15}$",
            "description": "Phone number of the app to verify"
          }
        },
        "required": [
          "number"
        ]
      },
      "ConfirmAppPhoneNumberSchema": {
        "type": "object",
        "properties": {
          "number": {
            "type": "string",
            "pattern": "^\\+?[0-9]{8,15}$",
            "description": "Phone number of the app to verify"
          },
          "code": {
            "type": "number",
            "description": "Verification code received via SMS"
          }
        },
        "required": [
          "number",
          "code"
        ]
      },
      "AppKeySchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier for the API key"
          },
          "name": {
            "type": "string",
            "nullable": true,
            "description": "Name of the API key"
          },
          "token": {
            "type": "string",
            "description": "API Key"
          },
          "owner_id": {
            "type": "string",
            "description": "Identifier of the owner of the API key"
          },
          "created_at": {
            "type": "string",
            "nullable": true,
            "description": "Timestamp when the API key was created",
            "format": "date"
          },
          "updated_at": {
            "type": "string",
            "nullable": true,
            "description": "Timestamp when the API key was last updated",
            "format": "date"
          }
        },
        "required": [
          "id",
          "name",
          "token",
          "owner_id",
          "created_at",
          "updated_at"
        ],
        "description": "Detailed information about an app key (API key)"
      },
      "UpdateAppKeySchema": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true,
            "minLength": 1,
            "maxLength": 64
          }
        }
      },
      "UpdateAppMemberSchema": {
        "type": "object",
        "properties": {
          "role": {
            "type": "string",
            "enum": [
              "ADMIN",
              "DEVELOPER",
              "STAFF",
              "MEMBER",
              "PARTNER"
            ]
          }
        }
      },
      "AppInvitePublicSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier for the invite"
          },
          "app_id": {
            "type": "string",
            "description": "Unique identifier for the app"
          },
          "app_name": {
            "type": "string",
            "description": "Name of the app"
          },
          "email": {
            "type": "string",
            "maxLength": 64,
            "format": "email",
            "description": "Email address of the invitee"
          },
          "role": {
            "type": "string",
            "enum": [
              "ADMIN",
              "DEVELOPER",
              "STAFF",
              "MEMBER",
              "PARTNER"
            ],
            "description": "Role assigned to the invitee"
          },
          "created_at": {
            "type": "string",
            "nullable": true,
            "description": "Timestamp when the invite was created",
            "format": "date"
          }
        },
        "required": [
          "id",
          "app_id",
          "app_name",
          "email",
          "role",
          "created_at"
        ],
        "description": "Public information about an app invite"
      },
      "AppInviteSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier for the invite"
          },
          "email": {
            "type": "string",
            "maxLength": 64,
            "format": "email",
            "description": "Email address of the invitee"
          },
          "role": {
            "type": "string",
            "enum": [
              "ADMIN",
              "DEVELOPER",
              "STAFF",
              "MEMBER",
              "PARTNER"
            ],
            "description": "Role assigned to the invitee"
          },
          "created_at": {
            "type": "string",
            "nullable": true,
            "description": "Timestamp when the invite was created",
            "format": "date"
          }
        },
        "required": [
          "id",
          "email",
          "role",
          "created_at"
        ],
        "description": "Detailed information about an app invite"
      },
      "CreateAppInviteSchema": {
        "type": "object",
        "properties": {
          "email": {
            "type": "string",
            "format": "email"
          },
          "role": {
            "type": "string",
            "enum": [
              "ADMIN",
              "DEVELOPER",
              "STAFF",
              "MEMBER",
              "PARTNER"
            ]
          },
          "source": {
            "type": "string",
            "description": "Source of the invite: \"workspace\" for Cortex Workspace, omit for Cortex App"
          }
        },
        "required": [
          "email",
          "role"
        ]
      },
      "AppInviteLinkPublicSchema": {
        "type": "object",
        "properties": {
          "app_id": {
            "type": "string",
            "description": "Unique identifier for the app"
          },
          "app_name": {
            "type": "string",
            "description": "Name of the app"
          },
          "role": {
            "type": "string",
            "enum": [
              "ADMIN",
              "DEVELOPER",
              "STAFF",
              "MEMBER",
              "PARTNER"
            ],
            "description": "Role that will be granted to the joiner"
          }
        },
        "required": [
          "app_id",
          "app_name",
          "role"
        ],
        "description": "Public preview shown to users before they join an app"
      },
      "AppFileNullableSchema": {
        "type": "object",
        "nullable": true,
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier for the file"
          },
          "file_id": {
            "type": "string",
            "description": "File identifier used in the storage system"
          },
          "file_filename": {
            "type": "string",
            "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",
            "description": "MIME type of the file",
            "example": "application/pdf"
          },
          "file_url": {
            "type": "string",
            "description": "URL to access the file"
          },
          "file_format": {
            "type": "string",
            "enum": [
              "DOCUMENT",
              "TEXT"
            ],
            "description": "Format of the file",
            "example": "DOCUMENT"
          },
          "file_status": {
            "type": "string",
            "enum": [
              "PROCESSING",
              "PROCESSED",
              "FAILED"
            ],
            "description": "Current status of the file",
            "example": "PROCESSED"
          },
          "file_status_message": {
            "type": "string",
            "description": "Status message providing additional information about the file status"
          },
          "document": {
            "$ref": "#/components/schemas/DocumentSchema"
          },
          "document_extract_contents": {
            "type": "boolean",
            "description": "Flag indicating whether to extract contents from the document"
          },
          "document_extract_images": {
            "type": "boolean",
            "description": "Flag indicating whether to extract images from the document"
          },
          "document_extract_pages": {
            "type": "boolean",
            "description": "Flag indicating whether to extract pages from the document"
          },
          "document_pages": {
            "type": "array",
            "items": {
              "type": "number"
            },
            "maxItems": 1024,
            "description": "Array of page numbers to extract from the document",
            "example": [
              1,
              2,
              3
            ]
          },
          "document_progress": {
            "type": "number",
            "description": "Progress of the document extraction process"
          },
          "storage": {
            "$ref": "#/components/schemas/AppFileStorageSchema"
          },
          "created_at": {
            "type": "string",
            "nullable": true,
            "description": "Timestamp when the file was created",
            "format": "date"
          }
        },
        "required": [
          "id",
          "file_id",
          "file_filename",
          "file_size",
          "file_mimetype",
          "file_url",
          "created_at"
        ],
        "description": "The file associated with the upload, if available"
      },
      "AppFileUploadMetadata": {
        "type": "object",
        "nullable": true,
        "additionalProperties": {
          "nullable": true
        },
        "description": "Custom metadata for the uploaded file as key-value pairs (Max 2KB)"
      },
      "AppFileUploadSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier for the uploaded file"
          },
          "region": {
            "type": "string",
            "description": "Region on R2/Cloudflare",
            "example": "european-union"
          },
          "bucket": {
            "type": "string",
            "description": "Storage bucket for the file",
            "example": "cortex-eu"
          },
          "future_file_id": {
            "type": "string",
            "description": "Future file ID for the uploaded file"
          },
          "file": {
            "$ref": "#/components/schemas/AppFileNullableSchema"
          },
          "upload_url": {
            "type": "string",
            "description": "URL to upload the file"
          },
          "expires_at": {
            "type": "string",
            "nullable": true,
            "description": "Timestamp when the uploaded file will expire",
            "format": "date"
          },
          "metadata": {
            "$ref": "#/components/schemas/AppFileUploadMetadata"
          },
          "allowed_types": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FileAllowedTypesSchema"
              },
              {
                "nullable": true
              }
            ]
          },
          "document_extract_contents": {
            "type": "boolean",
            "description": "Whether to extract contents from the document. If true, the file will be processed and contents extracted."
          },
          "document_extract_images": {
            "type": "boolean",
            "description": "Whether to extract images from the document. If true, images will be extracted."
          },
          "document_pages": {
            "type": "array",
            "nullable": true,
            "items": {
              "type": "number"
            },
            "maxItems": 1024,
            "description": "Array of page numbers to extract from the document",
            "example": [
              1,
              2,
              3
            ]
          },
          "storage": {
            "$ref": "#/components/schemas/AppFileStorageSchema"
          },
          "visibility": {
            "$ref": "#/components/schemas/AppFileVisibilitySchema"
          },
          "created_at": {
            "type": "string",
            "nullable": true,
            "description": "Timestamp when the uploaded file was created",
            "format": "date"
          },
          "updated_at": {
            "type": "string",
            "nullable": true,
            "description": "Timestamp when the uploaded file was last updated",
            "format": "date"
          }
        },
        "required": [
          "id",
          "future_file_id",
          "file",
          "upload_url",
          "expires_at",
          "document_pages",
          "storage",
          "visibility",
          "created_at",
          "updated_at"
        ],
        "description": "Uploaded file information"
      },
      "CreateAppFileUploadSchema": {
        "type": "object",
        "properties": {
          "allowed_types": {
            "$ref": "#/components/schemas/FileAllowedTypesSchema"
          },
          "region": {
            "type": "string",
            "description": "Region on R2/Cloudflare where the file will be stored",
            "example": "european-union",
            "enum": [
              "auto",
              "north-america",
              "european-union"
            ]
          },
          "bucket": {
            "type": "string",
            "description": "Storage bucket where the file will be stored",
            "example": "cortex-eu",
            "enum": [
              "dev-cortex",
              "cortex",
              "cortex-eu",
              "cortex-dev-eu",
              "devbucket"
            ]
          },
          "document_extract_contents": {
            "type": "boolean",
            "description": "Whether to extract contents from the document. If true, the file will be processed and contents extracted."
          },
          "document_extract_images": {
            "type": "boolean",
            "description": "Whether to extract images from the document. If true, images will be extracted."
          },
          "document_pages": {
            "type": "array",
            "items": {
              "type": "number"
            },
            "maxItems": 1024,
            "description": "Array of page numbers to extract from the document",
            "example": [
              1,
              2,
              3
            ]
          },
          "expires_in_seconds": {
            "type": "number",
            "minimum": 1,
            "maximum": 315360000,
            "description": "Timestamp when the uploaded file will expire. By default, it is set to 30 days",
            "example": 3600
          },
          "visibility": {
            "$ref": "#/components/schemas/AppFileVisibilitySchema"
          },
          "storage": {
            "$ref": "#/components/schemas/AppFileStorageSchema"
          },
          "metadata": {
            "$ref": "#/components/schemas/AppFileUploadMetadata"
          }
        },
        "description": "Create a new file upload"
      },
      "UpdateAppFileUploadSchema": {
        "type": "object",
        "properties": {
          "metadata": {
            "$ref": "#/components/schemas/AppFileUploadMetadata"
          }
        },
        "description": "Update an existing file upload"
      },
      "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"
      },
      "CreateAppFileSchema": {
        "type": "object",
        "properties": {
          "file": {
            "anyOf": [
              {
                "type": "string",
                "format": "binary"
              },
              {
                "$ref": "#/components/schemas/FileDataSchema"
              },
              {
                "type": "string"
              }
            ],
            "description": "File to be uploaded. It can be a file object, a base64 encoded string, or a file data object containing base64 data, name, and type."
          },
          "file_url": {
            "type": "string",
            "description": "URL of the file to be uploaded",
            "example": "https://example.com/files/document.pdf"
          },
          "allowed_types": {
            "$ref": "#/components/schemas/FileAllowedTypesSchema"
          },
          "document_extract_contents": {
            "type": "boolean",
            "description": "Flag indicating whether to extract contents from the document",
            "example": false
          },
          "document_extract_images": {
            "type": "boolean",
            "description": "Flag indicating whether to extract images from the document",
            "example": false
          },
          "document_extract_pages": {
            "type": "boolean",
            "description": "Flag indicating whether to extract pages from the document",
            "example": false
          },
          "document_pages": {
            "type": "array",
            "items": {
              "type": "number"
            },
            "maxItems": 1024,
            "description": "Array of page numbers to extract from the document",
            "example": [
              1,
              2,
              3
            ]
          },
          "document_max_pages": {
            "type": "number",
            "minimum": 1,
            "description": "Maximum number of pages to extract from the document",
            "example": 10
          },
          "storage": {
            "$ref": "#/components/schemas/AppFileStorageSchema"
          },
          "visibility": {
            "$ref": "#/components/schemas/FileVisibilitySchema"
          },
          "bucket": {
            "type": "string",
            "description": "Storage bucket for the file",
            "example": "cortex-eu"
          },
          "region": {
            "type": "string",
            "description": "Region on R2/cloudflare",
            "example": "cortex-eu"
          }
        }
      },
      "ShareSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "kind": {
            "type": "string",
            "enum": [
              "LIVE",
              "SKILL"
            ]
          },
          "visibility": {
            "type": "string",
            "enum": [
              "UNLISTED"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "UPLOADING",
              "LIVE",
              "UNPUBLISHED"
            ]
          },
          "slug": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "content_sha256": {
            "type": "string"
          },
          "current_version": {
            "type": "number"
          },
          "share_url": {
            "type": "string"
          },
          "content_base_url": {
            "type": "string",
            "nullable": true
          },
          "package_url": {
            "type": "string",
            "nullable": true
          },
          "created_at": {
            "type": "string",
            "nullable": true,
            "format": "date"
          },
          "updated_at": {
            "type": "string",
            "nullable": true,
            "format": "date"
          },
          "unpublished_at": {
            "type": "string",
            "nullable": true,
            "format": "date"
          }
        },
        "required": [
          "id",
          "kind",
          "visibility",
          "status",
          "slug",
          "title",
          "description",
          "content_sha256",
          "current_version",
          "share_url",
          "content_base_url",
          "package_url",
          "created_at",
          "updated_at",
          "unpublished_at"
        ]
      },
      "ShareUploadSchema": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string"
          },
          "key": {
            "type": "string"
          },
          "url": {
            "type": "string"
          },
          "content_type": {
            "type": "string"
          }
        },
        "required": [
          "path",
          "key",
          "url",
          "content_type"
        ]
      },
      "ShareCreatedSchema": {
        "allOf": [
          {
            "$ref": "#/components/schemas/ShareSchema"
          },
          {
            "type": "object",
            "properties": {
              "version": {
                "type": "number"
              },
              "uploads": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/ShareUploadSchema"
                }
              }
            },
            "required": [
              "version",
              "uploads"
            ]
          }
        ]
      },
      "ShareManifestFileSchema": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512
          },
          "size": {
            "type": "integer",
            "minimum": 0
          },
          "content_type": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "sha256": {
            "type": "string",
            "minLength": 64,
            "maxLength": 64
          }
        },
        "required": [
          "path",
          "size",
          "content_type"
        ]
      },
      "CreateShareSchema": {
        "type": "object",
        "properties": {
          "kind": {
            "type": "string",
            "enum": [
              "LIVE",
              "SKILL"
            ]
          },
          "title": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "description": {
            "type": "string",
            "maxLength": 512
          },
          "content_sha256": {
            "type": "string",
            "minLength": 64,
            "maxLength": 64
          },
          "files": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ShareManifestFileSchema"
            },
            "minItems": 1
          }
        },
        "required": [
          "kind",
          "title",
          "content_sha256",
          "files"
        ]
      },
      "CompleteShareSchema": {
        "type": "object",
        "properties": {
          "version": {
            "type": "integer",
            "minimum": 0,
            "exclusiveMinimum": true
          }
        }
      },
      "CreateShareVersionSchema": {
        "type": "object",
        "properties": {
          "content_sha256": {
            "type": "string",
            "minLength": 64,
            "maxLength": 64
          },
          "files": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ShareManifestFileSchema"
            },
            "minItems": 1
          }
        },
        "required": [
          "content_sha256",
          "files"
        ]
      },
      "PublicShareSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "kind": {
            "type": "string",
            "enum": [
              "LIVE",
              "SKILL"
            ]
          },
          "slug": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "content_sha256": {
            "type": "string"
          },
          "share_url": {
            "type": "string"
          },
          "content_base_url": {
            "type": "string",
            "nullable": true
          },
          "package_url": {
            "type": "string",
            "nullable": true
          },
          "files": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ShareManifestFileSchema"
            }
          }
        },
        "required": [
          "id",
          "kind",
          "slug",
          "title",
          "description",
          "content_sha256",
          "share_url",
          "content_base_url",
          "package_url",
          "files"
        ]
      },
      "UsageFilesGroupSchema": {
        "type": "object",
        "properties": {
          "date": {
            "type": "string",
            "nullable": true,
            "description": "Date for the grouped files",
            "format": "date"
          },
          "count": {
            "type": "number",
            "description": "Number of files in this group"
          },
          "total_file_size": {
            "type": "number",
            "description": "Total file size in bytes across all files in this group"
          }
        },
        "required": [
          "date",
          "count",
          "total_file_size"
        ]
      },
      "UsageFilesMemberGroupSchema": {
        "type": "object",
        "properties": {
          "user_id": {
            "type": "string",
            "description": "User ID for this member"
          },
          "user_name": {
            "type": "string",
            "nullable": true,
            "description": "Display name for this member"
          },
          "user_email": {
            "type": "string",
            "description": "Email address for this member"
          },
          "groups": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/UsageFilesGroupSchema"
            },
            "description": "Array of file groups by date for this member"
          },
          "totals": {
            "type": "object",
            "properties": {
              "count": {
                "type": "number",
                "description": "Total count of files for this member"
              },
              "total_file_size": {
                "type": "number",
                "description": "Total file size in bytes for this member"
              }
            },
            "required": [
              "count",
              "total_file_size"
            ]
          }
        },
        "required": [
          "user_id",
          "user_name",
          "user_email",
          "groups",
          "totals"
        ]
      },
      "UsageFilesGroupsResponseSchema": {
        "type": "object",
        "properties": {
          "groups": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/UsageFilesGroupSchema"
            },
            "description": "Array of file groups by date (normal mode)"
          },
          "members": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/UsageFilesMemberGroupSchema"
            },
            "description": "Array of per-member file groups (group_by_member mode)"
          },
          "totals": {
            "type": "object",
            "properties": {
              "count": {
                "type": "number",
                "description": "Total count of files across all groups"
              },
              "total_file_size": {
                "type": "number",
                "description": "Total file size in bytes across all files"
              }
            },
            "required": [
              "count",
              "total_file_size"
            ]
          }
        },
        "required": [
          "totals"
        ]
      },
      "CreateFileEventSchema": {
        "type": "object",
        "properties": {
          "file_size": {
            "type": "number",
            "description": "Size of the uploaded file in bytes"
          },
          "created_at": {
            "type": "string",
            "description": "ISO timestamp when the file was created"
          }
        },
        "required": [
          "file_size",
          "created_at"
        ]
      },
      "CreateFileEventsSchema": {
        "type": "array",
        "items": {
          "$ref": "#/components/schemas/CreateFileEventSchema"
        }
      },
      "UsageMessagesGroupSchema": {
        "type": "object",
        "properties": {
          "date": {
            "type": "string",
            "nullable": true,
            "description": "Date for the grouped messages",
            "format": "date"
          },
          "count": {
            "type": "number",
            "description": "Number of messages in this group"
          }
        },
        "required": [
          "date",
          "count"
        ]
      },
      "UsageMessagesMemberGroupSchema": {
        "type": "object",
        "properties": {
          "user_id": {
            "type": "string",
            "description": "User ID for this member"
          },
          "user_name": {
            "type": "string",
            "nullable": true,
            "description": "Display name for this member"
          },
          "user_email": {
            "type": "string",
            "description": "Email address for this member"
          },
          "groups": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/UsageMessagesGroupSchema"
            },
            "description": "Array of message groups by date for this member"
          },
          "totals": {
            "type": "object",
            "properties": {
              "count": {
                "type": "number",
                "description": "Total count of messages for this member"
              }
            },
            "required": [
              "count"
            ]
          }
        },
        "required": [
          "user_id",
          "user_name",
          "user_email",
          "groups",
          "totals"
        ]
      },
      "UsageMessagesGroupsResponseSchema": {
        "type": "object",
        "properties": {
          "groups": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/UsageMessagesGroupSchema"
            },
            "description": "Array of message groups by date (normal mode)"
          },
          "members": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/UsageMessagesMemberGroupSchema"
            },
            "description": "Array of per-member message groups (group_by_member mode)"
          },
          "totals": {
            "type": "object",
            "properties": {
              "count": {
                "type": "number",
                "description": "Total count of messages across all groups"
              }
            },
            "required": [
              "count"
            ]
          }
        },
        "required": [
          "totals"
        ]
      },
      "PaymentsWsEventSchema": {
        "oneOf": [
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "balance-updated"
                ]
              },
              "data": {
                "$ref": "#/components/schemas/PaymentsBalanceSchema"
              }
            },
            "required": [
              "type",
              "data"
            ]
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "invoice-updated"
                ]
              },
              "data": {
                "$ref": "#/components/schemas/PaymentInvoiceSchema"
              }
            },
            "required": [
              "type",
              "data"
            ]
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "invoice-created"
                ]
              },
              "data": {
                "$ref": "#/components/schemas/PaymentInvoiceSchema"
              }
            },
            "required": [
              "type",
              "data"
            ]
          }
        ]
      },
      "UpdateAutoReloadSchema": {
        "type": "object",
        "properties": {
          "enabled": {
            "type": "boolean",
            "description": "Flag to enable/disable auto reload"
          },
          "balance_threshold": {
            "type": "number",
            "minimum": 1,
            "maximum": 500,
            "description": "Balance threshold to auto reload credits"
          },
          "balance_limit": {
            "type": "number",
            "minimum": 5,
            "maximum": 2000,
            "description": "Balance of credits to auto reload"
          }
        }
      },
      "UpdatePaymentsBalanceSchema": {
        "type": "object",
        "properties": {
          "auto_reload": {
            "$ref": "#/components/schemas/UpdateAutoReloadSchema"
          },
          "current_payment_method_id": {
            "type": "string",
            "nullable": true,
            "description": "Identifier of the current payment method"
          }
        }
      },
      "AddFundsToPaymentsBalanceSchema": {
        "type": "object",
        "properties": {
          "amount": {
            "type": "number",
            "minimum": 1,
            "maximum": 5000,
            "description": "Amount to add to the balance"
          }
        },
        "required": [
          "amount"
        ]
      },
      "CreatePaymentMethodFromExternalIdSchema": {
        "type": "object",
        "properties": {
          "external_id": {
            "type": "string",
            "description": "Unique identifier for the payment method in the payments provider system"
          }
        },
        "required": [
          "external_id"
        ]
      },
      "PaymentsTransactionsGroupSchema": {
        "type": "object",
        "properties": {
          "credits": {
            "type": "number",
            "description": "Legacy workflow-step credits of the transactions group (not the billing display unit)"
          },
          "amount": {
            "type": "number",
            "description": "Total amount of the transactions group"
          },
          "spend_credits": {
            "type": "number",
            "description": "Spend of the group in billing display credits (120 credits = $1). Mirrors `amount`, which stays authoritative."
          },
          "date": {
            "type": "string",
            "nullable": true,
            "description": "Date in which the transactions are grouped by",
            "format": "date"
          },
          "count": {
            "type": "number",
            "description": "Transactions count in the group"
          }
        },
        "required": [
          "credits",
          "amount",
          "date",
          "count"
        ]
      },
      "CreditUsageMemberGroupSchema": {
        "type": "object",
        "properties": {
          "user_id": {
            "type": "string",
            "description": "User ID (or \"deleted\" for deleted accounts)"
          },
          "user_name": {
            "type": "string",
            "description": "User display name"
          },
          "user_email": {
            "type": "string",
            "description": "User email"
          },
          "groups": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PaymentsTransactionsGroupSchema"
            },
            "description": "Credit usage groups by date for this member"
          },
          "totals": {
            "type": "object",
            "properties": {
              "credits": {
                "type": "number"
              },
              "amount": {
                "type": "number"
              },
              "count": {
                "type": "number"
              },
              "spend_credits": {
                "type": "number"
              }
            },
            "required": [
              "credits",
              "amount",
              "count"
            ]
          }
        },
        "required": [
          "user_id",
          "user_name",
          "user_email",
          "groups",
          "totals"
        ]
      },
      "QueryPaymentsTransactionsGroupsResponseSchema": {
        "type": "object",
        "properties": {
          "groups": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PaymentsTransactionsGroupSchema"
            },
            "description": "Credit usage groups by date (normal mode)"
          },
          "members": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CreditUsageMemberGroupSchema"
            },
            "description": "Per-member credit usage groups (group_by_member mode)"
          },
          "totals": {
            "type": "object",
            "properties": {
              "credits": {
                "type": "number",
                "description": "Sum of the credits of all groups"
              },
              "amount": {
                "type": "number",
                "description": "Sum of the amount of all groups"
              },
              "count": {
                "type": "number",
                "description": "Total transaction count"
              },
              "spend_credits": {
                "type": "number",
                "description": "Total spend in billing display credits (120 credits = $1). Mirrors `amount`, which stays authoritative."
              }
            },
            "required": [
              "credits",
              "amount"
            ]
          }
        },
        "required": [
          "totals"
        ]
      },
      "CollectionConfigSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier for the collection configuration"
          },
          "rules": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RuleSchema"
            },
            "description": "List of rules associated with the collection"
          },
          "mappings": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CollectionConfigMappingSchema"
            },
            "description": "List of input field mappings of the collection"
          },
          "created_at": {
            "type": "string",
            "nullable": true,
            "description": "Timestamp when the configuration was created",
            "format": "date"
          },
          "updated_at": {
            "type": "string",
            "nullable": true,
            "description": "Timestamp when the configuration was last updated",
            "format": "date"
          }
        },
        "required": [
          "id",
          "rules",
          "mappings",
          "created_at",
          "updated_at"
        ],
        "description": "Configuration of the collection this record belongs to"
      },
      "LimitedTriggerEntitySchema": {
        "type": "object",
        "nullable": true,
        "properties": {
          "id": {
            "type": "string"
          },
          "entity_id": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": [
              "SYNCED",
              "SYNCING"
            ]
          },
          "type": {
            "type": "string",
            "enum": [
              "ENCOMPASS",
              "PERSONA"
            ]
          },
          "trigger_id": {
            "type": "string",
            "nullable": true
          },
          "record_id": {
            "type": "string",
            "nullable": true
          },
          "created_at": {
            "type": "string",
            "nullable": true,
            "format": "date"
          },
          "updated_at": {
            "type": "string",
            "nullable": true,
            "format": "date"
          }
        },
        "required": [
          "id",
          "entity_id",
          "status",
          "type",
          "trigger_id",
          "record_id",
          "created_at",
          "updated_at"
        ],
        "description": "Entity associated with this record"
      },
      "RecordSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier for the record"
          },
          "name": {
            "type": "string",
            "nullable": true,
            "description": "Name of the record",
            "example": "Important Record"
          },
          "status": {
            "type": "string",
            "enum": [
              "DRAFT",
              "QUEUED",
              "RUNNING",
              "CANCELLED",
              "COMPLETED",
              "FAILED"
            ],
            "description": "Current status of the record",
            "example": "COMPLETED"
          },
          "source": {
            "type": "string",
            "enum": [
              "APP",
              "API",
              "TRIGGER",
              "WORKFLOW"
            ],
            "description": "Source from which the record was created",
            "example": "API"
          },
          "usage": {
            "$ref": "#/components/schemas/CreditsRecordUsageSchema"
          },
          "rules_count": {
            "type": "number",
            "description": "Total number of rules of this record"
          },
          "rules_pass_count": {
            "type": "number",
            "description": "Number of passed rules"
          },
          "rules_fail_count": {
            "type": "number",
            "description": "Number of failed rules"
          },
          "rules_warn_count": {
            "type": "number",
            "description": "Number of rules with warnings"
          },
          "rules": {
            "type": "object",
            "additionalProperties": {
              "$ref": "#/components/schemas/RecordRuleSchema"
            },
            "description": "Rules associated with this record"
          },
          "config": {
            "$ref": "#/components/schemas/CollectionConfigSchema"
          },
          "collection_name": {
            "type": "string",
            "description": "Name of the collection this record belongs to"
          },
          "collection_id": {
            "type": "string",
            "description": "Unique identifier of the collection this record belongs to",
            "example": "col_xxx"
          },
          "created_by": {
            "allOf": [
              {
                "$ref": "#/components/schemas/UserPublicSchema"
              },
              {
                "nullable": true,
                "description": "User who created this record",
                "example": {
                  "id": "user_xxx",
                  "name": "John Doe"
                }
              }
            ]
          },
          "entity": {
            "$ref": "#/components/schemas/LimitedTriggerEntitySchema"
          },
          "tags": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TagSchema"
            },
            "description": "Tags associated with this record"
          },
          "created_at": {
            "type": "string",
            "nullable": true,
            "description": "Timestamp when the record was created",
            "format": "date"
          },
          "updated_at": {
            "type": "string",
            "nullable": true,
            "description": "Timestamp when the record was last updated",
            "format": "date"
          },
          "link": {
            "type": "string",
            "description": "Link to the record in the UI"
          }
        },
        "required": [
          "id",
          "name",
          "status",
          "source",
          "rules_count",
          "rules_pass_count",
          "rules_fail_count",
          "rules_warn_count",
          "rules",
          "config",
          "collection_name",
          "collection_id",
          "created_by",
          "entity",
          "tags",
          "created_at",
          "updated_at",
          "link"
        ],
        "description": "Details of the record"
      },
      "AppRecordSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier for the app record"
          },
          "app": {
            "allOf": [
              {
                "$ref": "#/components/schemas/AppPublicSchema"
              },
              {
                "description": "Public details of the app associated with the record"
              }
            ]
          },
          "record": {
            "$ref": "#/components/schemas/RecordSchema"
          },
          "accepted_by": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string",
                "nullable": true
              },
              "email": {
                "type": "string",
                "format": "email"
              }
            },
            "required": [
              "id",
              "name",
              "email"
            ],
            "description": "Email of the user who accepted the record"
          },
          "shared_by": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string",
                "nullable": true
              },
              "email": {
                "type": "string",
                "format": "email"
              }
            },
            "required": [
              "id",
              "name",
              "email"
            ],
            "description": "Email of the user who shared the record"
          }
        },
        "required": [
          "id",
          "app",
          "record",
          "accepted_by",
          "shared_by"
        ],
        "description": "Detailed information about an app record (shared record)"
      },
      "CreateTagSchema": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "color": {
            "type": "string",
            "nullable": true
          }
        },
        "required": [
          "name"
        ]
      },
      "UpdateTagSchema": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "color": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "CreateTemplateSchema": {
        "type": "object",
        "properties": {
          "workflow_id": {
            "type": "string",
            "nullable": true,
            "description": "Workflow that the template belongs to"
          }
        }
      },
      "TemplateWorkflowSchema": {
        "type": "object",
        "nullable": true,
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier for the app template"
          },
          "type": {
            "type": "string",
            "enum": [
              "WORKFLOW",
              "COLLECTION"
            ],
            "description": "Type of the app template"
          },
          "status": {
            "type": "string",
            "enum": [
              "DRAFT",
              "PUBLISHED"
            ],
            "description": "Status of the app template"
          },
          "name": {
            "type": "string",
            "description": "Name of the app template"
          },
          "description": {
            "type": "string",
            "nullable": true,
            "description": "Description of the app template"
          },
          "readme": {
            "type": "string",
            "nullable": true,
            "description": "Readme of the app template"
          },
          "app": {
            "allOf": [
              {
                "$ref": "#/components/schemas/AppPublicSchema"
              },
              {
                "description": "App that the template belongs to"
              }
            ]
          },
          "workflow": {
            "$ref": "#/components/schemas/WorkflowPublicSchema"
          },
          "workflow_version_id": {
            "type": "string",
            "nullable": true,
            "description": "Unique identifier for the workflow version"
          },
          "workflow_snapshot": {
            "type": "object",
            "nullable": true,
            "properties": {
              "key": {
                "type": "string",
                "description": "Unique key for the workflow version"
              },
              "input": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/InputDefinitionSchema"
                  },
                  {
                    "description": "Input definition of the workflow"
                  }
                ]
              },
              "input_default": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/InputValuesSchema"
                  },
                  {
                    "description": "Default config input values of the workflow"
                  }
                ]
              },
              "input_options": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/InputOptionsSchema"
                  },
                  {
                    "nullable": true,
                    "description": "Input options of the workflow"
                  }
                ]
              },
              "steps": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/StepSchema"
                },
                "description": "Steps of the workflow at the time this version was deployed"
              }
            },
            "required": [
              "key",
              "input",
              "input_default",
              "input_options",
              "steps"
            ],
            "description": "Snapshot of the workflow version"
          },
          "used_count": {
            "type": "number",
            "description": "Number of times the app template has been used"
          },
          "categories": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AppTemplateSchema"
            }
          },
          "created_at": {
            "type": "string",
            "nullable": true,
            "description": "Timestamp when the app template was created",
            "format": "date"
          },
          "updated_at": {
            "type": "string",
            "nullable": true,
            "description": "Timestamp when the app template was last updated",
            "format": "date"
          }
        },
        "required": [
          "id",
          "type",
          "status",
          "name",
          "description",
          "readme",
          "app",
          "workflow",
          "workflow_version_id",
          "workflow_snapshot",
          "used_count",
          "categories",
          "created_at",
          "updated_at"
        ]
      },
      "UpdateTemplateSchema": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "DRAFT",
              "PUBLISHED"
            ],
            "description": "Status of the app template"
          },
          "name": {
            "type": "string",
            "maxLength": 128,
            "description": "Name of the app template"
          },
          "description": {
            "type": "string",
            "nullable": true,
            "maxLength": 256,
            "description": "Description of the app template"
          },
          "readme": {
            "type": "string",
            "nullable": true,
            "maxLength": 30720,
            "description": "Readme of the app template"
          },
          "category_ids": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Category IDs for the template"
          }
        }
      },
      "ConnectionOAuthUrlSchema": {
        "type": "object",
        "properties": {
          "url": {
            "type": "string"
          }
        },
        "required": [
          "url"
        ],
        "description": "OAuth provider authentication URL"
      },
      "ConnectionOAuthConfigSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "OAUTH"
            ],
            "description": "The type of the connection"
          },
          "access_token": {
            "type": "string",
            "maxLength": 1024,
            "description": "The access token for OAuth authentication"
          },
          "refresh_token": {
            "type": "string",
            "maxLength": 1024,
            "description": "The refresh token for OAuth authentication"
          },
          "expires_in": {
            "type": "number",
            "minimum": 0,
            "description": "The expiration time of the access token"
          },
          "scope": {
            "type": "string",
            "maxLength": 2048,
            "description": "The scope of the access token"
          },
          "api_url": {
            "type": "string",
            "maxLength": 1024,
            "description": "The base URL for the API of the OAuth provider"
          }
        },
        "required": [
          "type",
          "access_token"
        ],
        "description": "Configuration of an OAuth connection"
      },
      "ConnectionOAuthValidatedSchema": {
        "type": "object",
        "properties": {
          "config": {
            "$ref": "#/components/schemas/ConnectionOAuthConfigSchema"
          },
          "user": {
            "type": "object",
            "properties": {
              "external_id": {
                "type": "string"
              },
              "external_name": {
                "type": "string",
                "nullable": true
              }
            },
            "required": [
              "external_id",
              "external_name"
            ]
          }
        },
        "required": [
          "config",
          "user"
        ],
        "description": "OAuth provider validated connection"
      },
      "ValidateConnectionOAuthSchema": {
        "type": "object",
        "properties": {
          "type": {
            "$ref": "#/components/schemas/ConnectionTypeSchema"
          },
          "code": {
            "type": "string"
          }
        },
        "required": [
          "type",
          "code"
        ],
        "description": "OAuth provider authentication request"
      },
      "ConnectionActionOptionsListSchema": {
        "type": "object",
        "properties": {
          "label": {
            "type": "string"
          },
          "value": {
            "type": "string"
          },
          "icon": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "metadata": {
            "type": "object",
            "properties": {
              "link": {
                "type": "string"
              }
            },
            "required": [
              "link"
            ]
          }
        },
        "required": [
          "label",
          "value"
        ],
        "description": "Connection action options list"
      },
      "ConnectionSchedulerTimezonesListActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "TIMEZONES_LIST"
            ],
            "description": "The TIMEZONES_LIST action of the \"SCHEDULER\" connection"
          }
        },
        "required": [
          "action"
        ],
        "description": "The TIMEZONES_LIST action of the Scheduler service"
      },
      "ConnectionSchedulerOnScheduleActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "ON_SCHEDULE"
            ],
            "description": "The ON_SCHEDULE action of the \"SCHEDULER\" connection"
          },
          "schedule": {
            "type": "string",
            "description": "The interval (seconds) or cron expression",
            "nullable": true,
            "enum": [
              "60",
              "300",
              "900",
              "1800",
              "3600",
              "86400",
              "604800",
              "2592000",
              "0 0 * * 1",
              "0 0 * * 2",
              "0 0 * * 3",
              "0 0 * * 4",
              "0 0 * * 5",
              "0 0 * * 6",
              "0 0 * * 0",
              "0 0 * * 1-5",
              "0 0 * * 6,0"
            ]
          },
          "timezone": {
            "type": "string",
            "description": "The timezone to use for the schedule",
            "nullable": true
          }
        },
        "required": [
          "action"
        ],
        "description": "The ON_SCHEDULE action of the Scheduler service"
      },
      "ConnectionSchedulerActionSchema": {
        "oneOf": [
          {
            "$ref": "#/components/schemas/ConnectionSchedulerTimezonesListActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionSchedulerOnScheduleActionSchema"
          }
        ],
        "discriminator": {
          "propertyName": "action",
          "mapping": {
            "TIMEZONES_LIST": "#/components/schemas/ConnectionSchedulerTimezonesListActionSchema",
            "ON_SCHEDULE": "#/components/schemas/ConnectionSchedulerOnScheduleActionSchema"
          }
        },
        "description": "The Scheduler actions schema"
      },
      "ConnectionToolsWebSearchActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "WEB_SEARCH"
            ],
            "description": "The WEB_SEARCH action of the \"TOOLS\" connection"
          },
          "engine": {
            "type": "string",
            "description": "The search engine to be used for the search",
            "nullable": true,
            "enum": [
              "google",
              "bing",
              "youtube",
              "apple_app_store",
              "google_play",
              "google_images",
              "google_videos",
              "google_maps",
              "google_trends",
              "google_news",
              "google_finance",
              "google_shopping",
              "google_hotels",
              "google_events",
              "google_scholar",
              "google_jobs",
              "ebay",
              "baidu",
              "yandex",
              "naver"
            ]
          },
          "query": {
            "type": "string",
            "description": "The search query to be used for the search",
            "nullable": true
          }
        },
        "required": [
          "action"
        ],
        "description": "The WEB_SEARCH action of the Tools service"
      },
      "ConnectionToolsActionSchema": {
        "oneOf": [
          {
            "$ref": "#/components/schemas/ConnectionToolsWebSearchActionSchema"
          }
        ],
        "discriminator": {
          "propertyName": "action",
          "mapping": {
            "WEB_SEARCH": "#/components/schemas/ConnectionToolsWebSearchActionSchema"
          }
        },
        "description": "The Tools actions schema"
      },
      "ConnectionFilesDownloadFileActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "DOWNLOAD_FILE"
            ],
            "description": "The DOWNLOAD_FILE action of the \"FILES\" connection"
          },
          "file": {
            "type": "string",
            "description": "File URL or base64 encoded data",
            "nullable": true
          },
          "storage": {
            "type": "string",
            "description": "Persistent storage will keep the file even after the run finishes. Temporary storage will delete the file after 24 hours",
            "nullable": true,
            "enum": [
              "PERSISTENT",
              "TEMPORARY"
            ]
          },
          "visibility": {
            "type": "string",
            "description": "Whether the file is private or public, private files URLs are signed with a token and can be accessed temporarily",
            "nullable": true,
            "enum": [
              "PRIVATE",
              "PUBLIC"
            ]
          }
        },
        "required": [
          "action"
        ],
        "description": "The DOWNLOAD_FILE action of the Files service"
      },
      "ConnectionFilesUploadFileActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "UPLOAD_FILE"
            ],
            "description": "The UPLOAD_FILE action of the \"FILES\" connection"
          },
          "file": {
            "type": "string",
            "description": "Use an URL to download a file or plain text to create a new file with its content",
            "nullable": true
          },
          "name": {
            "type": "string",
            "description": "A custom name for the file",
            "nullable": true
          },
          "mime_type": {
            "type": "string",
            "description": "MIME type of the file, by default it will be auto-detected",
            "nullable": true,
            "enum": [
              "auto",
              "text/plain",
              "text/csv",
              "text/html",
              "application/json",
              "application/xml"
            ]
          },
          "storage": {
            "type": "string",
            "description": "Persistent storage will keep the file even after the run finishes. Temporary storage will delete the file after 24 hours",
            "nullable": true,
            "enum": [
              "PERSISTENT",
              "TEMPORARY"
            ]
          },
          "visibility": {
            "type": "string",
            "description": "Whether the file is private or public, private files URLs are signed with a token and can be accessed temporarily",
            "nullable": true,
            "enum": [
              "PRIVATE",
              "PUBLIC"
            ]
          }
        },
        "required": [
          "action"
        ],
        "description": "The UPLOAD_FILE action of the Files service"
      },
      "ConnectionFilesDeleteFileActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "DELETE_FILE"
            ],
            "description": "The DELETE_FILE action of the \"FILES\" connection"
          },
          "file_id": {
            "type": "string",
            "description": "ID of the file to delete",
            "nullable": true
          }
        },
        "required": [
          "action"
        ],
        "description": "The DELETE_FILE action of the Files service"
      },
      "ConnectionFilesExtractPagesActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "EXTRACT_PAGES"
            ],
            "description": "The EXTRACT_PAGES action of the \"FILES\" connection"
          },
          "file": {
            "type": "string",
            "description": "Document to extract pages from",
            "nullable": true
          },
          "name": {
            "type": "string",
            "description": "A custom name for the file",
            "nullable": true
          },
          "pages": {
            "type": "string",
            "description": "Page numbers to extract",
            "nullable": true
          },
          "storage": {
            "type": "string",
            "description": "Persistent storage will keep the file even after the run finishes. Temporary storage will delete the file after 24 hours",
            "nullable": true,
            "enum": [
              "PERSISTENT",
              "TEMPORARY"
            ]
          },
          "visibility": {
            "type": "string",
            "description": "Whether the file is private or public, private files URLs are signed with a token and can be accessed temporarily",
            "nullable": true,
            "enum": [
              "PRIVATE",
              "PUBLIC"
            ]
          }
        },
        "required": [
          "action"
        ],
        "description": "The EXTRACT_PAGES action of the Files service"
      },
      "ConnectionFilesExtractContentsActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "EXTRACT_CONTENTS"
            ],
            "description": "The EXTRACT_CONTENTS action of the \"FILES\" connection"
          },
          "file": {
            "type": "string",
            "description": "Document to extract contents from",
            "nullable": true
          },
          "storage": {
            "type": "string",
            "description": "Persistent storage will keep the file even after the run finishes. Temporary storage will delete the file after 24 hours",
            "nullable": true,
            "enum": [
              "PERSISTENT",
              "TEMPORARY"
            ]
          },
          "visibility": {
            "type": "string",
            "description": "Whether the file is private or public, private files URLs are signed with a token and can be accessed temporarily",
            "nullable": true,
            "enum": [
              "PRIVATE",
              "PUBLIC"
            ]
          }
        },
        "required": [
          "action"
        ],
        "description": "The EXTRACT_CONTENTS action of the Files service"
      },
      "ConnectionFilesExtractImagesActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "EXTRACT_IMAGES"
            ],
            "description": "The EXTRACT_IMAGES action of the \"FILES\" connection"
          },
          "file": {
            "type": "string",
            "description": "Document to extract images from",
            "nullable": true
          },
          "storage": {
            "type": "string",
            "description": "Persistent storage will keep the file even after the run finishes. Temporary storage will delete the file after 24 hours",
            "nullable": true,
            "enum": [
              "PERSISTENT",
              "TEMPORARY"
            ]
          },
          "visibility": {
            "type": "string",
            "description": "Whether the file is private or public, private files URLs are signed with a token and can be accessed temporarily",
            "nullable": true,
            "enum": [
              "PRIVATE",
              "PUBLIC"
            ]
          }
        },
        "required": [
          "action"
        ],
        "description": "The EXTRACT_IMAGES action of the Files service"
      },
      "ConnectionFilesMarkdownToPdfActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "MARKDOWN_TO_PDF"
            ],
            "description": "The MARKDOWN_TO_PDF action of the \"FILES\" connection"
          },
          "file": {
            "type": "string",
            "description": "Markdown to convert to PDF",
            "nullable": true
          },
          "name": {
            "type": "string",
            "description": "A custom name for the file",
            "nullable": true
          },
          "storage": {
            "type": "string",
            "description": "Persistent storage will keep the file even after the run finishes. Temporary storage will delete the file after 24 hours",
            "nullable": true,
            "enum": [
              "PERSISTENT",
              "TEMPORARY"
            ]
          },
          "visibility": {
            "type": "string",
            "description": "Whether the file is private or public, private files URLs are signed with a token and can be accessed temporarily",
            "nullable": true,
            "enum": [
              "PRIVATE",
              "PUBLIC"
            ]
          }
        },
        "required": [
          "action"
        ],
        "description": "The MARKDOWN_TO_PDF action of the Files service"
      },
      "ConnectionFilesHtmlToPdfActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "HTML_TO_PDF"
            ],
            "description": "The HTML_TO_PDF action of the \"FILES\" connection"
          },
          "file": {
            "type": "string",
            "description": "Raw HTML or Website URL to convert to PDF",
            "nullable": true
          },
          "name": {
            "type": "string",
            "description": "A custom name for the file",
            "nullable": true
          },
          "storage": {
            "type": "string",
            "description": "Persistent storage will keep the file even after the run finishes. Temporary storage will delete the file after 24 hours",
            "nullable": true,
            "enum": [
              "PERSISTENT",
              "TEMPORARY"
            ]
          },
          "visibility": {
            "type": "string",
            "description": "Whether the file is private or public, private files URLs are signed with a token and can be accessed temporarily",
            "nullable": true,
            "enum": [
              "PRIVATE",
              "PUBLIC"
            ]
          }
        },
        "required": [
          "action"
        ],
        "description": "The HTML_TO_PDF action of the Files service"
      },
      "ConnectionFilesActionSchema": {
        "oneOf": [
          {
            "$ref": "#/components/schemas/ConnectionFilesDownloadFileActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionFilesUploadFileActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionFilesDeleteFileActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionFilesExtractPagesActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionFilesExtractContentsActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionFilesExtractImagesActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionFilesMarkdownToPdfActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionFilesHtmlToPdfActionSchema"
          }
        ],
        "discriminator": {
          "propertyName": "action",
          "mapping": {
            "DOWNLOAD_FILE": "#/components/schemas/ConnectionFilesDownloadFileActionSchema",
            "UPLOAD_FILE": "#/components/schemas/ConnectionFilesUploadFileActionSchema",
            "DELETE_FILE": "#/components/schemas/ConnectionFilesDeleteFileActionSchema",
            "EXTRACT_PAGES": "#/components/schemas/ConnectionFilesExtractPagesActionSchema",
            "EXTRACT_CONTENTS": "#/components/schemas/ConnectionFilesExtractContentsActionSchema",
            "EXTRACT_IMAGES": "#/components/schemas/ConnectionFilesExtractImagesActionSchema",
            "MARKDOWN_TO_PDF": "#/components/schemas/ConnectionFilesMarkdownToPdfActionSchema",
            "HTML_TO_PDF": "#/components/schemas/ConnectionFilesHtmlToPdfActionSchema"
          }
        },
        "description": "The Files actions schema"
      },
      "ConnectionCollectionsCollectionsListActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "COLLECTIONS_LIST"
            ],
            "description": "The COLLECTIONS_LIST action of the \"COLLECTIONS\" connection"
          }
        },
        "required": [
          "action"
        ],
        "description": "The COLLECTIONS_LIST action of the Collections service"
      },
      "ConnectionCollectionsCollectionsTagsListActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "COLLECTIONS_TAGS_LIST"
            ],
            "description": "The COLLECTIONS_TAGS_LIST action of the \"COLLECTIONS\" connection"
          }
        },
        "required": [
          "action"
        ],
        "description": "The COLLECTIONS_TAGS_LIST action of the Collections service"
      },
      "ConnectionCollectionsRecordsSearchActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "RECORDS_SEARCH"
            ],
            "description": "The RECORDS_SEARCH action of the \"COLLECTIONS\" connection"
          },
          "collection_id": {
            "type": "string",
            "description": "The collection to search in",
            "nullable": true
          },
          "search": {
            "type": "string",
            "description": "Search term to filter records by name",
            "nullable": true
          },
          "status": {
            "type": "string",
            "description": "Filter records by status",
            "nullable": true,
            "enum": [
              "ALL",
              "DRAFT",
              "QUEUED",
              "RUNNING",
              "COMPLETED",
              "FAILED",
              "CANCELLED"
            ]
          },
          "tag_ids": {
            "type": "array",
            "description": "Filter records by tags",
            "nullable": true,
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "action"
        ],
        "description": "The RECORDS_SEARCH action of the Collections service"
      },
      "ConnectionCollectionsRecordsGetActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "RECORDS_GET"
            ],
            "description": "The RECORDS_GET action of the \"COLLECTIONS\" connection"
          },
          "collection_id": {
            "type": "string",
            "description": "The collection to get the record from",
            "nullable": true
          },
          "record_id": {
            "type": "string",
            "description": "The record to retrieve",
            "nullable": true
          }
        },
        "required": [
          "action"
        ],
        "description": "The RECORDS_GET action of the Collections service"
      },
      "ConnectionCollectionsRecordsCreateActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "RECORDS_CREATE"
            ],
            "description": "The RECORDS_CREATE action of the \"COLLECTIONS\" connection"
          },
          "collection_id": {
            "type": "string",
            "description": "The ID of the collection to create the record in",
            "nullable": true
          },
          "name": {
            "type": "string",
            "description": "Name of the record",
            "nullable": true
          },
          "run": {
            "type": "string",
            "description": "Whether to run rules after creation",
            "nullable": true,
            "enum": [
              "all",
              "changed"
            ]
          },
          "tags_ids": {
            "type": "array",
            "description": "Tags to apply to the record",
            "nullable": true,
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "action"
        ],
        "description": "The RECORDS_CREATE action of the Collections service"
      },
      "ConnectionCollectionsRecordsUpdateActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "RECORDS_UPDATE"
            ],
            "description": "The RECORDS_UPDATE action of the \"COLLECTIONS\" connection"
          },
          "collection_id": {
            "type": "string",
            "description": "The collection to update the record in",
            "nullable": true
          },
          "record_id": {
            "type": "string",
            "description": "The record to update",
            "nullable": true
          },
          "name": {
            "type": "string",
            "description": "Name of the record",
            "nullable": true
          },
          "tag_ids": {
            "type": "array",
            "description": "Tags to apply to the record",
            "nullable": true,
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "action"
        ],
        "description": "The RECORDS_UPDATE action of the Collections service"
      },
      "ConnectionCollectionsRecordsDeleteActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "RECORDS_DELETE"
            ],
            "description": "The RECORDS_DELETE action of the \"COLLECTIONS\" connection"
          },
          "collection_id": {
            "type": "string",
            "description": "The collection to update the record in",
            "nullable": true
          },
          "record_id": {
            "type": "string",
            "description": "The record to delete",
            "nullable": true
          }
        },
        "required": [
          "action"
        ],
        "description": "The RECORDS_DELETE action of the Collections service"
      },
      "ConnectionCollectionsRecordsAnalyzeActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "RECORDS_ANALYZE"
            ],
            "description": "The RECORDS_ANALYZE action of the \"COLLECTIONS\" connection"
          },
          "collection_id": {
            "type": "string",
            "description": "The collection to update the record in",
            "nullable": true
          },
          "record_id": {
            "type": "string",
            "description": "The record to analyze",
            "nullable": true
          },
          "rules_scope": {
            "type": "string",
            "description": "Whether to analyze all rules or only those that have been changed",
            "nullable": true,
            "enum": [
              "all",
              "changed"
            ]
          },
          "execution_type": {
            "type": "string",
            "description": "Whether to wait for results or run in the background",
            "nullable": true,
            "enum": [
              "sync",
              "async"
            ]
          }
        },
        "required": [
          "action"
        ],
        "description": "The RECORDS_ANALYZE action of the Collections service"
      },
      "ConnectionCollectionsRecordsCancelActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "RECORDS_CANCEL"
            ],
            "description": "The RECORDS_CANCEL action of the \"COLLECTIONS\" connection"
          },
          "collection_id": {
            "type": "string",
            "description": "The collection to update the record in",
            "nullable": true
          },
          "record_id": {
            "type": "string",
            "description": "The record with running analysis to cancel",
            "nullable": true
          }
        },
        "required": [
          "action"
        ],
        "description": "The RECORDS_CANCEL action of the Collections service"
      },
      "ConnectionCollectionsRulesListActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "RULES_LIST"
            ],
            "description": "The RULES_LIST action of the \"COLLECTIONS\" connection"
          },
          "collection_id": {
            "type": "string",
            "description": "The collection to get rules from",
            "nullable": true
          }
        },
        "required": [
          "action"
        ],
        "description": "The RULES_LIST action of the Collections service"
      },
      "ConnectionCollectionsRulesUpdateActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "RULES_UPDATE"
            ],
            "description": "The RULES_UPDATE action of the \"COLLECTIONS\" connection"
          },
          "collection_id": {
            "type": "string",
            "description": "The collection to update the record in",
            "nullable": true
          },
          "rule_key": {
            "type": "string",
            "description": "The rule to update",
            "nullable": true
          },
          "record_id": {
            "type": "string",
            "description": "The record to update rules for",
            "nullable": true
          },
          "rule_input": {
            "nullable": true,
            "description": "Input values for the selected rule"
          }
        },
        "required": [
          "action"
        ],
        "description": "The RULES_UPDATE action of the Collections service"
      },
      "ConnectionCollectionsRulesUpdateAllActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "RULES_UPDATE_ALL"
            ],
            "description": "The RULES_UPDATE_ALL action of the \"COLLECTIONS\" connection"
          },
          "collection_id": {
            "type": "string",
            "description": "The collection to update the record in",
            "nullable": true
          },
          "record_id": {
            "type": "string",
            "description": "The record to update rules for",
            "nullable": true
          },
          "rules": {
            "nullable": true,
            "description": "Input values for all rules"
          }
        },
        "required": [
          "action"
        ],
        "description": "The RULES_UPDATE_ALL action of the Collections service"
      },
      "ConnectionCollectionsActionSchema": {
        "oneOf": [
          {
            "$ref": "#/components/schemas/ConnectionCollectionsCollectionsListActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionCollectionsCollectionsTagsListActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionCollectionsRecordsSearchActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionCollectionsRecordsGetActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionCollectionsRecordsCreateActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionCollectionsRecordsUpdateActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionCollectionsRecordsDeleteActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionCollectionsRecordsAnalyzeActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionCollectionsRecordsCancelActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionCollectionsRulesListActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionCollectionsRulesUpdateActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionCollectionsRulesUpdateAllActionSchema"
          }
        ],
        "discriminator": {
          "propertyName": "action",
          "mapping": {
            "COLLECTIONS_LIST": "#/components/schemas/ConnectionCollectionsCollectionsListActionSchema",
            "COLLECTIONS_TAGS_LIST": "#/components/schemas/ConnectionCollectionsCollectionsTagsListActionSchema",
            "RECORDS_SEARCH": "#/components/schemas/ConnectionCollectionsRecordsSearchActionSchema",
            "RECORDS_GET": "#/components/schemas/ConnectionCollectionsRecordsGetActionSchema",
            "RECORDS_CREATE": "#/components/schemas/ConnectionCollectionsRecordsCreateActionSchema",
            "RECORDS_UPDATE": "#/components/schemas/ConnectionCollectionsRecordsUpdateActionSchema",
            "RECORDS_DELETE": "#/components/schemas/ConnectionCollectionsRecordsDeleteActionSchema",
            "RECORDS_ANALYZE": "#/components/schemas/ConnectionCollectionsRecordsAnalyzeActionSchema",
            "RECORDS_CANCEL": "#/components/schemas/ConnectionCollectionsRecordsCancelActionSchema",
            "RULES_LIST": "#/components/schemas/ConnectionCollectionsRulesListActionSchema",
            "RULES_UPDATE": "#/components/schemas/ConnectionCollectionsRulesUpdateActionSchema",
            "RULES_UPDATE_ALL": "#/components/schemas/ConnectionCollectionsRulesUpdateAllActionSchema"
          }
        },
        "description": "The Collections actions schema"
      },
      "ConnectionStaticSynapseRunActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "RUN"
            ],
            "description": "The RUN action of the \"STATIC_SYNAPSE\" connection"
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection"
          },
          "parameters": {
            "nullable": true,
            "description": "Parameters for the static synapse operation"
          }
        },
        "required": [
          "action"
        ],
        "description": "The RUN action of the StaticSynapse service"
      },
      "ConnectionStaticSynapseActionSchema": {
        "oneOf": [
          {
            "$ref": "#/components/schemas/ConnectionStaticSynapseRunActionSchema"
          }
        ],
        "discriminator": {
          "propertyName": "action",
          "mapping": {
            "RUN": "#/components/schemas/ConnectionStaticSynapseRunActionSchema"
          }
        },
        "description": "The Staticsynapse actions schema"
      },
      "ConnectionGoogleSheetsOnSpreadsheetsNewRowActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "ON_SPREADSHEETS_NEW_ROW"
            ],
            "description": "The ON_SPREADSHEETS_NEW_ROW action of the \"GOOGLE_SHEETS\" connection"
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection"
          },
          "spreadsheet_id": {
            "type": "string",
            "description": "Spreadsheet to watch for new rows",
            "nullable": true
          },
          "worksheet": {
            "type": "string",
            "description": "Worksheet to watch for new rows. Defaults to the first sheet",
            "nullable": true
          }
        },
        "required": [
          "action"
        ],
        "description": "The ON_SPREADSHEETS_NEW_ROW action of the GoogleSheets service"
      },
      "ConnectionGoogleSheetsSpreadsheetsListActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "SPREADSHEETS_LIST"
            ],
            "description": "The SPREADSHEETS_LIST action of the \"GOOGLE_SHEETS\" connection"
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection"
          }
        },
        "required": [
          "action"
        ],
        "description": "The SPREADSHEETS_LIST action of the GoogleSheets service"
      },
      "ConnectionGoogleSheetsSpreadsheetsFilesListActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "SPREADSHEETS_FILES_LIST"
            ],
            "description": "The SPREADSHEETS_FILES_LIST action of the \"GOOGLE_SHEETS\" connection"
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection"
          }
        },
        "required": [
          "action"
        ],
        "description": "The SPREADSHEETS_FILES_LIST action of the GoogleSheets service"
      },
      "ConnectionGoogleSheetsSpreadsheetsAppendRowActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "SPREADSHEETS_APPEND_ROW"
            ],
            "description": "The SPREADSHEETS_APPEND_ROW action of the \"GOOGLE_SHEETS\" connection"
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection"
          },
          "spreadsheet_id": {
            "type": "string",
            "description": "Spreadsheet",
            "nullable": true
          },
          "worksheet": {
            "type": "string",
            "description": "Worksheet to append the row to. Defaults to the first sheet",
            "nullable": true
          },
          "values": {
            "nullable": true,
            "description": "Values to append to the row to each column"
          }
        },
        "required": [
          "action"
        ],
        "description": "The SPREADSHEETS_APPEND_ROW action of the GoogleSheets service"
      },
      "ConnectionGoogleSheetsWorksheetsListActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "WORKSHEETS_LIST"
            ],
            "description": "The WORKSHEETS_LIST action of the \"GOOGLE_SHEETS\" connection"
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection"
          },
          "spreadsheet_id": {
            "type": "string",
            "description": "Spreadsheet",
            "nullable": true
          }
        },
        "required": [
          "action"
        ],
        "description": "The WORKSHEETS_LIST action of the GoogleSheets service"
      },
      "ConnectionGoogleSheetsActionSchema": {
        "oneOf": [
          {
            "$ref": "#/components/schemas/ConnectionGoogleSheetsOnSpreadsheetsNewRowActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionGoogleSheetsSpreadsheetsListActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionGoogleSheetsSpreadsheetsFilesListActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionGoogleSheetsSpreadsheetsAppendRowActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionGoogleSheetsWorksheetsListActionSchema"
          }
        ],
        "discriminator": {
          "propertyName": "action",
          "mapping": {
            "ON_SPREADSHEETS_NEW_ROW": "#/components/schemas/ConnectionGoogleSheetsOnSpreadsheetsNewRowActionSchema",
            "SPREADSHEETS_LIST": "#/components/schemas/ConnectionGoogleSheetsSpreadsheetsListActionSchema",
            "SPREADSHEETS_FILES_LIST": "#/components/schemas/ConnectionGoogleSheetsSpreadsheetsFilesListActionSchema",
            "SPREADSHEETS_APPEND_ROW": "#/components/schemas/ConnectionGoogleSheetsSpreadsheetsAppendRowActionSchema",
            "WORKSHEETS_LIST": "#/components/schemas/ConnectionGoogleSheetsWorksheetsListActionSchema"
          }
        },
        "description": "The Googlesheets actions schema"
      },
      "ConnectionGoogleDriveOnNewFileActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "ON_NEW_FILE"
            ],
            "description": "The ON_NEW_FILE action of the \"GOOGLE_DRIVE\" connection"
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection"
          },
          "folder_id": {
            "type": "string",
            "description": "The folder to monitor for new files",
            "nullable": true
          },
          "mime_type": {
            "type": "string",
            "description": "Filter results by file type (e.g., image/*, application/pdf)",
            "nullable": true,
            "enum": [
              "*/*",
              "application/vnd.google-apps.document",
              "application/vnd.google-apps.spreadsheet",
              "application/vnd.google-apps.presentation",
              "application/pdf",
              "image/*",
              "video/*",
              "audio/*",
              "application/zip",
              "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
              "application/vnd.openxmlformats-officedocument.presentationml.presentation",
              "text/plain"
            ]
          }
        },
        "required": [
          "action"
        ],
        "description": "The ON_NEW_FILE action of the GoogleDrive service"
      },
      "ConnectionGoogleDriveFilesListActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "FILES_LIST"
            ],
            "description": "The FILES_LIST action of the \"GOOGLE_DRIVE\" connection"
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection"
          }
        },
        "required": [
          "action"
        ],
        "description": "The FILES_LIST action of the GoogleDrive service"
      },
      "ConnectionGoogleDriveFilesSearchActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "FILES_SEARCH"
            ],
            "description": "The FILES_SEARCH action of the \"GOOGLE_DRIVE\" connection"
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection"
          },
          "folder_id": {
            "type": "string",
            "description": "The folder where to search for files",
            "nullable": true
          },
          "search_text": {
            "type": "string",
            "description": "Search for files in Google Drive",
            "nullable": true
          },
          "mime_type": {
            "type": "string",
            "description": "Filter results by file type (e.g., image/*, application/pdf)",
            "nullable": true,
            "enum": [
              "*/*",
              "application/vnd.google-apps.document",
              "application/vnd.google-apps.spreadsheet",
              "application/vnd.google-apps.presentation",
              "application/pdf",
              "image/*",
              "video/*",
              "audio/*",
              "application/zip",
              "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
              "application/vnd.openxmlformats-officedocument.presentationml.presentation",
              "text/plain"
            ]
          },
          "created_after": {
            "nullable": true,
            "description": "Show folders created after this date"
          },
          "created_before": {
            "nullable": true,
            "description": "Show folders created before this date"
          },
          "modified_after": {
            "nullable": true,
            "description": "Show folders modified after this date"
          },
          "modified_before": {
            "nullable": true,
            "description": "Show folders modified before this date"
          },
          "include_trashed": {
            "type": "boolean",
            "description": "include files that have been moved to trash",
            "nullable": true
          }
        },
        "required": [
          "action"
        ],
        "description": "The FILES_SEARCH action of the GoogleDrive service"
      },
      "ConnectionGoogleDriveFilesGetActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "FILES_GET"
            ],
            "description": "The FILES_GET action of the \"GOOGLE_DRIVE\" connection"
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection"
          },
          "file_id": {
            "type": "string",
            "description": "The Google Drive File ID of the file to retrieve",
            "nullable": true
          }
        },
        "required": [
          "action"
        ],
        "description": "The FILES_GET action of the GoogleDrive service"
      },
      "ConnectionGoogleDriveFilesUploadActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "FILES_UPLOAD"
            ],
            "description": "The FILES_UPLOAD action of the \"GOOGLE_DRIVE\" connection"
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection"
          },
          "folder_id": {
            "type": "string",
            "description": "The folder where to upload the file.",
            "nullable": true
          },
          "name": {
            "type": "string",
            "description": "Name for the uploaded file",
            "nullable": true
          },
          "description": {
            "type": "string",
            "description": "Description for the file",
            "nullable": true
          },
          "convert_to_google_format": {
            "type": "boolean",
            "description": "Convert the file to a Google format (e.g. Google Docs, Sheets)",
            "nullable": true
          }
        },
        "required": [
          "action"
        ],
        "description": "The FILES_UPLOAD action of the GoogleDrive service"
      },
      "ConnectionGoogleDriveFilesDownloadActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "FILES_DOWNLOAD"
            ],
            "description": "The FILES_DOWNLOAD action of the \"GOOGLE_DRIVE\" connection"
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection"
          },
          "file_id": {
            "type": "string",
            "description": "The Google Drive File ID of the file to retrieve",
            "nullable": true
          },
          "storage": {
            "type": "string",
            "description": "Persistent storage will keep the file even after the run finishes. Temporary storage will delete the file after 24 hours",
            "nullable": true,
            "enum": [
              "PERSISTENT",
              "TEMPORARY"
            ]
          },
          "visibility": {
            "type": "string",
            "description": "Whether the file is private or public, private files URLs are signed with a token and can be accessed temporarily",
            "nullable": true,
            "enum": [
              "PRIVATE",
              "PUBLIC"
            ]
          },
          "export_mime_type": {
            "type": "string",
            "description": "Format for exporting Google Native files (e.g. Google Docs, Sheets)",
            "nullable": true,
            "enum": [
              "auto",
              "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
              "application/vnd.openxmlformats-officedocument.presentationml.presentation",
              "application/pdf",
              "text/markdown",
              "image/jpeg",
              "image/png",
              "text/plain",
              "application/zip",
              "application/epub+zip",
              "application/vnd.oasis.opendocument.text",
              "application/vnd.oasis.opendocument.presentation",
              "application/vnd.oasis.opendocument.spreadsheet",
              "application/rtf",
              "image/svg+xml",
              "application/json",
              "video/mp4"
            ]
          }
        },
        "required": [
          "action"
        ],
        "description": "The FILES_DOWNLOAD action of the GoogleDrive service"
      },
      "ConnectionGoogleDriveFilesMoveActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "FILES_MOVE"
            ],
            "description": "The FILES_MOVE action of the \"GOOGLE_DRIVE\" connection"
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection"
          },
          "file_id": {
            "type": "string",
            "description": "The Google Drive File ID of the file to move",
            "nullable": true
          },
          "destination_folder_id": {
            "type": "string",
            "description": "The folder where to move the file",
            "nullable": true
          }
        },
        "required": [
          "action"
        ],
        "description": "The FILES_MOVE action of the GoogleDrive service"
      },
      "ConnectionGoogleDriveFilesCopyActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "FILES_COPY"
            ],
            "description": "The FILES_COPY action of the \"GOOGLE_DRIVE\" connection"
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection"
          },
          "file_id": {
            "type": "string",
            "description": "The Google Drive File ID of the file to copy",
            "nullable": true
          },
          "name": {
            "type": "string",
            "description": "Name for the copied file",
            "nullable": true
          },
          "folder_id": {
            "type": "string",
            "description": "The folder where to place the copied file. Leave empty for same folder.",
            "nullable": true
          },
          "description": {
            "type": "string",
            "description": "Description for the copied file",
            "nullable": true
          }
        },
        "required": [
          "action"
        ],
        "description": "The FILES_COPY action of the GoogleDrive service"
      },
      "ConnectionGoogleDriveFilesUpdateActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "FILES_UPDATE"
            ],
            "description": "The FILES_UPDATE action of the \"GOOGLE_DRIVE\" connection"
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection"
          },
          "file_id": {
            "type": "string",
            "description": "The Google Drive File ID of the file to update",
            "nullable": true
          },
          "name": {
            "type": "string",
            "description": "New name for the file",
            "nullable": true
          },
          "description": {
            "type": "string",
            "description": "New description for the file",
            "nullable": true
          },
          "starred": {
            "type": "boolean",
            "description": "Mark the file as starred",
            "nullable": true
          }
        },
        "required": [
          "action"
        ],
        "description": "The FILES_UPDATE action of the GoogleDrive service"
      },
      "ConnectionGoogleDriveFilesTrashActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "FILES_TRASH"
            ],
            "description": "The FILES_TRASH action of the \"GOOGLE_DRIVE\" connection"
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection"
          },
          "file_id": {
            "type": "string",
            "description": "The Google Drive File ID of the file to move to trash",
            "nullable": true
          }
        },
        "required": [
          "action"
        ],
        "description": "The FILES_TRASH action of the GoogleDrive service"
      },
      "ConnectionGoogleDriveFoldersListActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "FOLDERS_LIST"
            ],
            "description": "The FOLDERS_LIST action of the \"GOOGLE_DRIVE\" connection"
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection"
          }
        },
        "required": [
          "action"
        ],
        "description": "The FOLDERS_LIST action of the GoogleDrive service"
      },
      "ConnectionGoogleDriveFoldersListActiveActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "FOLDERS_LIST_ACTIVE"
            ],
            "description": "The FOLDERS_LIST_ACTIVE action of the \"GOOGLE_DRIVE\" connection"
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection"
          }
        },
        "required": [
          "action"
        ],
        "description": "The FOLDERS_LIST_ACTIVE action of the GoogleDrive service"
      },
      "ConnectionGoogleDriveFoldersSearchActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "FOLDERS_SEARCH"
            ],
            "description": "The FOLDERS_SEARCH action of the \"GOOGLE_DRIVE\" connection"
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection"
          },
          "search_text": {
            "type": "string",
            "description": "Search for folders in Google Drive",
            "nullable": true
          },
          "created_after": {
            "nullable": true,
            "description": "Show folders created after this date"
          },
          "created_before": {
            "nullable": true,
            "description": "Show folders created before this date"
          },
          "modified_after": {
            "nullable": true,
            "description": "Show folders modified after this date"
          },
          "modified_before": {
            "nullable": true,
            "description": "Show folders modified before this date"
          },
          "include_trashed": {
            "type": "boolean",
            "description": "include folders that have been moved to trash",
            "nullable": true
          }
        },
        "required": [
          "action"
        ],
        "description": "The FOLDERS_SEARCH action of the GoogleDrive service"
      },
      "ConnectionGoogleDriveFoldersCreateActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "FOLDERS_CREATE"
            ],
            "description": "The FOLDERS_CREATE action of the \"GOOGLE_DRIVE\" connection"
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection"
          },
          "name": {
            "type": "string",
            "description": "Name for the new folder",
            "nullable": true
          },
          "folder_id": {
            "type": "string",
            "description": "The folder where to create the new folder.",
            "nullable": true
          },
          "description": {
            "type": "string",
            "description": "Description for the folder",
            "nullable": true
          }
        },
        "required": [
          "action"
        ],
        "description": "The FOLDERS_CREATE action of the GoogleDrive service"
      },
      "ConnectionGoogleDriveFoldersTrashActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "FOLDERS_TRASH"
            ],
            "description": "The FOLDERS_TRASH action of the \"GOOGLE_DRIVE\" connection"
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection"
          },
          "folder_id": {
            "type": "string",
            "description": "The Google Drive ID of the folder to move to trash",
            "nullable": true
          }
        },
        "required": [
          "action"
        ],
        "description": "The FOLDERS_TRASH action of the GoogleDrive service"
      },
      "ConnectionGoogleDriveActionSchema": {
        "oneOf": [
          {
            "$ref": "#/components/schemas/ConnectionGoogleDriveOnNewFileActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionGoogleDriveFilesListActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionGoogleDriveFilesSearchActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionGoogleDriveFilesGetActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionGoogleDriveFilesUploadActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionGoogleDriveFilesDownloadActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionGoogleDriveFilesMoveActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionGoogleDriveFilesCopyActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionGoogleDriveFilesUpdateActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionGoogleDriveFilesTrashActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionGoogleDriveFoldersListActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionGoogleDriveFoldersListActiveActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionGoogleDriveFoldersSearchActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionGoogleDriveFoldersCreateActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionGoogleDriveFoldersTrashActionSchema"
          }
        ],
        "discriminator": {
          "propertyName": "action",
          "mapping": {
            "ON_NEW_FILE": "#/components/schemas/ConnectionGoogleDriveOnNewFileActionSchema",
            "FILES_LIST": "#/components/schemas/ConnectionGoogleDriveFilesListActionSchema",
            "FILES_SEARCH": "#/components/schemas/ConnectionGoogleDriveFilesSearchActionSchema",
            "FILES_GET": "#/components/schemas/ConnectionGoogleDriveFilesGetActionSchema",
            "FILES_UPLOAD": "#/components/schemas/ConnectionGoogleDriveFilesUploadActionSchema",
            "FILES_DOWNLOAD": "#/components/schemas/ConnectionGoogleDriveFilesDownloadActionSchema",
            "FILES_MOVE": "#/components/schemas/ConnectionGoogleDriveFilesMoveActionSchema",
            "FILES_COPY": "#/components/schemas/ConnectionGoogleDriveFilesCopyActionSchema",
            "FILES_UPDATE": "#/components/schemas/ConnectionGoogleDriveFilesUpdateActionSchema",
            "FILES_TRASH": "#/components/schemas/ConnectionGoogleDriveFilesTrashActionSchema",
            "FOLDERS_LIST": "#/components/schemas/ConnectionGoogleDriveFoldersListActionSchema",
            "FOLDERS_LIST_ACTIVE": "#/components/schemas/ConnectionGoogleDriveFoldersListActiveActionSchema",
            "FOLDERS_SEARCH": "#/components/schemas/ConnectionGoogleDriveFoldersSearchActionSchema",
            "FOLDERS_CREATE": "#/components/schemas/ConnectionGoogleDriveFoldersCreateActionSchema",
            "FOLDERS_TRASH": "#/components/schemas/ConnectionGoogleDriveFoldersTrashActionSchema"
          }
        },
        "description": "The Googledrive actions schema"
      },
      "ConnectionGoogleCalendarOnCalendarNewEventActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "ON_CALENDAR_NEW_EVENT"
            ],
            "description": "The ON_CALENDAR_NEW_EVENT action of the \"GOOGLE_CALENDAR\" connection"
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection"
          },
          "calendar_id": {
            "type": "string",
            "description": "The calendar to watch for new events",
            "nullable": true
          }
        },
        "required": [
          "action"
        ],
        "description": "The ON_CALENDAR_NEW_EVENT action of the GoogleCalendar service"
      },
      "ConnectionGoogleCalendarTimezonesListActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "TIMEZONES_LIST"
            ],
            "description": "The TIMEZONES_LIST action of the \"GOOGLE_CALENDAR\" connection"
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection"
          }
        },
        "required": [
          "action"
        ],
        "description": "The TIMEZONES_LIST action of the GoogleCalendar service"
      },
      "ConnectionGoogleCalendarCalendarsListActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "CALENDARS_LIST"
            ],
            "description": "The CALENDARS_LIST action of the \"GOOGLE_CALENDAR\" connection"
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection"
          }
        },
        "required": [
          "action"
        ],
        "description": "The CALENDARS_LIST action of the GoogleCalendar service"
      },
      "ConnectionGoogleCalendarCalendarsGetActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "CALENDARS_GET"
            ],
            "description": "The CALENDARS_GET action of the \"GOOGLE_CALENDAR\" connection"
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection"
          },
          "calendar_id": {
            "type": "string",
            "description": "The calendar to retrieve",
            "nullable": true
          }
        },
        "required": [
          "action"
        ],
        "description": "The CALENDARS_GET action of the GoogleCalendar service"
      },
      "ConnectionGoogleCalendarCalendarsCreateActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "CALENDARS_CREATE"
            ],
            "description": "The CALENDARS_CREATE action of the \"GOOGLE_CALENDAR\" connection"
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection"
          },
          "summary": {
            "type": "string",
            "description": "The name of the calendar",
            "nullable": true
          },
          "description": {
            "type": "string",
            "description": "Description of the calendar",
            "nullable": true
          },
          "timezone": {
            "type": "string",
            "description": "The time zone of the calendar (e.g., America/New_York)",
            "nullable": true
          }
        },
        "required": [
          "action"
        ],
        "description": "The CALENDARS_CREATE action of the GoogleCalendar service"
      },
      "ConnectionGoogleCalendarCalendarsUpdateActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "CALENDARS_UPDATE"
            ],
            "description": "The CALENDARS_UPDATE action of the \"GOOGLE_CALENDAR\" connection"
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection"
          },
          "calendar_id": {
            "type": "string",
            "description": "The calendar to update",
            "nullable": true
          },
          "summary": {
            "type": "string",
            "description": "The name of the calendar",
            "nullable": true
          },
          "description": {
            "type": "string",
            "description": "Description of the calendar",
            "nullable": true
          },
          "timezone": {
            "type": "string",
            "description": "The time zone of the calendar (e.g., America/New_York)",
            "nullable": true
          }
        },
        "required": [
          "action"
        ],
        "description": "The CALENDARS_UPDATE action of the GoogleCalendar service"
      },
      "ConnectionGoogleCalendarCalendarsDeleteActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "CALENDARS_DELETE"
            ],
            "description": "The CALENDARS_DELETE action of the \"GOOGLE_CALENDAR\" connection"
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection"
          },
          "calendar_id": {
            "type": "string",
            "description": "The calendar to delete",
            "nullable": true
          }
        },
        "required": [
          "action"
        ],
        "description": "The CALENDARS_DELETE action of the GoogleCalendar service"
      },
      "ConnectionGoogleCalendarCalendarsClearActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "CALENDARS_CLEAR"
            ],
            "description": "The CALENDARS_CLEAR action of the \"GOOGLE_CALENDAR\" connection"
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection"
          },
          "calendar_id": {
            "type": "string",
            "description": "The primary calendar to clear",
            "nullable": true
          }
        },
        "required": [
          "action"
        ],
        "description": "The CALENDARS_CLEAR action of the GoogleCalendar service"
      },
      "ConnectionGoogleCalendarEventsSearchActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "EVENTS_SEARCH"
            ],
            "description": "The EVENTS_SEARCH action of the \"GOOGLE_CALENDAR\" connection"
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection"
          },
          "calendar_id": {
            "type": "string",
            "description": "The calendar to search in",
            "nullable": true
          },
          "q": {
            "type": "string",
            "description": "Free text search terms to find events that match",
            "nullable": true
          },
          "time_min": {
            "nullable": true,
            "description": "Lower bound (inclusive) for an event's start time"
          },
          "time_max": {
            "nullable": true,
            "description": "Upper bound (exclusive) for an event's start time"
          }
        },
        "required": [
          "action"
        ],
        "description": "The EVENTS_SEARCH action of the GoogleCalendar service"
      },
      "ConnectionGoogleCalendarEventsGetActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "EVENTS_GET"
            ],
            "description": "The EVENTS_GET action of the \"GOOGLE_CALENDAR\" connection"
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection"
          },
          "calendar_id": {
            "type": "string",
            "description": "The calendar containing the event",
            "nullable": true
          },
          "event_id": {
            "type": "string",
            "description": "The event to retrieve",
            "nullable": true
          },
          "timezone": {
            "type": "string",
            "description": "Time zone used in the response",
            "nullable": true
          }
        },
        "required": [
          "action"
        ],
        "description": "The EVENTS_GET action of the GoogleCalendar service"
      },
      "ConnectionGoogleCalendarEventsCreateActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "EVENTS_CREATE"
            ],
            "description": "The EVENTS_CREATE action of the \"GOOGLE_CALENDAR\" connection"
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection"
          },
          "calendar_id": {
            "type": "string",
            "description": "The calendar where the event will be created",
            "nullable": true
          },
          "title": {
            "type": "string",
            "description": "Title of the event",
            "nullable": true
          },
          "description": {
            "type": "string",
            "description": "Description of the event",
            "nullable": true
          },
          "start_date": {
            "nullable": true,
            "description": "Start date and time of the event (In ISO format)"
          },
          "end_date": {
            "nullable": true,
            "description": "End date and time of the event (In ISO format)"
          },
          "all_day": {
            "type": "boolean",
            "description": "Whether the event is an all-day event",
            "nullable": true
          },
          "attendees": {
            "type": "string",
            "description": "Email addresses of attendees, separated by commas",
            "nullable": true
          },
          "recurrence_pattern": {
            "type": "string",
            "description": "How often the event repeats",
            "nullable": true,
            "enum": [
              "",
              "RRULE:FREQ=DAILY",
              "RRULE:FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR",
              "RRULE:FREQ=WEEKLY",
              "RRULE:FREQ=WEEKLY;INTERVAL=2",
              "RRULE:FREQ=MONTHLY",
              "RRULE:FREQ=YEARLY"
            ]
          },
          "recurrence_until_date": {
            "nullable": true,
            "description": "When the recurring event should stop"
          },
          "visibility": {
            "type": "string",
            "description": "Visibility of the event",
            "nullable": true,
            "enum": [
              "default",
              "public",
              "private"
            ]
          },
          "color_id": {
            "type": "string",
            "description": "Color of the event",
            "nullable": true,
            "enum": [
              "",
              "1",
              "2",
              "3",
              "4",
              "5",
              "6",
              "7",
              "8",
              "9",
              "10",
              "11"
            ]
          },
          "reminder_method": {
            "type": "string",
            "description": "How the reminder should be delivered",
            "nullable": true,
            "enum": [
              "email",
              "popup"
            ]
          },
          "reminder_minutes": {
            "type": "string",
            "description": "How many minutes before the event to send the reminder",
            "nullable": true,
            "enum": [
              "5",
              "10",
              "15",
              "30",
              "60",
              "120",
              "1440",
              "2880",
              "10080"
            ]
          },
          "send_updates": {
            "type": "string",
            "description": "Whether to send notifications about the event",
            "nullable": true,
            "enum": [
              "none",
              "all",
              "externalOnly"
            ]
          },
          "location": {
            "type": "string",
            "description": "Location of the event",
            "nullable": true
          }
        },
        "required": [
          "action"
        ],
        "description": "The EVENTS_CREATE action of the GoogleCalendar service"
      },
      "ConnectionGoogleCalendarEventsUpdateActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "EVENTS_UPDATE"
            ],
            "description": "The EVENTS_UPDATE action of the \"GOOGLE_CALENDAR\" connection"
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection"
          },
          "calendar_id": {
            "type": "string",
            "description": "The calendar where the event will be created",
            "nullable": true
          },
          "event_id": {
            "type": "string",
            "description": "The event to update",
            "nullable": true
          },
          "title": {
            "type": "string",
            "description": "Title of the event",
            "nullable": true
          },
          "description": {
            "type": "string",
            "description": "Description of the event",
            "nullable": true
          },
          "start_date": {
            "nullable": true,
            "description": "Start date and time of the event (In ISO format)"
          },
          "end_date": {
            "nullable": true,
            "description": "End date and time of the event (In ISO format)"
          },
          "all_day": {
            "type": "boolean",
            "description": "Whether the event is an all-day event",
            "nullable": true
          },
          "attendees": {
            "type": "string",
            "description": "Email addresses of attendees, separated by commas",
            "nullable": true
          },
          "recurrence_pattern": {
            "type": "string",
            "description": "How often the event repeats",
            "nullable": true,
            "enum": [
              "",
              "RRULE:FREQ=DAILY",
              "RRULE:FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR",
              "RRULE:FREQ=WEEKLY",
              "RRULE:FREQ=WEEKLY;INTERVAL=2",
              "RRULE:FREQ=MONTHLY",
              "RRULE:FREQ=YEARLY"
            ]
          },
          "recurrence_until_date": {
            "nullable": true,
            "description": "When the recurring event should stop"
          },
          "visibility": {
            "type": "string",
            "description": "Visibility of the event",
            "nullable": true,
            "enum": [
              "default",
              "public",
              "private"
            ]
          },
          "color_id": {
            "type": "string",
            "description": "Color of the event",
            "nullable": true,
            "enum": [
              "",
              "1",
              "2",
              "3",
              "4",
              "5",
              "6",
              "7",
              "8",
              "9",
              "10",
              "11"
            ]
          },
          "reminder_method": {
            "type": "string",
            "description": "How the reminder should be delivered",
            "nullable": true,
            "enum": [
              "email",
              "popup"
            ]
          },
          "reminder_minutes": {
            "type": "string",
            "description": "How many minutes before the event to send the reminder",
            "nullable": true,
            "enum": [
              "5",
              "10",
              "15",
              "30",
              "60",
              "120",
              "1440",
              "2880",
              "10080"
            ]
          },
          "send_updates": {
            "type": "string",
            "description": "Whether to send notifications about the event",
            "nullable": true,
            "enum": [
              "none",
              "all",
              "externalOnly"
            ]
          },
          "location": {
            "type": "string",
            "description": "Location of the event",
            "nullable": true
          }
        },
        "required": [
          "action"
        ],
        "description": "The EVENTS_UPDATE action of the GoogleCalendar service"
      },
      "ConnectionGoogleCalendarEventsDeleteActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "EVENTS_DELETE"
            ],
            "description": "The EVENTS_DELETE action of the \"GOOGLE_CALENDAR\" connection"
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection"
          },
          "calendar_id": {
            "type": "string",
            "description": "The calendar containing the event",
            "nullable": true
          },
          "event_id": {
            "type": "string",
            "description": "The event to delete",
            "nullable": true
          },
          "send_notifications": {
            "type": "boolean",
            "description": "Whether to send notifications about the deletion",
            "nullable": true
          },
          "send_updates": {
            "type": "string",
            "description": "How to notify attendees about the deletion",
            "nullable": true,
            "enum": [
              "none",
              "all",
              "externalOnly"
            ]
          }
        },
        "required": [
          "action"
        ],
        "description": "The EVENTS_DELETE action of the GoogleCalendar service"
      },
      "ConnectionGoogleCalendarEventsQuickAddActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "EVENTS_QUICK_ADD"
            ],
            "description": "The EVENTS_QUICK_ADD action of the \"GOOGLE_CALENDAR\" connection"
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection"
          },
          "calendar_id": {
            "type": "string",
            "description": "The calendar where the event will be created",
            "nullable": true
          },
          "event_description": {
            "type": "string",
            "description": "Natural language expression describing the event (e.g., \"Dinner with John tomorrow at 7pm\")",
            "nullable": true
          },
          "send_updates": {
            "type": "string",
            "description": "Whether to send notifications about the event",
            "nullable": true,
            "enum": [
              "none",
              "all",
              "externalOnly"
            ]
          }
        },
        "required": [
          "action"
        ],
        "description": "The EVENTS_QUICK_ADD action of the GoogleCalendar service"
      },
      "ConnectionGoogleCalendarActionSchema": {
        "oneOf": [
          {
            "$ref": "#/components/schemas/ConnectionGoogleCalendarOnCalendarNewEventActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionGoogleCalendarTimezonesListActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionGoogleCalendarCalendarsListActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionGoogleCalendarCalendarsGetActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionGoogleCalendarCalendarsCreateActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionGoogleCalendarCalendarsUpdateActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionGoogleCalendarCalendarsDeleteActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionGoogleCalendarCalendarsClearActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionGoogleCalendarEventsSearchActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionGoogleCalendarEventsGetActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionGoogleCalendarEventsCreateActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionGoogleCalendarEventsUpdateActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionGoogleCalendarEventsDeleteActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionGoogleCalendarEventsQuickAddActionSchema"
          }
        ],
        "discriminator": {
          "propertyName": "action",
          "mapping": {
            "ON_CALENDAR_NEW_EVENT": "#/components/schemas/ConnectionGoogleCalendarOnCalendarNewEventActionSchema",
            "TIMEZONES_LIST": "#/components/schemas/ConnectionGoogleCalendarTimezonesListActionSchema",
            "CALENDARS_LIST": "#/components/schemas/ConnectionGoogleCalendarCalendarsListActionSchema",
            "CALENDARS_GET": "#/components/schemas/ConnectionGoogleCalendarCalendarsGetActionSchema",
            "CALENDARS_CREATE": "#/components/schemas/ConnectionGoogleCalendarCalendarsCreateActionSchema",
            "CALENDARS_UPDATE": "#/components/schemas/ConnectionGoogleCalendarCalendarsUpdateActionSchema",
            "CALENDARS_DELETE": "#/components/schemas/ConnectionGoogleCalendarCalendarsDeleteActionSchema",
            "CALENDARS_CLEAR": "#/components/schemas/ConnectionGoogleCalendarCalendarsClearActionSchema",
            "EVENTS_SEARCH": "#/components/schemas/ConnectionGoogleCalendarEventsSearchActionSchema",
            "EVENTS_GET": "#/components/schemas/ConnectionGoogleCalendarEventsGetActionSchema",
            "EVENTS_CREATE": "#/components/schemas/ConnectionGoogleCalendarEventsCreateActionSchema",
            "EVENTS_UPDATE": "#/components/schemas/ConnectionGoogleCalendarEventsUpdateActionSchema",
            "EVENTS_DELETE": "#/components/schemas/ConnectionGoogleCalendarEventsDeleteActionSchema",
            "EVENTS_QUICK_ADD": "#/components/schemas/ConnectionGoogleCalendarEventsQuickAddActionSchema"
          }
        },
        "description": "The Googlecalendar actions schema"
      },
      "ConnectionGmailOnReceivedEmailActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "ON_RECEIVED_EMAIL"
            ],
            "description": "The ON_RECEIVED_EMAIL action of the \"GMAIL\" connection"
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection"
          },
          "label_ids": {
            "type": "array",
            "description": "Labels required from the received email",
            "nullable": true,
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "action"
        ],
        "description": "The ON_RECEIVED_EMAIL action of the Gmail service"
      },
      "ConnectionGmailOnSentEmailActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "ON_SENT_EMAIL"
            ],
            "description": "The ON_SENT_EMAIL action of the \"GMAIL\" connection"
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection"
          },
          "label_ids": {
            "type": "array",
            "description": "Labels required from the sent email",
            "nullable": true,
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "action"
        ],
        "description": "The ON_SENT_EMAIL action of the Gmail service"
      },
      "ConnectionGmailEmailsSearchActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "EMAILS_SEARCH"
            ],
            "description": "The EMAILS_SEARCH action of the \"GMAIL\" connection"
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection"
          },
          "search": {
            "type": "string",
            "description": "Search in Gmail format (e.g. \"from:example@gmail.com\" or \"is:unread\")",
            "nullable": true
          },
          "label_ids": {
            "type": "array",
            "description": "Labels to filter the search results",
            "nullable": true,
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "action"
        ],
        "description": "The EMAILS_SEARCH action of the Gmail service"
      },
      "ConnectionGmailEmailsSendActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "EMAILS_SEND"
            ],
            "description": "The EMAILS_SEND action of the \"GMAIL\" connection"
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection"
          },
          "from": {
            "type": "string",
            "description": "The email address to send the email from",
            "nullable": true
          },
          "recipients": {
            "type": "string",
            "description": "Email addresses of the recipients, separated by commas",
            "nullable": true
          },
          "subject": {
            "type": "string",
            "description": "Subject",
            "nullable": true
          },
          "message": {
            "type": "string",
            "description": "Plain text or HTML content of the email",
            "nullable": true
          },
          "label_ids": {
            "type": "array",
            "description": "Labels to apply to the email",
            "nullable": true,
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "action"
        ],
        "description": "The EMAILS_SEND action of the Gmail service"
      },
      "ConnectionGmailEmailsReplyActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "EMAILS_REPLY"
            ],
            "description": "The EMAILS_REPLY action of the \"GMAIL\" connection"
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection"
          },
          "message_id": {
            "type": "string",
            "description": "The ID of the email to reply to",
            "nullable": true
          },
          "from": {
            "type": "string",
            "description": "The email address to send the email from",
            "nullable": true
          },
          "recipients": {
            "type": "string",
            "description": "Email addresses of the additional recipients, separated by commas",
            "nullable": true
          },
          "message": {
            "type": "string",
            "description": "Plain text or HTML content of the email",
            "nullable": true
          }
        },
        "required": [
          "action"
        ],
        "description": "The EMAILS_REPLY action of the Gmail service"
      },
      "ConnectionGmailEmailsGetActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "EMAILS_GET"
            ],
            "description": "The EMAILS_GET action of the \"GMAIL\" connection"
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection"
          },
          "message_id": {
            "type": "string",
            "description": "The ID of the email message to retrieve",
            "nullable": true
          }
        },
        "required": [
          "action"
        ],
        "description": "The EMAILS_GET action of the Gmail service"
      },
      "ConnectionGmailEmailsUpdateActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "EMAILS_UPDATE"
            ],
            "description": "The EMAILS_UPDATE action of the \"GMAIL\" connection"
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection"
          },
          "message_id": {
            "type": "string",
            "description": "The ID of the email to update",
            "nullable": true
          },
          "add_label_ids": {
            "type": "array",
            "description": "Labels to add to the email",
            "nullable": true,
            "items": {
              "type": "string"
            }
          },
          "remove_label_ids": {
            "type": "array",
            "description": "Labels to remove from the email",
            "nullable": true,
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "action"
        ],
        "description": "The EMAILS_UPDATE action of the Gmail service"
      },
      "ConnectionGmailEmailsAttachmentsDownloadActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "EMAILS_ATTACHMENTS_DOWNLOAD"
            ],
            "description": "The EMAILS_ATTACHMENTS_DOWNLOAD action of the \"GMAIL\" connection"
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection"
          },
          "message_id": {
            "type": "string",
            "description": "The ID of the email to download attachments from",
            "nullable": true
          },
          "storage": {
            "type": "string",
            "description": "Persistent storage will keep the file even after the run finishes. Temporary storage will delete the file after 24 hours",
            "nullable": true,
            "enum": [
              "PERSISTENT",
              "TEMPORARY"
            ]
          },
          "visibility": {
            "type": "string",
            "description": "Whether the file is private or public, private files URLs are signed with a token and can be accessed temporarily",
            "nullable": true,
            "enum": [
              "PRIVATE",
              "PUBLIC"
            ]
          }
        },
        "required": [
          "action"
        ],
        "description": "The EMAILS_ATTACHMENTS_DOWNLOAD action of the Gmail service"
      },
      "ConnectionGmailDraftsSearchActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "DRAFTS_SEARCH"
            ],
            "description": "The DRAFTS_SEARCH action of the \"GMAIL\" connection"
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection"
          },
          "search": {
            "type": "string",
            "description": "Search in Gmail format (e.g. \"from:example@gmail.com\" or \"is:unread\")",
            "nullable": true
          }
        },
        "required": [
          "action"
        ],
        "description": "The DRAFTS_SEARCH action of the Gmail service"
      },
      "ConnectionGmailDraftsSendActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "DRAFTS_SEND"
            ],
            "description": "The DRAFTS_SEND action of the \"GMAIL\" connection"
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection"
          },
          "draft_id": {
            "type": "string",
            "description": "The ID of the draft to send",
            "nullable": true
          },
          "label_ids": {
            "type": "array",
            "description": "Labels to add to the draft",
            "nullable": true,
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "action"
        ],
        "description": "The DRAFTS_SEND action of the Gmail service"
      },
      "ConnectionGmailDraftsCreateActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "DRAFTS_CREATE"
            ],
            "description": "The DRAFTS_CREATE action of the \"GMAIL\" connection"
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection"
          },
          "from": {
            "type": "string",
            "description": "The email address to send the email from",
            "nullable": true
          },
          "recipients": {
            "type": "string",
            "description": "Email addresses of the recipients, separated by commas",
            "nullable": true
          },
          "subject": {
            "type": "string",
            "description": "Subject",
            "nullable": true
          },
          "message": {
            "type": "string",
            "description": "Plain text or HTML content of the email",
            "nullable": true
          }
        },
        "required": [
          "action"
        ],
        "description": "The DRAFTS_CREATE action of the Gmail service"
      },
      "ConnectionGmailLabelsListActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "LABELS_LIST"
            ],
            "description": "The LABELS_LIST action of the \"GMAIL\" connection"
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection"
          }
        },
        "required": [
          "action"
        ],
        "description": "The LABELS_LIST action of the Gmail service"
      },
      "ConnectionGmailLabelsCreateActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "LABELS_CREATE"
            ],
            "description": "The LABELS_CREATE action of the \"GMAIL\" connection"
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection"
          },
          "name": {
            "type": "string",
            "description": "Name of the new label to create",
            "nullable": true
          },
          "text_color": {
            "type": "string",
            "description": "Color for the label text",
            "nullable": true,
            "enum": [
              "#000000",
              "#434343",
              "#666666",
              "#999999",
              "#ffffff",
              "#fb4c2f",
              "#ffad47",
              "#fad165",
              "#16a766",
              "#43d692",
              "#4a86e8",
              "#a479e2",
              "#f691b3",
              "#3c78d8",
              "#0b804b"
            ]
          },
          "background_color": {
            "type": "string",
            "description": "Color for the label background",
            "nullable": true,
            "enum": [
              "#ffffff",
              "#efefef",
              "#666666",
              "#000000",
              "#fb4c2f",
              "#ff7537",
              "#fad165",
              "#16a766",
              "#c6f3de",
              "#4a86e8",
              "#c9daf8",
              "#8e63ce",
              "#fcdee8",
              "#ffad46",
              "#0b804b"
            ]
          },
          "label_list_visibility": {
            "type": "string",
            "description": "The visibility of the label in the label list in the Gmail web interface",
            "nullable": true,
            "enum": [
              "labelShow",
              "labelShowIfUnread",
              "labelHide"
            ]
          },
          "message_list_visibility": {
            "type": "string",
            "description": "The visibility of the label in the label list in the Gmail web interface",
            "nullable": true,
            "enum": [
              "show",
              "hide"
            ]
          }
        },
        "required": [
          "action"
        ],
        "description": "The LABELS_CREATE action of the Gmail service"
      },
      "ConnectionGmailSettingsSendsAsListActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "SETTINGS_SENDS_AS_LIST"
            ],
            "description": "The SETTINGS_SENDS_AS_LIST action of the \"GMAIL\" connection"
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection"
          }
        },
        "required": [
          "action"
        ],
        "description": "The SETTINGS_SENDS_AS_LIST action of the Gmail service"
      },
      "ConnectionGmailActionSchema": {
        "oneOf": [
          {
            "$ref": "#/components/schemas/ConnectionGmailOnReceivedEmailActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionGmailOnSentEmailActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionGmailEmailsSearchActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionGmailEmailsSendActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionGmailEmailsReplyActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionGmailEmailsGetActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionGmailEmailsUpdateActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionGmailEmailsAttachmentsDownloadActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionGmailDraftsSearchActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionGmailDraftsSendActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionGmailDraftsCreateActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionGmailLabelsListActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionGmailLabelsCreateActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionGmailSettingsSendsAsListActionSchema"
          }
        ],
        "discriminator": {
          "propertyName": "action",
          "mapping": {
            "ON_RECEIVED_EMAIL": "#/components/schemas/ConnectionGmailOnReceivedEmailActionSchema",
            "ON_SENT_EMAIL": "#/components/schemas/ConnectionGmailOnSentEmailActionSchema",
            "EMAILS_SEARCH": "#/components/schemas/ConnectionGmailEmailsSearchActionSchema",
            "EMAILS_SEND": "#/components/schemas/ConnectionGmailEmailsSendActionSchema",
            "EMAILS_REPLY": "#/components/schemas/ConnectionGmailEmailsReplyActionSchema",
            "EMAILS_GET": "#/components/schemas/ConnectionGmailEmailsGetActionSchema",
            "EMAILS_UPDATE": "#/components/schemas/ConnectionGmailEmailsUpdateActionSchema",
            "EMAILS_ATTACHMENTS_DOWNLOAD": "#/components/schemas/ConnectionGmailEmailsAttachmentsDownloadActionSchema",
            "DRAFTS_SEARCH": "#/components/schemas/ConnectionGmailDraftsSearchActionSchema",
            "DRAFTS_SEND": "#/components/schemas/ConnectionGmailDraftsSendActionSchema",
            "DRAFTS_CREATE": "#/components/schemas/ConnectionGmailDraftsCreateActionSchema",
            "LABELS_LIST": "#/components/schemas/ConnectionGmailLabelsListActionSchema",
            "LABELS_CREATE": "#/components/schemas/ConnectionGmailLabelsCreateActionSchema",
            "SETTINGS_SENDS_AS_LIST": "#/components/schemas/ConnectionGmailSettingsSendsAsListActionSchema"
          }
        },
        "description": "The Gmail actions schema"
      },
      "ConnectionSlackOnChannelNewMessageActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "ON_CHANNEL_NEW_MESSAGE"
            ],
            "description": "The ON_CHANNEL_NEW_MESSAGE action of the \"SLACK\" connection"
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection"
          },
          "channel": {
            "type": "string",
            "description": "The channel to watch for new messages",
            "nullable": true
          },
          "message_source": {
            "type": "string",
            "description": "Message Source",
            "nullable": true,
            "enum": [
              "all",
              "users",
              "bots"
            ]
          }
        },
        "required": [
          "action"
        ],
        "description": "The ON_CHANNEL_NEW_MESSAGE action of the Slack service"
      },
      "ConnectionSlackChannelsListActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "CHANNELS_LIST"
            ],
            "description": "The CHANNELS_LIST action of the \"SLACK\" connection"
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection"
          }
        },
        "required": [
          "action"
        ],
        "description": "The CHANNELS_LIST action of the Slack service"
      },
      "ConnectionSlackChannelsMessagesListActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "CHANNELS_MESSAGES_LIST"
            ],
            "description": "The CHANNELS_MESSAGES_LIST action of the \"SLACK\" connection"
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection"
          },
          "channel": {
            "type": "string",
            "description": "Channel ID to list messages from",
            "nullable": true
          }
        },
        "required": [
          "action"
        ],
        "description": "The CHANNELS_MESSAGES_LIST action of the Slack service"
      },
      "ConnectionSlackSearchActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "SEARCH"
            ],
            "description": "The SEARCH action of the \"SLACK\" connection"
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection"
          },
          "search": {
            "type": "string",
            "description": "Search query to find messages and files",
            "nullable": true
          },
          "sort_field": {
            "type": "string",
            "description": "Field to sort results by",
            "nullable": true,
            "enum": [
              "score",
              "timestamp"
            ]
          },
          "sort_direction": {
            "type": "string",
            "description": "Direction to sort results",
            "nullable": true,
            "enum": [
              "desc",
              "asc"
            ]
          }
        },
        "required": [
          "action"
        ],
        "description": "The SEARCH action of the Slack service"
      },
      "ConnectionSlackChannelsSendMessageActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "CHANNELS_SEND_MESSAGE"
            ],
            "description": "The CHANNELS_SEND_MESSAGE action of the \"SLACK\" connection"
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection"
          },
          "channel": {
            "type": "string",
            "description": "Channel name or ID where the message will be sent, make sure the bot is a member of private channels.",
            "nullable": true
          },
          "message": {
            "type": "string",
            "description": "Message",
            "nullable": true
          },
          "file_urls": {
            "type": "array",
            "description": "URLs of the files to upload",
            "nullable": true,
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "action"
        ],
        "description": "The CHANNELS_SEND_MESSAGE action of the Slack service"
      },
      "ConnectionSlackChannelsReplyMessageActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "CHANNELS_REPLY_MESSAGE"
            ],
            "description": "The CHANNELS_REPLY_MESSAGE action of the \"SLACK\" connection"
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection"
          },
          "channel": {
            "type": "string",
            "description": "Channel ID where the thread is located",
            "nullable": true
          },
          "message": {
            "type": "string",
            "description": "Text of the message to send in the thread",
            "nullable": true
          },
          "thread_ts": {
            "type": "string",
            "description": "Timestamp of the parent message to reply to (e.g., 1744483861.471079)",
            "nullable": true
          },
          "file_urls": {
            "type": "array",
            "description": "URLs of the files to upload",
            "nullable": true,
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "action"
        ],
        "description": "The CHANNELS_REPLY_MESSAGE action of the Slack service"
      },
      "ConnectionSlackActionSchema": {
        "oneOf": [
          {
            "$ref": "#/components/schemas/ConnectionSlackOnChannelNewMessageActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionSlackChannelsListActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionSlackChannelsMessagesListActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionSlackSearchActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionSlackChannelsSendMessageActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionSlackChannelsReplyMessageActionSchema"
          }
        ],
        "discriminator": {
          "propertyName": "action",
          "mapping": {
            "ON_CHANNEL_NEW_MESSAGE": "#/components/schemas/ConnectionSlackOnChannelNewMessageActionSchema",
            "CHANNELS_LIST": "#/components/schemas/ConnectionSlackChannelsListActionSchema",
            "CHANNELS_MESSAGES_LIST": "#/components/schemas/ConnectionSlackChannelsMessagesListActionSchema",
            "SEARCH": "#/components/schemas/ConnectionSlackSearchActionSchema",
            "CHANNELS_SEND_MESSAGE": "#/components/schemas/ConnectionSlackChannelsSendMessageActionSchema",
            "CHANNELS_REPLY_MESSAGE": "#/components/schemas/ConnectionSlackChannelsReplyMessageActionSchema"
          }
        },
        "description": "The Slack actions schema"
      },
      "ConnectionNotionOnDatabasesNewRowActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "ON_DATABASES_NEW_ROW"
            ],
            "description": "The ON_DATABASES_NEW_ROW action of the \"NOTION\" connection"
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection"
          },
          "database_id": {
            "type": "string",
            "description": "The database to watch for new rows",
            "nullable": true
          }
        },
        "required": [
          "action"
        ],
        "description": "The ON_DATABASES_NEW_ROW action of the Notion service"
      },
      "ConnectionNotionOnDatabasesUpdatedRowActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "ON_DATABASES_UPDATED_ROW"
            ],
            "description": "The ON_DATABASES_UPDATED_ROW action of the \"NOTION\" connection"
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection"
          },
          "database_id": {
            "type": "string",
            "description": "Database to watch for row updates",
            "nullable": true
          },
          "watch_properties": {
            "type": "array",
            "description": "Triggers only when selected properties change. Leave empty to watch all.",
            "nullable": true,
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "action"
        ],
        "description": "The ON_DATABASES_UPDATED_ROW action of the Notion service"
      },
      "ConnectionNotionSearchActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "SEARCH"
            ],
            "description": "The SEARCH action of the \"NOTION\" connection"
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection"
          },
          "search": {
            "type": "string",
            "description": "Text to search for across all properties",
            "nullable": true
          }
        },
        "required": [
          "action"
        ],
        "description": "The SEARCH action of the Notion service"
      },
      "ConnectionNotionPagesListActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "PAGES_LIST"
            ],
            "description": "The PAGES_LIST action of the \"NOTION\" connection"
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection"
          }
        },
        "required": [
          "action"
        ],
        "description": "The PAGES_LIST action of the Notion service"
      },
      "ConnectionNotionPagesCreateActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "PAGES_CREATE"
            ],
            "description": "The PAGES_CREATE action of the \"NOTION\" connection"
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection"
          },
          "parent_id": {
            "type": "string",
            "description": "Parent page where will be created the new page",
            "nullable": true
          },
          "title": {
            "type": "string",
            "description": "Title of the new page",
            "nullable": true
          },
          "content": {
            "type": "string",
            "description": "It can contain either markdown text or a JSON array of Notion blocks (with type, content, children, etc.).",
            "nullable": true
          }
        },
        "required": [
          "action"
        ],
        "description": "The PAGES_CREATE action of the Notion service"
      },
      "ConnectionNotionPagesGetContentActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "PAGES_GET_CONTENT"
            ],
            "description": "The PAGES_GET_CONTENT action of the \"NOTION\" connection"
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection"
          },
          "page_id": {
            "type": "string",
            "description": "Page to get content from",
            "nullable": true
          },
          "recursive": {
            "type": "boolean",
            "description": "Load nested child content from the page",
            "nullable": true
          }
        },
        "required": [
          "action"
        ],
        "description": "The PAGES_GET_CONTENT action of the Notion service"
      },
      "ConnectionNotionPagesAddContentActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "PAGES_ADD_CONTENT"
            ],
            "description": "The PAGES_ADD_CONTENT action of the \"NOTION\" connection"
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection"
          },
          "page_id": {
            "type": "string",
            "description": "Page to add content to",
            "nullable": true
          },
          "content": {
            "type": "string",
            "description": "It can contain either markdown text or a JSON array of Notion blocks (with type, content, children, etc.).",
            "nullable": true
          }
        },
        "required": [
          "action"
        ],
        "description": "The PAGES_ADD_CONTENT action of the Notion service"
      },
      "ConnectionNotionPagesAddCommentActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "PAGES_ADD_COMMENT"
            ],
            "description": "The PAGES_ADD_COMMENT action of the \"NOTION\" connection"
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection"
          },
          "page_id": {
            "type": "string",
            "description": "Page to add the comment to",
            "nullable": true
          },
          "comment": {
            "type": "string",
            "description": "Text of the comment to add",
            "nullable": true
          }
        },
        "required": [
          "action"
        ],
        "description": "The PAGES_ADD_COMMENT action of the Notion service"
      },
      "ConnectionNotionDatabasesSearchActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "DATABASES_SEARCH"
            ],
            "description": "The DATABASES_SEARCH action of the \"NOTION\" connection"
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection"
          },
          "database_id": {
            "type": "string",
            "description": "The database to search in",
            "nullable": true
          },
          "search": {
            "type": "string",
            "description": "Search to filter across all properties",
            "nullable": true
          },
          "sort_direction": {
            "type": "string",
            "description": "Whether to sort the results in ascending or descending order",
            "nullable": true,
            "enum": [
              "descending",
              "ascending"
            ]
          }
        },
        "required": [
          "action"
        ],
        "description": "The DATABASES_SEARCH action of the Notion service"
      },
      "ConnectionNotionDatabasesListActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "DATABASES_LIST"
            ],
            "description": "The DATABASES_LIST action of the \"NOTION\" connection"
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection"
          }
        },
        "required": [
          "action"
        ],
        "description": "The DATABASES_LIST action of the Notion service"
      },
      "ConnectionNotionDatabasesPropertiesListActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "DATABASES_PROPERTIES_LIST"
            ],
            "description": "The DATABASES_PROPERTIES_LIST action of the \"NOTION\" connection"
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection"
          },
          "database_id": {
            "type": "string",
            "description": "Database to get properties from",
            "nullable": true
          }
        },
        "required": [
          "action"
        ],
        "description": "The DATABASES_PROPERTIES_LIST action of the Notion service"
      },
      "ConnectionNotionDatabasesRowsListActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "DATABASES_ROWS_LIST"
            ],
            "description": "The DATABASES_ROWS_LIST action of the \"NOTION\" connection"
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection"
          },
          "database_id": {
            "type": "string",
            "description": "Database to list rows from",
            "nullable": true
          }
        },
        "required": [
          "action"
        ],
        "description": "The DATABASES_ROWS_LIST action of the Notion service"
      },
      "ConnectionNotionDatabasesAddRowActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "DATABASES_ADD_ROW"
            ],
            "description": "The DATABASES_ADD_ROW action of the \"NOTION\" connection"
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection"
          },
          "database_id": {
            "type": "string",
            "description": "Database where the row will be added",
            "nullable": true
          },
          "properties": {
            "nullable": true,
            "description": "Row properties to add"
          }
        },
        "required": [
          "action"
        ],
        "description": "The DATABASES_ADD_ROW action of the Notion service"
      },
      "ConnectionNotionDatabasesUpdateRowActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "DATABASES_UPDATE_ROW"
            ],
            "description": "The DATABASES_UPDATE_ROW action of the \"NOTION\" connection"
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection"
          },
          "database_id": {
            "type": "string",
            "description": "Database containing the row to update",
            "nullable": true
          },
          "page_id": {
            "type": "string",
            "description": "Select the row (page) you want to update",
            "nullable": true
          },
          "properties": {
            "nullable": true,
            "description": "Row properties to update"
          }
        },
        "required": [
          "action"
        ],
        "description": "The DATABASES_UPDATE_ROW action of the Notion service"
      },
      "ConnectionNotionActionSchema": {
        "oneOf": [
          {
            "$ref": "#/components/schemas/ConnectionNotionOnDatabasesNewRowActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionNotionOnDatabasesUpdatedRowActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionNotionSearchActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionNotionPagesListActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionNotionPagesCreateActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionNotionPagesGetContentActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionNotionPagesAddContentActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionNotionPagesAddCommentActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionNotionDatabasesSearchActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionNotionDatabasesListActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionNotionDatabasesPropertiesListActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionNotionDatabasesRowsListActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionNotionDatabasesAddRowActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionNotionDatabasesUpdateRowActionSchema"
          }
        ],
        "discriminator": {
          "propertyName": "action",
          "mapping": {
            "ON_DATABASES_NEW_ROW": "#/components/schemas/ConnectionNotionOnDatabasesNewRowActionSchema",
            "ON_DATABASES_UPDATED_ROW": "#/components/schemas/ConnectionNotionOnDatabasesUpdatedRowActionSchema",
            "SEARCH": "#/components/schemas/ConnectionNotionSearchActionSchema",
            "PAGES_LIST": "#/components/schemas/ConnectionNotionPagesListActionSchema",
            "PAGES_CREATE": "#/components/schemas/ConnectionNotionPagesCreateActionSchema",
            "PAGES_GET_CONTENT": "#/components/schemas/ConnectionNotionPagesGetContentActionSchema",
            "PAGES_ADD_CONTENT": "#/components/schemas/ConnectionNotionPagesAddContentActionSchema",
            "PAGES_ADD_COMMENT": "#/components/schemas/ConnectionNotionPagesAddCommentActionSchema",
            "DATABASES_SEARCH": "#/components/schemas/ConnectionNotionDatabasesSearchActionSchema",
            "DATABASES_LIST": "#/components/schemas/ConnectionNotionDatabasesListActionSchema",
            "DATABASES_PROPERTIES_LIST": "#/components/schemas/ConnectionNotionDatabasesPropertiesListActionSchema",
            "DATABASES_ROWS_LIST": "#/components/schemas/ConnectionNotionDatabasesRowsListActionSchema",
            "DATABASES_ADD_ROW": "#/components/schemas/ConnectionNotionDatabasesAddRowActionSchema",
            "DATABASES_UPDATE_ROW": "#/components/schemas/ConnectionNotionDatabasesUpdateRowActionSchema"
          }
        },
        "description": "The Notion actions schema"
      },
      "ConnectionSalesforceTimezonesListActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "TIMEZONES_LIST"
            ],
            "description": "The TIMEZONES_LIST action of the \"SALESFORCE\" connection"
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection"
          }
        },
        "required": [
          "action"
        ],
        "description": "The TIMEZONES_LIST action of the Salesforce service"
      },
      "ConnectionSalesforceOnContactsNewActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "ON_CONTACTS_NEW"
            ],
            "description": "The ON_CONTACTS_NEW action of the \"SALESFORCE\" connection"
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection"
          },
          "schedule": {
            "type": "string",
            "description": "The interval (seconds) or cron expression",
            "nullable": true,
            "enum": [
              "60",
              "300",
              "900",
              "1800",
              "3600",
              "86400",
              "604800",
              "2592000",
              "0 0 * * 1",
              "0 0 * * 2",
              "0 0 * * 3",
              "0 0 * * 4",
              "0 0 * * 5",
              "0 0 * * 6",
              "0 0 * * 0",
              "0 0 * * 1-5",
              "0 0 * * 6,0"
            ]
          },
          "timezone": {
            "type": "string",
            "description": "The timezone to use for the schedule",
            "nullable": true
          }
        },
        "required": [
          "action"
        ],
        "description": "The ON_CONTACTS_NEW action of the Salesforce service"
      },
      "ConnectionSalesforceOnLeadsNewActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "ON_LEADS_NEW"
            ],
            "description": "The ON_LEADS_NEW action of the \"SALESFORCE\" connection"
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection"
          },
          "schedule": {
            "type": "string",
            "description": "The interval (seconds) or cron expression",
            "nullable": true,
            "enum": [
              "60",
              "300",
              "900",
              "1800",
              "3600",
              "86400",
              "604800",
              "2592000",
              "0 0 * * 1",
              "0 0 * * 2",
              "0 0 * * 3",
              "0 0 * * 4",
              "0 0 * * 5",
              "0 0 * * 6",
              "0 0 * * 0",
              "0 0 * * 1-5",
              "0 0 * * 6,0"
            ]
          },
          "timezone": {
            "type": "string",
            "description": "The timezone to use for the schedule",
            "nullable": true
          }
        },
        "required": [
          "action"
        ],
        "description": "The ON_LEADS_NEW action of the Salesforce service"
      },
      "ConnectionSalesforceOnOpportunitiesNewActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "ON_OPPORTUNITIES_NEW"
            ],
            "description": "The ON_OPPORTUNITIES_NEW action of the \"SALESFORCE\" connection"
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection"
          },
          "schedule": {
            "type": "string",
            "description": "The interval (seconds) or cron expression",
            "nullable": true,
            "enum": [
              "60",
              "300",
              "900",
              "1800",
              "3600",
              "86400",
              "604800",
              "2592000",
              "0 0 * * 1",
              "0 0 * * 2",
              "0 0 * * 3",
              "0 0 * * 4",
              "0 0 * * 5",
              "0 0 * * 6",
              "0 0 * * 0",
              "0 0 * * 1-5",
              "0 0 * * 6,0"
            ]
          },
          "timezone": {
            "type": "string",
            "description": "The timezone to use for the schedule",
            "nullable": true
          }
        },
        "required": [
          "action"
        ],
        "description": "The ON_OPPORTUNITIES_NEW action of the Salesforce service"
      },
      "ConnectionSalesforceOnCasesNewActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "ON_CASES_NEW"
            ],
            "description": "The ON_CASES_NEW action of the \"SALESFORCE\" connection"
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection"
          },
          "schedule": {
            "type": "string",
            "description": "The interval (seconds) or cron expression",
            "nullable": true,
            "enum": [
              "60",
              "300",
              "900",
              "1800",
              "3600",
              "86400",
              "604800",
              "2592000",
              "0 0 * * 1",
              "0 0 * * 2",
              "0 0 * * 3",
              "0 0 * * 4",
              "0 0 * * 5",
              "0 0 * * 6",
              "0 0 * * 0",
              "0 0 * * 1-5",
              "0 0 * * 6,0"
            ]
          },
          "timezone": {
            "type": "string",
            "description": "The timezone to use for the schedule",
            "nullable": true
          }
        },
        "required": [
          "action"
        ],
        "description": "The ON_CASES_NEW action of the Salesforce service"
      },
      "ConnectionSalesforceOnOpportunitiesStageChangeActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "ON_OPPORTUNITIES_STAGE_CHANGE"
            ],
            "description": "The ON_OPPORTUNITIES_STAGE_CHANGE action of the \"SALESFORCE\" connection"
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection"
          },
          "schedule": {
            "type": "string",
            "description": "The interval (seconds) or cron expression",
            "nullable": true,
            "enum": [
              "60",
              "300",
              "900",
              "1800",
              "3600",
              "86400",
              "604800",
              "2592000",
              "0 0 * * 1",
              "0 0 * * 2",
              "0 0 * * 3",
              "0 0 * * 4",
              "0 0 * * 5",
              "0 0 * * 6",
              "0 0 * * 0",
              "0 0 * * 1-5",
              "0 0 * * 6,0"
            ]
          },
          "timezone": {
            "type": "string",
            "description": "The timezone to use for the schedule",
            "nullable": true
          }
        },
        "required": [
          "action"
        ],
        "description": "The ON_OPPORTUNITIES_STAGE_CHANGE action of the Salesforce service"
      },
      "ConnectionSalesforceLeadsGetActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "LEADS_GET"
            ],
            "description": "The LEADS_GET action of the \"SALESFORCE\" connection"
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection"
          },
          "lead_id": {
            "type": "string",
            "description": "The ID of the lead to retrieve",
            "nullable": true
          }
        },
        "required": [
          "action"
        ],
        "description": "The LEADS_GET action of the Salesforce service"
      },
      "ConnectionSalesforceLeadsListActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "LEADS_LIST"
            ],
            "description": "The LEADS_LIST action of the \"SALESFORCE\" connection"
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection"
          }
        },
        "required": [
          "action"
        ],
        "description": "The LEADS_LIST action of the Salesforce service"
      },
      "ConnectionSalesforceLeadsSearchActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "LEADS_SEARCH"
            ],
            "description": "The LEADS_SEARCH action of the \"SALESFORCE\" connection"
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection"
          },
          "search_text": {
            "type": "string",
            "description": "Search across name, email, company, and phone fields",
            "nullable": true
          },
          "status": {
            "type": "string",
            "description": "Filter leads by status",
            "nullable": true,
            "enum": [
              "all",
              "Open - Not Contacted",
              "Working - Contacted",
              "Closed - Converted",
              "Closed - Not Converted"
            ]
          },
          "sort_field": {
            "type": "string",
            "description": "Field to sort results by",
            "nullable": true,
            "enum": [
              "LastModifiedDate",
              "CreatedDate",
              "FirstName",
              "LastName",
              "Email",
              "Company",
              "Status",
              "Title",
              "Status",
              "Industry",
              "Website",
              "Rating"
            ]
          },
          "sort_order": {
            "type": "string",
            "description": "Order to sort results",
            "nullable": true,
            "enum": [
              "DESC",
              "ASC"
            ]
          },
          "include_converted": {
            "type": "boolean",
            "description": "Include leads that have been converted to accounts or contacts",
            "nullable": true
          },
          "include_trashed": {
            "type": "boolean",
            "description": "Include leads that have been moved to the Recycle Bin",
            "nullable": true
          }
        },
        "required": [
          "action"
        ],
        "description": "The LEADS_SEARCH action of the Salesforce service"
      },
      "ConnectionSalesforceLeadsCreateActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "LEADS_CREATE"
            ],
            "description": "The LEADS_CREATE action of the \"SALESFORCE\" connection"
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection"
          },
          "first_name": {
            "type": "string",
            "description": "First name of the lead",
            "nullable": true
          },
          "last_name": {
            "type": "string",
            "description": "Last name of the lead",
            "nullable": true
          },
          "company": {
            "type": "string",
            "description": "Company name of the lead",
            "nullable": true
          },
          "title": {
            "type": "string",
            "description": "Job title of the lead",
            "nullable": true
          },
          "website": {
            "type": "string",
            "description": "Website URL of the lead",
            "nullable": true
          },
          "description": {
            "type": "string",
            "description": "Additional information about the lead",
            "nullable": true
          },
          "email": {
            "type": "string",
            "description": "Email address of the lead",
            "nullable": true
          },
          "phone": {
            "type": "string",
            "description": "Phone number of the lead",
            "nullable": true
          },
          "status": {
            "type": "string",
            "description": "Status of the lead",
            "nullable": true,
            "enum": [
              "Open - Not Contacted",
              "Working - Contacted",
              "Qualified",
              "Nurturing",
              "Unqualified",
              "In Progress",
              "Closed - Converted",
              "Closed - Not Converted"
            ]
          },
          "industry": {
            "type": "string",
            "description": "Industry of the lead company",
            "nullable": true,
            "enum": [
              "Agriculture",
              "Banking",
              "Consulting",
              "Education",
              "Energy",
              "Healthcare",
              "Manufacturing",
              "Retail",
              "Technology",
              "Other"
            ]
          },
          "annual_revenue": {
            "type": "number",
            "description": "Annual revenue of the company in dollars",
            "nullable": true
          },
          "lead_source": {
            "type": "string",
            "description": "Source of the lead",
            "nullable": true,
            "enum": [
              "Advertisement",
              "Employee Referral",
              "External Referral",
              "Partner",
              "Public Relations",
              "Seminar - Internal",
              "Seminar - Partner",
              "Trade Show",
              "Web",
              "Word of mouth",
              "Other",
              "Email",
              "Direct Mail",
              "Phone Inquiry",
              "Purchased List",
              "Campaign"
            ]
          },
          "number_of_employees": {
            "type": "number",
            "description": "Total number of employees in the company",
            "nullable": true
          },
          "street": {
            "type": "string",
            "description": "Street address of the lead",
            "nullable": true
          },
          "city": {
            "type": "string",
            "description": "City of the lead",
            "nullable": true
          },
          "state": {
            "type": "string",
            "description": "State or province of the lead",
            "nullable": true
          },
          "postal_code": {
            "type": "string",
            "description": "Postal or ZIP code of the lead",
            "nullable": true
          },
          "country": {
            "type": "string",
            "description": "Country of the lead",
            "nullable": true
          }
        },
        "required": [
          "action"
        ],
        "description": "The LEADS_CREATE action of the Salesforce service"
      },
      "ConnectionSalesforceLeadsUpdateActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "LEADS_UPDATE"
            ],
            "description": "The LEADS_UPDATE action of the \"SALESFORCE\" connection"
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection"
          },
          "lead_id": {
            "type": "string",
            "description": "The ID of the lead to update",
            "nullable": true
          },
          "first_name": {
            "type": "string",
            "description": "First name of the lead",
            "nullable": true
          },
          "last_name": {
            "type": "string",
            "description": "Last name of the lead",
            "nullable": true
          },
          "company": {
            "type": "string",
            "description": "Company name of the lead",
            "nullable": true
          },
          "email": {
            "type": "string",
            "description": "Email address of the lead",
            "nullable": true
          },
          "phone": {
            "type": "string",
            "description": "Phone number of the lead",
            "nullable": true
          },
          "title": {
            "type": "string",
            "description": "Job title of the lead",
            "nullable": true
          },
          "website": {
            "type": "string",
            "description": "Website URL of the lead",
            "nullable": true
          },
          "description": {
            "type": "string",
            "description": "Additional information about the lead",
            "nullable": true
          },
          "status": {
            "type": "string",
            "description": "Status of the lead",
            "nullable": true,
            "enum": [
              "Open - Not Contacted",
              "Working - Contacted",
              "Qualified",
              "Nurturing",
              "Unqualified",
              "In Progress",
              "Closed - Converted",
              "Closed - Not Converted"
            ]
          },
          "industry": {
            "type": "string",
            "description": "Industry of the lead company",
            "nullable": true,
            "enum": [
              "Agriculture",
              "Banking",
              "Consulting",
              "Education",
              "Energy",
              "Healthcare",
              "Manufacturing",
              "Retail",
              "Technology",
              "Other"
            ]
          },
          "annual_revenue": {
            "type": "number",
            "description": "Annual revenue of the company in dollars",
            "nullable": true
          },
          "lead_source": {
            "type": "string",
            "description": "Source of the lead",
            "nullable": true,
            "enum": [
              "Advertisement",
              "Employee Referral",
              "External Referral",
              "Partner",
              "Public Relations",
              "Seminar - Internal",
              "Seminar - Partner",
              "Trade Show",
              "Web",
              "Word of mouth",
              "Other",
              "Email",
              "Direct Mail",
              "Phone Inquiry",
              "Purchased List",
              "Campaign"
            ]
          },
          "number_of_employees": {
            "type": "number",
            "description": "Total number of employees in the company",
            "nullable": true
          },
          "street": {
            "type": "string",
            "description": "Street address of the lead",
            "nullable": true
          },
          "city": {
            "type": "string",
            "description": "City of the lead",
            "nullable": true
          },
          "state": {
            "type": "string",
            "description": "State or province of the lead",
            "nullable": true
          },
          "postal_code": {
            "type": "string",
            "description": "Postal or ZIP code of the lead",
            "nullable": true
          },
          "country": {
            "type": "string",
            "description": "Country of the lead",
            "nullable": true
          }
        },
        "required": [
          "action"
        ],
        "description": "The LEADS_UPDATE action of the Salesforce service"
      },
      "ConnectionSalesforceLeadsTrashActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "LEADS_TRASH"
            ],
            "description": "The LEADS_TRASH action of the \"SALESFORCE\" connection"
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection"
          },
          "lead_id": {
            "type": "string",
            "description": "The ID of the lead to move to recycle bin",
            "nullable": true
          }
        },
        "required": [
          "action"
        ],
        "description": "The LEADS_TRASH action of the Salesforce service"
      },
      "ConnectionSalesforceContactsGetActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "CONTACTS_GET"
            ],
            "description": "The CONTACTS_GET action of the \"SALESFORCE\" connection"
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection"
          },
          "contact_id": {
            "type": "string",
            "description": "The ID of the contact to retrieve",
            "nullable": true
          }
        },
        "required": [
          "action"
        ],
        "description": "The CONTACTS_GET action of the Salesforce service"
      },
      "ConnectionSalesforceContactsSearchActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "CONTACTS_SEARCH"
            ],
            "description": "The CONTACTS_SEARCH action of the \"SALESFORCE\" connection"
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection"
          },
          "search_text": {
            "type": "string",
            "description": "Search across name, email and phone fields",
            "nullable": true
          },
          "account_id": {
            "type": "string",
            "description": "Filter contacts by account",
            "nullable": true
          },
          "sort_field": {
            "type": "string",
            "description": "Field to sort results by",
            "nullable": true,
            "enum": [
              "LastModifiedDate",
              "CreatedDate",
              "FirstName",
              "LastName",
              "Email",
              "Title"
            ]
          },
          "sort_order": {
            "type": "string",
            "description": "Order to sort results",
            "nullable": true,
            "enum": [
              "DESC",
              "ASC"
            ]
          },
          "include_trashed": {
            "type": "boolean",
            "description": "Include contacts that have been moved to the Recycle Bin",
            "nullable": true
          }
        },
        "required": [
          "action"
        ],
        "description": "The CONTACTS_SEARCH action of the Salesforce service"
      },
      "ConnectionSalesforceContactsListActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "CONTACTS_LIST"
            ],
            "description": "The CONTACTS_LIST action of the \"SALESFORCE\" connection"
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection"
          },
          "contact_id": {
            "type": "string",
            "description": "The ID of the contact to retrieve",
            "nullable": true
          }
        },
        "required": [
          "action"
        ],
        "description": "The CONTACTS_LIST action of the Salesforce service"
      },
      "ConnectionSalesforceContactsCreateActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "CONTACTS_CREATE"
            ],
            "description": "The CONTACTS_CREATE action of the \"SALESFORCE\" connection"
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection"
          },
          "first_name": {
            "type": "string",
            "description": "First name of the contact",
            "nullable": true
          },
          "last_name": {
            "type": "string",
            "description": "Last name of the contact",
            "nullable": true
          },
          "account_id": {
            "type": "string",
            "description": "The account this contact belongs to",
            "nullable": true
          },
          "email": {
            "type": "string",
            "description": "Email address of the contact",
            "nullable": true
          },
          "phone": {
            "type": "string",
            "description": "Phone number of the contact",
            "nullable": true
          },
          "title": {
            "type": "string",
            "description": "Job title of the contact",
            "nullable": true
          },
          "reports_to_id": {
            "type": "string",
            "description": "The supervisor of this contact",
            "nullable": true
          },
          "description": {
            "type": "string",
            "description": "Additional information about the contact",
            "nullable": true
          }
        },
        "required": [
          "action"
        ],
        "description": "The CONTACTS_CREATE action of the Salesforce service"
      },
      "ConnectionSalesforceContactsUpdateActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "CONTACTS_UPDATE"
            ],
            "description": "The CONTACTS_UPDATE action of the \"SALESFORCE\" connection"
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection"
          },
          "contact_id": {
            "type": "string",
            "description": "The ID of the contact to update",
            "nullable": true
          },
          "first_name": {
            "type": "string",
            "description": "First name of the contact",
            "nullable": true
          },
          "last_name": {
            "type": "string",
            "description": "Last name of the contact",
            "nullable": true
          },
          "account_id": {
            "type": "string",
            "description": "The account this contact belongs to",
            "nullable": true
          },
          "email": {
            "type": "string",
            "description": "Email address of the contact",
            "nullable": true
          },
          "phone": {
            "type": "string",
            "description": "Phone number of the contact",
            "nullable": true
          },
          "title": {
            "type": "string",
            "description": "Job title of the contact",
            "nullable": true
          },
          "reports_to_id": {
            "type": "string",
            "description": "The supervisor of this contact",
            "nullable": true
          },
          "description": {
            "type": "string",
            "description": "Additional information about the contact",
            "nullable": true
          }
        },
        "required": [
          "action"
        ],
        "description": "The CONTACTS_UPDATE action of the Salesforce service"
      },
      "ConnectionSalesforceContactsTrashActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "CONTACTS_TRASH"
            ],
            "description": "The CONTACTS_TRASH action of the \"SALESFORCE\" connection"
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection"
          },
          "contact_id": {
            "type": "string",
            "description": "The ID of the contact to move to recycle bin",
            "nullable": true
          }
        },
        "required": [
          "action"
        ],
        "description": "The CONTACTS_TRASH action of the Salesforce service"
      },
      "ConnectionSalesforceAccountsGetActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "ACCOUNTS_GET"
            ],
            "description": "The ACCOUNTS_GET action of the \"SALESFORCE\" connection"
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection"
          },
          "account_id": {
            "type": "string",
            "description": "The ID of the account to retrieve in Salesforce",
            "nullable": true
          }
        },
        "required": [
          "action"
        ],
        "description": "The ACCOUNTS_GET action of the Salesforce service"
      },
      "ConnectionSalesforceAccountsSearchActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "ACCOUNTS_SEARCH"
            ],
            "description": "The ACCOUNTS_SEARCH action of the \"SALESFORCE\" connection"
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection"
          },
          "search_text": {
            "type": "string",
            "description": "Search across name, account number, website, industry and phone fields",
            "nullable": true
          },
          "type": {
            "type": "string",
            "description": "Filter accounts by type",
            "nullable": true,
            "enum": [
              "Analyst",
              "Competitor",
              "Customer",
              "Integrator",
              "Investor",
              "Partner",
              "Press",
              "Prospect",
              "Reseller",
              "Other"
            ]
          },
          "sort_field": {
            "type": "string",
            "description": "Field to sort results by",
            "nullable": true,
            "enum": [
              "LastModifiedDate",
              "CreatedDate",
              "Name"
            ]
          },
          "sort_order": {
            "type": "string",
            "description": "Order to sort results",
            "nullable": true,
            "enum": [
              "DESC",
              "ASC"
            ]
          },
          "include_trashed": {
            "type": "boolean",
            "description": "Include accounts that have been moved to the Recycle Bin",
            "nullable": true
          }
        },
        "required": [
          "action"
        ],
        "description": "The ACCOUNTS_SEARCH action of the Salesforce service"
      },
      "ConnectionSalesforceAccountsListActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "ACCOUNTS_LIST"
            ],
            "description": "The ACCOUNTS_LIST action of the \"SALESFORCE\" connection"
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection"
          }
        },
        "required": [
          "action"
        ],
        "description": "The ACCOUNTS_LIST action of the Salesforce service"
      },
      "ConnectionSalesforceAccountsCreateActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "ACCOUNTS_CREATE"
            ],
            "description": "The ACCOUNTS_CREATE action of the \"SALESFORCE\" connection"
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection"
          },
          "name": {
            "type": "string",
            "description": "Name of the account (required)",
            "nullable": true
          },
          "type": {
            "type": "string",
            "description": "Type of account",
            "nullable": true,
            "enum": [
              "Analyst",
              "Competitor",
              "Customer",
              "Integrator",
              "Investor",
              "Partner",
              "Press",
              "Prospect",
              "Reseller",
              "Other"
            ]
          },
          "phone": {
            "type": "string",
            "description": "Phone number of the account",
            "nullable": true
          },
          "website": {
            "type": "string",
            "description": "Website URL of the account",
            "nullable": true
          },
          "description": {
            "type": "string",
            "description": "Additional information about the account",
            "nullable": true
          },
          "billing_street": {
            "type": "string",
            "description": "Street address for billing",
            "nullable": true
          },
          "billing_city": {
            "type": "string",
            "description": "City for billing address",
            "nullable": true
          },
          "billing_state": {
            "type": "string",
            "description": "State or province for billing address",
            "nullable": true
          },
          "billing_postal_code": {
            "type": "string",
            "description": "Postal code for billing address",
            "nullable": true
          },
          "billing_country": {
            "type": "string",
            "description": "Country for billing address",
            "nullable": true
          },
          "shipping_street": {
            "type": "string",
            "description": "Street address for shipping",
            "nullable": true
          },
          "shipping_city": {
            "type": "string",
            "description": "City for shipping address",
            "nullable": true
          },
          "shipping_state": {
            "type": "string",
            "description": "State or province for shipping address",
            "nullable": true
          },
          "shipping_postal_code": {
            "type": "string",
            "description": "Postal code for shipping address",
            "nullable": true
          },
          "shipping_country": {
            "type": "string",
            "description": "Country for shipping address",
            "nullable": true
          },
          "parent_account_id": {
            "type": "string",
            "description": "Select a parent account for this account, if applicable",
            "nullable": true
          }
        },
        "required": [
          "action"
        ],
        "description": "The ACCOUNTS_CREATE action of the Salesforce service"
      },
      "ConnectionSalesforceAccountsUpdateActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "ACCOUNTS_UPDATE"
            ],
            "description": "The ACCOUNTS_UPDATE action of the \"SALESFORCE\" connection"
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection"
          },
          "account_id": {
            "type": "string",
            "description": "The ID of the account to update",
            "nullable": true
          },
          "name": {
            "type": "string",
            "description": "Name of the account",
            "nullable": true
          },
          "type": {
            "type": "string",
            "description": "Type of account",
            "nullable": true,
            "enum": [
              "Analyst",
              "Competitor",
              "Customer",
              "Integrator",
              "Investor",
              "Partner",
              "Press",
              "Prospect",
              "Reseller",
              "Other"
            ]
          },
          "phone": {
            "type": "string",
            "description": "Phone number of the account",
            "nullable": true
          },
          "website": {
            "type": "string",
            "description": "Website URL of the account",
            "nullable": true
          },
          "description": {
            "type": "string",
            "description": "Additional information about the account",
            "nullable": true
          },
          "billing_street": {
            "type": "string",
            "description": "Street address for billing",
            "nullable": true
          },
          "billing_city": {
            "type": "string",
            "description": "City for billing address",
            "nullable": true
          },
          "billing_state": {
            "type": "string",
            "description": "State or province for billing address",
            "nullable": true
          },
          "billing_postal_code": {
            "type": "string",
            "description": "Postal code for billing address",
            "nullable": true
          },
          "billing_country": {
            "type": "string",
            "description": "Country for billing address",
            "nullable": true
          },
          "shipping_street": {
            "type": "string",
            "description": "Street address for shipping",
            "nullable": true
          },
          "shipping_city": {
            "type": "string",
            "description": "City for shipping address",
            "nullable": true
          },
          "shipping_state": {
            "type": "string",
            "description": "State or province for shipping address",
            "nullable": true
          },
          "shipping_postal_code": {
            "type": "string",
            "description": "Postal code for shipping address",
            "nullable": true
          },
          "shipping_country": {
            "type": "string",
            "description": "Country for shipping address",
            "nullable": true
          },
          "parent_account_id": {
            "type": "string",
            "description": "Select a parent account for this account, if applicable",
            "nullable": true
          }
        },
        "required": [
          "action"
        ],
        "description": "The ACCOUNTS_UPDATE action of the Salesforce service"
      },
      "ConnectionSalesforceAccountsTrashActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "ACCOUNTS_TRASH"
            ],
            "description": "The ACCOUNTS_TRASH action of the \"SALESFORCE\" connection"
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection"
          },
          "account_id": {
            "type": "string",
            "description": "The ID of the account to move to recycle bin",
            "nullable": true
          }
        },
        "required": [
          "action"
        ],
        "description": "The ACCOUNTS_TRASH action of the Salesforce service"
      },
      "ConnectionSalesforceOpportunitiesGetActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "OPPORTUNITIES_GET"
            ],
            "description": "The OPPORTUNITIES_GET action of the \"SALESFORCE\" connection"
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection"
          },
          "opportunity_id": {
            "type": "string",
            "description": "The ID of the opportunity to retrieve",
            "nullable": true
          }
        },
        "required": [
          "action"
        ],
        "description": "The OPPORTUNITIES_GET action of the Salesforce service"
      },
      "ConnectionSalesforceOpportunitiesSearchActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "OPPORTUNITIES_SEARCH"
            ],
            "description": "The OPPORTUNITIES_SEARCH action of the \"SALESFORCE\" connection"
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection"
          },
          "search_text": {
            "type": "string",
            "description": "Search in opportunity name",
            "nullable": true
          },
          "account_id": {
            "type": "string",
            "description": "Filter by specific account",
            "nullable": true
          },
          "stage": {
            "type": "string",
            "description": "Filter by opportunity stage",
            "nullable": true,
            "enum": [
              "all",
              "Qualify",
              "Meet & Present",
              "Propose",
              "Negotiate",
              "Closed Won",
              "Closed Lost",
              "Needs Analysis"
            ]
          },
          "sort_field": {
            "type": "string",
            "description": "Sort opportunities by",
            "nullable": true,
            "enum": [
              "LastModifiedDate",
              "CreatedDate",
              "CloseDate",
              "Name",
              "Amount",
              "Probability"
            ]
          },
          "sort_order": {
            "type": "string",
            "description": "Direction to sort the results",
            "nullable": true,
            "enum": [
              "DESC",
              "ASC"
            ]
          },
          "include_trashed": {
            "type": "boolean",
            "description": "Include opportunities in the recycle bin",
            "nullable": true
          }
        },
        "required": [
          "action"
        ],
        "description": "The OPPORTUNITIES_SEARCH action of the Salesforce service"
      },
      "ConnectionSalesforceOpportunitiesCreateActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "OPPORTUNITIES_CREATE"
            ],
            "description": "The OPPORTUNITIES_CREATE action of the \"SALESFORCE\" connection"
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection"
          },
          "name": {
            "type": "string",
            "description": "Name of the opportunity",
            "nullable": true
          },
          "account_id": {
            "type": "string",
            "description": "ID of the associated account",
            "nullable": true
          },
          "close_date": {
            "nullable": true,
            "description": "Expected close date for the opportunity"
          },
          "amount": {
            "type": "number",
            "description": "Opportunity amount",
            "nullable": true
          },
          "description": {
            "type": "string",
            "description": "Detailed description of the opportunity",
            "nullable": true
          },
          "stage_name": {
            "type": "string",
            "description": "Stage of the opportunity in the sales process",
            "nullable": true,
            "enum": [
              "Prospecting",
              "Qualification",
              "Needs Analysis",
              "Value Proposition",
              "Id. Decision Makers",
              "Proposal/Price Quote",
              "Negotiation/Review",
              "Closed Won",
              "Closed Lost"
            ]
          },
          "probability": {
            "type": "number",
            "description": "Probability of closing the opportunity (0-100)",
            "nullable": true
          },
          "forecast_category_name": {
            "type": "string",
            "description": "Forecast category for the opportunity",
            "nullable": true,
            "enum": [
              "Omitted",
              "Pipeline",
              "Best Case",
              "Commit",
              "Closed"
            ]
          },
          "next_step": {
            "type": "string",
            "description": "Next step in the sales process",
            "nullable": true
          }
        },
        "required": [
          "action"
        ],
        "description": "The OPPORTUNITIES_CREATE action of the Salesforce service"
      },
      "ConnectionSalesforceOpportunitiesUpdateActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "OPPORTUNITIES_UPDATE"
            ],
            "description": "The OPPORTUNITIES_UPDATE action of the \"SALESFORCE\" connection"
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection"
          },
          "opportunity_id": {
            "type": "string",
            "description": "The ID of the opportunity to update",
            "nullable": true
          },
          "name": {
            "type": "string",
            "description": "Name for the opportunity",
            "nullable": true
          },
          "account_id": {
            "type": "string",
            "description": "ID of the associated account",
            "nullable": true
          },
          "close_date": {
            "nullable": true,
            "description": "Close date for the opportunity"
          },
          "amount": {
            "type": "number",
            "description": "Opportunity amount",
            "nullable": true
          },
          "description": {
            "type": "string",
            "description": "Description of the opportunity",
            "nullable": true
          },
          "stage_name": {
            "type": "string",
            "description": "Updated stage of the opportunity",
            "nullable": true,
            "enum": [
              "Prospecting",
              "Qualification",
              "Needs Analysis",
              "Value Proposition",
              "Id. Decision Makers",
              "Proposal/Price Quote",
              "Negotiation/Review",
              "Closed Won",
              "Closed Lost"
            ]
          },
          "probability": {
            "type": "number",
            "description": "Probability of closing the opportunity (0-100)",
            "nullable": true
          },
          "forecast_category_name": {
            "type": "string",
            "description": "Forecast category for the opportunity",
            "nullable": true,
            "enum": [
              "Omitted",
              "Pipeline",
              "Best Case",
              "Commit",
              "Closed"
            ]
          },
          "next_step": {
            "type": "string",
            "description": "Next step in the sales process",
            "nullable": true
          }
        },
        "required": [
          "action"
        ],
        "description": "The OPPORTUNITIES_UPDATE action of the Salesforce service"
      },
      "ConnectionSalesforceOpportunitiesTrashActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "OPPORTUNITIES_TRASH"
            ],
            "description": "The OPPORTUNITIES_TRASH action of the \"SALESFORCE\" connection"
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection"
          },
          "opportunity_id": {
            "type": "string",
            "description": "The ID of the opportunity to move to recycle bin",
            "nullable": true
          }
        },
        "required": [
          "action"
        ],
        "description": "The OPPORTUNITIES_TRASH action of the Salesforce service"
      },
      "ConnectionSalesforceOpportunitiesListActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "OPPORTUNITIES_LIST"
            ],
            "description": "The OPPORTUNITIES_LIST action of the \"SALESFORCE\" connection"
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection"
          }
        },
        "required": [
          "action"
        ],
        "description": "The OPPORTUNITIES_LIST action of the Salesforce service"
      },
      "ConnectionSalesforceCasesGetActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "CASES_GET"
            ],
            "description": "The CASES_GET action of the \"SALESFORCE\" connection"
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection"
          },
          "case_id": {
            "type": "string",
            "description": "The ID of the case to retrieve",
            "nullable": true
          }
        },
        "required": [
          "action"
        ],
        "description": "The CASES_GET action of the Salesforce service"
      },
      "ConnectionSalesforceCasesListActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "CASES_LIST"
            ],
            "description": "The CASES_LIST action of the \"SALESFORCE\" connection"
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection"
          }
        },
        "required": [
          "action"
        ],
        "description": "The CASES_LIST action of the Salesforce service"
      },
      "ConnectionSalesforceCasesSearchActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "CASES_SEARCH"
            ],
            "description": "The CASES_SEARCH action of the \"SALESFORCE\" connection"
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection"
          },
          "search_text": {
            "type": "string",
            "description": "Search in case subject and description",
            "nullable": true
          },
          "origin": {
            "type": "string",
            "description": "How the case originated",
            "nullable": true,
            "enum": [
              "all",
              "Email",
              "Phone",
              "Web"
            ]
          },
          "account_id": {
            "type": "string",
            "description": "Filter by specific account",
            "nullable": true
          },
          "contact_id": {
            "type": "string",
            "description": "Filter by specific contact",
            "nullable": true
          },
          "status": {
            "type": "string",
            "description": "Filter by case status",
            "nullable": true,
            "enum": [
              "all",
              "New",
              "Working",
              "Waiting on customer",
              "Escalated",
              "Closed"
            ]
          },
          "priority": {
            "type": "string",
            "description": "Filter by case priority",
            "nullable": true,
            "enum": [
              "all",
              "High",
              "Medium",
              "Low"
            ]
          },
          "sort_field": {
            "type": "string",
            "description": "Field to sort cases by",
            "nullable": true,
            "enum": [
              "LastModifiedDate",
              "CreatedDate",
              "CaseNumber",
              "Subject",
              "Priority",
              "Status"
            ]
          },
          "sort_order": {
            "type": "string",
            "description": "Direction to sort the results",
            "nullable": true,
            "enum": [
              "DESC",
              "ASC"
            ]
          },
          "include_trashed": {
            "type": "boolean",
            "description": "Include cases in the recycle bin",
            "nullable": true
          }
        },
        "required": [
          "action"
        ],
        "description": "The CASES_SEARCH action of the Salesforce service"
      },
      "ConnectionSalesforceCasesCreateActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "CASES_CREATE"
            ],
            "description": "The CASES_CREATE action of the \"SALESFORCE\" connection"
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection"
          },
          "subject": {
            "type": "string",
            "description": "Subject of the case",
            "nullable": true
          },
          "description": {
            "type": "string",
            "description": "Detailed description of the case",
            "nullable": true
          },
          "status": {
            "type": "string",
            "description": "The status of the case",
            "nullable": true,
            "enum": [
              "New",
              "Working",
              "Waiting on customer",
              "Escalated",
              "Closed"
            ]
          },
          "origin": {
            "type": "string",
            "description": "How the case originated",
            "nullable": true,
            "enum": [
              "all",
              "Email",
              "Phone",
              "Web"
            ]
          },
          "priority": {
            "type": "string",
            "description": "The priority of the case",
            "nullable": true,
            "enum": [
              "High",
              "Medium",
              "Low"
            ]
          },
          "reason": {
            "type": "string",
            "description": "Reason for the case",
            "nullable": true
          },
          "account_id": {
            "type": "string",
            "description": "ID of the associated account",
            "nullable": true
          },
          "contact_id": {
            "type": "string",
            "description": "ID of the associated contact",
            "nullable": true
          }
        },
        "required": [
          "action"
        ],
        "description": "The CASES_CREATE action of the Salesforce service"
      },
      "ConnectionSalesforceCasesUpdateActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "CASES_UPDATE"
            ],
            "description": "The CASES_UPDATE action of the \"SALESFORCE\" connection"
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection"
          },
          "case_id": {
            "type": "string",
            "description": "The ID of the case to update",
            "nullable": true
          },
          "subject": {
            "type": "string",
            "description": "Subject of the case",
            "nullable": true
          },
          "description": {
            "type": "string",
            "description": "Description of the case",
            "nullable": true
          },
          "status": {
            "type": "string",
            "description": "Status of the case",
            "nullable": true,
            "enum": [
              "New",
              "Working",
              "Waiting on customer",
              "Escalated",
              "Closed"
            ]
          },
          "origin": {
            "type": "string",
            "description": "How the case originated",
            "nullable": true,
            "enum": [
              "all",
              "Email",
              "Phone",
              "Web"
            ]
          },
          "priority": {
            "type": "string",
            "description": "Priority of the case",
            "nullable": true,
            "enum": [
              "High",
              "Medium",
              "Low"
            ]
          },
          "reason": {
            "type": "string",
            "description": "Reason for the case",
            "nullable": true
          },
          "account_id": {
            "type": "string",
            "description": "ID of the associated account",
            "nullable": true
          },
          "contact_id": {
            "type": "string",
            "description": "ID of the associated contact",
            "nullable": true
          }
        },
        "required": [
          "action"
        ],
        "description": "The CASES_UPDATE action of the Salesforce service"
      },
      "ConnectionSalesforceCasesTrashActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "CASES_TRASH"
            ],
            "description": "The CASES_TRASH action of the \"SALESFORCE\" connection"
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection"
          },
          "case_id": {
            "type": "string",
            "description": "The ID of the case to move to recycle bin",
            "nullable": true
          }
        },
        "required": [
          "action"
        ],
        "description": "The CASES_TRASH action of the Salesforce service"
      },
      "ConnectionSalesforceCampaignsGetActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "CAMPAIGNS_GET"
            ],
            "description": "The CAMPAIGNS_GET action of the \"SALESFORCE\" connection"
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection"
          },
          "campaign_id": {
            "type": "string",
            "description": "The ID of the campaign to retrieve",
            "nullable": true
          }
        },
        "required": [
          "action"
        ],
        "description": "The CAMPAIGNS_GET action of the Salesforce service"
      },
      "ConnectionSalesforceCampaignsListActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "CAMPAIGNS_LIST"
            ],
            "description": "The CAMPAIGNS_LIST action of the \"SALESFORCE\" connection"
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection"
          }
        },
        "required": [
          "action"
        ],
        "description": "The CAMPAIGNS_LIST action of the Salesforce service"
      },
      "ConnectionSalesforceCampaignsSearchActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "CAMPAIGNS_SEARCH"
            ],
            "description": "The CAMPAIGNS_SEARCH action of the \"SALESFORCE\" connection"
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection"
          },
          "search_text": {
            "type": "string",
            "description": "Search in campaign name",
            "nullable": true
          },
          "campaign_type": {
            "type": "string",
            "description": "Filter by campaign type",
            "nullable": true,
            "enum": [
              "all",
              "Advertisement",
              "Email",
              "Telemarketing",
              "Banner Ads",
              "Conference",
              "Public Relations",
              "Partners",
              "Referral Program",
              "Other"
            ]
          },
          "status": {
            "type": "string",
            "description": "Filter by campaign status",
            "nullable": true,
            "enum": [
              "all",
              "Planned",
              "In Progress",
              "Completed",
              "Aborted"
            ]
          },
          "is_active": {
            "type": "boolean",
            "description": "Filter by active campaigns only",
            "nullable": true
          },
          "start_date_after": {
            "nullable": true,
            "description": "Filter by campaigns starting on or after this date"
          },
          "start_date_before": {
            "nullable": true,
            "description": "Filter by campaigns starting on or before this date"
          },
          "end_date_after": {
            "nullable": true,
            "description": "Filter by campaigns ending on or after this date"
          },
          "end_date_before": {
            "nullable": true,
            "description": "Filter by campaigns ending on or before this date"
          },
          "parent_id": {
            "type": "string",
            "description": "Filter by parent campaign",
            "nullable": true
          },
          "sort_field": {
            "type": "string",
            "description": "Field to sort campaigns by",
            "nullable": true,
            "enum": [
              "LastModifiedDate",
              "CreatedDate",
              "StartDate",
              "EndDate",
              "Name",
              "IsActive"
            ]
          },
          "sort_order": {
            "type": "string",
            "description": "Direction to sort the results",
            "nullable": true,
            "enum": [
              "DESC",
              "ASC"
            ]
          },
          "include_trashed": {
            "type": "boolean",
            "description": "Include campaigns in the recycle bin",
            "nullable": true
          }
        },
        "required": [
          "action"
        ],
        "description": "The CAMPAIGNS_SEARCH action of the Salesforce service"
      },
      "ConnectionSalesforceCampaignsCreateActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "CAMPAIGNS_CREATE"
            ],
            "description": "The CAMPAIGNS_CREATE action of the \"SALESFORCE\" connection"
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection"
          },
          "name": {
            "type": "string",
            "description": "Name of the campaign",
            "nullable": true
          },
          "description": {
            "type": "string",
            "description": "Detailed description of the campaign",
            "nullable": true
          },
          "status": {
            "type": "string",
            "description": "The status of the campaign",
            "nullable": true,
            "enum": [
              "Planned",
              "In Progress",
              "Completed",
              "Aborted"
            ]
          },
          "type": {
            "type": "string",
            "description": "The type of campaign",
            "nullable": true,
            "enum": [
              "Advertisement",
              "Email",
              "Telemarketing",
              "Banner Ads",
              "Conference",
              "Public Relations",
              "Partners",
              "Referral Program",
              "Other"
            ]
          },
          "start_date": {
            "nullable": true,
            "description": "The start date of the campaign"
          },
          "end_date": {
            "nullable": true,
            "description": "The end date of the campaign"
          },
          "is_active": {
            "type": "boolean",
            "description": "Whether the campaign is active",
            "nullable": true
          },
          "budgeted_cost": {
            "type": "number",
            "description": "The budgeted cost of the campaign",
            "nullable": true
          },
          "expected_revenue": {
            "type": "number",
            "description": "The expected revenue from the campaign",
            "nullable": true
          },
          "number_sent": {
            "type": "number",
            "description": "The number of elements sent in the campaign",
            "nullable": true
          },
          "actual_cost": {
            "type": "number",
            "description": "The actual cost incurred for the campaign",
            "nullable": true
          },
          "expected_response": {
            "type": "string",
            "description": "Expected response from the campaign",
            "nullable": true
          },
          "parent_id": {
            "type": "string",
            "description": "ID of the parent campaign",
            "nullable": true
          }
        },
        "required": [
          "action"
        ],
        "description": "The CAMPAIGNS_CREATE action of the Salesforce service"
      },
      "ConnectionSalesforceCampaignsUpdateActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "CAMPAIGNS_UPDATE"
            ],
            "description": "The CAMPAIGNS_UPDATE action of the \"SALESFORCE\" connection"
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection"
          },
          "campaign_id": {
            "type": "string",
            "description": "The ID of the campaign to update",
            "nullable": true
          },
          "name": {
            "type": "string",
            "description": "Updated name of the campaign",
            "nullable": true
          },
          "description": {
            "type": "string",
            "description": "Updated description of the campaign",
            "nullable": true
          },
          "status": {
            "type": "string",
            "description": "Updated status of the campaign",
            "nullable": true,
            "enum": [
              "Planned",
              "In Progress",
              "Completed",
              "Aborted"
            ]
          },
          "type": {
            "type": "string",
            "description": "Updated type of the campaign",
            "nullable": true,
            "enum": [
              "Advertisement",
              "Email",
              "Telemarketing",
              "Banner Ads",
              "Conference",
              "Public Relations",
              "Partners",
              "Referral Program",
              "Other"
            ]
          },
          "start_date": {
            "nullable": true,
            "description": "Updated start date of the campaign"
          },
          "end_date": {
            "nullable": true,
            "description": "Updated end date of the campaign"
          },
          "is_active": {
            "type": "boolean",
            "description": "Whether the campaign is active",
            "nullable": true
          },
          "budgeted_cost": {
            "type": "number",
            "description": "Updated budgeted cost of the campaign",
            "nullable": true
          },
          "expected_revenue": {
            "type": "number",
            "description": "Updated expected revenue from the campaign",
            "nullable": true
          },
          "actual_cost": {
            "type": "number",
            "description": "The actual cost incurred for the campaign",
            "nullable": true
          },
          "number_sent": {
            "type": "number",
            "description": "The number of elements sent in the campaign",
            "nullable": true
          },
          "expected_response": {
            "type": "string",
            "description": "Expected response from the campaign",
            "nullable": true
          },
          "parent_id": {
            "type": "string",
            "description": "Updated ID of the parent campaign",
            "nullable": true
          }
        },
        "required": [
          "action"
        ],
        "description": "The CAMPAIGNS_UPDATE action of the Salesforce service"
      },
      "ConnectionSalesforceCampaignsTrashActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "CAMPAIGNS_TRASH"
            ],
            "description": "The CAMPAIGNS_TRASH action of the \"SALESFORCE\" connection"
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection"
          },
          "campaign_id": {
            "type": "string",
            "description": "The ID of the campaign to move to recycle bin",
            "nullable": true
          }
        },
        "required": [
          "action"
        ],
        "description": "The CAMPAIGNS_TRASH action of the Salesforce service"
      },
      "ConnectionSalesforceFilesListActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "FILES_LIST"
            ],
            "description": "The FILES_LIST action of the \"SALESFORCE\" connection"
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection"
          }
        },
        "required": [
          "action"
        ],
        "description": "The FILES_LIST action of the Salesforce service"
      },
      "ConnectionSalesforceFilesSearchActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "FILES_SEARCH"
            ],
            "description": "The FILES_SEARCH action of the \"SALESFORCE\" connection"
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection"
          },
          "search_text": {
            "type": "string",
            "description": "Search for files by title or description",
            "nullable": true
          },
          "related_record_id": {
            "type": "string",
            "description": "List files related to a specific Salesforce record",
            "nullable": true
          },
          "file_type": {
            "type": "string",
            "description": "Filter by file extension (e.g. pdf, docx)",
            "nullable": true,
            "enum": [
              "all",
              "pdf",
              "docx",
              "xlsx",
              "pptx",
              "jpg,png,svg",
              "csv",
              "txt"
            ]
          },
          "sort_field": {
            "type": "string",
            "description": "Field to sort results by",
            "nullable": true,
            "enum": [
              "LastModifiedDate",
              "CreatedDate",
              "Title",
              "ContentSize"
            ]
          },
          "sort_order": {
            "type": "string",
            "description": "Direction to sort",
            "nullable": true,
            "enum": [
              "DESC",
              "ASC"
            ]
          },
          "include_trashed": {
            "type": "boolean",
            "description": "Include files that have been moved to the recycle bin",
            "nullable": true
          }
        },
        "required": [
          "action"
        ],
        "description": "The FILES_SEARCH action of the Salesforce service"
      },
      "ConnectionSalesforceFilesUploadActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "FILES_UPLOAD"
            ],
            "description": "The FILES_UPLOAD action of the \"SALESFORCE\" connection"
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection"
          },
          "name": {
            "type": "string",
            "description": "Name for the uploaded file",
            "nullable": true
          },
          "description": {
            "type": "string",
            "description": "Description for the file",
            "nullable": true
          },
          "related_record_id": {
            "type": "string",
            "description": "Salesforce record ID to associate this file with (e.g., Account, Opportunity)",
            "nullable": true
          },
          "visibility": {
            "type": "string",
            "description": "Controls who can see this file when it is linked to a record",
            "nullable": true,
            "enum": [
              "AllUsers",
              "InternalUsers",
              "SharedUsers"
            ]
          }
        },
        "required": [
          "action"
        ],
        "description": "The FILES_UPLOAD action of the Salesforce service"
      },
      "ConnectionSalesforceFilesDownloadActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "FILES_DOWNLOAD"
            ],
            "description": "The FILES_DOWNLOAD action of the \"SALESFORCE\" connection"
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection"
          },
          "file_id": {
            "type": "string",
            "description": "The Salesforce File ID of the file to retrieve",
            "nullable": true
          },
          "storage": {
            "type": "string",
            "description": "Persistent storage will keep the file even after the run finishes. Temporary storage will delete the file after 24 hours",
            "nullable": true,
            "enum": [
              "PERSISTENT",
              "TEMPORARY"
            ]
          },
          "visibility": {
            "type": "string",
            "description": "Whether the file is private or public, private files URLs are signed with a token and can be accessed temporarily",
            "nullable": true,
            "enum": [
              "PRIVATE",
              "PUBLIC"
            ]
          }
        },
        "required": [
          "action"
        ],
        "description": "The FILES_DOWNLOAD action of the Salesforce service"
      },
      "ConnectionSalesforceSoqlSearchActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "SOQL_SEARCH"
            ],
            "description": "The SOQL_SEARCH action of the \"SALESFORCE\" connection"
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection"
          },
          "query": {
            "type": "string",
            "description": "Custom SOQL query to execute (must start with SELECT)",
            "nullable": true
          },
          "include_trashed": {
            "type": "boolean",
            "description": "Include records in the Recycle Bin (deleted but not permanently)",
            "nullable": true
          },
          "batch_size": {
            "type": "number",
            "description": "Maximum number of records to return (1-2000)",
            "nullable": true
          },
          "enforce_limit": {
            "type": "boolean",
            "description": "Automatically add a LIMIT clause if not present in the query",
            "nullable": true
          }
        },
        "required": [
          "action"
        ],
        "description": "The SOQL_SEARCH action of the Salesforce service"
      },
      "ConnectionSalesforceActionSchema": {
        "oneOf": [
          {
            "$ref": "#/components/schemas/ConnectionSalesforceTimezonesListActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionSalesforceOnContactsNewActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionSalesforceOnLeadsNewActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionSalesforceOnOpportunitiesNewActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionSalesforceOnCasesNewActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionSalesforceOnOpportunitiesStageChangeActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionSalesforceLeadsGetActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionSalesforceLeadsListActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionSalesforceLeadsSearchActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionSalesforceLeadsCreateActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionSalesforceLeadsUpdateActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionSalesforceLeadsTrashActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionSalesforceContactsGetActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionSalesforceContactsSearchActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionSalesforceContactsListActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionSalesforceContactsCreateActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionSalesforceContactsUpdateActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionSalesforceContactsTrashActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionSalesforceAccountsGetActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionSalesforceAccountsSearchActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionSalesforceAccountsListActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionSalesforceAccountsCreateActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionSalesforceAccountsUpdateActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionSalesforceAccountsTrashActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionSalesforceOpportunitiesGetActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionSalesforceOpportunitiesSearchActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionSalesforceOpportunitiesCreateActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionSalesforceOpportunitiesUpdateActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionSalesforceOpportunitiesTrashActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionSalesforceOpportunitiesListActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionSalesforceCasesGetActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionSalesforceCasesListActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionSalesforceCasesSearchActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionSalesforceCasesCreateActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionSalesforceCasesUpdateActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionSalesforceCasesTrashActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionSalesforceCampaignsGetActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionSalesforceCampaignsListActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionSalesforceCampaignsSearchActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionSalesforceCampaignsCreateActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionSalesforceCampaignsUpdateActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionSalesforceCampaignsTrashActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionSalesforceFilesListActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionSalesforceFilesSearchActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionSalesforceFilesUploadActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionSalesforceFilesDownloadActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionSalesforceSoqlSearchActionSchema"
          }
        ],
        "discriminator": {
          "propertyName": "action",
          "mapping": {
            "TIMEZONES_LIST": "#/components/schemas/ConnectionSalesforceTimezonesListActionSchema",
            "ON_CONTACTS_NEW": "#/components/schemas/ConnectionSalesforceOnContactsNewActionSchema",
            "ON_LEADS_NEW": "#/components/schemas/ConnectionSalesforceOnLeadsNewActionSchema",
            "ON_OPPORTUNITIES_NEW": "#/components/schemas/ConnectionSalesforceOnOpportunitiesNewActionSchema",
            "ON_CASES_NEW": "#/components/schemas/ConnectionSalesforceOnCasesNewActionSchema",
            "ON_OPPORTUNITIES_STAGE_CHANGE": "#/components/schemas/ConnectionSalesforceOnOpportunitiesStageChangeActionSchema",
            "LEADS_GET": "#/components/schemas/ConnectionSalesforceLeadsGetActionSchema",
            "LEADS_LIST": "#/components/schemas/ConnectionSalesforceLeadsListActionSchema",
            "LEADS_SEARCH": "#/components/schemas/ConnectionSalesforceLeadsSearchActionSchema",
            "LEADS_CREATE": "#/components/schemas/ConnectionSalesforceLeadsCreateActionSchema",
            "LEADS_UPDATE": "#/components/schemas/ConnectionSalesforceLeadsUpdateActionSchema",
            "LEADS_TRASH": "#/components/schemas/ConnectionSalesforceLeadsTrashActionSchema",
            "CONTACTS_GET": "#/components/schemas/ConnectionSalesforceContactsGetActionSchema",
            "CONTACTS_SEARCH": "#/components/schemas/ConnectionSalesforceContactsSearchActionSchema",
            "CONTACTS_LIST": "#/components/schemas/ConnectionSalesforceContactsListActionSchema",
            "CONTACTS_CREATE": "#/components/schemas/ConnectionSalesforceContactsCreateActionSchema",
            "CONTACTS_UPDATE": "#/components/schemas/ConnectionSalesforceContactsUpdateActionSchema",
            "CONTACTS_TRASH": "#/components/schemas/ConnectionSalesforceContactsTrashActionSchema",
            "ACCOUNTS_GET": "#/components/schemas/ConnectionSalesforceAccountsGetActionSchema",
            "ACCOUNTS_SEARCH": "#/components/schemas/ConnectionSalesforceAccountsSearchActionSchema",
            "ACCOUNTS_LIST": "#/components/schemas/ConnectionSalesforceAccountsListActionSchema",
            "ACCOUNTS_CREATE": "#/components/schemas/ConnectionSalesforceAccountsCreateActionSchema",
            "ACCOUNTS_UPDATE": "#/components/schemas/ConnectionSalesforceAccountsUpdateActionSchema",
            "ACCOUNTS_TRASH": "#/components/schemas/ConnectionSalesforceAccountsTrashActionSchema",
            "OPPORTUNITIES_GET": "#/components/schemas/ConnectionSalesforceOpportunitiesGetActionSchema",
            "OPPORTUNITIES_SEARCH": "#/components/schemas/ConnectionSalesforceOpportunitiesSearchActionSchema",
            "OPPORTUNITIES_CREATE": "#/components/schemas/ConnectionSalesforceOpportunitiesCreateActionSchema",
            "OPPORTUNITIES_UPDATE": "#/components/schemas/ConnectionSalesforceOpportunitiesUpdateActionSchema",
            "OPPORTUNITIES_TRASH": "#/components/schemas/ConnectionSalesforceOpportunitiesTrashActionSchema",
            "OPPORTUNITIES_LIST": "#/components/schemas/ConnectionSalesforceOpportunitiesListActionSchema",
            "CASES_GET": "#/components/schemas/ConnectionSalesforceCasesGetActionSchema",
            "CASES_LIST": "#/components/schemas/ConnectionSalesforceCasesListActionSchema",
            "CASES_SEARCH": "#/components/schemas/ConnectionSalesforceCasesSearchActionSchema",
            "CASES_CREATE": "#/components/schemas/ConnectionSalesforceCasesCreateActionSchema",
            "CASES_UPDATE": "#/components/schemas/ConnectionSalesforceCasesUpdateActionSchema",
            "CASES_TRASH": "#/components/schemas/ConnectionSalesforceCasesTrashActionSchema",
            "CAMPAIGNS_GET": "#/components/schemas/ConnectionSalesforceCampaignsGetActionSchema",
            "CAMPAIGNS_LIST": "#/components/schemas/ConnectionSalesforceCampaignsListActionSchema",
            "CAMPAIGNS_SEARCH": "#/components/schemas/ConnectionSalesforceCampaignsSearchActionSchema",
            "CAMPAIGNS_CREATE": "#/components/schemas/ConnectionSalesforceCampaignsCreateActionSchema",
            "CAMPAIGNS_UPDATE": "#/components/schemas/ConnectionSalesforceCampaignsUpdateActionSchema",
            "CAMPAIGNS_TRASH": "#/components/schemas/ConnectionSalesforceCampaignsTrashActionSchema",
            "FILES_LIST": "#/components/schemas/ConnectionSalesforceFilesListActionSchema",
            "FILES_SEARCH": "#/components/schemas/ConnectionSalesforceFilesSearchActionSchema",
            "FILES_UPLOAD": "#/components/schemas/ConnectionSalesforceFilesUploadActionSchema",
            "FILES_DOWNLOAD": "#/components/schemas/ConnectionSalesforceFilesDownloadActionSchema",
            "SOQL_SEARCH": "#/components/schemas/ConnectionSalesforceSoqlSearchActionSchema"
          }
        },
        "description": "The Salesforce actions schema"
      },
      "ConnectionEncompassCasesGetActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "CASES_GET"
            ],
            "description": "The CASES_GET action of the \"ENCOMPASS\" connection"
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection"
          },
          "case_id": {
            "type": "string",
            "description": "The ID of the case to retrieve",
            "nullable": true
          }
        },
        "required": [
          "action"
        ],
        "description": "The CASES_GET action of the Encompass service"
      },
      "ConnectionEncompassCasesUpdateActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "CASES_UPDATE"
            ],
            "description": "The CASES_UPDATE action of the \"ENCOMPASS\" connection"
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection"
          },
          "case_id": {
            "type": "string",
            "description": "The ID of the case to update",
            "nullable": true
          },
          "data": {
            "type": "string",
            "description": "The partial application data to update stringified as JSON",
            "nullable": true
          }
        },
        "required": [
          "action"
        ],
        "description": "The CASES_UPDATE action of the Encompass service"
      },
      "ConnectionEncompassDocumentsListActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "DOCUMENTS_LIST"
            ],
            "description": "The DOCUMENTS_LIST action of the \"ENCOMPASS\" connection"
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection"
          },
          "case_id": {
            "type": "string",
            "description": "Optional: List documents for a specific case only",
            "nullable": true
          }
        },
        "required": [
          "action"
        ],
        "description": "The DOCUMENTS_LIST action of the Encompass service"
      },
      "ConnectionEncompassDocumentsCreateActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "DOCUMENTS_CREATE"
            ],
            "description": "The DOCUMENTS_CREATE action of the \"ENCOMPASS\" connection"
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection"
          },
          "case_id": {
            "type": "string",
            "description": "The case to create the document in",
            "nullable": true
          },
          "document_name": {
            "type": "string",
            "description": "Name for the new document placeholder",
            "nullable": true
          },
          "application_id": {
            "type": "string",
            "description": "ID of the borrower application to associate with the document",
            "nullable": true
          }
        },
        "required": [
          "action"
        ],
        "description": "The DOCUMENTS_CREATE action of the Encompass service"
      },
      "ConnectionEncompassDocumentsDeleteActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "DOCUMENTS_DELETE"
            ],
            "description": "The DOCUMENTS_DELETE action of the \"ENCOMPASS\" connection"
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection"
          },
          "case_id": {
            "type": "string",
            "description": "The case containing the document",
            "nullable": true
          },
          "document_id": {
            "type": "string",
            "description": "ID of the document to delete",
            "nullable": true
          }
        },
        "required": [
          "action"
        ],
        "description": "The DOCUMENTS_DELETE action of the Encompass service"
      },
      "ConnectionEncompassDocumentsAttachmentsListActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "DOCUMENTS_ATTACHMENTS_LIST"
            ],
            "description": "The DOCUMENTS_ATTACHMENTS_LIST action of the \"ENCOMPASS\" connection"
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection"
          },
          "case_id": {
            "type": "string",
            "description": "The case containing the document",
            "nullable": true
          },
          "document_id": {
            "type": "string",
            "description": "The document to list attachments for",
            "nullable": true
          }
        },
        "required": [
          "action"
        ],
        "description": "The DOCUMENTS_ATTACHMENTS_LIST action of the Encompass service"
      },
      "ConnectionEncompassDocumentsAssignAttachmentsActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "DOCUMENTS_ASSIGN_ATTACHMENTS"
            ],
            "description": "The DOCUMENTS_ASSIGN_ATTACHMENTS action of the \"ENCOMPASS\" connection"
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection"
          },
          "case_id": {
            "type": "string",
            "description": "The case containing the document",
            "nullable": true
          },
          "document_id": {
            "type": "string",
            "description": "The document to assign files to",
            "nullable": true
          },
          "attachment_ids": {
            "type": "array",
            "description": "IDs of the attachments to assign to this document",
            "nullable": true,
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "action"
        ],
        "description": "The DOCUMENTS_ASSIGN_ATTACHMENTS action of the Encompass service"
      },
      "ConnectionEncompassDocumentsUnassignAttachmentsActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "DOCUMENTS_UNASSIGN_ATTACHMENTS"
            ],
            "description": "The DOCUMENTS_UNASSIGN_ATTACHMENTS action of the \"ENCOMPASS\" connection"
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection"
          },
          "case_id": {
            "type": "string",
            "description": "The case containing the document",
            "nullable": true
          },
          "attachment_ids": {
            "type": "array",
            "description": "IDs of the attachments to unassign from this document",
            "nullable": true,
            "items": {
              "type": "string"
            }
          },
          "document_id": {
            "type": "string",
            "description": "The document to unassign attachments from",
            "nullable": true
          }
        },
        "required": [
          "action"
        ],
        "description": "The DOCUMENTS_UNASSIGN_ATTACHMENTS action of the Encompass service"
      },
      "ConnectionEncompassAttachmentsListActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "ATTACHMENTS_LIST"
            ],
            "description": "The ATTACHMENTS_LIST action of the \"ENCOMPASS\" connection"
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection"
          },
          "case_id": {
            "type": "string",
            "description": "Case ID to filter attachments by",
            "nullable": true
          }
        },
        "required": [
          "action"
        ],
        "description": "The ATTACHMENTS_LIST action of the Encompass service"
      },
      "ConnectionEncompassAttachmentsUploadActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "ATTACHMENTS_UPLOAD"
            ],
            "description": "The ATTACHMENTS_UPLOAD action of the \"ENCOMPASS\" connection"
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection"
          },
          "case_id": {
            "type": "string",
            "description": "The case containing the document",
            "nullable": true
          },
          "document_id": {
            "type": "string",
            "description": "The document to attach files to",
            "nullable": true
          },
          "file_urls": {
            "type": "array",
            "description": "URLs of the files to upload",
            "nullable": true,
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "action"
        ],
        "description": "The ATTACHMENTS_UPLOAD action of the Encompass service"
      },
      "ConnectionEncompassAttachmentsDeleteActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "ATTACHMENTS_DELETE"
            ],
            "description": "The ATTACHMENTS_DELETE action of the \"ENCOMPASS\" connection"
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection"
          },
          "case_id": {
            "type": "string",
            "description": "Case ID to delete attachments from",
            "nullable": true
          },
          "attachment_ids": {
            "type": "array",
            "description": "IDs of the attachments to delete",
            "nullable": true,
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "action"
        ],
        "description": "The ATTACHMENTS_DELETE action of the Encompass service"
      },
      "ConnectionEncompassActionSchema": {
        "oneOf": [
          {
            "$ref": "#/components/schemas/ConnectionEncompassCasesGetActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionEncompassCasesUpdateActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionEncompassDocumentsListActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionEncompassDocumentsCreateActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionEncompassDocumentsDeleteActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionEncompassDocumentsAttachmentsListActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionEncompassDocumentsAssignAttachmentsActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionEncompassDocumentsUnassignAttachmentsActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionEncompassAttachmentsListActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionEncompassAttachmentsUploadActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionEncompassAttachmentsDeleteActionSchema"
          }
        ],
        "discriminator": {
          "propertyName": "action",
          "mapping": {
            "CASES_GET": "#/components/schemas/ConnectionEncompassCasesGetActionSchema",
            "CASES_UPDATE": "#/components/schemas/ConnectionEncompassCasesUpdateActionSchema",
            "DOCUMENTS_LIST": "#/components/schemas/ConnectionEncompassDocumentsListActionSchema",
            "DOCUMENTS_CREATE": "#/components/schemas/ConnectionEncompassDocumentsCreateActionSchema",
            "DOCUMENTS_DELETE": "#/components/schemas/ConnectionEncompassDocumentsDeleteActionSchema",
            "DOCUMENTS_ATTACHMENTS_LIST": "#/components/schemas/ConnectionEncompassDocumentsAttachmentsListActionSchema",
            "DOCUMENTS_ASSIGN_ATTACHMENTS": "#/components/schemas/ConnectionEncompassDocumentsAssignAttachmentsActionSchema",
            "DOCUMENTS_UNASSIGN_ATTACHMENTS": "#/components/schemas/ConnectionEncompassDocumentsUnassignAttachmentsActionSchema",
            "ATTACHMENTS_LIST": "#/components/schemas/ConnectionEncompassAttachmentsListActionSchema",
            "ATTACHMENTS_UPLOAD": "#/components/schemas/ConnectionEncompassAttachmentsUploadActionSchema",
            "ATTACHMENTS_DELETE": "#/components/schemas/ConnectionEncompassAttachmentsDeleteActionSchema"
          }
        },
        "description": "The Encompass actions schema"
      },
      "ConnectionWhatsappOnMessageStatusActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "ON_MESSAGE_STATUS"
            ],
            "description": "The ON_MESSAGE_STATUS action of the \"WHATSAPP\" connection"
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection"
          },
          "status_types": {
            "type": "string",
            "description": "Status types to track (comma-separated: delivered,read,failed)",
            "nullable": true
          }
        },
        "required": [
          "action"
        ],
        "description": "The ON_MESSAGE_STATUS action of the Whatsapp service"
      },
      "ConnectionWhatsappOnMessageReceivedActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "ON_MESSAGE_RECEIVED"
            ],
            "description": "The ON_MESSAGE_RECEIVED action of the \"WHATSAPP\" connection"
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection"
          },
          "filter_senders": {
            "type": "string",
            "description": "Only process messages from these phone numbers. Leave empty to accept all. Separate multiple numbers with commas.",
            "nullable": true
          }
        },
        "required": [
          "action"
        ],
        "description": "The ON_MESSAGE_RECEIVED action of the Whatsapp service"
      },
      "ConnectionWhatsappMessagesSendTextActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "MESSAGES_SEND_TEXT"
            ],
            "description": "The MESSAGES_SEND_TEXT action of the \"WHATSAPP\" connection"
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection"
          },
          "to": {
            "type": "string",
            "description": "Recipient phone number with country code (e.g., +5215512345678)",
            "nullable": true
          },
          "message_text": {
            "type": "string",
            "description": "Free-form text message content",
            "nullable": true
          }
        },
        "required": [
          "action"
        ],
        "description": "The MESSAGES_SEND_TEXT action of the Whatsapp service"
      },
      "ConnectionWhatsappMessagesSendTemplateActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "MESSAGES_SEND_TEMPLATE"
            ],
            "description": "The MESSAGES_SEND_TEMPLATE action of the \"WHATSAPP\" connection"
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection"
          },
          "to": {
            "type": "string",
            "description": "Recipient phone number with country code (e.g., +5215512345678)",
            "nullable": true
          },
          "template_name": {
            "type": "string",
            "description": "Name of the approved template from Meta Business Manager",
            "nullable": true
          },
          "template_language": {
            "type": "string",
            "description": "Language code for the template (e.g., en_US, es_MX)",
            "nullable": true
          },
          "template_parameters": {
            "type": "string",
            "description": "Comma-separated parameters for template variables (e.g., \"John,December 25th\" for {{1}} and {{2}})",
            "nullable": true
          }
        },
        "required": [
          "action"
        ],
        "description": "The MESSAGES_SEND_TEMPLATE action of the Whatsapp service"
      },
      "ConnectionWhatsappMessagesSendInteractiveActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "MESSAGES_SEND_INTERACTIVE"
            ],
            "description": "The MESSAGES_SEND_INTERACTIVE action of the \"WHATSAPP\" connection"
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection"
          },
          "to": {
            "type": "string",
            "description": "Recipient phone number with country code",
            "nullable": true
          },
          "interactive_type": {
            "type": "string",
            "description": "Choose between quick reply buttons or list menu",
            "nullable": true,
            "enum": [
              "button",
              "list"
            ]
          },
          "header_text": {
            "type": "string",
            "description": "Optional header text",
            "nullable": true
          },
          "body_text": {
            "type": "string",
            "description": "Main message content (required)",
            "nullable": true
          },
          "footer_text": {
            "type": "string",
            "description": "Optional footer text",
            "nullable": true
          },
          "buttons": {
            "type": "string",
            "description": "Format: id:text,id:text (max 3 buttons, 20 chars each)",
            "nullable": true
          },
          "list_button_text": {
            "type": "string",
            "description": "For lists: Text on the menu button",
            "nullable": true
          },
          "list_sections": {
            "type": "string",
            "description": "For lists: Format: ##Section Title\\nrow_id|Title|Description",
            "nullable": true
          }
        },
        "required": [
          "action"
        ],
        "description": "The MESSAGES_SEND_INTERACTIVE action of the Whatsapp service"
      },
      "ConnectionWhatsappMessagesSendMediaActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "MESSAGES_SEND_MEDIA"
            ],
            "description": "The MESSAGES_SEND_MEDIA action of the \"WHATSAPP\" connection"
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection"
          },
          "to": {
            "type": "string",
            "description": "Recipient phone number with country code",
            "nullable": true
          },
          "media_type": {
            "type": "string",
            "description": "Media Type",
            "nullable": true,
            "enum": [
              "image",
              "document",
              "audio",
              "video"
            ]
          },
          "media_url": {
            "type": "string",
            "description": "Public URL of media file",
            "nullable": true
          },
          "caption": {
            "type": "string",
            "description": "Optional caption",
            "nullable": true
          },
          "filename": {
            "type": "string",
            "description": "Optional filename (documents only)",
            "nullable": true
          }
        },
        "required": [
          "action"
        ],
        "description": "The MESSAGES_SEND_MEDIA action of the Whatsapp service"
      },
      "ConnectionWhatsappMessagesMarkReadActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "MESSAGES_MARK_READ"
            ],
            "description": "The MESSAGES_MARK_READ action of the \"WHATSAPP\" connection"
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection"
          },
          "message_id": {
            "type": "string",
            "description": "WhatsApp message ID to mark as read (from ON_MESSAGE_RECEIVED)",
            "nullable": true
          },
          "sender_number": {
            "type": "string",
            "description": "Phone number who sent the message (from field in ON_MESSAGE_RECEIVED)",
            "nullable": true
          }
        },
        "required": [
          "action"
        ],
        "description": "The MESSAGES_MARK_READ action of the Whatsapp service"
      },
      "ConnectionWhatsappActionSchema": {
        "oneOf": [
          {
            "$ref": "#/components/schemas/ConnectionWhatsappOnMessageStatusActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionWhatsappOnMessageReceivedActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionWhatsappMessagesSendTextActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionWhatsappMessagesSendTemplateActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionWhatsappMessagesSendInteractiveActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionWhatsappMessagesSendMediaActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionWhatsappMessagesMarkReadActionSchema"
          }
        ],
        "discriminator": {
          "propertyName": "action",
          "mapping": {
            "ON_MESSAGE_STATUS": "#/components/schemas/ConnectionWhatsappOnMessageStatusActionSchema",
            "ON_MESSAGE_RECEIVED": "#/components/schemas/ConnectionWhatsappOnMessageReceivedActionSchema",
            "MESSAGES_SEND_TEXT": "#/components/schemas/ConnectionWhatsappMessagesSendTextActionSchema",
            "MESSAGES_SEND_TEMPLATE": "#/components/schemas/ConnectionWhatsappMessagesSendTemplateActionSchema",
            "MESSAGES_SEND_INTERACTIVE": "#/components/schemas/ConnectionWhatsappMessagesSendInteractiveActionSchema",
            "MESSAGES_SEND_MEDIA": "#/components/schemas/ConnectionWhatsappMessagesSendMediaActionSchema",
            "MESSAGES_MARK_READ": "#/components/schemas/ConnectionWhatsappMessagesMarkReadActionSchema"
          }
        },
        "description": "The Whatsapp actions schema"
      },
      "ConnectionRapidapiHttpRequestActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "HTTP_REQUEST"
            ],
            "description": "The HTTP_REQUEST action of the \"RAPIDAPI\" connection"
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection"
          },
          "url": {
            "type": "string",
            "description": "Complete RapidAPI URL (e.g., https://weatherapi-com.p.rapidapi.com/current.json)",
            "nullable": true
          },
          "method": {
            "type": "string",
            "description": "The HTTP method to use for the request",
            "nullable": true,
            "enum": [
              "GET",
              "POST",
              "PUT",
              "DELETE",
              "PATCH",
              "HEAD",
              "OPTIONS"
            ]
          },
          "query_params": {
            "type": "array",
            "description": "Query parameters to append to the URL (for GET, DELETE, etc.) in the format key=value",
            "nullable": true,
            "items": {
              "type": "string"
            }
          },
          "body": {
            "type": "array",
            "description": "Body parameter for POST, PUT, PATCH requests (ignored for GET, DELETE) in the format key=value",
            "nullable": true,
            "items": {
              "type": "string"
            }
          },
          "headers": {
            "type": "array",
            "description": "Additional headers to send (X-RapidAPI headers are added automatically) in the format key=value",
            "nullable": true,
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "action"
        ],
        "description": "The HTTP_REQUEST action of the Rapidapi service"
      },
      "ConnectionRapidapiGetRequestActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "GET_REQUEST"
            ],
            "description": "The GET_REQUEST action of the \"RAPIDAPI\" connection"
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection"
          },
          "url": {
            "type": "string",
            "description": "Complete RapidAPI URL (e.g., https://weather-api167.p.rapidapi.com/api/weather/forecast)",
            "nullable": true
          },
          "query_params": {
            "type": "array",
            "description": "Query parameter to send with the request in the format key=value",
            "nullable": true,
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "action"
        ],
        "description": "The GET_REQUEST action of the Rapidapi service"
      },
      "ConnectionRapidapiPostRequestActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "POST_REQUEST"
            ],
            "description": "The POST_REQUEST action of the \"RAPIDAPI\" connection"
          },
          "connection_id": {
            "type": "string",
            "description": "ID of the connection"
          },
          "url": {
            "type": "string",
            "description": "Complete RapidAPI URL (e.g., https://url-shortener-service.p.rapidapi.com/shorten)",
            "nullable": true
          },
          "body": {
            "type": "array",
            "description": "Body parameters to send with the request in the format key=value",
            "nullable": true,
            "items": {
              "type": "string"
            }
          },
          "headers": {
            "type": "array",
            "description": "Additional headers to send (X-RapidAPI headers are added automatically) in the format key=value",
            "nullable": true,
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "action"
        ],
        "description": "The POST_REQUEST action of the Rapidapi service"
      },
      "ConnectionRapidapiActionSchema": {
        "oneOf": [
          {
            "$ref": "#/components/schemas/ConnectionRapidapiHttpRequestActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionRapidapiGetRequestActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionRapidapiPostRequestActionSchema"
          }
        ],
        "discriminator": {
          "propertyName": "action",
          "mapping": {
            "HTTP_REQUEST": "#/components/schemas/ConnectionRapidapiHttpRequestActionSchema",
            "GET_REQUEST": "#/components/schemas/ConnectionRapidapiGetRequestActionSchema",
            "POST_REQUEST": "#/components/schemas/ConnectionRapidapiPostRequestActionSchema"
          }
        },
        "description": "The Rapidapi actions schema"
      },
      "ConnectionRapidapiDaxyEnrichContactDaxyEnrichContactActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "DAXY_ENRICH_CONTACT"
            ],
            "description": "The DAXY_ENRICH_CONTACT action of the \"RAPIDAPI_DAXY_ENRICH_CONTACT\" connection"
          },
          "email": {
            "type": "string",
            "description": "Email address to enrich and get contact information",
            "nullable": true
          }
        },
        "required": [
          "action"
        ],
        "description": "The DAXY_ENRICH_CONTACT action of the RapidapiDaxyEnrichContact service"
      },
      "ConnectionRapidapiDaxyEnrichContactActionSchema": {
        "oneOf": [
          {
            "$ref": "#/components/schemas/ConnectionRapidapiDaxyEnrichContactDaxyEnrichContactActionSchema"
          }
        ],
        "discriminator": {
          "propertyName": "action",
          "mapping": {
            "DAXY_ENRICH_CONTACT": "#/components/schemas/ConnectionRapidapiDaxyEnrichContactDaxyEnrichContactActionSchema"
          }
        },
        "description": "The Rapidapidaxyenrichcontact actions schema"
      },
      "ConnectionRapidapiZillowZillowWorkingApiProByAddressActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "ZILLOW_WORKING_API_PRO_BY_ADDRESS"
            ],
            "description": "The ZILLOW_WORKING_API_PRO_BY_ADDRESS action of the \"RAPIDAPI_ZILLOW\" connection"
          },
          "propertyaddress": {
            "type": "string",
            "description": "Exact property address to search for detailed information",
            "nullable": true
          }
        },
        "required": [
          "action"
        ],
        "description": "The ZILLOW_WORKING_API_PRO_BY_ADDRESS action of the RapidapiZillow service"
      },
      "ConnectionRapidapiZillowZillowWorkingApiProByZpidActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "ZILLOW_WORKING_API_PRO_BY_ZPID"
            ],
            "description": "The ZILLOW_WORKING_API_PRO_BY_ZPID action of the \"RAPIDAPI_ZILLOW\" connection"
          },
          "zpid": {
            "type": "string",
            "description": "Unique Zillow Property ID to get detailed property information",
            "nullable": true
          }
        },
        "required": [
          "action"
        ],
        "description": "The ZILLOW_WORKING_API_PRO_BY_ZPID action of the RapidapiZillow service"
      },
      "ConnectionRapidapiZillowZillowWorkingApiProByUrlActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "ZILLOW_WORKING_API_PRO_BY_URL"
            ],
            "description": "The ZILLOW_WORKING_API_PRO_BY_URL action of the \"RAPIDAPI_ZILLOW\" connection"
          },
          "url": {
            "type": "string",
            "description": "Complete Zillow URL containing ZPID for individual property details. Do not use for apartment URLs containing /b/ or /apartment/",
            "nullable": true
          }
        },
        "required": [
          "action"
        ],
        "description": "The ZILLOW_WORKING_API_PRO_BY_URL action of the RapidapiZillow service"
      },
      "ConnectionRapidapiZillowZillowWorkingApiSearchByAddressActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "ZILLOW_WORKING_API_SEARCH_BY_ADDRESS"
            ],
            "description": "The ZILLOW_WORKING_API_SEARCH_BY_ADDRESS action of the \"RAPIDAPI_ZILLOW\" connection"
          },
          "location": {
            "type": "string",
            "description": "Enter an address, neighborhood, city, or ZIP code. For Multi-inputs up to 5 (separate with a semicolon): New York, NY; Seattle, WA; 78006",
            "nullable": true
          },
          "listingStatus": {
            "type": "string",
            "description": "Select which type of property data you want to find",
            "nullable": true,
            "enum": [
              "For_Sale",
              "For_Rent",
              "Sold"
            ]
          },
          "page": {
            "type": "number",
            "description": "Zillow provides 1000 results on each search. This endpoint returns 200 results per call. Maximum page number is 5.",
            "nullable": true
          },
          "sortOrder": {
            "type": "string",
            "description": "Select how you want to sort your search results",
            "nullable": true,
            "enum": [
              "Homes_for_you",
              "Rental_Priority_Score",
              "Newest",
              "Price_Low_High",
              "Price_High_Low",
              "Most_Recent"
            ]
          },
          "listPriceRange": {
            "type": "string",
            "description": "Price range filter. Examples: min:5000, max:500000, min:5000,max:500000",
            "nullable": true
          },
          "bed_min": {
            "type": "string",
            "description": "Minimum number of bedrooms",
            "nullable": true,
            "enum": [
              "No_Min",
              "1",
              "2",
              "3",
              "4",
              "5"
            ]
          },
          "bed_max": {
            "type": "string",
            "description": "Maximum number of bedrooms",
            "nullable": true,
            "enum": [
              "No_Max",
              "1",
              "2",
              "3",
              "4",
              "5",
              "6"
            ]
          },
          "bathrooms": {
            "type": "string",
            "description": "Number of bathrooms filter",
            "nullable": true,
            "enum": [
              "Any",
              "OnePlus",
              "OneHalfPlus",
              "TwoPlus",
              "ThreePlus",
              "FourPlus"
            ]
          },
          "homeType": {
            "type": "string",
            "description": "Property type filter. For multiple inputs, separate with comma. Options: Houses, Townhomes, Multi-family, Condos/Co-ops, Lots-Land, Apartments, Manufactured",
            "nullable": true
          }
        },
        "required": [
          "action"
        ],
        "description": "The ZILLOW_WORKING_API_SEARCH_BY_ADDRESS action of the RapidapiZillow service"
      },
      "ConnectionRapidapiZillowZillowWorkingApiSearchByAiPromptActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "ZILLOW_WORKING_API_SEARCH_BY_AI_PROMPT"
            ],
            "description": "The ZILLOW_WORKING_API_SEARCH_BY_AI_PROMPT action of the \"RAPIDAPI_ZILLOW\" connection"
          },
          "ai_search_prompt": {
            "type": "string",
            "description": "Natural language search prompt describing the properties you want to find",
            "nullable": true
          },
          "page": {
            "type": "number",
            "description": "Page number for pagination results",
            "nullable": true
          },
          "sortOrder": {
            "type": "string",
            "description": "Select how you want to sort your search results",
            "nullable": true,
            "enum": [
              "Homes_for_you",
              "Rental_Priority_Score",
              "Price_High_Low",
              "Price_Low_High",
              "Newest",
              "Bedrooms",
              "Bathrooms",
              "Square_Feet",
              "Lot_Size"
            ]
          },
          "keywords": {
            "type": "string",
            "description": "Enter different keywords like MLS #, yard, agent, etc. to refine your search",
            "nullable": true
          }
        },
        "required": [
          "action"
        ],
        "description": "The ZILLOW_WORKING_API_SEARCH_BY_AI_PROMPT action of the RapidapiZillow service"
      },
      "ConnectionRapidapiZillowZillowWorkingApiSearchByUrlActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "ZILLOW_WORKING_API_SEARCH_BY_URL"
            ],
            "description": "The ZILLOW_WORKING_API_SEARCH_BY_URL action of the \"RAPIDAPI_ZILLOW\" connection"
          },
          "url": {
            "type": "string",
            "description": "Complete Zillow URL from search results or property listing page",
            "nullable": true
          },
          "page": {
            "type": "number",
            "description": "Page number for pagination when extracting search results from URL",
            "nullable": true
          }
        },
        "required": [
          "action"
        ],
        "description": "The ZILLOW_WORKING_API_SEARCH_BY_URL action of the RapidapiZillow service"
      },
      "ConnectionRapidapiZillowZillowWorkingApiApartmentDetailsActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "ZILLOW_WORKING_API_APARTMENT_DETAILS"
            ],
            "description": "The ZILLOW_WORKING_API_APARTMENT_DETAILS action of the \"RAPIDAPI_ZILLOW\" connection"
          },
          "bylotid": {
            "type": "string",
            "description": "Valid LotID for the apartment. You can find it from the Lotid From Address endpoint.",
            "nullable": true
          },
          "byapturl": {
            "type": "string",
            "description": "Direct apartment URL from Zillow. Must contain /b/ or /apartments/ path.",
            "nullable": true
          }
        },
        "required": [
          "action"
        ],
        "description": "The ZILLOW_WORKING_API_APARTMENT_DETAILS action of the RapidapiZillow service"
      },
      "ConnectionRapidapiZillowZillowWorkingApiLotidFromAddressActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "ZILLOW_WORKING_API_LOTID_FROM_ADDRESS"
            ],
            "description": "The ZILLOW_WORKING_API_LOTID_FROM_ADDRESS action of the \"RAPIDAPI_ZILLOW\" connection"
          },
          "propertyaddress": {
            "type": "string",
            "description": "Address of apartment or building to get LotID. Only apartment/building addresses will return a LotID.",
            "nullable": true
          }
        },
        "required": [
          "action"
        ],
        "description": "The ZILLOW_WORKING_API_LOTID_FROM_ADDRESS action of the RapidapiZillow service"
      },
      "ConnectionRapidapiZillowZillowWorkingApiPriceHistoryActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "ZILLOW_WORKING_API_PRICE_HISTORY"
            ],
            "description": "The ZILLOW_WORKING_API_PRICE_HISTORY action of the \"RAPIDAPI_ZILLOW\" connection"
          },
          "byzpid": {
            "type": "string",
            "description": "Zillow Property ID to get price history",
            "nullable": true
          },
          "byurl": {
            "type": "string",
            "description": "Zillow property URL to get price history",
            "nullable": true
          },
          "byaddress": {
            "type": "string",
            "description": "Property address to get price history",
            "nullable": true
          }
        },
        "required": [
          "action"
        ],
        "description": "The ZILLOW_WORKING_API_PRICE_HISTORY action of the RapidapiZillow service"
      },
      "ConnectionRapidapiZillowZillowWorkingApiSimilarPropertiesActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "ZILLOW_WORKING_API_SIMILAR_PROPERTIES"
            ],
            "description": "The ZILLOW_WORKING_API_SIMILAR_PROPERTIES action of the \"RAPIDAPI_ZILLOW\" connection"
          },
          "byzpid": {
            "type": "string",
            "description": "Zillow Property ID to find similar properties",
            "nullable": true
          },
          "byurl": {
            "type": "string",
            "description": "Zillow property URL to find similar properties",
            "nullable": true
          },
          "byaddress": {
            "type": "string",
            "description": "Property address to find similar properties",
            "nullable": true
          },
          "bylotid": {
            "type": "string",
            "description": "LotID of the property to find similar properties",
            "nullable": true
          }
        },
        "required": [
          "action"
        ],
        "description": "The ZILLOW_WORKING_API_SIMILAR_PROPERTIES action of the RapidapiZillow service"
      },
      "ConnectionRapidapiZillowZillowWorkingApiAgentSearchActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "ZILLOW_WORKING_API_AGENT_SEARCH"
            ],
            "description": "The ZILLOW_WORKING_API_AGENT_SEARCH action of the \"RAPIDAPI_ZILLOW\" connection"
          },
          "location": {
            "type": "string",
            "description": "Enter city, neighborhood, or zip code",
            "nullable": true
          },
          "agentName": {
            "type": "string",
            "description": "Enter an agent name to search for specific agents",
            "nullable": true
          },
          "page": {
            "type": "number",
            "description": "Page number for pagination",
            "nullable": true
          },
          "isBuying": {
            "type": "boolean",
            "description": "Filter for agents who specialize in helping buyers",
            "nullable": true
          },
          "isSelling": {
            "type": "boolean",
            "description": "Filter for agents who specialize in helping sellers",
            "nullable": true
          },
          "isTopAgent": {
            "type": "boolean",
            "description": "Filter for top-rated agents only",
            "nullable": true
          },
          "priceRange": {
            "type": "string",
            "description": "Set minimum and maximum price range (format: min,max)",
            "nullable": true
          },
          "specialties": {
            "type": "string",
            "description": "Agent specialties separated by commas. Options: first-time-home-buyers, foreclosure, investment-properties, lot-or-land, luxury-homes, military-or-veterans, new-construction, property-management, relocation, rentals, senior-communities, vacation-short-term-rentals",
            "nullable": true
          },
          "languages": {
            "type": "string",
            "description": "Languages spoken by agent, separated by commas. Default is English. Options: arabic, bengali, cantonese, farsi, filipino, french, german, greek, hebrew, hindi, hungarian, italian, japanese, korean, mandarin, polish, portuguese, russian, spanish, thai, turkish, vietnamese",
            "nullable": true
          }
        },
        "required": [
          "action"
        ],
        "description": "The ZILLOW_WORKING_API_AGENT_SEARCH action of the RapidapiZillow service"
      },
      "ConnectionRapidapiZillowZillowWorkingApiAgentDetailsActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "ZILLOW_WORKING_API_AGENT_DETAILS"
            ],
            "description": "The ZILLOW_WORKING_API_AGENT_DETAILS action of the \"RAPIDAPI_ZILLOW\" connection"
          },
          "agent_link": {
            "type": "string",
            "description": "Enter agent's Zillow page URL",
            "nullable": true
          },
          "username": {
            "type": "string",
            "description": "Enter an agent username. If both agent_link and username are provided, agent_link takes priority.",
            "nullable": true
          }
        },
        "required": [
          "action"
        ],
        "description": "The ZILLOW_WORKING_API_AGENT_DETAILS action of the RapidapiZillow service"
      },
      "ConnectionRapidapiZillowZillowWorkingApiHousingMarketActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "ZILLOW_WORKING_API_HOUSING_MARKET"
            ],
            "description": "The ZILLOW_WORKING_API_HOUSING_MARKET action of the \"RAPIDAPI_ZILLOW\" connection"
          },
          "search_query": {
            "type": "string",
            "description": "Search any city/state/zip code. To search for full country, use: USA/United States",
            "nullable": true
          },
          "home_type": {
            "type": "string",
            "description": "Type of homes to analyze in the market data",
            "nullable": true,
            "enum": [
              "All_Homes",
              "Single_Family",
              "Condos"
            ]
          },
          "exclude_rentalMarketTrends": {
            "type": "boolean",
            "description": "Set to False if you want to include rental market data. Default is True (excludes rental data).",
            "nullable": true
          },
          "exclude_neighborhoods_zhvi": {
            "type": "boolean",
            "description": "Set to False if you want to include neighborhood-level home value index data. Default is True (excludes neighborhood ZHVI).",
            "nullable": true
          }
        },
        "required": [
          "action"
        ],
        "description": "The ZILLOW_WORKING_API_HOUSING_MARKET action of the RapidapiZillow service"
      },
      "ConnectionRapidapiZillowActionSchema": {
        "oneOf": [
          {
            "$ref": "#/components/schemas/ConnectionRapidapiZillowZillowWorkingApiProByAddressActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionRapidapiZillowZillowWorkingApiProByZpidActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionRapidapiZillowZillowWorkingApiProByUrlActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionRapidapiZillowZillowWorkingApiSearchByAddressActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionRapidapiZillowZillowWorkingApiSearchByAiPromptActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionRapidapiZillowZillowWorkingApiSearchByUrlActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionRapidapiZillowZillowWorkingApiApartmentDetailsActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionRapidapiZillowZillowWorkingApiLotidFromAddressActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionRapidapiZillowZillowWorkingApiPriceHistoryActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionRapidapiZillowZillowWorkingApiSimilarPropertiesActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionRapidapiZillowZillowWorkingApiAgentSearchActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionRapidapiZillowZillowWorkingApiAgentDetailsActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionRapidapiZillowZillowWorkingApiHousingMarketActionSchema"
          }
        ],
        "discriminator": {
          "propertyName": "action",
          "mapping": {
            "ZILLOW_WORKING_API_PRO_BY_ADDRESS": "#/components/schemas/ConnectionRapidapiZillowZillowWorkingApiProByAddressActionSchema",
            "ZILLOW_WORKING_API_PRO_BY_ZPID": "#/components/schemas/ConnectionRapidapiZillowZillowWorkingApiProByZpidActionSchema",
            "ZILLOW_WORKING_API_PRO_BY_URL": "#/components/schemas/ConnectionRapidapiZillowZillowWorkingApiProByUrlActionSchema",
            "ZILLOW_WORKING_API_SEARCH_BY_ADDRESS": "#/components/schemas/ConnectionRapidapiZillowZillowWorkingApiSearchByAddressActionSchema",
            "ZILLOW_WORKING_API_SEARCH_BY_AI_PROMPT": "#/components/schemas/ConnectionRapidapiZillowZillowWorkingApiSearchByAiPromptActionSchema",
            "ZILLOW_WORKING_API_SEARCH_BY_URL": "#/components/schemas/ConnectionRapidapiZillowZillowWorkingApiSearchByUrlActionSchema",
            "ZILLOW_WORKING_API_APARTMENT_DETAILS": "#/components/schemas/ConnectionRapidapiZillowZillowWorkingApiApartmentDetailsActionSchema",
            "ZILLOW_WORKING_API_LOTID_FROM_ADDRESS": "#/components/schemas/ConnectionRapidapiZillowZillowWorkingApiLotidFromAddressActionSchema",
            "ZILLOW_WORKING_API_PRICE_HISTORY": "#/components/schemas/ConnectionRapidapiZillowZillowWorkingApiPriceHistoryActionSchema",
            "ZILLOW_WORKING_API_SIMILAR_PROPERTIES": "#/components/schemas/ConnectionRapidapiZillowZillowWorkingApiSimilarPropertiesActionSchema",
            "ZILLOW_WORKING_API_AGENT_SEARCH": "#/components/schemas/ConnectionRapidapiZillowZillowWorkingApiAgentSearchActionSchema",
            "ZILLOW_WORKING_API_AGENT_DETAILS": "#/components/schemas/ConnectionRapidapiZillowZillowWorkingApiAgentDetailsActionSchema",
            "ZILLOW_WORKING_API_HOUSING_MARKET": "#/components/schemas/ConnectionRapidapiZillowZillowWorkingApiHousingMarketActionSchema"
          }
        },
        "description": "The Rapidapizillow actions schema"
      },
      "ConnectionRapidapiLinkedinScraperApiLinkedinScraperApiProfileDetailsActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "LINKEDIN_SCRAPER_API_PROFILE_DETAILS"
            ],
            "description": "The LINKEDIN_SCRAPER_API_PROFILE_DETAILS action of the \"RAPIDAPI_LINKEDIN_SCRAPER_API\" connection"
          },
          "username": {
            "type": "string",
            "description": "LinkedIn profile username (e.g., \"satyanadella\") or full URL (e.g., \"linkedin.com/in/satyanadella\") or URN",
            "nullable": true
          }
        },
        "required": [
          "action"
        ],
        "description": "The LINKEDIN_SCRAPER_API_PROFILE_DETAILS action of the RapidapiLinkedinScraperApi service"
      },
      "ConnectionRapidapiLinkedinScraperApiLinkedinScraperApiProfilePostsActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "LINKEDIN_SCRAPER_API_PROFILE_POSTS"
            ],
            "description": "The LINKEDIN_SCRAPER_API_PROFILE_POSTS action of the \"RAPIDAPI_LINKEDIN_SCRAPER_API\" connection"
          },
          "username": {
            "type": "string",
            "description": "LinkedIn profile username (e.g., \"satyanadella\" or \"linkedin.com/in/satyanadella\")",
            "nullable": true
          },
          "page_number": {
            "type": "number",
            "description": "Page number for paginated results (starts from 1)",
            "nullable": true
          },
          "pagination_token": {
            "type": "string",
            "description": "Token from previous page response for paginated requests (only needed for pages after first)",
            "nullable": true
          }
        },
        "required": [
          "action"
        ],
        "description": "The LINKEDIN_SCRAPER_API_PROFILE_POSTS action of the RapidapiLinkedinScraperApi service"
      },
      "ConnectionRapidapiLinkedinScraperApiLinkedinScraperApiProfileCommentsActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "LINKEDIN_SCRAPER_API_PROFILE_COMMENTS"
            ],
            "description": "The LINKEDIN_SCRAPER_API_PROFILE_COMMENTS action of the \"RAPIDAPI_LINKEDIN_SCRAPER_API\" connection"
          },
          "username": {
            "type": "string",
            "description": "LinkedIn profile username (e.g., \"satyanadella\" or \"linkedin.com/in/satyanadella\")",
            "nullable": true
          },
          "page_number": {
            "type": "number",
            "description": "Page number for paginated results (starts from 1)",
            "nullable": true
          },
          "pagination_token": {
            "type": "string",
            "description": "Token from previous page response for paginated requests (only needed for pages after first)",
            "nullable": true
          }
        },
        "required": [
          "action"
        ],
        "description": "The LINKEDIN_SCRAPER_API_PROFILE_COMMENTS action of the RapidapiLinkedinScraperApi service"
      },
      "ConnectionRapidapiLinkedinScraperApiActionSchema": {
        "oneOf": [
          {
            "$ref": "#/components/schemas/ConnectionRapidapiLinkedinScraperApiLinkedinScraperApiProfileDetailsActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionRapidapiLinkedinScraperApiLinkedinScraperApiProfilePostsActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionRapidapiLinkedinScraperApiLinkedinScraperApiProfileCommentsActionSchema"
          }
        ],
        "discriminator": {
          "propertyName": "action",
          "mapping": {
            "LINKEDIN_SCRAPER_API_PROFILE_DETAILS": "#/components/schemas/ConnectionRapidapiLinkedinScraperApiLinkedinScraperApiProfileDetailsActionSchema",
            "LINKEDIN_SCRAPER_API_PROFILE_POSTS": "#/components/schemas/ConnectionRapidapiLinkedinScraperApiLinkedinScraperApiProfilePostsActionSchema",
            "LINKEDIN_SCRAPER_API_PROFILE_COMMENTS": "#/components/schemas/ConnectionRapidapiLinkedinScraperApiLinkedinScraperApiProfileCommentsActionSchema"
          }
        },
        "description": "The Rapidapilinkedinscraperapi actions schema"
      },
      "ConnectionRapidapiJsearchJsearchSearchActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "JSEARCH_SEARCH"
            ],
            "description": "The JSEARCH_SEARCH action of the \"RAPIDAPI_JSEARCH\" connection"
          },
          "query": {
            "type": "string",
            "description": "Free-form jobs search query. Include job title and location for best results.",
            "nullable": true
          },
          "page": {
            "type": "number",
            "description": "Page to return (each page includes up to 10 results). Range: 1-100",
            "nullable": true
          },
          "num_pages": {
            "type": "number",
            "description": "Number of pages to return, starting from page. Range: 1-20. Note: >1 page = 2x cost, >10 pages = 3x cost.",
            "nullable": true
          },
          "country": {
            "type": "string",
            "description": "Country code (ISO 3166-1 alpha-2). Examples: us, ca, gb, de, fr, au, in, jp, br, mx",
            "nullable": true
          },
          "language": {
            "type": "string",
            "description": "Language code (ISO 639). Examples: en, es, fr, de, pt, it, ja, ko, zh",
            "nullable": true
          },
          "date_posted": {
            "type": "string",
            "description": "Find jobs posted within specified time. Values: all, today, 3days, week, month",
            "nullable": true,
            "enum": [
              "all",
              "today",
              "3days",
              "week",
              "month"
            ]
          },
          "work_from_home": {
            "type": "boolean",
            "description": "Only return work from home / remote jobs",
            "nullable": true
          },
          "employment_types": {
            "type": "string",
            "description": "Comma-separated list. Values: FULLTIME, CONTRACTOR, PARTTIME, INTERN",
            "nullable": true,
            "enum": [
              "FULLTIME",
              "CONTRACTOR",
              "PARTTIME",
              "INTERN"
            ]
          },
          "job_requirements": {
            "type": "string",
            "description": "Comma-separated list. Values: under_3_years_experience, more_than_3_years_experience, no_experience, no_degree",
            "nullable": true,
            "enum": [
              "under_3_years_experience",
              "more_than_3_years_experience",
              "no_experience",
              "no_degree"
            ]
          },
          "radius": {
            "type": "number",
            "description": "Return jobs within distance from location specified in query (in kilometers)",
            "nullable": true
          },
          "exclude_job_publishers": {
            "type": "string",
            "description": "Comma-separated list of job publishers to exclude from results",
            "nullable": true
          },
          "fields": {
            "type": "string",
            "description": "Comma-separated list of job fields to include in response. Leave empty for all fields.",
            "nullable": true
          }
        },
        "required": [
          "action"
        ],
        "description": "The JSEARCH_SEARCH action of the RapidapiJsearch service"
      },
      "ConnectionRapidapiJsearchJsearchJobDetailsActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "JSEARCH_JOB_DETAILS"
            ],
            "description": "The JSEARCH_JOB_DETAILS action of the \"RAPIDAPI_JSEARCH\" connection"
          },
          "job_id": {
            "type": "string",
            "description": "Job ID or multiple Job IDs separated by comma. Max 20 IDs per request.",
            "nullable": true
          },
          "country": {
            "type": "string",
            "description": "Country code (ISO 3166-1 alpha-2). Examples: us, ca, gb, de, fr, au, in, jp, br, mx",
            "nullable": true
          },
          "language": {
            "type": "string",
            "description": "Language code (ISO 639). Examples: en, es, fr, de, pt, it, ja, ko, zh",
            "nullable": true
          },
          "fields": {
            "type": "string",
            "description": "Comma-separated list of fields to include in response. Leave empty for all fields.",
            "nullable": true
          }
        },
        "required": [
          "action"
        ],
        "description": "The JSEARCH_JOB_DETAILS action of the RapidapiJsearch service"
      },
      "ConnectionRapidapiJsearchActionSchema": {
        "oneOf": [
          {
            "$ref": "#/components/schemas/ConnectionRapidapiJsearchJsearchSearchActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionRapidapiJsearchJsearchJobDetailsActionSchema"
          }
        ],
        "discriminator": {
          "propertyName": "action",
          "mapping": {
            "JSEARCH_SEARCH": "#/components/schemas/ConnectionRapidapiJsearchJsearchSearchActionSchema",
            "JSEARCH_JOB_DETAILS": "#/components/schemas/ConnectionRapidapiJsearchJsearchJobDetailsActionSchema"
          }
        },
        "description": "The Rapidapijsearch actions schema"
      },
      "ConnectionRapidapiInstagramSocialInstagramSocialGetInfoActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "INSTAGRAM_SOCIAL_GET_INFO"
            ],
            "description": "The INSTAGRAM_SOCIAL_GET_INFO action of the \"RAPIDAPI_INSTAGRAM_SOCIAL\" connection"
          },
          "username_or_id_or_url": {
            "type": "string",
            "description": "Insert a username (e.g. mrbeast), user id (e.g. 2278169415) or URL (e.g. instagram.com/mrbeast)",
            "nullable": true
          },
          "include_about": {
            "type": "boolean",
            "description": "Include \"About this account\" information: country and date_joined (in about field). Default: false. Note: enabling this will cost one extra request",
            "nullable": true
          },
          "url_embed_safe": {
            "type": "boolean",
            "description": "If you need to embed images/videos on your website, set to \"true\" to evade CORS restrictions. URLs are valid from 6 to 24 hours. Default: false",
            "nullable": true
          }
        },
        "required": [
          "action"
        ],
        "description": "The INSTAGRAM_SOCIAL_GET_INFO action of the RapidapiInstagramSocial service"
      },
      "ConnectionRapidapiInstagramSocialInstagramSocialGetPostsActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "INSTAGRAM_SOCIAL_GET_POSTS"
            ],
            "description": "The INSTAGRAM_SOCIAL_GET_POSTS action of the \"RAPIDAPI_INSTAGRAM_SOCIAL\" connection"
          },
          "username_or_id_or_url": {
            "type": "string",
            "description": "Insert a username (e.g. mrbeast), user id (e.g. 2278169415) or URL (e.g. instagram.com/mrbeast)",
            "nullable": true
          },
          "pagination_token": {
            "type": "string",
            "description": "Use the value from the previous request to retrieve the continuation of the list. Leave empty in the first request.",
            "nullable": true
          },
          "url_embed_safe": {
            "type": "boolean",
            "description": "If you need to embed images/videos on your website, set to \"true\" to evade CORS restrictions. URLs are valid from 6 to 24 hours. Default: false",
            "nullable": true
          }
        },
        "required": [
          "action"
        ],
        "description": "The INSTAGRAM_SOCIAL_GET_POSTS action of the RapidapiInstagramSocial service"
      },
      "ConnectionRapidapiInstagramSocialInstagramSocialGetFollowersActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "INSTAGRAM_SOCIAL_GET_FOLLOWERS"
            ],
            "description": "The INSTAGRAM_SOCIAL_GET_FOLLOWERS action of the \"RAPIDAPI_INSTAGRAM_SOCIAL\" connection"
          },
          "username_or_id_or_url": {
            "type": "string",
            "description": "Insert a username (e.g. mrbeast), user id (e.g. 2278169415) or URL (e.g. instagram.com/mrbeast)",
            "nullable": true
          },
          "amount": {
            "type": "number",
            "description": "Minimum number of followers to retrieve. Maximum: 1000. Default: 50. Note: costs one extra request for every 50 users requested (e.g. amount=100 costs 2 requests)",
            "nullable": true
          },
          "pagination_token": {
            "type": "string",
            "description": "Use the value from the previous request to retrieve the continuation of the list. Leave empty in the first request.",
            "nullable": true
          }
        },
        "required": [
          "action"
        ],
        "description": "The INSTAGRAM_SOCIAL_GET_FOLLOWERS action of the RapidapiInstagramSocial service"
      },
      "ConnectionRapidapiInstagramSocialInstagramSocialGetFollowingActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "INSTAGRAM_SOCIAL_GET_FOLLOWING"
            ],
            "description": "The INSTAGRAM_SOCIAL_GET_FOLLOWING action of the \"RAPIDAPI_INSTAGRAM_SOCIAL\" connection"
          },
          "username_or_id_or_url": {
            "type": "string",
            "description": "Insert a username (e.g. mrbeast), user id (e.g. 2278169415) or URL (e.g. instagram.com/mrbeast)",
            "nullable": true
          },
          "amount": {
            "type": "number",
            "description": "Minimum number of following users to retrieve. Maximum: 1000. Default: 50. Note: costs one extra request for every 50 users requested (e.g. amount=100 costs 2 requests)",
            "nullable": true
          },
          "pagination_token": {
            "type": "string",
            "description": "Use the value from the previous request to retrieve the continuation of the list. Leave empty in the first request.",
            "nullable": true
          }
        },
        "required": [
          "action"
        ],
        "description": "The INSTAGRAM_SOCIAL_GET_FOLLOWING action of the RapidapiInstagramSocial service"
      },
      "ConnectionRapidapiInstagramSocialInstagramSocialGetCommentsActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "INSTAGRAM_SOCIAL_GET_COMMENTS"
            ],
            "description": "The INSTAGRAM_SOCIAL_GET_COMMENTS action of the \"RAPIDAPI_INSTAGRAM_SOCIAL\" connection"
          },
          "code_or_id_or_url": {
            "type": "string",
            "description": "The code in the URL after /p/ or /reel/ or /tv/ (e.g. instagram.com/p/CxYQJO8xuC6/). ID or full URL also accepted.",
            "nullable": true
          },
          "pagination_token": {
            "type": "string",
            "description": "Use the value from the previous request to retrieve the continuation of the list. Leave empty in the first request.",
            "nullable": true
          },
          "sort_by": {
            "type": "string",
            "description": "Sort by \"recent\" or \"popular\". Default: \"recent\". Note: using \"popular\" includes a preview of inner comments",
            "nullable": true
          }
        },
        "required": [
          "action"
        ],
        "description": "The INSTAGRAM_SOCIAL_GET_COMMENTS action of the RapidapiInstagramSocial service"
      },
      "ConnectionRapidapiInstagramSocialInstagramSocialGetLikesActionSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "INSTAGRAM_SOCIAL_GET_LIKES"
            ],
            "description": "The INSTAGRAM_SOCIAL_GET_LIKES action of the \"RAPIDAPI_INSTAGRAM_SOCIAL\" connection"
          },
          "code_or_id_or_url": {
            "type": "string",
            "description": "The code in the URL after /p/ or /reel/ or /tv/ (e.g. instagram.com/p/CxYQJO8xuC6/). ID or full URL also accepted.",
            "nullable": true
          },
          "pagination_token": {
            "type": "string",
            "description": "Use the value from the previous request to retrieve the continuation of the list. Leave empty in the first request.",
            "nullable": true
          }
        },
        "required": [
          "action"
        ],
        "description": "The INSTAGRAM_SOCIAL_GET_LIKES action of the RapidapiInstagramSocial service"
      },
      "ConnectionRapidapiInstagramSocialActionSchema": {
        "oneOf": [
          {
            "$ref": "#/components/schemas/ConnectionRapidapiInstagramSocialInstagramSocialGetInfoActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionRapidapiInstagramSocialInstagramSocialGetPostsActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionRapidapiInstagramSocialInstagramSocialGetFollowersActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionRapidapiInstagramSocialInstagramSocialGetFollowingActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionRapidapiInstagramSocialInstagramSocialGetCommentsActionSchema"
          },
          {
            "$ref": "#/components/schemas/ConnectionRapidapiInstagramSocialInstagramSocialGetLikesActionSchema"
          }
        ],
        "discriminator": {
          "propertyName": "action",
          "mapping": {
            "INSTAGRAM_SOCIAL_GET_INFO": "#/components/schemas/ConnectionRapidapiInstagramSocialInstagramSocialGetInfoActionSchema",
            "INSTAGRAM_SOCIAL_GET_POSTS": "#/components/schemas/ConnectionRapidapiInstagramSocialInstagramSocialGetPostsActionSchema",
            "INSTAGRAM_SOCIAL_GET_FOLLOWERS": "#/components/schemas/ConnectionRapidapiInstagramSocialInstagramSocialGetFollowersActionSchema",
            "INSTAGRAM_SOCIAL_GET_FOLLOWING": "#/components/schemas/ConnectionRapidapiInstagramSocialInstagramSocialGetFollowingActionSchema",
            "INSTAGRAM_SOCIAL_GET_COMMENTS": "#/components/schemas/ConnectionRapidapiInstagramSocialInstagramSocialGetCommentsActionSchema",
            "INSTAGRAM_SOCIAL_GET_LIKES": "#/components/schemas/ConnectionRapidapiInstagramSocialInstagramSocialGetLikesActionSchema"
          }
        },
        "description": "The Rapidapiinstagramsocial actions schema"
      },
      "ExecuteConnectionActionSchema": {
        "oneOf": [
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "SCHEDULER"
                ],
                "description": "The type of the connection"
              },
              "input": {
                "$ref": "#/components/schemas/ConnectionSchedulerActionSchema"
              }
            },
            "required": [
              "type",
              "input"
            ]
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "TOOLS"
                ],
                "description": "The type of the connection"
              },
              "input": {
                "$ref": "#/components/schemas/ConnectionToolsActionSchema"
              }
            },
            "required": [
              "type",
              "input"
            ]
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "FILES"
                ],
                "description": "The type of the connection"
              },
              "input": {
                "$ref": "#/components/schemas/ConnectionFilesActionSchema"
              }
            },
            "required": [
              "type",
              "input"
            ]
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "COLLECTIONS"
                ],
                "description": "The type of the connection"
              },
              "input": {
                "$ref": "#/components/schemas/ConnectionCollectionsActionSchema"
              }
            },
            "required": [
              "type",
              "input"
            ]
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "STATIC_SYNAPSE"
                ],
                "description": "The type of the connection"
              },
              "input": {
                "$ref": "#/components/schemas/ConnectionStaticSynapseActionSchema"
              }
            },
            "required": [
              "type",
              "input"
            ]
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "GOOGLE_SHEETS"
                ],
                "description": "The type of the connection"
              },
              "input": {
                "$ref": "#/components/schemas/ConnectionGoogleSheetsActionSchema"
              }
            },
            "required": [
              "type",
              "input"
            ]
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "GOOGLE_DRIVE"
                ],
                "description": "The type of the connection"
              },
              "input": {
                "$ref": "#/components/schemas/ConnectionGoogleDriveActionSchema"
              }
            },
            "required": [
              "type",
              "input"
            ]
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "GOOGLE_CALENDAR"
                ],
                "description": "The type of the connection"
              },
              "input": {
                "$ref": "#/components/schemas/ConnectionGoogleCalendarActionSchema"
              }
            },
            "required": [
              "type",
              "input"
            ]
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "GMAIL"
                ],
                "description": "The type of the connection"
              },
              "input": {
                "$ref": "#/components/schemas/ConnectionGmailActionSchema"
              }
            },
            "required": [
              "type",
              "input"
            ]
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "SLACK"
                ],
                "description": "The type of the connection"
              },
              "input": {
                "$ref": "#/components/schemas/ConnectionSlackActionSchema"
              }
            },
            "required": [
              "type",
              "input"
            ]
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "NOTION"
                ],
                "description": "The type of the connection"
              },
              "input": {
                "$ref": "#/components/schemas/ConnectionNotionActionSchema"
              }
            },
            "required": [
              "type",
              "input"
            ]
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "SALESFORCE"
                ],
                "description": "The type of the connection"
              },
              "input": {
                "$ref": "#/components/schemas/ConnectionSalesforceActionSchema"
              }
            },
            "required": [
              "type",
              "input"
            ]
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "ENCOMPASS"
                ],
                "description": "The type of the connection"
              },
              "input": {
                "$ref": "#/components/schemas/ConnectionEncompassActionSchema"
              }
            },
            "required": [
              "type",
              "input"
            ]
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "WHATSAPP"
                ],
                "description": "The type of the connection"
              },
              "input": {
                "$ref": "#/components/schemas/ConnectionWhatsappActionSchema"
              }
            },
            "required": [
              "type",
              "input"
            ]
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "RAPIDAPI"
                ],
                "description": "The type of the connection"
              },
              "input": {
                "$ref": "#/components/schemas/ConnectionRapidapiActionSchema"
              }
            },
            "required": [
              "type",
              "input"
            ]
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "RAPIDAPI_DAXY_ENRICH_CONTACT"
                ],
                "description": "The type of the connection"
              },
              "input": {
                "$ref": "#/components/schemas/ConnectionRapidapiDaxyEnrichContactActionSchema"
              }
            },
            "required": [
              "type",
              "input"
            ]
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "RAPIDAPI_ZILLOW"
                ],
                "description": "The type of the connection"
              },
              "input": {
                "$ref": "#/components/schemas/ConnectionRapidapiZillowActionSchema"
              }
            },
            "required": [
              "type",
              "input"
            ]
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "RAPIDAPI_LINKEDIN_SCRAPER_API"
                ],
                "description": "The type of the connection"
              },
              "input": {
                "$ref": "#/components/schemas/ConnectionRapidapiLinkedinScraperApiActionSchema"
              }
            },
            "required": [
              "type",
              "input"
            ]
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "RAPIDAPI_JSEARCH"
                ],
                "description": "The type of the connection"
              },
              "input": {
                "$ref": "#/components/schemas/ConnectionRapidapiJsearchActionSchema"
              }
            },
            "required": [
              "type",
              "input"
            ]
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "RAPIDAPI_INSTAGRAM_SOCIAL"
                ],
                "description": "The type of the connection"
              },
              "input": {
                "$ref": "#/components/schemas/ConnectionRapidapiInstagramSocialActionSchema"
              }
            },
            "required": [
              "type",
              "input"
            ]
          }
        ]
      },
      "ConnectionDefinitionsSchema": {
        "type": "object",
        "properties": {
          "connections": {
            "$ref": "#/components/schemas/ConnectionsInfoSchema"
          },
          "actions": {
            "$ref": "#/components/schemas/ConnectionActionsSchema"
          }
        },
        "required": [
          "connections",
          "actions"
        ],
        "description": "Connection definitions"
      },
      "TestConnectionConnectionResultSchema": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean",
            "description": "Indicates if the connection test was successful",
            "example": true
          },
          "message": {
            "type": "string",
            "description": "Optional message providing details about the test result",
            "example": "Connection successful"
          }
        },
        "required": [
          "success"
        ],
        "description": "Result of a connection test"
      },
      "TestConnectionConnectionSchema": {
        "type": "object",
        "properties": {
          "connection_id": {
            "type": "string",
            "description": "ID of the connection to test"
          },
          "config": {
            "type": "object",
            "properties": {},
            "description": "Configuration of a partial connection",
            "oneOf": [
              {
                "$ref": "#/components/schemas/ConnectionConfigPartialSchema"
              }
            ]
          }
        }
      },
      "ConnectionSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier for the connection"
          },
          "type": {
            "$ref": "#/components/schemas/ConnectionTypeSchema"
          },
          "name": {
            "type": "string",
            "nullable": true,
            "description": "Optional name for the connection",
            "example": "My Encompass Connection"
          },
          "external_name": {
            "type": "string",
            "nullable": true,
            "description": "Optional external name for the connection"
          },
          "external_id": {
            "type": "string",
            "nullable": true,
            "description": "Optional external identifier for the connection"
          },
          "status": {
            "type": "string",
            "enum": [
              "ACTIVE",
              "INACTIVE"
            ]
          },
          "status_error": {
            "type": "string",
            "nullable": true,
            "description": "Optional error message if the connection is in error state"
          },
          "config": {
            "type": "object",
            "properties": {},
            "description": "Configuration of a connection",
            "oneOf": [
              {
                "$ref": "#/components/schemas/ConnectionConfigSchema"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "nullable": true,
            "description": "Timestamp of when the connection was created",
            "format": "date"
          },
          "updated_at": {
            "type": "string",
            "nullable": true,
            "description": "Timestamp of when the connection was last updated",
            "format": "date"
          }
        },
        "required": [
          "id",
          "type",
          "name",
          "external_name",
          "external_id",
          "status",
          "status_error",
          "config",
          "created_at",
          "updated_at"
        ],
        "description": "Detailed information about a connection"
      },
      "CreateConnectionSchema": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Name for the new connection",
            "example": "My New Connection"
          },
          "config": {
            "type": "object",
            "properties": {},
            "description": "Configuration of a connection",
            "oneOf": [
              {
                "$ref": "#/components/schemas/ConnectionConfigSchema"
              }
            ]
          }
        },
        "required": [
          "name",
          "config"
        ]
      },
      "UpdateConnectionSchema": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Name for the new connection",
            "example": "My New Connection"
          },
          "config": {
            "type": "object",
            "properties": {},
            "description": "Configuration of a partial connection",
            "oneOf": [
              {
                "$ref": "#/components/schemas/ConnectionConfigPartialSchema"
              }
            ]
          }
        }
      },
      "ModelInfoPartialSchema": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "category": {
            "type": "string"
          },
          "provider": {
            "type": "string"
          },
          "model": {
            "type": "string"
          },
          "date": {
            "type": "string"
          },
          "latency": {
            "$ref": "#/components/schemas/ModelSpeedSchema"
          },
          "description": {
            "type": "string"
          },
          "input_tokens": {
            "type": "number"
          },
          "output_tokens": {
            "type": "number"
          },
          "pricing": {
            "$ref": "#/components/schemas/ModelPricingSchema"
          },
          "support": {
            "$ref": "#/components/schemas/ModelSupportSchema"
          },
          "features": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ModelFeatureTypeSchema"
            }
          },
          "cutoff_date": {
            "type": "string"
          },
          "beta": {
            "type": "boolean"
          },
          "legacy": {
            "type": "boolean"
          },
          "latest": {
            "type": "boolean"
          }
        },
        "required": [
          "model"
        ]
      },
      "AppVariableSchema": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string",
            "maxLength": 128,
            "pattern": "^[a-zA-Z_][a-zA-Z_0-9]*$",
            "description": "The key of the app variable"
          },
          "value": {
            "type": "string",
            "maxLength": 2048,
            "description": "The value of the app variable"
          },
          "secret": {
            "type": "boolean",
            "description": "Indicates if the variable is a secret",
            "example": true
          }
        },
        "required": [
          "key"
        ],
        "description": "Detailed information about a variable in your app"
      },
      "CreateAppVariableSchema": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string",
            "maxLength": 128,
            "pattern": "^[a-zA-Z_][a-zA-Z_0-9]*$",
            "description": "The key of the app variable"
          },
          "value": {
            "type": "string",
            "maxLength": 2048,
            "description": "The value of the app variable"
          },
          "secret": {
            "type": "boolean",
            "description": "Indicates if the variable is a secret",
            "example": true
          }
        },
        "required": [
          "key"
        ],
        "description": "Detailed information about a variable in your app"
      },
      "UpdateAppVariableSchema": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string",
            "maxLength": 128,
            "pattern": "^[a-zA-Z_][a-zA-Z_0-9]*$",
            "description": "The key of the app variable"
          },
          "value": {
            "type": "string",
            "maxLength": 2048,
            "description": "The value of the app variable"
          },
          "secret": {
            "type": "boolean",
            "description": "Indicates if the variable is a secret",
            "example": true
          }
        },
        "description": "Detailed information about a variable in your app"
      },
      "RunStepSchema": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "PENDING",
              "RUNNING",
              "CANCELLED",
              "COMPLETED",
              "SKIPPED",
              "FAILED"
            ],
            "description": "Status of the call"
          },
          "key": {
            "type": "string",
            "description": "Key of the step run",
            "example": "STEP_1"
          },
          "type": {
            "$ref": "#/components/schemas/StepTypeSchema"
          },
          "output": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/StepWorkflowOutputSchema"
              },
              {
                "$ref": "#/components/schemas/StepWorkflowRecordOutputSchema"
              },
              {
                "$ref": "#/components/schemas/StepBranchConditionOutputSchema"
              },
              {
                "$ref": "#/components/schemas/StepCodeOutputSchema"
              },
              {
                "$ref": "#/components/schemas/StepModelOutputSchema"
              },
              {
                "$ref": "#/components/schemas/StepHttpRequestOutputSchema"
              },
              {
                "$ref": "#/components/schemas/StepBrowserOutputSchema"
              },
              {
                "$ref": "#/components/schemas/StepServiceOutputSchema"
              },
              {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/StepOutputSchema"
                }
              },
              {
                "nullable": true
              }
            ],
            "description": "Output of the step run"
          },
          "logs": {
            "$ref": "#/components/schemas/RuntimeLogs"
          },
          "start": {
            "type": "number",
            "description": "Timestamp of when the step run started"
          },
          "end": {
            "type": "number",
            "description": "Timestamp of when the step run ended"
          },
          "error": {
            "type": "string",
            "description": "Error message if the step run failed"
          }
        },
        "required": [
          "status",
          "key",
          "start"
        ],
        "description": "Step run output"
      },
      "CreateRunStepSchema": {
        "type": "object",
        "properties": {
          "step": {
            "$ref": "#/components/schemas/StepSchema"
          },
          "stream": {
            "type": "boolean"
          }
        },
        "required": [
          "step"
        ],
        "description": "Step run input"
      },
      "WorkflowPermissionSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier for the workflow permission"
          },
          "app": {
            "allOf": [
              {
                "$ref": "#/components/schemas/AppPublicSchema"
              },
              {
                "description": "App this permission belongs to"
              }
            ]
          },
          "workflow": {
            "allOf": [
              {
                "$ref": "#/components/schemas/WorkflowPublicSchema"
              },
              {
                "description": "Workflow this permission belongs to"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "nullable": true,
            "description": "Creation date of the permission",
            "format": "date"
          }
        },
        "required": [
          "id",
          "app",
          "workflow",
          "created_at"
        ],
        "description": "Detailed information about a workflow permission"
      },
      "RunDataRetentionConfigInputSchema": {
        "anyOf": [
          {
            "type": "number"
          },
          {
            "type": "object",
            "properties": {
              "max_age_in_seconds": {
                "type": "number",
                "minimum": -1,
                "maximum": 157680000,
                "description": "Maximum time in seconds to retain run data after completion, -1 means no limit (keep indefinitely)"
              },
              "preserve_on_failure": {
                "type": "boolean",
                "description": "Whether to preserve run data beyond the standard retention period if it fails",
                "example": true
              }
            },
            "required": [
              "max_age_in_seconds"
            ]
          },
          {
            "nullable": true
          }
        ],
        "description": "Data retention policy for the run"
      },
      "CreateDiscoveryRunSchema": {
        "type": "object",
        "properties": {
          "input": {
            "allOf": [
              {
                "$ref": "#/components/schemas/InputValuesSchema"
              },
              {
                "description": "Input values for the run"
              }
            ]
          },
          "stream": {
            "type": "boolean",
            "description": "Indicates if the run should stream output to the client as it becomes available via SSE (Server-Sent Events)"
          },
          "background": {
            "type": "boolean",
            "description": "Indicates if the run should be executed in the background and return the run information immediately"
          },
          "from_step_key": {
            "type": "string",
            "nullable": true,
            "description": "Step key to start the run from"
          },
          "workflow_version_id": {
            "$ref": "#/components/schemas/WorkflowVersionIdSchema"
          },
          "retention": {
            "$ref": "#/components/schemas/RunDataRetentionConfigInputSchema"
          }
        },
        "description": "Data to create a new run"
      },
      "CreateWorkflowSchema": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 2,
            "maxLength": 128
          },
          "description": {
            "type": "string",
            "nullable": true,
            "maxLength": 1024
          },
          "enabled": {
            "type": "boolean"
          },
          "retention": {
            "$ref": "#/components/schemas/WorkflowRunDataRetentionConfigSchema"
          },
          "visibility": {
            "type": "string",
            "enum": [
              "PRIVATE",
              "UNLISTED",
              "SHARED",
              "PUBLIC"
            ],
            "default": "PRIVATE"
          },
          "from_workflow_id": {
            "type": "string"
          },
          "from_workflow_version_id": {
            "type": "string"
          },
          "from_template_id": {
            "type": "string"
          },
          "tags_ids": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "maxItems": 20
          },
          "key": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "input": {
            "$ref": "#/components/schemas/InputDefinitionSchema"
          },
          "steps": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/StepSchema"
            },
            "maxItems": 100
          }
        }
      },
      "WorkflowEventPartialDataSchema": {
        "type": "object",
        "properties": {
          "update": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "minLength": 2,
                "maxLength": 128
              },
              "description": {
                "type": "string",
                "nullable": true,
                "maxLength": 1024
              },
              "key": {
                "type": "string"
              },
              "input": {
                "$ref": "#/components/schemas/InputDefinitionSchema"
              },
              "input_default": {
                "$ref": "#/components/schemas/InputValuesSchema"
              },
              "input_options": {
                "$ref": "#/components/schemas/InputOptionsSchema"
              },
              "tags": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/TagSchema"
                }
              },
              "version": {
                "$ref": "#/components/schemas/WorkflowVersionSchema"
              },
              "tests_stats": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/WorkflowTestStatsSchema"
                  },
                  {
                    "description": "Statistics about workflow tests"
                  }
                ]
              },
              "runs_count": {
                "type": "number"
              },
              "enabled": {
                "type": "boolean"
              },
              "deleted": {
                "type": "boolean"
              },
              "visibility": {
                "type": "string",
                "enum": [
                  "PRIVATE",
                  "UNLISTED",
                  "SHARED",
                  "PUBLIC"
                ]
              },
              "steps": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/StepSchema"
                }
              },
              "steps_order": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            }
          },
          "remove": {
            "type": "object",
            "properties": {
              "steps": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "steps_paths": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "key": {
                      "type": "string"
                    },
                    "paths": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "required": [
                    "key",
                    "paths"
                  ]
                }
              }
            }
          }
        }
      },
      "WorkflowUserEventSchema": {
        "allOf": [
          {
            "$ref": "#/components/schemas/UpdateWorkflowUserEventSchema"
          },
          {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string",
                "nullable": true
              },
              "client_id": {
                "type": "string",
                "maxLength": 256
              }
            },
            "required": [
              "id",
              "name",
              "client_id"
            ]
          }
        ]
      },
      "WorkflowUserStateEventSchema": {
        "type": "object",
        "properties": {
          "cursor": {
            "type": "array",
            "items": {
              "type": "number"
            },
            "minItems": 2,
            "maxItems": 2,
            "description": "Cursor position"
          },
          "center": {
            "type": "array",
            "items": {
              "type": "number"
            },
            "minItems": 2,
            "maxItems": 2,
            "description": "Center of the view"
          },
          "zoom": {
            "type": "number",
            "description": "Zoom level"
          },
          "caret": {
            "type": "array",
            "items": {
              "type": "number"
            },
            "minItems": 2,
            "maxItems": 2,
            "description": "Caret position"
          },
          "step": {
            "type": "string",
            "maxLength": 128,
            "description": "Selected or hovered step key"
          },
          "focus": {
            "type": "string",
            "maxLength": 512,
            "description": "Focused step path"
          },
          "run": {
            "type": "string",
            "maxLength": 128,
            "description": "Selected run id"
          },
          "following": {
            "type": "string",
            "maxLength": 256,
            "description": "Following client id"
          }
        }
      },
      "RunEventModeSchema": {
        "type": "string",
        "enum": [
          "run",
          "replay",
          "retention"
        ],
        "description": "Source of the run event",
        "example": "run"
      },
      "WorkflowEventSchema": {
        "oneOf": [
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "init"
                ]
              },
              "data": {
                "type": "object",
                "properties": {
                  "client_id": {
                    "type": "string",
                    "maxLength": 256
                  },
                  "data": {
                    "$ref": "#/components/schemas/WorkflowSchema"
                  }
                },
                "required": [
                  "client_id",
                  "data"
                ]
              },
              "client_id": {
                "type": "string"
              }
            },
            "required": [
              "type",
              "data"
            ]
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "partial"
                ]
              },
              "data": {
                "$ref": "#/components/schemas/WorkflowEventPartialDataSchema"
              },
              "client_id": {
                "type": "string",
                "maxLength": 256
              },
              "resync": {
                "type": "boolean"
              }
            },
            "required": [
              "type",
              "data"
            ]
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "users"
                ]
              },
              "data": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/WorkflowUserEventSchema"
                }
              },
              "client_id": {
                "type": "string",
                "maxLength": 256
              },
              "skip": {
                "type": "boolean"
              }
            },
            "required": [
              "type",
              "data"
            ]
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "user-state"
                ]
              },
              "data": {
                "$ref": "#/components/schemas/WorkflowUserStateEventSchema"
              },
              "client_id": {
                "type": "string",
                "maxLength": 256
              },
              "skip": {
                "type": "boolean"
              }
            },
            "required": [
              "type",
              "data",
              "client_id"
            ]
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "user-leave"
                ]
              },
              "client_id": {
                "type": "string",
                "maxLength": 256
              }
            },
            "required": [
              "type",
              "client_id"
            ]
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "interaction"
                ]
              },
              "data": {
                "$ref": "#/components/schemas/WorkflowInteractionEventSchema"
              },
              "client_id": {
                "type": "string",
                "maxLength": 256
              }
            },
            "required": [
              "type",
              "data",
              "client_id"
            ]
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "run"
                ]
              },
              "run_id": {
                "type": "string"
              },
              "mode": {
                "$ref": "#/components/schemas/RunEventModeSchema"
              },
              "is_initial": {
                "type": "boolean"
              },
              "replay_step_key": {
                "type": "string"
              },
              "from_step_key": {
                "type": "string"
              },
              "identifier": {
                "type": "string"
              },
              "data": {
                "$ref": "#/components/schemas/RunSchema"
              }
            },
            "required": [
              "type",
              "run_id",
              "mode",
              "data"
            ]
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "step"
                ]
              },
              "run_id": {
                "type": "string"
              },
              "data": {
                "$ref": "#/components/schemas/RunStepOutputSchema"
              }
            },
            "required": [
              "type",
              "run_id",
              "data"
            ]
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "chunk"
                ]
              },
              "run_id": {
                "type": "string"
              },
              "data": {
                "$ref": "#/components/schemas/RunStepOutputChunkSchema"
              }
            },
            "required": [
              "type",
              "run_id",
              "data"
            ]
          }
        ]
      },
      "CreateRunSchema": {
        "type": "object",
        "properties": {
          "input": {
            "allOf": [
              {
                "$ref": "#/components/schemas/InputValuesSchema"
              },
              {
                "description": "Input values for the run"
              }
            ]
          },
          "stream": {
            "type": "boolean",
            "description": "Indicates if the run should stream output to the client as it becomes available via SSE (Server-Sent Events)"
          },
          "background": {
            "type": "boolean",
            "description": "Indicates if the run should be executed in the background and return the run information immediately"
          },
          "retention": {
            "$ref": "#/components/schemas/RunDataRetentionConfigInputSchema"
          },
          "workflow_version_id": {
            "$ref": "#/components/schemas/WorkflowVersionIdSchema"
          },
          "from_step_key": {
            "type": "string",
            "nullable": true,
            "description": "Step key to start the run from"
          },
          "identifier": {
            "type": "string",
            "maxLength": 256,
            "description": "Temporary WebSocket identifier used to track run status before creation completes"
          }
        },
        "description": "Data to create a new run"
      },
      "ReplayRunSchema": {
        "type": "object",
        "properties": {
          "stepKey": {
            "type": "string",
            "description": "Key of the workflow step to replay"
          },
          "stream": {
            "type": "boolean",
            "description": "Indicates if the step should stream output to the client as it becomes available via SSE (Server-Sent Events)"
          },
          "background": {
            "type": "boolean",
            "description": "Indicates if the step should be executed in the background and return the run information immediately"
          },
          "identifier": {
            "type": "string",
            "maxLength": 256,
            "description": "Temporary WebSocket identifier used to track replay status before creation completes"
          },
          "retention": {
            "$ref": "#/components/schemas/RunDataRetentionConfigInputSchema"
          }
        },
        "required": [
          "stepKey"
        ],
        "description": "Data to replay a workflow step"
      },
      "UpdateRunDataRetentionConfigSchema": {
        "type": "object",
        "properties": {
          "retention": {
            "$ref": "#/components/schemas/RunDataRetentionConfigInputSchema"
          }
        },
        "description": "Schema for updating run data retention configuration"
      },
      "WorkflowExpectationSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier for the expectation"
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256,
            "description": "Name of the expectation (max 256 characters)"
          },
          "script": {
            "type": "string",
            "maxLength": 10240,
            "description": "JavaScript code that results in a boolean value determining if the expectation passed or failed"
          },
          "created_at": {
            "type": "string",
            "nullable": true,
            "description": "Creation date of the expectation",
            "format": "date"
          },
          "updated_at": {
            "type": "string",
            "nullable": true,
            "description": "Last update date of the expectation",
            "format": "date"
          }
        },
        "required": [
          "id",
          "name",
          "script",
          "created_at",
          "updated_at"
        ],
        "description": "Detailed information about an expectation within a workflow"
      },
      "CreateWorkflowExpectationSchema": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256,
            "description": "Name of the expectation (max 256 characters)"
          },
          "script": {
            "type": "string",
            "maxLength": 10240,
            "description": "JavaScript code that results in a boolean value determining if the expectation passed or failed"
          }
        },
        "required": [
          "name",
          "script"
        ],
        "description": "Detailed information about an expectation within a workflow"
      },
      "UpdateWorkflowExpectationSchema": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256,
            "description": "Name of the expectation (max 256 characters)"
          },
          "script": {
            "type": "string",
            "maxLength": 10240,
            "description": "JavaScript code that results in a boolean value determining if the expectation passed or failed"
          }
        },
        "description": "Detailed information about an expectation within a workflow"
      },
      "WorkflowTestExpectationItemSchema": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256,
            "description": "Unique key for the expectation (max 256 characters)"
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256,
            "description": "Name of the expectation (max 256 characters)"
          },
          "expectation_id": {
            "type": "string",
            "maxLength": 256,
            "description": "Unique identifier for the expectation"
          },
          "script": {
            "type": "string",
            "maxLength": 10240,
            "description": "JavaScript code that results in a boolean value determining if the expectation passed or failed"
          },
          "output": {
            "nullable": true,
            "description": "Output of the expectation"
          },
          "logs": {
            "$ref": "#/components/schemas/RuntimeLogs"
          },
          "status": {
            "type": "string",
            "enum": [
              "PASSED",
              "FAILED"
            ],
            "description": "Status of the expectation",
            "example": "PASSED"
          }
        },
        "required": [
          "key",
          "name"
        ],
        "description": "Detailed information about an expectation within a workflow test"
      },
      "WorkflowTestSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier for the workflow test"
          },
          "name": {
            "type": "string",
            "description": "Name of the workflow test"
          },
          "status": {
            "type": "string",
            "enum": [
              "DRAFT",
              "CANCELLED",
              "RUNNING",
              "FAILED",
              "PASSED"
            ],
            "description": "Status of the workflow test",
            "example": "PASSED"
          },
          "input": {
            "allOf": [
              {
                "$ref": "#/components/schemas/InputValuesSchema"
              },
              {
                "description": "Input values for the workflow test"
              }
            ]
          },
          "input_default": {
            "allOf": [
              {
                "$ref": "#/components/schemas/InputValuesSchema"
              },
              {
                "description": "Default input values for the workflow test"
              }
            ]
          },
          "input_context": {
            "allOf": [
              {
                "$ref": "#/components/schemas/InputValuesSchema"
              },
              {
                "description": "Default input values for the workflow test"
              }
            ]
          },
          "step_key": {
            "type": "string",
            "nullable": true,
            "description": "Starting step key for the workflow test"
          },
          "expectations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WorkflowTestExpectationItemSchema"
            },
            "description": "List of expectations that will be executed for the workflow test"
          },
          "expectations_passing_count": {
            "type": "number",
            "description": "Number of passing expectations"
          },
          "expectations_failing_count": {
            "type": "number",
            "description": "Number of failing expectations"
          },
          "workflow_id": {
            "type": "string",
            "description": "Identifier of the associated workflow"
          },
          "run": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RunSchema"
              },
              {
                "nullable": true,
                "description": "Run details of the workflow test"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "nullable": true,
            "description": "Creation date of the workflow test",
            "format": "date"
          },
          "updated_at": {
            "type": "string",
            "nullable": true,
            "description": "Last update date of the workflow test",
            "format": "date"
          }
        },
        "required": [
          "id",
          "name",
          "status",
          "step_key",
          "expectations_passing_count",
          "expectations_failing_count",
          "workflow_id",
          "run",
          "created_at",
          "updated_at"
        ],
        "description": "Detailed information about a workflow test"
      },
      "WorkflowTestEventSchema": {
        "oneOf": [
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "test"
                ]
              },
              "data": {
                "$ref": "#/components/schemas/WorkflowTestSchema"
              }
            },
            "required": [
              "type",
              "data"
            ]
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "stats"
                ]
              },
              "data": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/WorkflowTestStatsSchema"
                  },
                  {
                    "description": "Statistics about workflow tests"
                  }
                ]
              }
            },
            "required": [
              "type",
              "data"
            ]
          }
        ]
      },
      "CreateWorkflowTestSchema": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256,
            "description": "Name of the workflow test to be created (max 256 characters)"
          }
        },
        "required": [
          "name"
        ],
        "description": "Data to create a new workflow test"
      },
      "RunWorkflowTestsSchema": {
        "type": "object",
        "properties": {
          "workflow_version_number": {
            "type": "number",
            "description": "Version number of the workflow on which to run the test"
          },
          "execute_failed_only": {
            "type": "boolean",
            "description": "Flag to execute only the failed workflow tests"
          }
        },
        "description": "Data to run multiple workflow tests"
      },
      "UpdateWorkflowTestSchema": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256,
            "description": "Name of the workflow test to be created (max 256 characters)"
          },
          "input": {
            "allOf": [
              {
                "$ref": "#/components/schemas/InputValuesSchema"
              },
              {
                "description": "Updated input values for the workflow test"
              }
            ]
          },
          "input_default": {
            "allOf": [
              {
                "$ref": "#/components/schemas/InputValuesSchema"
              },
              {
                "description": "Updated default input values for the workflow test"
              }
            ]
          },
          "input_context": {
            "allOf": [
              {
                "$ref": "#/components/schemas/InputValuesSchema"
              },
              {
                "description": "Updated context input values for the workflow test"
              }
            ]
          },
          "expectations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WorkflowTestExpectationItemSchema"
            },
            "maxItems": 30,
            "description": "Updated list of expectations for the workflow test"
          },
          "step_key": {
            "type": "string",
            "nullable": true,
            "description": "Updated starting step key for the workflow test"
          }
        },
        "description": "Data to update an existing workflow test"
      },
      "RunWorkflowTestSchema": {
        "type": "object",
        "properties": {
          "workflow_version_number": {
            "type": "number",
            "description": "Version number of the workflow on which to run the test"
          },
          "execute_async": {
            "type": "boolean",
            "description": "Flag to execute the workflow test asynchronously"
          },
          "execute_expectations_only": {
            "type": "boolean",
            "description": "Flag to execute only the expectations using the already executed workflow run result, without running the workflow again."
          }
        },
        "description": "Data to run a workflow test"
      },
      "CreateWorkflowVersionSchema": {
        "type": "object",
        "properties": {
          "notes": {
            "type": "string",
            "maxLength": 1024,
            "description": "Release notes"
          },
          "rollback_version_id": {
            "type": "string",
            "description": "Version id to rollback to"
          },
          "rollback_update_draft": {
            "type": "boolean",
            "description": "Update draft with the rollback version"
          }
        },
        "description": "Information to create a new workflow version"
      },
      "WorkflowEndpointTypeSchema": {
        "type": "string",
        "enum": [
          "USER",
          "MCP"
        ],
        "description": "Type of the workflow endpoint"
      },
      "WorkflowEndpointSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier for the workflow endpoint"
          },
          "type": {
            "$ref": "#/components/schemas/WorkflowEndpointTypeSchema"
          },
          "app_id": {
            "type": "string",
            "description": "ID of the app this endpoint belongs to"
          },
          "slug": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256,
            "description": "URL-friendly unique identifier for accessing the endpoint"
          },
          "step_key": {
            "type": "string",
            "nullable": true,
            "description": "Step key to run the endpoint on"
          },
          "workflow_id": {
            "type": "string",
            "description": "ID of the workflow this endpoint is associated with"
          },
          "workflow_version_id": {
            "$ref": "#/components/schemas/WorkflowVersionIdSchema"
          },
          "created_at": {
            "type": "string",
            "nullable": true,
            "description": "Creation date of the endpoint",
            "format": "date"
          },
          "updated_at": {
            "type": "string",
            "nullable": true,
            "description": "Last update date of the endpoint",
            "format": "date"
          }
        },
        "required": [
          "id",
          "type",
          "app_id",
          "slug",
          "step_key",
          "workflow_id",
          "workflow_version_id",
          "created_at",
          "updated_at"
        ],
        "description": "A public endpoint configuration for executing a workflow"
      },
      "CreateWorkflowEndpointSchema": {
        "type": "object",
        "properties": {
          "type": {
            "$ref": "#/components/schemas/WorkflowEndpointTypeSchema"
          },
          "step_key": {
            "type": "string",
            "nullable": true,
            "description": "Step key to run the endpoint on"
          },
          "workflow_version": {
            "$ref": "#/components/schemas/WorkflowVersionIdSchema"
          }
        },
        "required": [
          "workflow_version"
        ],
        "description": "Data required to create a new workflow endpoint"
      },
      "UpdateWorkflowEndpointSchema": {
        "type": "object",
        "properties": {
          "type": {
            "$ref": "#/components/schemas/WorkflowEndpointTypeSchema"
          },
          "step_key": {
            "type": "string",
            "nullable": true,
            "description": "Step key to run the endpoint on"
          },
          "workflow_version": {
            "$ref": "#/components/schemas/WorkflowVersionIdSchema"
          }
        },
        "description": "Data that can be updated on a workflow endpoint"
      },
      "CreateWorkflowPermissionSchema": {
        "type": "object",
        "properties": {
          "app_id": {
            "type": "string",
            "description": "ID of the app this permission belongs to"
          }
        },
        "required": [
          "app_id"
        ],
        "description": "Data required to create a new workflow permission"
      },
      "ExtendedCollectionSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier for the collection"
          },
          "name": {
            "type": "string",
            "description": "Name of the collection"
          },
          "description": {
            "type": "string",
            "nullable": true,
            "description": "Description of the collection"
          },
          "app": {
            "$ref": "#/components/schemas/AppPublicSchema"
          },
          "tags": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TagSchema"
            },
            "description": "Tags attached to this collection"
          },
          "records_count": {
            "type": "number",
            "description": "How many records are in the collection"
          },
          "deleted": {
            "type": "boolean",
            "description": "Has the collection been deleted"
          },
          "triggers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TriggerSchema"
            },
            "description": "Triggers associated with the collection"
          },
          "created_at": {
            "type": "string",
            "nullable": true,
            "description": "Timestamp when the collection was created",
            "format": "date"
          },
          "updated_at": {
            "type": "string",
            "nullable": true,
            "description": "Timestamp when the collection was last updated",
            "format": "date"
          },
          "link": {
            "type": "string",
            "description": "Link to the collection in the UI"
          },
          "config": {
            "type": "object",
            "nullable": true,
            "properties": {
              "id": {
                "type": "string",
                "description": "Unique identifier for the collection configuration"
              },
              "mappings": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/CollectionConfigMappingSchema"
                },
                "description": "List of input field mappings of the collection"
              },
              "created_at": {
                "type": "string",
                "nullable": true,
                "description": "Timestamp when the configuration was created",
                "format": "date"
              },
              "updated_at": {
                "type": "string",
                "nullable": true,
                "description": "Timestamp when the configuration was last updated",
                "format": "date"
              },
              "rules": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/ExtendedRuleSchema"
                },
                "description": "List of rules associated with the collection with workflow details"
              }
            },
            "required": [
              "id",
              "mappings",
              "created_at",
              "updated_at",
              "rules"
            ]
          }
        },
        "required": [
          "id",
          "name",
          "description",
          "app",
          "tags",
          "records_count",
          "deleted",
          "triggers",
          "created_at",
          "updated_at",
          "link",
          "config"
        ],
        "description": "Detailed information about a collection including its config (rules, triggers, etc.)"
      },
      "CreateCollectionSchema": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 64,
            "description": "What you want to call your new collection (keep it under 64 characters)",
            "example": "My New Collection"
          },
          "description": {
            "type": "string",
            "nullable": true,
            "maxLength": 1024,
            "description": "A short blurb about your collection (up to 1024 characters)",
            "example": "This is a description of my new collection"
          },
          "from_collection_id": {
            "type": "string",
            "description": "Want to copy another collection? Put its ID here",
            "example": "col_xxx"
          },
          "tags_ids": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "maxItems": 20,
            "description": "Tags you want to add to your collection (up to 20)",
            "example": [
              "tag_xxx",
              "tag_yyy"
            ]
          }
        },
        "required": [
          "name"
        ]
      },
      "UpdateCollectionSchema": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 64,
            "description": "What you want to call your new collection (keep it under 64 characters)",
            "example": "My New Collection"
          },
          "description": {
            "type": "string",
            "nullable": true,
            "maxLength": 1024,
            "description": "A short blurb about your collection (up to 1024 characters)",
            "example": "This is a description of my new collection"
          },
          "tags_ids": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "maxItems": 20,
            "description": "Tags you want to add to your collection (up to 20)",
            "example": [
              "tag_xxx",
              "tag_yyy"
            ]
          }
        },
        "description": "How you want to change your collection",
        "example": {
          "name": "Updated Collection Name",
          "description": "Updated collection description",
          "tags_ids": [
            "tag_xxx",
            "tag_yyy"
          ]
        }
      },
      "UpdateRuleSchema": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "key": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "execution_order": {
            "type": "string"
          },
          "on_success": {
            "type": "string",
            "enum": [
              "PASS",
              "FAIL",
              "WARN"
            ]
          },
          "on_fail": {
            "type": "string",
            "enum": [
              "PASS",
              "FAIL",
              "WARN"
            ]
          },
          "step_key": {
            "type": "string",
            "nullable": true
          },
          "workflow_id": {
            "type": "string"
          },
          "workflow_version_id": {
            "type": "string"
          },
          "workflow_use_latest": {
            "type": "boolean",
            "default": true
          },
          "workflow_input_default": {
            "$ref": "#/components/schemas/InputValuesSchema"
          }
        },
        "required": [
          "name",
          "key",
          "on_success",
          "on_fail",
          "workflow_id",
          "workflow_version_id"
        ]
      },
      "UpdateCollectionConfigSchema": {
        "type": "object",
        "properties": {
          "rules": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/UpdateRuleSchema"
            },
            "maxItems": 100
          },
          "mappings": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CollectionConfigMappingSchema"
            },
            "maxItems": 100
          }
        }
      },
      "CreateTriggerSchema": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "enabled": {
            "type": "boolean"
          },
          "config": {
            "$ref": "#/components/schemas/TriggerConfigSchema"
          },
          "connection_id": {
            "type": "string",
            "nullable": true
          }
        },
        "required": [
          "name",
          "enabled",
          "config",
          "connection_id"
        ]
      },
      "UpdateTriggerSchema": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "enabled": {
            "type": "boolean"
          },
          "config": {
            "$ref": "#/components/schemas/TriggerConfigSchema"
          },
          "connection_id": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "SyncTriggerEntitySchema": {
        "type": "object",
        "properties": {
          "entity_id": {
            "type": "string"
          }
        },
        "required": [
          "entity_id"
        ],
        "description": "Detailed information about a trigger entity to sync"
      },
      "TriggerEntitiesListItemSchema": {
        "type": "object",
        "properties": {
          "entity_id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          }
        },
        "required": [
          "entity_id",
          "name"
        ],
        "description": "Detailed information about a trigger entity list item"
      },
      "TriggerMappingFieldSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "property",
              "document"
            ]
          },
          "name": {
            "type": "string"
          },
          "entity_path": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512
          }
        },
        "required": [
          "type",
          "name",
          "entity_path"
        ]
      },
      "TriggerEncompassConfigMetadata": {
        "type": "object",
        "properties": {
          "folders": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "List of Encompass folders to pull",
            "example": [
              "Loan Folder",
              "Document Folder"
            ]
          },
          "milestones": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "List of Encompass milestones to pull",
            "example": [
              "Application Received",
              "Underwriting Complete"
            ]
          }
        },
        "required": [
          "folders",
          "milestones"
        ],
        "description": "Metadata for an Encompass trigger"
      },
      "UpdateRecordRulesSchema": {
        "type": "object",
        "additionalProperties": {
          "$ref": "#/components/schemas/InputValuesSchema"
        },
        "description": "The rules to be applied to the record"
      },
      "CreateRecordSchema": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true,
            "minLength": 1,
            "maxLength": 128,
            "description": "Name of the record (up to 128 characters)",
            "example": "New Important Record"
          },
          "rules": {
            "$ref": "#/components/schemas/UpdateRecordRulesSchema"
          },
          "run": {
            "type": "string",
            "enum": [
              "all",
              "changed"
            ],
            "description": "When running the record, specify whether all rules should be executed or only the changed ones",
            "example": "changed"
          },
          "tags_ids": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "maxItems": 20,
            "description": "Tags to associate with the record (up to 20)",
            "example": [
              "tag_xxx",
              "tag_yyy"
            ]
          }
        }
      },
      "UpdateRecordSchema": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true,
            "minLength": 1,
            "maxLength": 128,
            "description": "Name of the record (up to 128 characters)",
            "example": "New Important Record"
          },
          "rules": {
            "$ref": "#/components/schemas/UpdateRecordRulesSchema"
          },
          "run": {
            "type": "string",
            "enum": [
              "all",
              "changed"
            ],
            "description": "When running the record, specify whether all rules should be executed or only the changed ones",
            "example": "changed"
          },
          "tags_ids": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "maxItems": 20,
            "description": "Tags to associate with the record (up to 20)",
            "example": [
              "tag_xxx",
              "tag_yyy"
            ]
          }
        }
      },
      "RecordEventSchema": {
        "oneOf": [
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "record"
                ]
              },
              "data": {
                "$ref": "#/components/schemas/ExtendedRecordSchema"
              }
            },
            "required": [
              "type",
              "data"
            ]
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "rule"
                ]
              },
              "data": {
                "$ref": "#/components/schemas/RecordRuleSchema"
              }
            },
            "required": [
              "type",
              "data"
            ]
          }
        ]
      },
      "RecordRuleErrorSchema": {
        "type": "object",
        "properties": {
          "message": {
            "type": "string"
          },
          "errors": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "code": {
                  "type": "string"
                },
                "expected": {
                  "type": "string"
                },
                "received": {
                  "type": "string"
                },
                "path": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "message": {
                  "type": "string"
                }
              },
              "required": [
                "code",
                "expected",
                "received",
                "path",
                "message"
              ]
            }
          },
          "key": {
            "type": "string"
          }
        },
        "required": [
          "message",
          "errors",
          "key"
        ],
        "description": "Detailed information about a rule execution error"
      },
      "RecordStatusSchema": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "DRAFT",
              "QUEUED",
              "RUNNING",
              "CANCELLED",
              "COMPLETED",
              "FAILED"
            ],
            "description": "Current status of the record",
            "example": "FAILED"
          },
          "errors": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RecordRuleErrorSchema"
            },
            "description": "List of errors if the record failed validation"
          }
        },
        "required": [
          "status"
        ],
        "description": "Status information of a record, including any validation errors"
      },
      "RunRecordSchema": {
        "type": "object",
        "properties": {
          "mode": {
            "type": "string",
            "enum": [
              "all",
              "changed"
            ],
            "description": "Specifies which rules to run",
            "example": "changed"
          }
        },
        "required": [
          "mode"
        ]
      },
      "RecordRenderSchema": {
        "type": "object",
        "properties": {
          "token": {
            "type": "string"
          }
        },
        "required": [
          "token"
        ]
      },
      "RecordInviteSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier for the record invite"
          },
          "email": {
            "type": "string",
            "format": "email",
            "description": "Email address of the invited user"
          },
          "record_name": {
            "type": "string",
            "nullable": true,
            "description": "Name of the record that the user is invited to"
          },
          "created_at": {
            "type": "string",
            "nullable": true,
            "description": "Timestamp when the invite was created",
            "format": "date"
          }
        },
        "required": [
          "id",
          "email",
          "record_name",
          "created_at"
        ],
        "description": "Detailed information about a record invite"
      },
      "RecordInviteAcceptedSchema": {
        "type": "object",
        "properties": {
          "app_id": {
            "type": "string",
            "description": "Unique identifier of the app where the invite was accepted",
            "example": "app_xxx"
          },
          "record_id": {
            "type": "string",
            "description": "Unique identifier of the record that the invite was accepted for",
            "example": "rec_xxx"
          }
        },
        "required": [
          "app_id",
          "record_id"
        ],
        "description": "Detailed information about an accepted record invite"
      },
      "AcceptRecordInviteSchema": {
        "type": "object",
        "properties": {
          "app_id": {
            "type": "string",
            "description": "Unique identifier of the app to which the invitation is to be accepted",
            "example": "app_xxx"
          }
        },
        "required": [
          "app_id"
        ]
      },
      "SendRecordInviteSchema": {
        "type": "object",
        "properties": {
          "email": {
            "type": "string",
            "format": "email",
            "description": "Email address of the user to invite",
            "example": "user@example.com"
          },
          "note": {
            "type": "string",
            "nullable": true,
            "description": "Optional note to include with the invite",
            "example": "Please review this important record."
          }
        },
        "required": [
          "email"
        ]
      },
      "RecordSharedAppSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier of the shared record"
          },
          "app": {
            "allOf": [
              {
                "$ref": "#/components/schemas/AppPublicSchema"
              },
              {
                "description": "Public information about the app associated with the shared record"
              }
            ]
          },
          "record": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RecordSchema"
              },
              {
                "description": "Detailed information about the shared record"
              }
            ]
          },
          "accepted_by": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string",
                "nullable": true
              },
              "email": {
                "type": "string",
                "format": "email"
              }
            },
            "required": [
              "id",
              "name",
              "email"
            ],
            "description": "User who accepted the shared record"
          },
          "shared_by": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string",
                "nullable": true
              },
              "email": {
                "type": "string",
                "format": "email"
              }
            },
            "required": [
              "id",
              "name",
              "email"
            ],
            "description": "User who shared the record"
          }
        },
        "required": [
          "id",
          "app",
          "record",
          "accepted_by",
          "shared_by"
        ],
        "description": "Detailed information about a shared record"
      },
      "UpdateRecordRuleSchema": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "FAILED",
              "PASSED",
              "WARN"
            ]
          },
          "input": {
            "$ref": "#/components/schemas/InputValuesSchema"
          },
          "input_action": {
            "type": "object",
            "properties": {
              "add": {
                "type": "object",
                "additionalProperties": {
                  "nullable": true
                }
              },
              "remove": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            }
          }
        }
      },
      "WebhookEventItemSchema": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Name of the webhook event",
            "example": "Record created"
          },
          "event": {
            "type": "string",
            "description": "Type of the webhook event",
            "example": "record.created"
          }
        },
        "required": [
          "name",
          "event"
        ],
        "description": "Information about a webhook event"
      },
      "WebhookLogSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier for the webhook log"
          },
          "url": {
            "type": "string",
            "format": "uri",
            "description": "URL to which the webhook was sent",
            "example": "https://example.com/webhook"
          },
          "event": {
            "type": "string",
            "description": "Event type that triggered the webhook",
            "example": "record.created"
          },
          "status": {
            "type": "string",
            "enum": [
              "PENDING",
              "PROCESSING",
              "SUCCEDED",
              "FAILED"
            ],
            "description": "Current status of the webhook log",
            "example": "SUCCEDED"
          },
          "payload": {
            "nullable": true,
            "description": "Payload sent with the webhook"
          },
          "attempt_count": {
            "type": "number",
            "description": "Number of attempts made to send the webhook"
          },
          "idempotency_key": {
            "type": "string",
            "description": "Idempotency key to ensure webhook is not processed multiple times"
          },
          "response_body": {
            "type": "string",
            "nullable": true,
            "description": "Response body received from the webhook endpoint"
          },
          "response_headers": {
            "type": "string",
            "nullable": true,
            "description": "Response headers received from the webhook endpoint"
          },
          "response_status": {
            "type": "number",
            "nullable": true,
            "description": "HTTP status code received from the webhook endpoint"
          },
          "created_at": {
            "type": "string",
            "nullable": true,
            "description": "Timestamp when the webhook log was created",
            "format": "date"
          }
        },
        "required": [
          "id",
          "url",
          "event",
          "status",
          "attempt_count",
          "idempotency_key",
          "response_body",
          "response_headers",
          "response_status",
          "created_at"
        ],
        "description": "Detailed information about a webhook log"
      },
      "WebhookSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier for the webhook"
          },
          "url": {
            "type": "string",
            "format": "uri",
            "description": "URL to which the webhook will send POST requests",
            "example": "https://example.com/webhook"
          },
          "created_at": {
            "type": "string",
            "nullable": true,
            "description": "Timestamp when the webhook was created",
            "format": "date"
          },
          "updated_at": {
            "type": "string",
            "nullable": true,
            "description": "Timestamp when the webhook was last updated",
            "format": "date"
          },
          "events": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "record.created",
                "record.running",
                "record.completed",
                "record.failed"
              ],
              "description": "Type of the webhook event",
              "example": "record.created"
            },
            "description": "List of events that trigger the webhook",
            "example": [
              "record.created",
              "record.completed"
            ]
          }
        },
        "required": [
          "id",
          "url",
          "created_at",
          "updated_at",
          "events"
        ],
        "description": "Detailed information about a webhook"
      },
      "CreateWebhookSchema": {
        "type": "object",
        "properties": {
          "url": {
            "type": "string",
            "format": "uri",
            "description": "URL to which the webhook will send POST requests",
            "example": "https://example.com/webhook"
          },
          "events": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "record.created",
                "record.running",
                "record.completed",
                "record.failed"
              ],
              "description": "Type of the webhook event",
              "example": "record.created"
            },
            "description": "List of events that trigger the webhook",
            "example": [
              "record.created",
              "record.completed"
            ]
          }
        },
        "required": [
          "url",
          "events"
        ],
        "description": "Data to create a new webhook"
      },
      "UpdateWebhookSchema": {
        "type": "object",
        "properties": {
          "url": {
            "type": "string",
            "format": "uri",
            "description": "URL to which the webhook will send POST requests",
            "example": "https://example.com/webhook"
          },
          "events": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "record.created",
                "record.running",
                "record.completed",
                "record.failed"
              ],
              "description": "Type of the webhook event",
              "example": "record.created"
            },
            "description": "List of events that trigger the webhook",
            "example": [
              "record.created",
              "record.completed"
            ]
          }
        },
        "description": "Data to update an existing webhook"
      },
      "GenerationInputSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Hosted input id. Runtime only; never shown to the model."
          },
          "url": {
            "type": "string",
            "description": "Provider-fetchable HTTPS URL."
          },
          "mime": {
            "type": "string",
            "description": "Stored MIME type.",
            "example": "video/mp4"
          },
          "bytes": {
            "type": "number",
            "description": "Stored size in bytes."
          },
          "expires_at": {
            "type": "string",
            "description": "ISO timestamp when the object and row are deleted."
          }
        },
        "required": [
          "id",
          "url",
          "mime",
          "bytes",
          "expires_at"
        ]
      },
      "CreateGenerationInputSchema": {
        "type": "object",
        "properties": {
          "file": {
            "type": "string",
            "description": "Local image or video to host for a confirmed generate. Runtime only.",
            "format": "binary"
          },
          "ttl_seconds": {
            "type": "integer",
            "nullable": true,
            "minimum": 60,
            "maximum": 5400,
            "description": "Seconds until the object is deleted. Default 5400 (90 min). Min 60, max 5400."
          }
        },
        "required": [
          "file"
        ]
      }
    },
    "parameters": {}
  },
  "paths": {
    "/info": {
      "get": {
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InfoSchema"
                }
              }
            }
          }
        }
      }
    },
    "/auth": {
      "get": {
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthSchema"
                }
              }
            }
          }
        }
      },
      "post": {
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ValidateAuthSchema"
              }
            },
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/ValidateAuthSchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthSchema"
                }
              }
            }
          }
        }
      },
      "delete": {
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "nullable": true
                }
              }
            }
          }
        }
      }
    },
    "/auth/code": {
      "post": {
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RequestAuthCodeSchema"
              }
            },
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/RequestAuthCodeSchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthCodeSchema"
                }
              }
            }
          }
        }
      }
    },
    "/invitations/limits": {
      "get": {
        "parameters": [
          {
            "schema": {
              "type": "string",
              "minLength": 1
            },
            "required": false,
            "name": "app_id",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "used": {
                      "type": "number"
                    },
                    "max_allowed": {
                      "type": "number",
                      "nullable": true
                    },
                    "remaining": {
                      "type": "number",
                      "nullable": true
                    }
                  },
                  "required": [
                    "used",
                    "max_allowed",
                    "remaining"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/invitations": {
      "post": {
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string",
                    "enum": [
                      "COMMON",
                      "CUSTOM"
                    ],
                    "default": "COMMON"
                  },
                  "app_id": {
                    "type": "string",
                    "minLength": 1
                  },
                  "custom_code": {
                    "type": "string",
                    "minLength": 3,
                    "maxLength": 64,
                    "pattern": "^[a-zA-Z0-9_-]+$"
                  }
                }
              }
            },
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string",
                    "enum": [
                      "COMMON",
                      "CUSTOM"
                    ],
                    "default": "COMMON"
                  },
                  "app_id": {
                    "type": "string",
                    "minLength": 1
                  },
                  "custom_code": {
                    "type": "string",
                    "minLength": 3,
                    "maxLength": 64,
                    "pattern": "^[a-zA-Z0-9_-]+$"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "code": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "COMMON",
                        "CUSTOM"
                      ]
                    },
                    "uses": {
                      "type": "number"
                    },
                    "max_uses": {
                      "type": "number",
                      "nullable": true
                    },
                    "active": {
                      "type": "boolean"
                    },
                    "exhausted": {
                      "type": "boolean"
                    },
                    "created_at": {
                      "type": "string"
                    },
                    "reward_status": {
                      "type": "string",
                      "nullable": true,
                      "enum": [
                        "pending",
                        "rewarded"
                      ]
                    },
                    "redeemed_by_name": {
                      "type": "string",
                      "nullable": true
                    }
                  },
                  "required": [
                    "id",
                    "code",
                    "type",
                    "uses",
                    "max_uses",
                    "active",
                    "exhausted",
                    "created_at",
                    "reward_status",
                    "redeemed_by_name"
                  ]
                }
              }
            }
          }
        }
      },
      "get": {
        "parameters": [
          {
            "schema": {
              "type": "number",
              "nullable": true
            },
            "required": false,
            "name": "page",
            "in": "query"
          },
          {
            "schema": {
              "type": "number",
              "nullable": true
            },
            "required": false,
            "name": "take",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "minLength": 1
            },
            "required": false,
            "name": "app_id",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "code": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "COMMON",
                        "CUSTOM"
                      ]
                    },
                    "uses": {
                      "type": "number"
                    },
                    "max_uses": {
                      "type": "number",
                      "nullable": true
                    },
                    "active": {
                      "type": "boolean"
                    },
                    "exhausted": {
                      "type": "boolean"
                    },
                    "created_at": {
                      "type": "string"
                    },
                    "reward_status": {
                      "type": "string",
                      "nullable": true,
                      "enum": [
                        "pending",
                        "rewarded"
                      ]
                    },
                    "redeemed_by_name": {
                      "type": "string",
                      "nullable": true
                    }
                  },
                  "required": [
                    "id",
                    "code",
                    "type",
                    "uses",
                    "max_uses",
                    "active",
                    "exhausted",
                    "created_at",
                    "reward_status",
                    "redeemed_by_name"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/invitations/redeem": {
      "post": {
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "code": {
                    "type": "string",
                    "minLength": 3
                  },
                  "app_id": {
                    "type": "string",
                    "minLength": 1
                  }
                },
                "required": [
                  "code",
                  "app_id"
                ]
              }
            },
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "code": {
                    "type": "string",
                    "minLength": 3
                  },
                  "app_id": {
                    "type": "string",
                    "minLength": 1
                  }
                },
                "required": [
                  "code",
                  "app_id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "enum": [
                        "checkout"
                      ]
                    },
                    "checkout_url": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "type",
                    "checkout_url"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/users/me/onboarding": {
      "post": {
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "nullable": true
                }
              }
            }
          }
        }
      }
    },
    "/users/me": {
      "get": {
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserSchema"
                }
              }
            }
          }
        }
      },
      "patch": {
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateUserMeSchema"
              }
            },
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/UpdateUserMeSchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserSchema"
                }
              }
            }
          }
        }
      }
    },
    "/users/me/surveys": {
      "post": {
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReplyUserSurveySchema"
              }
            },
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/ReplyUserSurveySchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "nullable": true
                }
              }
            }
          }
        }
      }
    },
    "/users/me/surveys/{survey_id}/check": {
      "get": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "survey_id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserSurveyCheckSchema"
                }
              }
            }
          }
        }
      }
    },
    "/users/me/surveys/{survey_id}/reset": {
      "post": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "survey_id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "nullable": true
                }
              }
            }
          }
        }
      }
    },
    "/users/me/workspace-onboarding": {
      "get": {
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkspaceOnboardingProgressSchema"
                }
              }
            }
          }
        }
      },
      "patch": {
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PatchWorkspaceOnboardingSchema"
              }
            },
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/PatchWorkspaceOnboardingSchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkspaceOnboardingProgressSchema"
                }
              }
            }
          }
        }
      }
    },
    "/users/me/workspace-onboarding/complete": {
      "post": {
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkspaceOnboardingProgressSchema"
                }
              }
            }
          }
        }
      }
    },
    "/users/me/workspace-onboarding/reset": {
      "post": {
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "nullable": true
                }
              }
            }
          }
        }
      }
    },
    "/secure/debug/ip": {
      "get": {
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DebugIpSchema"
                }
              }
            }
          }
        }
      }
    },
    "/secure/credits/info": {
      "get": {
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreditsInfoSchema"
                }
              }
            }
          }
        }
      }
    },
    "/secure/analytics/dashboard": {
      "get": {
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DashboardAnalyticsSchema"
                }
              }
            }
          }
        }
      }
    },
    "/secure/analytics/active-users": {
      "get": {
        "parameters": [
          {
            "schema": {
              "type": "string",
              "nullable": true,
              "format": "date"
            },
            "required": false,
            "name": "from_date",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ActiveUsersSchema"
                }
              }
            }
          }
        }
      }
    },
    "/secure/analytics/metrics": {
      "get": {
        "parameters": [
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Page number",
            "name": "page",
            "in": "query"
          },
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Number of items to take",
            "name": "take",
            "in": "query"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": false,
            "description": "Next page token (Only used on special endpoints)",
            "name": "next",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MetricSchema"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/secure/analytics/metrics/{metric_id}": {
      "get": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "metric_id",
            "in": "path"
          },
          {
            "schema": {
              "$ref": "#/components/schemas/MetricsIntervalSchema"
            },
            "required": false,
            "name": "interval",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "nullable": true,
              "format": "date"
            },
            "required": false,
            "name": "from_date",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "nullable": true,
              "format": "date"
            },
            "required": false,
            "name": "to_date",
            "in": "query"
          },
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Page number",
            "name": "page",
            "in": "query"
          },
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Number of items to take",
            "name": "take",
            "in": "query"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": false,
            "description": "Next page token (Only used on special endpoints)",
            "name": "next",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MetricItemSchema"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/secure/status": {
      "get": {
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SecureStatusSchema"
                }
              }
            }
          }
        }
      }
    },
    "/secure/status/instances": {
      "get": {
        "parameters": [
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Page number",
            "name": "page",
            "in": "query"
          },
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Number of items to take",
            "name": "take",
            "in": "query"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": false,
            "description": "Next page token (Only used on special endpoints)",
            "name": "next",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/InstanceSchema"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/secure/status/instances/scheduler": {
      "get": {
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SchedulerSchema"
                }
              }
            }
          }
        }
      }
    },
    "/secure/settings": {
      "get": {
        "parameters": [
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Page number",
            "name": "page",
            "in": "query"
          },
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Number of items to take",
            "name": "take",
            "in": "query"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": false,
            "description": "Next page token (Only used on special endpoints)",
            "name": "next",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/SettingSchema"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/secure/settings/{setting_id}": {
      "patch": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "setting_id",
            "in": "path"
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateSettingSchema"
              }
            },
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/UpdateSettingSchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SettingSchema"
                }
              }
            }
          }
        }
      },
      "get": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "setting_id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SettingSchema"
                }
              }
            }
          }
        }
      }
    },
    "/secure/models": {
      "get": {
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "schemaVersion": {
                      "type": "number",
                      "enum": [
                        1
                      ]
                    },
                    "revision": {
                      "type": "integer",
                      "minimum": 0,
                      "exclusiveMinimum": true,
                      "maximum": 2147483647
                    },
                    "catalogVersion": {
                      "type": "string"
                    },
                    "publishedAt": {
                      "type": "string",
                      "nullable": true,
                      "format": "date"
                    },
                    "updatedBy": {
                      "type": "string",
                      "nullable": true
                    },
                    "models": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "modelId": {
                            "type": "string"
                          },
                          "routes": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "targetId": {
                                  "type": "string"
                                },
                                "enabled": {
                                  "type": "boolean"
                                },
                                "priority": {
                                  "type": "integer",
                                  "minimum": 1,
                                  "maximum": 1000000
                                },
                                "provider": {
                                  "type": "string"
                                },
                                "upstreamRoute": {
                                  "type": "string"
                                },
                                "upstreamModel": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "targetId",
                                "enabled",
                                "priority",
                                "provider",
                                "upstreamRoute",
                                "upstreamModel"
                              ]
                            }
                          }
                        },
                        "required": [
                          "modelId",
                          "routes"
                        ]
                      }
                    }
                  },
                  "required": [
                    "schemaVersion",
                    "revision",
                    "catalogVersion",
                    "publishedAt",
                    "updatedBy",
                    "models"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/secure/models/{model_id}/routes": {
      "put": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "model_id",
            "in": "path"
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "expectedRevision": {
                    "type": "integer",
                    "minimum": 0,
                    "exclusiveMinimum": true,
                    "maximum": 2147483646
                  },
                  "routes": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "targetId": {
                          "type": "string"
                        },
                        "enabled": {
                          "type": "boolean"
                        },
                        "priority": {
                          "type": "integer",
                          "minimum": 1,
                          "maximum": 1000000
                        }
                      },
                      "required": [
                        "targetId",
                        "enabled",
                        "priority"
                      ]
                    }
                  }
                },
                "required": [
                  "expectedRevision",
                  "routes"
                ]
              }
            },
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "expectedRevision": {
                    "type": "integer",
                    "minimum": 0,
                    "exclusiveMinimum": true,
                    "maximum": 2147483646
                  },
                  "routes": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "targetId": {
                          "type": "string"
                        },
                        "enabled": {
                          "type": "boolean"
                        },
                        "priority": {
                          "type": "integer",
                          "minimum": 1,
                          "maximum": 1000000
                        }
                      },
                      "required": [
                        "targetId",
                        "enabled",
                        "priority"
                      ]
                    }
                  }
                },
                "required": [
                  "expectedRevision",
                  "routes"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "schemaVersion": {
                      "type": "number",
                      "enum": [
                        1
                      ]
                    },
                    "revision": {
                      "type": "integer",
                      "minimum": 0,
                      "exclusiveMinimum": true,
                      "maximum": 2147483647
                    },
                    "catalogVersion": {
                      "type": "string"
                    },
                    "publishedAt": {
                      "type": "string",
                      "nullable": true,
                      "format": "date"
                    },
                    "updatedBy": {
                      "type": "string",
                      "nullable": true
                    },
                    "models": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "modelId": {
                            "type": "string"
                          },
                          "routes": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "targetId": {
                                  "type": "string"
                                },
                                "enabled": {
                                  "type": "boolean"
                                },
                                "priority": {
                                  "type": "integer",
                                  "minimum": 1,
                                  "maximum": 1000000
                                },
                                "provider": {
                                  "type": "string"
                                },
                                "upstreamRoute": {
                                  "type": "string"
                                },
                                "upstreamModel": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "targetId",
                                "enabled",
                                "priority",
                                "provider",
                                "upstreamRoute",
                                "upstreamModel"
                              ]
                            }
                          }
                        },
                        "required": [
                          "modelId",
                          "routes"
                        ]
                      }
                    }
                  },
                  "required": [
                    "schemaVersion",
                    "revision",
                    "catalogVersion",
                    "publishedAt",
                    "updatedBy",
                    "models"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/secure/files/{file_id}": {
      "get": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "file_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string",
              "description": "Optional bucket name for storage operations",
              "example": "cortex-eu"
            },
            "required": false,
            "name": "bucket",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileSchema"
                }
              }
            }
          }
        }
      },
      "delete": {
        "summary": "Delete File",
        "description": "Delete a specific file.",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "file_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string",
              "description": "Optional bucket name for storage operations",
              "example": "cortex-eu"
            },
            "required": false,
            "name": "bucket",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "nullable": true
                }
              }
            }
          }
        }
      }
    },
    "/secure/files": {
      "post": {
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "Optional bucket name for storage operations",
              "example": "cortex-eu"
            },
            "required": false,
            "name": "bucket",
            "in": "query"
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateFileSchema"
              }
            },
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/CreateFileSchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileSchema"
                }
              }
            }
          }
        }
      }
    },
    "/secure/posts/categories": {
      "get": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": false,
            "name": "search",
            "in": "query"
          },
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Page number",
            "name": "page",
            "in": "query"
          },
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Number of items to take",
            "name": "take",
            "in": "query"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": false,
            "description": "Next page token (Only used on special endpoints)",
            "name": "next",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PostCategorySchema"
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreatePostCategorySchema"
              }
            },
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/CreatePostCategorySchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostCategorySchema"
                }
              }
            }
          }
        }
      }
    },
    "/secure/posts/categories/{category_id}": {
      "get": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "category_id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostCategorySchema"
                }
              }
            }
          }
        }
      },
      "patch": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "category_id",
            "in": "path"
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdatePostCategorySchema"
              }
            },
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/UpdatePostCategorySchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostCategorySchema"
                }
              }
            }
          }
        }
      },
      "delete": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "category_id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "nullable": true
                }
              }
            }
          }
        }
      }
    },
    "/secure/posts": {
      "get": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": false,
            "name": "search",
            "in": "query"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": false,
            "name": "category",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "ALL",
                "DRAFT",
                "PUBLISHED"
              ]
            },
            "required": false,
            "name": "status",
            "in": "query"
          },
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Page number",
            "name": "page",
            "in": "query"
          },
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Number of items to take",
            "name": "take",
            "in": "query"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": false,
            "description": "Next page token (Only used on special endpoints)",
            "name": "next",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PostSchema"
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreatePostSchema"
              }
            },
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/CreatePostSchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostSchema"
                }
              }
            }
          }
        }
      }
    },
    "/secure/posts/{post_id}": {
      "get": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "post_id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostSchema"
                }
              }
            }
          }
        }
      },
      "patch": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "post_id",
            "in": "path"
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdatePostSchema"
              }
            },
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/UpdatePostSchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostSchema"
                }
              }
            }
          }
        }
      },
      "delete": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "post_id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "nullable": true
                }
              }
            }
          }
        }
      }
    },
    "/secure/users/surveys": {
      "get": {
        "parameters": [
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Page number",
            "name": "page",
            "in": "query"
          },
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Number of items to take",
            "name": "take",
            "in": "query"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": false,
            "description": "Next page token (Only used on special endpoints)",
            "name": "next",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/SecureUserSurveyDefinitionSchema"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/secure/users/surveys/{survey_id}": {
      "get": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "survey_id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SecureUserSurveyTotalsSchema"
                }
              }
            }
          }
        }
      }
    },
    "/secure/users/surveys/{survey_id}/users": {
      "get": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "survey_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Page number",
            "name": "page",
            "in": "query"
          },
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Number of items to take",
            "name": "take",
            "in": "query"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": false,
            "description": "Next page token (Only used on special endpoints)",
            "name": "next",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/SecureUserSurveyUserSchema"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/secure/users/surveys/{survey_id}/questions/{question_id}/responses": {
      "get": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "survey_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "question_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Page number",
            "name": "page",
            "in": "query"
          },
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Number of items to take",
            "name": "take",
            "in": "query"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": false,
            "description": "Next page token (Only used on special endpoints)",
            "name": "next",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/SecureUserSurveyResponseTotalSchema"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/secure/users/surveys/{survey_id}/questions/{question_id}/users": {
      "get": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "survey_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "question_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": false,
            "name": "search",
            "in": "query"
          },
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Page number",
            "name": "page",
            "in": "query"
          },
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Number of items to take",
            "name": "take",
            "in": "query"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": false,
            "description": "Next page token (Only used on special endpoints)",
            "name": "next",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/SecureUserSurveyResponseUserSchema"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/secure/users/{user_id}/surveys": {
      "get": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "user_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Page number",
            "name": "page",
            "in": "query"
          },
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Number of items to take",
            "name": "take",
            "in": "query"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": false,
            "description": "Next page token (Only used on special endpoints)",
            "name": "next",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/SecureUserSurveyResponsesSchema"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/secure/users/{user_id}/surveys/{survey_id}": {
      "get": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "user_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "survey_id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SecureUserSurveyResponsesSchema"
                }
              }
            }
          }
        }
      }
    },
    "/secure/users": {
      "post": {
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateUserSchema"
              }
            },
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/CreateUserSchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SecureUserSchema"
                }
              }
            }
          }
        }
      },
      "get": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": false,
            "name": "search",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "ALL",
                "USER",
                "STAFF",
                "ADMIN",
                "ANALYST"
              ]
            },
            "required": false,
            "name": "role",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "created_at",
                "seen_at"
              ]
            },
            "required": false,
            "name": "sort_field",
            "in": "query"
          },
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Page number",
            "name": "page",
            "in": "query"
          },
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Number of items to take",
            "name": "take",
            "in": "query"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": false,
            "description": "Next page token (Only used on special endpoints)",
            "name": "next",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/SecureUserSchema"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/secure/users/{user_id}": {
      "get": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "user_id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SecureUserSchema"
                }
              }
            }
          }
        }
      },
      "patch": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "user_id",
            "in": "path"
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SecureUpdateUserSchema"
              }
            },
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/SecureUpdateUserSchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SecureUserSchema"
                }
              }
            }
          }
        }
      }
    },
    "/secure/users/{user_id}/metadata": {
      "get": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "user_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": false,
            "name": "search",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "ALL",
                "USER",
                "STAFF",
                "ADMIN",
                "ANALYST"
              ]
            },
            "required": false,
            "name": "role",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "created_at",
                "seen_at"
              ]
            },
            "required": false,
            "name": "sort_field",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "apps": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/AppMemberWithAppSchema"
                      }
                    }
                  },
                  "required": [
                    "apps"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/secure/apps": {
      "get": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": false,
            "name": "search",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "ALL",
                "VERIFIED",
                "UNVERIFIED"
              ]
            },
            "required": false,
            "name": "verified",
            "in": "query"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": false,
            "name": "user_id",
            "in": "query"
          },
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Page number",
            "name": "page",
            "in": "query"
          },
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Number of items to take",
            "name": "take",
            "in": "query"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": false,
            "description": "Next page token (Only used on special endpoints)",
            "name": "next",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/SecureAppSchema"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/secure/apps/{app_id}": {
      "get": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SecureAppSchema"
                }
              }
            }
          }
        }
      }
    },
    "/secure/apps/{app_id}/verified": {
      "post": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AppSchema"
                }
              }
            }
          }
        }
      },
      "delete": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AppSchema"
                }
              }
            }
          }
        }
      }
    },
    "/secure/apps/{app_id}/phone": {
      "delete": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AppSchema"
                }
              }
            }
          }
        }
      }
    },
    "/secure/apps/{app_id}/restore": {
      "post": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AppSchema"
                }
              }
            }
          }
        }
      }
    },
    "/secure/apps/{app_id}/disabled": {
      "post": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AppSchema"
                }
              }
            }
          }
        }
      },
      "delete": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AppSchema"
                }
              }
            }
          }
        }
      }
    },
    "/secure/apps/{app_id}/workflows": {
      "get": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": false,
            "name": "search",
            "in": "query"
          },
          {
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "required": false,
            "name": "tags",
            "in": "query"
          },
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Page number",
            "name": "page",
            "in": "query"
          },
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Number of items to take",
            "name": "take",
            "in": "query"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": false,
            "description": "Next page token (Only used on special endpoints)",
            "name": "next",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/WorkflowSchema"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/secure/apps/{app_id}/members": {
      "get": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Page number",
            "name": "page",
            "in": "query"
          },
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Number of items to take",
            "name": "take",
            "in": "query"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": false,
            "description": "Next page token (Only used on special endpoints)",
            "name": "next",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AppMemberSchema"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/secure/apps/{app_id}/invite-link": {
      "get": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AppInviteLinkSchema"
                }
              }
            }
          }
        }
      },
      "post": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AppInviteLinkSchema"
                }
              }
            }
          }
        }
      }
    },
    "/secure/apps/{app_id}/payments/balance": {
      "get": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentsBalanceSchema"
                }
              }
            }
          }
        }
      },
      "patch": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateSecurePaymentsBalanceSchema"
              }
            },
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/UpdateSecurePaymentsBalanceSchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentsBalanceSchema"
                }
              }
            }
          }
        }
      }
    },
    "/secure/apps/{app_id}/payments/balance/funds": {
      "post": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateSecurePaymentsBalanceFundsSchema"
              }
            },
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/UpdateSecurePaymentsBalanceFundsSchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentsBalanceSchema"
                }
              }
            }
          }
        }
      },
      "delete": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateSecurePaymentsBalanceFundsSchema"
              }
            },
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/UpdateSecurePaymentsBalanceFundsSchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentsBalanceSchema"
                }
              }
            }
          }
        }
      }
    },
    "/secure/apps/{app_id}/payments/billing-admin": {
      "get": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BillingAdminResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/secure/apps/{app_id}/payments/billing-admin/balance": {
      "patch": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateBillingAdminBalanceSchema"
              }
            },
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/UpdateBillingAdminBalanceSchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BillingAdminResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/secure/apps/{app_id}/payments/billing-admin/reseat-snapshot": {
      "post": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BillingAdminResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/secure/apps/{app_id}/payments/billing-admin/member-usage/{user_id}": {
      "patch": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "user_id",
            "in": "path"
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateBillingAdminMemberUsageSchema"
              }
            },
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/UpdateBillingAdminMemberUsageSchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BillingAdminResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/secure/apps/{app_id}/payments/billing-admin/member-spend-cap-policy": {
      "patch": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateBillingAdminMemberSpendCapPolicySchema"
              }
            },
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/UpdateBillingAdminMemberSpendCapPolicySchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BillingAdminResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/secure/apps/{app_id}/payments/billing-admin/enterprise-config": {
      "put": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpsertBillingAdminEnterpriseConfigSchema"
              }
            },
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/UpsertBillingAdminEnterpriseConfigSchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BillingAdminResponseSchema"
                }
              }
            }
          }
        }
      },
      "delete": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BillingAdminResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/secure/apps/{app_id}/payments/billing-admin/subscription": {
      "patch": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateBillingAdminSubscriptionSchema"
              }
            },
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/UpdateBillingAdminSubscriptionSchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BillingAdminResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/secure/apps/{app_id}/payments/billing-admin/expire": {
      "post": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BillingAdminResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/secure/apps/{app_id}/payments/billing-admin/convert-to-enterprise": {
      "post": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ConvertToEnterpriseSchema"
              }
            },
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/ConvertToEnterpriseSchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BillingAdminResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/secure/apps/{app_id}/payments/billing-admin/sync-from-stripe": {
      "post": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BillingAdminResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/secure/apps/{app_id}/payments/invoices": {
      "get": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "ALL",
                "DRAFT",
                "PENDING",
                "PAID",
                "OVERDUE"
              ]
            },
            "required": false,
            "name": "status",
            "in": "query"
          },
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Page number",
            "name": "page",
            "in": "query"
          },
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Number of items to take",
            "name": "take",
            "in": "query"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": false,
            "description": "Next page token (Only used on special endpoints)",
            "name": "next",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PaymentInvoiceSchema"
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreatePaymentInvoiceSchema"
              }
            },
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/CreatePaymentInvoiceSchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentInvoiceSchema"
                }
              }
            }
          }
        }
      }
    },
    "/secure/apps/{app_id}/payments/invoices/{invoice_id}": {
      "get": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "invoice_id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentInvoiceSchema"
                }
              }
            }
          }
        }
      },
      "patch": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "invoice_id",
            "in": "path"
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdatePaymentInvoiceSchema"
              }
            },
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/UpdatePaymentInvoiceSchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentInvoiceSchema"
                }
              }
            }
          }
        }
      },
      "delete": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "invoice_id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "nullable": true
                }
              }
            }
          }
        }
      }
    },
    "/secure/apps/{app_id}/payments/invoices/{invoice_id}/status": {
      "patch": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "invoice_id",
            "in": "path"
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdatePaymentInvoiceStatusSchema"
              }
            },
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/UpdatePaymentInvoiceStatusSchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentInvoiceSchema"
                }
              }
            }
          }
        }
      }
    },
    "/secure/apps/{app_id}/payments/invoices/{invoice_id}/download": {
      "get": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "invoice_id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "nullable": true
                }
              }
            }
          }
        }
      }
    },
    "/secure/workflows": {
      "get": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": false,
            "name": "search",
            "in": "query"
          },
          {
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "required": false,
            "name": "tags",
            "in": "query"
          },
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Page number",
            "name": "page",
            "in": "query"
          },
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Number of items to take",
            "name": "take",
            "in": "query"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": false,
            "description": "Next page token (Only used on special endpoints)",
            "name": "next",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/WorkflowSchema"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/secure/workflows/{workflow_id}/restore": {
      "post": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "workflow_id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowSchema"
                }
              }
            }
          }
        }
      }
    },
    "/secure/collections": {
      "get": {
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "What you want to search for in collections"
            },
            "required": false,
            "name": "search",
            "in": "query"
          },
          {
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "description": "Tags to filter collections by (you can use up to 20)",
              "example": [
                "tag_xxx",
                "tag_yyy"
              ]
            },
            "required": false,
            "name": "tags",
            "in": "query"
          },
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Page number",
            "name": "page",
            "in": "query"
          },
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Number of items to take",
            "name": "take",
            "in": "query"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": false,
            "description": "Next page token (Only used on special endpoints)",
            "name": "next",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/CollectionSchema"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/secure/collections/{collection_id}": {
      "get": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "collection_id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CollectionSchema"
                }
              }
            }
          }
        }
      }
    },
    "/secure/collections/{collection_id}/restore": {
      "post": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "collection_id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CollectionSchema"
                }
              }
            }
          }
        }
      }
    },
    "/secure/templates": {
      "get": {
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "Search term to filter"
            },
            "required": false,
            "name": "search",
            "in": "query"
          },
          {
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "description": "Category slugs to filter"
            },
            "required": false,
            "name": "categories",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "ALL",
                "WORKFLOW",
                "COLLECTION"
              ],
              "description": "Type of the app template"
            },
            "required": false,
            "name": "type",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "ALL",
                "DRAFT",
                "PUBLISHED"
              ],
              "description": "Status of the app template"
            },
            "required": false,
            "name": "status",
            "in": "query"
          },
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Page number",
            "name": "page",
            "in": "query"
          },
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Number of items to take",
            "name": "take",
            "in": "query"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": false,
            "description": "Next page token (Only used on special endpoints)",
            "name": "next",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TemplateSchema"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/secure/templates/{template_id}": {
      "delete": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "template_id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "nullable": true
                }
              }
            }
          }
        }
      }
    },
    "/secure/templates/categories": {
      "get": {
        "parameters": [
          {
            "schema": {
              "type": "string",
              "nullable": true,
              "description": "Search term to filter template categories"
            },
            "required": false,
            "name": "search",
            "in": "query"
          },
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Page number",
            "name": "page",
            "in": "query"
          },
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Number of items to take",
            "name": "take",
            "in": "query"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": false,
            "description": "Next page token (Only used on special endpoints)",
            "name": "next",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AppTemplateSchema"
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateTemplateCategorySchema"
              }
            },
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/CreateTemplateCategorySchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AppTemplateSchema"
                }
              }
            }
          }
        }
      }
    },
    "/secure/templates/categories/{category_id}": {
      "get": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "category_id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AppTemplateSchema"
                }
              }
            }
          }
        }
      },
      "patch": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "category_id",
            "in": "path"
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateTemplateCategorySchema"
              }
            },
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/UpdateTemplateCategorySchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AppTemplateSchema"
                }
              }
            }
          }
        }
      },
      "delete": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "category_id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "nullable": true
                }
              }
            }
          }
        }
      }
    },
    "/secure/migrations/update-last-seen": {
      "post": {
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "nullable": true
                }
              }
            }
          }
        }
      }
    },
    "/misc/contact/support": {
      "post": {
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ContactSupportSchema"
              }
            },
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/ContactSupportSchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "nullable": true
                }
              }
            }
          }
        }
      }
    },
    "/misc/contact": {
      "post": {
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ContactSchema"
              }
            },
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/ContactSchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "nullable": true
                }
              }
            }
          }
        }
      }
    },
    "/misc/install-link": {
      "post": {
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InstallLinkSchema"
              }
            },
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/InstallLinkSchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "nullable": true
                }
              }
            }
          }
        }
      }
    },
    "/report-issue": {
      "post": {
        "tags": [
          "Report Issue"
        ],
        "summary": "Submit a bug report from the VS Code extension",
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReportIssueRequestSchema"
              }
            },
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/ReportIssueRequestSchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReportIssueResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/posts/categories": {
      "get": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": false,
            "name": "search",
            "in": "query"
          },
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Page number",
            "name": "page",
            "in": "query"
          },
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Number of items to take",
            "name": "take",
            "in": "query"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": false,
            "description": "Next page token (Only used on special endpoints)",
            "name": "next",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PostCategorySchema"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/posts": {
      "get": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": false,
            "name": "search",
            "in": "query"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": false,
            "name": "category",
            "in": "query"
          },
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Page number",
            "name": "page",
            "in": "query"
          },
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Number of items to take",
            "name": "take",
            "in": "query"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": false,
            "description": "Next page token (Only used on special endpoints)",
            "name": "next",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PostSchema"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/posts/{slug}": {
      "get": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "slug",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostSchema"
                }
              }
            }
          }
        }
      }
    },
    "/endpoints/{slug}": {
      "get": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "slug",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicWorkflowEndpointSchema"
                }
              }
            }
          }
        }
      },
      "post": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "slug",
            "in": "path"
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RunWorkflowEndpointSchema"
              }
            },
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/RunWorkflowEndpointSchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RunSchema"
                }
              }
            }
          }
        }
      }
    },
    "/endpoints/{slug}/files": {
      "post": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "slug",
            "in": "path"
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateEndpointAppFileSchema"
              }
            },
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/CreateEndpointAppFileSchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AppFileSchema"
                }
              }
            }
          }
        }
      }
    },
    "/endpoints/{slug}/files/{file_id}": {
      "get": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "slug",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "file_id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AppFileSchema"
                }
              }
            }
          }
        }
      }
    },
    "/endpoints/{slug}/files/{file_id}/cancel": {
      "post": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "slug",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "file_id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AppFileSchema"
                }
              }
            }
          }
        }
      }
    },
    "/templates/categories": {
      "get": {
        "parameters": [
          {
            "schema": {
              "type": "string",
              "nullable": true,
              "description": "Search term to filter template categories"
            },
            "required": false,
            "name": "search",
            "in": "query"
          },
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Page number",
            "name": "page",
            "in": "query"
          },
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Number of items to take",
            "name": "take",
            "in": "query"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": false,
            "description": "Next page token (Only used on special endpoints)",
            "name": "next",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AppTemplateSchema"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/templates/categories/{slug}": {
      "get": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "slug",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AppTemplateSchema"
                }
              }
            }
          }
        }
      }
    },
    "/templates": {
      "get": {
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "Search term to filter"
            },
            "required": false,
            "name": "search",
            "in": "query"
          },
          {
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "description": "Category slugs to filter"
            },
            "required": false,
            "name": "categories",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "WORKFLOW",
                "COLLECTION"
              ],
              "description": "Type of the app template"
            },
            "required": false,
            "name": "type",
            "in": "query"
          },
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Page number",
            "name": "page",
            "in": "query"
          },
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Number of items to take",
            "name": "take",
            "in": "query"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": false,
            "description": "Next page token (Only used on special endpoints)",
            "name": "next",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TemplateSchema"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/templates/{template_id}": {
      "get": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "template_id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TemplateSchema"
                }
              }
            }
          }
        }
      }
    },
    "/renders/invoices/{token}": {
      "get": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "token",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentInvoiceSchema"
                }
              }
            }
          }
        }
      }
    },
    "/renders/records/{token}": {
      "get": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "token",
            "in": "path"
          },
          {
            "schema": {
              "$ref": "#/components/schemas/IncludeRecordPropsSchema"
            },
            "required": false,
            "name": "verbose",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExtendedRecordSchema"
                }
              }
            }
          }
        }
      }
    },
    "/renders/records/{token}/download": {
      "get": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "token",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "nullable": true
                }
              }
            }
          }
        }
      }
    },
    "/public/apps/files/uploads/{file_upload_id}": {
      "post": {
        "summary": "Upload a file",
        "description": "Uploads a file to the specified file upload ID placeholder",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the file upload",
            "name": "file_upload_id",
            "in": "path"
          }
        ],
        "requestBody": {
          "description": "The file to upload",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UploadAppFileSchema"
              }
            },
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/UploadAppFileSchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AppFileSchema"
                }
              }
            }
          }
        }
      }
    },
    "/assistants/conversations/ws": {
      "get": {
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConversationEventSchema"
                }
              }
            }
          }
        }
      }
    },
    "/assistants/conversations": {
      "get": {
        "parameters": [
          {
            "schema": {
              "type": "string",
              "maxLength": 256,
              "description": "Search term to filter conversations"
            },
            "required": false,
            "name": "search",
            "in": "query"
          },
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Page number",
            "name": "page",
            "in": "query"
          },
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Number of items to take",
            "name": "take",
            "in": "query"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": false,
            "description": "Next page token (Only used on special endpoints)",
            "name": "next",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ConversationSchema"
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateConversationSchema"
              }
            },
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/CreateConversationSchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConversationSchema"
                }
              }
            }
          }
        }
      }
    },
    "/assistants/conversations/{conversation_id}": {
      "patch": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "conversation_id",
            "in": "path"
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateConversationSchema"
              }
            },
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/UpdateConversationSchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConversationSchema"
                }
              }
            }
          }
        }
      },
      "get": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "conversation_id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConversationSchema"
                }
              }
            }
          }
        }
      },
      "delete": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "conversation_id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "nullable": true
                }
              }
            }
          }
        }
      }
    },
    "/assistants/conversations/{conversation_id}/cancel": {
      "post": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "conversation_id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "nullable": true
                }
              }
            }
          }
        }
      }
    },
    "/assistants/conversations/{conversation_id}/messages": {
      "get": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "conversation_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string",
              "nullable": true,
              "description": "The date to start fetching messages from",
              "format": "date"
            },
            "required": false,
            "name": "from_date",
            "in": "query"
          },
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Page number",
            "name": "page",
            "in": "query"
          },
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Number of items to take",
            "name": "take",
            "in": "query"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": false,
            "description": "Next page token (Only used on special endpoints)",
            "name": "next",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ConversationMessageSchema"
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "conversation_id",
            "in": "path"
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateConversationMessageSchema"
              }
            },
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/CreateConversationMessageSchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConversationMessageSchema"
                }
              }
            }
          }
        }
      }
    },
    "/assistants/conversations/{conversation_id}/messages/{message_id}": {
      "get": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "conversation_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "message_id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConversationMessageSchema"
                }
              }
            }
          }
        }
      },
      "delete": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "conversation_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "message_id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "nullable": true
                }
              }
            }
          }
        }
      }
    },
    "/workflows/validations/step": {
      "post": {
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ValidateStepSchema"
              }
            },
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/ValidateStepSchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "nullable": true
                }
              }
            }
          }
        }
      }
    },
    "/workflows/validations/input": {
      "post": {
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ValidateInputSchema"
              }
            },
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/ValidateInputSchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "nullable": true
                }
              }
            }
          }
        }
      }
    },
    "/apps": {
      "get": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": false,
            "name": "search",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "ALL",
                "VERIFIED",
                "UNVERIFIED"
              ]
            },
            "required": false,
            "name": "verified",
            "in": "query"
          },
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Page number",
            "name": "page",
            "in": "query"
          },
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Number of items to take",
            "name": "take",
            "in": "query"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": false,
            "description": "Next page token (Only used on special endpoints)",
            "name": "next",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AppSchema"
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateAppSchema"
              }
            },
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/CreateAppSchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AppSchema"
                }
              }
            }
          }
        }
      }
    },
    "/apps/{app_id}": {
      "get": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AppSchema"
                }
              }
            }
          }
        }
      },
      "patch": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateAppSchema"
              }
            },
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/CreateAppSchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AppSchema"
                }
              }
            }
          }
        }
      },
      "delete": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "nullable": true
                }
              }
            }
          }
        }
      }
    },
    "/apps/{app_id}/phone/verify": {
      "post": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VerifyAppPhoneNumberSchema"
              }
            },
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/VerifyAppPhoneNumberSchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AppPhoneNumberResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/apps/{app_id}/phone/confirm": {
      "post": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ConfirmAppPhoneNumberSchema"
              }
            },
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/ConfirmAppPhoneNumberSchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "nullable": true
                }
              }
            }
          }
        }
      }
    },
    "/apps/{app_id}/keys": {
      "get": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Page number",
            "name": "page",
            "in": "query"
          },
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Number of items to take",
            "name": "take",
            "in": "query"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": false,
            "description": "Next page token (Only used on special endpoints)",
            "name": "next",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AppKeySchema"
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateAppKeySchema"
              }
            },
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/UpdateAppKeySchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AppKeySchema"
                }
              }
            }
          }
        }
      }
    },
    "/apps/{app_id}/keys/{key_id}": {
      "get": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "key_id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AppKeySchema"
                }
              }
            }
          }
        }
      },
      "patch": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "key_id",
            "in": "path"
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateAppKeySchema"
              }
            },
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/UpdateAppKeySchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AppKeySchema"
                }
              }
            }
          }
        }
      },
      "delete": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "key_id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "nullable": true
                }
              }
            }
          }
        }
      }
    },
    "/apps/{app_id}/members": {
      "get": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Page number",
            "name": "page",
            "in": "query"
          },
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Number of items to take",
            "name": "take",
            "in": "query"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": false,
            "description": "Next page token (Only used on special endpoints)",
            "name": "next",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AppMemberSchema"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/apps/{app_id}/members/me": {
      "get": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AppMemberSchema"
                }
              }
            }
          }
        }
      }
    },
    "/apps/{app_id}/members/leave": {
      "post": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "nullable": true
                }
              }
            }
          }
        }
      }
    },
    "/apps/{app_id}/members/{member_id}": {
      "get": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "member_id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AppMemberSchema"
                }
              }
            }
          }
        }
      },
      "patch": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "member_id",
            "in": "path"
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateAppMemberSchema"
              }
            },
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/UpdateAppMemberSchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AppMemberSchema"
                }
              }
            }
          }
        }
      },
      "delete": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "member_id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "nullable": true
                }
              }
            }
          }
        }
      }
    },
    "/invites/{token}": {
      "get": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "token",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AppInvitePublicSchema"
                }
              }
            }
          }
        }
      },
      "post": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "token",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AppMemberSchema"
                }
              }
            }
          }
        }
      }
    },
    "/apps/{app_id}/invites": {
      "get": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Page number",
            "name": "page",
            "in": "query"
          },
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Number of items to take",
            "name": "take",
            "in": "query"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": false,
            "description": "Next page token (Only used on special endpoints)",
            "name": "next",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AppInviteSchema"
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateAppInviteSchema"
              }
            },
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/CreateAppInviteSchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AppInviteSchema"
                }
              }
            }
          }
        }
      }
    },
    "/apps/{app_id}/invites/{invite_id}": {
      "get": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "invite_id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AppInviteSchema"
                }
              }
            }
          }
        }
      },
      "delete": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "invite_id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "nullable": true
                }
              }
            }
          }
        }
      }
    },
    "/apps/{app_id}/invite-link": {
      "get": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AppInviteLinkSchema"
                }
              }
            }
          }
        }
      },
      "post": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AppInviteLinkSchema"
                }
              }
            }
          }
        }
      },
      "delete": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "nullable": true
                }
              }
            }
          }
        }
      }
    },
    "/invite-links/{token}": {
      "get": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "token",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AppInviteLinkPublicSchema"
                }
              }
            }
          }
        }
      },
      "post": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "token",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AppMemberSchema"
                }
              }
            }
          }
        }
      }
    },
    "/apps/{app_id}/files/uploads": {
      "get": {
        "summary": "List File Uploads",
        "description": "Retrieve a list of files for a specific app.",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the app",
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Page number",
            "name": "page",
            "in": "query"
          },
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Number of items to take",
            "name": "take",
            "in": "query"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": false,
            "description": "Next page token (Only used on special endpoints)",
            "name": "next",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AppFileUploadSchema"
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "summary": "Create a new file upload",
        "description": "Create a new file upload that generates an upload URL.",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the app",
            "name": "app_id",
            "in": "path"
          }
        ],
        "requestBody": {
          "description": "Request body for creating a new file upload",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateAppFileUploadSchema"
              }
            },
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/CreateAppFileUploadSchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AppFileUploadSchema"
                }
              }
            }
          }
        }
      }
    },
    "/apps/{app_id}/files/uploads/{file_upload_id}": {
      "get": {
        "summary": "Get File Upload",
        "description": "Retrieve details of a specific file upload.",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the app",
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the file upload",
            "name": "file_upload_id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AppFileUploadSchema"
                }
              }
            }
          }
        }
      },
      "patch": {
        "summary": "Update File Upload",
        "description": "Update details of a specific file upload.",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the app",
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the file upload",
            "name": "file_upload_id",
            "in": "path"
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateAppFileUploadSchema"
              }
            },
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/UpdateAppFileUploadSchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AppFileUploadSchema"
                }
              }
            }
          }
        }
      },
      "delete": {
        "summary": "Delete File Upload",
        "description": "Delete a specific file upload.",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the app",
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the file upload",
            "name": "file_upload_id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "nullable": true
                }
              }
            }
          }
        }
      }
    },
    "/apps/{app_id}/files": {
      "get": {
        "summary": "List Files",
        "description": "Retrieve a list of files for a specific app. Optionally filter by bucket.",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the app",
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string",
              "description": "Optional bucket name for storage operations",
              "example": "cortex-eu"
            },
            "required": false,
            "name": "bucket",
            "in": "query"
          },
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Page number",
            "name": "page",
            "in": "query"
          },
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Number of items to take",
            "name": "take",
            "in": "query"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": false,
            "description": "Next page token (Only used on special endpoints)",
            "name": "next",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AppFileSchema"
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "summary": "Create File",
        "description": "Upload a new file to the app. Optionally specify a bucket.",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the app",
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string",
              "description": "Optional bucket name for storage operations",
              "example": "cortex-eu"
            },
            "required": false,
            "name": "bucket",
            "in": "query"
          }
        ],
        "requestBody": {
          "description": "File data and options for upload",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateAppFileSchema"
              }
            },
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/CreateAppFileSchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AppFileSchema"
                }
              }
            }
          }
        }
      }
    },
    "/apps/{app_id}/files/{file_id}": {
      "get": {
        "summary": "Get File",
        "description": "Retrieve details of a specific file.",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the app",
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the file",
            "name": "file_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string",
              "description": "Optional bucket name for storage operations",
              "example": "cortex-eu"
            },
            "required": false,
            "name": "bucket",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AppFileSchema"
                }
              }
            }
          }
        }
      },
      "delete": {
        "summary": "Delete File",
        "description": "Delete a specific file from the app.",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the app",
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the file",
            "name": "file_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string",
              "description": "Optional bucket name for storage operations",
              "example": "cortex-eu"
            },
            "required": false,
            "name": "bucket",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "nullable": true
                }
              }
            }
          }
        }
      }
    },
    "/apps/{app_id}/files/{file_id}/cancel": {
      "post": {
        "summary": "Cancel File Upload",
        "description": "Cancel the upload processing of a specific file.",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the app",
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the file",
            "name": "file_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string",
              "description": "Optional bucket name for storage operations",
              "example": "cortex-eu"
            },
            "required": false,
            "name": "bucket",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AppFileSchema"
                }
              }
            }
          }
        }
      }
    },
    "/apps/{app_id}/shares": {
      "get": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Page number",
            "name": "page",
            "in": "query"
          },
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Number of items to take",
            "name": "take",
            "in": "query"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": false,
            "description": "Next page token (Only used on special endpoints)",
            "name": "next",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ShareSchema"
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateShareSchema"
              }
            },
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/CreateShareSchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ShareCreatedSchema"
                }
              }
            }
          }
        }
      }
    },
    "/apps/{app_id}/shares/{share_id}": {
      "get": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "share_id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ShareSchema"
                }
              }
            }
          }
        }
      }
    },
    "/apps/{app_id}/shares/{share_id}/complete": {
      "post": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "share_id",
            "in": "path"
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CompleteShareSchema"
              }
            },
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/CompleteShareSchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ShareSchema"
                }
              }
            }
          }
        }
      }
    },
    "/apps/{app_id}/shares/{share_id}/unpublish": {
      "post": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "share_id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ShareSchema"
                }
              }
            }
          }
        }
      }
    },
    "/apps/{app_id}/shares/{share_id}/versions": {
      "post": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "share_id",
            "in": "path"
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateShareVersionSchema"
              }
            },
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/CreateShareVersionSchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ShareCreatedSchema"
                }
              }
            }
          }
        }
      }
    },
    "/shares/{slug}": {
      "get": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "slug",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicShareSchema"
                }
              }
            }
          }
        }
      }
    },
    "/shares/{slug}/package": {
      "get": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "slug",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "nullable": true
                }
              }
            }
          }
        }
      }
    },
    "/apps/{app_id}/usage/files/groups": {
      "get": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string",
              "nullable": true,
              "description": "Start date for the usage query",
              "format": "date"
            },
            "required": false,
            "name": "start_date",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "nullable": true,
              "description": "End date for the usage query",
              "format": "date"
            },
            "required": false,
            "name": "end_date",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "HOUR",
                "DAY"
              ],
              "description": "Group results by time interval"
            },
            "required": false,
            "name": "group_by",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "description": "Filter by user ID. Staff users can only view their own data."
            },
            "required": false,
            "name": "user_id",
            "in": "query"
          },
          {
            "schema": {
              "type": "boolean",
              "description": "Group results by member (admin only). Returns per-member breakdown."
            },
            "required": false,
            "name": "group_by_member",
            "in": "query"
          },
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Page number",
            "name": "page",
            "in": "query"
          },
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Number of items to take",
            "name": "take",
            "in": "query"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": false,
            "description": "Next page token (Only used on special endpoints)",
            "name": "next",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/UsageFilesGroupsResponseSchema"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/apps/{app_id}/usage/files/events": {
      "post": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateFileEventsSchema"
              }
            },
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/CreateFileEventsSchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "created": {
                      "type": "string",
                      "description": "Number of file events created"
                    }
                  },
                  "required": [
                    "created"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/apps/{app_id}/usage/messages/groups": {
      "get": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string",
              "nullable": true,
              "description": "Start date for the usage query",
              "format": "date"
            },
            "required": false,
            "name": "start_date",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "nullable": true,
              "description": "End date for the usage query",
              "format": "date"
            },
            "required": false,
            "name": "end_date",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "HOUR",
                "DAY"
              ],
              "description": "Group results by time interval"
            },
            "required": false,
            "name": "group_by",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "description": "Filter by user ID. Staff users can only view their own data."
            },
            "required": false,
            "name": "user_id",
            "in": "query"
          },
          {
            "schema": {
              "type": "boolean",
              "description": "Group results by member (admin only). Returns per-member breakdown."
            },
            "required": false,
            "name": "group_by_member",
            "in": "query"
          },
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Page number",
            "name": "page",
            "in": "query"
          },
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Number of items to take",
            "name": "take",
            "in": "query"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": false,
            "description": "Next page token (Only used on special endpoints)",
            "name": "next",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/UsageMessagesGroupsResponseSchema"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/apps/{app_id}/payments/ws": {
      "get": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentsWsEventSchema"
                }
              }
            }
          }
        }
      }
    },
    "/apps/{app_id}/payments/balance": {
      "get": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentsBalanceSchema"
                }
              }
            }
          }
        }
      },
      "patch": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdatePaymentsBalanceSchema"
              }
            },
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/UpdatePaymentsBalanceSchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentsBalanceSchema"
                }
              }
            }
          }
        }
      }
    },
    "/apps/{app_id}/payments/balance/funds": {
      "post": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AddFundsToPaymentsBalanceSchema"
              }
            },
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/AddFundsToPaymentsBalanceSchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentsBalanceSchema"
                }
              }
            }
          }
        }
      }
    },
    "/apps/{app_id}/payments/invoices": {
      "get": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "ALL",
                "PENDING",
                "PAID",
                "OVERDUE"
              ]
            },
            "required": false,
            "name": "status",
            "in": "query"
          },
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Page number",
            "name": "page",
            "in": "query"
          },
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Number of items to take",
            "name": "take",
            "in": "query"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": false,
            "description": "Next page token (Only used on special endpoints)",
            "name": "next",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PaymentInvoiceSchema"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/apps/{app_id}/payments/invoices/{invoice_id}": {
      "get": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "invoice_id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentInvoiceSchema"
                }
              }
            }
          }
        }
      }
    },
    "/apps/{app_id}/payments/invoices/{invoice_id}/download": {
      "get": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "invoice_id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "nullable": true
                }
              }
            }
          }
        }
      }
    },
    "/apps/{app_id}/payments/methods": {
      "get": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Page number",
            "name": "page",
            "in": "query"
          },
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Number of items to take",
            "name": "take",
            "in": "query"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": false,
            "description": "Next page token (Only used on special endpoints)",
            "name": "next",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PaymentMethodSchema"
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreatePaymentMethodFromExternalIdSchema"
              }
            },
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/CreatePaymentMethodFromExternalIdSchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentMethodSchema"
                }
              }
            }
          }
        }
      }
    },
    "/apps/{app_id}/payments/methods/{method_id}": {
      "get": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "method_id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentMethodSchema"
                }
              }
            }
          }
        }
      }
    },
    "/apps/{app_id}/payments/providers/stripe/setup-intents": {
      "post": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "client_secret": {
                      "type": "string",
                      "nullable": true,
                      "description": "Client secret for the setup intent"
                    }
                  },
                  "required": [
                    "client_secret"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/apps/{app_id}/payments/transactions/groups": {
      "get": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string",
              "nullable": true,
              "description": "Date filter to search from",
              "format": "date"
            },
            "required": false,
            "name": "start_date",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "nullable": true,
              "description": "Date filter to search to",
              "format": "date"
            },
            "required": false,
            "name": "end_date",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "HOUR",
                "DAY"
              ],
              "description": "Group by a date part filter"
            },
            "required": false,
            "name": "group_by",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "ALL",
                "CHARGE",
                "FUNDING",
                "BONUS",
                "PAYMENT",
                "REFUND"
              ],
              "description": "Type filter to search"
            },
            "required": false,
            "name": "type",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "description": "Filter transactions by the user who triggered them"
            },
            "required": false,
            "name": "user_id",
            "in": "query"
          },
          {
            "schema": {
              "type": "boolean",
              "description": "Group by member (admin only). Returns per-member breakdown."
            },
            "required": false,
            "name": "group_by_member",
            "in": "query"
          },
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Page number",
            "name": "page",
            "in": "query"
          },
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Number of items to take",
            "name": "take",
            "in": "query"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": false,
            "description": "Next page token (Only used on special endpoints)",
            "name": "next",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/QueryPaymentsTransactionsGroupsResponseSchema"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/apps/{app_id}/payments/usage-status": {
      "get": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "nullable": true
                }
              }
            }
          }
        }
      }
    },
    "/apps/{app_id}/payments/overage": {
      "get": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "nullable": true
                }
              }
            }
          }
        }
      },
      "patch": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "nullable": true
                }
              }
            }
          }
        }
      }
    },
    "/apps/{app_id}/payments/member-spend-cap-policy": {
      "get": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "nullable": true
                }
              }
            }
          }
        }
      },
      "patch": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "nullable": true
                }
              }
            }
          }
        }
      }
    },
    "/payments/available-plans": {
      "get": {
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "nullable": true
                }
              }
            }
          }
        }
      }
    },
    "/apps/{app_id}/payments/subscriptions/checkout": {
      "post": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "nullable": true
                }
              }
            }
          }
        }
      }
    },
    "/payments/subscriptions/verify-checkout": {
      "post": {
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "nullable": true
                }
              }
            }
          }
        }
      }
    },
    "/apps/{app_id}/payments/subscriptions/portal": {
      "post": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "nullable": true
                }
              }
            }
          }
        }
      }
    },
    "/apps/{app_id}/payments/subscriptions": {
      "get": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "nullable": true
                }
              }
            }
          }
        }
      }
    },
    "/apps/{app_id}/payments/subscriptions/interval": {
      "post": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "nullable": true
                }
              }
            }
          }
        }
      }
    },
    "/apps/{app_id}/payments/subscriptions/upgrade/preview": {
      "post": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "nullable": true
                }
              }
            }
          }
        }
      }
    },
    "/apps/{app_id}/payments/subscriptions/upgrade": {
      "post": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "nullable": true
                }
              }
            }
          }
        }
      }
    },
    "/apps/{app_id}/records": {
      "get": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "$ref": "#/components/schemas/IncludeRecordPropsSchema"
            },
            "required": false,
            "name": "verbose",
            "in": "query"
          },
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Page number",
            "name": "page",
            "in": "query"
          },
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Number of items to take",
            "name": "take",
            "in": "query"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": false,
            "description": "Next page token (Only used on special endpoints)",
            "name": "next",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AppRecordSchema"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/apps/{app_id}/records/{record_id}": {
      "get": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "record_id",
            "in": "path"
          },
          {
            "schema": {
              "$ref": "#/components/schemas/IncludeRecordPropsSchema"
            },
            "required": false,
            "name": "verbose",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExtendedRecordSchema"
                }
              }
            }
          }
        }
      },
      "delete": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "record_id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "nullable": true
                }
              }
            }
          }
        }
      }
    },
    "/apps/{app_id}/records/{record_id}/download": {
      "get": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "record_id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "nullable": true
                }
              }
            }
          }
        }
      }
    },
    "/apps/{app_id}/tags": {
      "get": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": false,
            "name": "search",
            "in": "query"
          },
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Page number",
            "name": "page",
            "in": "query"
          },
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Number of items to take",
            "name": "take",
            "in": "query"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": false,
            "description": "Next page token (Only used on special endpoints)",
            "name": "next",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TagSchema"
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateTagSchema"
              }
            },
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/CreateTagSchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TagSchema"
                }
              }
            }
          }
        }
      }
    },
    "/apps/{app_id}/tags/{tag_id}": {
      "get": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "tag_id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TagSchema"
                }
              }
            }
          }
        }
      },
      "patch": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "tag_id",
            "in": "path"
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateTagSchema"
              }
            },
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/UpdateTagSchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TagSchema"
                }
              }
            }
          }
        }
      },
      "delete": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "tag_id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "nullable": true
                }
              }
            }
          }
        }
      }
    },
    "/apps/{app_id}/templates": {
      "get": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string",
              "description": "Search term to filter"
            },
            "required": false,
            "name": "search",
            "in": "query"
          },
          {
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "description": "Category slugs to filter"
            },
            "required": false,
            "name": "categories",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "ALL",
                "WORKFLOW",
                "COLLECTION"
              ],
              "description": "Type of the app template"
            },
            "required": false,
            "name": "type",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "ALL",
                "DRAFT",
                "PUBLISHED"
              ],
              "description": "Status of the app template"
            },
            "required": false,
            "name": "status",
            "in": "query"
          },
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Page number",
            "name": "page",
            "in": "query"
          },
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Number of items to take",
            "name": "take",
            "in": "query"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": false,
            "description": "Next page token (Only used on special endpoints)",
            "name": "next",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TemplateSchema"
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateTemplateSchema"
              }
            },
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/CreateTemplateSchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TemplateSchema"
                }
              }
            }
          }
        }
      }
    },
    "/apps/{app_id}/templates/workflows/{workflow_id}": {
      "get": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "workflow_id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TemplateWorkflowSchema"
                }
              }
            }
          }
        }
      }
    },
    "/apps/{app_id}/templates/{template_id}": {
      "get": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "template_id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TemplateSchema"
                }
              }
            }
          }
        }
      },
      "patch": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "template_id",
            "in": "path"
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateTemplateSchema"
              }
            },
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/UpdateTemplateSchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TemplateSchema"
                }
              }
            }
          }
        }
      },
      "delete": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "template_id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "nullable": true
                }
              }
            }
          }
        }
      }
    },
    "/apps/{app_id}/connections/oauth/url": {
      "get": {
        "summary": "Get OAuth Provider URL",
        "description": "Get the URL to authenticate with an OAuth provider to create a new connection.",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the app",
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "$ref": "#/components/schemas/ConnectionTypeSchema"
            },
            "required": true,
            "name": "type",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "The URL to authenticate with the OAuth provider.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConnectionOAuthUrlSchema"
                }
              }
            }
          }
        }
      }
    },
    "/apps/{app_id}/connections/oauth/validate": {
      "post": {
        "summary": "Authenticate OAuth Provider",
        "description": "Authenticate with an OAuth provider to create a new connection.",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the app",
            "name": "app_id",
            "in": "path"
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ValidateConnectionOAuthSchema"
              }
            },
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/ValidateConnectionOAuthSchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The access token to authenticate with the OAuth provider.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConnectionOAuthValidatedSchema"
                }
              }
            }
          }
        }
      }
    },
    "/connections/actions": {
      "get": {
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConnectionActionsSchema"
                }
              }
            }
          }
        }
      }
    },
    "/apps/{app_id}/connections/actions/options": {
      "post": {
        "summary": "Get the options for an action",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the app",
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string",
              "description": "Search query"
            },
            "required": false,
            "name": "search",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "description": "Filter by value"
            },
            "required": false,
            "name": "value",
            "in": "query"
          },
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Page number",
            "name": "page",
            "in": "query"
          },
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Number of items to take",
            "name": "take",
            "in": "query"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": false,
            "description": "Next page token (Only used on special endpoints)",
            "name": "next",
            "in": "query"
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ExecuteConnectionActionSchema"
              }
            },
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/ExecuteConnectionActionSchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ConnectionActionOptionsListSchema"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/apps/{app_id}/connections/actions/fields": {
      "post": {
        "summary": "Get the fields for an action",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the app",
            "name": "app_id",
            "in": "path"
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ExecuteConnectionActionSchema"
              }
            },
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/ExecuteConnectionActionSchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InputDefinitionSchema"
                }
              }
            }
          }
        }
      }
    },
    "/connections/definitions": {
      "get": {
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConnectionDefinitionsSchema"
                }
              }
            }
          }
        }
      }
    },
    "/apps/{app_id}/connections/test": {
      "post": {
        "summary": "Test a Connection",
        "description": "Test the connection configuration to ensure it is valid.",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the app",
            "name": "app_id",
            "in": "path"
          }
        ],
        "requestBody": {
          "description": "The connection configuration to test.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TestConnectionConnectionSchema"
              }
            },
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/TestConnectionConnectionSchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The result of the connection test.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TestConnectionConnectionResultSchema"
                }
              }
            }
          }
        }
      }
    },
    "/apps/{app_id}/connections": {
      "get": {
        "summary": "Get Connections",
        "description": "Retrieve a list of connections for the specified app.",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the app",
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Page number",
            "name": "page",
            "in": "query"
          },
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Number of items to take",
            "name": "take",
            "in": "query"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": false,
            "description": "Next page token (Only used on special endpoints)",
            "name": "next",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "A list of connections.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ConnectionSchema"
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "summary": "Create a Connection",
        "description": "Create a new connection for the specified app.",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the app",
            "name": "app_id",
            "in": "path"
          }
        ],
        "requestBody": {
          "description": "The details of the connection to create.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateConnectionSchema"
              }
            },
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/CreateConnectionSchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The newly created connection.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConnectionSchema"
                }
              }
            }
          }
        }
      }
    },
    "/apps/{app_id}/connections/{connection_id}": {
      "get": {
        "summary": "Get a Connection",
        "description": "Retrieve details of a specific connection.",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the app",
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the connection",
            "name": "connection_id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "The details of the connection.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConnectionSchema"
                }
              }
            }
          }
        }
      },
      "patch": {
        "summary": "Update a Connection",
        "description": "Update the details of an existing connection.",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the app",
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the connection",
            "name": "connection_id",
            "in": "path"
          }
        ],
        "requestBody": {
          "description": "The updated details of the connection.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateConnectionSchema"
              }
            },
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/UpdateConnectionSchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The updated connection.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConnectionSchema"
                }
              }
            }
          }
        }
      },
      "delete": {
        "summary": "Delete a Connection",
        "description": "Delete an existing connection.",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the app",
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the connection",
            "name": "connection_id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "No content.",
            "content": {
              "application/json": {
                "schema": {
                  "nullable": true
                }
              }
            }
          }
        }
      }
    },
    "/apps/{app_id}/connections/{connection_id}/ws": {
      "get": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "connection_id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "nullable": true
                }
              }
            }
          }
        }
      }
    },
    "/apps/{app_id}/connections/{connection_id}/models": {
      "get": {
        "summary": "Get connection models",
        "description": "Get the models of a connection",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the app",
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the connection",
            "name": "connection_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Page number",
            "name": "page",
            "in": "query"
          },
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Number of items to take",
            "name": "take",
            "in": "query"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": false,
            "description": "Next page token (Only used on special endpoints)",
            "name": "next",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "Available models for the connection",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ModelInfoPartialSchema"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/apps/{app_id}/variables": {
      "get": {
        "summary": "Get App Variables",
        "description": "Fetch all variables for a specific app.",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the app",
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Page number",
            "name": "page",
            "in": "query"
          },
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Number of items to take",
            "name": "take",
            "in": "query"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": false,
            "description": "Next page token (Only used on special endpoints)",
            "name": "next",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "An array of app variables.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AppVariableSchema"
                  }
                }
              }
            }
          }
        }
      },
      "patch": {
        "summary": "Update App Variables",
        "description": "Update variables for a specific app.",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the app",
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Page number",
            "name": "page",
            "in": "query"
          },
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Number of items to take",
            "name": "take",
            "in": "query"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": false,
            "description": "Next page token (Only used on special endpoints)",
            "name": "next",
            "in": "query"
          }
        ],
        "requestBody": {
          "description": "An array of app variables to update.",
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/AppVariableSchema"
                }
              }
            },
            "multipart/form-data": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/AppVariableSchema"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "An array of updated app variables.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AppVariableSchema"
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "summary": "Create App Variable",
        "description": "Create a variable for a specific app.",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the app",
            "name": "app_id",
            "in": "path"
          }
        ],
        "requestBody": {
          "description": "The new variable information.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateAppVariableSchema"
              }
            },
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/CreateAppVariableSchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The created app variable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AppVariableSchema"
                }
              }
            }
          }
        }
      }
    },
    "/apps/{app_id}/variables/{key}": {
      "patch": {
        "summary": "Rename App Variable",
        "description": "Rename a variable for a specific app.",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the app",
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The key of the variable to rename.",
            "name": "key",
            "in": "path"
          }
        ],
        "requestBody": {
          "description": "The new variable information.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateAppVariableSchema"
              }
            },
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/UpdateAppVariableSchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The updated app variables.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AppVariableSchema"
                }
              }
            }
          }
        }
      },
      "delete": {
        "summary": "Delete App Variable",
        "description": "Delete a variable for a specific app.",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the app",
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The key of the variable to delete.",
            "name": "key",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "The deleted app variable.",
            "content": {
              "application/json": {
                "schema": {
                  "nullable": true
                }
              }
            }
          }
        }
      }
    },
    "/apps/{app_id}/runs/step": {
      "post": {
        "summary": "Run a step without a run",
        "description": "Run a step without a run",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateRunStepSchema"
              }
            },
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/CreateRunStepSchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Step run output",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RunStepSchema"
                }
              }
            }
          }
        }
      }
    },
    "/apps/{app_id}/workflows/permissions": {
      "get": {
        "summary": "Get Permissions",
        "description": "Retrieve a list of shared workflows with other apps",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the app",
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Page number",
            "name": "page",
            "in": "query"
          },
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Number of items to take",
            "name": "take",
            "in": "query"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": false,
            "description": "Next page token (Only used on special endpoints)",
            "name": "next",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/WorkflowPermissionSchema"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/apps/{app_id}/workflows/permissions/shared": {
      "get": {
        "summary": "Get Permissions",
        "description": "Retrieve a list of shared workflows with the current app",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the app",
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Page number",
            "name": "page",
            "in": "query"
          },
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Number of items to take",
            "name": "take",
            "in": "query"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": false,
            "description": "Next page token (Only used on special endpoints)",
            "name": "next",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/WorkflowPermissionSchema"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/apps/{app_id}/workflows/discover": {
      "get": {
        "summary": "Discover Workflows",
        "description": "Retrieve a list of discoverable workflows for a specific app.",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the app",
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": false,
            "name": "search",
            "in": "query"
          },
          {
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "required": false,
            "name": "tags",
            "in": "query"
          },
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Page number",
            "name": "page",
            "in": "query"
          },
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Number of items to take",
            "name": "take",
            "in": "query"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": false,
            "description": "Next page token (Only used on special endpoints)",
            "name": "next",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/WorkflowSchema"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/apps/{app_id}/workflows/discover/{workflow_id}": {
      "get": {
        "summary": "Get Discoverable Workflow",
        "description": "Retrieve a specific discoverable workflow by its ID.",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the app",
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the workflow",
            "name": "workflow_id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowSchema"
                }
              }
            }
          }
        }
      }
    },
    "/apps/{app_id}/workflows/discover/{workflow_id}/versions/{version_id_or_version_number}": {
      "get": {
        "summary": "Get Discoverable Workflow Version",
        "description": "Retrieve a specific version of a discoverable workflow by ID or version number.",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the app",
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the workflow",
            "name": "workflow_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID or version number of the workflow version",
            "name": "version_id_or_version_number",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowVersionSchema"
                }
              }
            }
          }
        }
      }
    },
    "/apps/{app_id}/workflows/discover/{workflow_id}/runs": {
      "post": {
        "summary": "Run Discoverable Workflow",
        "description": "Run a specific workflow by its ID.",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the app",
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the workflow",
            "name": "workflow_id",
            "in": "path"
          },
          {
            "schema": {
              "$ref": "#/components/schemas/IncludeRunPropsSchema"
            },
            "required": false,
            "name": "verbose",
            "in": "query"
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateDiscoveryRunSchema"
              }
            },
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/CreateDiscoveryRunSchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RunSchema"
                }
              }
            }
          }
        }
      }
    },
    "/apps/{app_id}/workflows/discover/{workflow_id}/runs/{run_id}/cancel": {
      "post": {
        "summary": "Cancel a Discoverable Workflow Run",
        "description": "Cancel a workflow run that is currently running.",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the app",
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the workflow",
            "name": "workflow_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "ID of the run to cancel",
            "name": "run_id",
            "in": "path"
          },
          {
            "schema": {
              "$ref": "#/components/schemas/IncludeRunPropsSchema"
            },
            "required": false,
            "name": "verbose",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RunSchema"
                }
              }
            }
          }
        }
      }
    },
    "/apps/{app_id}/workflows": {
      "get": {
        "summary": "Get Workflows",
        "description": "Retrieve a list of workflows for a specific app.",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the app",
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": false,
            "name": "search",
            "in": "query"
          },
          {
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "required": false,
            "name": "tags",
            "in": "query"
          },
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Page number",
            "name": "page",
            "in": "query"
          },
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Number of items to take",
            "name": "take",
            "in": "query"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": false,
            "description": "Next page token (Only used on special endpoints)",
            "name": "next",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/WorkflowSchema"
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateWorkflowSchema"
              }
            },
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/CreateWorkflowSchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowSchema"
                }
              }
            }
          }
        }
      }
    },
    "/apps/{app_id}/workflows/{workflow_id}": {
      "get": {
        "summary": "Get a Workflow",
        "description": "Retrieve a specific workflow by its ID.",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the app",
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the workflow",
            "name": "workflow_id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowSchema"
                }
              }
            }
          }
        }
      },
      "patch": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "workflow_id",
            "in": "path"
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateWorkflowSchema"
              }
            },
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/UpdateWorkflowSchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowSchema"
                }
              }
            }
          }
        }
      },
      "delete": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "workflow_id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "nullable": true
                }
              }
            }
          }
        }
      }
    },
    "/apps/{app_id}/workflows/{workflow_id}/ws": {
      "get": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "workflow_id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowEventSchema"
                }
              }
            }
          }
        }
      }
    },
    "/webhooks/{workflow_id}/{webhook_id}": {
      "get": {
        "summary": "Run a Workflow from a Webhook",
        "description": "Run a specific workflow from a webhook.",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the workflow",
            "name": "workflow_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the webhook",
            "name": "webhook_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "boolean",
              "description": "Indicates if the run should be executed in the background and return the run information immediately"
            },
            "required": false,
            "name": "background",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RunSchema"
                }
              }
            }
          }
        }
      },
      "post": {
        "summary": "Run a Workflow from a Webhook",
        "description": "Run a specific workflow from a webhook.",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the workflow",
            "name": "workflow_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the webhook",
            "name": "webhook_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "boolean",
              "description": "Indicates if the run should be executed in the background and return the run information immediately"
            },
            "required": false,
            "name": "background",
            "in": "query"
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateWebhookRunSchema"
              }
            },
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/CreateWebhookRunSchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RunSchema"
                }
              }
            }
          }
        }
      },
      "put": {
        "summary": "Run a Workflow from a Webhook",
        "description": "Run a specific workflow from a webhook.",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the workflow",
            "name": "workflow_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the webhook",
            "name": "webhook_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "boolean",
              "description": "Indicates if the run should be executed in the background and return the run information immediately"
            },
            "required": false,
            "name": "background",
            "in": "query"
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateWebhookRunSchema"
              }
            },
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/CreateWebhookRunSchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RunSchema"
                }
              }
            }
          }
        }
      },
      "patch": {
        "summary": "Run a Workflow from a Webhook",
        "description": "Run a specific workflow from a webhook.",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the workflow",
            "name": "workflow_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the webhook",
            "name": "webhook_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "boolean",
              "description": "Indicates if the run should be executed in the background and return the run information immediately"
            },
            "required": false,
            "name": "background",
            "in": "query"
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateWebhookRunSchema"
              }
            },
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/CreateWebhookRunSchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RunSchema"
                }
              }
            }
          }
        }
      },
      "delete": {
        "summary": "Run a Workflow from a Webhook",
        "description": "Run a specific workflow from a webhook.",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the workflow",
            "name": "workflow_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the webhook",
            "name": "webhook_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "boolean",
              "description": "Indicates if the run should be executed in the background and return the run information immediately"
            },
            "required": false,
            "name": "background",
            "in": "query"
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateWebhookRunSchema"
              }
            },
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/CreateWebhookRunSchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RunSchema"
                }
              }
            }
          }
        }
      }
    },
    "/webhooks/{workflow_id}/{webhook_id}/{version}": {
      "get": {
        "summary": "Run a Workflow from a Webhook",
        "description": "Run a specific workflow from a webhook.",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the workflow",
            "name": "workflow_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the webhook",
            "name": "webhook_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The version of the workflow",
            "name": "version",
            "in": "path"
          },
          {
            "schema": {
              "type": "boolean",
              "description": "Indicates if the run should be executed in the background and return the run information immediately"
            },
            "required": false,
            "name": "background",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RunSchema"
                }
              }
            }
          }
        }
      },
      "post": {
        "summary": "Run a Workflow from a Webhook",
        "description": "Run a specific workflow from a webhook.",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the workflow",
            "name": "workflow_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the webhook",
            "name": "webhook_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The version of the workflow",
            "name": "version",
            "in": "path"
          },
          {
            "schema": {
              "type": "boolean",
              "description": "Indicates if the run should be executed in the background and return the run information immediately"
            },
            "required": false,
            "name": "background",
            "in": "query"
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateWebhookRunSchema"
              }
            },
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/CreateWebhookRunSchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RunSchema"
                }
              }
            }
          }
        }
      },
      "put": {
        "summary": "Run a Workflow from a Webhook",
        "description": "Run a specific workflow from a webhook.",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the workflow",
            "name": "workflow_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the webhook",
            "name": "webhook_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The version of the workflow",
            "name": "version",
            "in": "path"
          },
          {
            "schema": {
              "type": "boolean",
              "description": "Indicates if the run should be executed in the background and return the run information immediately"
            },
            "required": false,
            "name": "background",
            "in": "query"
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateWebhookRunSchema"
              }
            },
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/CreateWebhookRunSchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RunSchema"
                }
              }
            }
          }
        }
      },
      "patch": {
        "summary": "Run a Workflow from a Webhook",
        "description": "Run a specific workflow from a webhook.",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the workflow",
            "name": "workflow_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the webhook",
            "name": "webhook_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The version of the workflow",
            "name": "version",
            "in": "path"
          },
          {
            "schema": {
              "type": "boolean",
              "description": "Indicates if the run should be executed in the background and return the run information immediately"
            },
            "required": false,
            "name": "background",
            "in": "query"
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateWebhookRunSchema"
              }
            },
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/CreateWebhookRunSchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RunSchema"
                }
              }
            }
          }
        }
      },
      "delete": {
        "summary": "Run a Workflow from a Webhook",
        "description": "Run a specific workflow from a webhook.",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the workflow",
            "name": "workflow_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the webhook",
            "name": "webhook_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The version of the workflow",
            "name": "version",
            "in": "path"
          },
          {
            "schema": {
              "type": "boolean",
              "description": "Indicates if the run should be executed in the background and return the run information immediately"
            },
            "required": false,
            "name": "background",
            "in": "query"
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateWebhookRunSchema"
              }
            },
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/CreateWebhookRunSchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RunSchema"
                }
              }
            }
          }
        }
      }
    },
    "/apps/{app_id}/workflows/{workflow_id}/runs": {
      "get": {
        "summary": "Get Workflow Runs",
        "description": "Retrieve a list of runs for a specific workflow.",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the app",
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the workflow",
            "name": "workflow_id",
            "in": "path"
          },
          {
            "schema": {
              "$ref": "#/components/schemas/IncludeRunPropsSchema"
            },
            "required": false,
            "name": "verbose",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "ALL",
                "WORKFLOW",
                "TRIGGER",
                "RECORD",
                "TEST",
                "ENDPOINT",
                "WEBHOOK"
              ]
            },
            "required": false,
            "name": "origin",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "ALL",
                "PENDING",
                "RUNNING",
                "CANCELLED",
                "COMPLETED",
                "SKIPPED",
                "FAILED"
              ]
            },
            "required": false,
            "name": "status",
            "in": "query"
          },
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Page number",
            "name": "page",
            "in": "query"
          },
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Number of items to take",
            "name": "take",
            "in": "query"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": false,
            "description": "Next page token (Only used on special endpoints)",
            "name": "next",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/RunSchema"
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "summary": "Run a Workflow",
        "description": "Run a specific workflow by its ID.",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the app",
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the workflow",
            "name": "workflow_id",
            "in": "path"
          },
          {
            "schema": {
              "$ref": "#/components/schemas/IncludeRunPropsSchema"
            },
            "required": false,
            "name": "verbose",
            "in": "query"
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateRunSchema"
              }
            },
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/CreateRunSchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RunSchema"
                }
              }
            }
          }
        }
      }
    },
    "/apps/{app_id}/workflows/{workflow_id}/runs/{run_id}": {
      "get": {
        "summary": "Get a Workflow Run",
        "description": "Retrieve details of a specific workflow run.",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the app",
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the workflow",
            "name": "workflow_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the workflow run.",
            "name": "run_id",
            "in": "path"
          },
          {
            "schema": {
              "$ref": "#/components/schemas/IncludeRunPropsSchema"
            },
            "required": false,
            "name": "verbose",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RunSchema"
                }
              }
            }
          }
        }
      }
    },
    "/apps/{app_id}/workflows/{workflow_id}/runs/{run_id}/replay": {
      "post": {
        "summary": "Replay a Workflow Run",
        "description": "Replay a specific workflow run.",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the app",
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the workflow",
            "name": "workflow_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the workflow run.",
            "name": "run_id",
            "in": "path"
          },
          {
            "schema": {
              "$ref": "#/components/schemas/IncludeRunPropsSchema"
            },
            "required": false,
            "name": "verbose",
            "in": "query"
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReplayRunSchema"
              }
            },
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/ReplayRunSchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RunSchema"
                }
              }
            }
          }
        }
      }
    },
    "/apps/{app_id}/workflows/{workflow_id}/runs/{run_id}/cancel": {
      "post": {
        "summary": "Cancel a Workflow Run",
        "description": "Cancel a workflow run that is currently running.",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the app",
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the workflow",
            "name": "workflow_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the workflow run.",
            "name": "run_id",
            "in": "path"
          },
          {
            "schema": {
              "$ref": "#/components/schemas/IncludeRunPropsSchema"
            },
            "required": false,
            "name": "verbose",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RunSchema"
                }
              }
            }
          }
        }
      }
    },
    "/apps/{app_id}/workflows/{workflow_id}/runs/{run_id}/retention": {
      "patch": {
        "summary": "Update Run Data Retention Configuration",
        "description": "Update the data retention configuration for a specific workflow run.",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the app",
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the workflow",
            "name": "workflow_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the workflow run.",
            "name": "run_id",
            "in": "path"
          },
          {
            "schema": {
              "$ref": "#/components/schemas/IncludeRunPropsSchema"
            },
            "required": false,
            "name": "verbose",
            "in": "query"
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateRunDataRetentionConfigSchema"
              }
            },
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/UpdateRunDataRetentionConfigSchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RunSchema"
                }
              }
            }
          }
        }
      }
    },
    "/apps/{app_id}/workflows/{workflow_id}/tests/expectations": {
      "get": {
        "summary": "Get Tests Expectations",
        "description": "Retrieve a list of workflow test expectations for a specific workflow.",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the app",
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the workflow",
            "name": "workflow_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": false,
            "name": "search",
            "in": "query"
          },
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Page number",
            "name": "page",
            "in": "query"
          },
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Number of items to take",
            "name": "take",
            "in": "query"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": false,
            "description": "Next page token (Only used on special endpoints)",
            "name": "next",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/WorkflowExpectationSchema"
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "summary": "Create a Test Expectation",
        "description": "Create a new workflow test expectation for a specific workflow.",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the app",
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the workflow",
            "name": "workflow_id",
            "in": "path"
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateWorkflowExpectationSchema"
              }
            },
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/CreateWorkflowExpectationSchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowExpectationSchema"
                }
              }
            }
          }
        }
      }
    },
    "/apps/{app_id}/workflows/{workflow_id}/tests/expectations/{expectation_id}": {
      "get": {
        "summary": "Get Test Expectation",
        "description": "Retrieve a specific workflow test expectation by its ID.",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the app",
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the workflow",
            "name": "workflow_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the expectation",
            "name": "expectation_id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowExpectationSchema"
                }
              }
            }
          }
        }
      },
      "patch": {
        "summary": "Update Test Expectation",
        "description": "Update a specific workflow test expectation by its ID.",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the app",
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the workflow",
            "name": "workflow_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the expectation",
            "name": "expectation_id",
            "in": "path"
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateWorkflowExpectationSchema"
              }
            },
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/UpdateWorkflowExpectationSchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowExpectationSchema"
                }
              }
            }
          }
        }
      },
      "delete": {
        "summary": "Delete Test Expectation",
        "description": "Delete a specific workflow test expectation by its ID.",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the app",
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the workflow",
            "name": "workflow_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the expectation",
            "name": "expectation_id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "nullable": true
                }
              }
            }
          }
        }
      }
    },
    "/apps/{app_id}/workflows/{workflow_id}/tests": {
      "get": {
        "summary": "Get Tests",
        "description": "Retrieve a list of workflow tests for a specific workflow.",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the app",
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the workflow",
            "name": "workflow_id",
            "in": "path"
          },
          {
            "schema": {
              "$ref": "#/components/schemas/IncludeTestPropsSchema"
            },
            "required": false,
            "name": "verbose",
            "in": "query"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": false,
            "name": "search",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "ALL",
                "DRAFT",
                "CANCELLED",
                "RUNNING",
                "FAILED",
                "PASSED"
              ]
            },
            "required": false,
            "name": "status",
            "in": "query"
          },
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Page number",
            "name": "page",
            "in": "query"
          },
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Number of items to take",
            "name": "take",
            "in": "query"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": false,
            "description": "Next page token (Only used on special endpoints)",
            "name": "next",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/WorkflowTestSchema"
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "summary": "Create a Test",
        "description": "Create a new workflow test for a specific workflow.",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the app",
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the workflow",
            "name": "workflow_id",
            "in": "path"
          },
          {
            "schema": {
              "$ref": "#/components/schemas/IncludeTestPropsSchema"
            },
            "required": false,
            "name": "verbose",
            "in": "query"
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateWorkflowTestSchema"
              }
            },
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/CreateWorkflowTestSchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowTestSchema"
                }
              }
            }
          }
        }
      }
    },
    "/apps/{app_id}/workflows/{workflow_id}/tests/stats": {
      "get": {
        "summary": "Get Tests Stats",
        "description": "Retrieve statistics of workflow tests.",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the app",
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the workflow",
            "name": "workflow_id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/WorkflowTestStatsSchema"
                    },
                    {
                      "description": "Statistics about workflow tests"
                    }
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/apps/{app_id}/workflows/{workflow_id}/tests/ws": {
      "get": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "workflow_id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowTestEventSchema"
                }
              }
            }
          }
        }
      }
    },
    "/apps/{app_id}/workflows/{workflow_id}/tests/{test_id}": {
      "get": {
        "summary": "Get Test",
        "description": "Retrieve a specific workflow test by its ID.",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the app",
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the workflow",
            "name": "workflow_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the test",
            "name": "test_id",
            "in": "path"
          },
          {
            "schema": {
              "$ref": "#/components/schemas/IncludeTestPropsSchema"
            },
            "required": false,
            "name": "verbose",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowTestSchema"
                }
              }
            }
          }
        }
      },
      "patch": {
        "summary": "Update Test",
        "description": "Update a specific workflow test by its ID.",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the app",
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the workflow",
            "name": "workflow_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the test",
            "name": "test_id",
            "in": "path"
          },
          {
            "schema": {
              "$ref": "#/components/schemas/IncludeTestPropsSchema"
            },
            "required": false,
            "name": "verbose",
            "in": "query"
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateWorkflowTestSchema"
              }
            },
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/UpdateWorkflowTestSchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowTestSchema"
                }
              }
            }
          }
        }
      },
      "delete": {
        "summary": "Delete Test",
        "description": "Delete a specific workflow test by its ID.",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the app",
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the workflow",
            "name": "workflow_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the test",
            "name": "test_id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "nullable": true
                }
              }
            }
          }
        }
      }
    },
    "/apps/{app_id}/workflows/{workflow_id}/tests/runs": {
      "post": {
        "summary": "Run Tests",
        "description": "Run all workflow tests for a specific workflow.",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the app",
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the workflow",
            "name": "workflow_id",
            "in": "path"
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RunWorkflowTestsSchema"
              }
            },
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/RunWorkflowTestsSchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "nullable": true
                }
              }
            }
          }
        }
      }
    },
    "/apps/{app_id}/workflows/{workflow_id}/tests/cancel": {
      "post": {
        "summary": "Cancel Tests",
        "description": "Cancel all running workflow tests for a specific workflow.",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the app",
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the workflow",
            "name": "workflow_id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "nullable": true
                }
              }
            }
          }
        }
      }
    },
    "/apps/{app_id}/workflows/{workflow_id}/tests/{test_id}/cancel": {
      "post": {
        "summary": "Cancel Test",
        "description": "Cancel a running workflow test by its ID.",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the app",
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the workflow",
            "name": "workflow_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the test",
            "name": "test_id",
            "in": "path"
          },
          {
            "schema": {
              "$ref": "#/components/schemas/IncludeTestPropsSchema"
            },
            "required": false,
            "name": "verbose",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowTestSchema"
                }
              }
            }
          }
        }
      }
    },
    "/apps/{app_id}/workflows/{workflow_id}/tests/{test_id}/runs": {
      "post": {
        "summary": "Run Test",
        "description": "Run a specific workflow test by its ID.",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the app",
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the workflow",
            "name": "workflow_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the test",
            "name": "test_id",
            "in": "path"
          },
          {
            "schema": {
              "$ref": "#/components/schemas/IncludeTestPropsSchema"
            },
            "required": false,
            "name": "verbose",
            "in": "query"
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RunWorkflowTestSchema"
              }
            },
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/RunWorkflowTestSchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowTestSchema"
                }
              }
            }
          }
        }
      }
    },
    "/apps/{app_id}/workflows/{workflow_id}/tests/{test_id}/ws": {
      "get": {
        "summary": "Get Test WS",
        "description": "Establish a WebSocket connection to receive updates for a specific workflow test by its ID.",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the app",
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the workflow",
            "name": "workflow_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the test",
            "name": "test_id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowTestEventSchema"
                }
              }
            }
          }
        }
      }
    },
    "/apps/{app_id}/workflows/{workflow_id}/versions": {
      "get": {
        "summary": "Get Workflow Versions",
        "description": "Retrieve a list of workflow versions for a specific workflow.",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the app",
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the workflow",
            "name": "workflow_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Page number",
            "name": "page",
            "in": "query"
          },
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Number of items to take",
            "name": "take",
            "in": "query"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": false,
            "description": "Next page token (Only used on special endpoints)",
            "name": "next",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "An array of workflow versions.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/WorkflowVersionSchema"
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "workflow_id",
            "in": "path"
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateWorkflowVersionSchema"
              }
            },
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/CreateWorkflowVersionSchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowVersionSchema"
                }
              }
            }
          }
        }
      }
    },
    "/apps/{app_id}/workflows/{workflow_id}/versions/{version_id_or_version_number}": {
      "get": {
        "summary": "Get a Workflow Version",
        "description": "Retrieve a specific workflow version by ID or version number.",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the app",
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the workflow",
            "name": "workflow_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID or version number of the workflow version",
            "name": "version_id_or_version_number",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "The requested workflow version.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowVersionSchema"
                }
              }
            }
          }
        }
      }
    },
    "/apps/{app_id}/workflows/{workflow_id}/endpoints": {
      "get": {
        "summary": "Get Endpoints",
        "description": "Retrieve a list of workflow endpoints for a specific workflow.",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the app",
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the workflow",
            "name": "workflow_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "ALL",
                "USER",
                "MCP"
              ]
            },
            "required": false,
            "name": "type",
            "in": "query"
          },
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Page number",
            "name": "page",
            "in": "query"
          },
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Number of items to take",
            "name": "take",
            "in": "query"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": false,
            "description": "Next page token (Only used on special endpoints)",
            "name": "next",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/WorkflowEndpointSchema"
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "summary": "Create Endpoint",
        "description": "Create a new workflow endpoint for a specific workflow.",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the app",
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the workflow",
            "name": "workflow_id",
            "in": "path"
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateWorkflowEndpointSchema"
              }
            },
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/CreateWorkflowEndpointSchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowEndpointSchema"
                }
              }
            }
          }
        }
      }
    },
    "/apps/{app_id}/workflows/{workflow_id}/endpoints/{endpoint_id}": {
      "get": {
        "summary": "Get Endpoint",
        "description": "Retrieve a specific workflow endpoint by its ID.",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the app",
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the workflow",
            "name": "workflow_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the endpoint",
            "name": "endpoint_id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowEndpointSchema"
                }
              }
            }
          }
        }
      },
      "patch": {
        "summary": "Update Endpoint",
        "description": "Update a specific workflow endpoint by its ID.",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the app",
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the workflow",
            "name": "workflow_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the endpoint",
            "name": "endpoint_id",
            "in": "path"
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateWorkflowEndpointSchema"
              }
            },
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/UpdateWorkflowEndpointSchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowEndpointSchema"
                }
              }
            }
          }
        }
      },
      "delete": {
        "summary": "Delete Endpoint",
        "description": "Delete a specific workflow endpoint by its ID.",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the app",
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the workflow",
            "name": "workflow_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the endpoint",
            "name": "endpoint_id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "nullable": true
                }
              }
            }
          }
        }
      }
    },
    "/apps/{app_id}/workflows/{workflow_id}/permissions": {
      "get": {
        "summary": "Get Permissions",
        "description": "Retrieve a list of workflow permissions for a specific workflow.",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the app",
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the workflow",
            "name": "workflow_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Page number",
            "name": "page",
            "in": "query"
          },
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Number of items to take",
            "name": "take",
            "in": "query"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": false,
            "description": "Next page token (Only used on special endpoints)",
            "name": "next",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/WorkflowPermissionSchema"
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "summary": "Create Permission",
        "description": "Create a new workflow permission for a specific workflow.",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the app",
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the workflow",
            "name": "workflow_id",
            "in": "path"
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateWorkflowPermissionSchema"
              }
            },
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/CreateWorkflowPermissionSchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowPermissionSchema"
                }
              }
            }
          }
        }
      }
    },
    "/apps/{app_id}/workflows/{workflow_id}/permissions/{permission_id}": {
      "get": {
        "summary": "Get Permission",
        "description": "Retrieve a specific workflow permission by its ID.",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the app",
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the workflow",
            "name": "workflow_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the permission",
            "name": "permission_id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowPermissionSchema"
                }
              }
            }
          }
        }
      },
      "delete": {
        "summary": "Delete Permission",
        "description": "Delete a specific workflow permission by its ID.",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the app",
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the workflow",
            "name": "workflow_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the permission",
            "name": "permission_id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "nullable": true
                }
              }
            }
          }
        }
      }
    },
    "/apps/{app_id}/workflows/{workflow_id}/collections": {
      "get": {
        "summary": "Get Collections",
        "description": "Retrieve a list of collections using the workflow",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the app",
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the workflow",
            "name": "workflow_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string",
              "description": "What you want to search for in collections"
            },
            "required": false,
            "name": "search",
            "in": "query"
          },
          {
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "description": "Tags to filter collections by (you can use up to 20)",
              "example": [
                "tag_xxx",
                "tag_yyy"
              ]
            },
            "required": false,
            "name": "tags",
            "in": "query"
          },
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Page number",
            "name": "page",
            "in": "query"
          },
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Number of items to take",
            "name": "take",
            "in": "query"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": false,
            "description": "Next page token (Only used on special endpoints)",
            "name": "next",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/CollectionSchema"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/apps/{app_id}/collections/discover": {
      "get": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string",
              "description": "What you want to search for in collections"
            },
            "required": false,
            "name": "search",
            "in": "query"
          },
          {
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "description": "Tags to filter collections by (you can use up to 20)",
              "example": [
                "tag_xxx",
                "tag_yyy"
              ]
            },
            "required": false,
            "name": "tags",
            "in": "query"
          },
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Page number",
            "name": "page",
            "in": "query"
          },
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Number of items to take",
            "name": "take",
            "in": "query"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": false,
            "description": "Next page token (Only used on special endpoints)",
            "name": "next",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/CollectionSchema"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/apps/{app_id}/collections": {
      "get": {
        "summary": "Get Collections",
        "description": "Get a list of all collections of your app.",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the app",
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string",
              "description": "What you want to search for in collections"
            },
            "required": false,
            "name": "search",
            "in": "query"
          },
          {
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "description": "Tags to filter collections by (you can use up to 20)",
              "example": [
                "tag_xxx",
                "tag_yyy"
              ]
            },
            "required": false,
            "name": "tags",
            "in": "query"
          },
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Page number",
            "name": "page",
            "in": "query"
          },
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Number of items to take",
            "name": "take",
            "in": "query"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": false,
            "description": "Next page token (Only used on special endpoints)",
            "name": "next",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "You'll receive an array of collections.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/CollectionSchema"
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "summary": "Create a Collection",
        "description": "Create a new collection for your app.",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the app",
            "name": "app_id",
            "in": "path"
          }
        ],
        "requestBody": {
          "description": "Provide the necessary info to create the collection.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateCollectionSchema"
              }
            },
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/CreateCollectionSchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "You'll receive the newly created collection details.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExtendedCollectionSchema"
                }
              }
            }
          }
        }
      }
    },
    "/apps/{app_id}/collections/{collection_id}": {
      "get": {
        "summary": "Get a Collection",
        "description": "Fetch detailed information about a specific collection.",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the app",
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the collection",
            "name": "collection_id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "You'll get the full details of the requested collection.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExtendedCollectionSchema"
                }
              }
            }
          }
        }
      },
      "patch": {
        "summary": "Update a Collection",
        "description": "Modify an existing collection.",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the app",
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the collection",
            "name": "collection_id",
            "in": "path"
          }
        ],
        "requestBody": {
          "description": "Specify the changes you want to make to the collection.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateCollectionSchema"
              }
            },
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/UpdateCollectionSchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "You'll receive the updated collection details.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExtendedCollectionSchema"
                }
              }
            }
          }
        }
      },
      "delete": {
        "summary": "Delete a Collection",
        "description": "Remove a collection from your app.",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the app",
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the collection",
            "name": "collection_id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "Returns null if the deletion was successful.",
            "content": {
              "application/json": {
                "schema": {
                  "nullable": true
                }
              }
            }
          }
        }
      }
    },
    "/apps/{app_id}/collections/{collection_id}/config": {
      "get": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "collection_id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/ExtendedCollectionConfigSchema"
                    },
                    {
                      "description": "Extended configuration of a collection with rules"
                    }
                  ]
                }
              }
            }
          }
        }
      },
      "patch": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "collection_id",
            "in": "path"
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateCollectionConfigSchema"
              }
            },
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/UpdateCollectionConfigSchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/ExtendedCollectionConfigSchema"
                    },
                    {
                      "description": "Extended configuration of a collection with rules"
                    }
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/apps/{app_id}/collections/{collection_id}/triggers": {
      "get": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "collection_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Page number",
            "name": "page",
            "in": "query"
          },
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Number of items to take",
            "name": "take",
            "in": "query"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": false,
            "description": "Next page token (Only used on special endpoints)",
            "name": "next",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TriggerSchema"
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "collection_id",
            "in": "path"
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateTriggerSchema"
              }
            },
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/CreateTriggerSchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TriggerSchema"
                }
              }
            }
          }
        }
      }
    },
    "/apps/{app_id}/collections/{collection_id}/triggers/{trigger_id}": {
      "get": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "collection_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "trigger_id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TriggerSchema"
                }
              }
            }
          }
        }
      },
      "patch": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "collection_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "trigger_id",
            "in": "path"
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateTriggerSchema"
              }
            },
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/UpdateTriggerSchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TriggerSchema"
                }
              }
            }
          }
        }
      },
      "delete": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "collection_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "trigger_id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "nullable": true
                }
              }
            }
          }
        }
      }
    },
    "/apps/{app_id}/collections/{collection_id}/triggers/{trigger_id}/entities": {
      "get": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "collection_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "trigger_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Page number",
            "name": "page",
            "in": "query"
          },
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Number of items to take",
            "name": "take",
            "in": "query"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": false,
            "description": "Next page token (Only used on special endpoints)",
            "name": "next",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TriggerEntitySchema"
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "collection_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "trigger_id",
            "in": "path"
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SyncTriggerEntitySchema"
              }
            },
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/SyncTriggerEntitySchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TriggerEntitySchema"
                }
              }
            }
          }
        }
      }
    },
    "/apps/{app_id}/collections/{collection_id}/triggers/{trigger_id}/entities/list": {
      "get": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "collection_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "trigger_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": false,
            "name": "after",
            "in": "query"
          },
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Page number",
            "name": "page",
            "in": "query"
          },
          {
            "schema": {
              "type": "number",
              "minimum": 1,
              "maximum": 100
            },
            "required": false,
            "name": "limit",
            "in": "query"
          },
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Number of items to take",
            "name": "take",
            "in": "query"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": false,
            "description": "Next page token (Only used on special endpoints)",
            "name": "next",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TriggerEntitiesListItemSchema"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/apps/{app_id}/collections/{collection_id}/triggers/{trigger_id}/entities/{raw_entity_id}/download": {
      "get": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "collection_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "trigger_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "raw_entity_id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "nullable": true
                }
              }
            }
          }
        }
      }
    },
    "/apps/{app_id}/collections/{collection_id}/triggers/{trigger_id}/entities/{entity_id}": {
      "get": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "collection_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "trigger_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "entity_id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TriggerEntitySchema"
                }
              }
            }
          }
        }
      }
    },
    "/apps/{app_id}/collections/{collection_id}/triggers/{trigger_id}/entities/{entity_id}/cancel": {
      "post": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "collection_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "trigger_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "entity_id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TriggerEntitySchema"
                }
              }
            }
          }
        }
      }
    },
    "/apps/{app_id}/collections/{collection_id}/triggers/{trigger_id}/mappings": {
      "get": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "collection_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "trigger_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Page number",
            "name": "page",
            "in": "query"
          },
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Number of items to take",
            "name": "take",
            "in": "query"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": false,
            "description": "Next page token (Only used on special endpoints)",
            "name": "next",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TriggerMappingFieldSchema"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/apps/{app_id}/connections/{connection_id}/encompass/metadata": {
      "get": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "connection_id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TriggerEncompassConfigMetadata"
                }
              }
            }
          }
        }
      }
    },
    "/apps/{app_id}/collections/{collection_id}/records": {
      "get": {
        "summary": "Get Records",
        "description": "Retrieve a list of records of a specific collection.",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the app",
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the collection",
            "name": "collection_id",
            "in": "path"
          },
          {
            "schema": {
              "$ref": "#/components/schemas/IncludeRecordPropsSchema"
            },
            "required": false,
            "name": "verbose",
            "in": "query"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": false,
            "name": "search",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "ALL",
                "DRAFT",
                "QUEUED",
                "RUNNING",
                "CANCELLED",
                "COMPLETED",
                "FAILED"
              ]
            },
            "required": false,
            "name": "status",
            "in": "query"
          },
          {
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "required": false,
            "name": "tags",
            "in": "query"
          },
          {
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "required": false,
            "name": "tag_ids",
            "in": "query"
          },
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Page number",
            "name": "page",
            "in": "query"
          },
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Number of items to take",
            "name": "take",
            "in": "query"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": false,
            "description": "Next page token (Only used on special endpoints)",
            "name": "next",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/RecordSchema"
                      },
                      {
                        "description": "Detailed information about a record"
                      }
                    ]
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "summary": "Create a Record",
        "description": "Create a new record in the specified collection.",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the app",
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the collection",
            "name": "collection_id",
            "in": "path"
          },
          {
            "schema": {
              "$ref": "#/components/schemas/IncludeRecordPropsSchema"
            },
            "required": false,
            "name": "verbose",
            "in": "query"
          }
        ],
        "requestBody": {
          "description": "Provide the necessary info to create the record.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateRecordSchema"
              }
            },
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/CreateRecordSchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "You will receive the newly created record details.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExtendedRecordSchema"
                }
              }
            }
          }
        }
      }
    },
    "/apps/{app_id}/collections/{collection_id}/records/{record_id}": {
      "get": {
        "summary": "Get a Record",
        "description": "Retrieve a specific record by its ID.",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the app",
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the collection",
            "name": "collection_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the record",
            "name": "record_id",
            "in": "path"
          },
          {
            "schema": {
              "$ref": "#/components/schemas/IncludeRecordPropsSchema"
            },
            "required": false,
            "name": "verbose",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExtendedRecordSchema"
                }
              }
            }
          }
        }
      },
      "patch": {
        "summary": "Update a Record",
        "description": "Update an existing record by its ID.",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the app",
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the collection",
            "name": "collection_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the record",
            "name": "record_id",
            "in": "path"
          },
          {
            "schema": {
              "$ref": "#/components/schemas/IncludeRecordPropsSchema"
            },
            "required": false,
            "name": "verbose",
            "in": "query"
          }
        ],
        "requestBody": {
          "description": "Provide the changes you want to make to the record.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateRecordSchema"
              }
            },
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/UpdateRecordSchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "You will receive the updated record details.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExtendedRecordSchema"
                }
              }
            }
          }
        }
      },
      "delete": {
        "summary": "Delete a Record",
        "description": "Delete a specific record by its ID.",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the app",
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the collection",
            "name": "collection_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the record",
            "name": "record_id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "nullable": true
                }
              }
            }
          }
        }
      }
    },
    "/apps/{app_id}/collections/{collection_id}/records/{record_id}/ws": {
      "get": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "collection_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "record_id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RecordEventSchema"
                }
              }
            }
          }
        }
      }
    },
    "/apps/{app_id}/collections/{collection_id}/records/{record_id}/status": {
      "get": {
        "summary": "Get Record Status",
        "description": "Retrieve the current status of a specific record.",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the app",
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the collection",
            "name": "collection_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the record",
            "name": "record_id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RecordStatusSchema"
                }
              }
            }
          }
        }
      }
    },
    "/apps/{app_id}/collections/{collection_id}/records/{record_id}/run": {
      "post": {
        "summary": "Run a Record",
        "description": "Execute the rules associated with a specific record and get the report.",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the app",
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the collection",
            "name": "collection_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the record",
            "name": "record_id",
            "in": "path"
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RunRecordSchema"
              }
            },
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/RunRecordSchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/RecordSchema"
                    },
                    {
                      "description": "Detailed information about a record"
                    }
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/apps/{app_id}/collections/{collection_id}/records/{record_id}/cancel": {
      "post": {
        "summary": "Cancel a Record Run",
        "description": "Cancel the ongoing execution of a record.",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the app",
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the collection",
            "name": "collection_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the record",
            "name": "record_id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/RecordSchema"
                    },
                    {
                      "description": "Detailed information about a record"
                    }
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/apps/{app_id}/collections/{collection_id}/records/{record_id}/render-token": {
      "get": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "collection_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "record_id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RecordRenderSchema"
                }
              }
            }
          }
        }
      }
    },
    "/apps/{app_id}/collections/{collection_id}/records/{record_id}/update-rules": {
      "post": {
        "summary": "Update Record Rules",
        "description": "Update the rules associated with a specific record.",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the app",
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the collection",
            "name": "collection_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the record",
            "name": "record_id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/RecordSchema"
                    },
                    {
                      "description": "Detailed information about a record"
                    }
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/apps/{app_id}/collections/{collection_id}/records/{record_id}/reset": {
      "post": {
        "summary": "Reset Record",
        "description": "Reset the record status and rules.",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the app",
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the collection",
            "name": "collection_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the record",
            "name": "record_id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/RecordSchema"
                    },
                    {
                      "description": "Detailed information about a record"
                    }
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/apps/{app_id}/collections/{collection_id}/records/{record_id}/download": {
      "get": {
        "summary": "Download Record Report",
        "description": "Generate and download a PDF report of a specific record.",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the app",
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the collection",
            "name": "collection_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the record",
            "name": "record_id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "nullable": true
                }
              }
            }
          }
        }
      }
    },
    "/records/invites/{token}": {
      "get": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "token",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RecordInviteSchema"
                }
              }
            }
          }
        }
      },
      "post": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "token",
            "in": "path"
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AcceptRecordInviteSchema"
              }
            },
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/AcceptRecordInviteSchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RecordInviteAcceptedSchema"
                }
              }
            }
          }
        }
      }
    },
    "/apps/{app_id}/collections/{collection_id}/records/{record_id}/invites": {
      "get": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "collection_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "record_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Page number",
            "name": "page",
            "in": "query"
          },
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Number of items to take",
            "name": "take",
            "in": "query"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": false,
            "description": "Next page token (Only used on special endpoints)",
            "name": "next",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/RecordInviteSchema"
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "collection_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "record_id",
            "in": "path"
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SendRecordInviteSchema"
              }
            },
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/SendRecordInviteSchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "nullable": true
                }
              }
            }
          }
        }
      }
    },
    "/apps/{app_id}/collections/{collection_id}/records/{record_id}/invites/{record_invite_id}": {
      "get": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "collection_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "record_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "record_invite_id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RecordInviteSchema"
                }
              }
            }
          }
        }
      },
      "delete": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "collection_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "record_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "record_invite_id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "nullable": true
                }
              }
            }
          }
        }
      }
    },
    "/apps/{app_id}/collections/{collection_id}/records/{record_id}/shared": {
      "get": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "collection_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "record_id",
            "in": "path"
          },
          {
            "schema": {
              "$ref": "#/components/schemas/IncludeRecordPropsSchema"
            },
            "required": false,
            "name": "verbose",
            "in": "query"
          },
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Page number",
            "name": "page",
            "in": "query"
          },
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Number of items to take",
            "name": "take",
            "in": "query"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": false,
            "description": "Next page token (Only used on special endpoints)",
            "name": "next",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/RecordSharedAppSchema"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/apps/{app_id}/collections/{collection_id}/records/{record_id}/shared/{shared_app_id}": {
      "get": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "collection_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "record_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "shared_app_id",
            "in": "path"
          },
          {
            "schema": {
              "$ref": "#/components/schemas/IncludeRecordPropsSchema"
            },
            "required": false,
            "name": "verbose",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RecordSharedAppSchema"
                }
              }
            }
          }
        }
      },
      "delete": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "collection_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "record_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "shared_app_id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "nullable": true
                }
              }
            }
          }
        }
      }
    },
    "/apps/{app_id}/collections/{collection_id}/records/{record_id}/rules": {
      "get": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "collection_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "record_id",
            "in": "path"
          },
          {
            "schema": {
              "$ref": "#/components/schemas/IncludeRecordRulePropsSchema"
            },
            "required": false,
            "name": "verbose",
            "in": "query"
          },
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Page number",
            "name": "page",
            "in": "query"
          },
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Number of items to take",
            "name": "take",
            "in": "query"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": false,
            "description": "Next page token (Only used on special endpoints)",
            "name": "next",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/RecordRuleSchema"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/apps/{app_id}/collections/{collection_id}/records/{record_id}/rules/{rule_key}": {
      "get": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "collection_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "record_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "rule_key",
            "in": "path"
          },
          {
            "schema": {
              "$ref": "#/components/schemas/IncludeRecordRulePropsSchema"
            },
            "required": false,
            "name": "verbose",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RecordRuleSchema"
                }
              }
            }
          }
        }
      },
      "patch": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "collection_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "record_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "rule_key",
            "in": "path"
          },
          {
            "schema": {
              "$ref": "#/components/schemas/IncludeRecordRulePropsSchema"
            },
            "required": false,
            "name": "verbose",
            "in": "query"
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateRecordRuleSchema"
              }
            },
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/UpdateRecordRuleSchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RecordRuleSchema"
                }
              }
            }
          }
        }
      }
    },
    "/apps/{app_id}/collections/{collection_id}/records/{record_id}/rules/{rule_key}/reset": {
      "post": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "collection_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "record_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "rule_key",
            "in": "path"
          },
          {
            "schema": {
              "$ref": "#/components/schemas/IncludeRecordRulePropsSchema"
            },
            "required": false,
            "name": "verbose",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RecordRuleSchema"
                }
              }
            }
          }
        }
      }
    },
    "/webhooks/events": {
      "get": {
        "parameters": [
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Page number",
            "name": "page",
            "in": "query"
          },
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Number of items to take",
            "name": "take",
            "in": "query"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": false,
            "description": "Next page token (Only used on special endpoints)",
            "name": "next",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/WebhookEventItemSchema"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/apps/{app_id}/webhooks/logs": {
      "get": {
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Page number",
            "name": "page",
            "in": "query"
          },
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Number of items to take",
            "name": "take",
            "in": "query"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": false,
            "description": "Next page token (Only used on special endpoints)",
            "name": "next",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/WebhookLogSchema"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/apps/{app_id}/webhooks": {
      "get": {
        "summary": "Get Webhooks",
        "description": "Retrieve a list of webhooks for a specific app.",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the app",
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Page number",
            "name": "page",
            "in": "query"
          },
          {
            "schema": {
              "type": "number"
            },
            "required": false,
            "description": "Number of items to take",
            "name": "take",
            "in": "query"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": false,
            "description": "Next page token (Only used on special endpoints)",
            "name": "next",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "An array of webhooks.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/WebhookSchema"
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "summary": "Create a Webhook",
        "description": "Create a new webhook for a specific app.",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the app",
            "name": "app_id",
            "in": "path"
          }
        ],
        "requestBody": {
          "description": "The webhook to create.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateWebhookSchema"
              }
            },
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/CreateWebhookSchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The created webhook.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookSchema"
                }
              }
            }
          }
        }
      }
    },
    "/apps/{app_id}/webhooks/{webhook_id}": {
      "patch": {
        "summary": "Update Webhook",
        "description": "Update an existing webhook for a specific app.",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the app",
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the webhook",
            "name": "webhook_id",
            "in": "path"
          }
        ],
        "requestBody": {
          "description": "The new webhook data.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateWebhookSchema"
              }
            },
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/UpdateWebhookSchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The updated webhook.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookSchema"
                }
              }
            }
          }
        }
      },
      "delete": {
        "summary": "Delete a Webhook",
        "description": "Delete an existing webhook for a specific app.",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the app",
            "name": "app_id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the webhook",
            "name": "webhook_id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "nullable": true
                }
              }
            }
          }
        }
      }
    },
    "/apps/{app_id}/generation/inputs": {
      "post": {
        "summary": "Host a generation input",
        "description": "Upload a local video for a confirmed generate. Returns a headerless public URL for the vendor. Runtime only — agents never call this.",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The ID of the app",
            "name": "app_id",
            "in": "path"
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateGenerationInputSchema"
              }
            },
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/CreateGenerationInputSchema"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GenerationInputSchema"
                }
              }
            }
          }
        }
      }
    },
    "/ws": {
      "get": {
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "nullable": true
                }
              }
            }
          }
        }
      }
    }
  }
}