{
  "openapi": "3.0.3",
  "info": {
    "title": "Chat API",
    "version": "3.0.0"
  },
  "servers": [
    {
      "url": "https://release0.com/api"
    }
  ],
  "externalDocs": {
    "url": "https://docs.release0.com/api-reference"
  },
  "paths": {
    "/v1/sendMessage": {
      "post": {
        "operationId": "sendMessageV1",
        "summary": "Send a message",
        "description": "To initiate a chat, do not provide a `sessionId` nor a `message`.\n\nContinue the conversation by providing the `sessionId` and the `message` that should answer the previous question.\n\nSet the `isPreview` option to `true` to chat with the non-published version of the Release0.",
        "tags": [
          "Deprecated"
        ],
        "deprecated": true,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "message": {
                    "type": "string",
                    "description": "The answer to the previous chat input. Do not provide it if you are starting a new chat."
                  },
                  "sessionId": {
                    "type": "string",
                    "description": "Session ID that you get from the initial chat request to a bot. If not provided, it will create a new session."
                  },
                  "startParams": {
                    "allOf": [
                      {
                        "type": "object",
                        "properties": {
                          "agent": {
                            "anyOf": [
                              {
                                "oneOf": [
                                  {
                                    "$ref": "#/components/schemas/agentV6"
                                  },
                                  {
                                    "$ref": "#/components/schemas/AgentV5"
                                  }
                                ],
                                "discriminator": {
                                  "propertyName": "version",
                                  "mapping": {
                                    "3": "#/components/schemas/AgentV5",
                                    "4": "#/components/schemas/AgentV5",
                                    "5": "#/components/schemas/AgentV5",
                                    "6": "#/components/schemas/agentV6"
                                  }
                                }
                              },
                              {
                                "type": "string"
                              }
                            ],
                            "description": "Either a Agent ID or a Agent object. If you provide a Agent object, it will be executed in preview mode. ([How can I find my agent ID?](https://docs.release0.com/api-reference#how-to-find-my-agentid))."
                          },
                          "isPreview": {
                            "type": "boolean",
                            "description": "If set to `true`, it will start a Preview session with the unpublished bot and it won't be saved in the Results tab. You need to be authenticated with a bearer token for this to work."
                          },
                          "resultId": {
                            "type": "string",
                            "description": "Provide it if you'd like to overwrite an existing result."
                          },
                          "initialContext": {
                            "type": "object",
                            "additionalProperties": {},
                            "description": "[More info about prefilled variables.](https://docs.release0.com/editor/variables#prefilled-variables)"
                          },
                          "isStreamEnabled": {
                            "type": "boolean",
                            "description": "Set this to `true` if you intend to stream OpenAI completions on a client."
                          },
                          "isOnlyRegistering": {
                            "type": "boolean",
                            "description": "If set to `true`, it will only register the session and not start the chat. This is used for other chat platform integration as it can require a session to be registered before sending the first message."
                          }
                        },
                        "required": [
                          "agent"
                        ]
                      },
                      {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "startGroupId": {
                                "type": "string",
                                "description": "Start chat from a specific group."
                              },
                              "startEventId": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "startGroupId"
                            ]
                          },
                          {
                            "type": "object",
                            "properties": {
                              "startEventId": {
                                "type": "string",
                                "description": "Start chat from a specific event."
                              },
                              "startGroupId": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "startEventId"
                            ]
                          },
                          {
                            "type": "object"
                          }
                        ]
                      }
                    ]
                  },
                  "clientLogs": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "status": {
                          "type": "string"
                        },
                        "description": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "status",
                        "description"
                      ]
                    },
                    "description": "Logs while executing client side actions"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "messages": {
                      "type": "array",
                      "items": {
                        "allOf": [
                          {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "id"
                            ]
                          },
                          {
                            "oneOf": [
                              {
                                "$ref": "#/components/schemas/textMessage"
                              },
                              {
                                "$ref": "#/components/schemas/imageMessage"
                              },
                              {
                                "$ref": "#/components/schemas/videoMessage"
                              },
                              {
                                "$ref": "#/components/schemas/audioMessage"
                              },
                              {
                                "$ref": "#/components/schemas/embedMessage"
                              },
                              {
                                "$ref": "#/components/schemas/customEmbedMessage"
                              }
                            ],
                            "discriminator": {
                              "propertyName": "type",
                              "mapping": {
                                "text": "#/components/schemas/textMessage",
                                "image": "#/components/schemas/imageMessage",
                                "video": "#/components/schemas/videoMessage",
                                "audio": "#/components/schemas/audioMessage",
                                "embed": "#/components/schemas/embedMessage",
                                "custom-embed": "#/components/schemas/customEmbedMessage"
                              }
                            }
                          }
                        ]
                      }
                    },
                    "input": {
                      "allOf": [
                        {
                          "anyOf": [
                            {
                              "oneOf": [
                                {
                                  "$ref": "#/components/schemas/textInput"
                                },
                                {
                                  "$ref": "#/components/schemas/email"
                                },
                                {
                                  "$ref": "#/components/schemas/address"
                                },
                                {
                                  "$ref": "#/components/schemas/password"
                                },
                                {
                                  "$ref": "#/components/schemas/autocomplete"
                                },
                                {
                                  "$ref": "#/components/schemas/numberInput"
                                },
                                {
                                  "$ref": "#/components/schemas/url"
                                },
                                {
                                  "$ref": "#/components/schemas/phoneNumberInput"
                                },
                                {
                                  "$ref": "#/components/schemas/dateInput"
                                },
                                {
                                  "$ref": "#/components/schemas/paymentInput"
                                },
                                {
                                  "$ref": "#/components/schemas/rating"
                                },
                                {
                                  "$ref": "#/components/schemas/buttonsInputV5"
                                },
                                {
                                  "$ref": "#/components/schemas/fileInputV5"
                                },
                                {
                                  "$ref": "#/components/schemas/pictureChoiceV5"
                                }
                              ],
                              "discriminator": {
                                "propertyName": "type",
                                "mapping": {
                                  "text input": "#/components/schemas/textInput",
                                  "email input": "#/components/schemas/email",
                                  "address input": "#/components/schemas/address",
                                  "password input": "#/components/schemas/password",
                                  "autocomplete input": "#/components/schemas/autocomplete",
                                  "number input": "#/components/schemas/numberInput",
                                  "url input": "#/components/schemas/url",
                                  "phone number input": "#/components/schemas/phoneNumberInput",
                                  "date input": "#/components/schemas/dateInput",
                                  "payment input": "#/components/schemas/paymentInput",
                                  "rating input": "#/components/schemas/rating",
                                  "choice input": "#/components/schemas/buttonsInputV5",
                                  "file input": "#/components/schemas/fileInputV5",
                                  "image choice": "#/components/schemas/pictureChoiceV5"
                                }
                              }
                            },
                            {
                              "oneOf": [
                                {
                                  "$ref": "#/components/schemas/textInput"
                                },
                                {
                                  "$ref": "#/components/schemas/email"
                                },
                                {
                                  "$ref": "#/components/schemas/address"
                                },
                                {
                                  "$ref": "#/components/schemas/password"
                                },
                                {
                                  "$ref": "#/components/schemas/autocomplete"
                                },
                                {
                                  "$ref": "#/components/schemas/numberInput"
                                },
                                {
                                  "$ref": "#/components/schemas/url"
                                },
                                {
                                  "$ref": "#/components/schemas/phoneNumberInput"
                                },
                                {
                                  "$ref": "#/components/schemas/dateInput"
                                },
                                {
                                  "$ref": "#/components/schemas/paymentInput"
                                },
                                {
                                  "$ref": "#/components/schemas/rating"
                                },
                                {
                                  "$ref": "#/components/schemas/buttonsInput"
                                },
                                {
                                  "$ref": "#/components/schemas/fileInput"
                                },
                                {
                                  "$ref": "#/components/schemas/pictureChoice"
                                }
                              ],
                              "discriminator": {
                                "propertyName": "type",
                                "mapping": {
                                  "text input": "#/components/schemas/textInput",
                                  "email input": "#/components/schemas/email",
                                  "address input": "#/components/schemas/address",
                                  "password input": "#/components/schemas/password",
                                  "autocomplete input": "#/components/schemas/autocomplete",
                                  "number input": "#/components/schemas/numberInput",
                                  "url input": "#/components/schemas/url",
                                  "phone number input": "#/components/schemas/phoneNumberInput",
                                  "date input": "#/components/schemas/dateInput",
                                  "payment input": "#/components/schemas/paymentInput",
                                  "rating input": "#/components/schemas/rating",
                                  "choice input": "#/components/schemas/buttonsInput",
                                  "file input": "#/components/schemas/fileInput",
                                  "image choice": "#/components/schemas/pictureChoice"
                                }
                              }
                            }
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "prefilledValue": {
                              "type": "string"
                            },
                            "runtimeOptions": {
                              "type": "object",
                              "properties": {
                                "paymentIntentSecret": {
                                  "type": "string"
                                },
                                "amountLabel": {
                                  "type": "string"
                                },
                                "publicKey": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "paymentIntentSecret",
                                "amountLabel",
                                "publicKey"
                              ]
                            }
                          }
                        }
                      ]
                    },
                    "clientSideActions": {
                      "type": "array",
                      "items": {
                        "oneOf": [
                          {
                            "$ref": "#/components/schemas/csaScriptToExecute"
                          },
                          {
                            "$ref": "#/components/schemas/csaRedirect"
                          },
                          {
                            "$ref": "#/components/schemas/csaChatwoot"
                          },
                          {
                            "$ref": "#/components/schemas/csaGa"
                          },
                          {
                            "$ref": "#/components/schemas/csaWait"
                          },
                          {
                            "$ref": "#/components/schemas/csaSetVariable"
                          },
                          {
                            "$ref": "#/components/schemas/csaStreamOpenAiChatCompletion"
                          },
                          {
                            "$ref": "#/components/schemas/csaHttpRequestToExecute"
                          },
                          {
                            "$ref": "#/components/schemas/csaInjectStartProps"
                          },
                          {
                            "$ref": "#/components/schemas/csaPixel"
                          },
                          {
                            "$ref": "#/components/schemas/csaStream"
                          },
                          {
                            "$ref": "#/components/schemas/csaCodeToExecute"
                          },
                          {
                            "$ref": "#/components/schemas/csaListenForWebhook"
                          }
                        ],
                        "discriminator": {
                          "propertyName": "type",
                          "mapping": {
                            "scriptToExecute": "#/components/schemas/csaScriptToExecute",
                            "redirect": "#/components/schemas/csaRedirect",
                            "chatwoot": "#/components/schemas/csaChatwoot",
                            "googleAnalytics": "#/components/schemas/csaGa",
                            "wait": "#/components/schemas/csaWait",
                            "setVariable": "#/components/schemas/csaSetVariable",
                            "streamOpenAiChatCompletion": "#/components/schemas/csaStreamOpenAiChatCompletion",
                            "httpRequestToExecute": "#/components/schemas/csaHttpRequestToExecute",
                            "startPropsToInject": "#/components/schemas/csaInjectStartProps",
                            "pixel": "#/components/schemas/csaPixel",
                            "stream": "#/components/schemas/csaStream",
                            "codeToExecute": "#/components/schemas/csaCodeToExecute",
                            "listenForWebhook": "#/components/schemas/csaListenForWebhook"
                          }
                        }
                      }
                    },
                    "sessionId": {
                      "type": "string"
                    },
                    "agent": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "theme": {
                          "anyOf": [
                            {
                              "$ref": "#/components/schemas/theme"
                            },
                            {
                              "$ref": "#/components/schemas/theme"
                            }
                          ]
                        },
                        "settings": {
                          "anyOf": [
                            {
                              "$ref": "#/components/schemas/settings"
                            },
                            {
                              "$ref": "#/components/schemas/settings"
                            }
                          ]
                        }
                      },
                      "required": [
                        "id",
                        "theme",
                        "settings"
                      ]
                    },
                    "resultId": {
                      "type": "string"
                    },
                    "dynamicTheme": {
                      "type": "object",
                      "properties": {
                        "hostAvatarUrl": {
                          "type": "string"
                        },
                        "guestAvatarUrl": {
                          "type": "string"
                        }
                      }
                    },
                    "logs": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "status": {
                            "type": "string"
                          },
                          "description": {
                            "type": "string"
                          },
                          "details": {}
                        },
                        "required": [
                          "status",
                          "description"
                        ]
                      }
                    },
                    "lastMessageNewFormat": {
                      "type": "string",
                      "description": "The sent message is validated and formatted on the backend. This is set only if the message differs from the formatted version."
                    }
                  },
                  "required": [
                    "messages"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Invalid input data",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.BAD_REQUEST"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.INTERNAL_SERVER_ERROR"
                }
              }
            }
          }
        }
      }
    },
    "/v2/sendMessage": {
      "post": {
        "operationId": "sendMessageV2",
        "summary": "Send a message",
        "description": "To initiate a chat, do not provide a `sessionId` nor a `message`.\n\nContinue the conversation by providing the `sessionId` and the `message` that should answer the previous question.\n\nSet the `isPreview` option to `true` to chat with the non-published version of the Release0 agent.",
        "tags": [
          "Deprecated"
        ],
        "deprecated": true,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "message": {
                    "type": "string",
                    "description": "The answer to the previous chat input. Do not provide it if you are starting a new chat."
                  },
                  "sessionId": {
                    "type": "string",
                    "description": "Session ID that you get from the initial chat request to a bot. If not provided, it will create a new session."
                  },
                  "startParams": {
                    "allOf": [
                      {
                        "type": "object",
                        "properties": {
                          "agent": {
                            "anyOf": [
                              {
                                "oneOf": [
                                  {
                                    "$ref": "#/components/schemas/agentV6"
                                  },
                                  {
                                    "$ref": "#/components/schemas/AgentV5"
                                  }
                                ],
                                "discriminator": {
                                  "propertyName": "version",
                                  "mapping": {
                                    "3": "#/components/schemas/AgentV5",
                                    "4": "#/components/schemas/AgentV5",
                                    "5": "#/components/schemas/AgentV5",
                                    "6": "#/components/schemas/agentV6"
                                  }
                                }
                              },
                              {
                                "type": "string"
                              }
                            ],
                            "description": "Either a Agent ID or a Agent object. If you provide a Agent object, it will be executed in preview mode. ([How can I find my agent ID?](https://docs.release0.com/api-reference#how-to-find-my-agentid))."
                          },
                          "isPreview": {
                            "type": "boolean",
                            "description": "If set to `true`, it will start a Preview session with the unpublished bot and it won't be saved in the Results tab. You need to be authenticated with a bearer token for this to work."
                          },
                          "resultId": {
                            "type": "string",
                            "description": "Provide it if you'd like to overwrite an existing result."
                          },
                          "initialContext": {
                            "type": "object",
                            "additionalProperties": {},
                            "description": "[More info about prefilled variables.](https://docs.release0.com/editor/variables#prefilled-variables)"
                          },
                          "isStreamEnabled": {
                            "type": "boolean",
                            "description": "Set this to `true` if you intend to stream OpenAI completions on a client."
                          },
                          "isOnlyRegistering": {
                            "type": "boolean",
                            "description": "If set to `true`, it will only register the session and not start the chat. This is used for other chat platform integration as it can require a session to be registered before sending the first message."
                          }
                        },
                        "required": [
                          "agent"
                        ]
                      },
                      {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "startGroupId": {
                                "type": "string",
                                "description": "Start chat from a specific group."
                              },
                              "startEventId": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "startGroupId"
                            ]
                          },
                          {
                            "type": "object",
                            "properties": {
                              "startEventId": {
                                "type": "string",
                                "description": "Start chat from a specific event."
                              },
                              "startGroupId": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "startEventId"
                            ]
                          },
                          {
                            "type": "object"
                          }
                        ]
                      }
                    ]
                  },
                  "clientLogs": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "status": {
                          "type": "string"
                        },
                        "description": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "status",
                        "description"
                      ]
                    },
                    "description": "Logs while executing client side actions"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "messages": {
                      "type": "array",
                      "items": {
                        "allOf": [
                          {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "id"
                            ]
                          },
                          {
                            "oneOf": [
                              {
                                "$ref": "#/components/schemas/textMessage"
                              },
                              {
                                "$ref": "#/components/schemas/imageMessage"
                              },
                              {
                                "$ref": "#/components/schemas/videoMessage"
                              },
                              {
                                "$ref": "#/components/schemas/audioMessage"
                              },
                              {
                                "$ref": "#/components/schemas/embedMessage"
                              },
                              {
                                "$ref": "#/components/schemas/customEmbedMessage"
                              }
                            ],
                            "discriminator": {
                              "propertyName": "type",
                              "mapping": {
                                "text": "#/components/schemas/textMessage",
                                "image": "#/components/schemas/imageMessage",
                                "video": "#/components/schemas/videoMessage",
                                "audio": "#/components/schemas/audioMessage",
                                "embed": "#/components/schemas/embedMessage",
                                "custom-embed": "#/components/schemas/customEmbedMessage"
                              }
                            }
                          }
                        ]
                      }
                    },
                    "input": {
                      "allOf": [
                        {
                          "anyOf": [
                            {
                              "oneOf": [
                                {
                                  "$ref": "#/components/schemas/textInput"
                                },
                                {
                                  "$ref": "#/components/schemas/email"
                                },
                                {
                                  "$ref": "#/components/schemas/address"
                                },
                                {
                                  "$ref": "#/components/schemas/password"
                                },
                                {
                                  "$ref": "#/components/schemas/autocomplete"
                                },
                                {
                                  "$ref": "#/components/schemas/numberInput"
                                },
                                {
                                  "$ref": "#/components/schemas/url"
                                },
                                {
                                  "$ref": "#/components/schemas/phoneNumberInput"
                                },
                                {
                                  "$ref": "#/components/schemas/dateInput"
                                },
                                {
                                  "$ref": "#/components/schemas/paymentInput"
                                },
                                {
                                  "$ref": "#/components/schemas/rating"
                                },
                                {
                                  "$ref": "#/components/schemas/buttonsInputV5"
                                },
                                {
                                  "$ref": "#/components/schemas/fileInputV5"
                                },
                                {
                                  "$ref": "#/components/schemas/pictureChoiceV5"
                                }
                              ],
                              "discriminator": {
                                "propertyName": "type",
                                "mapping": {
                                  "text input": "#/components/schemas/textInput",
                                  "email input": "#/components/schemas/email",
                                  "address input": "#/components/schemas/address",
                                  "password input": "#/components/schemas/password",
                                  "autocomplete input": "#/components/schemas/autocomplete",
                                  "number input": "#/components/schemas/numberInput",
                                  "url input": "#/components/schemas/url",
                                  "phone number input": "#/components/schemas/phoneNumberInput",
                                  "date input": "#/components/schemas/dateInput",
                                  "payment input": "#/components/schemas/paymentInput",
                                  "rating input": "#/components/schemas/rating",
                                  "choice input": "#/components/schemas/buttonsInputV5",
                                  "file input": "#/components/schemas/fileInputV5",
                                  "image choice": "#/components/schemas/pictureChoiceV5"
                                }
                              }
                            },
                            {
                              "oneOf": [
                                {
                                  "$ref": "#/components/schemas/textInput"
                                },
                                {
                                  "$ref": "#/components/schemas/email"
                                },
                                {
                                  "$ref": "#/components/schemas/address"
                                },
                                {
                                  "$ref": "#/components/schemas/password"
                                },
                                {
                                  "$ref": "#/components/schemas/autocomplete"
                                },
                                {
                                  "$ref": "#/components/schemas/numberInput"
                                },
                                {
                                  "$ref": "#/components/schemas/url"
                                },
                                {
                                  "$ref": "#/components/schemas/phoneNumberInput"
                                },
                                {
                                  "$ref": "#/components/schemas/dateInput"
                                },
                                {
                                  "$ref": "#/components/schemas/paymentInput"
                                },
                                {
                                  "$ref": "#/components/schemas/rating"
                                },
                                {
                                  "$ref": "#/components/schemas/buttonsInput"
                                },
                                {
                                  "$ref": "#/components/schemas/fileInput"
                                },
                                {
                                  "$ref": "#/components/schemas/pictureChoice"
                                }
                              ],
                              "discriminator": {
                                "propertyName": "type",
                                "mapping": {
                                  "text input": "#/components/schemas/textInput",
                                  "email input": "#/components/schemas/email",
                                  "address input": "#/components/schemas/address",
                                  "password input": "#/components/schemas/password",
                                  "autocomplete input": "#/components/schemas/autocomplete",
                                  "number input": "#/components/schemas/numberInput",
                                  "url input": "#/components/schemas/url",
                                  "phone number input": "#/components/schemas/phoneNumberInput",
                                  "date input": "#/components/schemas/dateInput",
                                  "payment input": "#/components/schemas/paymentInput",
                                  "rating input": "#/components/schemas/rating",
                                  "choice input": "#/components/schemas/buttonsInput",
                                  "file input": "#/components/schemas/fileInput",
                                  "image choice": "#/components/schemas/pictureChoice"
                                }
                              }
                            }
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "prefilledValue": {
                              "type": "string"
                            },
                            "runtimeOptions": {
                              "type": "object",
                              "properties": {
                                "paymentIntentSecret": {
                                  "type": "string"
                                },
                                "amountLabel": {
                                  "type": "string"
                                },
                                "publicKey": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "paymentIntentSecret",
                                "amountLabel",
                                "publicKey"
                              ]
                            }
                          }
                        }
                      ]
                    },
                    "clientSideActions": {
                      "type": "array",
                      "items": {
                        "oneOf": [
                          {
                            "$ref": "#/components/schemas/csaScriptToExecute"
                          },
                          {
                            "$ref": "#/components/schemas/csaRedirect"
                          },
                          {
                            "$ref": "#/components/schemas/csaChatwoot"
                          },
                          {
                            "$ref": "#/components/schemas/csaGa"
                          },
                          {
                            "$ref": "#/components/schemas/csaWait"
                          },
                          {
                            "$ref": "#/components/schemas/csaSetVariable"
                          },
                          {
                            "$ref": "#/components/schemas/csaStreamOpenAiChatCompletion"
                          },
                          {
                            "$ref": "#/components/schemas/csaHttpRequestToExecute"
                          },
                          {
                            "$ref": "#/components/schemas/csaInjectStartProps"
                          },
                          {
                            "$ref": "#/components/schemas/csaPixel"
                          },
                          {
                            "$ref": "#/components/schemas/csaStream"
                          },
                          {
                            "$ref": "#/components/schemas/csaCodeToExecute"
                          },
                          {
                            "$ref": "#/components/schemas/csaListenForWebhook"
                          }
                        ],
                        "discriminator": {
                          "propertyName": "type",
                          "mapping": {
                            "scriptToExecute": "#/components/schemas/csaScriptToExecute",
                            "redirect": "#/components/schemas/csaRedirect",
                            "chatwoot": "#/components/schemas/csaChatwoot",
                            "googleAnalytics": "#/components/schemas/csaGa",
                            "wait": "#/components/schemas/csaWait",
                            "setVariable": "#/components/schemas/csaSetVariable",
                            "streamOpenAiChatCompletion": "#/components/schemas/csaStreamOpenAiChatCompletion",
                            "httpRequestToExecute": "#/components/schemas/csaHttpRequestToExecute",
                            "startPropsToInject": "#/components/schemas/csaInjectStartProps",
                            "pixel": "#/components/schemas/csaPixel",
                            "stream": "#/components/schemas/csaStream",
                            "codeToExecute": "#/components/schemas/csaCodeToExecute",
                            "listenForWebhook": "#/components/schemas/csaListenForWebhook"
                          }
                        }
                      }
                    },
                    "sessionId": {
                      "type": "string"
                    },
                    "agent": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "theme": {
                          "anyOf": [
                            {
                              "$ref": "#/components/schemas/theme"
                            },
                            {
                              "$ref": "#/components/schemas/theme"
                            }
                          ]
                        },
                        "settings": {
                          "anyOf": [
                            {
                              "$ref": "#/components/schemas/settings"
                            },
                            {
                              "$ref": "#/components/schemas/settings"
                            }
                          ]
                        }
                      },
                      "required": [
                        "id",
                        "theme",
                        "settings"
                      ]
                    },
                    "resultId": {
                      "type": "string"
                    },
                    "dynamicTheme": {
                      "type": "object",
                      "properties": {
                        "hostAvatarUrl": {
                          "type": "string"
                        },
                        "guestAvatarUrl": {
                          "type": "string"
                        }
                      }
                    },
                    "logs": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "status": {
                            "type": "string"
                          },
                          "description": {
                            "type": "string"
                          },
                          "details": {}
                        },
                        "required": [
                          "status",
                          "description"
                        ]
                      }
                    },
                    "lastMessageNewFormat": {
                      "type": "string",
                      "description": "The sent message is validated and formatted on the backend. This is set only if the message differs from the formatted version."
                    }
                  },
                  "required": [
                    "messages"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Invalid input data",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.BAD_REQUEST"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.INTERNAL_SERVER_ERROR"
                }
              }
            }
          }
        }
      }
    },
    "/v1/agents/{publicId}/start": {
      "post": {
        "operationId": "start",
        "summary": "Start agent chat",
        "parameters": [
          {
            "in": "path",
            "name": "publicId",
            "description": "Public identifier of the bot.",
            "schema": {
              "type": "string",
              "description": "Public identifier of the bot."
            },
            "required": true
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "message": {
                    "oneOf": [
                      {
                        "$ref": "#/components/schemas/textSentMessage"
                      },
                      {
                        "$ref": "#/components/schemas/audioSentMessage"
                      }
                    ],
                    "discriminator": {
                      "propertyName": "type",
                      "mapping": {
                        "text": "#/components/schemas/textSentMessage",
                        "audio": "#/components/schemas/audioSentMessage"
                      }
                    },
                    "description": "Only provide this if the flow starts with an input block and you want to directly submit an initial response."
                  },
                  "isStreamEnabled": {
                    "type": "boolean",
                    "default": false,
                    "description": "If enabled, OpenAI completions must be streamed from the client and the generated response sent back to the API."
                  },
                  "resultId": {
                    "type": "string",
                    "description": "Provide this if you want to overwrite an existing result."
                  },
                  "isOnlyRegistering": {
                    "type": "boolean",
                    "default": false,
                    "description": "If set to `true`, the session will only be registered and the bot will not be started. Useful for third-party chat platforms that require a session to exist before sending the first message."
                  },
                  "initialContext": {
                    "type": "object",
                    "additionalProperties": {},
                    "description": "Initial context used to prefill variables when starting the session.",
                    "example": {
                      "First name": "John",
                      "Email": "john@gmail.com"
                    }
                  },
                  "textBubbleContentFormat": {
                    "type": "string",
                    "enum": [
                      "richText",
                      "markdown"
                    ],
                    "default": "richText"
                  },
                  "request": {
                    "description": "Original HTTP request object."
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "sessionId": {
                      "type": "string",
                      "description": "Session identifier, used for subsequent continuation requests."
                    },
                    "resultId": {
                      "type": "string"
                    },
                    "agent": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "theme": {
                          "$ref": "#/components/schemas/theme"
                        },
                        "settings": {
                          "$ref": "#/components/schemas/settings"
                        },
                        "publishedAt": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "id",
                        "theme",
                        "settings"
                      ]
                    },
                    "lastMessageNewFormat": {
                      "type": "string",
                      "description": "Message validated and normalized by the backend. For example, responses like `tomorrow` in a date input are converted into an explicit date value."
                    },
                    "messages": {
                      "type": "array",
                      "items": {
                        "allOf": [
                          {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "id"
                            ]
                          },
                          {
                            "oneOf": [
                              {
                                "$ref": "#/components/schemas/textMessage"
                              },
                              {
                                "$ref": "#/components/schemas/imageMessage"
                              },
                              {
                                "$ref": "#/components/schemas/videoMessage"
                              },
                              {
                                "$ref": "#/components/schemas/audioMessage"
                              },
                              {
                                "$ref": "#/components/schemas/embedMessage"
                              },
                              {
                                "$ref": "#/components/schemas/customEmbedMessage"
                              }
                            ],
                            "discriminator": {
                              "propertyName": "type",
                              "mapping": {
                                "text": "#/components/schemas/textMessage",
                                "image": "#/components/schemas/imageMessage",
                                "video": "#/components/schemas/videoMessage",
                                "audio": "#/components/schemas/audioMessage",
                                "embed": "#/components/schemas/embedMessage",
                                "custom-embed": "#/components/schemas/customEmbedMessage"
                              }
                            }
                          }
                        ]
                      }
                    },
                    "input": {
                      "allOf": [
                        {
                          "anyOf": [
                            {
                              "oneOf": [
                                {
                                  "$ref": "#/components/schemas/textInput"
                                },
                                {
                                  "$ref": "#/components/schemas/buttonsInput"
                                },
                                {
                                  "$ref": "#/components/schemas/email"
                                },
                                {
                                  "$ref": "#/components/schemas/address"
                                },
                                {
                                  "$ref": "#/components/schemas/password"
                                },
                                {
                                  "$ref": "#/components/schemas/autocomplete"
                                },
                                {
                                  "$ref": "#/components/schemas/numberInput"
                                },
                                {
                                  "$ref": "#/components/schemas/url"
                                },
                                {
                                  "$ref": "#/components/schemas/phoneNumberInput"
                                },
                                {
                                  "$ref": "#/components/schemas/dateInput"
                                },
                                {
                                  "$ref": "#/components/schemas/paymentInput"
                                },
                                {
                                  "$ref": "#/components/schemas/rating"
                                },
                                {
                                  "$ref": "#/components/schemas/fileInput"
                                },
                                {
                                  "$ref": "#/components/schemas/pictureChoice"
                                }
                              ],
                              "discriminator": {
                                "propertyName": "type",
                                "mapping": {
                                  "text input": "#/components/schemas/textInput",
                                  "choice input": "#/components/schemas/buttonsInput",
                                  "email input": "#/components/schemas/email",
                                  "address input": "#/components/schemas/address",
                                  "password input": "#/components/schemas/password",
                                  "autocomplete input": "#/components/schemas/autocomplete",
                                  "number input": "#/components/schemas/numberInput",
                                  "url input": "#/components/schemas/url",
                                  "phone number input": "#/components/schemas/phoneNumberInput",
                                  "date input": "#/components/schemas/dateInput",
                                  "payment input": "#/components/schemas/paymentInput",
                                  "rating input": "#/components/schemas/rating",
                                  "file input": "#/components/schemas/fileInput",
                                  "image choice": "#/components/schemas/pictureChoice"
                                }
                              }
                            },
                            {
                              "oneOf": [
                                {
                                  "$ref": "#/components/schemas/buttonsInputV5"
                                },
                                {
                                  "$ref": "#/components/schemas/fileInputV5"
                                },
                                {
                                  "$ref": "#/components/schemas/pictureChoiceV5"
                                }
                              ],
                              "discriminator": {
                                "propertyName": "type",
                                "mapping": {
                                  "choice input": "#/components/schemas/buttonsInputV5",
                                  "file input": "#/components/schemas/fileInputV5",
                                  "image choice": "#/components/schemas/pictureChoiceV5"
                                }
                              }
                            }
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "prefilledValue": {
                              "type": "string"
                            },
                            "runtimeOptions": {
                              "type": "object",
                              "properties": {
                                "paymentIntentSecret": {
                                  "type": "string"
                                },
                                "amountLabel": {
                                  "type": "string"
                                },
                                "publicKey": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "paymentIntentSecret",
                                "amountLabel",
                                "publicKey"
                              ]
                            }
                          }
                        }
                      ]
                    },
                    "clientSideActions": {
                      "type": "array",
                      "items": {
                        "oneOf": [
                          {
                            "$ref": "#/components/schemas/csaScriptToExecute"
                          },
                          {
                            "$ref": "#/components/schemas/csaRedirect"
                          },
                          {
                            "$ref": "#/components/schemas/csaChatwoot"
                          },
                          {
                            "$ref": "#/components/schemas/csaGa"
                          },
                          {
                            "$ref": "#/components/schemas/csaWait"
                          },
                          {
                            "$ref": "#/components/schemas/csaSetVariable"
                          },
                          {
                            "$ref": "#/components/schemas/csaStreamOpenAiChatCompletion"
                          },
                          {
                            "$ref": "#/components/schemas/csaHttpRequestToExecute"
                          },
                          {
                            "$ref": "#/components/schemas/csaInjectStartProps"
                          },
                          {
                            "$ref": "#/components/schemas/csaPixel"
                          },
                          {
                            "$ref": "#/components/schemas/csaStream"
                          },
                          {
                            "$ref": "#/components/schemas/csaCodeToExecute"
                          },
                          {
                            "$ref": "#/components/schemas/csaListenForWebhook"
                          }
                        ],
                        "discriminator": {
                          "propertyName": "type",
                          "mapping": {
                            "scriptToExecute": "#/components/schemas/csaScriptToExecute",
                            "redirect": "#/components/schemas/csaRedirect",
                            "chatwoot": "#/components/schemas/csaChatwoot",
                            "googleAnalytics": "#/components/schemas/csaGa",
                            "wait": "#/components/schemas/csaWait",
                            "setVariable": "#/components/schemas/csaSetVariable",
                            "streamOpenAiChatCompletion": "#/components/schemas/csaStreamOpenAiChatCompletion",
                            "httpRequestToExecute": "#/components/schemas/csaHttpRequestToExecute",
                            "startPropsToInject": "#/components/schemas/csaInjectStartProps",
                            "pixel": "#/components/schemas/csaPixel",
                            "stream": "#/components/schemas/csaStream",
                            "codeToExecute": "#/components/schemas/csaCodeToExecute",
                            "listenForWebhook": "#/components/schemas/csaListenForWebhook"
                          }
                        }
                      },
                      "description": "Actions to be executed on the client side."
                    },
                    "logs": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "status": {
                            "type": "string"
                          },
                          "description": {
                            "type": "string"
                          },
                          "details": {}
                        },
                        "required": [
                          "status",
                          "description"
                        ]
                      },
                      "description": "Logs generated during the last execution."
                    },
                    "dynamicTheme": {
                      "type": "object",
                      "properties": {
                        "hostAvatarUrl": {
                          "type": "string"
                        },
                        "guestAvatarUrl": {
                          "type": "string"
                        }
                      },
                      "description": "If the agent includes dynamic avatars, returns updated avatar URLs whenever their variables change."
                    },
                    "progress": {
                      "type": "number",
                      "description": "If the progress bar is enabled, returns a value between 0 and 100 indicating the current progress based on the longest remaining path in the flow."
                    }
                  },
                  "required": [
                    "sessionId",
                    "agent",
                    "messages"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Invalid input data",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.BAD_REQUEST"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.INTERNAL_SERVER_ERROR"
                }
              }
            }
          }
        }
      }
    },
    "/v1/sessions/{sessionId}/continue": {
      "post": {
        "operationId": "continue",
        "summary": "Continue chat",
        "parameters": [
          {
            "in": "path",
            "name": "sessionId",
            "description": "Session identifier returned by the start chat response.",
            "schema": {
              "type": "string",
              "description": "Session identifier returned by the start chat response."
            },
            "required": true
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "message": {
                    "oneOf": [
                      {
                        "$ref": "#/components/schemas/textSentMessage"
                      },
                      {
                        "$ref": "#/components/schemas/audioSentMessage"
                      }
                    ],
                    "discriminator": {
                      "propertyName": "type",
                      "mapping": {
                        "text": "#/components/schemas/textSentMessage",
                        "audio": "#/components/schemas/audioSentMessage"
                      }
                    }
                  },
                  "textBubbleContentFormat": {
                    "type": "string",
                    "enum": [
                      "richText",
                      "markdown"
                    ],
                    "default": "richText"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "lastMessageNewFormat": {
                      "type": "string",
                      "description": "Message validated and normalized by the backend. For example, responses like `tomorrow` in a date input are converted into an explicit date value."
                    },
                    "messages": {
                      "type": "array",
                      "items": {
                        "allOf": [
                          {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "id"
                            ]
                          },
                          {
                            "oneOf": [
                              {
                                "$ref": "#/components/schemas/textMessage"
                              },
                              {
                                "$ref": "#/components/schemas/imageMessage"
                              },
                              {
                                "$ref": "#/components/schemas/videoMessage"
                              },
                              {
                                "$ref": "#/components/schemas/audioMessage"
                              },
                              {
                                "$ref": "#/components/schemas/embedMessage"
                              },
                              {
                                "$ref": "#/components/schemas/customEmbedMessage"
                              }
                            ],
                            "discriminator": {
                              "propertyName": "type",
                              "mapping": {
                                "text": "#/components/schemas/textMessage",
                                "image": "#/components/schemas/imageMessage",
                                "video": "#/components/schemas/videoMessage",
                                "audio": "#/components/schemas/audioMessage",
                                "embed": "#/components/schemas/embedMessage",
                                "custom-embed": "#/components/schemas/customEmbedMessage"
                              }
                            }
                          }
                        ]
                      }
                    },
                    "input": {
                      "allOf": [
                        {
                          "anyOf": [
                            {
                              "oneOf": [
                                {
                                  "$ref": "#/components/schemas/textInput"
                                },
                                {
                                  "$ref": "#/components/schemas/buttonsInput"
                                },
                                {
                                  "$ref": "#/components/schemas/email"
                                },
                                {
                                  "$ref": "#/components/schemas/address"
                                },
                                {
                                  "$ref": "#/components/schemas/password"
                                },
                                {
                                  "$ref": "#/components/schemas/autocomplete"
                                },
                                {
                                  "$ref": "#/components/schemas/numberInput"
                                },
                                {
                                  "$ref": "#/components/schemas/url"
                                },
                                {
                                  "$ref": "#/components/schemas/phoneNumberInput"
                                },
                                {
                                  "$ref": "#/components/schemas/dateInput"
                                },
                                {
                                  "$ref": "#/components/schemas/paymentInput"
                                },
                                {
                                  "$ref": "#/components/schemas/rating"
                                },
                                {
                                  "$ref": "#/components/schemas/fileInput"
                                },
                                {
                                  "$ref": "#/components/schemas/pictureChoice"
                                }
                              ],
                              "discriminator": {
                                "propertyName": "type",
                                "mapping": {
                                  "text input": "#/components/schemas/textInput",
                                  "choice input": "#/components/schemas/buttonsInput",
                                  "email input": "#/components/schemas/email",
                                  "address input": "#/components/schemas/address",
                                  "password input": "#/components/schemas/password",
                                  "autocomplete input": "#/components/schemas/autocomplete",
                                  "number input": "#/components/schemas/numberInput",
                                  "url input": "#/components/schemas/url",
                                  "phone number input": "#/components/schemas/phoneNumberInput",
                                  "date input": "#/components/schemas/dateInput",
                                  "payment input": "#/components/schemas/paymentInput",
                                  "rating input": "#/components/schemas/rating",
                                  "file input": "#/components/schemas/fileInput",
                                  "image choice": "#/components/schemas/pictureChoice"
                                }
                              }
                            },
                            {
                              "oneOf": [
                                {
                                  "$ref": "#/components/schemas/buttonsInputV5"
                                },
                                {
                                  "$ref": "#/components/schemas/fileInputV5"
                                },
                                {
                                  "$ref": "#/components/schemas/pictureChoiceV5"
                                }
                              ],
                              "discriminator": {
                                "propertyName": "type",
                                "mapping": {
                                  "choice input": "#/components/schemas/buttonsInputV5",
                                  "file input": "#/components/schemas/fileInputV5",
                                  "image choice": "#/components/schemas/pictureChoiceV5"
                                }
                              }
                            }
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "prefilledValue": {
                              "type": "string"
                            },
                            "runtimeOptions": {
                              "type": "object",
                              "properties": {
                                "paymentIntentSecret": {
                                  "type": "string"
                                },
                                "amountLabel": {
                                  "type": "string"
                                },
                                "publicKey": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "paymentIntentSecret",
                                "amountLabel",
                                "publicKey"
                              ]
                            }
                          }
                        }
                      ]
                    },
                    "clientSideActions": {
                      "type": "array",
                      "items": {
                        "oneOf": [
                          {
                            "$ref": "#/components/schemas/csaScriptToExecute"
                          },
                          {
                            "$ref": "#/components/schemas/csaRedirect"
                          },
                          {
                            "$ref": "#/components/schemas/csaChatwoot"
                          },
                          {
                            "$ref": "#/components/schemas/csaGa"
                          },
                          {
                            "$ref": "#/components/schemas/csaWait"
                          },
                          {
                            "$ref": "#/components/schemas/csaSetVariable"
                          },
                          {
                            "$ref": "#/components/schemas/csaStreamOpenAiChatCompletion"
                          },
                          {
                            "$ref": "#/components/schemas/csaHttpRequestToExecute"
                          },
                          {
                            "$ref": "#/components/schemas/csaInjectStartProps"
                          },
                          {
                            "$ref": "#/components/schemas/csaPixel"
                          },
                          {
                            "$ref": "#/components/schemas/csaStream"
                          },
                          {
                            "$ref": "#/components/schemas/csaCodeToExecute"
                          },
                          {
                            "$ref": "#/components/schemas/csaListenForWebhook"
                          }
                        ],
                        "discriminator": {
                          "propertyName": "type",
                          "mapping": {
                            "scriptToExecute": "#/components/schemas/csaScriptToExecute",
                            "redirect": "#/components/schemas/csaRedirect",
                            "chatwoot": "#/components/schemas/csaChatwoot",
                            "googleAnalytics": "#/components/schemas/csaGa",
                            "wait": "#/components/schemas/csaWait",
                            "setVariable": "#/components/schemas/csaSetVariable",
                            "streamOpenAiChatCompletion": "#/components/schemas/csaStreamOpenAiChatCompletion",
                            "httpRequestToExecute": "#/components/schemas/csaHttpRequestToExecute",
                            "startPropsToInject": "#/components/schemas/csaInjectStartProps",
                            "pixel": "#/components/schemas/csaPixel",
                            "stream": "#/components/schemas/csaStream",
                            "codeToExecute": "#/components/schemas/csaCodeToExecute",
                            "listenForWebhook": "#/components/schemas/csaListenForWebhook"
                          }
                        }
                      },
                      "description": "Actions to be executed on the client side."
                    },
                    "logs": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "status": {
                            "type": "string"
                          },
                          "description": {
                            "type": "string"
                          },
                          "details": {}
                        },
                        "required": [
                          "status",
                          "description"
                        ]
                      },
                      "description": "Logs generated during the last execution."
                    },
                    "dynamicTheme": {
                      "type": "object",
                      "properties": {
                        "hostAvatarUrl": {
                          "type": "string"
                        },
                        "guestAvatarUrl": {
                          "type": "string"
                        }
                      },
                      "description": "If the agent includes dynamic avatars, returns updated avatar URLs whenever their variables change."
                    },
                    "progress": {
                      "type": "number",
                      "description": "If the progress bar is enabled, returns a value between 0 and 100 indicating the current progress based on the longest remaining path in the flow."
                    }
                  },
                  "required": [
                    "messages"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Invalid input data",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.BAD_REQUEST"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.INTERNAL_SERVER_ERROR"
                }
              }
            }
          }
        }
      }
    },
    "/v1/agents/{agentId}/preview/start": {
      "post": {
        "operationId": "startPreview",
        "summary": "Start preview chat",
        "parameters": [
          {
            "in": "path",
            "name": "agentId",
            "description": "Identifier of the agent.",
            "schema": {
              "type": "string",
              "description": "Identifier of the agent."
            },
            "required": true
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "isStreamEnabled": {
                    "type": "boolean",
                    "default": false
                  },
                  "message": {
                    "oneOf": [
                      {
                        "$ref": "#/components/schemas/textSentMessage"
                      },
                      {
                        "$ref": "#/components/schemas/audioSentMessage"
                      }
                    ],
                    "discriminator": {
                      "propertyName": "type",
                      "mapping": {
                        "text": "#/components/schemas/textSentMessage",
                        "audio": "#/components/schemas/audioSentMessage"
                      }
                    }
                  },
                  "isOnlyRegistering": {
                    "type": "boolean",
                    "description": "If set to `true`, the session will only be registered and the bot will not be started.",
                    "default": false
                  },
                  "agent": {
                    "description": "If provided, overrides the agent used to start the chat."
                  },
                  "startFrom": {
                    "oneOf": [
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "enum": [
                              "group"
                            ]
                          },
                          "groupId": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "type",
                          "groupId"
                        ]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "enum": [
                              "event"
                            ]
                          },
                          "eventId": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "type",
                          "eventId"
                        ]
                      }
                    ]
                  },
                  "initialContext": {
                    "type": "object",
                    "additionalProperties": {},
                    "description": "Initial context used to prefill variables when starting the session.",
                    "example": {
                      "First name": "John",
                      "Email": "john@gmail.com"
                    }
                  },
                  "sessionId": {
                    "type": "string",
                    "description": "If provided, it will be used as the session identifier and will overwrite any existing session with the same ID."
                  },
                  "password": {
                    "type": "string",
                    "description": "Password required if the agent was created with password protection."
                  },
                  "textBubbleContentFormat": {
                    "type": "string",
                    "enum": [
                      "richText",
                      "markdown"
                    ],
                    "default": "richText"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "description": "Invalid input data",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.BAD_REQUEST"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.INTERNAL_SERVER_ERROR"
                }
              }
            }
          }
        }
      }
    },
    "/v3/generate-upload-url": {
      "post": {
        "operationId": "generateUploadUrl",
        "summary": "Generate upload URL",
        "description": "Used to upload anything from the client to S3 bucket",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "sessionId": {
                    "type": "string"
                  },
                  "blockId": {
                    "type": "string"
                  },
                  "fileName": {
                    "type": "string"
                  },
                  "fileType": {
                    "type": "string"
                  }
                },
                "required": [
                  "sessionId",
                  "blockId",
                  "fileName"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "presignedUrl": {
                      "type": "string"
                    },
                    "formData": {
                      "type": "object",
                      "additionalProperties": {}
                    },
                    "fileUrl": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "presignedUrl",
                    "formData",
                    "fileUrl"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Invalid input data",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.BAD_REQUEST"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.INTERNAL_SERVER_ERROR"
                }
              }
            }
          }
        }
      }
    },
    "/v1/sessions/{sessionId}/updateAgent": {
      "post": {
        "operationId": "updateAgentInSession",
        "summary": "Update agent in session",
        "description": "Update chat session with latest agent modifications. This is useful when you want to update the agent in an ongoing session after making changes to it.",
        "security": [
          {
            "Authorization": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "sessionId",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "enum": [
                        "success"
                      ]
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Invalid input data",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.BAD_REQUEST"
                }
              }
            }
          },
          "401": {
            "description": "Authorization not provided",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.UNAUTHORIZED"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient access",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.FORBIDDEN"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.INTERNAL_SERVER_ERROR"
                }
              }
            }
          }
        }
      }
    },
    "/v1/workspaces/{workspaceId}/whatsapp/{credentialsId}/webhook": {
      "get": {
        "operationId": "whatsAppRouter-subscribeWebhook",
        "summary": "Subscribe webhook",
        "tags": [
          "WhatsApp"
        ],
        "security": [
          {
            "Authorization": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "workspaceId",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "in": "path",
            "name": "credentialsId",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "in": "query",
            "name": "hub.challenge",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "in": "query",
            "name": "hub.verify_token",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "number"
                }
              }
            }
          },
          "400": {
            "description": "Invalid input data",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.BAD_REQUEST"
                }
              }
            }
          },
          "401": {
            "description": "Authorization not provided",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.UNAUTHORIZED"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient access",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.FORBIDDEN"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.NOT_FOUND"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.INTERNAL_SERVER_ERROR"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "whatsAppRouter-receiveMessage",
        "summary": "Message webhook",
        "tags": [
          "WhatsApp"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "workspaceId",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "in": "path",
            "name": "credentialsId",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "entry": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "changes": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "value": {
                                "type": "object",
                                "properties": {
                                  "metadata": {
                                    "type": "object",
                                    "properties": {
                                      "phone_number_id": {
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "phone_number_id"
                                    ]
                                  },
                                  "contacts": {
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "profile": {
                                          "type": "object",
                                          "properties": {
                                            "name": {
                                              "type": "string"
                                            }
                                          },
                                          "required": [
                                            "name"
                                          ]
                                        }
                                      },
                                      "required": [
                                        "profile"
                                      ]
                                    }
                                  },
                                  "messages": {
                                    "type": "array",
                                    "items": {
                                      "oneOf": [
                                        {
                                          "type": "object",
                                          "properties": {
                                            "from": {
                                              "type": "string"
                                            },
                                            "type": {
                                              "type": "string",
                                              "enum": [
                                                "text"
                                              ]
                                            },
                                            "text": {
                                              "type": "object",
                                              "properties": {
                                                "body": {
                                                  "type": "string"
                                                }
                                              },
                                              "required": [
                                                "body"
                                              ]
                                            },
                                            "timestamp": {
                                              "type": "string"
                                            }
                                          },
                                          "required": [
                                            "from",
                                            "type",
                                            "text",
                                            "timestamp"
                                          ]
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "from": {
                                              "type": "string"
                                            },
                                            "type": {
                                              "type": "string",
                                              "enum": [
                                                "button"
                                              ]
                                            },
                                            "button": {
                                              "type": "object",
                                              "properties": {
                                                "text": {
                                                  "type": "string"
                                                },
                                                "payload": {
                                                  "type": "string"
                                                }
                                              },
                                              "required": [
                                                "text",
                                                "payload"
                                              ]
                                            },
                                            "timestamp": {
                                              "type": "string"
                                            }
                                          },
                                          "required": [
                                            "from",
                                            "type",
                                            "button",
                                            "timestamp"
                                          ]
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "from": {
                                              "type": "string"
                                            },
                                            "type": {
                                              "type": "string",
                                              "enum": [
                                                "interactive"
                                              ]
                                            },
                                            "interactive": {
                                              "type": "object",
                                              "properties": {
                                                "button_reply": {
                                                  "type": "object",
                                                  "properties": {
                                                    "id": {
                                                      "type": "string"
                                                    },
                                                    "title": {
                                                      "type": "string"
                                                    }
                                                  },
                                                  "required": [
                                                    "id",
                                                    "title"
                                                  ]
                                                }
                                              },
                                              "required": [
                                                "button_reply"
                                              ]
                                            },
                                            "timestamp": {
                                              "type": "string"
                                            }
                                          },
                                          "required": [
                                            "from",
                                            "type",
                                            "interactive",
                                            "timestamp"
                                          ]
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "from": {
                                              "type": "string"
                                            },
                                            "type": {
                                              "type": "string",
                                              "enum": [
                                                "image"
                                              ]
                                            },
                                            "image": {
                                              "type": "object",
                                              "properties": {
                                                "id": {
                                                  "type": "string"
                                                },
                                                "caption": {
                                                  "type": "string"
                                                }
                                              },
                                              "required": [
                                                "id"
                                              ]
                                            },
                                            "timestamp": {
                                              "type": "string"
                                            }
                                          },
                                          "required": [
                                            "from",
                                            "type",
                                            "image",
                                            "timestamp"
                                          ]
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "from": {
                                              "type": "string"
                                            },
                                            "type": {
                                              "type": "string",
                                              "enum": [
                                                "video"
                                              ]
                                            },
                                            "video": {
                                              "type": "object",
                                              "properties": {
                                                "id": {
                                                  "type": "string"
                                                },
                                                "caption": {
                                                  "type": "string"
                                                }
                                              },
                                              "required": [
                                                "id"
                                              ]
                                            },
                                            "timestamp": {
                                              "type": "string"
                                            }
                                          },
                                          "required": [
                                            "from",
                                            "type",
                                            "video",
                                            "timestamp"
                                          ]
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "from": {
                                              "type": "string"
                                            },
                                            "type": {
                                              "type": "string",
                                              "enum": [
                                                "audio"
                                              ]
                                            },
                                            "audio": {
                                              "type": "object",
                                              "properties": {
                                                "id": {
                                                  "type": "string"
                                                }
                                              },
                                              "required": [
                                                "id"
                                              ]
                                            },
                                            "timestamp": {
                                              "type": "string"
                                            }
                                          },
                                          "required": [
                                            "from",
                                            "type",
                                            "audio",
                                            "timestamp"
                                          ]
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "from": {
                                              "type": "string"
                                            },
                                            "type": {
                                              "type": "string",
                                              "enum": [
                                                "document"
                                              ]
                                            },
                                            "document": {
                                              "type": "object",
                                              "properties": {
                                                "id": {
                                                  "type": "string"
                                                },
                                                "caption": {
                                                  "type": "string"
                                                }
                                              },
                                              "required": [
                                                "id"
                                              ]
                                            },
                                            "timestamp": {
                                              "type": "string"
                                            }
                                          },
                                          "required": [
                                            "from",
                                            "type",
                                            "document",
                                            "timestamp"
                                          ]
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "from": {
                                              "type": "string"
                                            },
                                            "type": {
                                              "type": "string",
                                              "enum": [
                                                "location"
                                              ]
                                            },
                                            "location": {
                                              "type": "object",
                                              "properties": {
                                                "latitude": {
                                                  "type": "number"
                                                },
                                                "longitude": {
                                                  "type": "number"
                                                }
                                              },
                                              "required": [
                                                "latitude",
                                                "longitude"
                                              ]
                                            },
                                            "timestamp": {
                                              "type": "string"
                                            }
                                          },
                                          "required": [
                                            "from",
                                            "type",
                                            "location",
                                            "timestamp"
                                          ]
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "from": {
                                              "type": "string"
                                            },
                                            "type": {
                                              "type": "string",
                                              "enum": [
                                                "webhook"
                                              ]
                                            },
                                            "webhook": {
                                              "type": "object",
                                              "properties": {
                                                "data": {
                                                  "type": "string"
                                                }
                                              }
                                            },
                                            "timestamp": {
                                              "type": "string"
                                            }
                                          },
                                          "required": [
                                            "from",
                                            "type",
                                            "webhook",
                                            "timestamp"
                                          ]
                                        }
                                      ]
                                    }
                                  },
                                  "statuses": {
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "recipient_id": {
                                          "type": "string"
                                        },
                                        "errors": {
                                          "type": "array",
                                          "items": {
                                            "type": "object",
                                            "properties": {
                                              "code": {
                                                "type": "number"
                                              },
                                              "title": {
                                                "type": "string"
                                              },
                                              "error_data": {
                                                "type": "object",
                                                "properties": {
                                                  "details": {
                                                    "type": "string"
                                                  }
                                                },
                                                "required": [
                                                  "details"
                                                ]
                                              }
                                            },
                                            "required": [
                                              "code",
                                              "title",
                                              "error_data"
                                            ]
                                          }
                                        }
                                      },
                                      "required": [
                                        "recipient_id"
                                      ]
                                    }
                                  }
                                },
                                "required": [
                                  "metadata"
                                ]
                              }
                            },
                            "required": [
                              "value"
                            ]
                          }
                        }
                      },
                      "required": [
                        "changes"
                      ]
                    }
                  }
                },
                "required": [
                  "entry"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Invalid input data",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.BAD_REQUEST"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.INTERNAL_SERVER_ERROR"
                }
              }
            }
          }
        }
      }
    },
    "/v1/sessions/{sessionId}/clientLogs": {
      "post": {
        "operationId": "saveClientLogs",
        "summary": "Save logs",
        "parameters": [
          {
            "in": "path",
            "name": "sessionId",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "clientLogs": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "status": {
                          "type": "string"
                        },
                        "description": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "status",
                        "description"
                      ]
                    }
                  }
                },
                "required": [
                  "clientLogs"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Invalid input data",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.BAD_REQUEST"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error.INTERNAL_SERVER_ERROR"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "Authorization": {
        "type": "http",
        "scheme": "bearer"
      }
    },
    "schemas": {
      "agentV6": {
        "type": "object",
        "properties": {
          "version": {
            "type": "string",
            "enum": [
              "6"
            ]
          },
          "id": {
            "type": "string"
          },
          "groups": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/groupV6"
            }
          },
          "events": {
            "type": "array",
            "maxItems": 1,
            "minItems": 1,
            "items": {
              "oneOf": [
                {
                  "$ref": "#/components/schemas/event"
                }
              ]
            }
          },
          "edges": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "from": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "blockId": {
                          "type": "string"
                        },
                        "itemId": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "blockId"
                      ]
                    },
                    {
                      "type": "object",
                      "properties": {
                        "eventId": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "eventId"
                      ]
                    }
                  ]
                },
                "to": {
                  "type": "object",
                  "properties": {
                    "groupId": {
                      "type": "string"
                    },
                    "blockId": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "groupId"
                  ]
                }
              },
              "required": [
                "id",
                "from",
                "to"
              ]
            }
          },
          "variables": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "isSessionVariable": {
                  "type": "boolean"
                },
                "value": {
                  "nullable": true,
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "nullable": true
                      }
                    }
                  ]
                }
              },
              "required": [
                "id",
                "name"
              ]
            }
          },
          "settings": {
            "$ref": "#/components/schemas/settings"
          },
          "theme": {
            "$ref": "#/components/schemas/theme"
          },
          "workspaceId": {
            "type": "string"
          },
          "updatedAt": {
            "type": "string"
          }
        },
        "required": [
          "version",
          "id",
          "groups",
          "events",
          "edges",
          "variables",
          "settings",
          "theme",
          "workspaceId",
          "updatedAt"
        ],
        "title": "Agent V6"
      },
      "groupV6": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "graphCoordinates": {
            "type": "object",
            "properties": {
              "x": {
                "type": "number"
              },
              "y": {
                "type": "number"
              }
            },
            "required": [
              "x",
              "y"
            ]
          },
          "blocks": {
            "type": "array",
            "items": {
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "outgoingEdgeId": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "start"
                      ]
                    },
                    "label": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "type",
                    "label"
                  ]
                },
                {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/textBlock"
                    },
                    {
                      "$ref": "#/components/schemas/imageBlock"
                    },
                    {
                      "$ref": "#/components/schemas/videoBlock"
                    },
                    {
                      "$ref": "#/components/schemas/embedBlock"
                    },
                    {
                      "$ref": "#/components/schemas/audioBlock"
                    }
                  ],
                  "discriminator": {
                    "propertyName": "type",
                    "mapping": {
                      "text": "#/components/schemas/textBlock",
                      "image": "#/components/schemas/imageBlock",
                      "video": "#/components/schemas/videoBlock",
                      "embed": "#/components/schemas/embedBlock",
                      "audio": "#/components/schemas/audioBlock"
                    }
                  }
                },
                {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/textInput"
                    },
                    {
                      "$ref": "#/components/schemas/email"
                    },
                    {
                      "$ref": "#/components/schemas/address"
                    },
                    {
                      "$ref": "#/components/schemas/password"
                    },
                    {
                      "$ref": "#/components/schemas/autocomplete"
                    },
                    {
                      "$ref": "#/components/schemas/numberInput"
                    },
                    {
                      "$ref": "#/components/schemas/url"
                    },
                    {
                      "$ref": "#/components/schemas/phoneNumberInput"
                    },
                    {
                      "$ref": "#/components/schemas/dateInput"
                    },
                    {
                      "$ref": "#/components/schemas/paymentInput"
                    },
                    {
                      "$ref": "#/components/schemas/rating"
                    },
                    {
                      "$ref": "#/components/schemas/buttonsInput"
                    },
                    {
                      "$ref": "#/components/schemas/fileInput"
                    },
                    {
                      "$ref": "#/components/schemas/pictureChoice"
                    }
                  ],
                  "discriminator": {
                    "propertyName": "type",
                    "mapping": {
                      "text input": "#/components/schemas/textInput",
                      "email input": "#/components/schemas/email",
                      "address input": "#/components/schemas/address",
                      "password input": "#/components/schemas/password",
                      "autocomplete input": "#/components/schemas/autocomplete",
                      "number input": "#/components/schemas/numberInput",
                      "url input": "#/components/schemas/url",
                      "phone number input": "#/components/schemas/phoneNumberInput",
                      "date input": "#/components/schemas/dateInput",
                      "payment input": "#/components/schemas/paymentInput",
                      "rating input": "#/components/schemas/rating",
                      "choice input": "#/components/schemas/buttonsInput",
                      "file input": "#/components/schemas/fileInput",
                      "image choice": "#/components/schemas/pictureChoice"
                    }
                  }
                },
                {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/scriptLogic"
                    },
                    {
                      "$ref": "#/components/schemas/redirectLogic"
                    },
                    {
                      "$ref": "#/components/schemas/setVariableLogic"
                    },
                    {
                      "$ref": "#/components/schemas/AgentLinkLogic"
                    },
                    {
                      "$ref": "#/components/schemas/waitLogic"
                    },
                    {
                      "$ref": "#/components/schemas/jumpLogic"
                    },
                    {
                      "$ref": "#/components/schemas/conditionLogic"
                    },
                    {
                      "$ref": "#/components/schemas/abTestLogic"
                    },
                    {
                      "$ref": "#/components/schemas/webhookLogic"
                    }
                  ],
                  "discriminator": {
                    "propertyName": "type",
                    "mapping": {
                      "Code": "#/components/schemas/scriptLogic",
                      "Redirect": "#/components/schemas/redirectLogic",
                      "Set variable": "#/components/schemas/setVariableLogic",
                      "Agent link": "#/components/schemas/AgentLinkLogic",
                      "Wait": "#/components/schemas/waitLogic",
                      "Jump": "#/components/schemas/jumpLogic",
                      "Condition": "#/components/schemas/conditionLogic",
                      "AB test": "#/components/schemas/abTestLogic",
                      "webhook": "#/components/schemas/webhookLogic"
                    }
                  }
                },
                {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/chatwootBlock"
                    },
                    {
                      "$ref": "#/components/schemas/googleAnalyticsBlock"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "outgoingEdgeId": {
                          "type": "string"
                        },
                        "type": {
                          "type": "string",
                          "enum": [
                            "OpenAI"
                          ]
                        },
                        "options": {
                          "oneOf": [
                            {
                              "type": "object",
                              "properties": {
                                "credentialsId": {
                                  "type": "string"
                                },
                                "baseUrl": {
                                  "type": "string"
                                },
                                "apiVersion": {
                                  "type": "string"
                                }
                              }
                            },
                            {
                              "type": "object",
                              "properties": {
                                "task": {
                                  "type": "string",
                                  "enum": [
                                    "Create chat completion"
                                  ]
                                },
                                "model": {
                                  "type": "string"
                                },
                                "messages": {
                                  "type": "array",
                                  "items": {
                                    "anyOf": [
                                      {
                                        "type": "object",
                                        "properties": {
                                          "id": {
                                            "type": "string"
                                          },
                                          "role": {
                                            "type": "string",
                                            "enum": [
                                              "system",
                                              "user",
                                              "assistant"
                                            ]
                                          },
                                          "content": {
                                            "type": "string"
                                          },
                                          "name": {
                                            "type": "string"
                                          }
                                        },
                                        "required": [
                                          "id"
                                        ]
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "id": {
                                            "type": "string"
                                          },
                                          "role": {
                                            "type": "string",
                                            "enum": [
                                              "Messages sequence ✨"
                                            ]
                                          },
                                          "content": {
                                            "type": "object",
                                            "properties": {
                                              "assistantMessagesVariableId": {
                                                "type": "string"
                                              },
                                              "userMessagesVariableId": {
                                                "type": "string"
                                              }
                                            }
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "role"
                                        ]
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "id": {
                                            "type": "string"
                                          },
                                          "role": {
                                            "type": "string",
                                            "enum": [
                                              "Dialogue"
                                            ]
                                          },
                                          "dialogueVariableId": {
                                            "type": "string"
                                          },
                                          "startsBy": {
                                            "type": "string",
                                            "enum": [
                                              "user",
                                              "assistant"
                                            ]
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "role"
                                        ]
                                      }
                                    ]
                                  }
                                },
                                "advancedSettings": {
                                  "type": "object",
                                  "properties": {
                                    "temperature": {
                                      "anyOf": [
                                        {
                                          "type": "number"
                                        },
                                        {}
                                      ]
                                    }
                                  }
                                },
                                "responseMapping": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "id": {
                                        "type": "string"
                                      },
                                      "valueToExtract": {
                                        "type": "string",
                                        "enum": [
                                          "Message content",
                                          "Total tokens"
                                        ]
                                      },
                                      "variableId": {
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "id",
                                      "valueToExtract"
                                    ]
                                  }
                                },
                                "credentialsId": {
                                  "type": "string"
                                },
                                "baseUrl": {
                                  "type": "string"
                                },
                                "apiVersion": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "task"
                              ]
                            },
                            {
                              "type": "object",
                              "properties": {
                                "task": {
                                  "type": "string",
                                  "enum": [
                                    "Create image"
                                  ]
                                },
                                "prompt": {
                                  "type": "string"
                                },
                                "advancedOptions": {
                                  "type": "object",
                                  "properties": {
                                    "size": {
                                      "type": "string",
                                      "enum": [
                                        "256x256",
                                        "512x512",
                                        "1024x1024"
                                      ]
                                    }
                                  }
                                },
                                "responseMapping": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "id": {
                                        "type": "string"
                                      },
                                      "valueToExtract": {
                                        "type": "string",
                                        "enum": [
                                          "Image URL"
                                        ]
                                      },
                                      "variableId": {
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "id",
                                      "valueToExtract"
                                    ]
                                  }
                                },
                                "credentialsId": {
                                  "type": "string"
                                },
                                "baseUrl": {
                                  "type": "string"
                                },
                                "apiVersion": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "task",
                                "advancedOptions",
                                "responseMapping"
                              ]
                            },
                            {
                              "type": "object",
                              "properties": {
                                "credentialsId": {
                                  "type": "string"
                                },
                                "baseUrl": {
                                  "type": "string"
                                },
                                "apiVersion": {
                                  "type": "string"
                                },
                                "task": {
                                  "type": "string",
                                  "enum": [
                                    "Create speech"
                                  ]
                                },
                                "model": {
                                  "type": "string"
                                },
                                "input": {
                                  "type": "string"
                                },
                                "voice": {
                                  "type": "string",
                                  "enum": [
                                    "alloy",
                                    "echo",
                                    "fable",
                                    "onyx",
                                    "nova",
                                    "shimmer"
                                  ]
                                },
                                "saveUrlInVariableId": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "task"
                              ]
                            }
                          ]
                        }
                      },
                      "required": [
                        "id",
                        "type"
                      ]
                    },
                    {
                      "$ref": "#/components/schemas/sendEmailBlock"
                    },
                    {
                      "$ref": "#/components/schemas/pixelBlock"
                    },
                    {
                      "$ref": "#/components/schemas/googleSheetsBlock"
                    },
                    {
                      "$ref": "#/components/schemas/makeComBlock"
                    },
                    {
                      "$ref": "#/components/schemas/pabblyConnectBlock"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "outgoingEdgeId": {
                          "type": "string"
                        },
                        "type": {
                          "type": "string",
                          "enum": [
                            "Webhook"
                          ],
                          "description": "Legacy name for HTTP Request block"
                        },
                        "options": {
                          "type": "object",
                          "properties": {
                            "variablesForTest": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string"
                                  },
                                  "variableId": {
                                    "type": "string"
                                  },
                                  "value": {
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "id"
                                ]
                              }
                            },
                            "responseVariableMapping": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string"
                                  },
                                  "variableId": {
                                    "type": "string"
                                  },
                                  "bodyPath": {
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "id"
                                ]
                              }
                            },
                            "isAdvancedConfig": {
                              "type": "boolean"
                            },
                            "isCustomBody": {
                              "type": "boolean"
                            },
                            "isExecutedOnClient": {
                              "type": "boolean"
                            },
                            "webhook": {
                              "$ref": "#/components/schemas/httpRequestBlock"
                            },
                            "timeout": {
                              "type": "number",
                              "minimum": 1,
                              "maximum": 120
                            }
                          }
                        }
                      },
                      "required": [
                        "id",
                        "type"
                      ]
                    },
                    {
                      "$ref": "#/components/schemas/zapierBlock"
                    }
                  ]
                },
                {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/openaiBlock"
                    },
                    {
                      "$ref": "#/components/schemas/cal-comBlock"
                    },
                    {
                      "$ref": "#/components/schemas/chat-nodeBlock"
                    },
                    {
                      "$ref": "#/components/schemas/qr-codeBlock"
                    },
                    {
                      "$ref": "#/components/schemas/dify-aiBlock"
                    },
                    {
                      "$ref": "#/components/schemas/mistralBlock"
                    },
                    {
                      "$ref": "#/components/schemas/elevenlabsBlock"
                    },
                    {
                      "$ref": "#/components/schemas/anthropicBlock"
                    },
                    {
                      "$ref": "#/components/schemas/together-aiBlock"
                    },
                    {
                      "$ref": "#/components/schemas/open-routerBlock"
                    },
                    {
                      "$ref": "#/components/schemas/nocodbBlock"
                    },
                    {
                      "$ref": "#/components/schemas/segmentBlock"
                    },
                    {
                      "$ref": "#/components/schemas/groqBlock"
                    },
                    {
                      "$ref": "#/components/schemas/zendeskBlock"
                    },
                    {
                      "$ref": "#/components/schemas/user-infoBlock"
                    },
                    {
                      "$ref": "#/components/schemas/supabaseBlock"
                    },
                    {
                      "$ref": "#/components/schemas/discordBlock"
                    },
                    {
                      "$ref": "#/components/schemas/deepseekBlock"
                    },
                    {
                      "$ref": "#/components/schemas/perplexityBlock"
                    },
                    {
                      "$ref": "#/components/schemas/smartsheetBlock"
                    }
                  ],
                  "discriminator": {
                    "propertyName": "type",
                    "mapping": {
                      "openai": "#/components/schemas/openaiBlock",
                      "cal-com": "#/components/schemas/cal-comBlock",
                      "chat-node": "#/components/schemas/chat-nodeBlock",
                      "qr-code": "#/components/schemas/qr-codeBlock",
                      "dify-ai": "#/components/schemas/dify-aiBlock",
                      "mistral": "#/components/schemas/mistralBlock",
                      "elevenlabs": "#/components/schemas/elevenlabsBlock",
                      "anthropic": "#/components/schemas/anthropicBlock",
                      "together-ai": "#/components/schemas/together-aiBlock",
                      "open-router": "#/components/schemas/open-routerBlock",
                      "nocodb": "#/components/schemas/nocodbBlock",
                      "segment": "#/components/schemas/segmentBlock",
                      "groq": "#/components/schemas/groqBlock",
                      "zendesk": "#/components/schemas/zendeskBlock",
                      "user-info": "#/components/schemas/user-infoBlock",
                      "supabase": "#/components/schemas/supabaseBlock",
                      "discord": "#/components/schemas/discordBlock",
                      "deepseek": "#/components/schemas/deepseekBlock",
                      "perplexity": "#/components/schemas/perplexityBlock",
                      "smartsheet": "#/components/schemas/smartsheetBlock"
                    }
                  }
                },
                {
                  "$ref": "#/components/schemas/smartsheetBlock"
                }
              ]
            }
          }
        },
        "required": [
          "id",
          "title",
          "graphCoordinates",
          "blocks"
        ],
        "title": "Group V6"
      },
      "textBlock": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "outgoingEdgeId": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "text"
            ]
          },
          "content": {
            "type": "object",
            "properties": {
              "html": {
                "type": "string"
              },
              "richText": {
                "type": "array",
                "items": {}
              },
              "plainText": {
                "type": "string"
              }
            }
          }
        },
        "required": [
          "id",
          "type"
        ],
        "title": "Text"
      },
      "imageBlock": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "outgoingEdgeId": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "image"
            ]
          },
          "content": {
            "type": "object",
            "properties": {
              "url": {
                "type": "string"
              },
              "clickLink": {
                "type": "object",
                "properties": {
                  "url": {
                    "type": "string"
                  },
                  "alt": {
                    "type": "string"
                  }
                }
              }
            }
          }
        },
        "required": [
          "id",
          "type"
        ],
        "title": "Image"
      },
      "videoBlock": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "outgoingEdgeId": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "video"
            ]
          },
          "content": {
            "type": "object",
            "properties": {
              "url": {
                "type": "string"
              },
              "id": {
                "type": "string"
              },
              "type": {
                "type": "string",
                "enum": [
                  "url",
                  "youtube",
                  "vimeo",
                  "tiktok",
                  "gumlet"
                ]
              },
              "height": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {}
                ]
              },
              "aspectRatio": {
                "type": "string"
              },
              "maxWidth": {
                "type": "string"
              },
              "queryParamsStr": {
                "type": "string"
              },
              "areControlsDisplayed": {
                "type": "boolean"
              },
              "isAutoplayEnabled": {
                "type": "boolean"
              }
            }
          }
        },
        "required": [
          "id",
          "type"
        ],
        "title": "Video"
      },
      "embedBlock": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "outgoingEdgeId": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "embed"
            ]
          },
          "content": {
            "type": "object",
            "properties": {
              "url": {
                "type": "string"
              },
              "height": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {}
                ]
              },
              "waitForEvent": {
                "type": "object",
                "properties": {
                  "isEnabled": {
                    "type": "boolean"
                  },
                  "name": {
                    "type": "string"
                  },
                  "saveDataInVariableId": {
                    "type": "string"
                  }
                }
              }
            }
          }
        },
        "required": [
          "id",
          "type"
        ],
        "title": "Embed"
      },
      "audioBlock": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "outgoingEdgeId": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "audio"
            ]
          },
          "content": {
            "type": "object",
            "properties": {
              "url": {
                "type": "string"
              },
              "isAutoplayEnabled": {
                "type": "boolean"
              }
            }
          }
        },
        "required": [
          "id",
          "type"
        ],
        "title": "Audio"
      },
      "textInput": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "outgoingEdgeId": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "text input"
            ]
          },
          "options": {
            "type": "object",
            "properties": {
              "labels": {
                "type": "object",
                "properties": {
                  "placeholder": {
                    "type": "string"
                  },
                  "button": {
                    "type": "string"
                  }
                }
              },
              "variableId": {
                "type": "string"
              },
              "isLong": {
                "type": "boolean"
              },
              "isPassword": {
                "type": "boolean"
              },
              "isRequired": {
                "type": "boolean"
              },
              "audioClip": {
                "type": "object",
                "properties": {
                  "isEnabled": {
                    "type": "boolean"
                  },
                  "saveVariableId": {
                    "type": "string"
                  },
                  "visibility": {
                    "type": "string",
                    "enum": [
                      "Auto",
                      "Public",
                      "Private"
                    ]
                  }
                }
              },
              "attachments": {
                "type": "object",
                "properties": {
                  "isEnabled": {
                    "type": "boolean"
                  },
                  "saveVariableId": {
                    "type": "string"
                  },
                  "visibility": {
                    "type": "string",
                    "enum": [
                      "Auto",
                      "Public",
                      "Private"
                    ]
                  }
                }
              }
            }
          }
        },
        "required": [
          "id",
          "type"
        ],
        "title": "Text"
      },
      "email": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "outgoingEdgeId": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "email input"
            ]
          },
          "options": {
            "type": "object",
            "properties": {
              "variableId": {
                "type": "string"
              },
              "labels": {
                "type": "object",
                "properties": {
                  "placeholder": {
                    "type": "string"
                  },
                  "button": {
                    "type": "string"
                  }
                }
              },
              "retryMessageContent": {
                "type": "string"
              },
              "isRequired": {
                "type": "boolean"
              }
            }
          }
        },
        "required": [
          "id",
          "type"
        ],
        "title": "Email"
      },
      "address": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "outgoingEdgeId": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "address input"
            ]
          },
          "options": {
            "type": "object",
            "properties": {
              "variableId": {
                "type": "string"
              },
              "labels": {
                "type": "object",
                "properties": {
                  "placeholder": {
                    "type": "string"
                  },
                  "button": {
                    "type": "string"
                  }
                }
              },
              "isRequired": {
                "type": "boolean"
              },
              "restrictToList": {
                "type": "boolean"
              },
              "includePostalCode": {
                "type": "boolean"
              },
              "credentialsId": {
                "type": "string"
              },
              "language": {
                "type": "string"
              }
            }
          }
        },
        "required": [
          "id",
          "type"
        ],
        "title": "Address"
      },
      "password": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "outgoingEdgeId": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "password input"
            ]
          },
          "options": {
            "type": "object",
            "properties": {
              "variableId": {
                "type": "string"
              },
              "labels": {
                "type": "object",
                "properties": {
                  "placeholder": {
                    "type": "string"
                  },
                  "button": {
                    "type": "string"
                  }
                }
              },
              "isRequired": {
                "type": "boolean"
              },
              "passwords": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "retryMessageContent": {
                "type": "string"
              }
            }
          }
        },
        "required": [
          "id",
          "type"
        ],
        "title": "Password"
      },
      "autocomplete": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "outgoingEdgeId": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "autocomplete input"
            ]
          },
          "options": {
            "type": "object",
            "properties": {
              "variableId": {
                "type": "string"
              },
              "labels": {
                "type": "object",
                "properties": {
                  "placeholder": {
                    "type": "string"
                  },
                  "button": {
                    "type": "string"
                  }
                }
              },
              "isRequired": {
                "type": "boolean"
              },
              "items": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "key": {
                      "type": "string"
                    },
                    "value": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "key",
                    "value"
                  ]
                }
              },
              "maxSuggestions": {
                "type": "number",
                "minimum": 1,
                "maximum": 20
              },
              "enableFuzzySearch": {
                "type": "boolean"
              },
              "minSearchLength": {
                "type": "number",
                "minimum": 1,
                "maximum": 10
              },
              "keyVariableId": {
                "type": "string"
              },
              "restrictToList": {
                "type": "boolean"
              }
            }
          }
        },
        "required": [
          "id",
          "type"
        ],
        "title": "Autocomplete"
      },
      "numberInput": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "outgoingEdgeId": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "number input"
            ]
          },
          "options": {
            "type": "object",
            "properties": {
              "variableId": {
                "type": "string"
              },
              "labels": {
                "type": "object",
                "properties": {
                  "placeholder": {
                    "type": "string"
                  },
                  "button": {
                    "type": "string"
                  }
                }
              },
              "min": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {}
                ]
              },
              "max": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {}
                ]
              },
              "step": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {}
                ]
              },
              "isRequired": {
                "type": "boolean"
              }
            }
          }
        },
        "required": [
          "id",
          "type"
        ],
        "title": "Number"
      },
      "url": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "outgoingEdgeId": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "url input"
            ]
          },
          "options": {
            "type": "object",
            "properties": {
              "variableId": {
                "type": "string"
              },
              "labels": {
                "type": "object",
                "properties": {
                  "placeholder": {
                    "type": "string"
                  },
                  "button": {
                    "type": "string"
                  }
                }
              },
              "retryMessageContent": {
                "type": "string"
              },
              "isRequired": {
                "type": "boolean"
              }
            }
          }
        },
        "required": [
          "id",
          "type"
        ],
        "title": "URL"
      },
      "phoneNumberInput": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "outgoingEdgeId": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "phone number input"
            ]
          },
          "options": {
            "type": "object",
            "properties": {
              "variableId": {
                "type": "string"
              },
              "labels": {
                "type": "object",
                "properties": {
                  "placeholder": {
                    "type": "string"
                  },
                  "button": {
                    "type": "string"
                  }
                }
              },
              "retryMessageContent": {
                "type": "string"
              },
              "defaultCountryCode": {
                "type": "string"
              },
              "isRequired": {
                "type": "boolean"
              }
            }
          }
        },
        "required": [
          "id",
          "type"
        ],
        "title": "Phone number"
      },
      "dateInput": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "outgoingEdgeId": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "date input"
            ]
          },
          "options": {
            "type": "object",
            "properties": {
              "variableId": {
                "type": "string"
              },
              "labels": {
                "type": "object",
                "properties": {
                  "button": {
                    "type": "string"
                  },
                  "from": {
                    "type": "string"
                  },
                  "to": {
                    "type": "string"
                  }
                }
              },
              "hasTime": {
                "type": "boolean"
              },
              "isRange": {
                "type": "boolean"
              },
              "format": {
                "type": "string"
              },
              "min": {
                "type": "string"
              },
              "max": {
                "type": "string"
              }
            }
          }
        },
        "required": [
          "id",
          "type"
        ],
        "title": "Date"
      },
      "paymentInput": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "outgoingEdgeId": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "payment input"
            ]
          },
          "options": {
            "type": "object",
            "properties": {
              "variableId": {
                "type": "string"
              },
              "provider": {
                "type": "string",
                "enum": [
                  "Stripe"
                ]
              },
              "labels": {
                "type": "object",
                "properties": {
                  "button": {
                    "type": "string"
                  },
                  "success": {
                    "type": "string"
                  }
                }
              },
              "additionalInformation": {
                "type": "object",
                "properties": {
                  "description": {
                    "type": "string"
                  },
                  "name": {
                    "type": "string"
                  },
                  "email": {
                    "type": "string"
                  },
                  "phoneNumber": {
                    "type": "string"
                  },
                  "address": {
                    "type": "object",
                    "properties": {
                      "country": {
                        "type": "string"
                      },
                      "line1": {
                        "type": "string"
                      },
                      "line2": {
                        "type": "string"
                      },
                      "state": {
                        "type": "string"
                      },
                      "city": {
                        "type": "string"
                      },
                      "postalCode": {
                        "type": "string"
                      }
                    }
                  }
                }
              },
              "credentialsId": {
                "type": "string"
              },
              "currency": {
                "type": "string"
              },
              "amount": {
                "type": "string"
              },
              "retryMessageContent": {
                "type": "string"
              }
            }
          }
        },
        "required": [
          "id",
          "type"
        ],
        "title": "Payment"
      },
      "rating": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "outgoingEdgeId": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "rating input"
            ]
          },
          "options": {
            "type": "object",
            "properties": {
              "variableId": {
                "type": "string"
              },
              "buttonType": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "Icons"
                    ]
                  },
                  {
                    "type": "string",
                    "enum": [
                      "Numbers"
                    ]
                  }
                ]
              },
              "length": {
                "type": "number"
              },
              "startsAt": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {}
                ]
              },
              "labels": {
                "type": "object",
                "properties": {
                  "left": {
                    "type": "string"
                  },
                  "right": {
                    "type": "string"
                  },
                  "button": {
                    "type": "string"
                  }
                }
              },
              "customIcon": {
                "type": "object",
                "properties": {
                  "isEnabled": {
                    "type": "boolean"
                  },
                  "svg": {
                    "type": "string"
                  }
                }
              },
              "isOneClickSubmitEnabled": {
                "type": "boolean"
              }
            }
          }
        },
        "required": [
          "id",
          "type"
        ],
        "title": "Rating"
      },
      "buttonsInput": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "outgoingEdgeId": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "choice input"
            ]
          },
          "items": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "outgoingEdgeId": {
                  "type": "string"
                },
                "content": {
                  "type": "string"
                },
                "displayCondition": {
                  "type": "object",
                  "properties": {
                    "isEnabled": {
                      "type": "boolean"
                    },
                    "condition": {
                      "type": "object",
                      "properties": {
                        "logicalOperator": {
                          "type": "string",
                          "enum": [
                            "OR",
                            "AND"
                          ]
                        },
                        "comparisons": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string"
                              },
                              "variableId": {
                                "type": "string"
                              },
                              "comparisonOperator": {
                                "type": "string",
                                "enum": [
                                  "Equal to",
                                  "Not equal",
                                  "Contains",
                                  "Does not contain",
                                  "Greater than",
                                  "Greater or equal to",
                                  "Less than",
                                  "Less or equal to",
                                  "Is set",
                                  "Is empty",
                                  "Starts with",
                                  "Ends with",
                                  "Matches regex",
                                  "Does not match regex"
                                ]
                              },
                              "value": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "id"
                            ]
                          }
                        }
                      }
                    }
                  }
                }
              },
              "required": [
                "id"
              ]
            }
          },
          "options": {
            "type": "object",
            "properties": {
              "variableId": {
                "type": "string"
              },
              "isMultipleChoice": {
                "type": "boolean"
              },
              "buttonLabel": {
                "type": "string"
              },
              "dynamicVariableId": {
                "type": "string"
              },
              "isSearchable": {
                "type": "boolean"
              },
              "searchInputPlaceholder": {
                "type": "string"
              },
              "areInitialSearchButtonsVisible": {
                "type": "boolean"
              }
            }
          }
        },
        "required": [
          "id",
          "type",
          "items"
        ],
        "title": "Buttons"
      },
      "fileInput": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "outgoingEdgeId": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "file input"
            ]
          },
          "options": {
            "type": "object",
            "properties": {
              "variableId": {
                "type": "string"
              },
              "isRequired": {
                "type": "boolean"
              },
              "isMultipleAllowed": {
                "type": "boolean"
              },
              "labels": {
                "type": "object",
                "properties": {
                  "placeholder": {
                    "type": "string"
                  },
                  "button": {
                    "type": "string"
                  },
                  "clear": {
                    "type": "string"
                  },
                  "skip": {
                    "type": "string"
                  },
                  "success": {
                    "type": "object",
                    "properties": {
                      "single": {
                        "type": "string"
                      },
                      "multiple": {
                        "type": "string"
                      }
                    }
                  }
                }
              },
              "visibility": {
                "type": "string",
                "enum": [
                  "Auto",
                  "Public",
                  "Private"
                ]
              }
            }
          }
        },
        "required": [
          "id",
          "type"
        ],
        "title": "File"
      },
      "pictureChoice": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "outgoingEdgeId": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "image choice"
            ]
          },
          "items": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "outgoingEdgeId": {
                  "type": "string"
                },
                "pictureSrc": {
                  "type": "string"
                },
                "title": {
                  "type": "string"
                },
                "description": {
                  "type": "string"
                },
                "displayCondition": {
                  "type": "object",
                  "properties": {
                    "isEnabled": {
                      "type": "boolean"
                    },
                    "condition": {
                      "type": "object",
                      "properties": {
                        "logicalOperator": {
                          "type": "string",
                          "enum": [
                            "OR",
                            "AND"
                          ]
                        },
                        "comparisons": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string"
                              },
                              "variableId": {
                                "type": "string"
                              },
                              "comparisonOperator": {
                                "type": "string",
                                "enum": [
                                  "Equal to",
                                  "Not equal",
                                  "Contains",
                                  "Does not contain",
                                  "Greater than",
                                  "Greater or equal to",
                                  "Less than",
                                  "Less or equal to",
                                  "Is set",
                                  "Is empty",
                                  "Starts with",
                                  "Ends with",
                                  "Matches regex",
                                  "Does not match regex"
                                ]
                              },
                              "value": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "id"
                            ]
                          }
                        }
                      }
                    }
                  }
                }
              },
              "required": [
                "id"
              ]
            }
          },
          "options": {
            "type": "object",
            "properties": {
              "variableId": {
                "type": "string"
              },
              "isMultipleChoice": {
                "type": "boolean"
              },
              "showTitle": {
                "type": "boolean"
              },
              "isSearchable": {
                "type": "boolean"
              },
              "buttonLabel": {
                "type": "string"
              },
              "searchInputPlaceholder": {
                "type": "string"
              },
              "dynamicItems": {
                "type": "object",
                "properties": {
                  "isEnabled": {
                    "type": "boolean"
                  },
                  "titlesVariableId": {
                    "type": "string"
                  },
                  "descriptionsVariableId": {
                    "type": "string"
                  },
                  "pictureSrcsVariableId": {
                    "type": "string"
                  }
                }
              }
            }
          }
        },
        "required": [
          "id",
          "type",
          "items"
        ],
        "title": "Picture choice"
      },
      "scriptLogic": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "outgoingEdgeId": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "Code"
            ]
          },
          "options": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string"
              },
              "content": {
                "type": "string"
              },
              "isExecutedOnClient": {
                "type": "boolean"
              },
              "shouldExecuteInParentContext": {
                "type": "boolean"
              }
            }
          }
        },
        "required": [
          "id",
          "type"
        ],
        "title": "Script"
      },
      "redirectLogic": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "outgoingEdgeId": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "Redirect"
            ]
          },
          "options": {
            "type": "object",
            "properties": {
              "url": {
                "type": "string"
              },
              "isNewTab": {
                "type": "boolean"
              }
            }
          }
        },
        "required": [
          "id",
          "type"
        ],
        "title": "Redirect"
      },
      "setVariableLogic": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "outgoingEdgeId": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "Set variable"
            ]
          },
          "options": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "variableId": {
                    "type": "string"
                  },
                  "isExecutedOnClient": {
                    "type": "boolean"
                  },
                  "expressionToEvaluate": {
                    "type": "string"
                  },
                  "isCode": {
                    "type": "boolean"
                  }
                }
              },
              {
                "type": "object",
                "properties": {
                  "variableId": {
                    "type": "string"
                  },
                  "isExecutedOnClient": {
                    "type": "boolean"
                  },
                  "type": {
                    "type": "string",
                    "enum": [
                      "Now",
                      "Yesterday",
                      "Tomorrow"
                    ]
                  },
                  "timeZone": {
                    "type": "string"
                  }
                },
                "required": [
                  "type"
                ]
              },
              {
                "type": "object",
                "properties": {
                  "variableId": {
                    "type": "string"
                  },
                  "isExecutedOnClient": {
                    "type": "boolean"
                  },
                  "type": {
                    "type": "string",
                    "enum": [
                      "Today",
                      "Moment of the day",
                      "Empty",
                      "Environment name",
                      "User ID",
                      "Result ID",
                      "Random ID",
                      "Phone number",
                      "Contact name",
                      "Transcript"
                    ]
                  }
                },
                "required": [
                  "type"
                ]
              },
              {
                "type": "object",
                "properties": {
                  "variableId": {
                    "type": "string"
                  },
                  "isExecutedOnClient": {
                    "type": "boolean"
                  },
                  "type": {
                    "type": "string",
                    "enum": [
                      "Custom"
                    ]
                  },
                  "expressionToEvaluate": {
                    "type": "string"
                  },
                  "isCode": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "type"
                ]
              },
              {
                "type": "object",
                "properties": {
                  "variableId": {
                    "type": "string"
                  },
                  "isExecutedOnClient": {
                    "type": "boolean"
                  },
                  "type": {
                    "type": "string",
                    "enum": [
                      "Map item with same index"
                    ]
                  },
                  "mapListItemParams": {
                    "type": "object",
                    "properties": {
                      "baseItemVariableId": {
                        "type": "string"
                      },
                      "baseListVariableId": {
                        "type": "string"
                      },
                      "targetListVariableId": {
                        "type": "string"
                      }
                    }
                  }
                },
                "required": [
                  "type"
                ]
              },
              {
                "type": "object",
                "properties": {
                  "variableId": {
                    "type": "string"
                  },
                  "isExecutedOnClient": {
                    "type": "boolean"
                  },
                  "type": {
                    "type": "string",
                    "enum": [
                      "Append value(s)"
                    ]
                  },
                  "item": {
                    "type": "string"
                  }
                },
                "required": [
                  "type"
                ]
              },
              {
                "type": "object",
                "properties": {
                  "variableId": {
                    "type": "string"
                  },
                  "isExecutedOnClient": {
                    "type": "boolean"
                  },
                  "type": {
                    "type": "string",
                    "enum": [
                      "Pop",
                      "Shift"
                    ]
                  },
                  "saveItemInVariableId": {
                    "type": "string"
                  }
                },
                "required": [
                  "type"
                ]
              }
            ]
          }
        },
        "required": [
          "id",
          "type"
        ],
        "title": "Set variable"
      },
      "AgentLinkLogic": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "outgoingEdgeId": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "Agent link"
            ]
          },
          "options": {
            "type": "object",
            "properties": {
              "agentId": {
                "type": "string"
              },
              "groupId": {
                "type": "string"
              },
              "mergeResults": {
                "type": "boolean"
              }
            }
          }
        },
        "required": [
          "id",
          "type"
        ],
        "title": "Agent link"
      },
      "waitLogic": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "outgoingEdgeId": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "Wait"
            ]
          },
          "options": {
            "type": "object",
            "properties": {
              "secondsToWaitFor": {
                "type": "string"
              },
              "shouldPause": {
                "type": "boolean"
              }
            }
          }
        },
        "required": [
          "id",
          "type"
        ],
        "title": "Wait"
      },
      "jumpLogic": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "outgoingEdgeId": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "Jump"
            ]
          },
          "options": {
            "type": "object",
            "properties": {
              "groupId": {
                "type": "string"
              },
              "blockId": {
                "type": "string"
              }
            }
          }
        },
        "required": [
          "id",
          "type"
        ],
        "title": "Jump"
      },
      "conditionLogic": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "outgoingEdgeId": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "Condition"
            ]
          },
          "items": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "outgoingEdgeId": {
                  "type": "string"
                },
                "content": {
                  "type": "object",
                  "properties": {
                    "logicalOperator": {
                      "type": "string",
                      "enum": [
                        "OR",
                        "AND"
                      ]
                    },
                    "comparisons": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "variableId": {
                            "type": "string"
                          },
                          "comparisonOperator": {
                            "type": "string",
                            "enum": [
                              "Equal to",
                              "Not equal",
                              "Contains",
                              "Does not contain",
                              "Greater than",
                              "Greater or equal to",
                              "Less than",
                              "Less or equal to",
                              "Is set",
                              "Is empty",
                              "Starts with",
                              "Ends with",
                              "Matches regex",
                              "Does not match regex"
                            ]
                          },
                          "value": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "id"
                        ]
                      }
                    }
                  }
                }
              },
              "required": [
                "id"
              ]
            }
          }
        },
        "required": [
          "id",
          "type",
          "items"
        ],
        "title": "Condition"
      },
      "abTestLogic": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "outgoingEdgeId": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "AB test"
            ]
          },
          "items": {
            "type": "array",
            "maxItems": 2,
            "minItems": 2,
            "items": {
              "oneOf": [
                {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "outgoingEdgeId": {
                      "type": "string"
                    },
                    "path": {
                      "type": "string",
                      "enum": [
                        "a"
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "path"
                  ]
                },
                {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "outgoingEdgeId": {
                      "type": "string"
                    },
                    "path": {
                      "type": "string",
                      "enum": [
                        "b"
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "path"
                  ]
                }
              ]
            }
          },
          "options": {
            "type": "object",
            "properties": {
              "aPercent": {
                "type": "number",
                "minimum": 0,
                "maximum": 100
              }
            }
          }
        },
        "required": [
          "id",
          "type",
          "items"
        ],
        "title": "AB Test"
      },
      "webhookLogic": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "outgoingEdgeId": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "webhook"
            ]
          },
          "options": {
            "type": "object",
            "properties": {
              "responseVariableMapping": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "variableId": {
                      "type": "string"
                    },
                    "bodyPath": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id"
                  ]
                }
              }
            }
          }
        },
        "required": [
          "id",
          "type"
        ],
        "title": "Webhook"
      },
      "chatwootBlock": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "outgoingEdgeId": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "Chatwoot"
            ]
          },
          "options": {
            "type": "object",
            "properties": {
              "task": {
                "type": "string",
                "enum": [
                  "Show widget",
                  "Close widget"
                ]
              },
              "baseUrl": {
                "type": "string"
              },
              "websiteToken": {
                "type": "string"
              },
              "user": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string"
                  },
                  "email": {
                    "type": "string"
                  },
                  "name": {
                    "type": "string"
                  },
                  "avatarUrl": {
                    "type": "string"
                  },
                  "phoneNumber": {
                    "type": "string"
                  }
                }
              }
            }
          }
        },
        "required": [
          "id",
          "type"
        ],
        "title": "Chatwoot"
      },
      "googleAnalyticsBlock": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "outgoingEdgeId": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "Google Analytics"
            ]
          },
          "options": {
            "type": "object",
            "properties": {
              "trackingId": {
                "type": "string"
              },
              "category": {
                "type": "string"
              },
              "action": {
                "type": "string"
              },
              "label": {
                "type": "string"
              },
              "value": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {}
                ]
              },
              "sendTo": {
                "type": "string"
              }
            }
          }
        },
        "required": [
          "id",
          "type"
        ],
        "title": "Google Analytics"
      },
      "sendEmailBlock": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "outgoingEdgeId": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "Email"
            ]
          },
          "options": {
            "type": "object",
            "properties": {
              "credentialsId": {
                "type": "string"
              },
              "isCustomBody": {
                "type": "boolean"
              },
              "isBodyCode": {
                "type": "boolean"
              },
              "recipients": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "subject": {
                "type": "string"
              },
              "body": {
                "type": "string"
              },
              "replyTo": {
                "type": "string"
              },
              "cc": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "bcc": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "attachmentsVariableId": {
                "type": "string"
              }
            }
          }
        },
        "required": [
          "id",
          "type"
        ],
        "title": "Send email"
      },
      "pixelBlock": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "outgoingEdgeId": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "Pixel"
            ]
          },
          "options": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "pixelId": {
                    "type": "string"
                  },
                  "isInitSkip": {
                    "type": "boolean"
                  },
                  "params": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "key": {
                          "type": "string"
                        },
                        "value": {}
                      },
                      "required": [
                        "id"
                      ]
                    }
                  }
                }
              },
              {
                "type": "object",
                "properties": {
                  "pixelId": {
                    "type": "string"
                  },
                  "isInitSkip": {
                    "type": "boolean"
                  },
                  "params": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "key": {
                          "type": "string"
                        },
                        "value": {}
                      },
                      "required": [
                        "id"
                      ]
                    }
                  },
                  "eventType": {
                    "type": "string",
                    "enum": [
                      "Lead",
                      "Contact",
                      "CompleteRegistration",
                      "Schedule",
                      "SubmitApplication",
                      "ViewContent",
                      "AddPaymentInfo",
                      "AddToCart",
                      "AddToWishlist",
                      "CustomizeProduct",
                      "Donate",
                      "FindLocation",
                      "InitiateCheckout",
                      "Purchase",
                      "Search",
                      "StartTrial",
                      "Subscribe"
                    ]
                  }
                },
                "required": [
                  "eventType"
                ]
              },
              {
                "type": "object",
                "properties": {
                  "pixelId": {
                    "type": "string"
                  },
                  "isInitSkip": {
                    "type": "boolean"
                  },
                  "params": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "key": {
                          "type": "string"
                        },
                        "value": {}
                      },
                      "required": [
                        "id"
                      ]
                    }
                  },
                  "eventType": {
                    "type": "string",
                    "enum": [
                      "Custom"
                    ]
                  },
                  "name": {
                    "type": "string"
                  }
                },
                "required": [
                  "eventType"
                ]
              }
            ]
          }
        },
        "required": [
          "id",
          "type"
        ],
        "title": "Pixel"
      },
      "googleSheetsBlock": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "outgoingEdgeId": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "Google Sheets"
            ]
          },
          "options": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "credentialsId": {
                    "type": "string"
                  },
                  "sheetId": {
                    "type": "string"
                  },
                  "spreadsheetId": {
                    "type": "string"
                  },
                  "action": {
                    "type": "string",
                    "enum": [
                      "Get data from sheet"
                    ]
                  },
                  "filter": {
                    "type": "object",
                    "properties": {
                      "comparisons": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string"
                            },
                            "column": {
                              "type": "string"
                            },
                            "comparisonOperator": {
                              "type": "string",
                              "enum": [
                                "Equal to",
                                "Not equal",
                                "Contains",
                                "Does not contain",
                                "Greater than",
                                "Greater or equal to",
                                "Less than",
                                "Less or equal to",
                                "Is set",
                                "Is empty",
                                "Starts with",
                                "Ends with",
                                "Matches regex",
                                "Does not match regex"
                              ]
                            },
                            "value": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "id"
                          ]
                        }
                      },
                      "logicalOperator": {
                        "type": "string",
                        "enum": [
                          "OR",
                          "AND"
                        ]
                      }
                    }
                  },
                  "cellsToExtract": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "column": {
                          "type": "string"
                        },
                        "id": {
                          "type": "string"
                        },
                        "variableId": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "id"
                      ]
                    }
                  },
                  "totalRowsToExtract": {
                    "type": "string",
                    "enum": [
                      "All",
                      "First",
                      "Last",
                      "Random"
                    ]
                  }
                },
                "required": [
                  "action"
                ]
              },
              {
                "type": "object",
                "properties": {
                  "credentialsId": {
                    "type": "string"
                  },
                  "sheetId": {
                    "type": "string"
                  },
                  "spreadsheetId": {
                    "type": "string"
                  },
                  "action": {
                    "type": "string",
                    "enum": [
                      "Insert a row"
                    ]
                  },
                  "cellsToInsert": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "column": {
                          "type": "string"
                        },
                        "value": {
                          "type": "string"
                        },
                        "id": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "id"
                      ]
                    }
                  }
                },
                "required": [
                  "action"
                ]
              },
              {
                "type": "object",
                "properties": {
                  "credentialsId": {
                    "type": "string"
                  },
                  "sheetId": {
                    "type": "string"
                  },
                  "spreadsheetId": {
                    "type": "string"
                  },
                  "action": {
                    "type": "string",
                    "enum": [
                      "Update a row"
                    ]
                  },
                  "cellsToUpsert": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "column": {
                          "type": "string"
                        },
                        "value": {
                          "type": "string"
                        },
                        "id": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "id"
                      ]
                    }
                  },
                  "filter": {
                    "type": "object",
                    "properties": {
                      "comparisons": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string"
                            },
                            "column": {
                              "type": "string"
                            },
                            "comparisonOperator": {
                              "type": "string",
                              "enum": [
                                "Equal to",
                                "Not equal",
                                "Contains",
                                "Does not contain",
                                "Greater than",
                                "Greater or equal to",
                                "Less than",
                                "Less or equal to",
                                "Is set",
                                "Is empty",
                                "Starts with",
                                "Ends with",
                                "Matches regex",
                                "Does not match regex"
                              ]
                            },
                            "value": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "id"
                          ]
                        }
                      },
                      "logicalOperator": {
                        "type": "string",
                        "enum": [
                          "OR",
                          "AND"
                        ]
                      }
                    }
                  }
                },
                "required": [
                  "action"
                ]
              },
              {
                "type": "object",
                "properties": {
                  "credentialsId": {
                    "type": "string"
                  },
                  "sheetId": {
                    "type": "string"
                  },
                  "spreadsheetId": {
                    "type": "string"
                  }
                }
              }
            ]
          }
        },
        "required": [
          "id",
          "type"
        ],
        "title": "Google Sheets"
      },
      "makeComBlock": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "outgoingEdgeId": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "Make.com"
            ]
          },
          "options": {
            "type": "object",
            "properties": {
              "variablesForTest": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "variableId": {
                      "type": "string"
                    },
                    "value": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id"
                  ]
                }
              },
              "responseVariableMapping": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "variableId": {
                      "type": "string"
                    },
                    "bodyPath": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id"
                  ]
                }
              },
              "isAdvancedConfig": {
                "type": "boolean"
              },
              "isCustomBody": {
                "type": "boolean"
              },
              "isExecutedOnClient": {
                "type": "boolean"
              },
              "webhook": {
                "$ref": "#/components/schemas/httpRequestBlock"
              },
              "timeout": {
                "type": "number",
                "minimum": 1,
                "maximum": 120
              }
            }
          }
        },
        "required": [
          "id",
          "type"
        ],
        "title": "Make.com"
      },
      "httpRequestBlock": {
        "type": "object",
        "properties": {
          "queryParams": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "key": {
                  "type": "string"
                },
                "value": {
                  "type": "string"
                }
              },
              "required": [
                "id"
              ]
            }
          },
          "headers": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "key": {
                  "type": "string"
                },
                "value": {
                  "type": "string"
                }
              },
              "required": [
                "id"
              ]
            }
          },
          "method": {
            "type": "string",
            "enum": [
              "POST",
              "GET",
              "PUT",
              "DELETE",
              "PATCH",
              "HEAD",
              "CONNECT",
              "OPTIONS",
              "TRACE"
            ]
          },
          "url": {
            "type": "string"
          },
          "body": {
            "type": "string"
          }
        },
        "title": "HTTP Request"
      },
      "pabblyConnectBlock": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "outgoingEdgeId": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "Pabbly"
            ]
          },
          "options": {
            "type": "object",
            "properties": {
              "variablesForTest": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "variableId": {
                      "type": "string"
                    },
                    "value": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id"
                  ]
                }
              },
              "responseVariableMapping": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "variableId": {
                      "type": "string"
                    },
                    "bodyPath": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id"
                  ]
                }
              },
              "isAdvancedConfig": {
                "type": "boolean"
              },
              "isCustomBody": {
                "type": "boolean"
              },
              "isExecutedOnClient": {
                "type": "boolean"
              },
              "webhook": {
                "$ref": "#/components/schemas/httpRequestBlock"
              },
              "timeout": {
                "type": "number",
                "minimum": 1,
                "maximum": 120
              }
            }
          }
        },
        "required": [
          "id",
          "type"
        ],
        "title": "Pabbly Connect"
      },
      "zapierBlock": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "outgoingEdgeId": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "Zapier"
            ]
          },
          "options": {
            "type": "object",
            "properties": {
              "variablesForTest": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "variableId": {
                      "type": "string"
                    },
                    "value": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id"
                  ]
                }
              },
              "responseVariableMapping": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "variableId": {
                      "type": "string"
                    },
                    "bodyPath": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id"
                  ]
                }
              },
              "isAdvancedConfig": {
                "type": "boolean"
              },
              "isCustomBody": {
                "type": "boolean"
              },
              "isExecutedOnClient": {
                "type": "boolean"
              },
              "webhook": {
                "$ref": "#/components/schemas/httpRequestBlock"
              },
              "timeout": {
                "type": "number",
                "minimum": 1,
                "maximum": 120
              }
            }
          }
        },
        "required": [
          "id",
          "type"
        ],
        "title": "Zapier"
      },
      "openaiBlock": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "outgoingEdgeId": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "openai"
            ]
          },
          "options": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "baseUrl": {
                    "type": "string"
                  },
                  "apiVersion": {
                    "type": "string"
                  },
                  "credentialsId": {
                    "type": "string"
                  }
                },
                "description": "Deprecated, use other dedicated OpenAI compatible blocks instead"
              },
              {
                "type": "object",
                "properties": {
                  "baseUrl": {
                    "type": "string"
                  },
                  "apiVersion": {
                    "type": "string"
                  },
                  "credentialsId": {
                    "type": "string"
                  },
                  "action": {
                    "type": "string",
                    "enum": [
                      "Create chat completion"
                    ]
                  },
                  "model": {
                    "type": "string"
                  },
                  "messages": {
                    "type": "array",
                    "items": {
                      "oneOf": [
                        {
                          "type": "object",
                          "properties": {}
                        },
                        {
                          "type": "object",
                          "properties": {
                            "role": {
                              "type": "string",
                              "enum": [
                                "system"
                              ]
                            },
                            "content": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "role"
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "role": {
                              "type": "string",
                              "enum": [
                                "user"
                              ]
                            },
                            "content": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "role"
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "role": {
                              "type": "string",
                              "enum": [
                                "assistant"
                              ]
                            },
                            "content": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "role"
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "role": {
                              "type": "string",
                              "enum": [
                                "Dialogue"
                              ]
                            },
                            "dialogueVariableId": {
                              "type": "string"
                            },
                            "startsBy": {
                              "type": "string",
                              "enum": [
                                "user",
                                "assistant"
                              ]
                            }
                          },
                          "required": [
                            "role"
                          ]
                        }
                      ]
                    }
                  },
                  "tools": {
                    "type": "array",
                    "items": {
                      "oneOf": [
                        {
                          "type": "object",
                          "properties": {}
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "enum": [
                                "function"
                              ]
                            },
                            "name": {
                              "type": "string"
                            },
                            "description": {
                              "type": "string"
                            },
                            "parameters": {
                              "type": "array",
                              "items": {
                                "oneOf": [
                                  {
                                    "type": "object",
                                    "properties": {}
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "enum": [
                                          "string"
                                        ]
                                      },
                                      "name": {
                                        "type": "string"
                                      },
                                      "description": {
                                        "type": "string"
                                      },
                                      "required": {
                                        "type": "boolean"
                                      }
                                    },
                                    "required": [
                                      "type"
                                    ]
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "enum": [
                                          "number"
                                        ]
                                      },
                                      "name": {
                                        "type": "string"
                                      },
                                      "description": {
                                        "type": "string"
                                      },
                                      "required": {
                                        "type": "boolean"
                                      }
                                    },
                                    "required": [
                                      "type"
                                    ]
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "enum": [
                                          "boolean"
                                        ]
                                      },
                                      "name": {
                                        "type": "string"
                                      },
                                      "description": {
                                        "type": "string"
                                      },
                                      "required": {
                                        "type": "boolean"
                                      }
                                    },
                                    "required": [
                                      "type"
                                    ]
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "enum": [
                                          "enum"
                                        ]
                                      },
                                      "values": {
                                        "type": "array",
                                        "items": {
                                          "type": "string"
                                        }
                                      },
                                      "name": {
                                        "type": "string"
                                      },
                                      "description": {
                                        "type": "string"
                                      },
                                      "required": {
                                        "type": "boolean"
                                      }
                                    },
                                    "required": [
                                      "type"
                                    ]
                                  }
                                ]
                              }
                            },
                            "code": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "type"
                          ]
                        }
                      ]
                    }
                  },
                  "temperature": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "number"
                      }
                    ]
                  },
                  "responseMapping": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "item": {
                          "type": "string",
                          "enum": [
                            "Message content",
                            "Total tokens",
                            "Prompt tokens",
                            "Completion tokens"
                          ]
                        },
                        "variableId": {
                          "type": "string"
                        }
                      }
                    }
                  }
                },
                "required": [
                  "action"
                ]
              },
              {
                "type": "object",
                "properties": {
                  "baseUrl": {
                    "type": "string"
                  },
                  "apiVersion": {
                    "type": "string"
                  },
                  "credentialsId": {
                    "type": "string"
                  },
                  "action": {
                    "type": "string",
                    "enum": [
                      "Ask Assistant"
                    ]
                  },
                  "assistantId": {
                    "type": "string"
                  },
                  "threadVariableId": {
                    "type": "string"
                  },
                  "message": {
                    "type": "string"
                  },
                  "functions": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string"
                        },
                        "code": {
                          "type": "string"
                        }
                      }
                    }
                  },
                  "responseMapping": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "item": {
                          "type": "string",
                          "enum": [
                            "Message",
                            "Thread ID"
                          ]
                        },
                        "variableId": {
                          "type": "string"
                        }
                      }
                    }
                  },
                  "threadId": {
                    "type": "string"
                  }
                },
                "required": [
                  "action"
                ]
              },
              {
                "type": "object",
                "properties": {
                  "baseUrl": {
                    "type": "string"
                  },
                  "apiVersion": {
                    "type": "string"
                  },
                  "credentialsId": {
                    "type": "string"
                  },
                  "action": {
                    "type": "string",
                    "enum": [
                      "Generate variables"
                    ]
                  },
                  "model": {
                    "type": "string"
                  },
                  "prompt": {
                    "type": "string"
                  },
                  "variablesToExtract": {
                    "type": "array",
                    "items": {
                      "oneOf": [
                        {
                          "type": "object",
                          "properties": {}
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "enum": [
                                "string"
                              ]
                            },
                            "variableId": {
                              "type": "string"
                            },
                            "description": {
                              "type": "string"
                            },
                            "isRequired": {
                              "type": "boolean"
                            }
                          },
                          "required": [
                            "type"
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "enum": [
                                "number"
                              ]
                            },
                            "variableId": {
                              "type": "string"
                            },
                            "description": {
                              "type": "string"
                            },
                            "isRequired": {
                              "type": "boolean"
                            }
                          },
                          "required": [
                            "type"
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "enum": [
                                "boolean"
                              ]
                            },
                            "variableId": {
                              "type": "string"
                            },
                            "description": {
                              "type": "string"
                            },
                            "isRequired": {
                              "type": "boolean"
                            }
                          },
                          "required": [
                            "type"
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "enum": [
                                "enum"
                              ]
                            },
                            "values": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            "variableId": {
                              "type": "string"
                            },
                            "description": {
                              "type": "string"
                            },
                            "isRequired": {
                              "type": "boolean"
                            }
                          },
                          "required": [
                            "type"
                          ]
                        }
                      ]
                    }
                  }
                },
                "required": [
                  "action"
                ]
              },
              {
                "type": "object",
                "properties": {
                  "baseUrl": {
                    "type": "string"
                  },
                  "apiVersion": {
                    "type": "string"
                  },
                  "credentialsId": {
                    "type": "string"
                  },
                  "action": {
                    "type": "string",
                    "enum": [
                      "Create speech"
                    ]
                  },
                  "model": {
                    "type": "string"
                  },
                  "input": {
                    "type": "string"
                  },
                  "voice": {
                    "type": "string",
                    "enum": [
                      "alloy",
                      "echo",
                      "fable",
                      "onyx",
                      "nova",
                      "shimmer"
                    ]
                  },
                  "saveUrlInVariableId": {
                    "type": "string"
                  }
                },
                "required": [
                  "action"
                ]
              },
              {
                "type": "object",
                "properties": {
                  "baseUrl": {
                    "type": "string"
                  },
                  "apiVersion": {
                    "type": "string"
                  },
                  "credentialsId": {
                    "type": "string"
                  },
                  "action": {
                    "type": "string",
                    "enum": [
                      "Create transcription"
                    ]
                  },
                  "url": {
                    "type": "string"
                  },
                  "transcriptionVariableId": {
                    "type": "string"
                  }
                },
                "required": [
                  "action"
                ]
              }
            ]
          }
        },
        "required": [
          "id",
          "type"
        ],
        "title": "OpenAI"
      },
      "cal-comBlock": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "outgoingEdgeId": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "cal-com"
            ]
          },
          "options": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "baseUrl": {
                    "type": "string"
                  },
                  "credentialsId": {
                    "type": "string"
                  }
                }
              },
              {
                "type": "object",
                "properties": {
                  "baseUrl": {
                    "type": "string"
                  },
                  "credentialsId": {
                    "type": "string"
                  },
                  "action": {
                    "type": "string",
                    "enum": [
                      "Book event"
                    ]
                  },
                  "link": {
                    "type": "string"
                  },
                  "layout": {
                    "type": "string",
                    "enum": [
                      "Month",
                      "Weekly",
                      "Columns"
                    ]
                  },
                  "name": {
                    "type": "string"
                  },
                  "email": {
                    "type": "string"
                  },
                  "additionalNotes": {
                    "type": "string"
                  },
                  "phone": {
                    "type": "string"
                  },
                  "saveBookedDateInVariableId": {
                    "type": "string"
                  }
                },
                "required": [
                  "action"
                ]
              }
            ]
          }
        },
        "required": [
          "id",
          "type"
        ],
        "title": "Cal.com"
      },
      "chat-nodeBlock": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "outgoingEdgeId": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "chat-node"
            ]
          },
          "options": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "credentialsId": {
                    "type": "string"
                  }
                }
              },
              {
                "type": "object",
                "properties": {
                  "credentialsId": {
                    "type": "string"
                  },
                  "action": {
                    "type": "string",
                    "enum": [
                      "Send Message"
                    ]
                  },
                  "botId": {
                    "type": "string"
                  },
                  "threadId": {
                    "type": "string"
                  },
                  "message": {
                    "type": "string"
                  },
                  "responseMapping": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "item": {
                          "type": "string",
                          "enum": [
                            "Message",
                            "Thread ID"
                          ]
                        },
                        "variableId": {
                          "type": "string"
                        }
                      }
                    }
                  }
                },
                "required": [
                  "action"
                ]
              }
            ]
          }
        },
        "required": [
          "id",
          "type"
        ],
        "title": "ChatNode"
      },
      "qr-codeBlock": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "outgoingEdgeId": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "qr-code"
            ]
          },
          "options": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "credentialsId": {
                    "type": "string"
                  }
                }
              },
              {
                "type": "object",
                "properties": {
                  "credentialsId": {
                    "type": "string"
                  },
                  "action": {
                    "type": "string",
                    "enum": [
                      "Generate a QR Code"
                    ]
                  },
                  "data": {
                    "type": "string"
                  },
                  "saveUrlInVariableId": {
                    "type": "string"
                  }
                },
                "required": [
                  "action"
                ]
              }
            ]
          }
        },
        "required": [
          "id",
          "type"
        ],
        "title": "QR code"
      },
      "dify-aiBlock": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "outgoingEdgeId": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "dify-ai"
            ]
          },
          "options": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "credentialsId": {
                    "type": "string"
                  }
                }
              },
              {
                "type": "object",
                "properties": {
                  "credentialsId": {
                    "type": "string"
                  },
                  "action": {
                    "type": "string",
                    "enum": [
                      "Create Chat Message"
                    ]
                  },
                  "query": {
                    "type": "string"
                  },
                  "conversationVariableId": {
                    "type": "string"
                  },
                  "user": {
                    "type": "string"
                  },
                  "inputs": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "key": {
                          "type": "string"
                        },
                        "value": {
                          "type": "string"
                        }
                      }
                    }
                  },
                  "responseMapping": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "item": {
                          "type": "string",
                          "enum": [
                            "Answer",
                            "Total Tokens",
                            "Message content",
                            "Total tokens",
                            "Prompt tokens",
                            "Completion tokens"
                          ]
                        },
                        "variableId": {
                          "type": "string"
                        }
                      }
                    }
                  }
                },
                "required": [
                  "action"
                ]
              },
              {
                "type": "object",
                "properties": {
                  "credentialsId": {
                    "type": "string"
                  },
                  "action": {
                    "type": "string",
                    "enum": [
                      "Query Knowledge Base"
                    ]
                  },
                  "datasetId": {
                    "type": "string"
                  },
                  "query": {
                    "type": "string"
                  },
                  "responseMapping": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "item": {
                          "type": "string",
                          "enum": [
                            "Retrieved chunks"
                          ]
                        },
                        "variableId": {
                          "type": "string"
                        }
                      }
                    }
                  }
                },
                "required": [
                  "action"
                ]
              }
            ]
          }
        },
        "required": [
          "id",
          "type"
        ],
        "title": "Dify.AI"
      },
      "mistralBlock": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "outgoingEdgeId": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "mistral"
            ]
          },
          "options": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "credentialsId": {
                    "type": "string"
                  }
                }
              },
              {
                "type": "object",
                "properties": {
                  "credentialsId": {
                    "type": "string"
                  },
                  "action": {
                    "type": "string",
                    "enum": [
                      "Create chat completion"
                    ]
                  },
                  "model": {
                    "type": "string"
                  },
                  "messages": {
                    "type": "array",
                    "items": {
                      "oneOf": [
                        {
                          "type": "object",
                          "properties": {}
                        },
                        {
                          "type": "object",
                          "properties": {
                            "role": {
                              "type": "string",
                              "enum": [
                                "system"
                              ]
                            },
                            "content": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "role"
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "role": {
                              "type": "string",
                              "enum": [
                                "user"
                              ]
                            },
                            "content": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "role"
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "role": {
                              "type": "string",
                              "enum": [
                                "assistant"
                              ]
                            },
                            "content": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "role"
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "role": {
                              "type": "string",
                              "enum": [
                                "Dialogue"
                              ]
                            },
                            "dialogueVariableId": {
                              "type": "string"
                            },
                            "startsBy": {
                              "type": "string",
                              "enum": [
                                "user",
                                "assistant"
                              ]
                            }
                          },
                          "required": [
                            "role"
                          ]
                        }
                      ]
                    }
                  },
                  "tools": {
                    "type": "array",
                    "items": {
                      "oneOf": [
                        {
                          "type": "object",
                          "properties": {}
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "enum": [
                                "function"
                              ]
                            },
                            "name": {
                              "type": "string"
                            },
                            "description": {
                              "type": "string"
                            },
                            "parameters": {
                              "type": "array",
                              "items": {
                                "oneOf": [
                                  {
                                    "type": "object",
                                    "properties": {}
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "enum": [
                                          "string"
                                        ]
                                      },
                                      "name": {
                                        "type": "string"
                                      },
                                      "description": {
                                        "type": "string"
                                      },
                                      "required": {
                                        "type": "boolean"
                                      }
                                    },
                                    "required": [
                                      "type"
                                    ]
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "enum": [
                                          "number"
                                        ]
                                      },
                                      "name": {
                                        "type": "string"
                                      },
                                      "description": {
                                        "type": "string"
                                      },
                                      "required": {
                                        "type": "boolean"
                                      }
                                    },
                                    "required": [
                                      "type"
                                    ]
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "enum": [
                                          "boolean"
                                        ]
                                      },
                                      "name": {
                                        "type": "string"
                                      },
                                      "description": {
                                        "type": "string"
                                      },
                                      "required": {
                                        "type": "boolean"
                                      }
                                    },
                                    "required": [
                                      "type"
                                    ]
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "enum": [
                                          "enum"
                                        ]
                                      },
                                      "values": {
                                        "type": "array",
                                        "items": {
                                          "type": "string"
                                        }
                                      },
                                      "name": {
                                        "type": "string"
                                      },
                                      "description": {
                                        "type": "string"
                                      },
                                      "required": {
                                        "type": "boolean"
                                      }
                                    },
                                    "required": [
                                      "type"
                                    ]
                                  }
                                ]
                              }
                            },
                            "code": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "type"
                          ]
                        }
                      ]
                    }
                  },
                  "temperature": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "number"
                      }
                    ]
                  },
                  "responseMapping": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "item": {
                          "type": "string",
                          "enum": [
                            "Message content",
                            "Total tokens",
                            "Prompt tokens",
                            "Completion tokens"
                          ]
                        },
                        "variableId": {
                          "type": "string"
                        }
                      }
                    }
                  }
                },
                "required": [
                  "action"
                ]
              },
              {
                "type": "object",
                "properties": {
                  "credentialsId": {
                    "type": "string"
                  },
                  "action": {
                    "type": "string",
                    "enum": [
                      "Generate variables"
                    ]
                  },
                  "model": {
                    "type": "string"
                  },
                  "prompt": {
                    "type": "string"
                  },
                  "variablesToExtract": {
                    "type": "array",
                    "items": {
                      "oneOf": [
                        {
                          "type": "object",
                          "properties": {}
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "enum": [
                                "string"
                              ]
                            },
                            "variableId": {
                              "type": "string"
                            },
                            "description": {
                              "type": "string"
                            },
                            "isRequired": {
                              "type": "boolean"
                            }
                          },
                          "required": [
                            "type"
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "enum": [
                                "number"
                              ]
                            },
                            "variableId": {
                              "type": "string"
                            },
                            "description": {
                              "type": "string"
                            },
                            "isRequired": {
                              "type": "boolean"
                            }
                          },
                          "required": [
                            "type"
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "enum": [
                                "boolean"
                              ]
                            },
                            "variableId": {
                              "type": "string"
                            },
                            "description": {
                              "type": "string"
                            },
                            "isRequired": {
                              "type": "boolean"
                            }
                          },
                          "required": [
                            "type"
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "enum": [
                                "enum"
                              ]
                            },
                            "values": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            "variableId": {
                              "type": "string"
                            },
                            "description": {
                              "type": "string"
                            },
                            "isRequired": {
                              "type": "boolean"
                            }
                          },
                          "required": [
                            "type"
                          ]
                        }
                      ]
                    }
                  }
                },
                "required": [
                  "action"
                ]
              }
            ]
          }
        },
        "required": [
          "id",
          "type"
        ],
        "title": "Mistral"
      },
      "elevenlabsBlock": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "outgoingEdgeId": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "elevenlabs"
            ]
          },
          "options": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "credentialsId": {
                    "type": "string"
                  }
                }
              },
              {
                "type": "object",
                "properties": {
                  "credentialsId": {
                    "type": "string"
                  },
                  "action": {
                    "type": "string",
                    "enum": [
                      "Convert text to speech"
                    ]
                  },
                  "text": {
                    "type": "string"
                  },
                  "voiceId": {
                    "type": "string"
                  },
                  "modelId": {
                    "type": "string"
                  },
                  "saveUrlInVariableId": {
                    "type": "string"
                  }
                },
                "required": [
                  "action"
                ]
              }
            ]
          }
        },
        "required": [
          "id",
          "type"
        ],
        "title": "ElevenLabs"
      },
      "anthropicBlock": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "outgoingEdgeId": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "anthropic"
            ]
          },
          "options": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "credentialsId": {
                    "type": "string"
                  }
                }
              },
              {
                "type": "object",
                "properties": {
                  "credentialsId": {
                    "type": "string"
                  },
                  "action": {
                    "type": "string",
                    "enum": [
                      "Create Chat Message"
                    ]
                  },
                  "model": {
                    "type": "string",
                    "enum": [
                      "claude-sonnet-4-5",
                      "claude-haiku-4-5",
                      "claude-opus-4-1",
                      "claude-sonnet-4-0",
                      "claude-opus-4-0",
                      "claude-3-7-sonnet-latest",
                      "claude-3-5-haiku-latest",
                      "claude-3-5-sonnet-latest",
                      "claude-3-opus-latest"
                    ]
                  },
                  "messages": {
                    "type": "array",
                    "items": {
                      "oneOf": [
                        {
                          "type": "object",
                          "properties": {}
                        },
                        {
                          "type": "object",
                          "properties": {
                            "role": {
                              "type": "string",
                              "enum": [
                                "user"
                              ]
                            },
                            "content": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "role"
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "role": {
                              "type": "string",
                              "enum": [
                                "assistant"
                              ]
                            },
                            "content": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "role"
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "role": {
                              "type": "string",
                              "enum": [
                                "Dialogue"
                              ]
                            },
                            "dialogueVariableId": {
                              "type": "string"
                            },
                            "startsBy": {
                              "type": "string",
                              "enum": [
                                "user",
                                "assistant"
                              ]
                            }
                          },
                          "required": [
                            "role"
                          ]
                        }
                      ]
                    }
                  },
                  "tools": {
                    "type": "array",
                    "items": {
                      "oneOf": [
                        {
                          "type": "object",
                          "properties": {}
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "enum": [
                                "function"
                              ]
                            },
                            "name": {
                              "type": "string"
                            },
                            "description": {
                              "type": "string"
                            },
                            "parameters": {
                              "type": "array",
                              "items": {
                                "oneOf": [
                                  {
                                    "type": "object",
                                    "properties": {}
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "enum": [
                                          "string"
                                        ]
                                      },
                                      "name": {
                                        "type": "string"
                                      },
                                      "description": {
                                        "type": "string"
                                      },
                                      "required": {
                                        "type": "boolean"
                                      }
                                    },
                                    "required": [
                                      "type"
                                    ]
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "enum": [
                                          "number"
                                        ]
                                      },
                                      "name": {
                                        "type": "string"
                                      },
                                      "description": {
                                        "type": "string"
                                      },
                                      "required": {
                                        "type": "boolean"
                                      }
                                    },
                                    "required": [
                                      "type"
                                    ]
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "enum": [
                                          "boolean"
                                        ]
                                      },
                                      "name": {
                                        "type": "string"
                                      },
                                      "description": {
                                        "type": "string"
                                      },
                                      "required": {
                                        "type": "boolean"
                                      }
                                    },
                                    "required": [
                                      "type"
                                    ]
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "enum": [
                                          "enum"
                                        ]
                                      },
                                      "values": {
                                        "type": "array",
                                        "items": {
                                          "type": "string"
                                        }
                                      },
                                      "name": {
                                        "type": "string"
                                      },
                                      "description": {
                                        "type": "string"
                                      },
                                      "required": {
                                        "type": "boolean"
                                      }
                                    },
                                    "required": [
                                      "type"
                                    ]
                                  }
                                ]
                              }
                            },
                            "code": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "type"
                          ]
                        }
                      ]
                    }
                  },
                  "systemMessage": {
                    "type": "string"
                  },
                  "temperature": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "number"
                      }
                    ]
                  },
                  "maxTokens": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "number"
                      }
                    ]
                  },
                  "responseMapping": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "item": {
                          "type": "string",
                          "enum": [
                            "Message content"
                          ]
                        },
                        "variableId": {
                          "type": "string"
                        }
                      }
                    }
                  }
                },
                "required": [
                  "action"
                ]
              },
              {
                "type": "object",
                "properties": {
                  "credentialsId": {
                    "type": "string"
                  },
                  "action": {
                    "type": "string",
                    "enum": [
                      "Generate variables"
                    ]
                  },
                  "model": {
                    "type": "string"
                  },
                  "prompt": {
                    "type": "string"
                  },
                  "variablesToExtract": {
                    "type": "array",
                    "items": {
                      "oneOf": [
                        {
                          "type": "object",
                          "properties": {}
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "enum": [
                                "string"
                              ]
                            },
                            "variableId": {
                              "type": "string"
                            },
                            "description": {
                              "type": "string"
                            },
                            "isRequired": {
                              "type": "boolean"
                            }
                          },
                          "required": [
                            "type"
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "enum": [
                                "number"
                              ]
                            },
                            "variableId": {
                              "type": "string"
                            },
                            "description": {
                              "type": "string"
                            },
                            "isRequired": {
                              "type": "boolean"
                            }
                          },
                          "required": [
                            "type"
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "enum": [
                                "boolean"
                              ]
                            },
                            "variableId": {
                              "type": "string"
                            },
                            "description": {
                              "type": "string"
                            },
                            "isRequired": {
                              "type": "boolean"
                            }
                          },
                          "required": [
                            "type"
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "enum": [
                                "enum"
                              ]
                            },
                            "values": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            "variableId": {
                              "type": "string"
                            },
                            "description": {
                              "type": "string"
                            },
                            "isRequired": {
                              "type": "boolean"
                            }
                          },
                          "required": [
                            "type"
                          ]
                        }
                      ]
                    }
                  }
                },
                "required": [
                  "action"
                ]
              }
            ]
          }
        },
        "required": [
          "id",
          "type"
        ],
        "title": "Anthropic"
      },
      "together-aiBlock": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "outgoingEdgeId": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "together-ai"
            ]
          },
          "options": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "credentialsId": {
                    "type": "string"
                  }
                }
              },
              {
                "type": "object",
                "properties": {
                  "credentialsId": {
                    "type": "string"
                  },
                  "action": {
                    "type": "string",
                    "enum": [
                      "Create chat completion"
                    ]
                  },
                  "model": {
                    "type": "string"
                  },
                  "messages": {
                    "type": "array",
                    "items": {
                      "oneOf": [
                        {
                          "type": "object",
                          "properties": {}
                        },
                        {
                          "type": "object",
                          "properties": {
                            "role": {
                              "type": "string",
                              "enum": [
                                "system"
                              ]
                            },
                            "content": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "role"
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "role": {
                              "type": "string",
                              "enum": [
                                "user"
                              ]
                            },
                            "content": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "role"
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "role": {
                              "type": "string",
                              "enum": [
                                "assistant"
                              ]
                            },
                            "content": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "role"
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "role": {
                              "type": "string",
                              "enum": [
                                "Dialogue"
                              ]
                            },
                            "dialogueVariableId": {
                              "type": "string"
                            },
                            "startsBy": {
                              "type": "string",
                              "enum": [
                                "user",
                                "assistant"
                              ]
                            }
                          },
                          "required": [
                            "role"
                          ]
                        }
                      ]
                    }
                  },
                  "tools": {
                    "type": "array",
                    "items": {
                      "oneOf": [
                        {
                          "type": "object",
                          "properties": {}
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "enum": [
                                "function"
                              ]
                            },
                            "name": {
                              "type": "string"
                            },
                            "description": {
                              "type": "string"
                            },
                            "parameters": {
                              "type": "array",
                              "items": {
                                "oneOf": [
                                  {
                                    "type": "object",
                                    "properties": {}
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "enum": [
                                          "string"
                                        ]
                                      },
                                      "name": {
                                        "type": "string"
                                      },
                                      "description": {
                                        "type": "string"
                                      },
                                      "required": {
                                        "type": "boolean"
                                      }
                                    },
                                    "required": [
                                      "type"
                                    ]
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "enum": [
                                          "number"
                                        ]
                                      },
                                      "name": {
                                        "type": "string"
                                      },
                                      "description": {
                                        "type": "string"
                                      },
                                      "required": {
                                        "type": "boolean"
                                      }
                                    },
                                    "required": [
                                      "type"
                                    ]
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "enum": [
                                          "boolean"
                                        ]
                                      },
                                      "name": {
                                        "type": "string"
                                      },
                                      "description": {
                                        "type": "string"
                                      },
                                      "required": {
                                        "type": "boolean"
                                      }
                                    },
                                    "required": [
                                      "type"
                                    ]
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "enum": [
                                          "enum"
                                        ]
                                      },
                                      "values": {
                                        "type": "array",
                                        "items": {
                                          "type": "string"
                                        }
                                      },
                                      "name": {
                                        "type": "string"
                                      },
                                      "description": {
                                        "type": "string"
                                      },
                                      "required": {
                                        "type": "boolean"
                                      }
                                    },
                                    "required": [
                                      "type"
                                    ]
                                  }
                                ]
                              }
                            },
                            "code": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "type"
                          ]
                        }
                      ]
                    }
                  },
                  "temperature": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "number"
                      }
                    ]
                  },
                  "responseMapping": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "item": {
                          "type": "string",
                          "enum": [
                            "Message content",
                            "Total tokens",
                            "Prompt tokens",
                            "Completion tokens"
                          ]
                        },
                        "variableId": {
                          "type": "string"
                        }
                      }
                    }
                  }
                },
                "required": [
                  "action"
                ]
              }
            ]
          }
        },
        "required": [
          "id",
          "type"
        ],
        "title": "Together"
      },
      "open-routerBlock": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "outgoingEdgeId": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "open-router"
            ]
          },
          "options": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "credentialsId": {
                    "type": "string"
                  }
                }
              },
              {
                "type": "object",
                "properties": {
                  "credentialsId": {
                    "type": "string"
                  },
                  "action": {
                    "type": "string",
                    "enum": [
                      "Create chat completion"
                    ]
                  },
                  "model": {
                    "type": "string"
                  },
                  "messages": {
                    "type": "array",
                    "items": {
                      "oneOf": [
                        {
                          "type": "object",
                          "properties": {}
                        },
                        {
                          "type": "object",
                          "properties": {
                            "role": {
                              "type": "string",
                              "enum": [
                                "system"
                              ]
                            },
                            "content": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "role"
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "role": {
                              "type": "string",
                              "enum": [
                                "user"
                              ]
                            },
                            "content": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "role"
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "role": {
                              "type": "string",
                              "enum": [
                                "assistant"
                              ]
                            },
                            "content": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "role"
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "role": {
                              "type": "string",
                              "enum": [
                                "Dialogue"
                              ]
                            },
                            "dialogueVariableId": {
                              "type": "string"
                            },
                            "startsBy": {
                              "type": "string",
                              "enum": [
                                "user",
                                "assistant"
                              ]
                            }
                          },
                          "required": [
                            "role"
                          ]
                        }
                      ]
                    }
                  },
                  "tools": {
                    "type": "array",
                    "items": {
                      "oneOf": [
                        {
                          "type": "object",
                          "properties": {}
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "enum": [
                                "function"
                              ]
                            },
                            "name": {
                              "type": "string"
                            },
                            "description": {
                              "type": "string"
                            },
                            "parameters": {
                              "type": "array",
                              "items": {
                                "oneOf": [
                                  {
                                    "type": "object",
                                    "properties": {}
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "enum": [
                                          "string"
                                        ]
                                      },
                                      "name": {
                                        "type": "string"
                                      },
                                      "description": {
                                        "type": "string"
                                      },
                                      "required": {
                                        "type": "boolean"
                                      }
                                    },
                                    "required": [
                                      "type"
                                    ]
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "enum": [
                                          "number"
                                        ]
                                      },
                                      "name": {
                                        "type": "string"
                                      },
                                      "description": {
                                        "type": "string"
                                      },
                                      "required": {
                                        "type": "boolean"
                                      }
                                    },
                                    "required": [
                                      "type"
                                    ]
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "enum": [
                                          "boolean"
                                        ]
                                      },
                                      "name": {
                                        "type": "string"
                                      },
                                      "description": {
                                        "type": "string"
                                      },
                                      "required": {
                                        "type": "boolean"
                                      }
                                    },
                                    "required": [
                                      "type"
                                    ]
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "enum": [
                                          "enum"
                                        ]
                                      },
                                      "values": {
                                        "type": "array",
                                        "items": {
                                          "type": "string"
                                        }
                                      },
                                      "name": {
                                        "type": "string"
                                      },
                                      "description": {
                                        "type": "string"
                                      },
                                      "required": {
                                        "type": "boolean"
                                      }
                                    },
                                    "required": [
                                      "type"
                                    ]
                                  }
                                ]
                              }
                            },
                            "code": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "type"
                          ]
                        }
                      ]
                    }
                  },
                  "temperature": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "number"
                      }
                    ]
                  },
                  "responseMapping": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "item": {
                          "type": "string",
                          "enum": [
                            "Message content",
                            "Total tokens",
                            "Prompt tokens",
                            "Completion tokens"
                          ]
                        },
                        "variableId": {
                          "type": "string"
                        }
                      }
                    }
                  }
                },
                "required": [
                  "action"
                ]
              }
            ]
          }
        },
        "required": [
          "id",
          "type"
        ],
        "title": "OpenRouter"
      },
      "nocodbBlock": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "outgoingEdgeId": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "nocodb"
            ]
          },
          "options": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "credentialsId": {
                    "type": "string"
                  }
                }
              },
              {
                "type": "object",
                "properties": {
                  "credentialsId": {
                    "type": "string"
                  },
                  "action": {
                    "type": "string",
                    "enum": [
                      "Search Records"
                    ]
                  },
                  "tableId": {
                    "type": "string"
                  },
                  "viewId": {
                    "type": "string"
                  },
                  "returnType": {
                    "type": "string",
                    "enum": [
                      "All",
                      "First",
                      "Last",
                      "Random"
                    ]
                  },
                  "filter": {
                    "type": "object",
                    "properties": {
                      "comparisons": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "input": {
                              "type": "string"
                            },
                            "operator": {
                              "type": "string",
                              "enum": [
                                "Equal to",
                                "Not equal",
                                "Contains",
                                "Greater than",
                                "Less than",
                                "Is set",
                                "Is empty",
                                "Starts with",
                                "Ends with"
                              ]
                            },
                            "value": {
                              "type": "string"
                            }
                          }
                        }
                      },
                      "joiner": {
                        "type": "string",
                        "enum": [
                          "AND",
                          "OR"
                        ]
                      }
                    },
                    "required": [
                      "comparisons"
                    ]
                  },
                  "responseMapping": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "fieldName": {
                          "type": "string"
                        },
                        "variableId": {
                          "type": "string"
                        }
                      }
                    }
                  }
                },
                "required": [
                  "action"
                ]
              },
              {
                "type": "object",
                "properties": {
                  "credentialsId": {
                    "type": "string"
                  },
                  "action": {
                    "type": "string",
                    "enum": [
                      "Create Record"
                    ]
                  },
                  "tableId": {
                    "type": "string"
                  },
                  "fields": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "key": {
                          "type": "string"
                        },
                        "value": {
                          "type": "string"
                        }
                      }
                    }
                  }
                },
                "required": [
                  "action"
                ]
              },
              {
                "type": "object",
                "properties": {
                  "credentialsId": {
                    "type": "string"
                  },
                  "action": {
                    "type": "string",
                    "enum": [
                      "Update Existing Record"
                    ]
                  },
                  "tableId": {
                    "type": "string"
                  },
                  "viewId": {
                    "type": "string"
                  },
                  "filter": {
                    "type": "object",
                    "properties": {
                      "comparisons": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "input": {
                              "type": "string"
                            },
                            "operator": {
                              "type": "string",
                              "enum": [
                                "Equal to",
                                "Not equal",
                                "Contains",
                                "Greater than",
                                "Less than",
                                "Is set",
                                "Is empty",
                                "Starts with",
                                "Ends with"
                              ]
                            },
                            "value": {
                              "type": "string"
                            }
                          }
                        }
                      },
                      "joiner": {
                        "type": "string",
                        "enum": [
                          "AND",
                          "OR"
                        ]
                      }
                    },
                    "required": [
                      "comparisons"
                    ]
                  },
                  "updates": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "fieldName": {
                          "type": "string"
                        },
                        "value": {
                          "type": "string"
                        }
                      }
                    }
                  }
                },
                "required": [
                  "action"
                ]
              }
            ]
          }
        },
        "required": [
          "id",
          "type"
        ],
        "title": "NocoDB"
      },
      "segmentBlock": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "outgoingEdgeId": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "segment"
            ]
          },
          "options": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "credentialsId": {
                    "type": "string"
                  }
                }
              },
              {
                "type": "object",
                "properties": {
                  "credentialsId": {
                    "type": "string"
                  },
                  "action": {
                    "type": "string",
                    "enum": [
                      "Alias"
                    ]
                  },
                  "userId": {
                    "type": "string"
                  },
                  "previousId": {
                    "type": "string"
                  }
                },
                "required": [
                  "action"
                ]
              },
              {
                "type": "object",
                "properties": {
                  "credentialsId": {
                    "type": "string"
                  },
                  "action": {
                    "type": "string",
                    "enum": [
                      "Identify User"
                    ]
                  },
                  "userId": {
                    "type": "string"
                  },
                  "email": {
                    "type": "string"
                  },
                  "traits": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "key": {
                          "type": "string"
                        },
                        "value": {
                          "type": "string"
                        }
                      }
                    }
                  }
                },
                "required": [
                  "action"
                ]
              },
              {
                "type": "object",
                "properties": {
                  "credentialsId": {
                    "type": "string"
                  },
                  "action": {
                    "type": "string",
                    "enum": [
                      "Page"
                    ]
                  },
                  "userId": {
                    "type": "string"
                  },
                  "name": {
                    "type": "string"
                  },
                  "category": {
                    "type": "string"
                  },
                  "properties": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "key": {
                          "type": "string"
                        },
                        "value": {
                          "type": "string"
                        }
                      }
                    }
                  }
                },
                "required": [
                  "action"
                ]
              },
              {
                "type": "object",
                "properties": {
                  "credentialsId": {
                    "type": "string"
                  },
                  "action": {
                    "type": "string",
                    "enum": [
                      "Track"
                    ]
                  },
                  "eventName": {
                    "type": "string"
                  },
                  "userId": {
                    "type": "string"
                  },
                  "properties": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "key": {
                          "type": "string"
                        },
                        "value": {
                          "type": "string"
                        }
                      }
                    }
                  }
                },
                "required": [
                  "action"
                ]
              }
            ]
          }
        },
        "required": [
          "id",
          "type"
        ],
        "title": "Segment"
      },
      "groqBlock": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "outgoingEdgeId": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "groq"
            ]
          },
          "options": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "credentialsId": {
                    "type": "string"
                  }
                }
              },
              {
                "type": "object",
                "properties": {
                  "credentialsId": {
                    "type": "string"
                  },
                  "action": {
                    "type": "string",
                    "enum": [
                      "Create chat completion"
                    ]
                  },
                  "model": {
                    "type": "string"
                  },
                  "messages": {
                    "type": "array",
                    "items": {
                      "oneOf": [
                        {
                          "type": "object",
                          "properties": {}
                        },
                        {
                          "type": "object",
                          "properties": {
                            "role": {
                              "type": "string",
                              "enum": [
                                "system"
                              ]
                            },
                            "content": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "role"
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "role": {
                              "type": "string",
                              "enum": [
                                "user"
                              ]
                            },
                            "content": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "role"
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "role": {
                              "type": "string",
                              "enum": [
                                "assistant"
                              ]
                            },
                            "content": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "role"
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "role": {
                              "type": "string",
                              "enum": [
                                "Dialogue"
                              ]
                            },
                            "dialogueVariableId": {
                              "type": "string"
                            },
                            "startsBy": {
                              "type": "string",
                              "enum": [
                                "user",
                                "assistant"
                              ]
                            }
                          },
                          "required": [
                            "role"
                          ]
                        }
                      ]
                    }
                  },
                  "tools": {
                    "type": "array",
                    "items": {
                      "oneOf": [
                        {
                          "type": "object",
                          "properties": {}
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "enum": [
                                "function"
                              ]
                            },
                            "name": {
                              "type": "string"
                            },
                            "description": {
                              "type": "string"
                            },
                            "parameters": {
                              "type": "array",
                              "items": {
                                "oneOf": [
                                  {
                                    "type": "object",
                                    "properties": {}
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "enum": [
                                          "string"
                                        ]
                                      },
                                      "name": {
                                        "type": "string"
                                      },
                                      "description": {
                                        "type": "string"
                                      },
                                      "required": {
                                        "type": "boolean"
                                      }
                                    },
                                    "required": [
                                      "type"
                                    ]
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "enum": [
                                          "number"
                                        ]
                                      },
                                      "name": {
                                        "type": "string"
                                      },
                                      "description": {
                                        "type": "string"
                                      },
                                      "required": {
                                        "type": "boolean"
                                      }
                                    },
                                    "required": [
                                      "type"
                                    ]
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "enum": [
                                          "boolean"
                                        ]
                                      },
                                      "name": {
                                        "type": "string"
                                      },
                                      "description": {
                                        "type": "string"
                                      },
                                      "required": {
                                        "type": "boolean"
                                      }
                                    },
                                    "required": [
                                      "type"
                                    ]
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "enum": [
                                          "enum"
                                        ]
                                      },
                                      "values": {
                                        "type": "array",
                                        "items": {
                                          "type": "string"
                                        }
                                      },
                                      "name": {
                                        "type": "string"
                                      },
                                      "description": {
                                        "type": "string"
                                      },
                                      "required": {
                                        "type": "boolean"
                                      }
                                    },
                                    "required": [
                                      "type"
                                    ]
                                  }
                                ]
                              }
                            },
                            "code": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "type"
                          ]
                        }
                      ]
                    }
                  },
                  "temperature": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "number"
                      }
                    ]
                  },
                  "responseMapping": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "item": {
                          "type": "string",
                          "enum": [
                            "Message content",
                            "Total tokens",
                            "Prompt tokens",
                            "Completion tokens"
                          ]
                        },
                        "variableId": {
                          "type": "string"
                        }
                      }
                    }
                  }
                },
                "required": [
                  "action"
                ]
              }
            ]
          }
        },
        "required": [
          "id",
          "type"
        ],
        "title": "Groq"
      },
      "zendeskBlock": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "outgoingEdgeId": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "zendesk"
            ]
          },
          "options": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "credentialsId": {
                    "type": "string"
                  }
                }
              },
              {
                "type": "object",
                "properties": {
                  "credentialsId": {
                    "type": "string"
                  },
                  "action": {
                    "type": "string",
                    "enum": [
                      "Open Web Widget"
                    ]
                  },
                  "userId": {
                    "type": "string"
                  },
                  "name": {
                    "type": "string"
                  },
                  "email": {
                    "type": "string"
                  },
                  "webWidgetKey": {
                    "type": "string"
                  }
                },
                "required": [
                  "action"
                ]
              }
            ]
          }
        },
        "required": [
          "id",
          "type"
        ],
        "title": "Zendesk"
      },
      "user-infoBlock": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "outgoingEdgeId": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "user-info"
            ]
          },
          "options": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "credentialsId": {
                    "type": "string"
                  }
                }
              },
              {
                "type": "object",
                "properties": {
                  "credentialsId": {
                    "type": "string"
                  },
                  "action": {
                    "type": "string",
                    "enum": [
                      "Get Network Info"
                    ]
                  },
                  "responseMapping": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "item": {
                          "type": "string",
                          "enum": [
                            "IP",
                            "IP (Raw)",
                            "Referer",
                            "Referer (Raw)",
                            "User Agent",
                            "User Agent (Raw)",
                            "Host"
                          ]
                        },
                        "variableId": {
                          "type": "string"
                        }
                      }
                    }
                  }
                },
                "required": [
                  "action"
                ]
              },
              {
                "type": "object",
                "properties": {
                  "credentialsId": {
                    "type": "string"
                  },
                  "action": {
                    "type": "string",
                    "enum": [
                      "Get Location Info"
                    ]
                  },
                  "responseMapping": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "item": {
                          "type": "string",
                          "enum": [
                            "Country",
                            "Country (Raw)",
                            "City",
                            "City (Raw)",
                            "Continent",
                            "Continent (Raw)",
                            "Region",
                            "Region (Raw)",
                            "Latitude",
                            "Latitude (Raw)",
                            "Longitude",
                            "Longitude (Raw)",
                            "Is EU Country"
                          ]
                        },
                        "variableId": {
                          "type": "string"
                        }
                      }
                    }
                  }
                },
                "required": [
                  "action"
                ]
              },
              {
                "type": "object",
                "properties": {
                  "credentialsId": {
                    "type": "string"
                  },
                  "action": {
                    "type": "string",
                    "enum": [
                      "Get Device Info"
                    ]
                  },
                  "responseMapping": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "item": {
                          "type": "string",
                          "enum": [
                            "Device Type",
                            "Device Vendor",
                            "Device Model"
                          ]
                        },
                        "variableId": {
                          "type": "string"
                        }
                      }
                    }
                  }
                },
                "required": [
                  "action"
                ]
              },
              {
                "type": "object",
                "properties": {
                  "credentialsId": {
                    "type": "string"
                  },
                  "action": {
                    "type": "string",
                    "enum": [
                      "Get Browser Info"
                    ]
                  },
                  "responseMapping": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "item": {
                          "type": "string",
                          "enum": [
                            "Browser Name",
                            "Browser Version",
                            "Browser Language",
                            "Browser Language Code",
                            "Browser Language Region",
                            "OS Name",
                            "OS Version"
                          ]
                        },
                        "variableId": {
                          "type": "string"
                        }
                      }
                    }
                  }
                },
                "required": [
                  "action"
                ]
              }
            ]
          }
        },
        "required": [
          "id",
          "type"
        ],
        "title": "User Info"
      },
      "supabaseBlock": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "outgoingEdgeId": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "supabase"
            ]
          },
          "options": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "credentialsId": {
                    "type": "string"
                  }
                }
              },
              {
                "type": "object",
                "properties": {
                  "credentialsId": {
                    "type": "string"
                  },
                  "action": {
                    "type": "string",
                    "enum": [
                      "Create Row"
                    ]
                  },
                  "table": {
                    "type": "string"
                  },
                  "schema": {
                    "type": "string"
                  },
                  "fields": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "key": {
                          "type": "string"
                        },
                        "value": {
                          "type": "string"
                        }
                      }
                    }
                  },
                  "responseMapping": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "item": {
                          "type": "string",
                          "enum": [
                            "Row Created",
                            "Table Name"
                          ]
                        },
                        "variableId": {
                          "type": "string"
                        }
                      }
                    }
                  }
                },
                "required": [
                  "action"
                ]
              },
              {
                "type": "object",
                "properties": {
                  "credentialsId": {
                    "type": "string"
                  },
                  "action": {
                    "type": "string",
                    "enum": [
                      "Get Rows"
                    ]
                  },
                  "table": {
                    "type": "string"
                  },
                  "schema": {
                    "type": "string"
                  },
                  "returnType": {
                    "type": "string",
                    "enum": [
                      "All",
                      "First",
                      "Last",
                      "Random"
                    ]
                  },
                  "orderBy": {
                    "type": "string"
                  },
                  "orderDirection": {
                    "type": "string",
                    "enum": [
                      "asc",
                      "desc"
                    ]
                  },
                  "filter": {
                    "type": "object",
                    "properties": {
                      "comparisons": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "input": {
                              "type": "string"
                            },
                            "operator": {
                              "type": "string",
                              "enum": [
                                "Equal to",
                                "Not equal",
                                "Contains",
                                "Greater than",
                                "Greater than or equal",
                                "Less than",
                                "Less than or equal",
                                "Is set",
                                "Is empty",
                                "Starts with",
                                "Ends with",
                                "In",
                                "Not in"
                              ]
                            },
                            "value": {
                              "type": "string"
                            }
                          }
                        }
                      },
                      "joiner": {
                        "type": "string",
                        "enum": [
                          "AND",
                          "OR"
                        ]
                      }
                    },
                    "required": [
                      "comparisons"
                    ]
                  },
                  "select": {
                    "type": "string"
                  },
                  "limit": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "number"
                      }
                    ]
                  },
                  "responseMapping": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "item": {
                          "type": "string",
                          "enum": [
                            "Rows Found",
                            "Table Name",
                            "Rows Count"
                          ]
                        },
                        "variableId": {
                          "type": "string"
                        }
                      }
                    }
                  }
                },
                "required": [
                  "action"
                ]
              },
              {
                "type": "object",
                "properties": {
                  "credentialsId": {
                    "type": "string"
                  },
                  "action": {
                    "type": "string",
                    "enum": [
                      "Update Rows"
                    ]
                  },
                  "table": {
                    "type": "string"
                  },
                  "schema": {
                    "type": "string"
                  },
                  "filter": {
                    "type": "object",
                    "properties": {
                      "comparisons": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "input": {
                              "type": "string"
                            },
                            "operator": {
                              "type": "string",
                              "enum": [
                                "Equal to",
                                "Not equal",
                                "Contains",
                                "Greater than",
                                "Greater than or equal",
                                "Less than",
                                "Less than or equal",
                                "Is set",
                                "Is empty",
                                "Starts with",
                                "Ends with",
                                "In",
                                "Not in"
                              ]
                            },
                            "value": {
                              "type": "string"
                            }
                          }
                        }
                      },
                      "joiner": {
                        "type": "string",
                        "enum": [
                          "AND",
                          "OR"
                        ]
                      }
                    },
                    "required": [
                      "comparisons"
                    ]
                  },
                  "fields": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "key": {
                          "type": "string"
                        },
                        "value": {
                          "type": "string"
                        }
                      }
                    }
                  },
                  "responseMapping": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "item": {
                          "type": "string",
                          "enum": [
                            "Updated Rows",
                            "Table Name",
                            "Updated Count"
                          ]
                        },
                        "variableId": {
                          "type": "string"
                        }
                      }
                    }
                  }
                },
                "required": [
                  "action"
                ]
              },
              {
                "type": "object",
                "properties": {
                  "credentialsId": {
                    "type": "string"
                  },
                  "action": {
                    "type": "string",
                    "enum": [
                      "Delete Rows"
                    ]
                  },
                  "table": {
                    "type": "string"
                  },
                  "schema": {
                    "type": "string"
                  },
                  "filter": {
                    "type": "object",
                    "properties": {
                      "comparisons": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "input": {
                              "type": "string"
                            },
                            "operator": {
                              "type": "string",
                              "enum": [
                                "Equal to",
                                "Not equal",
                                "Contains",
                                "Greater than",
                                "Greater than or equal",
                                "Less than",
                                "Less than or equal",
                                "Is set",
                                "Is empty",
                                "Starts with",
                                "Ends with",
                                "In",
                                "Not in"
                              ]
                            },
                            "value": {
                              "type": "string"
                            }
                          }
                        }
                      },
                      "joiner": {
                        "type": "string",
                        "enum": [
                          "AND",
                          "OR"
                        ]
                      }
                    },
                    "required": [
                      "comparisons"
                    ]
                  },
                  "responseMapping": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "item": {
                          "type": "string",
                          "enum": [
                            "Deleted Rows",
                            "Table Name",
                            "Deleted Count"
                          ]
                        },
                        "variableId": {
                          "type": "string"
                        }
                      }
                    }
                  }
                },
                "required": [
                  "action"
                ]
              }
            ]
          }
        },
        "required": [
          "id",
          "type"
        ],
        "title": "Supabase"
      },
      "discordBlock": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "outgoingEdgeId": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "discord"
            ]
          },
          "options": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "credentialsId": {
                    "type": "string"
                  }
                }
              },
              {
                "type": "object",
                "properties": {
                  "credentialsId": {
                    "type": "string"
                  },
                  "action": {
                    "type": "string",
                    "enum": [
                      "Send simple message"
                    ]
                  },
                  "headline": {
                    "type": "string"
                  },
                  "body": {
                    "type": "string"
                  },
                  "footer": {
                    "type": "string"
                  },
                  "image": {
                    "type": "string"
                  },
                  "color": {
                    "type": "string"
                  }
                },
                "required": [
                  "action"
                ]
              },
              {
                "type": "object",
                "properties": {
                  "credentialsId": {
                    "type": "string"
                  },
                  "action": {
                    "type": "string",
                    "enum": [
                      "Send status message"
                    ]
                  },
                  "type": {
                    "type": "string",
                    "enum": [
                      "Info",
                      "Success",
                      "Warning",
                      "Error"
                    ]
                  },
                  "headline": {
                    "type": "string"
                  },
                  "body": {
                    "type": "string"
                  },
                  "footer": {
                    "type": "string"
                  }
                },
                "required": [
                  "action"
                ]
              },
              {
                "type": "object",
                "properties": {
                  "credentialsId": {
                    "type": "string"
                  },
                  "action": {
                    "type": "string",
                    "enum": [
                      "Send advanced message"
                    ]
                  },
                  "embedTitle": {
                    "type": "string"
                  },
                  "author": {
                    "type": "string"
                  },
                  "authorIcon": {
                    "type": "string"
                  },
                  "authorUrl": {
                    "type": "string"
                  },
                  "thumbnail": {
                    "type": "string"
                  },
                  "headline": {
                    "type": "string"
                  },
                  "headlineLink": {
                    "type": "string"
                  },
                  "body": {
                    "type": "string"
                  },
                  "image": {
                    "type": "string"
                  },
                  "footer": {
                    "type": "string"
                  },
                  "color": {
                    "type": "string"
                  },
                  "fields": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string"
                        },
                        "value": {
                          "type": "string"
                        },
                        "inline": {
                          "type": "boolean"
                        }
                      }
                    }
                  }
                },
                "required": [
                  "action"
                ]
              }
            ]
          }
        },
        "required": [
          "id",
          "type"
        ],
        "title": "Discord"
      },
      "deepseekBlock": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "outgoingEdgeId": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "deepseek"
            ]
          },
          "options": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "credentialsId": {
                    "type": "string"
                  }
                }
              },
              {
                "type": "object",
                "properties": {
                  "credentialsId": {
                    "type": "string"
                  },
                  "action": {
                    "type": "string",
                    "enum": [
                      "Create chat completion"
                    ]
                  },
                  "model": {
                    "type": "string"
                  },
                  "messages": {
                    "type": "array",
                    "items": {
                      "oneOf": [
                        {
                          "type": "object",
                          "properties": {}
                        },
                        {
                          "type": "object",
                          "properties": {
                            "role": {
                              "type": "string",
                              "enum": [
                                "system"
                              ]
                            },
                            "content": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "role"
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "role": {
                              "type": "string",
                              "enum": [
                                "user"
                              ]
                            },
                            "content": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "role"
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "role": {
                              "type": "string",
                              "enum": [
                                "assistant"
                              ]
                            },
                            "content": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "role"
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "role": {
                              "type": "string",
                              "enum": [
                                "Dialogue"
                              ]
                            },
                            "dialogueVariableId": {
                              "type": "string"
                            },
                            "startsBy": {
                              "type": "string",
                              "enum": [
                                "user",
                                "assistant"
                              ]
                            }
                          },
                          "required": [
                            "role"
                          ]
                        }
                      ]
                    }
                  },
                  "tools": {
                    "type": "array",
                    "items": {
                      "oneOf": [
                        {
                          "type": "object",
                          "properties": {}
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "enum": [
                                "function"
                              ]
                            },
                            "name": {
                              "type": "string"
                            },
                            "description": {
                              "type": "string"
                            },
                            "parameters": {
                              "type": "array",
                              "items": {
                                "oneOf": [
                                  {
                                    "type": "object",
                                    "properties": {}
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "enum": [
                                          "string"
                                        ]
                                      },
                                      "name": {
                                        "type": "string"
                                      },
                                      "description": {
                                        "type": "string"
                                      },
                                      "required": {
                                        "type": "boolean"
                                      }
                                    },
                                    "required": [
                                      "type"
                                    ]
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "enum": [
                                          "number"
                                        ]
                                      },
                                      "name": {
                                        "type": "string"
                                      },
                                      "description": {
                                        "type": "string"
                                      },
                                      "required": {
                                        "type": "boolean"
                                      }
                                    },
                                    "required": [
                                      "type"
                                    ]
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "enum": [
                                          "boolean"
                                        ]
                                      },
                                      "name": {
                                        "type": "string"
                                      },
                                      "description": {
                                        "type": "string"
                                      },
                                      "required": {
                                        "type": "boolean"
                                      }
                                    },
                                    "required": [
                                      "type"
                                    ]
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "enum": [
                                          "enum"
                                        ]
                                      },
                                      "values": {
                                        "type": "array",
                                        "items": {
                                          "type": "string"
                                        }
                                      },
                                      "name": {
                                        "type": "string"
                                      },
                                      "description": {
                                        "type": "string"
                                      },
                                      "required": {
                                        "type": "boolean"
                                      }
                                    },
                                    "required": [
                                      "type"
                                    ]
                                  }
                                ]
                              }
                            },
                            "code": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "type"
                          ]
                        }
                      ]
                    }
                  },
                  "temperature": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "number"
                      }
                    ]
                  },
                  "responseMapping": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "item": {
                          "type": "string",
                          "enum": [
                            "Message content",
                            "Total tokens",
                            "Prompt tokens",
                            "Completion tokens"
                          ]
                        },
                        "variableId": {
                          "type": "string"
                        }
                      }
                    }
                  }
                },
                "required": [
                  "action"
                ]
              }
            ]
          }
        },
        "required": [
          "id",
          "type"
        ],
        "title": "DeepSeek"
      },
      "perplexityBlock": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "outgoingEdgeId": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "perplexity"
            ]
          },
          "options": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "credentialsId": {
                    "type": "string"
                  }
                }
              },
              {
                "type": "object",
                "properties": {
                  "credentialsId": {
                    "type": "string"
                  },
                  "action": {
                    "type": "string",
                    "enum": [
                      "Create chat completion"
                    ]
                  },
                  "model": {
                    "type": "string"
                  },
                  "messages": {
                    "type": "array",
                    "items": {
                      "oneOf": [
                        {
                          "type": "object",
                          "properties": {}
                        },
                        {
                          "type": "object",
                          "properties": {
                            "role": {
                              "type": "string",
                              "enum": [
                                "system"
                              ]
                            },
                            "content": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "role"
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "role": {
                              "type": "string",
                              "enum": [
                                "user"
                              ]
                            },
                            "content": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "role"
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "role": {
                              "type": "string",
                              "enum": [
                                "assistant"
                              ]
                            },
                            "content": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "role"
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "role": {
                              "type": "string",
                              "enum": [
                                "Dialogue"
                              ]
                            },
                            "dialogueVariableId": {
                              "type": "string"
                            },
                            "startsBy": {
                              "type": "string",
                              "enum": [
                                "user",
                                "assistant"
                              ]
                            }
                          },
                          "required": [
                            "role"
                          ]
                        }
                      ]
                    }
                  },
                  "tools": {
                    "type": "array",
                    "items": {
                      "oneOf": [
                        {
                          "type": "object",
                          "properties": {}
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "enum": [
                                "function"
                              ]
                            },
                            "name": {
                              "type": "string"
                            },
                            "description": {
                              "type": "string"
                            },
                            "parameters": {
                              "type": "array",
                              "items": {
                                "oneOf": [
                                  {
                                    "type": "object",
                                    "properties": {}
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "enum": [
                                          "string"
                                        ]
                                      },
                                      "name": {
                                        "type": "string"
                                      },
                                      "description": {
                                        "type": "string"
                                      },
                                      "required": {
                                        "type": "boolean"
                                      }
                                    },
                                    "required": [
                                      "type"
                                    ]
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "enum": [
                                          "number"
                                        ]
                                      },
                                      "name": {
                                        "type": "string"
                                      },
                                      "description": {
                                        "type": "string"
                                      },
                                      "required": {
                                        "type": "boolean"
                                      }
                                    },
                                    "required": [
                                      "type"
                                    ]
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "enum": [
                                          "boolean"
                                        ]
                                      },
                                      "name": {
                                        "type": "string"
                                      },
                                      "description": {
                                        "type": "string"
                                      },
                                      "required": {
                                        "type": "boolean"
                                      }
                                    },
                                    "required": [
                                      "type"
                                    ]
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "enum": [
                                          "enum"
                                        ]
                                      },
                                      "values": {
                                        "type": "array",
                                        "items": {
                                          "type": "string"
                                        }
                                      },
                                      "name": {
                                        "type": "string"
                                      },
                                      "description": {
                                        "type": "string"
                                      },
                                      "required": {
                                        "type": "boolean"
                                      }
                                    },
                                    "required": [
                                      "type"
                                    ]
                                  }
                                ]
                              }
                            },
                            "code": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "type"
                          ]
                        }
                      ]
                    }
                  },
                  "temperature": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "number"
                      }
                    ]
                  },
                  "responseMapping": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "item": {
                          "type": "string",
                          "enum": [
                            "Message content",
                            "Total tokens",
                            "Prompt tokens",
                            "Completion tokens"
                          ]
                        },
                        "variableId": {
                          "type": "string"
                        }
                      }
                    }
                  }
                },
                "required": [
                  "action"
                ]
              }
            ]
          }
        },
        "required": [
          "id",
          "type"
        ],
        "title": "Perplexity"
      },
      "smartsheetBlock": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "outgoingEdgeId": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "smartsheet"
            ]
          },
          "options": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "credentialsId": {
                    "type": "string"
                  }
                }
              },
              {
                "type": "object",
                "properties": {
                  "credentialsId": {
                    "type": "string"
                  },
                  "action": {
                    "type": "string",
                    "enum": [
                      "Create Row"
                    ]
                  },
                  "sheetId": {
                    "type": "string"
                  },
                  "fields": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "key": {
                          "type": "string"
                        },
                        "value": {
                          "type": "string"
                        }
                      }
                    }
                  },
                  "responseMapping": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "item": {
                          "type": "string",
                          "enum": [
                            "Row Created",
                            "Sheet ID"
                          ]
                        },
                        "variableId": {
                          "type": "string"
                        }
                      }
                    }
                  }
                },
                "required": [
                  "action"
                ]
              },
              {
                "type": "object",
                "properties": {
                  "credentialsId": {
                    "type": "string"
                  },
                  "action": {
                    "type": "string",
                    "enum": [
                      "Get Rows"
                    ]
                  },
                  "sheetId": {
                    "type": "string"
                  },
                  "returnType": {
                    "type": "string",
                    "enum": [
                      "All",
                      "First",
                      "Last",
                      "Random"
                    ]
                  },
                  "rowNumber": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "number"
                      }
                    ]
                  },
                  "filterConditions": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "columnId": {
                          "type": "string"
                        },
                        "operator": {
                          "type": "string",
                          "enum": [
                            "Equal to",
                            "Not equal",
                            "Contains",
                            "Greater than",
                            "Greater than or equal",
                            "Less than",
                            "Less than or equal",
                            "Is set",
                            "Is empty",
                            "Starts with",
                            "Ends with",
                            "In",
                            "Not in"
                          ]
                        },
                        "value": {
                          "type": "string"
                        }
                      }
                    }
                  },
                  "filterJoiner": {
                    "type": "string",
                    "enum": [
                      "AND",
                      "OR"
                    ]
                  },
                  "searchQuery": {
                    "type": "string"
                  },
                  "select": {
                    "type": "string"
                  },
                  "limit": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "number"
                      }
                    ]
                  },
                  "responseMapping": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "item": {
                          "type": "string",
                          "enum": [
                            "Rows Found",
                            "Sheet ID",
                            "Rows Count"
                          ]
                        },
                        "variableId": {
                          "type": "string"
                        }
                      }
                    }
                  }
                },
                "required": [
                  "action"
                ]
              },
              {
                "type": "object",
                "properties": {
                  "credentialsId": {
                    "type": "string"
                  },
                  "action": {
                    "type": "string",
                    "enum": [
                      "Update Rows"
                    ]
                  },
                  "sheetId": {
                    "type": "string"
                  },
                  "filterConditions": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "columnId": {
                          "type": "string"
                        },
                        "operator": {
                          "type": "string",
                          "enum": [
                            "Equal to",
                            "Not equal",
                            "Contains",
                            "Greater than",
                            "Greater than or equal",
                            "Less than",
                            "Less than or equal",
                            "Is set",
                            "Is empty",
                            "Starts with",
                            "Ends with",
                            "In",
                            "Not in"
                          ]
                        },
                        "value": {
                          "type": "string"
                        }
                      }
                    }
                  },
                  "filterJoiner": {
                    "type": "string",
                    "enum": [
                      "AND",
                      "OR"
                    ]
                  },
                  "fields": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "key": {
                          "type": "string"
                        },
                        "value": {
                          "type": "string"
                        }
                      }
                    }
                  },
                  "responseMapping": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "item": {
                          "type": "string",
                          "enum": [
                            "Updated Rows",
                            "Sheet ID",
                            "Updated Count"
                          ]
                        },
                        "variableId": {
                          "type": "string"
                        }
                      }
                    }
                  }
                },
                "required": [
                  "action"
                ]
              },
              {
                "type": "object",
                "properties": {
                  "credentialsId": {
                    "type": "string"
                  },
                  "action": {
                    "type": "string",
                    "enum": [
                      "Delete Rows"
                    ]
                  },
                  "sheetId": {
                    "type": "string"
                  },
                  "filterConditions": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "columnId": {
                          "type": "string"
                        },
                        "operator": {
                          "type": "string",
                          "enum": [
                            "Equal to",
                            "Not equal",
                            "Contains",
                            "Greater than",
                            "Greater than or equal",
                            "Less than",
                            "Less than or equal",
                            "Is set",
                            "Is empty",
                            "Starts with",
                            "Ends with",
                            "In",
                            "Not in"
                          ]
                        },
                        "value": {
                          "type": "string"
                        }
                      }
                    }
                  },
                  "filterJoiner": {
                    "type": "string",
                    "enum": [
                      "AND",
                      "OR"
                    ]
                  },
                  "responseMapping": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "item": {
                          "type": "string",
                          "enum": [
                            "Deleted Rows",
                            "Sheet ID",
                            "Deleted Count"
                          ]
                        },
                        "variableId": {
                          "type": "string"
                        }
                      }
                    }
                  }
                },
                "required": [
                  "action"
                ]
              }
            ]
          }
        },
        "required": [
          "id",
          "type"
        ],
        "title": "Smartsheet"
      },
      "event": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "outgoingEdgeId": {
            "type": "string"
          },
          "graphCoordinates": {
            "type": "object",
            "properties": {
              "x": {
                "type": "number"
              },
              "y": {
                "type": "number"
              }
            },
            "required": [
              "x",
              "y"
            ]
          },
          "type": {
            "type": "string",
            "enum": [
              "start"
            ]
          }
        },
        "required": [
          "id",
          "graphCoordinates",
          "type"
        ],
        "description": "Event"
      },
      "settings": {
        "type": "object",
        "properties": {
          "general": {
            "type": "object",
            "properties": {
              "isBrandingEnabled": {
                "type": "boolean"
              },
              "brandingText": {
                "type": "string"
              },
              "brandingUrl": {
                "type": "string"
              },
              "isTypingEmulationEnabled": {
                "type": "boolean"
              },
              "isInputPrefillEnabled": {
                "type": "boolean"
              },
              "isHideQueryParamsEnabled": {
                "type": "boolean"
              },
              "isNewResultOnRefreshEnabled": {
                "type": "boolean"
              },
              "rememberUser": {
                "type": "object",
                "properties": {
                  "isEnabled": {
                    "type": "boolean"
                  },
                  "storage": {
                    "type": "string",
                    "enum": [
                      "session",
                      "local"
                    ]
                  }
                }
              },
              "expiration": {
                "type": "object",
                "properties": {
                  "expiresAt": {
                    "type": "string"
                  },
                  "expiredUrl": {
                    "type": "string"
                  },
                  "expiredTitle": {
                    "type": "string"
                  },
                  "expiredMessage": {
                    "type": "string"
                  }
                }
              }
            }
          },
          "typingEmulation": {
            "type": "object",
            "properties": {
              "enabled": {
                "type": "boolean"
              },
              "speed": {
                "type": "number"
              },
              "maxDelay": {
                "type": "number"
              },
              "delayBetweenBubbles": {
                "type": "number",
                "minimum": 0,
                "maximum": 5
              },
              "isDisabledOnFirstMessage": {
                "type": "boolean"
              }
            }
          },
          "metadata": {
            "type": "object",
            "properties": {
              "title": {
                "type": "string"
              },
              "description": {
                "type": "string"
              },
              "imageUrl": {
                "type": "string"
              },
              "favIconUrl": {
                "type": "string"
              },
              "customHeadCode": {
                "type": "string"
              },
              "googleTagManagerId": {
                "type": "string"
              }
            }
          },
          "whatsApp": {
            "type": "object",
            "properties": {
              "isEnabled": {
                "type": "boolean"
              },
              "startCondition": {
                "type": "object",
                "properties": {
                  "logicalOperator": {
                    "type": "string",
                    "enum": [
                      "OR",
                      "AND"
                    ]
                  },
                  "comparisons": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "comparisonOperator": {
                          "type": "string",
                          "enum": [
                            "Equal to",
                            "Not equal",
                            "Contains",
                            "Does not contain",
                            "Greater than",
                            "Greater or equal to",
                            "Less than",
                            "Less or equal to",
                            "Is set",
                            "Is empty",
                            "Starts with",
                            "Ends with",
                            "Matches regex",
                            "Does not match regex"
                          ]
                        },
                        "value": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "id"
                      ]
                    }
                  }
                },
                "required": [
                  "logicalOperator",
                  "comparisons"
                ]
              },
              "sessionExpiryTimeout": {
                "type": "number",
                "minimum": 0.01,
                "maximum": 48,
                "description": "Expiration delay in hours after latest interaction"
              }
            }
          },
          "publicShare": {
            "type": "object",
            "properties": {
              "isEnabled": {
                "type": "boolean"
              }
            }
          },
          "security": {
            "type": "object",
            "properties": {
              "allowedOrigins": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "password": {
                "type": "string"
              }
            }
          }
        },
        "title": "Settings"
      },
      "theme": {
        "type": "object",
        "properties": {
          "general": {
            "type": "object",
            "properties": {
              "font": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "oneOf": [
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "enum": [
                              "Google"
                            ]
                          },
                          "family": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "type"
                        ]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "enum": [
                              "Custom"
                            ]
                          },
                          "family": {
                            "type": "string"
                          },
                          "css": {
                            "type": "string"
                          },
                          "url": {
                            "type": "string",
                            "description": "Deprecated, use `css` instead"
                          }
                        },
                        "required": [
                          "type"
                        ]
                      }
                    ]
                  }
                ]
              },
              "background": {
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string",
                    "enum": [
                      "Color",
                      "Image",
                      "None"
                    ]
                  },
                  "content": {
                    "type": "string"
                  }
                }
              },
              "progressBar": {
                "type": "object",
                "properties": {
                  "isEnabled": {
                    "type": "boolean"
                  },
                  "color": {
                    "type": "string"
                  },
                  "backgroundColor": {
                    "type": "string"
                  },
                  "placement": {
                    "type": "string",
                    "enum": [
                      "Top",
                      "Bottom"
                    ]
                  },
                  "thickness": {
                    "type": "number"
                  },
                  "position": {
                    "type": "string",
                    "enum": [
                      "fixed",
                      "absolute"
                    ]
                  }
                }
              }
            }
          },
          "chat": {
            "type": "object",
            "properties": {
              "container": {
                "type": "object",
                "properties": {
                  "maxWidth": {
                    "type": "string"
                  },
                  "maxHeight": {
                    "type": "string"
                  },
                  "backgroundColor": {
                    "type": "string"
                  },
                  "color": {
                    "type": "string"
                  },
                  "blur": {
                    "type": "number"
                  },
                  "opacity": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 1
                  },
                  "shadow": {
                    "type": "string",
                    "enum": [
                      "none",
                      "sm",
                      "md",
                      "lg",
                      "xl",
                      "2xl"
                    ]
                  },
                  "border": {
                    "type": "object",
                    "properties": {
                      "thickness": {
                        "type": "number"
                      },
                      "color": {
                        "type": "string"
                      },
                      "roundeness": {
                        "type": "string",
                        "enum": [
                          "none",
                          "medium",
                          "large",
                          "custom"
                        ]
                      },
                      "customRoundeness": {
                        "type": "number"
                      },
                      "opacity": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 1
                      }
                    }
                  }
                }
              },
              "hostAvatar": {
                "type": "object",
                "properties": {
                  "isEnabled": {
                    "type": "boolean"
                  },
                  "url": {
                    "type": "string"
                  }
                }
              },
              "guestAvatar": {
                "type": "object",
                "properties": {
                  "isEnabled": {
                    "type": "boolean"
                  },
                  "url": {
                    "type": "string"
                  }
                }
              },
              "hostBubbles": {
                "type": "object",
                "properties": {
                  "backgroundColor": {
                    "type": "string"
                  },
                  "color": {
                    "type": "string"
                  },
                  "blur": {
                    "type": "number"
                  },
                  "opacity": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 1
                  },
                  "shadow": {
                    "type": "string",
                    "enum": [
                      "none",
                      "sm",
                      "md",
                      "lg",
                      "xl",
                      "2xl"
                    ]
                  },
                  "border": {
                    "type": "object",
                    "properties": {
                      "thickness": {
                        "type": "number"
                      },
                      "color": {
                        "type": "string"
                      },
                      "roundeness": {
                        "type": "string",
                        "enum": [
                          "none",
                          "medium",
                          "large",
                          "custom"
                        ]
                      },
                      "customRoundeness": {
                        "type": "number"
                      },
                      "opacity": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 1
                      }
                    }
                  }
                }
              },
              "guestBubbles": {
                "type": "object",
                "properties": {
                  "backgroundColor": {
                    "type": "string"
                  },
                  "color": {
                    "type": "string"
                  },
                  "blur": {
                    "type": "number"
                  },
                  "opacity": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 1
                  },
                  "shadow": {
                    "type": "string",
                    "enum": [
                      "none",
                      "sm",
                      "md",
                      "lg",
                      "xl",
                      "2xl"
                    ]
                  },
                  "border": {
                    "type": "object",
                    "properties": {
                      "thickness": {
                        "type": "number"
                      },
                      "color": {
                        "type": "string"
                      },
                      "roundeness": {
                        "type": "string",
                        "enum": [
                          "none",
                          "medium",
                          "large",
                          "custom"
                        ]
                      },
                      "customRoundeness": {
                        "type": "number"
                      },
                      "opacity": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 1
                      }
                    }
                  }
                }
              },
              "buttons": {
                "type": "object",
                "properties": {
                  "backgroundColor": {
                    "type": "string"
                  },
                  "color": {
                    "type": "string"
                  },
                  "blur": {
                    "type": "number"
                  },
                  "opacity": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 1
                  },
                  "shadow": {
                    "type": "string",
                    "enum": [
                      "none",
                      "sm",
                      "md",
                      "lg",
                      "xl",
                      "2xl"
                    ]
                  },
                  "border": {
                    "type": "object",
                    "properties": {
                      "thickness": {
                        "type": "number"
                      },
                      "color": {
                        "type": "string"
                      },
                      "roundeness": {
                        "type": "string",
                        "enum": [
                          "none",
                          "medium",
                          "large",
                          "custom"
                        ]
                      },
                      "customRoundeness": {
                        "type": "number"
                      },
                      "opacity": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 1
                      }
                    }
                  }
                }
              },
              "inputs": {
                "type": "object",
                "properties": {
                  "backgroundColor": {
                    "type": "string"
                  },
                  "color": {
                    "type": "string"
                  },
                  "blur": {
                    "type": "number"
                  },
                  "opacity": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 1
                  },
                  "shadow": {
                    "type": "string",
                    "enum": [
                      "none",
                      "sm",
                      "md",
                      "lg",
                      "xl",
                      "2xl"
                    ]
                  },
                  "border": {
                    "type": "object",
                    "properties": {
                      "thickness": {
                        "type": "number"
                      },
                      "color": {
                        "type": "string"
                      },
                      "roundeness": {
                        "type": "string",
                        "enum": [
                          "none",
                          "medium",
                          "large",
                          "custom"
                        ]
                      },
                      "customRoundeness": {
                        "type": "number"
                      },
                      "opacity": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 1
                      }
                    }
                  },
                  "placeholderColor": {
                    "type": "string"
                  }
                }
              },
              "roundness": {
                "type": "string",
                "enum": [
                  "none",
                  "medium",
                  "large"
                ],
                "description": "Deprecated, use `container.border.roundeness` instead"
              },
              "buttonsInput": {
                "type": "object",
                "properties": {
                  "layout": {
                    "type": "string",
                    "enum": [
                      "wrap",
                      "vertical"
                    ]
                  }
                }
              }
            }
          },
          "customCss": {
            "type": "string"
          }
        },
        "title": "Theme"
      },
      "AgentV5": {
        "type": "object",
        "properties": {
          "version": {
            "type": "string",
            "enum": [
              "3",
              "4",
              "5"
            ]
          },
          "id": {
            "type": "string"
          },
          "groups": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "title": {
                  "type": "string"
                },
                "graphCoordinates": {
                  "type": "object",
                  "properties": {
                    "x": {
                      "type": "number"
                    },
                    "y": {
                      "type": "number"
                    }
                  },
                  "required": [
                    "x",
                    "y"
                  ]
                },
                "blocks": {
                  "type": "array",
                  "items": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "outgoingEdgeId": {
                            "type": "string"
                          },
                          "type": {
                            "type": "string",
                            "enum": [
                              "start"
                            ]
                          },
                          "label": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "id",
                          "type",
                          "label"
                        ]
                      },
                      {
                        "oneOf": [
                          {
                            "$ref": "#/components/schemas/textBlock"
                          },
                          {
                            "$ref": "#/components/schemas/imageBlock"
                          },
                          {
                            "$ref": "#/components/schemas/videoBlock"
                          },
                          {
                            "$ref": "#/components/schemas/embedBlock"
                          },
                          {
                            "$ref": "#/components/schemas/audioBlock"
                          }
                        ],
                        "discriminator": {
                          "propertyName": "type",
                          "mapping": {
                            "text": "#/components/schemas/textBlock",
                            "image": "#/components/schemas/imageBlock",
                            "video": "#/components/schemas/videoBlock",
                            "embed": "#/components/schemas/embedBlock",
                            "audio": "#/components/schemas/audioBlock"
                          }
                        }
                      },
                      {
                        "oneOf": [
                          {
                            "$ref": "#/components/schemas/textInput"
                          },
                          {
                            "$ref": "#/components/schemas/email"
                          },
                          {
                            "$ref": "#/components/schemas/address"
                          },
                          {
                            "$ref": "#/components/schemas/password"
                          },
                          {
                            "$ref": "#/components/schemas/autocomplete"
                          },
                          {
                            "$ref": "#/components/schemas/numberInput"
                          },
                          {
                            "$ref": "#/components/schemas/url"
                          },
                          {
                            "$ref": "#/components/schemas/phoneNumberInput"
                          },
                          {
                            "$ref": "#/components/schemas/dateInput"
                          },
                          {
                            "$ref": "#/components/schemas/paymentInput"
                          },
                          {
                            "$ref": "#/components/schemas/rating"
                          },
                          {
                            "$ref": "#/components/schemas/buttonsInputV5"
                          },
                          {
                            "$ref": "#/components/schemas/fileInputV5"
                          },
                          {
                            "$ref": "#/components/schemas/pictureChoiceV5"
                          }
                        ],
                        "discriminator": {
                          "propertyName": "type",
                          "mapping": {
                            "text input": "#/components/schemas/textInput",
                            "email input": "#/components/schemas/email",
                            "address input": "#/components/schemas/address",
                            "password input": "#/components/schemas/password",
                            "autocomplete input": "#/components/schemas/autocomplete",
                            "number input": "#/components/schemas/numberInput",
                            "url input": "#/components/schemas/url",
                            "phone number input": "#/components/schemas/phoneNumberInput",
                            "date input": "#/components/schemas/dateInput",
                            "payment input": "#/components/schemas/paymentInput",
                            "rating input": "#/components/schemas/rating",
                            "choice input": "#/components/schemas/buttonsInputV5",
                            "file input": "#/components/schemas/fileInputV5",
                            "image choice": "#/components/schemas/pictureChoiceV5"
                          }
                        }
                      },
                      {
                        "oneOf": [
                          {
                            "$ref": "#/components/schemas/scriptLogic"
                          },
                          {
                            "$ref": "#/components/schemas/redirectLogic"
                          },
                          {
                            "$ref": "#/components/schemas/setVariableLogic"
                          },
                          {
                            "$ref": "#/components/schemas/AgentLinkLogic"
                          },
                          {
                            "$ref": "#/components/schemas/waitLogic"
                          },
                          {
                            "$ref": "#/components/schemas/jumpLogic"
                          },
                          {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string"
                              },
                              "outgoingEdgeId": {
                                "type": "string"
                              },
                              "type": {
                                "type": "string",
                                "enum": [
                                  "Condition"
                                ]
                              },
                              "items": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string"
                                    },
                                    "blockId": {
                                      "type": "string"
                                    },
                                    "outgoingEdgeId": {
                                      "type": "string"
                                    },
                                    "content": {
                                      "type": "object",
                                      "properties": {
                                        "logicalOperator": {
                                          "type": "string",
                                          "enum": [
                                            "OR",
                                            "AND"
                                          ]
                                        },
                                        "comparisons": {
                                          "type": "array",
                                          "items": {
                                            "type": "object",
                                            "properties": {
                                              "id": {
                                                "type": "string"
                                              },
                                              "variableId": {
                                                "type": "string"
                                              },
                                              "comparisonOperator": {
                                                "type": "string",
                                                "enum": [
                                                  "Equal to",
                                                  "Not equal",
                                                  "Contains",
                                                  "Does not contain",
                                                  "Greater than",
                                                  "Greater or equal to",
                                                  "Less than",
                                                  "Less or equal to",
                                                  "Is set",
                                                  "Is empty",
                                                  "Starts with",
                                                  "Ends with",
                                                  "Matches regex",
                                                  "Does not match regex"
                                                ]
                                              },
                                              "value": {
                                                "type": "string"
                                              }
                                            },
                                            "required": [
                                              "id"
                                            ]
                                          }
                                        }
                                      }
                                    }
                                  },
                                  "required": [
                                    "id"
                                  ]
                                }
                              }
                            },
                            "required": [
                              "id",
                              "type",
                              "items"
                            ]
                          },
                          {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string"
                              },
                              "outgoingEdgeId": {
                                "type": "string"
                              },
                              "type": {
                                "type": "string",
                                "enum": [
                                  "AB test"
                                ]
                              },
                              "items": {
                                "type": "array",
                                "maxItems": 2,
                                "minItems": 2,
                                "items": {
                                  "oneOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "id": {
                                          "type": "string"
                                        },
                                        "blockId": {
                                          "type": "string"
                                        },
                                        "outgoingEdgeId": {
                                          "type": "string"
                                        },
                                        "path": {
                                          "type": "string",
                                          "enum": [
                                            "a"
                                          ]
                                        }
                                      },
                                      "required": [
                                        "id",
                                        "path"
                                      ]
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "id": {
                                          "type": "string"
                                        },
                                        "blockId": {
                                          "type": "string"
                                        },
                                        "outgoingEdgeId": {
                                          "type": "string"
                                        },
                                        "path": {
                                          "type": "string",
                                          "enum": [
                                            "b"
                                          ]
                                        }
                                      },
                                      "required": [
                                        "id",
                                        "path"
                                      ]
                                    }
                                  ]
                                }
                              },
                              "options": {
                                "type": "object",
                                "properties": {
                                  "aPercent": {
                                    "type": "number",
                                    "minimum": 0,
                                    "maximum": 100
                                  }
                                }
                              }
                            },
                            "required": [
                              "id",
                              "type",
                              "items"
                            ]
                          }
                        ]
                      },
                      {
                        "oneOf": [
                          {
                            "$ref": "#/components/schemas/chatwootBlock"
                          },
                          {
                            "$ref": "#/components/schemas/googleAnalyticsBlock"
                          },
                          {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string"
                              },
                              "outgoingEdgeId": {
                                "type": "string"
                              },
                              "type": {
                                "type": "string",
                                "enum": [
                                  "OpenAI"
                                ]
                              },
                              "options": {
                                "oneOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "credentialsId": {
                                        "type": "string"
                                      },
                                      "baseUrl": {
                                        "type": "string"
                                      },
                                      "apiVersion": {
                                        "type": "string"
                                      }
                                    }
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "task": {
                                        "type": "string",
                                        "enum": [
                                          "Create chat completion"
                                        ]
                                      },
                                      "model": {
                                        "type": "string"
                                      },
                                      "messages": {
                                        "type": "array",
                                        "items": {
                                          "anyOf": [
                                            {
                                              "type": "object",
                                              "properties": {
                                                "id": {
                                                  "type": "string"
                                                },
                                                "role": {
                                                  "type": "string",
                                                  "enum": [
                                                    "system",
                                                    "user",
                                                    "assistant"
                                                  ]
                                                },
                                                "content": {
                                                  "type": "string"
                                                },
                                                "name": {
                                                  "type": "string"
                                                }
                                              },
                                              "required": [
                                                "id"
                                              ]
                                            },
                                            {
                                              "type": "object",
                                              "properties": {
                                                "id": {
                                                  "type": "string"
                                                },
                                                "role": {
                                                  "type": "string",
                                                  "enum": [
                                                    "Messages sequence ✨"
                                                  ]
                                                },
                                                "content": {
                                                  "type": "object",
                                                  "properties": {
                                                    "assistantMessagesVariableId": {
                                                      "type": "string"
                                                    },
                                                    "userMessagesVariableId": {
                                                      "type": "string"
                                                    }
                                                  }
                                                }
                                              },
                                              "required": [
                                                "id",
                                                "role"
                                              ]
                                            },
                                            {
                                              "type": "object",
                                              "properties": {
                                                "id": {
                                                  "type": "string"
                                                },
                                                "role": {
                                                  "type": "string",
                                                  "enum": [
                                                    "Dialogue"
                                                  ]
                                                },
                                                "dialogueVariableId": {
                                                  "type": "string"
                                                },
                                                "startsBy": {
                                                  "type": "string",
                                                  "enum": [
                                                    "user",
                                                    "assistant"
                                                  ]
                                                }
                                              },
                                              "required": [
                                                "id",
                                                "role"
                                              ]
                                            }
                                          ]
                                        }
                                      },
                                      "advancedSettings": {
                                        "type": "object",
                                        "properties": {
                                          "temperature": {
                                            "anyOf": [
                                              {
                                                "type": "number"
                                              },
                                              {}
                                            ]
                                          }
                                        }
                                      },
                                      "responseMapping": {
                                        "type": "array",
                                        "items": {
                                          "type": "object",
                                          "properties": {
                                            "id": {
                                              "type": "string"
                                            },
                                            "valueToExtract": {
                                              "type": "string",
                                              "enum": [
                                                "Message content",
                                                "Total tokens"
                                              ]
                                            },
                                            "variableId": {
                                              "type": "string"
                                            }
                                          },
                                          "required": [
                                            "id",
                                            "valueToExtract"
                                          ]
                                        }
                                      },
                                      "credentialsId": {
                                        "type": "string"
                                      },
                                      "baseUrl": {
                                        "type": "string"
                                      },
                                      "apiVersion": {
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "task"
                                    ]
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "task": {
                                        "type": "string",
                                        "enum": [
                                          "Create image"
                                        ]
                                      },
                                      "prompt": {
                                        "type": "string"
                                      },
                                      "advancedOptions": {
                                        "type": "object",
                                        "properties": {
                                          "size": {
                                            "type": "string",
                                            "enum": [
                                              "256x256",
                                              "512x512",
                                              "1024x1024"
                                            ]
                                          }
                                        }
                                      },
                                      "responseMapping": {
                                        "type": "array",
                                        "items": {
                                          "type": "object",
                                          "properties": {
                                            "id": {
                                              "type": "string"
                                            },
                                            "valueToExtract": {
                                              "type": "string",
                                              "enum": [
                                                "Image URL"
                                              ]
                                            },
                                            "variableId": {
                                              "type": "string"
                                            }
                                          },
                                          "required": [
                                            "id",
                                            "valueToExtract"
                                          ]
                                        }
                                      },
                                      "credentialsId": {
                                        "type": "string"
                                      },
                                      "baseUrl": {
                                        "type": "string"
                                      },
                                      "apiVersion": {
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "task",
                                      "advancedOptions",
                                      "responseMapping"
                                    ]
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "credentialsId": {
                                        "type": "string"
                                      },
                                      "baseUrl": {
                                        "type": "string"
                                      },
                                      "apiVersion": {
                                        "type": "string"
                                      },
                                      "task": {
                                        "type": "string",
                                        "enum": [
                                          "Create speech"
                                        ]
                                      },
                                      "model": {
                                        "type": "string"
                                      },
                                      "input": {
                                        "type": "string"
                                      },
                                      "voice": {
                                        "type": "string",
                                        "enum": [
                                          "alloy",
                                          "echo",
                                          "fable",
                                          "onyx",
                                          "nova",
                                          "shimmer"
                                        ]
                                      },
                                      "saveUrlInVariableId": {
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "task"
                                    ]
                                  }
                                ]
                              }
                            },
                            "required": [
                              "id",
                              "type"
                            ]
                          },
                          {
                            "$ref": "#/components/schemas/sendEmailBlock"
                          },
                          {
                            "$ref": "#/components/schemas/pixelBlock"
                          },
                          {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string"
                              },
                              "outgoingEdgeId": {
                                "type": "string"
                              },
                              "type": {
                                "type": "string",
                                "enum": [
                                  "Google Sheets"
                                ]
                              },
                              "options": {
                                "oneOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "credentialsId": {
                                        "type": "string"
                                      },
                                      "sheetId": {
                                        "type": "string"
                                      },
                                      "spreadsheetId": {
                                        "type": "string"
                                      },
                                      "action": {
                                        "type": "string",
                                        "enum": [
                                          "Get data from sheet"
                                        ]
                                      },
                                      "referenceCell": {
                                        "type": "object",
                                        "properties": {
                                          "column": {
                                            "type": "string"
                                          },
                                          "value": {
                                            "type": "string"
                                          },
                                          "id": {
                                            "type": "string"
                                          }
                                        },
                                        "required": [
                                          "id"
                                        ]
                                      },
                                      "filter": {
                                        "type": "object",
                                        "properties": {
                                          "comparisons": {
                                            "type": "array",
                                            "items": {
                                              "type": "object",
                                              "properties": {
                                                "id": {
                                                  "type": "string"
                                                },
                                                "column": {
                                                  "type": "string"
                                                },
                                                "comparisonOperator": {
                                                  "type": "string",
                                                  "enum": [
                                                    "Equal to",
                                                    "Not equal",
                                                    "Contains",
                                                    "Does not contain",
                                                    "Greater than",
                                                    "Greater or equal to",
                                                    "Less than",
                                                    "Less or equal to",
                                                    "Is set",
                                                    "Is empty",
                                                    "Starts with",
                                                    "Ends with",
                                                    "Matches regex",
                                                    "Does not match regex"
                                                  ]
                                                },
                                                "value": {
                                                  "type": "string"
                                                }
                                              },
                                              "required": [
                                                "id"
                                              ]
                                            }
                                          },
                                          "logicalOperator": {
                                            "type": "string",
                                            "enum": [
                                              "OR",
                                              "AND"
                                            ]
                                          }
                                        }
                                      },
                                      "cellsToExtract": {
                                        "type": "array",
                                        "items": {
                                          "type": "object",
                                          "properties": {
                                            "column": {
                                              "type": "string"
                                            },
                                            "id": {
                                              "type": "string"
                                            },
                                            "variableId": {
                                              "type": "string"
                                            }
                                          },
                                          "required": [
                                            "id"
                                          ]
                                        }
                                      },
                                      "totalRowsToExtract": {
                                        "type": "string",
                                        "enum": [
                                          "All",
                                          "First",
                                          "Last",
                                          "Random"
                                        ]
                                      }
                                    },
                                    "required": [
                                      "action"
                                    ]
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "credentialsId": {
                                        "type": "string"
                                      },
                                      "sheetId": {
                                        "type": "string"
                                      },
                                      "spreadsheetId": {
                                        "type": "string"
                                      },
                                      "action": {
                                        "type": "string",
                                        "enum": [
                                          "Insert a row"
                                        ]
                                      },
                                      "cellsToInsert": {
                                        "type": "array",
                                        "items": {
                                          "type": "object",
                                          "properties": {
                                            "column": {
                                              "type": "string"
                                            },
                                            "value": {
                                              "type": "string"
                                            },
                                            "id": {
                                              "type": "string"
                                            }
                                          },
                                          "required": [
                                            "id"
                                          ]
                                        }
                                      }
                                    },
                                    "required": [
                                      "action"
                                    ]
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "credentialsId": {
                                        "type": "string"
                                      },
                                      "sheetId": {
                                        "type": "string"
                                      },
                                      "spreadsheetId": {
                                        "type": "string"
                                      },
                                      "action": {
                                        "type": "string",
                                        "enum": [
                                          "Update a row"
                                        ]
                                      },
                                      "cellsToUpsert": {
                                        "type": "array",
                                        "items": {
                                          "type": "object",
                                          "properties": {
                                            "column": {
                                              "type": "string"
                                            },
                                            "value": {
                                              "type": "string"
                                            },
                                            "id": {
                                              "type": "string"
                                            }
                                          },
                                          "required": [
                                            "id"
                                          ]
                                        }
                                      },
                                      "referenceCell": {
                                        "type": "object",
                                        "properties": {
                                          "column": {
                                            "type": "string"
                                          },
                                          "value": {
                                            "type": "string"
                                          },
                                          "id": {
                                            "type": "string"
                                          }
                                        },
                                        "required": [
                                          "id"
                                        ]
                                      },
                                      "filter": {
                                        "type": "object",
                                        "properties": {
                                          "comparisons": {
                                            "type": "array",
                                            "items": {
                                              "type": "object",
                                              "properties": {
                                                "id": {
                                                  "type": "string"
                                                },
                                                "column": {
                                                  "type": "string"
                                                },
                                                "comparisonOperator": {
                                                  "type": "string",
                                                  "enum": [
                                                    "Equal to",
                                                    "Not equal",
                                                    "Contains",
                                                    "Does not contain",
                                                    "Greater than",
                                                    "Greater or equal to",
                                                    "Less than",
                                                    "Less or equal to",
                                                    "Is set",
                                                    "Is empty",
                                                    "Starts with",
                                                    "Ends with",
                                                    "Matches regex",
                                                    "Does not match regex"
                                                  ]
                                                },
                                                "value": {
                                                  "type": "string"
                                                }
                                              },
                                              "required": [
                                                "id"
                                              ]
                                            }
                                          },
                                          "logicalOperator": {
                                            "type": "string",
                                            "enum": [
                                              "OR",
                                              "AND"
                                            ]
                                          }
                                        }
                                      }
                                    },
                                    "required": [
                                      "action"
                                    ]
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "credentialsId": {
                                        "type": "string"
                                      },
                                      "sheetId": {
                                        "type": "string"
                                      },
                                      "spreadsheetId": {
                                        "type": "string"
                                      }
                                    }
                                  }
                                ]
                              }
                            },
                            "required": [
                              "id",
                              "type"
                            ]
                          },
                          {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string"
                              },
                              "outgoingEdgeId": {
                                "type": "string"
                              },
                              "type": {
                                "type": "string",
                                "enum": [
                                  "Make.com"
                                ]
                              },
                              "options": {
                                "type": "object",
                                "properties": {
                                  "variablesForTest": {
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "id": {
                                          "type": "string"
                                        },
                                        "variableId": {
                                          "type": "string"
                                        },
                                        "value": {
                                          "type": "string"
                                        }
                                      },
                                      "required": [
                                        "id"
                                      ]
                                    }
                                  },
                                  "responseVariableMapping": {
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "id": {
                                          "type": "string"
                                        },
                                        "variableId": {
                                          "type": "string"
                                        },
                                        "bodyPath": {
                                          "type": "string"
                                        }
                                      },
                                      "required": [
                                        "id"
                                      ]
                                    }
                                  },
                                  "isAdvancedConfig": {
                                    "type": "boolean"
                                  },
                                  "isCustomBody": {
                                    "type": "boolean"
                                  },
                                  "isExecutedOnClient": {
                                    "type": "boolean"
                                  },
                                  "webhook": {
                                    "type": "object",
                                    "properties": {
                                      "id": {
                                        "type": "string"
                                      },
                                      "queryParams": {
                                        "type": "array",
                                        "items": {
                                          "type": "object",
                                          "properties": {
                                            "id": {
                                              "type": "string"
                                            },
                                            "key": {
                                              "type": "string"
                                            },
                                            "value": {
                                              "type": "string"
                                            }
                                          },
                                          "required": [
                                            "id"
                                          ]
                                        }
                                      },
                                      "headers": {
                                        "type": "array",
                                        "items": {
                                          "type": "object",
                                          "properties": {
                                            "id": {
                                              "type": "string"
                                            },
                                            "key": {
                                              "type": "string"
                                            },
                                            "value": {
                                              "type": "string"
                                            }
                                          },
                                          "required": [
                                            "id"
                                          ]
                                        }
                                      },
                                      "method": {
                                        "type": "string",
                                        "enum": [
                                          "POST",
                                          "GET",
                                          "PUT",
                                          "DELETE",
                                          "PATCH",
                                          "HEAD",
                                          "CONNECT",
                                          "OPTIONS",
                                          "TRACE"
                                        ]
                                      },
                                      "url": {
                                        "type": "string"
                                      },
                                      "body": {
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "id"
                                    ]
                                  },
                                  "timeout": {
                                    "type": "number",
                                    "minimum": 1,
                                    "maximum": 120
                                  }
                                }
                              },
                              "webhookId": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "id",
                              "type"
                            ]
                          },
                          {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string"
                              },
                              "outgoingEdgeId": {
                                "type": "string"
                              },
                              "type": {
                                "type": "string",
                                "enum": [
                                  "Pabbly"
                                ]
                              },
                              "options": {
                                "type": "object",
                                "properties": {
                                  "variablesForTest": {
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "id": {
                                          "type": "string"
                                        },
                                        "variableId": {
                                          "type": "string"
                                        },
                                        "value": {
                                          "type": "string"
                                        }
                                      },
                                      "required": [
                                        "id"
                                      ]
                                    }
                                  },
                                  "responseVariableMapping": {
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "id": {
                                          "type": "string"
                                        },
                                        "variableId": {
                                          "type": "string"
                                        },
                                        "bodyPath": {
                                          "type": "string"
                                        }
                                      },
                                      "required": [
                                        "id"
                                      ]
                                    }
                                  },
                                  "isAdvancedConfig": {
                                    "type": "boolean"
                                  },
                                  "isCustomBody": {
                                    "type": "boolean"
                                  },
                                  "isExecutedOnClient": {
                                    "type": "boolean"
                                  },
                                  "webhook": {
                                    "type": "object",
                                    "properties": {
                                      "id": {
                                        "type": "string"
                                      },
                                      "queryParams": {
                                        "type": "array",
                                        "items": {
                                          "type": "object",
                                          "properties": {
                                            "id": {
                                              "type": "string"
                                            },
                                            "key": {
                                              "type": "string"
                                            },
                                            "value": {
                                              "type": "string"
                                            }
                                          },
                                          "required": [
                                            "id"
                                          ]
                                        }
                                      },
                                      "headers": {
                                        "type": "array",
                                        "items": {
                                          "type": "object",
                                          "properties": {
                                            "id": {
                                              "type": "string"
                                            },
                                            "key": {
                                              "type": "string"
                                            },
                                            "value": {
                                              "type": "string"
                                            }
                                          },
                                          "required": [
                                            "id"
                                          ]
                                        }
                                      },
                                      "method": {
                                        "type": "string",
                                        "enum": [
                                          "POST",
                                          "GET",
                                          "PUT",
                                          "DELETE",
                                          "PATCH",
                                          "HEAD",
                                          "CONNECT",
                                          "OPTIONS",
                                          "TRACE"
                                        ]
                                      },
                                      "url": {
                                        "type": "string"
                                      },
                                      "body": {
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "id"
                                    ]
                                  },
                                  "timeout": {
                                    "type": "number",
                                    "minimum": 1,
                                    "maximum": 120
                                  }
                                }
                              },
                              "webhookId": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "id",
                              "type"
                            ]
                          },
                          {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string"
                              },
                              "outgoingEdgeId": {
                                "type": "string"
                              },
                              "type": {
                                "type": "string",
                                "enum": [
                                  "Webhook"
                                ],
                                "description": "Legacy name for HTTP Request block"
                              },
                              "options": {
                                "type": "object",
                                "properties": {
                                  "variablesForTest": {
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "id": {
                                          "type": "string"
                                        },
                                        "variableId": {
                                          "type": "string"
                                        },
                                        "value": {
                                          "type": "string"
                                        }
                                      },
                                      "required": [
                                        "id"
                                      ]
                                    }
                                  },
                                  "responseVariableMapping": {
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "id": {
                                          "type": "string"
                                        },
                                        "variableId": {
                                          "type": "string"
                                        },
                                        "bodyPath": {
                                          "type": "string"
                                        }
                                      },
                                      "required": [
                                        "id"
                                      ]
                                    }
                                  },
                                  "isAdvancedConfig": {
                                    "type": "boolean"
                                  },
                                  "isCustomBody": {
                                    "type": "boolean"
                                  },
                                  "isExecutedOnClient": {
                                    "type": "boolean"
                                  },
                                  "webhook": {
                                    "type": "object",
                                    "properties": {
                                      "id": {
                                        "type": "string"
                                      },
                                      "queryParams": {
                                        "type": "array",
                                        "items": {
                                          "type": "object",
                                          "properties": {
                                            "id": {
                                              "type": "string"
                                            },
                                            "key": {
                                              "type": "string"
                                            },
                                            "value": {
                                              "type": "string"
                                            }
                                          },
                                          "required": [
                                            "id"
                                          ]
                                        }
                                      },
                                      "headers": {
                                        "type": "array",
                                        "items": {
                                          "type": "object",
                                          "properties": {
                                            "id": {
                                              "type": "string"
                                            },
                                            "key": {
                                              "type": "string"
                                            },
                                            "value": {
                                              "type": "string"
                                            }
                                          },
                                          "required": [
                                            "id"
                                          ]
                                        }
                                      },
                                      "method": {
                                        "type": "string",
                                        "enum": [
                                          "POST",
                                          "GET",
                                          "PUT",
                                          "DELETE",
                                          "PATCH",
                                          "HEAD",
                                          "CONNECT",
                                          "OPTIONS",
                                          "TRACE"
                                        ]
                                      },
                                      "url": {
                                        "type": "string"
                                      },
                                      "body": {
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "id"
                                    ]
                                  },
                                  "timeout": {
                                    "type": "number",
                                    "minimum": 1,
                                    "maximum": 120
                                  }
                                }
                              },
                              "webhookId": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "id",
                              "type"
                            ]
                          },
                          {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string"
                              },
                              "outgoingEdgeId": {
                                "type": "string"
                              },
                              "type": {
                                "type": "string",
                                "enum": [
                                  "Zapier"
                                ]
                              },
                              "options": {
                                "type": "object",
                                "properties": {
                                  "variablesForTest": {
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "id": {
                                          "type": "string"
                                        },
                                        "variableId": {
                                          "type": "string"
                                        },
                                        "value": {
                                          "type": "string"
                                        }
                                      },
                                      "required": [
                                        "id"
                                      ]
                                    }
                                  },
                                  "responseVariableMapping": {
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "id": {
                                          "type": "string"
                                        },
                                        "variableId": {
                                          "type": "string"
                                        },
                                        "bodyPath": {
                                          "type": "string"
                                        }
                                      },
                                      "required": [
                                        "id"
                                      ]
                                    }
                                  },
                                  "isAdvancedConfig": {
                                    "type": "boolean"
                                  },
                                  "isCustomBody": {
                                    "type": "boolean"
                                  },
                                  "isExecutedOnClient": {
                                    "type": "boolean"
                                  },
                                  "webhook": {
                                    "type": "object",
                                    "properties": {
                                      "id": {
                                        "type": "string"
                                      },
                                      "queryParams": {
                                        "type": "array",
                                        "items": {
                                          "type": "object",
                                          "properties": {
                                            "id": {
                                              "type": "string"
                                            },
                                            "key": {
                                              "type": "string"
                                            },
                                            "value": {
                                              "type": "string"
                                            }
                                          },
                                          "required": [
                                            "id"
                                          ]
                                        }
                                      },
                                      "headers": {
                                        "type": "array",
                                        "items": {
                                          "type": "object",
                                          "properties": {
                                            "id": {
                                              "type": "string"
                                            },
                                            "key": {
                                              "type": "string"
                                            },
                                            "value": {
                                              "type": "string"
                                            }
                                          },
                                          "required": [
                                            "id"
                                          ]
                                        }
                                      },
                                      "method": {
                                        "type": "string",
                                        "enum": [
                                          "POST",
                                          "GET",
                                          "PUT",
                                          "DELETE",
                                          "PATCH",
                                          "HEAD",
                                          "CONNECT",
                                          "OPTIONS",
                                          "TRACE"
                                        ]
                                      },
                                      "url": {
                                        "type": "string"
                                      },
                                      "body": {
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "id"
                                    ]
                                  },
                                  "timeout": {
                                    "type": "number",
                                    "minimum": 1,
                                    "maximum": 120
                                  }
                                }
                              },
                              "webhookId": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "id",
                              "type"
                            ]
                          }
                        ]
                      }
                    ]
                  }
                }
              },
              "required": [
                "id",
                "title",
                "graphCoordinates",
                "blocks"
              ]
            }
          },
          "events": {
            "type": "array"
          },
          "edges": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "from": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "blockId": {
                          "type": "string"
                        },
                        "itemId": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "blockId"
                      ]
                    },
                    {
                      "type": "object",
                      "properties": {
                        "eventId": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "eventId"
                      ]
                    }
                  ]
                },
                "to": {
                  "type": "object",
                  "properties": {
                    "groupId": {
                      "type": "string"
                    },
                    "blockId": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "groupId"
                  ]
                }
              },
              "required": [
                "id",
                "from",
                "to"
              ]
            }
          },
          "variables": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "isSessionVariable": {
                  "type": "boolean"
                },
                "value": {
                  "nullable": true,
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "nullable": true
                      }
                    }
                  ]
                }
              },
              "required": [
                "id",
                "name"
              ]
            }
          },
          "settings": {
            "$ref": "#/components/schemas/settings"
          },
          "theme": {
            "$ref": "#/components/schemas/theme"
          },
          "workspaceId": {
            "type": "string"
          },
          "updatedAt": {
            "type": "string"
          }
        },
        "required": [
          "version",
          "id",
          "groups",
          "events",
          "edges",
          "variables",
          "settings",
          "theme",
          "workspaceId",
          "updatedAt"
        ],
        "title": "Agent V5"
      },
      "buttonsInputV5": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "outgoingEdgeId": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "choice input"
            ]
          },
          "items": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "blockId": {
                  "type": "string"
                },
                "outgoingEdgeId": {
                  "type": "string"
                },
                "content": {
                  "type": "string"
                },
                "displayCondition": {
                  "type": "object",
                  "properties": {
                    "isEnabled": {
                      "type": "boolean"
                    },
                    "condition": {
                      "type": "object",
                      "properties": {
                        "logicalOperator": {
                          "type": "string",
                          "enum": [
                            "OR",
                            "AND"
                          ]
                        },
                        "comparisons": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string"
                              },
                              "variableId": {
                                "type": "string"
                              },
                              "comparisonOperator": {
                                "type": "string",
                                "enum": [
                                  "Equal to",
                                  "Not equal",
                                  "Contains",
                                  "Does not contain",
                                  "Greater than",
                                  "Greater or equal to",
                                  "Less than",
                                  "Less or equal to",
                                  "Is set",
                                  "Is empty",
                                  "Starts with",
                                  "Ends with",
                                  "Matches regex",
                                  "Does not match regex"
                                ]
                              },
                              "value": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "id"
                            ]
                          }
                        }
                      }
                    }
                  }
                }
              },
              "required": [
                "id"
              ]
            }
          },
          "options": {
            "type": "object",
            "properties": {
              "variableId": {
                "type": "string"
              },
              "isMultipleChoice": {
                "type": "boolean"
              },
              "buttonLabel": {
                "type": "string"
              },
              "dynamicVariableId": {
                "type": "string"
              },
              "isSearchable": {
                "type": "boolean"
              },
              "searchInputPlaceholder": {
                "type": "string"
              },
              "areInitialSearchButtonsVisible": {
                "type": "boolean"
              }
            }
          }
        },
        "required": [
          "id",
          "type",
          "items"
        ],
        "title": "Buttons v5"
      },
      "fileInputV5": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "outgoingEdgeId": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "file input"
            ]
          },
          "options": {
            "type": "object",
            "properties": {
              "variableId": {
                "type": "string"
              },
              "isRequired": {
                "type": "boolean"
              },
              "isMultipleAllowed": {
                "type": "boolean"
              },
              "labels": {
                "type": "object",
                "properties": {
                  "placeholder": {
                    "type": "string"
                  },
                  "button": {
                    "type": "string"
                  },
                  "clear": {
                    "type": "string"
                  },
                  "skip": {
                    "type": "string"
                  },
                  "success": {
                    "type": "object",
                    "properties": {
                      "single": {
                        "type": "string"
                      },
                      "multiple": {
                        "type": "string"
                      }
                    }
                  }
                }
              },
              "sizeLimit": {
                "type": "number"
              },
              "visibility": {
                "type": "string",
                "enum": [
                  "Auto",
                  "Public",
                  "Private"
                ]
              }
            }
          }
        },
        "required": [
          "id",
          "type"
        ],
        "title": "File input v5"
      },
      "pictureChoiceV5": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "outgoingEdgeId": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "image choice"
            ]
          },
          "items": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "blockId": {
                  "type": "string"
                },
                "outgoingEdgeId": {
                  "type": "string"
                },
                "pictureSrc": {
                  "type": "string"
                },
                "title": {
                  "type": "string"
                },
                "description": {
                  "type": "string"
                },
                "displayCondition": {
                  "type": "object",
                  "properties": {
                    "isEnabled": {
                      "type": "boolean"
                    },
                    "condition": {
                      "type": "object",
                      "properties": {
                        "logicalOperator": {
                          "type": "string",
                          "enum": [
                            "OR",
                            "AND"
                          ]
                        },
                        "comparisons": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string"
                              },
                              "variableId": {
                                "type": "string"
                              },
                              "comparisonOperator": {
                                "type": "string",
                                "enum": [
                                  "Equal to",
                                  "Not equal",
                                  "Contains",
                                  "Does not contain",
                                  "Greater than",
                                  "Greater or equal to",
                                  "Less than",
                                  "Less or equal to",
                                  "Is set",
                                  "Is empty",
                                  "Starts with",
                                  "Ends with",
                                  "Matches regex",
                                  "Does not match regex"
                                ]
                              },
                              "value": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "id"
                            ]
                          }
                        }
                      }
                    }
                  }
                }
              },
              "required": [
                "id"
              ]
            }
          },
          "options": {
            "type": "object",
            "properties": {
              "variableId": {
                "type": "string"
              },
              "isMultipleChoice": {
                "type": "boolean"
              },
              "showTitle": {
                "type": "boolean"
              },
              "isSearchable": {
                "type": "boolean"
              },
              "buttonLabel": {
                "type": "string"
              },
              "searchInputPlaceholder": {
                "type": "string"
              },
              "dynamicItems": {
                "type": "object",
                "properties": {
                  "isEnabled": {
                    "type": "boolean"
                  },
                  "titlesVariableId": {
                    "type": "string"
                  },
                  "descriptionsVariableId": {
                    "type": "string"
                  },
                  "pictureSrcsVariableId": {
                    "type": "string"
                  }
                }
              }
            }
          }
        },
        "required": [
          "id",
          "type",
          "items"
        ],
        "title": "Picture choice v5"
      },
      "textMessage": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "text"
            ]
          },
          "content": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string",
                    "enum": [
                      "richText"
                    ]
                  },
                  "richText": {}
                },
                "required": [
                  "type"
                ]
              },
              {
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string",
                    "enum": [
                      "markdown"
                    ]
                  },
                  "markdown": {
                    "type": "string"
                  }
                },
                "required": [
                  "type",
                  "markdown"
                ]
              }
            ]
          }
        },
        "required": [
          "type",
          "content"
        ],
        "title": "Text"
      },
      "imageMessage": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "image"
            ]
          },
          "content": {
            "type": "object",
            "properties": {
              "url": {
                "type": "string"
              },
              "clickLink": {
                "type": "object",
                "properties": {
                  "url": {
                    "type": "string"
                  },
                  "alt": {
                    "type": "string"
                  }
                }
              }
            }
          }
        },
        "required": [
          "type",
          "content"
        ],
        "title": "Image"
      },
      "videoMessage": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "video"
            ]
          },
          "content": {
            "type": "object",
            "properties": {
              "url": {
                "type": "string"
              },
              "id": {
                "type": "string"
              },
              "type": {
                "type": "string",
                "enum": [
                  "url",
                  "youtube",
                  "vimeo",
                  "tiktok",
                  "gumlet"
                ]
              },
              "height": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {}
                ]
              },
              "aspectRatio": {
                "type": "string"
              },
              "maxWidth": {
                "type": "string"
              },
              "queryParamsStr": {
                "type": "string"
              },
              "areControlsDisplayed": {
                "type": "boolean"
              },
              "isAutoplayEnabled": {
                "type": "boolean"
              }
            }
          }
        },
        "required": [
          "type",
          "content"
        ],
        "title": "Video"
      },
      "audioMessage": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "audio"
            ]
          },
          "content": {
            "type": "object",
            "properties": {
              "url": {
                "type": "string"
              },
              "isAutoplayEnabled": {
                "type": "boolean"
              }
            }
          }
        },
        "required": [
          "type",
          "content"
        ],
        "title": "Audio"
      },
      "embedMessage": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "embed"
            ]
          },
          "content": {
            "type": "object",
            "properties": {
              "url": {
                "type": "string"
              },
              "waitForEvent": {
                "type": "object",
                "properties": {
                  "isEnabled": {
                    "type": "boolean"
                  },
                  "name": {
                    "type": "string"
                  },
                  "saveDataInVariableId": {
                    "type": "string"
                  }
                }
              },
              "height": {
                "type": "number"
              }
            }
          }
        },
        "required": [
          "type",
          "content"
        ],
        "title": "Embed"
      },
      "customEmbedMessage": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "custom-embed"
            ]
          },
          "content": {
            "type": "object",
            "properties": {
              "url": {
                "type": "string"
              },
              "waitForEventFunction": {
                "type": "object",
                "properties": {
                  "args": {
                    "type": "object",
                    "additionalProperties": {}
                  },
                  "content": {
                    "type": "string"
                  }
                },
                "required": [
                  "args",
                  "content"
                ]
              },
              "initFunction": {
                "type": "object",
                "properties": {
                  "args": {
                    "type": "object",
                    "additionalProperties": {}
                  },
                  "content": {
                    "type": "string"
                  }
                },
                "required": [
                  "args",
                  "content"
                ]
              }
            },
            "required": [
              "initFunction"
            ]
          }
        },
        "required": [
          "type",
          "content"
        ],
        "title": "Custom embed"
      },
      "csaScriptToExecute": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "scriptToExecute"
            ]
          },
          "scriptToExecute": {
            "type": "object",
            "properties": {
              "content": {
                "type": "string"
              },
              "isCode": {
                "type": "boolean"
              },
              "args": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "value": {
                      "nullable": true,
                      "anyOf": [
                        {
                          "anyOf": [
                            {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "number"
                                }
                              ]
                            },
                            {
                              "type": "boolean"
                            }
                          ]
                        },
                        {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "nullable": true
                          }
                        }
                      ]
                    }
                  },
                  "required": [
                    "id"
                  ]
                }
              }
            },
            "required": [
              "content",
              "args"
            ]
          },
          "lastBubbleBlockId": {
            "type": "string"
          },
          "expectsDedicatedReply": {
            "type": "boolean"
          }
        },
        "required": [
          "type",
          "scriptToExecute"
        ],
        "title": "Script to execute"
      },
      "csaRedirect": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "redirect"
            ]
          },
          "redirect": {
            "type": "object",
            "properties": {
              "url": {
                "type": "string"
              },
              "isNewTab": {
                "type": "boolean"
              }
            }
          },
          "lastBubbleBlockId": {
            "type": "string"
          },
          "expectsDedicatedReply": {
            "type": "boolean"
          }
        },
        "required": [
          "type",
          "redirect"
        ],
        "title": "Redirect"
      },
      "csaChatwoot": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "chatwoot"
            ]
          },
          "chatwoot": {
            "type": "object",
            "properties": {
              "scriptToExecute": {
                "type": "object",
                "properties": {
                  "content": {
                    "type": "string"
                  },
                  "isCode": {
                    "type": "boolean"
                  },
                  "args": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "value": {
                          "nullable": true,
                          "anyOf": [
                            {
                              "anyOf": [
                                {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "number"
                                    }
                                  ]
                                },
                                {
                                  "type": "boolean"
                                }
                              ]
                            },
                            {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "nullable": true
                              }
                            }
                          ]
                        }
                      },
                      "required": [
                        "id"
                      ]
                    }
                  }
                },
                "required": [
                  "content",
                  "args"
                ]
              }
            },
            "required": [
              "scriptToExecute"
            ]
          },
          "lastBubbleBlockId": {
            "type": "string"
          },
          "expectsDedicatedReply": {
            "type": "boolean"
          }
        },
        "required": [
          "type",
          "chatwoot"
        ],
        "title": "Chatwoot"
      },
      "csaGa": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "googleAnalytics"
            ]
          },
          "googleAnalytics": {
            "type": "object",
            "properties": {
              "trackingId": {
                "type": "string"
              },
              "category": {
                "type": "string"
              },
              "action": {
                "type": "string"
              },
              "label": {
                "type": "string"
              },
              "value": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {}
                ]
              },
              "sendTo": {
                "type": "string"
              }
            }
          },
          "lastBubbleBlockId": {
            "type": "string"
          },
          "expectsDedicatedReply": {
            "type": "boolean"
          }
        },
        "required": [
          "type",
          "googleAnalytics"
        ],
        "title": "Google Analytics"
      },
      "csaWait": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "wait"
            ]
          },
          "wait": {
            "type": "object",
            "properties": {
              "secondsToWaitFor": {
                "type": "number"
              }
            },
            "required": [
              "secondsToWaitFor"
            ]
          },
          "lastBubbleBlockId": {
            "type": "string"
          },
          "expectsDedicatedReply": {
            "type": "boolean"
          }
        },
        "required": [
          "type",
          "wait"
        ],
        "title": "Wait"
      },
      "csaSetVariable": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "setVariable"
            ]
          },
          "setVariable": {
            "type": "object",
            "properties": {
              "scriptToExecute": {
                "type": "object",
                "properties": {
                  "content": {
                    "type": "string"
                  },
                  "isCode": {
                    "type": "boolean"
                  },
                  "args": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "value": {
                          "nullable": true,
                          "anyOf": [
                            {
                              "anyOf": [
                                {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "number"
                                    }
                                  ]
                                },
                                {
                                  "type": "boolean"
                                }
                              ]
                            },
                            {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "nullable": true
                              }
                            }
                          ]
                        }
                      },
                      "required": [
                        "id"
                      ]
                    }
                  }
                },
                "required": [
                  "content",
                  "args"
                ]
              }
            },
            "required": [
              "scriptToExecute"
            ]
          },
          "lastBubbleBlockId": {
            "type": "string"
          },
          "expectsDedicatedReply": {
            "type": "boolean"
          }
        },
        "required": [
          "type",
          "setVariable"
        ],
        "title": "Set variable"
      },
      "csaStreamOpenAiChatCompletion": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "streamOpenAiChatCompletion"
            ]
          },
          "streamOpenAiChatCompletion": {
            "type": "object",
            "properties": {
              "messages": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "content": {
                      "type": "string"
                    },
                    "role": {
                      "type": "string",
                      "enum": [
                        "system",
                        "user",
                        "assistant"
                      ]
                    }
                  }
                }
              }
            },
            "required": [
              "messages"
            ]
          },
          "lastBubbleBlockId": {
            "type": "string"
          },
          "expectsDedicatedReply": {
            "type": "boolean"
          }
        },
        "required": [
          "type",
          "streamOpenAiChatCompletion"
        ],
        "title": "Stream OpenAI"
      },
      "csaHttpRequestToExecute": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "httpRequestToExecute"
            ]
          },
          "httpRequestToExecute": {
            "type": "object",
            "properties": {
              "url": {
                "type": "string"
              },
              "headers": {
                "type": "object",
                "additionalProperties": {
                  "type": "string"
                }
              },
              "body": {},
              "method": {
                "type": "string",
                "enum": [
                  "POST",
                  "GET",
                  "PUT",
                  "DELETE",
                  "PATCH",
                  "HEAD",
                  "CONNECT",
                  "OPTIONS",
                  "TRACE"
                ]
              }
            },
            "required": [
              "url"
            ]
          },
          "lastBubbleBlockId": {
            "type": "string"
          },
          "expectsDedicatedReply": {
            "type": "boolean"
          }
        },
        "required": [
          "type",
          "httpRequestToExecute"
        ],
        "title": "Execute HTTP request"
      },
      "csaInjectStartProps": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "startPropsToInject"
            ]
          },
          "startPropsToInject": {
            "type": "object",
            "properties": {
              "googleAnalyticsId": {
                "type": "string"
              },
              "pixelIds": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "gtmId": {
                "type": "string"
              },
              "customHeadCode": {
                "type": "string"
              }
            }
          },
          "lastBubbleBlockId": {
            "type": "string"
          },
          "expectsDedicatedReply": {
            "type": "boolean"
          }
        },
        "required": [
          "type",
          "startPropsToInject"
        ],
        "title": "Inject start props"
      },
      "csaPixel": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "pixel"
            ]
          },
          "pixel": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "pixelId": {
                    "type": "string"
                  },
                  "isInitSkip": {
                    "type": "boolean"
                  },
                  "params": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "key": {
                          "type": "string"
                        },
                        "value": {}
                      },
                      "required": [
                        "id"
                      ]
                    }
                  }
                }
              },
              {
                "type": "object",
                "properties": {
                  "pixelId": {
                    "type": "string"
                  },
                  "isInitSkip": {
                    "type": "boolean"
                  },
                  "params": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "key": {
                          "type": "string"
                        },
                        "value": {}
                      },
                      "required": [
                        "id"
                      ]
                    }
                  },
                  "eventType": {
                    "type": "string",
                    "enum": [
                      "Lead",
                      "Contact",
                      "CompleteRegistration",
                      "Schedule",
                      "SubmitApplication",
                      "ViewContent",
                      "AddPaymentInfo",
                      "AddToCart",
                      "AddToWishlist",
                      "CustomizeProduct",
                      "Donate",
                      "FindLocation",
                      "InitiateCheckout",
                      "Purchase",
                      "Search",
                      "StartTrial",
                      "Subscribe"
                    ]
                  }
                },
                "required": [
                  "eventType"
                ]
              },
              {
                "type": "object",
                "properties": {
                  "pixelId": {
                    "type": "string"
                  },
                  "isInitSkip": {
                    "type": "boolean"
                  },
                  "params": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "key": {
                          "type": "string"
                        },
                        "value": {}
                      },
                      "required": [
                        "id"
                      ]
                    }
                  },
                  "eventType": {
                    "type": "string",
                    "enum": [
                      "Custom"
                    ]
                  },
                  "name": {
                    "type": "string"
                  }
                },
                "required": [
                  "eventType"
                ]
              }
            ]
          },
          "lastBubbleBlockId": {
            "type": "string"
          },
          "expectsDedicatedReply": {
            "type": "boolean"
          }
        },
        "required": [
          "type",
          "pixel"
        ],
        "title": "Init Pixel"
      },
      "csaStream": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "stream"
            ]
          },
          "stream": {
            "type": "boolean",
            "enum": [
              true
            ]
          },
          "lastBubbleBlockId": {
            "type": "string"
          },
          "expectsDedicatedReply": {
            "type": "boolean"
          }
        },
        "required": [
          "type",
          "stream"
        ],
        "title": "Exec stream"
      },
      "csaCodeToExecute": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "codeToExecute"
            ]
          },
          "codeToExecute": {
            "type": "object",
            "properties": {
              "args": {
                "type": "object",
                "additionalProperties": {}
              },
              "content": {
                "type": "string"
              }
            },
            "required": [
              "args",
              "content"
            ]
          },
          "lastBubbleBlockId": {
            "type": "string"
          },
          "expectsDedicatedReply": {
            "type": "boolean"
          }
        },
        "required": [
          "type",
          "codeToExecute"
        ],
        "title": "Execute code"
      },
      "csaListenForWebhook": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "listenForWebhook"
            ]
          },
          "lastBubbleBlockId": {
            "type": "string"
          },
          "expectsDedicatedReply": {
            "type": "boolean"
          }
        },
        "required": [
          "type"
        ],
        "title": "Listen to webhook"
      },
      "error.BAD_REQUEST": {
        "type": "object",
        "properties": {
          "message": {
            "type": "string",
            "description": "The error message",
            "example": "Invalid input data"
          },
          "code": {
            "type": "string",
            "description": "The error code",
            "example": "BAD_REQUEST"
          },
          "issues": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "required": [
                "message"
              ]
            },
            "description": "An array of issues that were responsible for the error",
            "example": []
          }
        },
        "required": [
          "message",
          "code"
        ],
        "title": "Error",
        "description": "The error information",
        "example": {
          "code": "BAD_REQUEST",
          "message": "Invalid input data",
          "issues": []
        }
      },
      "error.INTERNAL_SERVER_ERROR": {
        "type": "object",
        "properties": {
          "message": {
            "type": "string",
            "description": "The error message",
            "example": "Internal server error"
          },
          "code": {
            "type": "string",
            "description": "The error code",
            "example": "INTERNAL_SERVER_ERROR"
          },
          "issues": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "required": [
                "message"
              ]
            },
            "description": "An array of issues that were responsible for the error",
            "example": []
          }
        },
        "required": [
          "message",
          "code"
        ],
        "title": "Error",
        "description": "The error information",
        "example": {
          "code": "INTERNAL_SERVER_ERROR",
          "message": "Internal server error",
          "issues": []
        }
      },
      "textSentMessage": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "text"
            ]
          },
          "text": {
            "type": "string"
          },
          "attachedFileUrls": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Can only be provided when the current input block is a text block that supports attachments."
          }
        },
        "required": [
          "type",
          "text"
        ],
        "title": "Text"
      },
      "audioSentMessage": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "audio"
            ]
          },
          "url": {
            "type": "string"
          }
        },
        "required": [
          "type",
          "url"
        ],
        "description": "Can only be provided when the current input block is a text block that supports audio messages.",
        "title": "Audio"
      },
      "error.UNAUTHORIZED": {
        "type": "object",
        "properties": {
          "message": {
            "type": "string",
            "description": "The error message",
            "example": "Authorization not provided"
          },
          "code": {
            "type": "string",
            "description": "The error code",
            "example": "UNAUTHORIZED"
          },
          "issues": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "required": [
                "message"
              ]
            },
            "description": "An array of issues that were responsible for the error",
            "example": []
          }
        },
        "required": [
          "message",
          "code"
        ],
        "title": "Error",
        "description": "The error information",
        "example": {
          "code": "UNAUTHORIZED",
          "message": "Authorization not provided",
          "issues": []
        }
      },
      "error.FORBIDDEN": {
        "type": "object",
        "properties": {
          "message": {
            "type": "string",
            "description": "The error message",
            "example": "Insufficient access"
          },
          "code": {
            "type": "string",
            "description": "The error code",
            "example": "FORBIDDEN"
          },
          "issues": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "required": [
                "message"
              ]
            },
            "description": "An array of issues that were responsible for the error",
            "example": []
          }
        },
        "required": [
          "message",
          "code"
        ],
        "title": "Error",
        "description": "The error information",
        "example": {
          "code": "FORBIDDEN",
          "message": "Insufficient access",
          "issues": []
        }
      },
      "error.NOT_FOUND": {
        "type": "object",
        "properties": {
          "message": {
            "type": "string",
            "description": "The error message",
            "example": "Not found"
          },
          "code": {
            "type": "string",
            "description": "The error code",
            "example": "NOT_FOUND"
          },
          "issues": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "required": [
                "message"
              ]
            },
            "description": "An array of issues that were responsible for the error",
            "example": []
          }
        },
        "required": [
          "message",
          "code"
        ],
        "title": "Error",
        "description": "The error information",
        "example": {
          "code": "NOT_FOUND",
          "message": "Not found",
          "issues": []
        }
      }
    }
  }
}