@urbiport/js 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (316) hide show
  1. package/README.md +169 -0
  2. package/dist/components/Bot.d.ts +26 -0
  3. package/dist/components/Bot.d.ts.map +1 -0
  4. package/dist/components/Button.d.ts +10 -0
  5. package/dist/components/Button.d.ts.map +1 -0
  6. package/dist/components/ConversationContainer/AvatarSideContainer.d.ts +8 -0
  7. package/dist/components/ConversationContainer/AvatarSideContainer.d.ts.map +1 -0
  8. package/dist/components/ConversationContainer/ChatChunk.d.ts +20 -0
  9. package/dist/components/ConversationContainer/ChatChunk.d.ts.map +1 -0
  10. package/dist/components/ConversationContainer/ConversationContainer.d.ts +17 -0
  11. package/dist/components/ConversationContainer/ConversationContainer.d.ts.map +1 -0
  12. package/dist/components/ConversationContainer/LoadingChunk.d.ts +7 -0
  13. package/dist/components/ConversationContainer/LoadingChunk.d.ts.map +1 -0
  14. package/dist/components/ConversationContainer/PopupBlockedToast.d.ts +7 -0
  15. package/dist/components/ConversationContainer/PopupBlockedToast.d.ts.map +1 -0
  16. package/dist/components/ConversationContainer/index.d.ts +2 -0
  17. package/dist/components/ConversationContainer/index.d.ts.map +1 -0
  18. package/dist/components/ErrorMessage.d.ts +6 -0
  19. package/dist/components/ErrorMessage.d.ts.map +1 -0
  20. package/dist/components/InputChatBlock.d.ts +18 -0
  21. package/dist/components/InputChatBlock.d.ts.map +1 -0
  22. package/dist/components/LiteBadge.d.ts +6 -0
  23. package/dist/components/LiteBadge.d.ts.map +1 -0
  24. package/dist/components/Modal.d.ts +9 -0
  25. package/dist/components/Modal.d.ts.map +1 -0
  26. package/dist/components/ProgressBar.d.ts +6 -0
  27. package/dist/components/ProgressBar.d.ts.map +1 -0
  28. package/dist/components/SendButton.d.ts +10 -0
  29. package/dist/components/SendButton.d.ts.map +1 -0
  30. package/dist/components/Spinner.d.ts +3 -0
  31. package/dist/components/Spinner.d.ts.map +1 -0
  32. package/dist/components/TextInputAddFileButton.d.ts +7 -0
  33. package/dist/components/TextInputAddFileButton.d.ts.map +1 -0
  34. package/dist/components/TypingBubble.d.ts +2 -0
  35. package/dist/components/TypingBubble.d.ts.map +1 -0
  36. package/dist/components/avatars/Avatar.d.ts +4 -0
  37. package/dist/components/avatars/Avatar.d.ts.map +1 -0
  38. package/dist/components/avatars/DefaultAvatar.d.ts +2 -0
  39. package/dist/components/avatars/DefaultAvatar.d.ts.map +1 -0
  40. package/dist/components/bubbles/GuestBubble.d.ts +10 -0
  41. package/dist/components/bubbles/GuestBubble.d.ts.map +1 -0
  42. package/dist/components/bubbles/HostBubble.d.ts +12 -0
  43. package/dist/components/bubbles/HostBubble.d.ts.map +1 -0
  44. package/dist/components/bubbles/LoadingBubble.d.ts +2 -0
  45. package/dist/components/bubbles/LoadingBubble.d.ts.map +1 -0
  46. package/dist/components/bubbles/StreamingBubble.d.ts +8 -0
  47. package/dist/components/bubbles/StreamingBubble.d.ts.map +1 -0
  48. package/dist/components/icons/CameraIcon.d.ts +3 -0
  49. package/dist/components/icons/CameraIcon.d.ts.map +1 -0
  50. package/dist/components/icons/CheckIcon.d.ts +3 -0
  51. package/dist/components/icons/CheckIcon.d.ts.map +1 -0
  52. package/dist/components/icons/ChevronDownIcon.d.ts +3 -0
  53. package/dist/components/icons/ChevronDownIcon.d.ts.map +1 -0
  54. package/dist/components/icons/CloseIcon.d.ts +3 -0
  55. package/dist/components/icons/CloseIcon.d.ts.map +1 -0
  56. package/dist/components/icons/FileIcon.d.ts +3 -0
  57. package/dist/components/icons/FileIcon.d.ts.map +1 -0
  58. package/dist/components/icons/MicrophoneIcon.d.ts +3 -0
  59. package/dist/components/icons/MicrophoneIcon.d.ts.map +1 -0
  60. package/dist/components/icons/PaperClipIcon.d.ts +3 -0
  61. package/dist/components/icons/PaperClipIcon.d.ts.map +1 -0
  62. package/dist/components/icons/PictureIcon.d.ts +3 -0
  63. package/dist/components/icons/PictureIcon.d.ts.map +1 -0
  64. package/dist/components/icons/PlusIcon.d.ts +3 -0
  65. package/dist/components/icons/PlusIcon.d.ts.map +1 -0
  66. package/dist/components/icons/SendIcon.d.ts +3 -0
  67. package/dist/components/icons/SendIcon.d.ts.map +1 -0
  68. package/dist/components/icons/TypebotLogo.d.ts +2 -0
  69. package/dist/components/icons/TypebotLogo.d.ts.map +1 -0
  70. package/dist/components/icons/index.d.ts +2 -0
  71. package/dist/components/icons/index.d.ts.map +1 -0
  72. package/dist/components/index.d.ts +4 -0
  73. package/dist/components/index.d.ts.map +1 -0
  74. package/dist/components/inputs/SearchInput.d.ts +9 -0
  75. package/dist/components/inputs/SearchInput.d.ts.map +1 -0
  76. package/dist/components/inputs/ShortTextInput.d.ts +8 -0
  77. package/dist/components/inputs/ShortTextInput.d.ts.map +1 -0
  78. package/dist/components/inputs/Textarea.d.ts +8 -0
  79. package/dist/components/inputs/Textarea.d.ts.map +1 -0
  80. package/dist/components/inputs/index.d.ts +3 -0
  81. package/dist/components/inputs/index.d.ts.map +1 -0
  82. package/dist/constants.d.ts +7 -0
  83. package/dist/constants.d.ts.map +1 -0
  84. package/dist/features/blocks/bubbles/audio/components/AudioBubble.d.ts +8 -0
  85. package/dist/features/blocks/bubbles/audio/components/AudioBubble.d.ts.map +1 -0
  86. package/dist/features/blocks/bubbles/audio/components/index.d.ts +2 -0
  87. package/dist/features/blocks/bubbles/audio/components/index.d.ts.map +1 -0
  88. package/dist/features/blocks/bubbles/audio/index.d.ts +2 -0
  89. package/dist/features/blocks/bubbles/audio/index.d.ts.map +1 -0
  90. package/dist/features/blocks/bubbles/embed/components/CustomEmbedBubble.d.ts +11 -0
  91. package/dist/features/blocks/bubbles/embed/components/CustomEmbedBubble.d.ts.map +1 -0
  92. package/dist/features/blocks/bubbles/embed/components/EmbedBubble.d.ts +11 -0
  93. package/dist/features/blocks/bubbles/embed/components/EmbedBubble.d.ts.map +1 -0
  94. package/dist/features/blocks/bubbles/embed/components/index.d.ts +2 -0
  95. package/dist/features/blocks/bubbles/embed/components/index.d.ts.map +1 -0
  96. package/dist/features/blocks/bubbles/embed/index.d.ts +2 -0
  97. package/dist/features/blocks/bubbles/embed/index.d.ts.map +1 -0
  98. package/dist/features/blocks/bubbles/image/components/ImageBubble.d.ts +10 -0
  99. package/dist/features/blocks/bubbles/image/components/ImageBubble.d.ts.map +1 -0
  100. package/dist/features/blocks/bubbles/image/index.d.ts +2 -0
  101. package/dist/features/blocks/bubbles/image/index.d.ts.map +1 -0
  102. package/dist/features/blocks/bubbles/textBubble/components/TextBubble.d.ts +11 -0
  103. package/dist/features/blocks/bubbles/textBubble/components/TextBubble.d.ts.map +1 -0
  104. package/dist/features/blocks/bubbles/textBubble/components/plate/PlateBlock.d.ts +9 -0
  105. package/dist/features/blocks/bubbles/textBubble/components/plate/PlateBlock.d.ts.map +1 -0
  106. package/dist/features/blocks/bubbles/textBubble/components/plate/PlateText.d.ts +9 -0
  107. package/dist/features/blocks/bubbles/textBubble/components/plate/PlateText.d.ts.map +1 -0
  108. package/dist/features/blocks/bubbles/textBubble/helpers/convertRichTextToPlainText.d.ts +3 -0
  109. package/dist/features/blocks/bubbles/textBubble/helpers/convertRichTextToPlainText.d.ts.map +1 -0
  110. package/dist/features/blocks/bubbles/textBubble/index.d.ts +2 -0
  111. package/dist/features/blocks/bubbles/textBubble/index.d.ts.map +1 -0
  112. package/dist/features/blocks/bubbles/video/components/VideoBubble.d.ts +9 -0
  113. package/dist/features/blocks/bubbles/video/components/VideoBubble.d.ts.map +1 -0
  114. package/dist/features/blocks/bubbles/video/index.d.ts +2 -0
  115. package/dist/features/blocks/bubbles/video/index.d.ts.map +1 -0
  116. package/dist/features/blocks/inputs/buttons/components/Buttons.d.ts +11 -0
  117. package/dist/features/blocks/inputs/buttons/components/Buttons.d.ts.map +1 -0
  118. package/dist/features/blocks/inputs/buttons/components/Checkbox.d.ts +7 -0
  119. package/dist/features/blocks/inputs/buttons/components/Checkbox.d.ts.map +1 -0
  120. package/dist/features/blocks/inputs/buttons/components/MultipleChoicesForm.d.ts +10 -0
  121. package/dist/features/blocks/inputs/buttons/components/MultipleChoicesForm.d.ts.map +1 -0
  122. package/dist/features/blocks/inputs/date/components/DateForm.d.ts +10 -0
  123. package/dist/features/blocks/inputs/date/components/DateForm.d.ts.map +1 -0
  124. package/dist/features/blocks/inputs/date/index.d.ts +2 -0
  125. package/dist/features/blocks/inputs/date/index.d.ts.map +1 -0
  126. package/dist/features/blocks/inputs/email/components/EmailInput.d.ts +10 -0
  127. package/dist/features/blocks/inputs/email/components/EmailInput.d.ts.map +1 -0
  128. package/dist/features/blocks/inputs/email/index.d.ts +2 -0
  129. package/dist/features/blocks/inputs/email/index.d.ts.map +1 -0
  130. package/dist/features/blocks/inputs/fileUpload/components/FilePreview.d.ts +8 -0
  131. package/dist/features/blocks/inputs/fileUpload/components/FilePreview.d.ts.map +1 -0
  132. package/dist/features/blocks/inputs/fileUpload/components/FileUploadForm.d.ts +11 -0
  133. package/dist/features/blocks/inputs/fileUpload/components/FileUploadForm.d.ts.map +1 -0
  134. package/dist/features/blocks/inputs/fileUpload/components/SelectedFile.d.ts +6 -0
  135. package/dist/features/blocks/inputs/fileUpload/components/SelectedFile.d.ts.map +1 -0
  136. package/dist/features/blocks/inputs/fileUpload/helpers/sanitizeSelectedFiles.d.ts +14 -0
  137. package/dist/features/blocks/inputs/fileUpload/helpers/sanitizeSelectedFiles.d.ts.map +1 -0
  138. package/dist/features/blocks/inputs/fileUpload/helpers/uploadFiles.d.ts +21 -0
  139. package/dist/features/blocks/inputs/fileUpload/helpers/uploadFiles.d.ts.map +1 -0
  140. package/dist/features/blocks/inputs/fileUpload/index.d.ts +2 -0
  141. package/dist/features/blocks/inputs/fileUpload/index.d.ts.map +1 -0
  142. package/dist/features/blocks/inputs/number/components/NumberInput.d.ts +10 -0
  143. package/dist/features/blocks/inputs/number/components/NumberInput.d.ts.map +1 -0
  144. package/dist/features/blocks/inputs/number/index.d.ts +2 -0
  145. package/dist/features/blocks/inputs/number/index.d.ts.map +1 -0
  146. package/dist/features/blocks/inputs/number/numberInputHelper.d.ts +2 -0
  147. package/dist/features/blocks/inputs/number/numberInputHelper.d.ts.map +1 -0
  148. package/dist/features/blocks/inputs/payment/components/PaymentForm.d.ts +11 -0
  149. package/dist/features/blocks/inputs/payment/components/PaymentForm.d.ts.map +1 -0
  150. package/dist/features/blocks/inputs/payment/components/StripePaymentForm.d.ts +11 -0
  151. package/dist/features/blocks/inputs/payment/components/StripePaymentForm.d.ts.map +1 -0
  152. package/dist/features/blocks/inputs/payment/components/index.d.ts +2 -0
  153. package/dist/features/blocks/inputs/payment/components/index.d.ts.map +1 -0
  154. package/dist/features/blocks/inputs/payment/helpers/paymentInProgressStorage.d.ts +5 -0
  155. package/dist/features/blocks/inputs/payment/helpers/paymentInProgressStorage.d.ts.map +1 -0
  156. package/dist/features/blocks/inputs/payment/index.d.ts +2 -0
  157. package/dist/features/blocks/inputs/payment/index.d.ts.map +1 -0
  158. package/dist/features/blocks/inputs/phone/components/PhoneInput.d.ts +9 -0
  159. package/dist/features/blocks/inputs/phone/components/PhoneInput.d.ts.map +1 -0
  160. package/dist/features/blocks/inputs/phone/index.d.ts +2 -0
  161. package/dist/features/blocks/inputs/phone/index.d.ts.map +1 -0
  162. package/dist/features/blocks/inputs/pictureChoice/MultiplePictureChoice.d.ts +11 -0
  163. package/dist/features/blocks/inputs/pictureChoice/MultiplePictureChoice.d.ts.map +1 -0
  164. package/dist/features/blocks/inputs/pictureChoice/SinglePictureChoice.d.ts +11 -0
  165. package/dist/features/blocks/inputs/pictureChoice/SinglePictureChoice.d.ts.map +1 -0
  166. package/dist/features/blocks/inputs/rating/components/RatingForm.d.ts +10 -0
  167. package/dist/features/blocks/inputs/rating/components/RatingForm.d.ts.map +1 -0
  168. package/dist/features/blocks/inputs/rating/index.d.ts +2 -0
  169. package/dist/features/blocks/inputs/rating/index.d.ts.map +1 -0
  170. package/dist/features/blocks/inputs/textInput/components/TextInput.d.ts +11 -0
  171. package/dist/features/blocks/inputs/textInput/components/TextInput.d.ts.map +1 -0
  172. package/dist/features/blocks/inputs/textInput/components/VoiceRecorder.d.ts +10 -0
  173. package/dist/features/blocks/inputs/textInput/components/VoiceRecorder.d.ts.map +1 -0
  174. package/dist/features/blocks/inputs/textInput/components/VolumeProcessor.d.ts +2 -0
  175. package/dist/features/blocks/inputs/textInput/components/VolumeProcessor.d.ts.map +1 -0
  176. package/dist/features/blocks/inputs/textInput/index.d.ts +2 -0
  177. package/dist/features/blocks/inputs/textInput/index.d.ts.map +1 -0
  178. package/dist/features/blocks/inputs/url/components/UrlInput.d.ts +10 -0
  179. package/dist/features/blocks/inputs/url/components/UrlInput.d.ts.map +1 -0
  180. package/dist/features/blocks/inputs/url/index.d.ts +2 -0
  181. package/dist/features/blocks/inputs/url/index.d.ts.map +1 -0
  182. package/dist/features/blocks/integrations/chatwoot/index.d.ts +2 -0
  183. package/dist/features/blocks/integrations/chatwoot/index.d.ts.map +1 -0
  184. package/dist/features/blocks/integrations/chatwoot/utils/executeChatwoot.d.ts +5 -0
  185. package/dist/features/blocks/integrations/chatwoot/utils/executeChatwoot.d.ts.map +1 -0
  186. package/dist/features/blocks/integrations/chatwoot/utils/index.d.ts +2 -0
  187. package/dist/features/blocks/integrations/chatwoot/utils/index.d.ts.map +1 -0
  188. package/dist/features/blocks/integrations/googleAnalytics/index.d.ts +2 -0
  189. package/dist/features/blocks/integrations/googleAnalytics/index.d.ts.map +1 -0
  190. package/dist/features/blocks/integrations/googleAnalytics/utils/executeGoogleAnalytics.d.ts +3 -0
  191. package/dist/features/blocks/integrations/googleAnalytics/utils/executeGoogleAnalytics.d.ts.map +1 -0
  192. package/dist/features/blocks/integrations/googleAnalytics/utils/index.d.ts +2 -0
  193. package/dist/features/blocks/integrations/googleAnalytics/utils/index.d.ts.map +1 -0
  194. package/dist/features/blocks/integrations/openai/streamChat.d.ts +17 -0
  195. package/dist/features/blocks/integrations/openai/streamChat.d.ts.map +1 -0
  196. package/dist/features/blocks/integrations/pixel/executePixel.d.ts +3 -0
  197. package/dist/features/blocks/integrations/pixel/executePixel.d.ts.map +1 -0
  198. package/dist/features/blocks/integrations/webhook/executeWebhook.d.ts +3 -0
  199. package/dist/features/blocks/integrations/webhook/executeWebhook.d.ts.map +1 -0
  200. package/dist/features/blocks/logic/redirect/index.d.ts +2 -0
  201. package/dist/features/blocks/logic/redirect/index.d.ts.map +1 -0
  202. package/dist/features/blocks/logic/redirect/utils/executeRedirect.d.ts +5 -0
  203. package/dist/features/blocks/logic/redirect/utils/executeRedirect.d.ts.map +1 -0
  204. package/dist/features/blocks/logic/redirect/utils/index.d.ts +2 -0
  205. package/dist/features/blocks/logic/redirect/utils/index.d.ts.map +1 -0
  206. package/dist/features/blocks/logic/script/executeScript.d.ts +9 -0
  207. package/dist/features/blocks/logic/script/executeScript.d.ts.map +1 -0
  208. package/dist/features/blocks/logic/setVariable/executeSetVariable.d.ts +6 -0
  209. package/dist/features/blocks/logic/setVariable/executeSetVariable.d.ts.map +1 -0
  210. package/dist/features/blocks/logic/wait/utils/executeWait.d.ts +6 -0
  211. package/dist/features/blocks/logic/wait/utils/executeWait.d.ts.map +1 -0
  212. package/dist/features/bubble/components/Bubble.d.ts +9 -0
  213. package/dist/features/bubble/components/Bubble.d.ts.map +1 -0
  214. package/dist/features/bubble/components/BubbleButton.d.ts +9 -0
  215. package/dist/features/bubble/components/BubbleButton.d.ts.map +1 -0
  216. package/dist/features/bubble/components/PreviewMessage.d.ts +9 -0
  217. package/dist/features/bubble/components/PreviewMessage.d.ts.map +1 -0
  218. package/dist/features/bubble/components/index.d.ts +2 -0
  219. package/dist/features/bubble/components/index.d.ts.map +1 -0
  220. package/dist/features/bubble/index.d.ts +2 -0
  221. package/dist/features/bubble/index.d.ts.map +1 -0
  222. package/dist/features/bubble/types.d.ts +35 -0
  223. package/dist/features/bubble/types.d.ts.map +1 -0
  224. package/dist/features/commands/index.d.ts +3 -0
  225. package/dist/features/commands/index.d.ts.map +1 -0
  226. package/dist/features/commands/types.d.ts +19 -0
  227. package/dist/features/commands/types.d.ts.map +1 -0
  228. package/dist/features/commands/utils/close.d.ts +2 -0
  229. package/dist/features/commands/utils/close.d.ts.map +1 -0
  230. package/dist/features/commands/utils/hidePreviewMessage.d.ts +2 -0
  231. package/dist/features/commands/utils/hidePreviewMessage.d.ts.map +1 -0
  232. package/dist/features/commands/utils/index.d.ts +9 -0
  233. package/dist/features/commands/utils/index.d.ts.map +1 -0
  234. package/dist/features/commands/utils/open.d.ts +2 -0
  235. package/dist/features/commands/utils/open.d.ts.map +1 -0
  236. package/dist/features/commands/utils/setInputValue.d.ts +2 -0
  237. package/dist/features/commands/utils/setInputValue.d.ts.map +1 -0
  238. package/dist/features/commands/utils/setPrefilledVariables.d.ts +2 -0
  239. package/dist/features/commands/utils/setPrefilledVariables.d.ts.map +1 -0
  240. package/dist/features/commands/utils/showPreviewMessage.d.ts +3 -0
  241. package/dist/features/commands/utils/showPreviewMessage.d.ts.map +1 -0
  242. package/dist/features/commands/utils/toggle.d.ts +2 -0
  243. package/dist/features/commands/utils/toggle.d.ts.map +1 -0
  244. package/dist/features/commands/utils/unmount.d.ts +2 -0
  245. package/dist/features/commands/utils/unmount.d.ts.map +1 -0
  246. package/dist/features/popup/components/Popup.d.ts +10 -0
  247. package/dist/features/popup/components/Popup.d.ts.map +1 -0
  248. package/dist/features/popup/components/index.d.ts +2 -0
  249. package/dist/features/popup/components/index.d.ts.map +1 -0
  250. package/dist/features/popup/index.d.ts +2 -0
  251. package/dist/features/popup/index.d.ts.map +1 -0
  252. package/dist/features/popup/types.d.ts +9 -0
  253. package/dist/features/popup/types.d.ts.map +1 -0
  254. package/dist/features/standard/components/Standard.d.ts +5 -0
  255. package/dist/features/standard/components/Standard.d.ts.map +1 -0
  256. package/dist/features/standard/components/index.d.ts +2 -0
  257. package/dist/features/standard/components/index.d.ts.map +1 -0
  258. package/dist/features/standard/index.d.ts +2 -0
  259. package/dist/features/standard/index.d.ts.map +1 -0
  260. package/dist/index.d.ts +7 -0
  261. package/dist/index.d.ts.map +1 -0
  262. package/dist/index.js +2 -0
  263. package/dist/lib/gtag.d.ts +4 -0
  264. package/dist/lib/gtag.d.ts.map +1 -0
  265. package/dist/lib/gtm.d.ts +3 -0
  266. package/dist/lib/gtm.d.ts.map +1 -0
  267. package/dist/lib/pixel.d.ts +4 -0
  268. package/dist/lib/pixel.d.ts.map +1 -0
  269. package/dist/lib/stripe.d.ts +3 -0
  270. package/dist/lib/stripe.d.ts.map +1 -0
  271. package/dist/queries/continueChatQuery.d.ts +554 -0
  272. package/dist/queries/continueChatQuery.d.ts.map +1 -0
  273. package/dist/queries/saveClientLogsQuery.d.ts +7 -0
  274. package/dist/queries/saveClientLogsQuery.d.ts.map +1 -0
  275. package/dist/queries/startChatQuery.d.ts +723 -0
  276. package/dist/queries/startChatQuery.d.ts.map +1 -0
  277. package/dist/register.d.ts +2 -0
  278. package/dist/register.d.ts.map +1 -0
  279. package/dist/types.d.ts +37 -0
  280. package/dist/types.d.ts.map +1 -0
  281. package/dist/utils/CorsError.d.ts +4 -0
  282. package/dist/utils/CorsError.d.ts.map +1 -0
  283. package/dist/utils/botContainerHeightSignal.d.ts +2 -0
  284. package/dist/utils/botContainerHeightSignal.d.ts.map +1 -0
  285. package/dist/utils/botContainerSignal.d.ts +2 -0
  286. package/dist/utils/botContainerSignal.d.ts.map +1 -0
  287. package/dist/utils/executeClientSideActions.d.ts +20 -0
  288. package/dist/utils/executeClientSideActions.d.ts.map +1 -0
  289. package/dist/utils/formattedMessagesSignal.d.ts +8 -0
  290. package/dist/utils/formattedMessagesSignal.d.ts.map +1 -0
  291. package/dist/utils/getAnswerContent.d.ts +3 -0
  292. package/dist/utils/getAnswerContent.d.ts.map +1 -0
  293. package/dist/utils/guessApiHost.d.ts +6 -0
  294. package/dist/utils/guessApiHost.d.ts.map +1 -0
  295. package/dist/utils/injectFont.d.ts +3 -0
  296. package/dist/utils/injectFont.d.ts.map +1 -0
  297. package/dist/utils/injectStartProps.d.ts +3 -0
  298. package/dist/utils/injectStartProps.d.ts.map +1 -0
  299. package/dist/utils/isMobileSignal.d.ts +2 -0
  300. package/dist/utils/isMobileSignal.d.ts.map +1 -0
  301. package/dist/utils/persist.d.ts +9 -0
  302. package/dist/utils/persist.d.ts.map +1 -0
  303. package/dist/utils/setCssVariablesValue.d.ts +3 -0
  304. package/dist/utils/setCssVariablesValue.d.ts.map +1 -0
  305. package/dist/utils/storage.d.ts +717 -0
  306. package/dist/utils/storage.d.ts.map +1 -0
  307. package/dist/utils/streamingMessageSignal.d.ts +8 -0
  308. package/dist/utils/streamingMessageSignal.d.ts.map +1 -0
  309. package/dist/utils/toaster.d.ts +2 -0
  310. package/dist/utils/toaster.d.ts.map +1 -0
  311. package/dist/web.d.ts +17 -0
  312. package/dist/web.d.ts.map +1 -0
  313. package/dist/web.js +14 -0
  314. package/dist/window.d.ts +40 -0
  315. package/dist/window.d.ts.map +1 -0
  316. package/package.json +57 -0
