@botpress/webchat 2.2.13 → 2.2.15
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/.turbo/turbo-build.log +8 -10
- package/dist/adapters/{messaging-to-target.d.ts → adapters/messaging-to-target.d.ts} +20 -19
- package/dist/adapters/adapters/messaging-to-webchat.d.ts +5 -0
- package/dist/adapters/adapters/webchat-to-messaging.d.ts +223 -0
- package/dist/adapters/{webchat-to-target.d.ts → adapters/webchat-to-target.d.ts} +15 -14
- package/dist/adapters/index.d.ts +6 -3
- package/dist/adapters/messaging.d.ts +1455 -0
- package/dist/adapters/sdk.d.ts +472 -0
- package/dist/adapters/target.d.ts +2 -2
- package/dist/adapters/typings.d.ts +12 -0
- package/dist/adapters/webchat.d.ts +1171 -0
- package/dist/client/MessagingClient/client.d.ts +3 -3
- package/dist/client/PushpinClient/state-machine.d.ts +5 -5
- package/dist/components/Block.d.ts +1 -1
- package/dist/components/Composer/Composer.d.ts +0 -1
- package/dist/components/Container/Container.d.ts +0 -1
- package/dist/components/Fab/Fab.d.ts +0 -1
- package/dist/components/MessageList/MessageList.d.ts +1 -1
- package/dist/components/TypingIndicator/TypingIndicator.d.ts +1 -1
- package/dist/components/renderers/Audio/Audio.d.ts +0 -1
- package/dist/components/renderers/Carousel/Carousel.d.ts +0 -1
- package/dist/components/renderers/File/File.d.ts +0 -1
- package/dist/components/renderers/Image/Image.d.ts +0 -1
- package/dist/components/renderers/Location/Location.d.ts +0 -1
- package/dist/components/renderers/Video/Video.d.ts +0 -1
- package/dist/gen/signals/index.d.ts +30 -30
- package/dist/gen/signals/messageCreated.z.d.ts +30 -30
- package/dist/index.js +18315 -28083
- package/dist/index.umd.cjs +102 -178
- package/dist/providers/WebchatProvider.d.ts +0 -1
- package/dist/schemas/init.d.ts +14 -15
- package/dist/schemas/theme.d.ts +8 -8
- package/dist/stores/offlineStore.d.ts +1 -1
- package/dist/style.css +1 -1
- package/dist/types/block-type.d.ts +1 -1
- package/package.json +1 -3
|
@@ -27,9 +27,9 @@ export declare class MessagingClient implements WebchatClient {
|
|
|
27
27
|
listMessages(limit?: number): Promise<{
|
|
28
28
|
payload: import("../../adapters/target").Message;
|
|
29
29
|
disableInput: boolean | undefined;
|
|
30
|
-
id:
|
|
31
|
-
conversationId:
|
|
32
|
-
authorId:
|
|
30
|
+
id: import("@botpress/messaging-socket").uuid;
|
|
31
|
+
conversationId: import("@botpress/messaging-socket").uuid;
|
|
32
|
+
authorId: import("@botpress/messaging-socket").uuid | undefined;
|
|
33
33
|
sentOn: Date;
|
|
34
34
|
}[]>;
|
|
35
35
|
}
|
|
@@ -28,11 +28,11 @@ export type StateOf<S extends PushpinClientStatus> = Extract<PushpinClientState,
|
|
|
28
28
|
}>;
|
|
29
29
|
type GT<S extends PushpinClientStatus> = S extends 'disconnected' ? 'user_creating' | 'user_created' | 'conversation_creating' | 'conversation_created' : S extends 'user_creating' ? 'user_created' | 'conversation_creating' | 'conversation_created' : S extends 'user_created' ? 'conversation_creating' | 'conversation_created' : S extends 'conversation_creating' ? 'conversation_created' : never;
|
|
30
30
|
type LT<S extends PushpinClientStatus> = S extends 'conversation_created' ? 'conversation_creating' | 'user_created' | 'user_creating' | 'disconnected' : S extends 'conversation_creating' ? 'user_created' | 'user_creating' | 'disconnected' : S extends 'user_created' ? 'user_creating' | 'disconnected' : S extends 'user_creating' ? 'disconnected' : never;
|
|
31
|
-
export declare const isEq: <S extends
|
|
32
|
-
export declare const isGt: <S extends
|
|
33
|
-
export declare const isLt: <S extends
|
|
34
|
-
export declare const isGte: <S extends
|
|
35
|
-
export declare const isLte: <S extends
|
|
31
|
+
export declare const isEq: <S extends PushpinClientStatus>(s: PushpinClientState, target: S) => s is StateOf<S>;
|
|
32
|
+
export declare const isGt: <S extends PushpinClientStatus>(s: PushpinClientState, target: S) => s is StateOf<GT<S>>;
|
|
33
|
+
export declare const isLt: <S extends PushpinClientStatus>(s: PushpinClientState, target: S) => s is StateOf<LT<S>>;
|
|
34
|
+
export declare const isGte: <S extends PushpinClientStatus>(s: PushpinClientState, target: S) => s is StateOf<GT<S> | S>;
|
|
35
|
+
export declare const isLte: <S extends PushpinClientStatus>(s: PushpinClientState, target: S) => s is StateOf<LT<S> | S>;
|
|
36
36
|
export declare class InvalidStateError extends Error {
|
|
37
37
|
readonly state: PushpinClientState;
|
|
38
38
|
constructor(state: PushpinClientState);
|
|
@@ -3,5 +3,5 @@ import { BlockObjects, BlockType } from '../types';
|
|
|
3
3
|
type BlockProps<T extends BlockType> = {
|
|
4
4
|
block: BlockObjects[T];
|
|
5
5
|
};
|
|
6
|
-
export declare const Block: <T extends
|
|
6
|
+
export declare const Block: <T extends BlockType>({ block, ...props }: BlockProps<T>) => JSX.Element;
|
|
7
7
|
export {};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const Composer: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>>;
|
|
@@ -6,5 +6,5 @@ type MessageListProps = {
|
|
|
6
6
|
icon?: FC<StyleOptions>;
|
|
7
7
|
};
|
|
8
8
|
};
|
|
9
|
-
export declare const MessageList: import("react").MemoExoticComponent<({ scrollDownButton, ...props }: ComponentProps<
|
|
9
|
+
export declare const MessageList: import("react").MemoExoticComponent<({ scrollDownButton, ...props }: ComponentProps<"ul"> & MessageListProps) => import("react/jsx-runtime").JSX.Element>;
|
|
10
10
|
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { ComponentProps } from 'react';
|
|
2
|
-
export declare const TypingIndicator: import("react").MemoExoticComponent<({ ...props }: ComponentProps<
|
|
2
|
+
export declare const TypingIndicator: import("react").MemoExoticComponent<({ ...props }: ComponentProps<"div">) => import("react/jsx-runtime").JSX.Element>;
|
|
@@ -40,11 +40,11 @@ export declare const zod: {
|
|
|
40
40
|
value: import("zod").ZodString;
|
|
41
41
|
}, "strip", import("zod").ZodTypeAny, {
|
|
42
42
|
value: string;
|
|
43
|
-
action: "
|
|
43
|
+
action: "postback" | "url" | "say";
|
|
44
44
|
label: string;
|
|
45
45
|
}, {
|
|
46
46
|
value: string;
|
|
47
|
-
action: "
|
|
47
|
+
action: "postback" | "url" | "say";
|
|
48
48
|
label: string;
|
|
49
49
|
}>, "many">;
|
|
50
50
|
type: import("zod").ZodLiteral<"card">;
|
|
@@ -54,7 +54,7 @@ export declare const zod: {
|
|
|
54
54
|
title: string;
|
|
55
55
|
actions: {
|
|
56
56
|
value: string;
|
|
57
|
-
action: "
|
|
57
|
+
action: "postback" | "url" | "say";
|
|
58
58
|
label: string;
|
|
59
59
|
}[];
|
|
60
60
|
subtitle?: string | undefined;
|
|
@@ -65,7 +65,7 @@ export declare const zod: {
|
|
|
65
65
|
title: string;
|
|
66
66
|
actions: {
|
|
67
67
|
value: string;
|
|
68
|
-
action: "
|
|
68
|
+
action: "postback" | "url" | "say";
|
|
69
69
|
label: string;
|
|
70
70
|
}[];
|
|
71
71
|
subtitle?: string | undefined;
|
|
@@ -82,11 +82,11 @@ export declare const zod: {
|
|
|
82
82
|
value: import("zod").ZodString;
|
|
83
83
|
}, "strip", import("zod").ZodTypeAny, {
|
|
84
84
|
value: string;
|
|
85
|
-
action: "
|
|
85
|
+
action: "postback" | "url" | "say";
|
|
86
86
|
label: string;
|
|
87
87
|
}, {
|
|
88
88
|
value: string;
|
|
89
|
-
action: "
|
|
89
|
+
action: "postback" | "url" | "say";
|
|
90
90
|
label: string;
|
|
91
91
|
}>, "many">;
|
|
92
92
|
className: import("zod").ZodOptional<import("zod").ZodString>;
|
|
@@ -94,7 +94,7 @@ export declare const zod: {
|
|
|
94
94
|
title: string;
|
|
95
95
|
actions: {
|
|
96
96
|
value: string;
|
|
97
|
-
action: "
|
|
97
|
+
action: "postback" | "url" | "say";
|
|
98
98
|
label: string;
|
|
99
99
|
}[];
|
|
100
100
|
subtitle?: string | undefined;
|
|
@@ -104,7 +104,7 @@ export declare const zod: {
|
|
|
104
104
|
title: string;
|
|
105
105
|
actions: {
|
|
106
106
|
value: string;
|
|
107
|
-
action: "
|
|
107
|
+
action: "postback" | "url" | "say";
|
|
108
108
|
label: string;
|
|
109
109
|
}[];
|
|
110
110
|
subtitle?: string | undefined;
|
|
@@ -119,7 +119,7 @@ export declare const zod: {
|
|
|
119
119
|
title: string;
|
|
120
120
|
actions: {
|
|
121
121
|
value: string;
|
|
122
|
-
action: "
|
|
122
|
+
action: "postback" | "url" | "say";
|
|
123
123
|
label: string;
|
|
124
124
|
}[];
|
|
125
125
|
subtitle?: string | undefined;
|
|
@@ -133,7 +133,7 @@ export declare const zod: {
|
|
|
133
133
|
title: string;
|
|
134
134
|
actions: {
|
|
135
135
|
value: string;
|
|
136
|
-
action: "
|
|
136
|
+
action: "postback" | "url" | "say";
|
|
137
137
|
label: string;
|
|
138
138
|
}[];
|
|
139
139
|
subtitle?: string | undefined;
|
|
@@ -158,20 +158,20 @@ export declare const zod: {
|
|
|
158
158
|
disableFreeText: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
159
159
|
}, "strip", import("zod").ZodTypeAny, {
|
|
160
160
|
type: "choice";
|
|
161
|
+
text: string;
|
|
161
162
|
options: {
|
|
162
163
|
value: string;
|
|
163
164
|
label: string;
|
|
164
165
|
}[];
|
|
165
|
-
text: string;
|
|
166
166
|
className?: string | undefined;
|
|
167
167
|
disableFreeText?: boolean | undefined;
|
|
168
168
|
}, {
|
|
169
169
|
type: "choice";
|
|
170
|
+
text: string;
|
|
170
171
|
options: {
|
|
171
172
|
value: string;
|
|
172
173
|
label: string;
|
|
173
174
|
}[];
|
|
174
|
-
text: string;
|
|
175
175
|
className?: string | undefined;
|
|
176
176
|
disableFreeText?: boolean | undefined;
|
|
177
177
|
}>, import("zod").ZodObject<{
|
|
@@ -190,19 +190,19 @@ export declare const zod: {
|
|
|
190
190
|
type: import("zod").ZodLiteral<"dropdown">;
|
|
191
191
|
}, "strip", import("zod").ZodTypeAny, {
|
|
192
192
|
type: "dropdown";
|
|
193
|
+
text: string;
|
|
193
194
|
options: {
|
|
194
195
|
value: string;
|
|
195
196
|
label: string;
|
|
196
197
|
}[];
|
|
197
|
-
text: string;
|
|
198
198
|
className?: string | undefined;
|
|
199
199
|
}, {
|
|
200
200
|
type: "dropdown";
|
|
201
|
+
text: string;
|
|
201
202
|
options: {
|
|
202
203
|
value: string;
|
|
203
204
|
label: string;
|
|
204
205
|
}[];
|
|
205
|
-
text: string;
|
|
206
206
|
className?: string | undefined;
|
|
207
207
|
}>, import("zod").ZodObject<{
|
|
208
208
|
fileUrl: import("zod").ZodString;
|
|
@@ -301,7 +301,7 @@ export declare const zod: {
|
|
|
301
301
|
title: string;
|
|
302
302
|
actions: {
|
|
303
303
|
value: string;
|
|
304
|
-
action: "
|
|
304
|
+
action: "postback" | "url" | "say";
|
|
305
305
|
label: string;
|
|
306
306
|
}[];
|
|
307
307
|
subtitle?: string | undefined;
|
|
@@ -313,7 +313,7 @@ export declare const zod: {
|
|
|
313
313
|
title: string;
|
|
314
314
|
actions: {
|
|
315
315
|
value: string;
|
|
316
|
-
action: "
|
|
316
|
+
action: "postback" | "url" | "say";
|
|
317
317
|
label: string;
|
|
318
318
|
}[];
|
|
319
319
|
subtitle?: string | undefined;
|
|
@@ -323,20 +323,20 @@ export declare const zod: {
|
|
|
323
323
|
className?: string | undefined;
|
|
324
324
|
} | {
|
|
325
325
|
type: "choice";
|
|
326
|
+
text: string;
|
|
326
327
|
options: {
|
|
327
328
|
value: string;
|
|
328
329
|
label: string;
|
|
329
330
|
}[];
|
|
330
|
-
text: string;
|
|
331
331
|
className?: string | undefined;
|
|
332
332
|
disableFreeText?: boolean | undefined;
|
|
333
333
|
} | {
|
|
334
334
|
type: "dropdown";
|
|
335
|
+
text: string;
|
|
335
336
|
options: {
|
|
336
337
|
value: string;
|
|
337
338
|
label: string;
|
|
338
339
|
}[];
|
|
339
|
-
text: string;
|
|
340
340
|
className?: string | undefined;
|
|
341
341
|
} | {
|
|
342
342
|
type: "file";
|
|
@@ -381,7 +381,7 @@ export declare const zod: {
|
|
|
381
381
|
title: string;
|
|
382
382
|
actions: {
|
|
383
383
|
value: string;
|
|
384
|
-
action: "
|
|
384
|
+
action: "postback" | "url" | "say";
|
|
385
385
|
label: string;
|
|
386
386
|
}[];
|
|
387
387
|
subtitle?: string | undefined;
|
|
@@ -393,7 +393,7 @@ export declare const zod: {
|
|
|
393
393
|
title: string;
|
|
394
394
|
actions: {
|
|
395
395
|
value: string;
|
|
396
|
-
action: "
|
|
396
|
+
action: "postback" | "url" | "say";
|
|
397
397
|
label: string;
|
|
398
398
|
}[];
|
|
399
399
|
subtitle?: string | undefined;
|
|
@@ -403,20 +403,20 @@ export declare const zod: {
|
|
|
403
403
|
className?: string | undefined;
|
|
404
404
|
} | {
|
|
405
405
|
type: "choice";
|
|
406
|
+
text: string;
|
|
406
407
|
options: {
|
|
407
408
|
value: string;
|
|
408
409
|
label: string;
|
|
409
410
|
}[];
|
|
410
|
-
text: string;
|
|
411
411
|
className?: string | undefined;
|
|
412
412
|
disableFreeText?: boolean | undefined;
|
|
413
413
|
} | {
|
|
414
414
|
type: "dropdown";
|
|
415
|
+
text: string;
|
|
415
416
|
options: {
|
|
416
417
|
value: string;
|
|
417
418
|
label: string;
|
|
418
419
|
}[];
|
|
419
|
-
text: string;
|
|
420
420
|
className?: string | undefined;
|
|
421
421
|
} | {
|
|
422
422
|
type: "file";
|
|
@@ -464,7 +464,7 @@ export declare const zod: {
|
|
|
464
464
|
title: string;
|
|
465
465
|
actions: {
|
|
466
466
|
value: string;
|
|
467
|
-
action: "
|
|
467
|
+
action: "postback" | "url" | "say";
|
|
468
468
|
label: string;
|
|
469
469
|
}[];
|
|
470
470
|
subtitle?: string | undefined;
|
|
@@ -476,7 +476,7 @@ export declare const zod: {
|
|
|
476
476
|
title: string;
|
|
477
477
|
actions: {
|
|
478
478
|
value: string;
|
|
479
|
-
action: "
|
|
479
|
+
action: "postback" | "url" | "say";
|
|
480
480
|
label: string;
|
|
481
481
|
}[];
|
|
482
482
|
subtitle?: string | undefined;
|
|
@@ -486,20 +486,20 @@ export declare const zod: {
|
|
|
486
486
|
className?: string | undefined;
|
|
487
487
|
} | {
|
|
488
488
|
type: "choice";
|
|
489
|
+
text: string;
|
|
489
490
|
options: {
|
|
490
491
|
value: string;
|
|
491
492
|
label: string;
|
|
492
493
|
}[];
|
|
493
|
-
text: string;
|
|
494
494
|
className?: string | undefined;
|
|
495
495
|
disableFreeText?: boolean | undefined;
|
|
496
496
|
} | {
|
|
497
497
|
type: "dropdown";
|
|
498
|
+
text: string;
|
|
498
499
|
options: {
|
|
499
500
|
value: string;
|
|
500
501
|
label: string;
|
|
501
502
|
}[];
|
|
502
|
-
text: string;
|
|
503
503
|
className?: string | undefined;
|
|
504
504
|
} | {
|
|
505
505
|
type: "file";
|
|
@@ -547,7 +547,7 @@ export declare const zod: {
|
|
|
547
547
|
title: string;
|
|
548
548
|
actions: {
|
|
549
549
|
value: string;
|
|
550
|
-
action: "
|
|
550
|
+
action: "postback" | "url" | "say";
|
|
551
551
|
label: string;
|
|
552
552
|
}[];
|
|
553
553
|
subtitle?: string | undefined;
|
|
@@ -559,7 +559,7 @@ export declare const zod: {
|
|
|
559
559
|
title: string;
|
|
560
560
|
actions: {
|
|
561
561
|
value: string;
|
|
562
|
-
action: "
|
|
562
|
+
action: "postback" | "url" | "say";
|
|
563
563
|
label: string;
|
|
564
564
|
}[];
|
|
565
565
|
subtitle?: string | undefined;
|
|
@@ -569,20 +569,20 @@ export declare const zod: {
|
|
|
569
569
|
className?: string | undefined;
|
|
570
570
|
} | {
|
|
571
571
|
type: "choice";
|
|
572
|
+
text: string;
|
|
572
573
|
options: {
|
|
573
574
|
value: string;
|
|
574
575
|
label: string;
|
|
575
576
|
}[];
|
|
576
|
-
text: string;
|
|
577
577
|
className?: string | undefined;
|
|
578
578
|
disableFreeText?: boolean | undefined;
|
|
579
579
|
} | {
|
|
580
580
|
type: "dropdown";
|
|
581
|
+
text: string;
|
|
581
582
|
options: {
|
|
582
583
|
value: string;
|
|
583
584
|
label: string;
|
|
584
585
|
}[];
|
|
585
|
-
text: string;
|
|
586
586
|
className?: string | undefined;
|
|
587
587
|
} | {
|
|
588
588
|
type: "file";
|
|
@@ -26,11 +26,11 @@ declare const _default: z.ZodObject<{
|
|
|
26
26
|
value: z.ZodString;
|
|
27
27
|
}, "strip", z.ZodTypeAny, {
|
|
28
28
|
value: string;
|
|
29
|
-
action: "
|
|
29
|
+
action: "postback" | "url" | "say";
|
|
30
30
|
label: string;
|
|
31
31
|
}, {
|
|
32
32
|
value: string;
|
|
33
|
-
action: "
|
|
33
|
+
action: "postback" | "url" | "say";
|
|
34
34
|
label: string;
|
|
35
35
|
}>, "many">;
|
|
36
36
|
type: z.ZodLiteral<"card">;
|
|
@@ -40,7 +40,7 @@ declare const _default: z.ZodObject<{
|
|
|
40
40
|
title: string;
|
|
41
41
|
actions: {
|
|
42
42
|
value: string;
|
|
43
|
-
action: "
|
|
43
|
+
action: "postback" | "url" | "say";
|
|
44
44
|
label: string;
|
|
45
45
|
}[];
|
|
46
46
|
subtitle?: string | undefined;
|
|
@@ -51,7 +51,7 @@ declare const _default: z.ZodObject<{
|
|
|
51
51
|
title: string;
|
|
52
52
|
actions: {
|
|
53
53
|
value: string;
|
|
54
|
-
action: "
|
|
54
|
+
action: "postback" | "url" | "say";
|
|
55
55
|
label: string;
|
|
56
56
|
}[];
|
|
57
57
|
subtitle?: string | undefined;
|
|
@@ -68,11 +68,11 @@ declare const _default: z.ZodObject<{
|
|
|
68
68
|
value: z.ZodString;
|
|
69
69
|
}, "strip", z.ZodTypeAny, {
|
|
70
70
|
value: string;
|
|
71
|
-
action: "
|
|
71
|
+
action: "postback" | "url" | "say";
|
|
72
72
|
label: string;
|
|
73
73
|
}, {
|
|
74
74
|
value: string;
|
|
75
|
-
action: "
|
|
75
|
+
action: "postback" | "url" | "say";
|
|
76
76
|
label: string;
|
|
77
77
|
}>, "many">;
|
|
78
78
|
className: z.ZodOptional<z.ZodString>;
|
|
@@ -80,7 +80,7 @@ declare const _default: z.ZodObject<{
|
|
|
80
80
|
title: string;
|
|
81
81
|
actions: {
|
|
82
82
|
value: string;
|
|
83
|
-
action: "
|
|
83
|
+
action: "postback" | "url" | "say";
|
|
84
84
|
label: string;
|
|
85
85
|
}[];
|
|
86
86
|
subtitle?: string | undefined;
|
|
@@ -90,7 +90,7 @@ declare const _default: z.ZodObject<{
|
|
|
90
90
|
title: string;
|
|
91
91
|
actions: {
|
|
92
92
|
value: string;
|
|
93
|
-
action: "
|
|
93
|
+
action: "postback" | "url" | "say";
|
|
94
94
|
label: string;
|
|
95
95
|
}[];
|
|
96
96
|
subtitle?: string | undefined;
|
|
@@ -105,7 +105,7 @@ declare const _default: z.ZodObject<{
|
|
|
105
105
|
title: string;
|
|
106
106
|
actions: {
|
|
107
107
|
value: string;
|
|
108
|
-
action: "
|
|
108
|
+
action: "postback" | "url" | "say";
|
|
109
109
|
label: string;
|
|
110
110
|
}[];
|
|
111
111
|
subtitle?: string | undefined;
|
|
@@ -119,7 +119,7 @@ declare const _default: z.ZodObject<{
|
|
|
119
119
|
title: string;
|
|
120
120
|
actions: {
|
|
121
121
|
value: string;
|
|
122
|
-
action: "
|
|
122
|
+
action: "postback" | "url" | "say";
|
|
123
123
|
label: string;
|
|
124
124
|
}[];
|
|
125
125
|
subtitle?: string | undefined;
|
|
@@ -144,20 +144,20 @@ declare const _default: z.ZodObject<{
|
|
|
144
144
|
disableFreeText: z.ZodOptional<z.ZodBoolean>;
|
|
145
145
|
}, "strip", z.ZodTypeAny, {
|
|
146
146
|
type: "choice";
|
|
147
|
+
text: string;
|
|
147
148
|
options: {
|
|
148
149
|
value: string;
|
|
149
150
|
label: string;
|
|
150
151
|
}[];
|
|
151
|
-
text: string;
|
|
152
152
|
className?: string | undefined;
|
|
153
153
|
disableFreeText?: boolean | undefined;
|
|
154
154
|
}, {
|
|
155
155
|
type: "choice";
|
|
156
|
+
text: string;
|
|
156
157
|
options: {
|
|
157
158
|
value: string;
|
|
158
159
|
label: string;
|
|
159
160
|
}[];
|
|
160
|
-
text: string;
|
|
161
161
|
className?: string | undefined;
|
|
162
162
|
disableFreeText?: boolean | undefined;
|
|
163
163
|
}>, z.ZodObject<{
|
|
@@ -176,19 +176,19 @@ declare const _default: z.ZodObject<{
|
|
|
176
176
|
type: z.ZodLiteral<"dropdown">;
|
|
177
177
|
}, "strip", z.ZodTypeAny, {
|
|
178
178
|
type: "dropdown";
|
|
179
|
+
text: string;
|
|
179
180
|
options: {
|
|
180
181
|
value: string;
|
|
181
182
|
label: string;
|
|
182
183
|
}[];
|
|
183
|
-
text: string;
|
|
184
184
|
className?: string | undefined;
|
|
185
185
|
}, {
|
|
186
186
|
type: "dropdown";
|
|
187
|
+
text: string;
|
|
187
188
|
options: {
|
|
188
189
|
value: string;
|
|
189
190
|
label: string;
|
|
190
191
|
}[];
|
|
191
|
-
text: string;
|
|
192
192
|
className?: string | undefined;
|
|
193
193
|
}>, z.ZodObject<{
|
|
194
194
|
fileUrl: z.ZodString;
|
|
@@ -287,7 +287,7 @@ declare const _default: z.ZodObject<{
|
|
|
287
287
|
title: string;
|
|
288
288
|
actions: {
|
|
289
289
|
value: string;
|
|
290
|
-
action: "
|
|
290
|
+
action: "postback" | "url" | "say";
|
|
291
291
|
label: string;
|
|
292
292
|
}[];
|
|
293
293
|
subtitle?: string | undefined;
|
|
@@ -299,7 +299,7 @@ declare const _default: z.ZodObject<{
|
|
|
299
299
|
title: string;
|
|
300
300
|
actions: {
|
|
301
301
|
value: string;
|
|
302
|
-
action: "
|
|
302
|
+
action: "postback" | "url" | "say";
|
|
303
303
|
label: string;
|
|
304
304
|
}[];
|
|
305
305
|
subtitle?: string | undefined;
|
|
@@ -309,20 +309,20 @@ declare const _default: z.ZodObject<{
|
|
|
309
309
|
className?: string | undefined;
|
|
310
310
|
} | {
|
|
311
311
|
type: "choice";
|
|
312
|
+
text: string;
|
|
312
313
|
options: {
|
|
313
314
|
value: string;
|
|
314
315
|
label: string;
|
|
315
316
|
}[];
|
|
316
|
-
text: string;
|
|
317
317
|
className?: string | undefined;
|
|
318
318
|
disableFreeText?: boolean | undefined;
|
|
319
319
|
} | {
|
|
320
320
|
type: "dropdown";
|
|
321
|
+
text: string;
|
|
321
322
|
options: {
|
|
322
323
|
value: string;
|
|
323
324
|
label: string;
|
|
324
325
|
}[];
|
|
325
|
-
text: string;
|
|
326
326
|
className?: string | undefined;
|
|
327
327
|
} | {
|
|
328
328
|
type: "file";
|
|
@@ -367,7 +367,7 @@ declare const _default: z.ZodObject<{
|
|
|
367
367
|
title: string;
|
|
368
368
|
actions: {
|
|
369
369
|
value: string;
|
|
370
|
-
action: "
|
|
370
|
+
action: "postback" | "url" | "say";
|
|
371
371
|
label: string;
|
|
372
372
|
}[];
|
|
373
373
|
subtitle?: string | undefined;
|
|
@@ -379,7 +379,7 @@ declare const _default: z.ZodObject<{
|
|
|
379
379
|
title: string;
|
|
380
380
|
actions: {
|
|
381
381
|
value: string;
|
|
382
|
-
action: "
|
|
382
|
+
action: "postback" | "url" | "say";
|
|
383
383
|
label: string;
|
|
384
384
|
}[];
|
|
385
385
|
subtitle?: string | undefined;
|
|
@@ -389,20 +389,20 @@ declare const _default: z.ZodObject<{
|
|
|
389
389
|
className?: string | undefined;
|
|
390
390
|
} | {
|
|
391
391
|
type: "choice";
|
|
392
|
+
text: string;
|
|
392
393
|
options: {
|
|
393
394
|
value: string;
|
|
394
395
|
label: string;
|
|
395
396
|
}[];
|
|
396
|
-
text: string;
|
|
397
397
|
className?: string | undefined;
|
|
398
398
|
disableFreeText?: boolean | undefined;
|
|
399
399
|
} | {
|
|
400
400
|
type: "dropdown";
|
|
401
|
+
text: string;
|
|
401
402
|
options: {
|
|
402
403
|
value: string;
|
|
403
404
|
label: string;
|
|
404
405
|
}[];
|
|
405
|
-
text: string;
|
|
406
406
|
className?: string | undefined;
|
|
407
407
|
} | {
|
|
408
408
|
type: "file";
|
|
@@ -450,7 +450,7 @@ declare const _default: z.ZodObject<{
|
|
|
450
450
|
title: string;
|
|
451
451
|
actions: {
|
|
452
452
|
value: string;
|
|
453
|
-
action: "
|
|
453
|
+
action: "postback" | "url" | "say";
|
|
454
454
|
label: string;
|
|
455
455
|
}[];
|
|
456
456
|
subtitle?: string | undefined;
|
|
@@ -462,7 +462,7 @@ declare const _default: z.ZodObject<{
|
|
|
462
462
|
title: string;
|
|
463
463
|
actions: {
|
|
464
464
|
value: string;
|
|
465
|
-
action: "
|
|
465
|
+
action: "postback" | "url" | "say";
|
|
466
466
|
label: string;
|
|
467
467
|
}[];
|
|
468
468
|
subtitle?: string | undefined;
|
|
@@ -472,20 +472,20 @@ declare const _default: z.ZodObject<{
|
|
|
472
472
|
className?: string | undefined;
|
|
473
473
|
} | {
|
|
474
474
|
type: "choice";
|
|
475
|
+
text: string;
|
|
475
476
|
options: {
|
|
476
477
|
value: string;
|
|
477
478
|
label: string;
|
|
478
479
|
}[];
|
|
479
|
-
text: string;
|
|
480
480
|
className?: string | undefined;
|
|
481
481
|
disableFreeText?: boolean | undefined;
|
|
482
482
|
} | {
|
|
483
483
|
type: "dropdown";
|
|
484
|
+
text: string;
|
|
484
485
|
options: {
|
|
485
486
|
value: string;
|
|
486
487
|
label: string;
|
|
487
488
|
}[];
|
|
488
|
-
text: string;
|
|
489
489
|
className?: string | undefined;
|
|
490
490
|
} | {
|
|
491
491
|
type: "file";
|
|
@@ -533,7 +533,7 @@ declare const _default: z.ZodObject<{
|
|
|
533
533
|
title: string;
|
|
534
534
|
actions: {
|
|
535
535
|
value: string;
|
|
536
|
-
action: "
|
|
536
|
+
action: "postback" | "url" | "say";
|
|
537
537
|
label: string;
|
|
538
538
|
}[];
|
|
539
539
|
subtitle?: string | undefined;
|
|
@@ -545,7 +545,7 @@ declare const _default: z.ZodObject<{
|
|
|
545
545
|
title: string;
|
|
546
546
|
actions: {
|
|
547
547
|
value: string;
|
|
548
|
-
action: "
|
|
548
|
+
action: "postback" | "url" | "say";
|
|
549
549
|
label: string;
|
|
550
550
|
}[];
|
|
551
551
|
subtitle?: string | undefined;
|
|
@@ -555,20 +555,20 @@ declare const _default: z.ZodObject<{
|
|
|
555
555
|
className?: string | undefined;
|
|
556
556
|
} | {
|
|
557
557
|
type: "choice";
|
|
558
|
+
text: string;
|
|
558
559
|
options: {
|
|
559
560
|
value: string;
|
|
560
561
|
label: string;
|
|
561
562
|
}[];
|
|
562
|
-
text: string;
|
|
563
563
|
className?: string | undefined;
|
|
564
564
|
disableFreeText?: boolean | undefined;
|
|
565
565
|
} | {
|
|
566
566
|
type: "dropdown";
|
|
567
|
+
text: string;
|
|
567
568
|
options: {
|
|
568
569
|
value: string;
|
|
569
570
|
label: string;
|
|
570
571
|
}[];
|
|
571
|
-
text: string;
|
|
572
572
|
className?: string | undefined;
|
|
573
573
|
} | {
|
|
574
574
|
type: "file";
|