@makebot.it/js 1.0.2 → 1.0.3

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/index.d.ts +143 -18
  2. package/dist/index.js +0 -1
  3. package/dist/web.js +1205 -59
  4. package/package.json +1 -1
  5. package/dist/components/Bot.d.ts +0 -31
  6. package/dist/components/Bot.d.ts.map +0 -1
  7. package/dist/components/Button.d.ts +0 -13
  8. package/dist/components/Button.d.ts.map +0 -1
  9. package/dist/components/ConversationContainer/AvatarSideContainer.d.ts +0 -9
  10. package/dist/components/ConversationContainer/AvatarSideContainer.d.ts.map +0 -1
  11. package/dist/components/ConversationContainer/ChatChunk.d.ts +0 -23
  12. package/dist/components/ConversationContainer/ChatChunk.d.ts.map +0 -1
  13. package/dist/components/ConversationContainer/ChatContainer.d.ts +0 -20
  14. package/dist/components/ConversationContainer/ChatContainer.d.ts.map +0 -1
  15. package/dist/components/ConversationContainer/LoadingChunk.d.ts +0 -7
  16. package/dist/components/ConversationContainer/LoadingChunk.d.ts.map +0 -1
  17. package/dist/components/ErrorMessage.d.ts +0 -6
  18. package/dist/components/ErrorMessage.d.ts.map +0 -1
  19. package/dist/components/FixedInputFooter.d.ts +0 -11
  20. package/dist/components/FixedInputFooter.d.ts.map +0 -1
  21. package/dist/components/InputChatBlock.d.ts +0 -16
  22. package/dist/components/InputChatBlock.d.ts.map +0 -1
  23. package/dist/components/LiteBadge.d.ts +0 -6
  24. package/dist/components/LiteBadge.d.ts.map +0 -1
  25. package/dist/components/Modal.d.ts +0 -9
  26. package/dist/components/Modal.d.ts.map +0 -1
  27. package/dist/components/ProgressBar.d.ts +0 -6
  28. package/dist/components/ProgressBar.d.ts.map +0 -1
  29. package/dist/components/SendButton.d.ts +0 -9
  30. package/dist/components/SendButton.d.ts.map +0 -1
  31. package/dist/components/Spinner.d.ts +0 -3
  32. package/dist/components/Spinner.d.ts.map +0 -1
  33. package/dist/components/TextInputAddFileButton.d.ts +0 -7
  34. package/dist/components/TextInputAddFileButton.d.ts.map +0 -1
  35. package/dist/components/TypingBubble.d.ts +0 -2
  36. package/dist/components/TypingBubble.d.ts.map +0 -1
  37. package/dist/components/avatars/Avatar.d.ts +0 -5
  38. package/dist/components/avatars/Avatar.d.ts.map +0 -1
  39. package/dist/components/avatars/DefaultAvatar.d.ts +0 -4
  40. package/dist/components/avatars/DefaultAvatar.d.ts.map +0 -1
  41. package/dist/components/bubbles/GuestBubble.d.ts +0 -9
  42. package/dist/components/bubbles/GuestBubble.d.ts.map +0 -1
  43. package/dist/components/bubbles/HostBubble.d.ts +0 -13
  44. package/dist/components/bubbles/HostBubble.d.ts.map +0 -1
  45. package/dist/components/bubbles/LoadingBubble.d.ts +0 -2
  46. package/dist/components/bubbles/LoadingBubble.d.ts.map +0 -1
  47. package/dist/components/bubbles/StreamingBubble.d.ts +0 -7
  48. package/dist/components/bubbles/StreamingBubble.d.ts.map +0 -1
  49. package/dist/components/carousel.d.ts +0 -10
  50. package/dist/components/carousel.d.ts.map +0 -1
  51. package/dist/components/icons/ArrowLeftIcon.d.ts +0 -3
  52. package/dist/components/icons/ArrowLeftIcon.d.ts.map +0 -1
  53. package/dist/components/icons/ArrowRightIcon.d.ts +0 -3
  54. package/dist/components/icons/ArrowRightIcon.d.ts.map +0 -1
  55. package/dist/components/icons/CameraIcon.d.ts +0 -3
  56. package/dist/components/icons/CameraIcon.d.ts.map +0 -1
  57. package/dist/components/icons/CheckIcon.d.ts +0 -3
  58. package/dist/components/icons/CheckIcon.d.ts.map +0 -1
  59. package/dist/components/icons/ChevronDownIcon.d.ts +0 -3
  60. package/dist/components/icons/ChevronDownIcon.d.ts.map +0 -1
  61. package/dist/components/icons/ChevronUpIcon.d.ts +0 -3
  62. package/dist/components/icons/ChevronUpIcon.d.ts.map +0 -1
  63. package/dist/components/icons/CloseIcon.d.ts +0 -3
  64. package/dist/components/icons/CloseIcon.d.ts.map +0 -1
  65. package/dist/components/icons/FileIcon.d.ts +0 -3
  66. package/dist/components/icons/FileIcon.d.ts.map +0 -1
  67. package/dist/components/icons/MakebotLogo.d.ts +0 -2
  68. package/dist/components/icons/MakebotLogo.d.ts.map +0 -1
  69. package/dist/components/icons/MicrophoneIcon.d.ts +0 -3
  70. package/dist/components/icons/MicrophoneIcon.d.ts.map +0 -1
  71. package/dist/components/icons/PaperClipIcon.d.ts +0 -3
  72. package/dist/components/icons/PaperClipIcon.d.ts.map +0 -1
  73. package/dist/components/icons/PictureIcon.d.ts +0 -3
  74. package/dist/components/icons/PictureIcon.d.ts.map +0 -1
  75. package/dist/components/icons/PlusIcon.d.ts +0 -3
  76. package/dist/components/icons/PlusIcon.d.ts.map +0 -1
  77. package/dist/components/icons/SendIcon.d.ts +0 -3
  78. package/dist/components/icons/SendIcon.d.ts.map +0 -1
  79. package/dist/components/inputs/SearchInput.d.ts +0 -9
  80. package/dist/components/inputs/SearchInput.d.ts.map +0 -1
  81. package/dist/components/inputs/ShortTextInput.d.ts +0 -9
  82. package/dist/components/inputs/ShortTextInput.d.ts.map +0 -1
  83. package/dist/components/inputs/Textarea.d.ts +0 -9
  84. package/dist/components/inputs/Textarea.d.ts.map +0 -1
  85. package/dist/constants.d.ts +0 -86
  86. package/dist/constants.d.ts.map +0 -1
  87. package/dist/contexts/BotContainerContext.d.ts +0 -4
  88. package/dist/contexts/BotContainerContext.d.ts.map +0 -1
  89. package/dist/contexts/ChatContainerSizeContext.d.ts +0 -9
  90. package/dist/contexts/ChatContainerSizeContext.d.ts.map +0 -1
  91. package/dist/features/blocks/bubbles/audio/components/AudioBubble.d.ts +0 -8
  92. package/dist/features/blocks/bubbles/audio/components/AudioBubble.d.ts.map +0 -1
  93. package/dist/features/blocks/bubbles/contact/components/ContactBubble.d.ts +0 -11
  94. package/dist/features/blocks/bubbles/contact/components/ContactBubble.d.ts.map +0 -1
  95. package/dist/features/blocks/bubbles/embed/components/CustomEmbedBubble.d.ts +0 -11
  96. package/dist/features/blocks/bubbles/embed/components/CustomEmbedBubble.d.ts.map +0 -1
  97. package/dist/features/blocks/bubbles/embed/components/EmbedBubble.d.ts +0 -11
  98. package/dist/features/blocks/bubbles/embed/components/EmbedBubble.d.ts.map +0 -1
  99. package/dist/features/blocks/bubbles/image/components/ImageBubble.d.ts +0 -10
  100. package/dist/features/blocks/bubbles/image/components/ImageBubble.d.ts.map +0 -1
  101. package/dist/features/blocks/bubbles/location/components/LocationBubble.d.ts +0 -11
  102. package/dist/features/blocks/bubbles/location/components/LocationBubble.d.ts.map +0 -1
  103. package/dist/features/blocks/bubbles/pix/components/PixBubble.d.ts +0 -11
  104. package/dist/features/blocks/bubbles/pix/components/PixBubble.d.ts.map +0 -1
  105. package/dist/features/blocks/bubbles/textBubble/components/TextBubble.d.ts +0 -12
  106. package/dist/features/blocks/bubbles/textBubble/components/TextBubble.d.ts.map +0 -1
  107. package/dist/features/blocks/bubbles/textBubble/components/plate/PlateBlock.d.ts +0 -9
  108. package/dist/features/blocks/bubbles/textBubble/components/plate/PlateBlock.d.ts.map +0 -1
  109. package/dist/features/blocks/bubbles/textBubble/components/plate/PlateText.d.ts +0 -9
  110. package/dist/features/blocks/bubbles/textBubble/components/plate/PlateText.d.ts.map +0 -1
  111. package/dist/features/blocks/bubbles/textBubble/helpers/convertRichTextToPlainText.d.ts +0 -3
  112. package/dist/features/blocks/bubbles/textBubble/helpers/convertRichTextToPlainText.d.ts.map +0 -1
  113. package/dist/features/blocks/bubbles/video/components/VideoBubble.d.ts +0 -9
  114. package/dist/features/blocks/bubbles/video/components/VideoBubble.d.ts.map +0 -1
  115. package/dist/features/blocks/inputs/buttons/components/Buttons.d.ts +0 -11
  116. package/dist/features/blocks/inputs/buttons/components/Buttons.d.ts.map +0 -1
  117. package/dist/features/blocks/inputs/buttons/components/Checkbox.d.ts +0 -7
  118. package/dist/features/blocks/inputs/buttons/components/Checkbox.d.ts.map +0 -1
  119. package/dist/features/blocks/inputs/buttons/components/MultipleChoicesForm.d.ts +0 -10
  120. package/dist/features/blocks/inputs/buttons/components/MultipleChoicesForm.d.ts.map +0 -1
  121. package/dist/features/blocks/inputs/cards/CardsCaroussel.d.ts +0 -20
  122. package/dist/features/blocks/inputs/cards/CardsCaroussel.d.ts.map +0 -1
  123. package/dist/features/blocks/inputs/date/components/DateForm.d.ts +0 -10
  124. package/dist/features/blocks/inputs/date/components/DateForm.d.ts.map +0 -1
  125. package/dist/features/blocks/inputs/email/components/EmailInput.d.ts +0 -10
  126. package/dist/features/blocks/inputs/email/components/EmailInput.d.ts.map +0 -1
  127. package/dist/features/blocks/inputs/fileUpload/components/FilePreview.d.ts +0 -8
  128. package/dist/features/blocks/inputs/fileUpload/components/FilePreview.d.ts.map +0 -1
  129. package/dist/features/blocks/inputs/fileUpload/components/FileUploadForm.d.ts +0 -11
  130. package/dist/features/blocks/inputs/fileUpload/components/FileUploadForm.d.ts.map +0 -1
  131. package/dist/features/blocks/inputs/fileUpload/components/SelectedFile.d.ts +0 -6
  132. package/dist/features/blocks/inputs/fileUpload/components/SelectedFile.d.ts.map +0 -1
  133. package/dist/features/blocks/inputs/fileUpload/helpers/sanitizeSelectedFiles.d.ts +0 -15
  134. package/dist/features/blocks/inputs/fileUpload/helpers/sanitizeSelectedFiles.d.ts.map +0 -1
  135. package/dist/features/blocks/inputs/fileUpload/helpers/uploadFiles.d.ts +0 -28
  136. package/dist/features/blocks/inputs/fileUpload/helpers/uploadFiles.d.ts.map +0 -1
  137. package/dist/features/blocks/inputs/list/components/List.d.ts +0 -9
  138. package/dist/features/blocks/inputs/list/components/List.d.ts.map +0 -1
  139. package/dist/features/blocks/inputs/number/components/NumberInput.d.ts +0 -10
  140. package/dist/features/blocks/inputs/number/components/NumberInput.d.ts.map +0 -1
  141. package/dist/features/blocks/inputs/number/numberInputHelper.d.ts +0 -2
  142. package/dist/features/blocks/inputs/number/numberInputHelper.d.ts.map +0 -1
  143. package/dist/features/blocks/inputs/payment/components/PaymentForm.d.ts +0 -12
  144. package/dist/features/blocks/inputs/payment/components/PaymentForm.d.ts.map +0 -1
  145. package/dist/features/blocks/inputs/payment/components/StripePaymentForm.d.ts +0 -12
  146. package/dist/features/blocks/inputs/payment/components/StripePaymentForm.d.ts.map +0 -1
  147. package/dist/features/blocks/inputs/payment/helpers/paymentInProgressStorage.d.ts +0 -5
  148. package/dist/features/blocks/inputs/payment/helpers/paymentInProgressStorage.d.ts.map +0 -1
  149. package/dist/features/blocks/inputs/phone/components/PhoneInput.d.ts +0 -9
  150. package/dist/features/blocks/inputs/phone/components/PhoneInput.d.ts.map +0 -1
  151. package/dist/features/blocks/inputs/rating/components/RatingForm.d.ts +0 -10
  152. package/dist/features/blocks/inputs/rating/components/RatingForm.d.ts.map +0 -1
  153. package/dist/features/blocks/inputs/textInput/components/TextInput.d.ts +0 -11
  154. package/dist/features/blocks/inputs/textInput/components/TextInput.d.ts.map +0 -1
  155. package/dist/features/blocks/inputs/textInput/components/VoiceRecorder.d.ts +0 -12
  156. package/dist/features/blocks/inputs/textInput/components/VoiceRecorder.d.ts.map +0 -1
  157. package/dist/features/blocks/inputs/textInput/components/VolumeProcessor.d.ts +0 -2
  158. package/dist/features/blocks/inputs/textInput/components/VolumeProcessor.d.ts.map +0 -1
  159. package/dist/features/blocks/inputs/time/components/TimeForm.d.ts +0 -10
  160. package/dist/features/blocks/inputs/time/components/TimeForm.d.ts.map +0 -1
  161. package/dist/features/blocks/inputs/url/components/UrlInput.d.ts +0 -10
  162. package/dist/features/blocks/inputs/url/components/UrlInput.d.ts.map +0 -1
  163. package/dist/features/blocks/integrations/chatwoot/constants.d.ts +0 -2
  164. package/dist/features/blocks/integrations/chatwoot/constants.d.ts.map +0 -1
  165. package/dist/features/blocks/integrations/chatwoot/utils/executeChatwoot.d.ts +0 -7
  166. package/dist/features/blocks/integrations/chatwoot/utils/executeChatwoot.d.ts.map +0 -1
  167. package/dist/features/blocks/integrations/chatwoot/utils/index.d.ts +0 -2
  168. package/dist/features/blocks/integrations/chatwoot/utils/index.d.ts.map +0 -1
  169. package/dist/features/blocks/integrations/googleAnalytics/utils/executeGoogleAnalytics.d.ts +0 -3
  170. package/dist/features/blocks/integrations/googleAnalytics/utils/executeGoogleAnalytics.d.ts.map +0 -1
  171. package/dist/features/blocks/integrations/httpRequest/executeHttpRequest.d.ts +0 -3
  172. package/dist/features/blocks/integrations/httpRequest/executeHttpRequest.d.ts.map +0 -1
  173. package/dist/features/blocks/integrations/openai/streamChat.d.ts +0 -19
  174. package/dist/features/blocks/integrations/openai/streamChat.d.ts.map +0 -1
  175. package/dist/features/blocks/integrations/pixel/executePixel.d.ts +0 -3
  176. package/dist/features/blocks/integrations/pixel/executePixel.d.ts.map +0 -1
  177. package/dist/features/blocks/logic/redirect/utils/executeRedirect.d.ts +0 -5
  178. package/dist/features/blocks/logic/redirect/utils/executeRedirect.d.ts.map +0 -1
  179. package/dist/features/blocks/logic/script/executeScript.d.ts +0 -19
  180. package/dist/features/blocks/logic/script/executeScript.d.ts.map +0 -1
  181. package/dist/features/blocks/logic/setVariable/executeSetVariable.d.ts +0 -7
  182. package/dist/features/blocks/logic/setVariable/executeSetVariable.d.ts.map +0 -1
  183. package/dist/features/blocks/logic/wait/utils/executeWait.d.ts +0 -6
  184. package/dist/features/blocks/logic/wait/utils/executeWait.d.ts.map +0 -1
  185. package/dist/features/blocks/logic/webhook/listenForWebhook.d.ts +0 -13
  186. package/dist/features/blocks/logic/webhook/listenForWebhook.d.ts.map +0 -1
  187. package/dist/features/bubble/components/Bubble.d.ts +0 -15
  188. package/dist/features/bubble/components/Bubble.d.ts.map +0 -1
  189. package/dist/features/bubble/components/BubbleButton.d.ts +0 -8
  190. package/dist/features/bubble/components/BubbleButton.d.ts.map +0 -1
  191. package/dist/features/bubble/components/PreviewMessage.d.ts +0 -8
  192. package/dist/features/bubble/components/PreviewMessage.d.ts.map +0 -1
  193. package/dist/features/bubble/types.d.ts +0 -37
  194. package/dist/features/bubble/types.d.ts.map +0 -1
  195. package/dist/features/commands/index.d.ts +0 -12
  196. package/dist/features/commands/index.d.ts.map +0 -1
  197. package/dist/features/commands/types.d.ts +0 -26
  198. package/dist/features/commands/types.d.ts.map +0 -1
  199. package/dist/features/commands/utils/close.d.ts +0 -3
  200. package/dist/features/commands/utils/close.d.ts.map +0 -1
  201. package/dist/features/commands/utils/hidePreviewMessage.d.ts +0 -3
  202. package/dist/features/commands/utils/hidePreviewMessage.d.ts.map +0 -1
  203. package/dist/features/commands/utils/open.d.ts +0 -3
  204. package/dist/features/commands/utils/open.d.ts.map +0 -1
  205. package/dist/features/commands/utils/reload.d.ts +0 -3
  206. package/dist/features/commands/utils/reload.d.ts.map +0 -1
  207. package/dist/features/commands/utils/sendCommand.d.ts +0 -3
  208. package/dist/features/commands/utils/sendCommand.d.ts.map +0 -1
  209. package/dist/features/commands/utils/setInputValue.d.ts +0 -3
  210. package/dist/features/commands/utils/setInputValue.d.ts.map +0 -1
  211. package/dist/features/commands/utils/setPrefilledVariables.d.ts +0 -3
  212. package/dist/features/commands/utils/setPrefilledVariables.d.ts.map +0 -1
  213. package/dist/features/commands/utils/showPreviewMessage.d.ts +0 -3
  214. package/dist/features/commands/utils/showPreviewMessage.d.ts.map +0 -1
  215. package/dist/features/commands/utils/toggle.d.ts +0 -3
  216. package/dist/features/commands/utils/toggle.d.ts.map +0 -1
  217. package/dist/features/commands/utils/unmount.d.ts +0 -3
  218. package/dist/features/commands/utils/unmount.d.ts.map +0 -1
  219. package/dist/features/popup/components/Popup.d.ts +0 -11
  220. package/dist/features/popup/components/Popup.d.ts.map +0 -1
  221. package/dist/features/popup/types.d.ts +0 -9
  222. package/dist/features/popup/types.d.ts.map +0 -1
  223. package/dist/features/standard/components/Standard.d.ts +0 -5
  224. package/dist/features/standard/components/Standard.d.ts.map +0 -1
  225. package/dist/index.d.ts.map +0 -1
  226. package/dist/lib/gtag.d.ts +0 -4
  227. package/dist/lib/gtag.d.ts.map +0 -1
  228. package/dist/lib/gtm.d.ts +0 -3
  229. package/dist/lib/gtm.d.ts.map +0 -1
  230. package/dist/lib/pixel.d.ts +0 -4
  231. package/dist/lib/pixel.d.ts.map +0 -1
  232. package/dist/queries/continueChatQuery.d.ts +0 -722
  233. package/dist/queries/continueChatQuery.d.ts.map +0 -1
  234. package/dist/queries/saveClientLogsQuery.d.ts +0 -7
  235. package/dist/queries/saveClientLogsQuery.d.ts.map +0 -1
  236. package/dist/queries/startChatQuery.d.ts +0 -20
  237. package/dist/queries/startChatQuery.d.ts.map +0 -1
  238. package/dist/register.d.ts +0 -2
  239. package/dist/register.d.ts.map +0 -1
  240. package/dist/types.d.ts +0 -49
  241. package/dist/types.d.ts.map +0 -1
  242. package/dist/utils/CorsError.d.ts +0 -4
  243. package/dist/utils/CorsError.d.ts.map +0 -1
  244. package/dist/utils/dynamicTheme.d.ts +0 -4
  245. package/dist/utils/dynamicTheme.d.ts.map +0 -1
  246. package/dist/utils/error.d.ts +0 -2
  247. package/dist/utils/error.d.ts.map +0 -1
  248. package/dist/utils/executeClientSideActions.d.ts +0 -25
  249. package/dist/utils/executeClientSideActions.d.ts.map +0 -1
  250. package/dist/utils/getAnswerContent.d.ts +0 -3
  251. package/dist/utils/getAnswerContent.d.ts.map +0 -1
  252. package/dist/utils/getPartyKitHost.d.ts +0 -2
  253. package/dist/utils/getPartyKitHost.d.ts.map +0 -1
  254. package/dist/utils/guessApiHost.d.ts +0 -6
  255. package/dist/utils/guessApiHost.d.ts.map +0 -1
  256. package/dist/utils/injectFont.d.ts +0 -3
  257. package/dist/utils/injectFont.d.ts.map +0 -1
  258. package/dist/utils/injectStartProps.d.ts +0 -3
  259. package/dist/utils/injectStartProps.d.ts.map +0 -1
  260. package/dist/utils/migrateLegacyChatChunks.d.ts +0 -10
  261. package/dist/utils/migrateLegacyChatChunks.d.ts.map +0 -1
  262. package/dist/utils/persist.d.ts +0 -9
  263. package/dist/utils/persist.d.ts.map +0 -1
  264. package/dist/utils/resolveBubbleButtonSize.d.ts +0 -5
  265. package/dist/utils/resolveBubbleButtonSize.d.ts.map +0 -1
  266. package/dist/utils/scrollContainer.d.ts +0 -2
  267. package/dist/utils/scrollContainer.d.ts.map +0 -1
  268. package/dist/utils/setCssVariablesValue.d.ts +0 -16
  269. package/dist/utils/setCssVariablesValue.d.ts.map +0 -1
  270. package/dist/utils/storage.d.ts +0 -875
  271. package/dist/utils/storage.d.ts.map +0 -1
  272. package/dist/utils/toaster.d.ts +0 -2
  273. package/dist/utils/toaster.d.ts.map +0 -1
  274. package/dist/web.d.ts +0 -19
  275. package/dist/web.d.ts.map +0 -1
  276. package/dist/window.d.ts +0 -29
  277. package/dist/window.d.ts.map +0 -1
@@ -1,875 +0,0 @@
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