@urbiport/js 0.0.17 → 0.0.19-alpha.0
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 +0 -1
- package/dist/components/Bot.d.ts +0 -1
- package/dist/components/Bot.d.ts.map +1 -1
- package/dist/components/InputAnswerContext.d.ts.map +1 -1
- package/dist/components/TextInputAddFileButton.d.ts.map +1 -1
- package/dist/components/icons/FileIconUpload.d.ts +3 -0
- package/dist/components/icons/FileIconUpload.d.ts.map +1 -0
- package/dist/constants.d.ts.map +1 -1
- package/dist/features/blocks/inputs/fileUpload/components/FileUploadForm.d.ts.map +1 -1
- package/dist/features/blocks/inputs/fileUpload/utils/uploadFiles.d.ts +1 -2
- package/dist/features/blocks/inputs/fileUpload/utils/uploadFiles.d.ts.map +1 -1
- package/dist/features/blocks/inputs/text/components/TextInput.d.ts.map +1 -1
- package/dist/features/bubble/components/BubbleButton.d.ts.map +1 -1
- package/dist/features/streaming/streamChat.d.ts.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +95 -14
- package/dist/queries/continueChatQuery.d.ts +16 -41
- package/dist/queries/continueChatQuery.d.ts.map +1 -1
- package/dist/queries/saveClientLogsQuery.d.ts +1 -2
- package/dist/queries/saveClientLogsQuery.d.ts.map +1 -1
- package/dist/queries/startChatQuery.d.ts +17 -42
- package/dist/queries/startChatQuery.d.ts.map +1 -1
- package/dist/types.d.ts +0 -2
- package/dist/types.d.ts.map +1 -1
- package/dist/utils/executeClientSideActions.d.ts.map +1 -1
- package/dist/utils/getApiUrl.d.ts +2 -0
- package/dist/utils/getApiUrl.d.ts.map +1 -0
- package/dist/utils/storage.d.ts +16 -40
- 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 +105 -18
- package/package.json +3 -8
- package/dist/features/blocks/integrations/chatwoot/index.d.ts +0 -2
- package/dist/features/blocks/integrations/chatwoot/index.d.ts.map +0 -1
- package/dist/features/blocks/integrations/chatwoot/utils/executeChatwoot.d.ts +0 -5
- package/dist/features/blocks/integrations/chatwoot/utils/executeChatwoot.d.ts.map +0 -1
- package/dist/features/blocks/integrations/chatwoot/utils/index.d.ts +0 -2
- package/dist/features/blocks/integrations/chatwoot/utils/index.d.ts.map +0 -1
- package/dist/features/blocks/integrations/webhook/executeWebhook.d.ts +0 -3
- package/dist/features/blocks/integrations/webhook/executeWebhook.d.ts.map +0 -1
- package/dist/utils/guessApiHost.d.ts +0 -6
- package/dist/utils/guessApiHost.d.ts.map +0 -1
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Message } from '@quickbot.io/schemas';
|
|
2
|
-
export declare const continueChatQuery: ({
|
|
3
|
-
apiHost?: string;
|
|
2
|
+
export declare const continueChatQuery: ({ message, sessionId, messageMetadata, }: {
|
|
4
3
|
message?: Message;
|
|
5
4
|
sessionId: string;
|
|
6
5
|
messageMetadata?: {
|
|
@@ -32,10 +31,10 @@ export declare const continueChatQuery: ({ apiHost, message, sessionId, messageM
|
|
|
32
31
|
} | {
|
|
33
32
|
type: import("@quickbot.io/schemas/features/blocks/bubbles/constants").BubbleBlockType.VIDEO;
|
|
34
33
|
content: {
|
|
35
|
-
height?: number | `{{${string}}}` | undefined;
|
|
36
|
-
type?: import("@quickbot.io/schemas/features/blocks/bubbles/video/constants").VideoBubbleContentType | undefined;
|
|
37
34
|
id?: string | undefined;
|
|
35
|
+
type?: import("@quickbot.io/schemas/features/blocks/bubbles/video/constants").VideoBubbleContentType | undefined;
|
|
38
36
|
url?: string | undefined;
|
|
37
|
+
height?: number | `{{${string}}}` | undefined;
|
|
39
38
|
isAutoplayEnabled?: boolean | undefined;
|
|
40
39
|
aspectRatio?: string | undefined;
|
|
41
40
|
maxWidth?: string | undefined;
|
|
@@ -51,8 +50,8 @@ export declare const continueChatQuery: ({ apiHost, message, sessionId, messageM
|
|
|
51
50
|
} | {
|
|
52
51
|
type: import("@quickbot.io/schemas/features/blocks/bubbles/constants").BubbleBlockType.EMBED;
|
|
53
52
|
content: {
|
|
54
|
-
height?: number | undefined;
|
|
55
53
|
url?: string | undefined;
|
|
54
|
+
height?: number | undefined;
|
|
56
55
|
waitForEvent?: {
|
|
57
56
|
name?: string | undefined;
|
|
58
57
|
isEnabled?: boolean | undefined;
|
|
@@ -69,8 +68,8 @@ export declare const continueChatQuery: ({ apiHost, message, sessionId, messageM
|
|
|
69
68
|
};
|
|
70
69
|
}))[];
|
|
71
70
|
input?: (({
|
|
72
|
-
type: import("@quickbot.io/schemas/features/blocks/inputs/constants").InputBlockType.CHOICE;
|
|
73
71
|
id: string;
|
|
72
|
+
type: import("@quickbot.io/schemas/features/blocks/inputs/constants").InputBlockType.CHOICE;
|
|
74
73
|
items: {
|
|
75
74
|
id: string;
|
|
76
75
|
content: string;
|
|
@@ -107,9 +106,10 @@ export declare const continueChatQuery: ({ apiHost, message, sessionId, messageM
|
|
|
107
106
|
} | undefined;
|
|
108
107
|
outgoingEdgeId?: string | undefined;
|
|
109
108
|
} | {
|
|
110
|
-
type: import("@quickbot.io/schemas/features/blocks/inputs/constants").InputBlockType.DATE;
|
|
111
109
|
id: string;
|
|
110
|
+
type: import("@quickbot.io/schemas/features/blocks/inputs/constants").InputBlockType.DATE;
|
|
112
111
|
options?: {
|
|
112
|
+
format?: string | undefined;
|
|
113
113
|
variableId?: string | undefined;
|
|
114
114
|
retryMessageContent?: string | undefined;
|
|
115
115
|
labels?: {
|
|
@@ -119,14 +119,13 @@ export declare const continueChatQuery: ({ apiHost, message, sessionId, messageM
|
|
|
119
119
|
} | undefined;
|
|
120
120
|
hasTime?: boolean | undefined;
|
|
121
121
|
isRange?: boolean | undefined;
|
|
122
|
-
format?: string | undefined;
|
|
123
122
|
min?: string | undefined;
|
|
124
123
|
max?: string | undefined;
|
|
125
124
|
} | undefined;
|
|
126
125
|
outgoingEdgeId?: string | undefined;
|
|
127
126
|
} | {
|
|
128
|
-
type: import("@quickbot.io/schemas/features/blocks/inputs/constants").InputBlockType.FILE;
|
|
129
127
|
id: string;
|
|
128
|
+
type: import("@quickbot.io/schemas/features/blocks/inputs/constants").InputBlockType.FILE;
|
|
130
129
|
options?: {
|
|
131
130
|
visibility?: "Auto" | "Public" | "Private" | undefined;
|
|
132
131
|
variableId?: string | undefined;
|
|
@@ -146,8 +145,8 @@ export declare const continueChatQuery: ({ apiHost, message, sessionId, messageM
|
|
|
146
145
|
} | undefined;
|
|
147
146
|
outgoingEdgeId?: string | undefined;
|
|
148
147
|
} | {
|
|
149
|
-
type: import("@quickbot.io/schemas/features/blocks/inputs/constants").InputBlockType.TEXT;
|
|
150
148
|
id: string;
|
|
149
|
+
type: import("@quickbot.io/schemas/features/blocks/inputs/constants").InputBlockType.TEXT;
|
|
151
150
|
options?: {
|
|
152
151
|
variableId?: string | undefined;
|
|
153
152
|
labels?: {
|
|
@@ -167,8 +166,8 @@ export declare const continueChatQuery: ({ apiHost, message, sessionId, messageM
|
|
|
167
166
|
} | undefined;
|
|
168
167
|
outgoingEdgeId?: string | undefined;
|
|
169
168
|
} | {
|
|
170
|
-
type: import("@quickbot.io/schemas/features/blocks/inputs/constants").InputBlockType.EMAIL;
|
|
171
169
|
id: string;
|
|
170
|
+
type: import("@quickbot.io/schemas/features/blocks/inputs/constants").InputBlockType.EMAIL;
|
|
172
171
|
options?: {
|
|
173
172
|
variableId?: string | undefined;
|
|
174
173
|
retryMessageContent?: string | undefined;
|
|
@@ -179,8 +178,8 @@ export declare const continueChatQuery: ({ apiHost, message, sessionId, messageM
|
|
|
179
178
|
} | undefined;
|
|
180
179
|
outgoingEdgeId?: string | undefined;
|
|
181
180
|
} | {
|
|
182
|
-
type: import("@quickbot.io/schemas/features/blocks/inputs/constants").InputBlockType.NUMBER;
|
|
183
181
|
id: string;
|
|
182
|
+
type: import("@quickbot.io/schemas/features/blocks/inputs/constants").InputBlockType.NUMBER;
|
|
184
183
|
options?: {
|
|
185
184
|
variableId?: string | undefined;
|
|
186
185
|
retryMessageContent?: string | undefined;
|
|
@@ -194,8 +193,8 @@ export declare const continueChatQuery: ({ apiHost, message, sessionId, messageM
|
|
|
194
193
|
} | undefined;
|
|
195
194
|
outgoingEdgeId?: string | undefined;
|
|
196
195
|
} | {
|
|
197
|
-
type: import("@quickbot.io/schemas/features/blocks/integrations/constants").IntegrationBlockType.PAYMENT;
|
|
198
196
|
id: string;
|
|
197
|
+
type: import("@quickbot.io/schemas/features/blocks/integrations/constants").IntegrationBlockType.PAYMENT;
|
|
199
198
|
options?: {
|
|
200
199
|
variableId?: string | undefined;
|
|
201
200
|
retryMessageContent?: string | undefined;
|
|
@@ -224,8 +223,8 @@ export declare const continueChatQuery: ({ apiHost, message, sessionId, messageM
|
|
|
224
223
|
} | undefined;
|
|
225
224
|
outgoingEdgeId?: string | undefined;
|
|
226
225
|
} | {
|
|
227
|
-
type: import("@quickbot.io/schemas/features/blocks/inputs/constants").InputBlockType.PHONE;
|
|
228
226
|
id: string;
|
|
227
|
+
type: import("@quickbot.io/schemas/features/blocks/inputs/constants").InputBlockType.PHONE;
|
|
229
228
|
options?: {
|
|
230
229
|
variableId?: string | undefined;
|
|
231
230
|
retryMessageContent?: string | undefined;
|
|
@@ -237,8 +236,8 @@ export declare const continueChatQuery: ({ apiHost, message, sessionId, messageM
|
|
|
237
236
|
} | undefined;
|
|
238
237
|
outgoingEdgeId?: string | undefined;
|
|
239
238
|
} | {
|
|
240
|
-
type: import("@quickbot.io/schemas/features/blocks/inputs/constants").InputBlockType.RATING;
|
|
241
239
|
id: string;
|
|
240
|
+
type: import("@quickbot.io/schemas/features/blocks/inputs/constants").InputBlockType.RATING;
|
|
242
241
|
options?: {
|
|
243
242
|
length?: number | undefined;
|
|
244
243
|
variableId?: string | undefined;
|
|
@@ -258,8 +257,8 @@ export declare const continueChatQuery: ({ apiHost, message, sessionId, messageM
|
|
|
258
257
|
} | undefined;
|
|
259
258
|
outgoingEdgeId?: string | undefined;
|
|
260
259
|
} | {
|
|
261
|
-
type: import("@quickbot.io/schemas/features/blocks/inputs/constants").InputBlockType.URL;
|
|
262
260
|
id: string;
|
|
261
|
+
type: import("@quickbot.io/schemas/features/blocks/inputs/constants").InputBlockType.URL;
|
|
263
262
|
options?: {
|
|
264
263
|
variableId?: string | undefined;
|
|
265
264
|
retryMessageContent?: string | undefined;
|
|
@@ -308,20 +307,6 @@ export declare const continueChatQuery: ({ apiHost, message, sessionId, messageM
|
|
|
308
307
|
};
|
|
309
308
|
lastBubbleBlockId?: string | undefined;
|
|
310
309
|
expectsDedicatedReply?: boolean | undefined;
|
|
311
|
-
} | {
|
|
312
|
-
type: "chatwoot";
|
|
313
|
-
chatwoot: {
|
|
314
|
-
scriptToExecute: {
|
|
315
|
-
content: string;
|
|
316
|
-
args: {
|
|
317
|
-
id: string;
|
|
318
|
-
value?: string | number | boolean | (string | null)[] | null | undefined;
|
|
319
|
-
}[];
|
|
320
|
-
isCode?: boolean | undefined;
|
|
321
|
-
};
|
|
322
|
-
};
|
|
323
|
-
lastBubbleBlockId?: string | undefined;
|
|
324
|
-
expectsDedicatedReply?: boolean | undefined;
|
|
325
310
|
} | {
|
|
326
311
|
type: "wait";
|
|
327
312
|
wait: {
|
|
@@ -348,21 +333,11 @@ export declare const continueChatQuery: ({ apiHost, message, sessionId, messageM
|
|
|
348
333
|
streamOpenAiChatCompletion: {
|
|
349
334
|
messages: {
|
|
350
335
|
content: string;
|
|
351
|
-
role: "
|
|
336
|
+
role: "system" | "user" | "assistant";
|
|
352
337
|
}[];
|
|
353
338
|
};
|
|
354
339
|
lastBubbleBlockId?: string | undefined;
|
|
355
340
|
expectsDedicatedReply?: boolean | undefined;
|
|
356
|
-
} | {
|
|
357
|
-
type: "webhookToExecute";
|
|
358
|
-
webhookToExecute: {
|
|
359
|
-
url: string;
|
|
360
|
-
body?: unknown;
|
|
361
|
-
headers?: Record<string, string> | undefined;
|
|
362
|
-
method?: import("@quickbot.io/schemas/features/blocks/integrations/webhook/constants").HttpMethod | undefined;
|
|
363
|
-
};
|
|
364
|
-
lastBubbleBlockId?: string | undefined;
|
|
365
|
-
expectsDedicatedReply?: boolean | undefined;
|
|
366
341
|
} | {
|
|
367
342
|
type: "startPropsToInject";
|
|
368
343
|
startPropsToInject: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"continueChatQuery.d.ts","sourceRoot":"","sources":["../../src/queries/continueChatQuery.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"continueChatQuery.d.ts","sourceRoot":"","sources":["../../src/queries/continueChatQuery.ts"],"names":[],"mappings":"AAAA,OAAO,EAAwB,OAAO,EAAE,MAAM,sBAAsB,CAAA;AAIpE,eAAO,MAAM,iBAAiB,6CAI3B;IACD,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,SAAS,EAAE,MAAM,CAAA;IACjB,eAAe,CAAC,EAAE;QAChB,YAAY,CAAC,EAAE,MAAM,CAAA;QACrB,SAAS,CAAC,EAAE,MAAM,CAAA;KACnB,CAAA;CACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmBA,CAAA"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { ChatLog } from '@quickbot.io/schemas';
|
|
2
|
-
export declare const saveClientLogsQuery: ({
|
|
3
|
-
apiHost?: string;
|
|
2
|
+
export declare const saveClientLogsQuery: ({ sessionId, clientLogs, }: {
|
|
4
3
|
sessionId: string;
|
|
5
4
|
clientLogs: ChatLog[];
|
|
6
5
|
}) => Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"saveClientLogsQuery.d.ts","sourceRoot":"","sources":["../../src/queries/saveClientLogsQuery.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"saveClientLogsQuery.d.ts","sourceRoot":"","sources":["../../src/queries/saveClientLogsQuery.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AAInD,eAAO,MAAM,mBAAmB,+BAG7B;IACD,SAAS,EAAE,MAAM,CAAA;IACjB,UAAU,EAAE,OAAO,EAAE,CAAA;CACtB,kBAaA,CAAA"}
|
|
@@ -2,14 +2,13 @@ import { StartFrom } from '@quickbot.io/schemas';
|
|
|
2
2
|
type Props = {
|
|
3
3
|
bot: string | any;
|
|
4
4
|
stripeRedirectStatus?: string;
|
|
5
|
-
apiHost?: string;
|
|
6
5
|
startFrom?: StartFrom;
|
|
7
6
|
isPreview: boolean;
|
|
8
7
|
prefilledVariables?: Record<string, unknown>;
|
|
9
8
|
resultId?: string;
|
|
10
9
|
sessionId?: string;
|
|
11
10
|
};
|
|
12
|
-
export declare function startChatQuery({ bot, isPreview,
|
|
11
|
+
export declare function startChatQuery({ bot, isPreview, prefilledVariables, resultId, stripeRedirectStatus, startFrom, sessionId, }: Props): Promise<{
|
|
13
12
|
error: unknown;
|
|
14
13
|
data?: undefined;
|
|
15
14
|
} | {
|
|
@@ -37,10 +36,10 @@ export declare function startChatQuery({ bot, isPreview, apiHost, prefilledVaria
|
|
|
37
36
|
} | {
|
|
38
37
|
type: import("@quickbot.io/schemas/features/blocks/bubbles/constants").BubbleBlockType.VIDEO;
|
|
39
38
|
content: {
|
|
40
|
-
height?: number | `{{${string}}}` | undefined;
|
|
41
|
-
type?: import("@quickbot.io/schemas/features/blocks/bubbles/video/constants").VideoBubbleContentType | undefined;
|
|
42
39
|
id?: string | undefined;
|
|
40
|
+
type?: import("@quickbot.io/schemas/features/blocks/bubbles/video/constants").VideoBubbleContentType | undefined;
|
|
43
41
|
url?: string | undefined;
|
|
42
|
+
height?: number | `{{${string}}}` | undefined;
|
|
44
43
|
isAutoplayEnabled?: boolean | undefined;
|
|
45
44
|
aspectRatio?: string | undefined;
|
|
46
45
|
maxWidth?: string | undefined;
|
|
@@ -56,8 +55,8 @@ export declare function startChatQuery({ bot, isPreview, apiHost, prefilledVaria
|
|
|
56
55
|
} | {
|
|
57
56
|
type: import("@quickbot.io/schemas/features/blocks/bubbles/constants").BubbleBlockType.EMBED;
|
|
58
57
|
content: {
|
|
59
|
-
height?: number | undefined;
|
|
60
58
|
url?: string | undefined;
|
|
59
|
+
height?: number | undefined;
|
|
61
60
|
waitForEvent?: {
|
|
62
61
|
name?: string | undefined;
|
|
63
62
|
isEnabled?: boolean | undefined;
|
|
@@ -185,8 +184,8 @@ export declare function startChatQuery({ bot, isPreview, apiHost, prefilledVaria
|
|
|
185
184
|
family?: string | undefined;
|
|
186
185
|
} | {
|
|
187
186
|
type: "Custom";
|
|
188
|
-
css?: string | undefined;
|
|
189
187
|
url?: string | undefined;
|
|
188
|
+
css?: string | undefined;
|
|
190
189
|
family?: string | undefined;
|
|
191
190
|
} | undefined;
|
|
192
191
|
} | undefined;
|
|
@@ -250,8 +249,8 @@ export declare function startChatQuery({ bot, isPreview, apiHost, prefilledVaria
|
|
|
250
249
|
};
|
|
251
250
|
sessionId: string;
|
|
252
251
|
input?: (({
|
|
253
|
-
type: import("@quickbot.io/schemas/features/blocks/inputs/constants").InputBlockType.CHOICE;
|
|
254
252
|
id: string;
|
|
253
|
+
type: import("@quickbot.io/schemas/features/blocks/inputs/constants").InputBlockType.CHOICE;
|
|
255
254
|
items: {
|
|
256
255
|
id: string;
|
|
257
256
|
content: string;
|
|
@@ -288,9 +287,10 @@ export declare function startChatQuery({ bot, isPreview, apiHost, prefilledVaria
|
|
|
288
287
|
} | undefined;
|
|
289
288
|
outgoingEdgeId?: string | undefined;
|
|
290
289
|
} | {
|
|
291
|
-
type: import("@quickbot.io/schemas/features/blocks/inputs/constants").InputBlockType.DATE;
|
|
292
290
|
id: string;
|
|
291
|
+
type: import("@quickbot.io/schemas/features/blocks/inputs/constants").InputBlockType.DATE;
|
|
293
292
|
options?: {
|
|
293
|
+
format?: string | undefined;
|
|
294
294
|
variableId?: string | undefined;
|
|
295
295
|
retryMessageContent?: string | undefined;
|
|
296
296
|
labels?: {
|
|
@@ -300,14 +300,13 @@ export declare function startChatQuery({ bot, isPreview, apiHost, prefilledVaria
|
|
|
300
300
|
} | undefined;
|
|
301
301
|
hasTime?: boolean | undefined;
|
|
302
302
|
isRange?: boolean | undefined;
|
|
303
|
-
format?: string | undefined;
|
|
304
303
|
min?: string | undefined;
|
|
305
304
|
max?: string | undefined;
|
|
306
305
|
} | undefined;
|
|
307
306
|
outgoingEdgeId?: string | undefined;
|
|
308
307
|
} | {
|
|
309
|
-
type: import("@quickbot.io/schemas/features/blocks/inputs/constants").InputBlockType.FILE;
|
|
310
308
|
id: string;
|
|
309
|
+
type: import("@quickbot.io/schemas/features/blocks/inputs/constants").InputBlockType.FILE;
|
|
311
310
|
options?: {
|
|
312
311
|
visibility?: "Auto" | "Public" | "Private" | undefined;
|
|
313
312
|
variableId?: string | undefined;
|
|
@@ -327,8 +326,8 @@ export declare function startChatQuery({ bot, isPreview, apiHost, prefilledVaria
|
|
|
327
326
|
} | undefined;
|
|
328
327
|
outgoingEdgeId?: string | undefined;
|
|
329
328
|
} | {
|
|
330
|
-
type: import("@quickbot.io/schemas/features/blocks/inputs/constants").InputBlockType.TEXT;
|
|
331
329
|
id: string;
|
|
330
|
+
type: import("@quickbot.io/schemas/features/blocks/inputs/constants").InputBlockType.TEXT;
|
|
332
331
|
options?: {
|
|
333
332
|
variableId?: string | undefined;
|
|
334
333
|
labels?: {
|
|
@@ -348,8 +347,8 @@ export declare function startChatQuery({ bot, isPreview, apiHost, prefilledVaria
|
|
|
348
347
|
} | undefined;
|
|
349
348
|
outgoingEdgeId?: string | undefined;
|
|
350
349
|
} | {
|
|
351
|
-
type: import("@quickbot.io/schemas/features/blocks/inputs/constants").InputBlockType.EMAIL;
|
|
352
350
|
id: string;
|
|
351
|
+
type: import("@quickbot.io/schemas/features/blocks/inputs/constants").InputBlockType.EMAIL;
|
|
353
352
|
options?: {
|
|
354
353
|
variableId?: string | undefined;
|
|
355
354
|
retryMessageContent?: string | undefined;
|
|
@@ -360,8 +359,8 @@ export declare function startChatQuery({ bot, isPreview, apiHost, prefilledVaria
|
|
|
360
359
|
} | undefined;
|
|
361
360
|
outgoingEdgeId?: string | undefined;
|
|
362
361
|
} | {
|
|
363
|
-
type: import("@quickbot.io/schemas/features/blocks/inputs/constants").InputBlockType.NUMBER;
|
|
364
362
|
id: string;
|
|
363
|
+
type: import("@quickbot.io/schemas/features/blocks/inputs/constants").InputBlockType.NUMBER;
|
|
365
364
|
options?: {
|
|
366
365
|
variableId?: string | undefined;
|
|
367
366
|
retryMessageContent?: string | undefined;
|
|
@@ -375,8 +374,8 @@ export declare function startChatQuery({ bot, isPreview, apiHost, prefilledVaria
|
|
|
375
374
|
} | undefined;
|
|
376
375
|
outgoingEdgeId?: string | undefined;
|
|
377
376
|
} | {
|
|
378
|
-
type: import("@quickbot.io/schemas/features/blocks/integrations/constants").IntegrationBlockType.PAYMENT;
|
|
379
377
|
id: string;
|
|
378
|
+
type: import("@quickbot.io/schemas/features/blocks/integrations/constants").IntegrationBlockType.PAYMENT;
|
|
380
379
|
options?: {
|
|
381
380
|
variableId?: string | undefined;
|
|
382
381
|
retryMessageContent?: string | undefined;
|
|
@@ -405,8 +404,8 @@ export declare function startChatQuery({ bot, isPreview, apiHost, prefilledVaria
|
|
|
405
404
|
} | undefined;
|
|
406
405
|
outgoingEdgeId?: string | undefined;
|
|
407
406
|
} | {
|
|
408
|
-
type: import("@quickbot.io/schemas/features/blocks/inputs/constants").InputBlockType.PHONE;
|
|
409
407
|
id: string;
|
|
408
|
+
type: import("@quickbot.io/schemas/features/blocks/inputs/constants").InputBlockType.PHONE;
|
|
410
409
|
options?: {
|
|
411
410
|
variableId?: string | undefined;
|
|
412
411
|
retryMessageContent?: string | undefined;
|
|
@@ -418,8 +417,8 @@ export declare function startChatQuery({ bot, isPreview, apiHost, prefilledVaria
|
|
|
418
417
|
} | undefined;
|
|
419
418
|
outgoingEdgeId?: string | undefined;
|
|
420
419
|
} | {
|
|
421
|
-
type: import("@quickbot.io/schemas/features/blocks/inputs/constants").InputBlockType.RATING;
|
|
422
420
|
id: string;
|
|
421
|
+
type: import("@quickbot.io/schemas/features/blocks/inputs/constants").InputBlockType.RATING;
|
|
423
422
|
options?: {
|
|
424
423
|
length?: number | undefined;
|
|
425
424
|
variableId?: string | undefined;
|
|
@@ -439,8 +438,8 @@ export declare function startChatQuery({ bot, isPreview, apiHost, prefilledVaria
|
|
|
439
438
|
} | undefined;
|
|
440
439
|
outgoingEdgeId?: string | undefined;
|
|
441
440
|
} | {
|
|
442
|
-
type: import("@quickbot.io/schemas/features/blocks/inputs/constants").InputBlockType.URL;
|
|
443
441
|
id: string;
|
|
442
|
+
type: import("@quickbot.io/schemas/features/blocks/inputs/constants").InputBlockType.URL;
|
|
444
443
|
options?: {
|
|
445
444
|
variableId?: string | undefined;
|
|
446
445
|
retryMessageContent?: string | undefined;
|
|
@@ -490,20 +489,6 @@ export declare function startChatQuery({ bot, isPreview, apiHost, prefilledVaria
|
|
|
490
489
|
};
|
|
491
490
|
lastBubbleBlockId?: string | undefined;
|
|
492
491
|
expectsDedicatedReply?: boolean | undefined;
|
|
493
|
-
} | {
|
|
494
|
-
type: "chatwoot";
|
|
495
|
-
chatwoot: {
|
|
496
|
-
scriptToExecute: {
|
|
497
|
-
content: string;
|
|
498
|
-
args: {
|
|
499
|
-
id: string;
|
|
500
|
-
value?: string | number | boolean | (string | null)[] | null | undefined;
|
|
501
|
-
}[];
|
|
502
|
-
isCode?: boolean | undefined;
|
|
503
|
-
};
|
|
504
|
-
};
|
|
505
|
-
lastBubbleBlockId?: string | undefined;
|
|
506
|
-
expectsDedicatedReply?: boolean | undefined;
|
|
507
492
|
} | {
|
|
508
493
|
type: "wait";
|
|
509
494
|
wait: {
|
|
@@ -530,21 +515,11 @@ export declare function startChatQuery({ bot, isPreview, apiHost, prefilledVaria
|
|
|
530
515
|
streamOpenAiChatCompletion: {
|
|
531
516
|
messages: {
|
|
532
517
|
content: string;
|
|
533
|
-
role: "
|
|
518
|
+
role: "system" | "user" | "assistant";
|
|
534
519
|
}[];
|
|
535
520
|
};
|
|
536
521
|
lastBubbleBlockId?: string | undefined;
|
|
537
522
|
expectsDedicatedReply?: boolean | undefined;
|
|
538
|
-
} | {
|
|
539
|
-
type: "webhookToExecute";
|
|
540
|
-
webhookToExecute: {
|
|
541
|
-
url: string;
|
|
542
|
-
body?: unknown;
|
|
543
|
-
headers?: Record<string, string> | undefined;
|
|
544
|
-
method?: import("@quickbot.io/schemas/features/blocks/integrations/webhook/constants").HttpMethod | undefined;
|
|
545
|
-
};
|
|
546
|
-
lastBubbleBlockId?: string | undefined;
|
|
547
|
-
expectsDedicatedReply?: boolean | undefined;
|
|
548
523
|
} | {
|
|
549
524
|
type: "startPropsToInject";
|
|
550
525
|
startPropsToInject: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"startChatQuery.d.ts","sourceRoot":"","sources":["../../src/queries/startChatQuery.ts"],"names":[],"mappings":"AAOA,OAAO,EAIL,SAAS,EAEV,MAAM,sBAAsB,CAAA;AAI7B,KAAK,KAAK,GAAG;IAEX,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;IACjB,oBAAoB,CAAC,EAAE,MAAM,CAAA;IAC7B,
|
|
1
|
+
{"version":3,"file":"startChatQuery.d.ts","sourceRoot":"","sources":["../../src/queries/startChatQuery.ts"],"names":[],"mappings":"AAOA,OAAO,EAIL,SAAS,EAEV,MAAM,sBAAsB,CAAA;AAI7B,KAAK,KAAK,GAAG;IAEX,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;IACjB,oBAAoB,CAAC,EAAE,MAAM,CAAA;IAC7B,SAAS,CAAC,EAAE,SAAS,CAAA;IACrB,SAAS,EAAE,OAAO,CAAA;IAClB,kBAAkB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAC5C,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA;AAiBD,wBAAsB,cAAc,CAAC,EACnC,GAAG,EACH,SAAS,EACT,kBAAkB,EAClB,QAAQ,EACR,oBAAoB,EACpB,SAAS,EACT,SAAS,GACV,EAAE,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgHP"}
|
package/dist/types.d.ts
CHANGED
|
@@ -3,7 +3,6 @@ export type BotContext = {
|
|
|
3
3
|
bot: StartChatResponse['bot'];
|
|
4
4
|
resultId?: string;
|
|
5
5
|
isPreview: boolean;
|
|
6
|
-
apiHost?: string;
|
|
7
6
|
sessionId: string;
|
|
8
7
|
storage: 'local' | 'session' | undefined;
|
|
9
8
|
};
|
|
@@ -13,7 +12,6 @@ export type OutgoingLog = {
|
|
|
13
12
|
details?: unknown;
|
|
14
13
|
};
|
|
15
14
|
export type ClientSideActionContext = {
|
|
16
|
-
apiHost?: string;
|
|
17
15
|
sessionId: string;
|
|
18
16
|
};
|
|
19
17
|
export type ChatChunk = Pick<ContinueChatResponse, 'messages' | 'clientSideActions'> & {
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAA;AAE9E,MAAM,MAAM,UAAU,GAAG;IACvB,GAAG,EAAE,iBAAiB,CAAC,KAAK,CAAC,CAAA;IAC7B,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,SAAS,EAAE,OAAO,CAAA;IAClB,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAA;AAE9E,MAAM,MAAM,UAAU,GAAG;IACvB,GAAG,EAAE,iBAAiB,CAAC,KAAK,CAAC,CAAA;IAC7B,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,SAAS,EAAE,OAAO,CAAA;IAClB,SAAS,EAAE,MAAM,CAAA;IACjB,OAAO,EAAE,OAAO,GAAG,SAAS,GAAG,SAAS,CAAA;CACzC,CAAA;AAED,MAAM,MAAM,WAAW,GAAG;IACxB,MAAM,EAAE,MAAM,CAAA;IACd,WAAW,EAAE,MAAM,CAAA;IACnB,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,CAAA;AAED,MAAM,MAAM,uBAAuB,GAAG;IACpC,SAAS,EAAE,MAAM,CAAA;CAClB,CAAA;AAED,MAAM,MAAM,SAAS,GAAG,IAAI,CAAC,oBAAoB,EAAE,UAAU,GAAG,mBAAmB,CAAC,GAAG;IACrF,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,KAAK,CAAC,EAAE,WAAW,CAAC,oBAAoB,CAAC,OAAO,CAAC,CAAC,GAAG;QACnD,MAAM,CAAC,EAAE,kBAAkB,CAAA;KAC5B,CAAA;CACF,CAAA;AAED,MAAM,MAAM,UAAU,GAAG;IACvB,IAAI,EAAE,MAAM,CAAA;IACZ,GAAG,EAAE,MAAM,CAAA;CACZ,CAAA;AAED,MAAM,MAAM,sBAAsB,GAAG;IACnC,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,WAAW,CAAC,EAAE,UAAU,EAAE,CAAA;CAC3B,CAAA;AAED,MAAM,MAAM,2BAA2B,GAAG;IACxC,IAAI,EAAE,WAAW,CAAA;IACjB,GAAG,EAAE,MAAM,CAAA;CACZ,CAAA;AAED,MAAM,MAAM,kBAAkB,GAAG,sBAAsB,GAAG,2BAA2B,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"executeClientSideActions.d.ts","sourceRoot":"","sources":["../../src/utils/executeClientSideActions.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"executeClientSideActions.d.ts","sourceRoot":"","sources":["../../src/utils/executeClientSideActions.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAA;AACjD,OAAO,KAAK,EAAE,oBAAoB,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AAGzE,KAAK,KAAK,GAAG;IACX,gBAAgB,EAAE,WAAW,CAAC,oBAAoB,CAAC,mBAAmB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;IAC3E,OAAO,EAAE,uBAAuB,CAAA;IAChC,eAAe,CAAC,EAAE,CAAC,KAAK,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAA;CACnE,CAAA;AAED,eAAO,MAAM,uBAAuB,oDAIjC,KAAK,KAAG,QACP;IAAE,eAAe,EAAE,MAAM,CAAA;CAAE,GAC3B;IAAE,WAAW,EAAE,MAAM,GAAG,SAAS,CAAC;IAAC,IAAI,CAAC,EAAE,OAAO,EAAE,CAAA;CAAE,GACrD;IAAE,IAAI,EAAE,OAAO,EAAE,CAAA;CAAE,GACnB,IAAI,CA6CP,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getApiUrl.d.ts","sourceRoot":"","sources":["../../src/utils/getApiUrl.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS,gBAAiB,MAAM,KAAG,MAc/C,CAAA"}
|
package/dist/utils/storage.d.ts
CHANGED
|
@@ -25,10 +25,10 @@ export declare const getInitialChatReplyFromStorage: (botId: string | undefined)
|
|
|
25
25
|
} | {
|
|
26
26
|
type: import("@quickbot.io/schemas/features/blocks/bubbles/constants").BubbleBlockType.VIDEO;
|
|
27
27
|
content: {
|
|
28
|
-
height?: number | `{{${string}}}` | undefined;
|
|
29
|
-
type?: import("@quickbot.io/schemas/features/blocks/bubbles/video/constants").VideoBubbleContentType | undefined;
|
|
30
28
|
id?: string | undefined;
|
|
29
|
+
type?: import("@quickbot.io/schemas/features/blocks/bubbles/video/constants").VideoBubbleContentType | undefined;
|
|
31
30
|
url?: string | undefined;
|
|
31
|
+
height?: number | `{{${string}}}` | undefined;
|
|
32
32
|
isAutoplayEnabled?: boolean | undefined;
|
|
33
33
|
aspectRatio?: string | undefined;
|
|
34
34
|
maxWidth?: string | undefined;
|
|
@@ -44,8 +44,8 @@ export declare const getInitialChatReplyFromStorage: (botId: string | undefined)
|
|
|
44
44
|
} | {
|
|
45
45
|
type: import("@quickbot.io/schemas/features/blocks/bubbles/constants").BubbleBlockType.EMBED;
|
|
46
46
|
content: {
|
|
47
|
-
height?: number | undefined;
|
|
48
47
|
url?: string | undefined;
|
|
48
|
+
height?: number | undefined;
|
|
49
49
|
waitForEvent?: {
|
|
50
50
|
name?: string | undefined;
|
|
51
51
|
isEnabled?: boolean | undefined;
|
|
@@ -173,8 +173,8 @@ export declare const getInitialChatReplyFromStorage: (botId: string | undefined)
|
|
|
173
173
|
family?: string | undefined;
|
|
174
174
|
} | {
|
|
175
175
|
type: "Custom";
|
|
176
|
-
css?: string | undefined;
|
|
177
176
|
url?: string | undefined;
|
|
177
|
+
css?: string | undefined;
|
|
178
178
|
family?: string | undefined;
|
|
179
179
|
} | undefined;
|
|
180
180
|
} | undefined;
|
|
@@ -238,8 +238,8 @@ export declare const getInitialChatReplyFromStorage: (botId: string | undefined)
|
|
|
238
238
|
};
|
|
239
239
|
sessionId: string;
|
|
240
240
|
input?: (({
|
|
241
|
-
type: import("@quickbot.io/schemas/features/blocks/inputs/constants").InputBlockType.CHOICE;
|
|
242
241
|
id: string;
|
|
242
|
+
type: import("@quickbot.io/schemas/features/blocks/inputs/constants").InputBlockType.CHOICE;
|
|
243
243
|
items: {
|
|
244
244
|
id: string;
|
|
245
245
|
content: string;
|
|
@@ -276,9 +276,10 @@ export declare const getInitialChatReplyFromStorage: (botId: string | undefined)
|
|
|
276
276
|
} | undefined;
|
|
277
277
|
outgoingEdgeId?: string | undefined;
|
|
278
278
|
} | {
|
|
279
|
-
type: import("@quickbot.io/schemas/features/blocks/inputs/constants").InputBlockType.DATE;
|
|
280
279
|
id: string;
|
|
280
|
+
type: import("@quickbot.io/schemas/features/blocks/inputs/constants").InputBlockType.DATE;
|
|
281
281
|
options?: {
|
|
282
|
+
format?: string | undefined;
|
|
282
283
|
variableId?: string | undefined;
|
|
283
284
|
retryMessageContent?: string | undefined;
|
|
284
285
|
labels?: {
|
|
@@ -288,14 +289,13 @@ export declare const getInitialChatReplyFromStorage: (botId: string | undefined)
|
|
|
288
289
|
} | undefined;
|
|
289
290
|
hasTime?: boolean | undefined;
|
|
290
291
|
isRange?: boolean | undefined;
|
|
291
|
-
format?: string | undefined;
|
|
292
292
|
min?: string | undefined;
|
|
293
293
|
max?: string | undefined;
|
|
294
294
|
} | undefined;
|
|
295
295
|
outgoingEdgeId?: string | undefined;
|
|
296
296
|
} | {
|
|
297
|
-
type: import("@quickbot.io/schemas/features/blocks/inputs/constants").InputBlockType.FILE;
|
|
298
297
|
id: string;
|
|
298
|
+
type: import("@quickbot.io/schemas/features/blocks/inputs/constants").InputBlockType.FILE;
|
|
299
299
|
options?: {
|
|
300
300
|
visibility?: "Auto" | "Public" | "Private" | undefined;
|
|
301
301
|
variableId?: string | undefined;
|
|
@@ -315,8 +315,8 @@ export declare const getInitialChatReplyFromStorage: (botId: string | undefined)
|
|
|
315
315
|
} | undefined;
|
|
316
316
|
outgoingEdgeId?: string | undefined;
|
|
317
317
|
} | {
|
|
318
|
-
type: import("@quickbot.io/schemas/features/blocks/inputs/constants").InputBlockType.TEXT;
|
|
319
318
|
id: string;
|
|
319
|
+
type: import("@quickbot.io/schemas/features/blocks/inputs/constants").InputBlockType.TEXT;
|
|
320
320
|
options?: {
|
|
321
321
|
variableId?: string | undefined;
|
|
322
322
|
labels?: {
|
|
@@ -336,8 +336,8 @@ export declare const getInitialChatReplyFromStorage: (botId: string | undefined)
|
|
|
336
336
|
} | undefined;
|
|
337
337
|
outgoingEdgeId?: string | undefined;
|
|
338
338
|
} | {
|
|
339
|
-
type: import("@quickbot.io/schemas/features/blocks/inputs/constants").InputBlockType.EMAIL;
|
|
340
339
|
id: string;
|
|
340
|
+
type: import("@quickbot.io/schemas/features/blocks/inputs/constants").InputBlockType.EMAIL;
|
|
341
341
|
options?: {
|
|
342
342
|
variableId?: string | undefined;
|
|
343
343
|
retryMessageContent?: string | undefined;
|
|
@@ -348,8 +348,8 @@ export declare const getInitialChatReplyFromStorage: (botId: string | undefined)
|
|
|
348
348
|
} | undefined;
|
|
349
349
|
outgoingEdgeId?: string | undefined;
|
|
350
350
|
} | {
|
|
351
|
-
type: import("@quickbot.io/schemas/features/blocks/inputs/constants").InputBlockType.NUMBER;
|
|
352
351
|
id: string;
|
|
352
|
+
type: import("@quickbot.io/schemas/features/blocks/inputs/constants").InputBlockType.NUMBER;
|
|
353
353
|
options?: {
|
|
354
354
|
variableId?: string | undefined;
|
|
355
355
|
retryMessageContent?: string | undefined;
|
|
@@ -363,8 +363,8 @@ export declare const getInitialChatReplyFromStorage: (botId: string | undefined)
|
|
|
363
363
|
} | undefined;
|
|
364
364
|
outgoingEdgeId?: string | undefined;
|
|
365
365
|
} | {
|
|
366
|
-
type: import("@quickbot.io/schemas/features/blocks/integrations/constants").IntegrationBlockType.PAYMENT;
|
|
367
366
|
id: string;
|
|
367
|
+
type: import("@quickbot.io/schemas/features/blocks/integrations/constants").IntegrationBlockType.PAYMENT;
|
|
368
368
|
options?: {
|
|
369
369
|
variableId?: string | undefined;
|
|
370
370
|
retryMessageContent?: string | undefined;
|
|
@@ -393,8 +393,8 @@ export declare const getInitialChatReplyFromStorage: (botId: string | undefined)
|
|
|
393
393
|
} | undefined;
|
|
394
394
|
outgoingEdgeId?: string | undefined;
|
|
395
395
|
} | {
|
|
396
|
-
type: import("@quickbot.io/schemas/features/blocks/inputs/constants").InputBlockType.PHONE;
|
|
397
396
|
id: string;
|
|
397
|
+
type: import("@quickbot.io/schemas/features/blocks/inputs/constants").InputBlockType.PHONE;
|
|
398
398
|
options?: {
|
|
399
399
|
variableId?: string | undefined;
|
|
400
400
|
retryMessageContent?: string | undefined;
|
|
@@ -406,8 +406,8 @@ export declare const getInitialChatReplyFromStorage: (botId: string | undefined)
|
|
|
406
406
|
} | undefined;
|
|
407
407
|
outgoingEdgeId?: string | undefined;
|
|
408
408
|
} | {
|
|
409
|
-
type: import("@quickbot.io/schemas/features/blocks/inputs/constants").InputBlockType.RATING;
|
|
410
409
|
id: string;
|
|
410
|
+
type: import("@quickbot.io/schemas/features/blocks/inputs/constants").InputBlockType.RATING;
|
|
411
411
|
options?: {
|
|
412
412
|
length?: number | undefined;
|
|
413
413
|
variableId?: string | undefined;
|
|
@@ -427,8 +427,8 @@ export declare const getInitialChatReplyFromStorage: (botId: string | undefined)
|
|
|
427
427
|
} | undefined;
|
|
428
428
|
outgoingEdgeId?: string | undefined;
|
|
429
429
|
} | {
|
|
430
|
-
type: import("@quickbot.io/schemas/features/blocks/inputs/constants").InputBlockType.URL;
|
|
431
430
|
id: string;
|
|
431
|
+
type: import("@quickbot.io/schemas/features/blocks/inputs/constants").InputBlockType.URL;
|
|
432
432
|
options?: {
|
|
433
433
|
variableId?: string | undefined;
|
|
434
434
|
retryMessageContent?: string | undefined;
|
|
@@ -478,20 +478,6 @@ export declare const getInitialChatReplyFromStorage: (botId: string | undefined)
|
|
|
478
478
|
};
|
|
479
479
|
lastBubbleBlockId?: string | undefined;
|
|
480
480
|
expectsDedicatedReply?: boolean | undefined;
|
|
481
|
-
} | {
|
|
482
|
-
type: "chatwoot";
|
|
483
|
-
chatwoot: {
|
|
484
|
-
scriptToExecute: {
|
|
485
|
-
content: string;
|
|
486
|
-
args: {
|
|
487
|
-
id: string;
|
|
488
|
-
value?: string | number | boolean | (string | null)[] | null | undefined;
|
|
489
|
-
}[];
|
|
490
|
-
isCode?: boolean | undefined;
|
|
491
|
-
};
|
|
492
|
-
};
|
|
493
|
-
lastBubbleBlockId?: string | undefined;
|
|
494
|
-
expectsDedicatedReply?: boolean | undefined;
|
|
495
481
|
} | {
|
|
496
482
|
type: "wait";
|
|
497
483
|
wait: {
|
|
@@ -518,21 +504,11 @@ export declare const getInitialChatReplyFromStorage: (botId: string | undefined)
|
|
|
518
504
|
streamOpenAiChatCompletion: {
|
|
519
505
|
messages: {
|
|
520
506
|
content: string;
|
|
521
|
-
role: "
|
|
507
|
+
role: "system" | "user" | "assistant";
|
|
522
508
|
}[];
|
|
523
509
|
};
|
|
524
510
|
lastBubbleBlockId?: string | undefined;
|
|
525
511
|
expectsDedicatedReply?: boolean | undefined;
|
|
526
|
-
} | {
|
|
527
|
-
type: "webhookToExecute";
|
|
528
|
-
webhookToExecute: {
|
|
529
|
-
url: string;
|
|
530
|
-
body?: unknown;
|
|
531
|
-
headers?: Record<string, string> | undefined;
|
|
532
|
-
method?: import("@quickbot.io/schemas/features/blocks/integrations/webhook/constants").HttpMethod | undefined;
|
|
533
|
-
};
|
|
534
|
-
lastBubbleBlockId?: string | undefined;
|
|
535
|
-
expectsDedicatedReply?: boolean | undefined;
|
|
536
512
|
} | {
|
|
537
513
|
type: "startPropsToInject";
|
|
538
514
|
startPropsToInject: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storage.d.ts","sourceRoot":"","sources":["../../src/utils/storage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAA;AAK7E,eAAO,MAAM,8BAA8B,WAAY,MAAM,uBAW5D,CAAA;AAED,eAAO,MAAM,kBAAkB,iBACf,OAAO,GAAG,SAAS,aACzB,MAAM,YAAY,MAAM,SAM/B,CAAA;AAEH,eAAO,MAAM,8BAA8B,UAAW,MAAM,GAAG,SAAS
|
|
1
|
+
{"version":3,"file":"storage.d.ts","sourceRoot":"","sources":["../../src/utils/storage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAA;AAK7E,eAAO,MAAM,8BAA8B,WAAY,MAAM,uBAW5D,CAAA;AAED,eAAO,MAAM,kBAAkB,iBACf,OAAO,GAAG,SAAS,aACzB,MAAM,YAAY,MAAM,SAM/B,CAAA;AAEH,eAAO,MAAM,8BAA8B,UAAW,MAAM,GAAG,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAWvE,CAAA;AACD,eAAO,MAAM,4BAA4B,qBACrB,iBAAiB,uBAIhC;IACD,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;CAC9B,SAQF,CAAA;AAED,eAAO,MAAM,0BAA0B,YAMtC,CAAA;AAED,eAAO,MAAM,6BAA6B,YAMzC,CAAA;AAED,eAAO,MAAM,4BAA4B,eAMxC,CAAA;AASD,eAAO,MAAM,8BAA8B,UAAW,MAAM,SAiC3D,CAAA"}
|
package/dist/web.d.ts
CHANGED
|
@@ -1,17 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
initStandard: (props: import(".").BotProps & {
|
|
3
|
-
id?: string | undefined;
|
|
4
|
-
}) => void;
|
|
5
|
-
initPopup: (props: import(".").PopupProps) => void;
|
|
6
|
-
initBubble: (props: import(".").BubbleProps) => void;
|
|
7
|
-
close: () => void;
|
|
8
|
-
hidePreviewMessage: () => void;
|
|
9
|
-
open: () => void;
|
|
10
|
-
setPrefilledVariables: (variables: Record<string, string | number | boolean>) => void;
|
|
11
|
-
showPreviewMessage: (proactiveMessage?: Pick<import(".").PreviewMessageParams, "avatarUrl" | "message"> | undefined) => void;
|
|
12
|
-
toggle: () => void;
|
|
13
|
-
setInputValue: (value: string) => void;
|
|
14
|
-
unmount: () => void;
|
|
15
|
-
};
|
|
16
|
-
export default bot;
|
|
1
|
+
export {};
|
|
17
2
|
//# sourceMappingURL=web.d.ts.map
|