@makebot.it/js 1.0.1 → 1.0.2

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 (277) hide show
  1. package/dist/components/Bot.d.ts +31 -0
  2. package/dist/components/Bot.d.ts.map +1 -0
  3. package/dist/components/Button.d.ts +13 -0
  4. package/dist/components/Button.d.ts.map +1 -0
  5. package/dist/components/ConversationContainer/AvatarSideContainer.d.ts +9 -0
  6. package/dist/components/ConversationContainer/AvatarSideContainer.d.ts.map +1 -0
  7. package/dist/components/ConversationContainer/ChatChunk.d.ts +23 -0
  8. package/dist/components/ConversationContainer/ChatChunk.d.ts.map +1 -0
  9. package/dist/components/ConversationContainer/ChatContainer.d.ts +20 -0
  10. package/dist/components/ConversationContainer/ChatContainer.d.ts.map +1 -0
  11. package/dist/components/ConversationContainer/LoadingChunk.d.ts +7 -0
  12. package/dist/components/ConversationContainer/LoadingChunk.d.ts.map +1 -0
  13. package/dist/components/ErrorMessage.d.ts +6 -0
  14. package/dist/components/ErrorMessage.d.ts.map +1 -0
  15. package/dist/components/FixedInputFooter.d.ts +11 -0
  16. package/dist/components/FixedInputFooter.d.ts.map +1 -0
  17. package/dist/components/InputChatBlock.d.ts +16 -0
  18. package/dist/components/InputChatBlock.d.ts.map +1 -0
  19. package/dist/components/LiteBadge.d.ts +6 -0
  20. package/dist/components/LiteBadge.d.ts.map +1 -0
  21. package/dist/components/Modal.d.ts +9 -0
  22. package/dist/components/Modal.d.ts.map +1 -0
  23. package/dist/components/ProgressBar.d.ts +6 -0
  24. package/dist/components/ProgressBar.d.ts.map +1 -0
  25. package/dist/components/SendButton.d.ts +9 -0
  26. package/dist/components/SendButton.d.ts.map +1 -0
  27. package/dist/components/Spinner.d.ts +3 -0
  28. package/dist/components/Spinner.d.ts.map +1 -0
  29. package/dist/components/TextInputAddFileButton.d.ts +7 -0
  30. package/dist/components/TextInputAddFileButton.d.ts.map +1 -0
  31. package/dist/components/TypingBubble.d.ts +2 -0
  32. package/dist/components/TypingBubble.d.ts.map +1 -0
  33. package/dist/components/avatars/Avatar.d.ts +5 -0
  34. package/dist/components/avatars/Avatar.d.ts.map +1 -0
  35. package/dist/components/avatars/DefaultAvatar.d.ts +4 -0
  36. package/dist/components/avatars/DefaultAvatar.d.ts.map +1 -0
  37. package/dist/components/bubbles/GuestBubble.d.ts +9 -0
  38. package/dist/components/bubbles/GuestBubble.d.ts.map +1 -0
  39. package/dist/components/bubbles/HostBubble.d.ts +13 -0
  40. package/dist/components/bubbles/HostBubble.d.ts.map +1 -0
  41. package/dist/components/bubbles/LoadingBubble.d.ts +2 -0
  42. package/dist/components/bubbles/LoadingBubble.d.ts.map +1 -0
  43. package/dist/components/bubbles/StreamingBubble.d.ts +7 -0
  44. package/dist/components/bubbles/StreamingBubble.d.ts.map +1 -0
  45. package/dist/components/carousel.d.ts +10 -0
  46. package/dist/components/carousel.d.ts.map +1 -0
  47. package/dist/components/icons/ArrowLeftIcon.d.ts +3 -0
  48. package/dist/components/icons/ArrowLeftIcon.d.ts.map +1 -0
  49. package/dist/components/icons/ArrowRightIcon.d.ts +3 -0
  50. package/dist/components/icons/ArrowRightIcon.d.ts.map +1 -0
  51. package/dist/components/icons/CameraIcon.d.ts +3 -0
  52. package/dist/components/icons/CameraIcon.d.ts.map +1 -0
  53. package/dist/components/icons/CheckIcon.d.ts +3 -0
  54. package/dist/components/icons/CheckIcon.d.ts.map +1 -0
  55. package/dist/components/icons/ChevronDownIcon.d.ts +3 -0
  56. package/dist/components/icons/ChevronDownIcon.d.ts.map +1 -0
  57. package/dist/components/icons/ChevronUpIcon.d.ts +3 -0
  58. package/dist/components/icons/ChevronUpIcon.d.ts.map +1 -0
  59. package/dist/components/icons/CloseIcon.d.ts +3 -0
  60. package/dist/components/icons/CloseIcon.d.ts.map +1 -0
  61. package/dist/components/icons/FileIcon.d.ts +3 -0
  62. package/dist/components/icons/FileIcon.d.ts.map +1 -0
  63. package/dist/components/icons/MakebotLogo.d.ts +2 -0
  64. package/dist/components/icons/MakebotLogo.d.ts.map +1 -0
  65. package/dist/components/icons/MicrophoneIcon.d.ts +3 -0
  66. package/dist/components/icons/MicrophoneIcon.d.ts.map +1 -0
  67. package/dist/components/icons/PaperClipIcon.d.ts +3 -0
  68. package/dist/components/icons/PaperClipIcon.d.ts.map +1 -0
  69. package/dist/components/icons/PictureIcon.d.ts +3 -0
  70. package/dist/components/icons/PictureIcon.d.ts.map +1 -0
  71. package/dist/components/icons/PlusIcon.d.ts +3 -0
  72. package/dist/components/icons/PlusIcon.d.ts.map +1 -0
  73. package/dist/components/icons/SendIcon.d.ts +3 -0
  74. package/dist/components/icons/SendIcon.d.ts.map +1 -0
  75. package/dist/components/inputs/SearchInput.d.ts +9 -0
  76. package/dist/components/inputs/SearchInput.d.ts.map +1 -0
  77. package/dist/components/inputs/ShortTextInput.d.ts +9 -0
  78. package/dist/components/inputs/ShortTextInput.d.ts.map +1 -0
  79. package/dist/components/inputs/Textarea.d.ts +9 -0
  80. package/dist/components/inputs/Textarea.d.ts.map +1 -0
  81. package/dist/constants.d.ts +86 -0
  82. package/dist/constants.d.ts.map +1 -0
  83. package/dist/contexts/BotContainerContext.d.ts +4 -0
  84. package/dist/contexts/BotContainerContext.d.ts.map +1 -0
  85. package/dist/contexts/ChatContainerSizeContext.d.ts +9 -0
  86. package/dist/contexts/ChatContainerSizeContext.d.ts.map +1 -0
  87. package/dist/features/blocks/bubbles/audio/components/AudioBubble.d.ts +8 -0
  88. package/dist/features/blocks/bubbles/audio/components/AudioBubble.d.ts.map +1 -0
  89. package/dist/features/blocks/bubbles/contact/components/ContactBubble.d.ts +11 -0
  90. package/dist/features/blocks/bubbles/contact/components/ContactBubble.d.ts.map +1 -0
  91. package/dist/features/blocks/bubbles/embed/components/CustomEmbedBubble.d.ts +11 -0
  92. package/dist/features/blocks/bubbles/embed/components/CustomEmbedBubble.d.ts.map +1 -0
  93. package/dist/features/blocks/bubbles/embed/components/EmbedBubble.d.ts +11 -0
  94. package/dist/features/blocks/bubbles/embed/components/EmbedBubble.d.ts.map +1 -0
  95. package/dist/features/blocks/bubbles/image/components/ImageBubble.d.ts +10 -0
  96. package/dist/features/blocks/bubbles/image/components/ImageBubble.d.ts.map +1 -0
  97. package/dist/features/blocks/bubbles/location/components/LocationBubble.d.ts +11 -0
  98. package/dist/features/blocks/bubbles/location/components/LocationBubble.d.ts.map +1 -0
  99. package/dist/features/blocks/bubbles/pix/components/PixBubble.d.ts +11 -0
  100. package/dist/features/blocks/bubbles/pix/components/PixBubble.d.ts.map +1 -0
  101. package/dist/features/blocks/bubbles/textBubble/components/TextBubble.d.ts +12 -0
  102. package/dist/features/blocks/bubbles/textBubble/components/TextBubble.d.ts.map +1 -0
  103. package/dist/features/blocks/bubbles/textBubble/components/plate/PlateBlock.d.ts +9 -0
  104. package/dist/features/blocks/bubbles/textBubble/components/plate/PlateBlock.d.ts.map +1 -0
  105. package/dist/features/blocks/bubbles/textBubble/components/plate/PlateText.d.ts +9 -0
  106. package/dist/features/blocks/bubbles/textBubble/components/plate/PlateText.d.ts.map +1 -0
  107. package/dist/features/blocks/bubbles/textBubble/helpers/convertRichTextToPlainText.d.ts +3 -0
  108. package/dist/features/blocks/bubbles/textBubble/helpers/convertRichTextToPlainText.d.ts.map +1 -0
  109. package/dist/features/blocks/bubbles/video/components/VideoBubble.d.ts +9 -0
  110. package/dist/features/blocks/bubbles/video/components/VideoBubble.d.ts.map +1 -0
  111. package/dist/features/blocks/inputs/buttons/components/Buttons.d.ts +11 -0
  112. package/dist/features/blocks/inputs/buttons/components/Buttons.d.ts.map +1 -0
  113. package/dist/features/blocks/inputs/buttons/components/Checkbox.d.ts +7 -0
  114. package/dist/features/blocks/inputs/buttons/components/Checkbox.d.ts.map +1 -0
  115. package/dist/features/blocks/inputs/buttons/components/MultipleChoicesForm.d.ts +10 -0
  116. package/dist/features/blocks/inputs/buttons/components/MultipleChoicesForm.d.ts.map +1 -0
  117. package/dist/features/blocks/inputs/cards/CardsCaroussel.d.ts +20 -0
  118. package/dist/features/blocks/inputs/cards/CardsCaroussel.d.ts.map +1 -0
  119. package/dist/features/blocks/inputs/date/components/DateForm.d.ts +10 -0
  120. package/dist/features/blocks/inputs/date/components/DateForm.d.ts.map +1 -0
  121. package/dist/features/blocks/inputs/email/components/EmailInput.d.ts +10 -0
  122. package/dist/features/blocks/inputs/email/components/EmailInput.d.ts.map +1 -0
  123. package/dist/features/blocks/inputs/fileUpload/components/FilePreview.d.ts +8 -0
  124. package/dist/features/blocks/inputs/fileUpload/components/FilePreview.d.ts.map +1 -0
  125. package/dist/features/blocks/inputs/fileUpload/components/FileUploadForm.d.ts +11 -0
  126. package/dist/features/blocks/inputs/fileUpload/components/FileUploadForm.d.ts.map +1 -0
  127. package/dist/features/blocks/inputs/fileUpload/components/SelectedFile.d.ts +6 -0
  128. package/dist/features/blocks/inputs/fileUpload/components/SelectedFile.d.ts.map +1 -0
  129. package/dist/features/blocks/inputs/fileUpload/helpers/sanitizeSelectedFiles.d.ts +15 -0
  130. package/dist/features/blocks/inputs/fileUpload/helpers/sanitizeSelectedFiles.d.ts.map +1 -0
  131. package/dist/features/blocks/inputs/fileUpload/helpers/uploadFiles.d.ts +28 -0
  132. package/dist/features/blocks/inputs/fileUpload/helpers/uploadFiles.d.ts.map +1 -0
  133. package/dist/features/blocks/inputs/list/components/List.d.ts +9 -0
  134. package/dist/features/blocks/inputs/list/components/List.d.ts.map +1 -0
  135. package/dist/features/blocks/inputs/number/components/NumberInput.d.ts +10 -0
  136. package/dist/features/blocks/inputs/number/components/NumberInput.d.ts.map +1 -0
  137. package/dist/features/blocks/inputs/number/numberInputHelper.d.ts +2 -0
  138. package/dist/features/blocks/inputs/number/numberInputHelper.d.ts.map +1 -0
  139. package/dist/features/blocks/inputs/payment/components/PaymentForm.d.ts +12 -0
  140. package/dist/features/blocks/inputs/payment/components/PaymentForm.d.ts.map +1 -0
  141. package/dist/features/blocks/inputs/payment/components/StripePaymentForm.d.ts +12 -0
  142. package/dist/features/blocks/inputs/payment/components/StripePaymentForm.d.ts.map +1 -0
  143. package/dist/features/blocks/inputs/payment/helpers/paymentInProgressStorage.d.ts +5 -0
  144. package/dist/features/blocks/inputs/payment/helpers/paymentInProgressStorage.d.ts.map +1 -0
  145. package/dist/features/blocks/inputs/phone/components/PhoneInput.d.ts +9 -0
  146. package/dist/features/blocks/inputs/phone/components/PhoneInput.d.ts.map +1 -0
  147. package/dist/features/blocks/inputs/rating/components/RatingForm.d.ts +10 -0
  148. package/dist/features/blocks/inputs/rating/components/RatingForm.d.ts.map +1 -0
  149. package/dist/features/blocks/inputs/textInput/components/TextInput.d.ts +11 -0
  150. package/dist/features/blocks/inputs/textInput/components/TextInput.d.ts.map +1 -0
  151. package/dist/features/blocks/inputs/textInput/components/VoiceRecorder.d.ts +12 -0
  152. package/dist/features/blocks/inputs/textInput/components/VoiceRecorder.d.ts.map +1 -0
  153. package/dist/features/blocks/inputs/textInput/components/VolumeProcessor.d.ts +2 -0
  154. package/dist/features/blocks/inputs/textInput/components/VolumeProcessor.d.ts.map +1 -0
  155. package/dist/features/blocks/inputs/time/components/TimeForm.d.ts +10 -0
  156. package/dist/features/blocks/inputs/time/components/TimeForm.d.ts.map +1 -0
  157. package/dist/features/blocks/inputs/url/components/UrlInput.d.ts +10 -0
  158. package/dist/features/blocks/inputs/url/components/UrlInput.d.ts.map +1 -0
  159. package/dist/features/blocks/integrations/chatwoot/constants.d.ts +2 -0
  160. package/dist/features/blocks/integrations/chatwoot/constants.d.ts.map +1 -0
  161. package/dist/features/blocks/integrations/chatwoot/utils/executeChatwoot.d.ts +7 -0
  162. package/dist/features/blocks/integrations/chatwoot/utils/executeChatwoot.d.ts.map +1 -0
  163. package/dist/features/blocks/integrations/chatwoot/utils/index.d.ts +2 -0
  164. package/dist/features/blocks/integrations/chatwoot/utils/index.d.ts.map +1 -0
  165. package/dist/features/blocks/integrations/googleAnalytics/utils/executeGoogleAnalytics.d.ts +3 -0
  166. package/dist/features/blocks/integrations/googleAnalytics/utils/executeGoogleAnalytics.d.ts.map +1 -0
  167. package/dist/features/blocks/integrations/httpRequest/executeHttpRequest.d.ts +3 -0
  168. package/dist/features/blocks/integrations/httpRequest/executeHttpRequest.d.ts.map +1 -0
  169. package/dist/features/blocks/integrations/openai/streamChat.d.ts +19 -0
  170. package/dist/features/blocks/integrations/openai/streamChat.d.ts.map +1 -0
  171. package/dist/features/blocks/integrations/pixel/executePixel.d.ts +3 -0
  172. package/dist/features/blocks/integrations/pixel/executePixel.d.ts.map +1 -0
  173. package/dist/features/blocks/logic/redirect/utils/executeRedirect.d.ts +5 -0
  174. package/dist/features/blocks/logic/redirect/utils/executeRedirect.d.ts.map +1 -0
  175. package/dist/features/blocks/logic/script/executeScript.d.ts +19 -0
  176. package/dist/features/blocks/logic/script/executeScript.d.ts.map +1 -0
  177. package/dist/features/blocks/logic/setVariable/executeSetVariable.d.ts +7 -0
  178. package/dist/features/blocks/logic/setVariable/executeSetVariable.d.ts.map +1 -0
  179. package/dist/features/blocks/logic/wait/utils/executeWait.d.ts +6 -0
  180. package/dist/features/blocks/logic/wait/utils/executeWait.d.ts.map +1 -0
  181. package/dist/features/blocks/logic/webhook/listenForWebhook.d.ts +13 -0
  182. package/dist/features/blocks/logic/webhook/listenForWebhook.d.ts.map +1 -0
  183. package/dist/features/bubble/components/Bubble.d.ts +15 -0
  184. package/dist/features/bubble/components/Bubble.d.ts.map +1 -0
  185. package/dist/features/bubble/components/BubbleButton.d.ts +8 -0
  186. package/dist/features/bubble/components/BubbleButton.d.ts.map +1 -0
  187. package/dist/features/bubble/components/PreviewMessage.d.ts +8 -0
  188. package/dist/features/bubble/components/PreviewMessage.d.ts.map +1 -0
  189. package/dist/features/bubble/types.d.ts +37 -0
  190. package/dist/features/bubble/types.d.ts.map +1 -0
  191. package/dist/features/commands/index.d.ts +12 -0
  192. package/dist/features/commands/index.d.ts.map +1 -0
  193. package/dist/features/commands/types.d.ts +26 -0
  194. package/dist/features/commands/types.d.ts.map +1 -0
  195. package/dist/features/commands/utils/close.d.ts +3 -0
  196. package/dist/features/commands/utils/close.d.ts.map +1 -0
  197. package/dist/features/commands/utils/hidePreviewMessage.d.ts +3 -0
  198. package/dist/features/commands/utils/hidePreviewMessage.d.ts.map +1 -0
  199. package/dist/features/commands/utils/open.d.ts +3 -0
  200. package/dist/features/commands/utils/open.d.ts.map +1 -0
  201. package/dist/features/commands/utils/reload.d.ts +3 -0
  202. package/dist/features/commands/utils/reload.d.ts.map +1 -0
  203. package/dist/features/commands/utils/sendCommand.d.ts +3 -0
  204. package/dist/features/commands/utils/sendCommand.d.ts.map +1 -0
  205. package/dist/features/commands/utils/setInputValue.d.ts +3 -0
  206. package/dist/features/commands/utils/setInputValue.d.ts.map +1 -0
  207. package/dist/features/commands/utils/setPrefilledVariables.d.ts +3 -0
  208. package/dist/features/commands/utils/setPrefilledVariables.d.ts.map +1 -0
  209. package/dist/features/commands/utils/showPreviewMessage.d.ts +3 -0
  210. package/dist/features/commands/utils/showPreviewMessage.d.ts.map +1 -0
  211. package/dist/features/commands/utils/toggle.d.ts +3 -0
  212. package/dist/features/commands/utils/toggle.d.ts.map +1 -0
  213. package/dist/features/commands/utils/unmount.d.ts +3 -0
  214. package/dist/features/commands/utils/unmount.d.ts.map +1 -0
  215. package/dist/features/popup/components/Popup.d.ts +11 -0
  216. package/dist/features/popup/components/Popup.d.ts.map +1 -0
  217. package/dist/features/popup/types.d.ts +9 -0
  218. package/dist/features/popup/types.d.ts.map +1 -0
  219. package/dist/features/standard/components/Standard.d.ts +5 -0
  220. package/dist/features/standard/components/Standard.d.ts.map +1 -0
  221. package/dist/index.d.ts +18 -143
  222. package/dist/index.d.ts.map +1 -0
  223. package/dist/index.js +1 -0
  224. package/dist/lib/gtag.d.ts +4 -0
  225. package/dist/lib/gtag.d.ts.map +1 -0
  226. package/dist/lib/gtm.d.ts +3 -0
  227. package/dist/lib/gtm.d.ts.map +1 -0
  228. package/dist/lib/pixel.d.ts +4 -0
  229. package/dist/lib/pixel.d.ts.map +1 -0
  230. package/dist/queries/continueChatQuery.d.ts +722 -0
  231. package/dist/queries/continueChatQuery.d.ts.map +1 -0
  232. package/dist/queries/saveClientLogsQuery.d.ts +7 -0
  233. package/dist/queries/saveClientLogsQuery.d.ts.map +1 -0
  234. package/dist/queries/startChatQuery.d.ts +20 -0
  235. package/dist/queries/startChatQuery.d.ts.map +1 -0
  236. package/dist/register.d.ts +2 -0
  237. package/dist/register.d.ts.map +1 -0
  238. package/dist/types.d.ts +49 -0
  239. package/dist/types.d.ts.map +1 -0
  240. package/dist/utils/CorsError.d.ts +4 -0
  241. package/dist/utils/CorsError.d.ts.map +1 -0
  242. package/dist/utils/dynamicTheme.d.ts +4 -0
  243. package/dist/utils/dynamicTheme.d.ts.map +1 -0
  244. package/dist/utils/error.d.ts +2 -0
  245. package/dist/utils/error.d.ts.map +1 -0
  246. package/dist/utils/executeClientSideActions.d.ts +25 -0
  247. package/dist/utils/executeClientSideActions.d.ts.map +1 -0
  248. package/dist/utils/getAnswerContent.d.ts +3 -0
  249. package/dist/utils/getAnswerContent.d.ts.map +1 -0
  250. package/dist/utils/getPartyKitHost.d.ts +2 -0
  251. package/dist/utils/getPartyKitHost.d.ts.map +1 -0
  252. package/dist/utils/guessApiHost.d.ts +6 -0
  253. package/dist/utils/guessApiHost.d.ts.map +1 -0
  254. package/dist/utils/injectFont.d.ts +3 -0
  255. package/dist/utils/injectFont.d.ts.map +1 -0
  256. package/dist/utils/injectStartProps.d.ts +3 -0
  257. package/dist/utils/injectStartProps.d.ts.map +1 -0
  258. package/dist/utils/migrateLegacyChatChunks.d.ts +10 -0
  259. package/dist/utils/migrateLegacyChatChunks.d.ts.map +1 -0
  260. package/dist/utils/persist.d.ts +9 -0
  261. package/dist/utils/persist.d.ts.map +1 -0
  262. package/dist/utils/resolveBubbleButtonSize.d.ts +5 -0
  263. package/dist/utils/resolveBubbleButtonSize.d.ts.map +1 -0
  264. package/dist/utils/scrollContainer.d.ts +2 -0
  265. package/dist/utils/scrollContainer.d.ts.map +1 -0
  266. package/dist/utils/setCssVariablesValue.d.ts +16 -0
  267. package/dist/utils/setCssVariablesValue.d.ts.map +1 -0
  268. package/dist/utils/storage.d.ts +875 -0
  269. package/dist/utils/storage.d.ts.map +1 -0
  270. package/dist/utils/toaster.d.ts +2 -0
  271. package/dist/utils/toaster.d.ts.map +1 -0
  272. package/dist/web.d.ts +19 -0
  273. package/dist/web.d.ts.map +1 -0
  274. package/dist/web.js +59 -1252
  275. package/dist/window.d.ts +29 -0
  276. package/dist/window.d.ts.map +1 -0
  277. package/package.json +1 -1
