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