@@ -0,0 +1,723 @@
1
+ import { StartFrom } from '@typebot.io/schemas';
2
+ type Props = {
3
+ typebot: string | any;
4
+ stripeRedirectStatus?: string;
5
+ apiHost?: string;
6
+ startFrom?: StartFrom;
7
+ isPreview: boolean;
8
+ prefilledVariables?: Record<string, unknown>;
9
+ resultId?: string;
10
+ sessionId?: string;
11
+ };
12
+ export declare function startChatQuery({ typebot, isPreview, apiHost, prefilledVariables, resultId, stripeRedirectStatus, startFrom, sessionId, }: Props): Promise<{
13
+ error: unknown;
14
+ data?: undefined;
15
+ } | {
16
+ data: {
17
+ messages: ({
18
+ id: string;
19
+ } & ({
20
+ type: import("@typebot.io/schemas/features/blocks/bubbles/constants").BubbleBlockType.TEXT;
21
+ content: {
22
+ type: "richText";
23
+ richText?: any;
24
+ } | {
25
+ type: "markdown";
26
+ markdown: string;
27
+ };
28
+ } | {
29
+ type: import("@typebot.io/schemas/features/blocks/bubbles/constants").BubbleBlockType.IMAGE;
30
+ content: {
31
+ url?: string | undefined;
32
+ clickLink?: {
33
+ url?: string | undefined;
34
+ alt?: string | undefined;
35
+ } | undefined;
36
+ };
37
+ } | {
38
+ type: import("@typebot.io/schemas/features/blocks/bubbles/constants").BubbleBlockType.VIDEO;
39
+ content: {
40
+ url?: string | undefined;
41
+ id?: string | undefined;
42
+ type?: import("@typebot.io/schemas/features/blocks/bubbles/video/constants").VideoBubbleContentType | undefined;
43
+ height?: number | `{{${string}}}` | undefined;
44
+ aspectRatio?: string | undefined;
45
+ maxWidth?: string | undefined;
46
+ queryParamsStr?: string | undefined;
47
+ areControlsDisplayed?: boolean | undefined;
48
+ isAutoplayEnabled?: boolean | undefined;
49
+ };
50
+ } | {
51
+ type: import("@typebot.io/schemas/features/blocks/bubbles/constants").BubbleBlockType.AUDIO;
52
+ content: {
53
+ url?: string | undefined;
54
+ isAutoplayEnabled?: boolean | undefined;
55
+ };
56
+ } | {
57
+ type: import("@typebot.io/schemas/features/blocks/bubbles/constants").BubbleBlockType.EMBED;
58
+ content: {
59
+ url?: string | undefined;
60
+ waitForEvent?: {
61
+ isEnabled?: boolean | undefined;
62
+ name?: string | undefined;
63
+ saveDataInVariableId?: string | undefined;
64
+ } | undefined;
65
+ height?: number | undefined;
66
+ };
67
+ } | {
68
+ type: "custom-embed";
69
+ content: {
70
+ initFunction: {
71
+ content: string;
72
+ args: Record<string, unknown>;
73
+ };
74
+ url?: string | undefined;
75
+ waitForEventFunction?: {
76
+ content: string;
77
+ args: Record<string, unknown>;
78
+ } | undefined;
79
+ };
80
+ }))[];
81
+ typebot: {
82
+ id: string;
83
+ settings: {
84
+ general?: {
85
+ isBrandingEnabled?: boolean | undefined;
86
+ isTypingEmulationEnabled?: boolean | undefined;
87
+ isInputPrefillEnabled?: boolean | undefined;
88
+ isHideQueryParamsEnabled?: boolean | undefined;
89
+ isNewResultOnRefreshEnabled?: boolean | undefined;
90
+ rememberUser?: {
91
+ isEnabled?: boolean | undefined;
92
+ storage?: "session" | "local" | undefined;
93
+ } | undefined;
94
+ } | undefined;
95
+ typingEmulation?: {
96
+ enabled?: boolean | undefined;
97
+ speed?: number | undefined;
98
+ maxDelay?: number | undefined;
99
+ delayBetweenBubbles?: number | undefined;
100
+ isDisabledOnFirstMessage?: boolean | undefined;
101
+ } | undefined;
102
+ metadata?: {
103
+ title?: string | undefined;
104
+ description?: string | undefined;
105
+ imageUrl?: string | undefined;
106
+ favIconUrl?: string | undefined;
107
+ customHeadCode?: string | undefined;
108
+ googleTagManagerId?: string | undefined;
109
+ } | undefined;
110
+ whatsApp?: {
111
+ isEnabled?: boolean | undefined;
112
+ startCondition?: {
113
+ logicalOperator: import("@typebot.io/schemas/features/blocks/logic/condition/constants").LogicalOperator;
114
+ comparisons: {
115
+ id: string;
116
+ comparisonOperator?: import("@typebot.io/schemas/features/blocks/logic/condition/constants").ComparisonOperators | undefined;
117
+ value?: string | undefined;
118
+ }[];
119
+ } | undefined;
120
+ sessionExpiryTimeout?: number | undefined;
121
+ } | undefined;
122
+ publicShare?: {
123
+ isEnabled?: boolean | undefined;
124
+ } | undefined;
125
+ security?: {
126
+ allowedOrigins?: string[] | undefined;
127
+ } | undefined;
128
+ };
129
+ theme: {
130
+ general?: {
131
+ font?: string | {
132
+ type: "Google";
133
+ family?: string | undefined;
134
+ } | {
135
+ type: "Custom";
136
+ family?: string | undefined;
137
+ css?: string | undefined;
138
+ url?: string | undefined;
139
+ } | undefined;
140
+ background?: {
141
+ type?: import("@typebot.io/schemas/features/typebot/theme/constants").BackgroundType | undefined;
142
+ content?: string | undefined;
143
+ } | undefined;
144
+ progressBar?: {
145
+ isEnabled?: boolean | undefined;
146
+ color?: string | undefined;
147
+ backgroundColor?: string | undefined;
148
+ placement?: "Top" | "Bottom" | undefined;
149
+ thickness?: number | undefined;
150
+ position?: "fixed" | "absolute" | undefined;
151
+ } | undefined;
152
+ } | undefined;
153
+ chat?: {
154
+ container?: {
155
+ maxWidth?: string | undefined;
156
+ maxHeight?: string | undefined;
157
+ backgroundColor?: string | undefined;
158
+ color?: string | undefined;
159
+ blur?: number | undefined;
160
+ opacity?: number | undefined;
161
+ shadow?: "none" | "sm" | "md" | "lg" | "xl" | "2xl" | undefined;
162
+ border?: {
163
+ thickness?: number | undefined;
164
+ color?: string | undefined;
165
+ roundeness?: "medium" | "large" | "none" | "custom" | undefined;
166
+ customRoundeness?: number | undefined;
167
+ opacity?: number | undefined;
168
+ } | undefined;
169
+ } | undefined;
170
+ hostAvatar?: {
171
+ isEnabled?: boolean | undefined;
172
+ url?: string | undefined;
173
+ } | undefined;
174
+ guestAvatar?: {
175
+ isEnabled?: boolean | undefined;
176
+ url?: string | undefined;
177
+ } | undefined;
178
+ hostBubbles?: {
179
+ backgroundColor?: string | undefined;
180
+ color?: string | undefined;
181
+ blur?: number | undefined;
182
+ opacity?: number | undefined;
183
+ shadow?: "none" | "sm" | "md" | "lg" | "xl" | "2xl" | undefined;
184
+ border?: {
185
+ thickness?: number | undefined;
186
+ color?: string | undefined;
187
+ roundeness?: "medium" | "large" | "none" | "custom" | undefined;
188
+ customRoundeness?: number | undefined;
189
+ opacity?: number | undefined;
190
+ } | undefined;
191
+ } | undefined;
192
+ guestBubbles?: {
193
+ backgroundColor?: string | undefined;
194
+ color?: string | undefined;
195
+ blur?: number | undefined;
196
+ opacity?: number | undefined;
197
+ shadow?: "none" | "sm" | "md" | "lg" | "xl" | "2xl" | undefined;
198
+ border?: {
199
+ thickness?: number | undefined;
200
+ color?: string | undefined;
201
+ roundeness?: "medium" | "large" | "none" | "custom" | undefined;
202
+ customRoundeness?: number | undefined;
203
+ opacity?: number | undefined;
204
+ } | undefined;
205
+ } | undefined;
206
+ buttons?: {
207
+ backgroundColor?: string | undefined;
208
+ color?: string | undefined;
209
+ blur?: number | undefined;
210
+ opacity?: number | undefined;
211
+ shadow?: "none" | "sm" | "md" | "lg" | "xl" | "2xl" | undefined;
212
+ border?: {
213
+ thickness?: number | undefined;
214
+ color?: string | undefined;
215
+ roundeness?: "medium" | "large" | "none" | "custom" | undefined;
216
+ customRoundeness?: number | undefined;
217
+ opacity?: number | undefined;
218
+ } | undefined;
219
+ } | undefined;
220
+ inputs?: {
221
+ color?: string | undefined;
222
+ opacity?: number | undefined;
223
+ backgroundColor?: string | undefined;
224
+ blur?: number | undefined;
225
+ shadow?: "none" | "sm" | "md" | "lg" | "xl" | "2xl" | undefined;
226
+ border?: {
227
+ thickness?: number | undefined;
228
+ color?: string | undefined;
229
+ roundeness?: "medium" | "large" | "none" | "custom" | undefined;
230
+ customRoundeness?: number | undefined;
231
+ opacity?: number | undefined;
232
+ } | undefined;
233
+ placeholderColor?: string | undefined;
234
+ } | undefined;
235
+ roundness?: "medium" | "large" | "none" | undefined;
236
+ } | undefined;
237
+ customCss?: string | undefined;
238
+ };
239
+ publishedAt?: Date | undefined;
240
+ };
241
+ sessionId: string;
242
+ resultId?: string | undefined;
243
+ lastMessageNewFormat?: string | undefined;
244
+ input?: (({
245
+ id: string;
246
+ type: import("@typebot.io/schemas/features/blocks/inputs/constants").InputBlockType.CHOICE;
247
+ items: {
248
+ id: string;
249
+ outgoingEdgeId?: string | undefined;
250
+ blockId?: string | undefined;
251
+ content?: string | undefined;
252
+ displayCondition?: {
253
+ isEnabled?: boolean | undefined;
254
+ condition?: {
255
+ logicalOperator?: import("@typebot.io/schemas/features/blocks/logic/condition/constants").LogicalOperator | undefined;
256
+ comparisons?: {
257
+ id: string;
258
+ variableId?: string | undefined;
259
+ comparisonOperator?: import("@typebot.io/schemas/features/blocks/logic/condition/constants").ComparisonOperators | undefined;
260
+ value?: string | undefined;
261
+ }[] | undefined;
262
+ } | undefined;
263
+ } | undefined;
264
+ }[];
265
+ outgoingEdgeId?: string | undefined;
266
+ options?: {
267
+ variableId?: string | undefined;
268
+ isMultipleChoice?: boolean | undefined;
269
+ buttonLabel?: string | undefined;
270
+ dynamicVariableId?: string | undefined;
271
+ isSearchable?: boolean | undefined;
272
+ searchInputPlaceholder?: string | undefined;
273
+ } | undefined;
274
+ } | {
275
+ id: string;
276
+ type: import("@typebot.io/schemas/features/blocks/inputs/constants").InputBlockType.CHOICE;
277
+ items: {
278
+ id: string;
279
+ outgoingEdgeId?: string | undefined;
280
+ content?: string | undefined;
281
+ displayCondition?: {
282
+ isEnabled?: boolean | undefined;
283
+ condition?: {
284
+ logicalOperator?: import("@typebot.io/schemas/features/blocks/logic/condition/constants").LogicalOperator | undefined;
285
+ comparisons?: {
286
+ id: string;
287
+ variableId?: string | undefined;
288
+ comparisonOperator?: import("@typebot.io/schemas/features/blocks/logic/condition/constants").ComparisonOperators | undefined;
289
+ value?: string | undefined;
290
+ }[] | undefined;
291
+ } | undefined;
292
+ } | undefined;
293
+ }[];
294
+ outgoingEdgeId?: string | undefined;
295
+ options?: {
296
+ variableId?: string | undefined;
297
+ isMultipleChoice?: boolean | undefined;
298
+ buttonLabel?: string | undefined;
299
+ dynamicVariableId?: string | undefined;
300
+ isSearchable?: boolean | undefined;
301
+ searchInputPlaceholder?: string | undefined;
302
+ } | undefined;
303
+ } | {
304
+ id: string;
305
+ type: import("@typebot.io/schemas/features/blocks/inputs/constants").InputBlockType.DATE;
306
+ outgoingEdgeId?: string | undefined;
307
+ options?: {
308
+ variableId?: string | undefined;
309
+ labels?: {
310
+ button?: string | undefined;
311
+ from?: string | undefined;
312
+ to?: string | undefined;
313
+ } | undefined;
314
+ hasTime?: boolean | undefined;
315
+ isRange?: boolean | undefined;
316
+ format?: string | undefined;
317
+ min?: string | undefined;
318
+ max?: string | undefined;
319
+ } | undefined;
320
+ } | {
321
+ id: string;
322
+ type: import("@typebot.io/schemas/features/blocks/inputs/constants").InputBlockType.FILE;
323
+ outgoingEdgeId?: string | undefined;
324
+ options?: {
325
+ variableId?: string | undefined;
326
+ isRequired?: boolean | undefined;
327
+ isMultipleAllowed?: boolean | undefined;
328
+ labels?: {
329
+ placeholder?: string | undefined;
330
+ button?: string | undefined;
331
+ clear?: string | undefined;
332
+ skip?: string | undefined;
333
+ success?: {
334
+ single?: string | undefined;
335
+ multiple?: string | undefined;
336
+ } | undefined;
337
+ } | undefined;
338
+ sizeLimit?: number | undefined;
339
+ visibility?: "Auto" | "Public" | "Private" | undefined;
340
+ } | undefined;
341
+ } | {
342
+ id: string;
343
+ type: import("@typebot.io/schemas/features/blocks/inputs/constants").InputBlockType.FILE;
344
+ outgoingEdgeId?: string | undefined;
345
+ options?: {
346
+ visibility?: "Auto" | "Public" | "Private" | undefined;
347
+ variableId?: string | undefined;
348
+ labels?: {
349
+ placeholder?: string | undefined;
350
+ button?: string | undefined;
351
+ clear?: string | undefined;
352
+ skip?: string | undefined;
353
+ success?: {
354
+ single?: string | undefined;
355
+ multiple?: string | undefined;
356
+ } | undefined;
357
+ } | undefined;
358
+ isRequired?: boolean | undefined;
359
+ isMultipleAllowed?: boolean | undefined;
360
+ } | undefined;
361
+ } | {
362
+ id: string;
363
+ type: import("@typebot.io/schemas/features/blocks/inputs/constants").InputBlockType.TEXT;
364
+ outgoingEdgeId?: string | undefined;
365
+ options?: {
366
+ variableId?: string | undefined;
367
+ labels?: {
368
+ placeholder?: string | undefined;
369
+ button?: string | undefined;
370
+ } | undefined;
371
+ isLong?: boolean | undefined;
372
+ audioClip?: {
373
+ isEnabled?: boolean | undefined;
374
+ saveVariableId?: string | undefined;
375
+ visibility?: "Auto" | "Public" | "Private" | undefined;
376
+ } | undefined;
377
+ attachments?: {
378
+ isEnabled?: boolean | undefined;
379
+ saveVariableId?: string | undefined;
380
+ visibility?: "Auto" | "Public" | "Private" | undefined;
381
+ } | undefined;
382
+ } | undefined;
383
+ } | {
384
+ id: string;
385
+ type: import("@typebot.io/schemas/features/blocks/inputs/constants").InputBlockType.EMAIL;
386
+ outgoingEdgeId?: string | undefined;
387
+ options?: {
388
+ variableId?: string | undefined;
389
+ labels?: {
390
+ placeholder?: string | undefined;
391
+ button?: string | undefined;
392
+ } | undefined;
393
+ retryMessageContent?: string | undefined;
394
+ } | undefined;
395
+ } | {
396
+ id: string;
397
+ type: import("@typebot.io/schemas/features/blocks/inputs/constants").InputBlockType.NUMBER;
398
+ outgoingEdgeId?: string | undefined;
399
+ options?: {
400
+ variableId?: string | undefined;
401
+ labels?: {
402
+ placeholder?: string | undefined;
403
+ button?: string | undefined;
404
+ } | undefined;
405
+ min?: number | `{{${string}}}` | undefined;
406
+ max?: number | `{{${string}}}` | undefined;
407
+ step?: number | `{{${string}}}` | undefined;
408
+ } | undefined;
409
+ } | {
410
+ id: string;
411
+ type: import("@typebot.io/schemas/features/blocks/inputs/constants").InputBlockType.PAYMENT;
412
+ outgoingEdgeId?: string | undefined;
413
+ options?: {
414
+ variableId?: string | undefined;
415
+ provider?: import("@typebot.io/schemas/features/blocks/inputs/payment/constants").PaymentProvider.STRIPE | undefined;
416
+ labels?: {
417
+ button?: string | undefined;
418
+ success?: string | undefined;
419
+ } | undefined;
420
+ additionalInformation?: {
421
+ description?: string | undefined;
422
+ name?: string | undefined;
423
+ email?: string | undefined;
424
+ phoneNumber?: string | undefined;
425
+ address?: {
426
+ country?: string | undefined;
427
+ line1?: string | undefined;
428
+ line2?: string | undefined;
429
+ state?: string | undefined;
430
+ city?: string | undefined;
431
+ postalCode?: string | undefined;
432
+ } | undefined;
433
+ } | undefined;
434
+ credentialsId?: string | undefined;
435
+ currency?: string | undefined;
436
+ amount?: string | undefined;
437
+ retryMessageContent?: string | undefined;
438
+ } | undefined;
439
+ } | {
440
+ id: string;
441
+ type: import("@typebot.io/schemas/features/blocks/inputs/constants").InputBlockType.PHONE;
442
+ outgoingEdgeId?: string | undefined;
443
+ options?: {
444
+ variableId?: string | undefined;
445
+ labels?: {
446
+ placeholder?: string | undefined;
447
+ button?: string | undefined;
448
+ } | undefined;
449
+ retryMessageContent?: string | undefined;
450
+ defaultCountryCode?: string | undefined;
451
+ } | undefined;
452
+ } | {
453
+ id: string;
454
+ type: import("@typebot.io/schemas/features/blocks/inputs/constants").InputBlockType.RATING;
455
+ outgoingEdgeId?: string | undefined;
456
+ options?: {
457
+ variableId?: string | undefined;
458
+ buttonType?: "Icons" | "Numbers" | undefined;
459
+ length?: number | undefined;
460
+ startsAt?: number | `{{${string}}}` | undefined;
461
+ labels?: {
462
+ left?: string | undefined;
463
+ right?: string | undefined;
464
+ button?: string | undefined;
465
+ } | undefined;
466
+ customIcon?: {
467
+ isEnabled?: boolean | undefined;
468
+ svg?: string | undefined;
469
+ } | undefined;
470
+ isOneClickSubmitEnabled?: boolean | undefined;
471
+ } | undefined;
472
+ } | {
473
+ id: string;
474
+ type: import("@typebot.io/schemas/features/blocks/inputs/constants").InputBlockType.URL;
475
+ outgoingEdgeId?: string | undefined;
476
+ options?: {
477
+ variableId?: string | undefined;
478
+ labels?: {
479
+ placeholder?: string | undefined;
480
+ button?: string | undefined;
481
+ } | undefined;
482
+ retryMessageContent?: string | undefined;
483
+ } | undefined;
484
+ } | {
485
+ id: string;
486
+ type: import("@typebot.io/schemas/features/blocks/inputs/constants").InputBlockType.PICTURE_CHOICE;
487
+ items: {
488
+ id: string;
489
+ outgoingEdgeId?: string | undefined;
490
+ blockId?: string | undefined;
491
+ pictureSrc?: string | undefined;
492
+ title?: string | undefined;
493
+ description?: string | undefined;
494
+ displayCondition?: {
495
+ isEnabled?: boolean | undefined;
496
+ condition?: {
497
+ logicalOperator?: import("@typebot.io/schemas/features/blocks/logic/condition/constants").LogicalOperator | undefined;
498
+ comparisons?: {
499
+ id: string;
500
+ variableId?: string | undefined;
501
+ comparisonOperator?: import("@typebot.io/schemas/features/blocks/logic/condition/constants").ComparisonOperators | undefined;
502
+ value?: string | undefined;
503
+ }[] | undefined;
504
+ } | undefined;
505
+ } | undefined;
506
+ }[];
507
+ outgoingEdgeId?: string | undefined;
508
+ options?: {
509
+ variableId?: string | undefined;
510
+ isMultipleChoice?: boolean | undefined;
511
+ isSearchable?: boolean | undefined;
512
+ buttonLabel?: string | undefined;
513
+ searchInputPlaceholder?: string | undefined;
514
+ dynamicItems?: {
515
+ isEnabled?: boolean | undefined;
516
+ titlesVariableId?: string | undefined;
517
+ descriptionsVariableId?: string | undefined;
518
+ pictureSrcsVariableId?: string | undefined;
519
+ } | undefined;
520
+ } | undefined;
521
+ } | {
522
+ id: string;
523
+ type: import("@typebot.io/schemas/features/blocks/inputs/constants").InputBlockType.PICTURE_CHOICE;
524
+ items: {
525
+ id: string;
526
+ outgoingEdgeId?: string | undefined;
527
+ pictureSrc?: string | undefined;
528
+ title?: string | undefined;
529
+ description?: string | undefined;
530
+ displayCondition?: {
531
+ isEnabled?: boolean | undefined;
532
+ condition?: {
533
+ logicalOperator?: import("@typebot.io/schemas/features/blocks/logic/condition/constants").LogicalOperator | undefined;
534
+ comparisons?: {
535
+ id: string;
536
+ variableId?: string | undefined;
537
+ comparisonOperator?: import("@typebot.io/schemas/features/blocks/logic/condition/constants").ComparisonOperators | undefined;
538
+ value?: string | undefined;
539
+ }[] | undefined;
540
+ } | undefined;
541
+ } | undefined;
542
+ }[];
543
+ outgoingEdgeId?: string | undefined;
544
+ options?: {
545
+ variableId?: string | undefined;
546
+ isMultipleChoice?: boolean | undefined;
547
+ isSearchable?: boolean | undefined;
548
+ buttonLabel?: string | undefined;
549
+ searchInputPlaceholder?: string | undefined;
550
+ dynamicItems?: {
551
+ isEnabled?: boolean | undefined;
552
+ titlesVariableId?: string | undefined;
553
+ descriptionsVariableId?: string | undefined;
554
+ pictureSrcsVariableId?: string | undefined;
555
+ } | undefined;
556
+ } | undefined;
557
+ }) & {
558
+ prefilledValue?: string | undefined;
559
+ runtimeOptions?: {
560
+ paymentIntentSecret: string;
561
+ amountLabel: string;
562
+ publicKey: string;
563
+ } | undefined;
564
+ }) | undefined;
565
+ clientSideActions?: ({
566
+ type: "scriptToExecute";
567
+ scriptToExecute: {
568
+ content: string;
569
+ args: {
570
+ id: string;
571
+ value?: string | number | boolean | (string | null)[] | null | undefined;
572
+ }[];
573
+ isCode?: boolean | undefined;
574
+ };
575
+ lastBubbleBlockId?: string | undefined;
576
+ expectsDedicatedReply?: boolean | undefined;
577
+ } | {
578
+ type: "redirect";
579
+ redirect: {
580
+ url?: string | undefined;
581
+ isNewTab?: boolean | undefined;
582
+ };
583
+ lastBubbleBlockId?: string | undefined;
584
+ expectsDedicatedReply?: boolean | undefined;
585
+ } | {
586
+ type: "chatwoot";
587
+ chatwoot: {
588
+ scriptToExecute: {
589
+ content: string;
590
+ args: {
591
+ id: string;
592
+ value?: string | number | boolean | (string | null)[] | null | undefined;
593
+ }[];
594
+ isCode?: boolean | undefined;
595
+ };
596
+ };
597
+ lastBubbleBlockId?: string | undefined;
598
+ expectsDedicatedReply?: boolean | undefined;
599
+ } | {
600
+ type: "googleAnalytics";
601
+ googleAnalytics: {
602
+ trackingId?: string | undefined;
603
+ category?: string | undefined;
604
+ action?: string | undefined;
605
+ label?: string | undefined;
606
+ value?: number | `{{${string}}}` | undefined;
607
+ sendTo?: string | undefined;
608
+ };
609
+ lastBubbleBlockId?: string | undefined;
610
+ expectsDedicatedReply?: boolean | undefined;
611
+ } | {
612
+ type: "wait";
613
+ wait: {
614
+ secondsToWaitFor: number;
615
+ };
616
+ lastBubbleBlockId?: string | undefined;
617
+ expectsDedicatedReply?: boolean | undefined;
618
+ } | {
619
+ type: "setVariable";
620
+ setVariable: {
621
+ scriptToExecute: {
622
+ content: string;
623
+ args: {
624
+ id: string;
625
+ value?: string | number | boolean | (string | null)[] | null | undefined;
626
+ }[];
627
+ isCode?: boolean | undefined;
628
+ };
629
+ };
630
+ lastBubbleBlockId?: string | undefined;
631
+ expectsDedicatedReply?: boolean | undefined;
632
+ } | {
633
+ type: "streamOpenAiChatCompletion";
634
+ streamOpenAiChatCompletion: {
635
+ messages: {
636
+ content?: string | undefined;
637
+ role?: "user" | "system" | "assistant" | undefined;
638
+ }[];
639
+ };
640
+ lastBubbleBlockId?: string | undefined;
641
+ expectsDedicatedReply?: boolean | undefined;
642
+ } | {
643
+ type: "webhookToExecute";
644
+ webhookToExecute: {
645
+ url: string;
646
+ headers?: Record<string, string> | undefined;
647
+ body?: unknown;
648
+ method?: import("@typebot.io/schemas/features/blocks/integrations/webhook/constants").HttpMethod | undefined;
649
+ };
650
+ lastBubbleBlockId?: string | undefined;
651
+ expectsDedicatedReply?: boolean | undefined;
652
+ } | {
653
+ type: "startPropsToInject";
654
+ startPropsToInject: {
655
+ googleAnalyticsId?: string | undefined;
656
+ pixelIds?: string[] | undefined;
657
+ gtmId?: string | undefined;
658
+ customHeadCode?: string | undefined;
659
+ };
660
+ lastBubbleBlockId?: string | undefined;
661
+ expectsDedicatedReply?: boolean | undefined;
662
+ } | {
663
+ type: "pixel";
664
+ pixel: {
665
+ params?: {
666
+ id: string;
667
+ key?: string | undefined;
668
+ value?: any;
669
+ }[] | undefined;
670
+ pixelId?: string | undefined;
671
+ isInitSkip?: boolean | undefined;
672
+ eventType?: undefined;
673
+ } | {
674
+ eventType: "Lead" | "Contact" | "CompleteRegistration" | "Schedule" | "SubmitApplication" | "ViewContent" | "AddPaymentInfo" | "AddToCart" | "AddToWishlist" | "CustomizeProduct" | "Donate" | "FindLocation" | "InitiateCheckout" | "Purchase" | "Search" | "StartTrial" | "Subscribe";
675
+ params?: {
676
+ id: string;
677
+ key?: string | undefined;
678
+ value?: any;
679
+ }[] | undefined;
680
+ pixelId?: string | undefined;
681
+ isInitSkip?: boolean | undefined;
682
+ } | {
683
+ eventType: "Custom";
684
+ params?: {
685
+ id: string;
686
+ key?: string | undefined;
687
+ value?: any;
688
+ }[] | undefined;
689
+ pixelId?: string | undefined;
690
+ isInitSkip?: boolean | undefined;
691
+ name?: string | undefined;
692
+ };
693
+ lastBubbleBlockId?: string | undefined;
694
+ expectsDedicatedReply?: boolean | undefined;
695
+ } | {
696
+ type: "stream";
697
+ stream: true;
698
+ lastBubbleBlockId?: string | undefined;
699
+ expectsDedicatedReply?: boolean | undefined;
700
+ } | {
701
+ type: "codeToExecute";
702
+ codeToExecute: {
703
+ content: string;
704
+ args: Record<string, unknown>;
705
+ };
706
+ lastBubbleBlockId?: string | undefined;
707
+ expectsDedicatedReply?: boolean | undefined;
708
+ })[] | undefined;
709
+ logs?: {
710
+ status: string;
711
+ description: string;
712
+ details?: unknown;
713
+ }[] | undefined;
714
+ dynamicTheme?: {
715
+ hostAvatarUrl?: string | undefined;
716
+ guestAvatarUrl?: string | undefined;
717
+ } | undefined;
718
+ progress?: number | undefined;
719
+ };
720
+ error?: undefined;
721
+ }>;
722
+ export {};
723
+ //# sourceMappingURL=startChatQuery.d.ts.map