@@ -0,0 +1,875 @@
1
+ import type { StartChatResponse } from "@makebot.it/chat-api/schemas";
2
+ export declare const getExistingResultIdFromStorage: (makebotId?: string) => string | undefined;
3
+ export declare const setResultInStorage: (storageType?: "local" | "session") => (makebotId: string, resultId: string) => void;
4
+ export declare const getInitialChatReplyFromStorage: (makebotId: string | undefined) => {
5
+ sessionId: string | null;
6
+ makebot: {
7
+ id: string;
8
+ version: "3" | "4" | "5" | "6" | "6.1";
9
+ theme: {
10
+ general?: {
11
+ font?: string | {
12
+ type: "Google";
13
+ family?: string | undefined;
14
+ } | {
15
+ type: "Custom";
16
+ url?: string | undefined;
17
+ family?: string | undefined;
18
+ css?: string | undefined;
19
+ } | undefined;
20
+ background?: {
21
+ type?: import("@makebot.it/theme/constants").BackgroundType | undefined;
22
+ content?: string | undefined;
23
+ } | undefined;
24
+ progressBar?: {
25
+ isEnabled?: boolean | undefined;
26
+ color?: string | undefined;
27
+ backgroundColor?: string | undefined;
28
+ placement?: "Top" | "Bottom" | undefined;
29
+ thickness?: number | undefined;
30
+ position?: "fixed" | "absolute" | undefined;
31
+ } | undefined;
32
+ } | undefined;
33
+ chat?: {
34
+ buttonsInput?: {
35
+ layout?: "wrap" | "vertical" | undefined;
36
+ } | undefined;
37
+ container?: {
38
+ maxWidth?: string | undefined;
39
+ color?: string | undefined;
40
+ backgroundColor?: string | undefined;
41
+ maxHeight?: string | undefined;
42
+ blur?: number | undefined;
43
+ opacity?: number | undefined;
44
+ shadow?: "none" | "sm" | "md" | "lg" | "xl" | "2xl" | undefined;
45
+ border?: {
46
+ color?: string | undefined;
47
+ thickness?: number | undefined;
48
+ opacity?: number | undefined;
49
+ roundeness?: "custom" | "none" | "medium" | "large" | undefined;
50
+ customRoundeness?: number | undefined;
51
+ } | undefined;
52
+ } | undefined;
53
+ hostAvatar?: {
54
+ url?: string | undefined;
55
+ isEnabled?: boolean | undefined;
56
+ } | undefined;
57
+ guestAvatar?: {
58
+ url?: string | undefined;
59
+ isEnabled?: boolean | undefined;
60
+ } | undefined;
61
+ hostBubbles?: {
62
+ color?: string | undefined;
63
+ backgroundColor?: string | undefined;
64
+ blur?: number | undefined;
65
+ opacity?: number | undefined;
66
+ shadow?: "none" | "sm" | "md" | "lg" | "xl" | "2xl" | undefined;
67
+ border?: {
68
+ color?: string | undefined;
69
+ thickness?: number | undefined;
70
+ opacity?: number | undefined;
71
+ roundeness?: "custom" | "none" | "medium" | "large" | undefined;
72
+ customRoundeness?: number | undefined;
73
+ } | undefined;
74
+ } | undefined;
75
+ guestBubbles?: {
76
+ color?: string | undefined;
77
+ backgroundColor?: string | undefined;
78
+ blur?: number | undefined;
79
+ opacity?: number | undefined;
80
+ shadow?: "none" | "sm" | "md" | "lg" | "xl" | "2xl" | undefined;
81
+ border?: {
82
+ color?: string | undefined;
83
+ thickness?: number | undefined;
84
+ opacity?: number | undefined;
85
+ roundeness?: "custom" | "none" | "medium" | "large" | undefined;
86
+ customRoundeness?: number | undefined;
87
+ } | undefined;
88
+ } | undefined;
89
+ buttons?: {
90
+ color?: string | undefined;
91
+ backgroundColor?: string | undefined;
92
+ blur?: number | undefined;
93
+ opacity?: number | undefined;
94
+ shadow?: "none" | "sm" | "md" | "lg" | "xl" | "2xl" | undefined;
95
+ border?: {
96
+ color?: string | undefined;
97
+ thickness?: number | undefined;
98
+ opacity?: number | undefined;
99
+ roundeness?: "custom" | "none" | "medium" | "large" | undefined;
100
+ customRoundeness?: number | undefined;
101
+ } | undefined;
102
+ } | undefined;
103
+ inputs?: {
104
+ color?: string | undefined;
105
+ backgroundColor?: string | undefined;
106
+ blur?: number | undefined;
107
+ opacity?: number | undefined;
108
+ shadow?: "none" | "sm" | "md" | "lg" | "xl" | "2xl" | undefined;
109
+ border?: {
110
+ color?: string | undefined;
111
+ thickness?: number | undefined;
112
+ opacity?: number | undefined;
113
+ roundeness?: "custom" | "none" | "medium" | "large" | undefined;
114
+ customRoundeness?: number | undefined;
115
+ } | undefined;
116
+ placeholderColor?: string | undefined;
117
+ } | undefined;
118
+ roundness?: "none" | "medium" | "large" | undefined;
119
+ } | undefined;
120
+ customCss?: string | undefined;
121
+ };
122
+ settings: {
123
+ general?: {
124
+ isBrandingEnabled?: boolean | undefined;
125
+ isTypingEmulationEnabled?: boolean | undefined;
126
+ isInputPrefillEnabled?: boolean | undefined;
127
+ isHideQueryParamsEnabled?: boolean | undefined;
128
+ isNewResultOnRefreshEnabled?: boolean | undefined;
129
+ rememberUser?: {
130
+ isEnabled?: boolean | undefined;
131
+ storage?: "session" | "local" | undefined;
132
+ } | undefined;
133
+ systemMessages?: {
134
+ invalidMessage?: string | undefined;
135
+ botClosed?: string | undefined;
136
+ networkErrorTitle?: string | undefined;
137
+ networkErrorMessage?: string | undefined;
138
+ popupBlockedTitle?: string | undefined;
139
+ popupBlockedDescription?: string | undefined;
140
+ popupBlockedButtonLabel?: string | undefined;
141
+ fileUploadError?: string | undefined;
142
+ fileUploadSizeError?: string | undefined;
143
+ sessionFinalized?: string | undefined;
144
+ } | undefined;
145
+ } | undefined;
146
+ typingEmulation?: {
147
+ enabled?: boolean | undefined;
148
+ speed?: number | undefined;
149
+ maxDelay?: number | undefined;
150
+ delayBetweenBubbles?: number | undefined;
151
+ isDisabledOnFirstMessage?: boolean | undefined;
152
+ } | undefined;
153
+ };
154
+ publishedAt?: Date | undefined;
155
+ };
156
+ messages: ({
157
+ id: string;
158
+ } & ({
159
+ type: import("@makebot.it/blocks-bubbles/constants").BubbleBlockType.TEXT;
160
+ content: {
161
+ type: "richText";
162
+ richText?: any;
163
+ } | {
164
+ type: "markdown";
165
+ markdown: string;
166
+ };
167
+ } | {
168
+ type: import("@makebot.it/blocks-bubbles/constants").BubbleBlockType.IMAGE;
169
+ content: {
170
+ url?: string | undefined;
171
+ clickLink?: {
172
+ url?: string | undefined;
173
+ alt?: string | undefined;
174
+ } | undefined;
175
+ };
176
+ } | {
177
+ type: import("@makebot.it/blocks-bubbles/constants").BubbleBlockType.VIDEO;
178
+ content: {
179
+ type?: import("@makebot.it/blocks-bubbles/video/constants").VideoBubbleContentType | undefined;
180
+ id?: string | undefined;
181
+ url?: string | undefined;
182
+ isAutoplayEnabled?: boolean | undefined;
183
+ height?: number | `{{${string}}}` | undefined;
184
+ aspectRatio?: string | undefined;
185
+ maxWidth?: string | undefined;
186
+ queryParamsStr?: string | undefined;
187
+ areControlsDisplayed?: boolean | undefined;
188
+ };
189
+ } | {
190
+ type: import("@makebot.it/blocks-bubbles/constants").BubbleBlockType.AUDIO;
191
+ content: {
192
+ url?: string | undefined;
193
+ isAutoplayEnabled?: boolean | undefined;
194
+ };
195
+ } | {
196
+ type: import("@makebot.it/blocks-bubbles/constants").BubbleBlockType.EMBED;
197
+ content: {
198
+ url?: string | undefined;
199
+ height?: number | `{{${string}}}` | undefined;
200
+ waitForEvent?: {
201
+ name?: string | undefined;
202
+ isEnabled?: boolean | undefined;
203
+ saveDataInVariableId?: string | undefined;
204
+ } | undefined;
205
+ };
206
+ } | {
207
+ type: "custom-embed";
208
+ content: {
209
+ initFunction: {
210
+ content: string;
211
+ args: Record<string, unknown>;
212
+ };
213
+ url?: string | undefined;
214
+ waitForEventFunction?: {
215
+ content: string;
216
+ args: Record<string, unknown>;
217
+ } | undefined;
218
+ };
219
+ } | {
220
+ type: import("@makebot.it/blocks-bubbles/constants").BubbleBlockType.LOCATION;
221
+ content: {
222
+ name?: string | undefined;
223
+ url?: string | undefined;
224
+ height?: number | `{{${string}}}` | undefined;
225
+ latitude?: string | undefined;
226
+ longitude?: string | undefined;
227
+ mapSettingsEnabled?: boolean | undefined;
228
+ zoom?: string | undefined;
229
+ mapType?: string | undefined;
230
+ formatted_address?: string | undefined;
231
+ query?: string | undefined;
232
+ };
233
+ } | {
234
+ type: import("@makebot.it/blocks-bubbles/constants").BubbleBlockType.PIX;
235
+ content: {
236
+ showQrCode: boolean;
237
+ showCopyKeyButton: boolean;
238
+ url?: string | undefined;
239
+ variableId?: string | undefined;
240
+ chave?: string | undefined;
241
+ tipoChave?: "" | "cpf" | "cnpj" | "telefone" | "email" | "aleatoria" | undefined;
242
+ nome?: string | undefined;
243
+ cidade?: string | undefined;
244
+ valor?: string | undefined;
245
+ txid?: string | undefined;
246
+ pixCode?: string | undefined;
247
+ };
248
+ } | {
249
+ type: import("@makebot.it/blocks-bubbles/constants").BubbleBlockType.CONTACT;
250
+ content: {
251
+ showCopyButtons: boolean;
252
+ email?: string | undefined;
253
+ firstName?: string | undefined;
254
+ lastName?: string | undefined;
255
+ company?: string | undefined;
256
+ jobTitle?: string | undefined;
257
+ phone?: string | undefined;
258
+ mobile?: string | undefined;
259
+ website?: string | undefined;
260
+ address?: string | undefined;
261
+ city?: string | undefined;
262
+ state?: string | undefined;
263
+ zipCode?: string | undefined;
264
+ country?: string | undefined;
265
+ notes?: string | undefined;
266
+ vCardData?: string | undefined;
267
+ };
268
+ }))[];
269
+ resultId?: string | undefined;
270
+ input?: (({
271
+ type: import("@makebot.it/blocks-inputs/constants").InputBlockType.TEXT;
272
+ id: string;
273
+ options?: {
274
+ variableId?: string | undefined;
275
+ labels?: {
276
+ placeholder?: string | undefined;
277
+ button?: string | undefined;
278
+ } | undefined;
279
+ isLong?: boolean | undefined;
280
+ inputMode?: "url" | "email" | "text" | "decimal" | "numeric" | "tel" | "search" | undefined;
281
+ audioClip?: {
282
+ isEnabled?: boolean | undefined;
283
+ saveVariableId?: string | undefined;
284
+ visibility?: "Auto" | "Public" | "Private" | undefined;
285
+ } | undefined;
286
+ attachments?: {
287
+ isEnabled?: boolean | undefined;
288
+ saveVariableId?: string | undefined;
289
+ visibility?: "Auto" | "Public" | "Private" | undefined;
290
+ } | undefined;
291
+ } | undefined;
292
+ outgoingEdgeId?: string | null | undefined;
293
+ requiresValidation?: boolean | undefined;
294
+ } | {
295
+ type: import("@makebot.it/blocks-inputs/constants").InputBlockType.EMAIL;
296
+ id: string;
297
+ options?: {
298
+ variableId?: string | undefined;
299
+ labels?: {
300
+ placeholder?: string | undefined;
301
+ button?: string | undefined;
302
+ } | undefined;
303
+ retryMessageContent?: string | undefined;
304
+ } | undefined;
305
+ outgoingEdgeId?: string | null | undefined;
306
+ requiresValidation?: boolean | undefined;
307
+ } | {
308
+ type: import("@makebot.it/blocks-inputs/constants").InputBlockType.NUMBER;
309
+ id: string;
310
+ options?: {
311
+ variableId?: string | undefined;
312
+ labels?: {
313
+ placeholder?: string | undefined;
314
+ button?: string | undefined;
315
+ } | undefined;
316
+ min?: number | `{{${string}}}` | undefined;
317
+ max?: number | `{{${string}}}` | undefined;
318
+ step?: number | `{{${string}}}` | undefined;
319
+ locale?: string | undefined;
320
+ style?: import("@makebot.it/blocks-inputs/number/constants").NumberInputStyle | undefined;
321
+ currency?: string | undefined;
322
+ unit?: import("@makebot.it/blocks-inputs/number/constants").NumberInputUnit | undefined;
323
+ } | undefined;
324
+ outgoingEdgeId?: string | null | undefined;
325
+ requiresValidation?: boolean | undefined;
326
+ } | {
327
+ type: import("@makebot.it/blocks-inputs/constants").InputBlockType.URL;
328
+ id: string;
329
+ options?: {
330
+ variableId?: string | undefined;
331
+ labels?: {
332
+ placeholder?: string | undefined;
333
+ button?: string | undefined;
334
+ } | undefined;
335
+ retryMessageContent?: string | undefined;
336
+ } | undefined;
337
+ outgoingEdgeId?: string | null | undefined;
338
+ requiresValidation?: boolean | undefined;
339
+ } | {
340
+ type: import("@makebot.it/blocks-inputs/constants").InputBlockType.PHONE;
341
+ id: string;
342
+ options?: {
343
+ variableId?: string | undefined;
344
+ labels?: {
345
+ placeholder?: string | undefined;
346
+ button?: string | undefined;
347
+ } | undefined;
348
+ retryMessageContent?: string | undefined;
349
+ defaultCountryCode?: string | undefined;
350
+ } | undefined;
351
+ outgoingEdgeId?: string | null | undefined;
352
+ requiresValidation?: boolean | undefined;
353
+ } | {
354
+ type: import("@makebot.it/blocks-inputs/constants").InputBlockType.DATE;
355
+ id: string;
356
+ options?: {
357
+ variableId?: string | undefined;
358
+ labels?: {
359
+ button?: string | undefined;
360
+ from?: string | undefined;
361
+ to?: string | undefined;
362
+ } | undefined;
363
+ min?: string | undefined;
364
+ max?: string | undefined;
365
+ hasTime?: boolean | undefined;
366
+ isRange?: boolean | undefined;
367
+ format?: string | undefined;
368
+ } | undefined;
369
+ outgoingEdgeId?: string | null | undefined;
370
+ requiresValidation?: boolean | undefined;
371
+ } | {
372
+ type: import("@makebot.it/blocks-inputs/constants").InputBlockType.TIME;
373
+ id: string;
374
+ options?: {
375
+ variableId?: string | undefined;
376
+ labels?: {
377
+ button?: string | undefined;
378
+ } | undefined;
379
+ format?: string | undefined;
380
+ } | undefined;
381
+ outgoingEdgeId?: string | null | undefined;
382
+ requiresValidation?: boolean | undefined;
383
+ } | {
384
+ type: import("@makebot.it/blocks-inputs/constants").InputBlockType.PAYMENT;
385
+ id: string;
386
+ options?: {
387
+ variableId?: string | undefined;
388
+ labels?: {
389
+ button?: string | undefined;
390
+ success?: string | undefined;
391
+ } | undefined;
392
+ retryMessageContent?: string | undefined;
393
+ currency?: string | undefined;
394
+ provider?: import("@makebot.it/blocks-inputs/payment/constants").PaymentProvider | undefined;
395
+ additionalInformation?: {
396
+ name?: string | undefined;
397
+ email?: string | undefined;
398
+ address?: {
399
+ city?: string | undefined;
400
+ state?: string | undefined;
401
+ country?: string | undefined;
402
+ line1?: string | undefined;
403
+ line2?: string | undefined;
404
+ postalCode?: string | undefined;
405
+ } | undefined;
406
+ description?: string | undefined;
407
+ phoneNumber?: string | undefined;
408
+ } | undefined;
409
+ credentialsId?: string | undefined;
410
+ amount?: string | undefined;
411
+ } | undefined;
412
+ outgoingEdgeId?: string | null | undefined;
413
+ requiresValidation?: boolean | undefined;
414
+ } | {
415
+ type: import("@makebot.it/blocks-inputs/constants").InputBlockType.RATING;
416
+ id: string;
417
+ options?: {
418
+ length?: number | undefined;
419
+ variableId?: string | undefined;
420
+ labels?: {
421
+ button?: string | undefined;
422
+ left?: string | undefined;
423
+ right?: string | undefined;
424
+ } | undefined;
425
+ buttonType?: "Icons" | "Numbers" | undefined;
426
+ startsAt?: number | `{{${string}}}` | undefined;
427
+ customIcon?: {
428
+ isEnabled?: boolean | undefined;
429
+ svg?: string | undefined;
430
+ } | undefined;
431
+ isOneClickSubmitEnabled?: boolean | undefined;
432
+ } | undefined;
433
+ outgoingEdgeId?: string | null | undefined;
434
+ requiresValidation?: boolean | undefined;
435
+ } | {
436
+ type: import("@makebot.it/blocks-inputs/constants").InputBlockType.CHOICE;
437
+ id: string;
438
+ items: {
439
+ id: string;
440
+ value?: string | undefined;
441
+ outgoingEdgeId?: string | null | undefined;
442
+ content?: string | undefined;
443
+ blockId?: string | undefined;
444
+ displayCondition?: {
445
+ isEnabled?: boolean | undefined;
446
+ condition?: {
447
+ logicalOperator?: import("@makebot.it/conditions/constants").LogicalOperator | undefined;
448
+ comparisons?: {
449
+ id: string;
450
+ value?: string | undefined;
451
+ variableId?: string | undefined;
452
+ comparisonOperator?: import("@makebot.it/conditions/constants").ComparisonOperators | undefined;
453
+ platform?: "web" | "whatsapp" | undefined;
454
+ }[] | undefined;
455
+ platforms?: ("web" | "whatsapp")[] | undefined;
456
+ } | undefined;
457
+ } | undefined;
458
+ }[];
459
+ options?: {
460
+ title?: string | undefined;
461
+ variableId?: string | undefined;
462
+ description?: string | undefined;
463
+ location?: {
464
+ latitude: number;
465
+ longitude: number;
466
+ name?: string | undefined;
467
+ } | undefined;
468
+ imageUrl?: string | undefined;
469
+ footer?: string | undefined;
470
+ buttonLabel?: string | undefined;
471
+ dynamicVariableId?: string | undefined;
472
+ isMultipleChoice?: boolean | undefined;
473
+ isSearchable?: boolean | undefined;
474
+ areInitialSearchButtonsVisible?: boolean | undefined;
475
+ mediaType?: "image" | "video" | "document" | "location" | undefined;
476
+ videoUrl?: string | undefined;
477
+ documentUrl?: string | undefined;
478
+ documentMimetype?: string | undefined;
479
+ } | undefined;
480
+ outgoingEdgeId?: string | null | undefined;
481
+ requiresValidation?: boolean | undefined;
482
+ } | {
483
+ type: import("@makebot.it/blocks-inputs/constants").InputBlockType.CHOICE;
484
+ id: string;
485
+ items: {
486
+ id: string;
487
+ value?: string | undefined;
488
+ outgoingEdgeId?: string | null | undefined;
489
+ content?: string | undefined;
490
+ displayCondition?: {
491
+ isEnabled?: boolean | undefined;
492
+ condition?: {
493
+ logicalOperator?: import("@makebot.it/conditions/constants").LogicalOperator | undefined;
494
+ comparisons?: {
495
+ id: string;
496
+ value?: string | undefined;
497
+ variableId?: string | undefined;
498
+ comparisonOperator?: import("@makebot.it/conditions/constants").ComparisonOperators | undefined;
499
+ platform?: "web" | "whatsapp" | undefined;
500
+ }[] | undefined;
501
+ platforms?: ("web" | "whatsapp")[] | undefined;
502
+ } | undefined;
503
+ } | undefined;
504
+ }[];
505
+ options?: {
506
+ title?: string | undefined;
507
+ variableId?: string | undefined;
508
+ description?: string | undefined;
509
+ location?: {
510
+ latitude: number;
511
+ longitude: number;
512
+ name?: string | undefined;
513
+ } | undefined;
514
+ imageUrl?: string | undefined;
515
+ footer?: string | undefined;
516
+ buttonLabel?: string | undefined;
517
+ dynamicVariableId?: string | undefined;
518
+ isMultipleChoice?: boolean | undefined;
519
+ isSearchable?: boolean | undefined;
520
+ areInitialSearchButtonsVisible?: boolean | undefined;
521
+ mediaType?: "image" | "video" | "document" | "location" | undefined;
522
+ videoUrl?: string | undefined;
523
+ documentUrl?: string | undefined;
524
+ documentMimetype?: string | undefined;
525
+ } | undefined;
526
+ outgoingEdgeId?: string | null | undefined;
527
+ requiresValidation?: boolean | undefined;
528
+ } | {
529
+ type: import("@makebot.it/blocks-inputs/constants").InputBlockType.LIST;
530
+ id: string;
531
+ items: {
532
+ id: string;
533
+ value?: string | undefined;
534
+ outgoingEdgeId?: string | null | undefined;
535
+ content?: string | undefined;
536
+ description?: string | undefined;
537
+ blockId?: string | undefined;
538
+ displayCondition?: {
539
+ isEnabled?: boolean | undefined;
540
+ condition?: {
541
+ logicalOperator?: import("@makebot.it/conditions/constants").LogicalOperator | undefined;
542
+ comparisons?: {
543
+ id: string;
544
+ value?: string | undefined;
545
+ variableId?: string | undefined;
546
+ comparisonOperator?: import("@makebot.it/conditions/constants").ComparisonOperators | undefined;
547
+ platform?: "web" | "whatsapp" | undefined;
548
+ }[] | undefined;
549
+ platforms?: ("web" | "whatsapp")[] | undefined;
550
+ } | undefined;
551
+ } | undefined;
552
+ sectionId?: string | undefined;
553
+ }[];
554
+ options?: {
555
+ title?: string | undefined;
556
+ variableId?: string | undefined;
557
+ description?: string | undefined;
558
+ footer?: string | undefined;
559
+ buttonLabel?: string | undefined;
560
+ dynamicVariableId?: string | undefined;
561
+ sectionTitle?: string | undefined;
562
+ sections?: {
563
+ id: string;
564
+ title?: string | undefined;
565
+ }[] | undefined;
566
+ } | undefined;
567
+ outgoingEdgeId?: string | null | undefined;
568
+ requiresValidation?: boolean | undefined;
569
+ } | {
570
+ type: import("@makebot.it/blocks-inputs/constants").InputBlockType.LIST;
571
+ id: string;
572
+ items: {
573
+ id: string;
574
+ value?: string | undefined;
575
+ outgoingEdgeId?: string | null | undefined;
576
+ content?: string | undefined;
577
+ description?: string | undefined;
578
+ displayCondition?: {
579
+ isEnabled?: boolean | undefined;
580
+ condition?: {
581
+ logicalOperator?: import("@makebot.it/conditions/constants").LogicalOperator | undefined;
582
+ comparisons?: {
583
+ id: string;
584
+ value?: string | undefined;
585
+ variableId?: string | undefined;
586
+ comparisonOperator?: import("@makebot.it/conditions/constants").ComparisonOperators | undefined;
587
+ platform?: "web" | "whatsapp" | undefined;
588
+ }[] | undefined;
589
+ platforms?: ("web" | "whatsapp")[] | undefined;
590
+ } | undefined;
591
+ } | undefined;
592
+ sectionId?: string | undefined;
593
+ }[];
594
+ options?: {
595
+ title?: string | undefined;
596
+ variableId?: string | undefined;
597
+ description?: string | undefined;
598
+ footer?: string | undefined;
599
+ buttonLabel?: string | undefined;
600
+ dynamicVariableId?: string | undefined;
601
+ sectionTitle?: string | undefined;
602
+ sections?: {
603
+ id: string;
604
+ title?: string | undefined;
605
+ }[] | undefined;
606
+ } | undefined;
607
+ outgoingEdgeId?: string | null | undefined;
608
+ requiresValidation?: boolean | undefined;
609
+ } | {
610
+ type: import("@makebot.it/blocks-inputs/constants").InputBlockType.FILE;
611
+ id: string;
612
+ options?: {
613
+ variableId?: string | undefined;
614
+ labels?: {
615
+ placeholder?: string | undefined;
616
+ button?: string | undefined;
617
+ success?: {
618
+ single?: string | undefined;
619
+ multiple?: string | undefined;
620
+ } | undefined;
621
+ clear?: string | undefined;
622
+ skip?: string | undefined;
623
+ } | undefined;
624
+ visibility?: "Auto" | "Public" | "Private" | undefined;
625
+ isRequired?: boolean | undefined;
626
+ isMultipleAllowed?: boolean | undefined;
627
+ allowedFileTypes?: {
628
+ isEnabled?: boolean | undefined;
629
+ types?: string[] | undefined;
630
+ } | undefined;
631
+ sizeLimit?: number | undefined;
632
+ } | undefined;
633
+ outgoingEdgeId?: string | null | undefined;
634
+ requiresValidation?: boolean | undefined;
635
+ } | {
636
+ type: import("@makebot.it/blocks-inputs/constants").InputBlockType.FILE;
637
+ id: string;
638
+ options?: {
639
+ variableId?: string | undefined;
640
+ labels?: {
641
+ placeholder?: string | undefined;
642
+ button?: string | undefined;
643
+ success?: {
644
+ single?: string | undefined;
645
+ multiple?: string | undefined;
646
+ } | undefined;
647
+ clear?: string | undefined;
648
+ skip?: string | undefined;
649
+ } | undefined;
650
+ visibility?: "Auto" | "Public" | "Private" | undefined;
651
+ isRequired?: boolean | undefined;
652
+ isMultipleAllowed?: boolean | undefined;
653
+ allowedFileTypes?: {
654
+ isEnabled?: boolean | undefined;
655
+ types?: string[] | undefined;
656
+ } | undefined;
657
+ } | undefined;
658
+ outgoingEdgeId?: string | null | undefined;
659
+ requiresValidation?: boolean | undefined;
660
+ } | {
661
+ type: import("@makebot.it/blocks-inputs/constants").InputBlockType.CARDS;
662
+ id: string;
663
+ items: {
664
+ id: string;
665
+ options?: {
666
+ displayCondition?: {
667
+ isEnabled?: boolean | undefined;
668
+ condition?: {
669
+ logicalOperator?: import("@makebot.it/conditions/constants").LogicalOperator | undefined;
670
+ comparisons?: {
671
+ id: string;
672
+ value?: string | undefined;
673
+ variableId?: string | undefined;
674
+ comparisonOperator?: import("@makebot.it/conditions/constants").ComparisonOperators | undefined;
675
+ platform?: "web" | "whatsapp" | undefined;
676
+ }[] | undefined;
677
+ platforms?: ("web" | "whatsapp")[] | undefined;
678
+ } | undefined;
679
+ } | undefined;
680
+ internalValue?: string | null | undefined;
681
+ } | undefined;
682
+ title?: string | null | undefined;
683
+ outgoingEdgeId?: string | null | undefined;
684
+ description?: string | null | undefined;
685
+ imageUrl?: string | null | undefined;
686
+ paths?: {
687
+ type: "quick_reply" | "cta_url" | "cta_copy" | "send_location";
688
+ id: string;
689
+ outgoingEdgeId?: string | null | undefined;
690
+ text?: string | undefined;
691
+ config?: {
692
+ continueFlow: boolean;
693
+ url?: string | undefined;
694
+ copyValue?: string | undefined;
695
+ } | undefined;
696
+ }[] | undefined;
697
+ }[];
698
+ options?: {
699
+ variableId?: string | undefined;
700
+ saveResponseMapping?: {
701
+ field?: "Location" | "Image URL" | "Title" | "Description" | "Button" | "Internal Value" | "User Response" | undefined;
702
+ variableId?: string | undefined;
703
+ }[] | undefined;
704
+ sourceVariable?: string | undefined;
705
+ } | undefined;
706
+ outgoingEdgeId?: string | null | undefined;
707
+ requiresValidation?: boolean | undefined;
708
+ textBefore?: string | undefined;
709
+ textAfter?: string | undefined;
710
+ }) & {
711
+ prefilledValue?: string | undefined;
712
+ runtimeOptions?: {
713
+ paymentIntentSecret: string;
714
+ amountLabel: string;
715
+ publicKey: string;
716
+ } | undefined;
717
+ }) | undefined;
718
+ logs?: {
719
+ description: string;
720
+ status?: string | undefined;
721
+ context?: string | undefined;
722
+ details?: string | undefined;
723
+ }[] | undefined;
724
+ lastMessageNewFormat?: string | undefined;
725
+ clientSideActions?: ({
726
+ type: "scriptToExecute";
727
+ scriptToExecute: {
728
+ content: string;
729
+ args: {
730
+ id: string;
731
+ value?: string | number | boolean | (string | null)[] | null | undefined;
732
+ }[];
733
+ isCode?: boolean | undefined;
734
+ };
735
+ lastBubbleBlockId?: string | undefined;
736
+ expectsDedicatedReply?: boolean | undefined;
737
+ } | {
738
+ type: "redirect";
739
+ redirect: {
740
+ url?: string | undefined;
741
+ isNewTab?: boolean | undefined;
742
+ };
743
+ lastBubbleBlockId?: string | undefined;
744
+ expectsDedicatedReply?: boolean | undefined;
745
+ } | {
746
+ type: "googleAnalytics";
747
+ googleAnalytics: {
748
+ value?: number | `{{${string}}}` | undefined;
749
+ label?: string | undefined;
750
+ trackingId?: string | undefined;
751
+ category?: string | undefined;
752
+ action?: string | undefined;
753
+ sendTo?: string | undefined;
754
+ };
755
+ lastBubbleBlockId?: string | undefined;
756
+ expectsDedicatedReply?: boolean | undefined;
757
+ } | {
758
+ type: "wait";
759
+ wait: {
760
+ secondsToWaitFor: number;
761
+ };
762
+ lastBubbleBlockId?: string | undefined;
763
+ expectsDedicatedReply?: boolean | undefined;
764
+ } | {
765
+ type: "setVariable";
766
+ setVariable: {
767
+ scriptToExecute: {
768
+ content: string;
769
+ args: {
770
+ id: string;
771
+ value?: string | number | boolean | (string | null)[] | null | undefined;
772
+ }[];
773
+ isCode?: boolean | undefined;
774
+ };
775
+ };
776
+ lastBubbleBlockId?: string | undefined;
777
+ expectsDedicatedReply?: boolean | undefined;
778
+ } | {
779
+ type: "streamOpenAiChatCompletion";
780
+ streamOpenAiChatCompletion: {
781
+ messages: {
782
+ content?: string | undefined;
783
+ role?: "system" | "user" | "assistant" | undefined;
784
+ }[];
785
+ };
786
+ lastBubbleBlockId?: string | undefined;
787
+ expectsDedicatedReply?: boolean | undefined;
788
+ } | {
789
+ type: "httpRequestToExecute";
790
+ httpRequestToExecute: {
791
+ url: string;
792
+ body?: unknown;
793
+ headers?: Record<string, string> | undefined;
794
+ method?: import("@makebot.it/blocks-integrations/httpRequest/constants").HttpMethod | undefined;
795
+ };
796
+ lastBubbleBlockId?: string | undefined;
797
+ expectsDedicatedReply?: boolean | undefined;
798
+ } | {
799
+ type: "startPropsToInject";
800
+ startPropsToInject: {
801
+ customHeadCode?: string | undefined;
802
+ googleAnalyticsId?: string | undefined;
803
+ pixelIds?: string[] | undefined;
804
+ gtmId?: string | undefined;
805
+ };
806
+ lastBubbleBlockId?: string | undefined;
807
+ expectsDedicatedReply?: boolean | undefined;
808
+ } | {
809
+ type: "pixel";
810
+ pixel: {
811
+ params?: {
812
+ id: string;
813
+ value?: any;
814
+ key?: string | undefined;
815
+ }[] | undefined;
816
+ eventType?: undefined;
817
+ pixelId?: string | undefined;
818
+ isInitSkip?: boolean | undefined;
819
+ } | {
820
+ eventType: "Contact" | "Lead" | "CompleteRegistration" | "Schedule" | "SubmitApplication" | "ViewContent" | "AddPaymentInfo" | "AddToCart" | "AddToWishlist" | "CustomizeProduct" | "Donate" | "FindLocation" | "InitiateCheckout" | "Purchase" | "Search" | "StartTrial" | "Subscribe";
821
+ params?: {
822
+ id: string;
823
+ value?: any;
824
+ key?: string | undefined;
825
+ }[] | undefined;
826
+ pixelId?: string | undefined;
827
+ isInitSkip?: boolean | undefined;
828
+ } | {
829
+ eventType: "Custom";
830
+ params?: {
831
+ id: string;
832
+ value?: any;
833
+ key?: string | undefined;
834
+ }[] | undefined;
835
+ name?: string | undefined;
836
+ pixelId?: string | undefined;
837
+ isInitSkip?: boolean | undefined;
838
+ };
839
+ lastBubbleBlockId?: string | undefined;
840
+ expectsDedicatedReply?: boolean | undefined;
841
+ } | {
842
+ type: "stream";
843
+ stream: true;
844
+ lastBubbleBlockId?: string | undefined;
845
+ expectsDedicatedReply?: boolean | undefined;
846
+ } | {
847
+ type: "codeToExecute";
848
+ codeToExecute: {
849
+ content: string;
850
+ args: Record<string, unknown>;
851
+ };
852
+ lastBubbleBlockId?: string | undefined;
853
+ expectsDedicatedReply?: boolean | undefined;
854
+ } | {
855
+ type: "listenForWebhook";
856
+ lastBubbleBlockId?: string | undefined;
857
+ expectsDedicatedReply?: boolean | undefined;
858
+ })[] | undefined;
859
+ dynamicTheme?: {
860
+ hostAvatarUrl?: string | undefined;
861
+ guestAvatarUrl?: string | undefined;
862
+ backgroundUrl?: string | undefined;
863
+ } | undefined;
864
+ progress?: number | undefined;
865
+ } | undefined;
866
+ export declare const setInitialChatReplyInStorage: (initialChatReply: StartChatResponse, { makebotId, storage, }: {
867
+ makebotId: string;
868
+ storage?: "local" | "session";
869
+ }) => void;
870
+ export declare const setBotOpenedStateInStorage: () => void;
871
+ export declare const removeBotOpenedStateInStorage: () => void;
872
+ export declare const getBotOpenedStateFromStorage: () => boolean;
873
+ export declare const getStorage: (storage: "local" | "session" | undefined) => typeof localStorage | typeof sessionStorage;
874
+ export declare const wipeExistingChatStateInStorage: (makebotId: string) => void;
875
+ //# sourceMappingURL=storage.d.ts.map