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