@botpress/webchat 2.3.0 → 2.3.2
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/.eslintrc.js +11 -0
- package/.turbo/turbo-build.log +16 -15
- package/dist/adapters/index.d.ts +1 -6
- package/dist/adapters/target.d.ts +1 -6
- package/dist/adapters/typings.d.ts +1 -6
- package/dist/adapters/webchat-to-target.d.ts +8 -0
- package/dist/adapters/webchat.d.ts +3 -1986
- package/dist/client/state-machine.d.ts +1 -1
- package/dist/client/types.d.ts +1 -0
- package/dist/components/MessageList/MessageList.d.ts +1 -1
- package/dist/components/renderers/Audio/Audio.d.ts +1 -0
- package/dist/components/renderers/Carousel/Carousel.d.ts +1 -0
- package/dist/components/renderers/File/File.d.ts +1 -0
- package/dist/components/renderers/Image/Image.d.ts +1 -0
- package/dist/components/renderers/Location/Location.d.ts +1 -0
- package/dist/components/renderers/Video/Video.d.ts +1 -0
- package/dist/gen/client/models.d.ts +0 -52
- package/dist/gen/client/operations/createMessage.d.ts +0 -104
- package/dist/gen/client/operations/getMessage.d.ts +0 -52
- package/dist/gen/client/operations/listConversationMessages.d.ts +0 -52
- package/dist/gen/signals/index.d.ts +34 -127
- package/dist/gen/signals/messageCreated.t.d.ts +0 -52
- package/dist/gen/signals/messageCreated.z.d.ts +34 -127
- package/dist/index.js +66154 -23951
- package/dist/index.umd.cjs +172 -127
- package/dist/schemas/init.d.ts +14 -14
- package/dist/schemas/theme.d.ts +8 -8
- package/dist/stores/offlineStore.d.ts +1 -1
- package/dist/stores/webchatStore.d.ts +2 -2
- package/dist/style.css +1 -1
- package/dist/styles/classes.d.ts +22 -22
- package/dist/types/block-type.d.ts +2 -0
- package/package.json +21 -22
- package/dist/adapters/adapters/messaging-to-target.d.ts +0 -184
- package/dist/adapters/adapters/messaging-to-webchat.d.ts +0 -5
- package/dist/adapters/adapters/webchat-to-messaging.d.ts +0 -223
- package/dist/adapters/adapters/webchat-to-target.d.ts +0 -197
- package/dist/adapters/messaging.d.ts +0 -1455
- package/dist/adapters/sdk.d.ts +0 -472
- package/dist/client/inner-client/event-emitter.d.ts +0 -10
- package/dist/client/inner-client/eventsource.d.ts +0 -22
- package/dist/client/inner-client/index.d.ts +0 -42
- package/dist/client/inner-client/signal-listener.d.ts +0 -47
- package/openapi.ts +0 -35
|
@@ -13,16 +13,13 @@ export declare const zod: {
|
|
|
13
13
|
createdAt: import("zod").ZodString;
|
|
14
14
|
payload: import("zod").ZodUnion<[import("zod").ZodObject<{
|
|
15
15
|
audioUrl: import("zod").ZodString;
|
|
16
|
-
className: import("zod").ZodOptional<import("zod").ZodString>;
|
|
17
16
|
type: import("zod").ZodLiteral<"audio">;
|
|
18
17
|
}, "strip", import("zod").ZodTypeAny, {
|
|
19
18
|
type: "audio";
|
|
20
19
|
audioUrl: string;
|
|
21
|
-
className?: string | undefined;
|
|
22
20
|
}, {
|
|
23
21
|
type: "audio";
|
|
24
22
|
audioUrl: string;
|
|
25
|
-
className?: string | undefined;
|
|
26
23
|
}>, import("zod").ZodObject<{
|
|
27
24
|
title: import("zod").ZodString;
|
|
28
25
|
subtitle: import("zod").ZodOptional<import("zod").ZodString>;
|
|
@@ -32,38 +29,35 @@ export declare const zod: {
|
|
|
32
29
|
label: import("zod").ZodString;
|
|
33
30
|
value: import("zod").ZodString;
|
|
34
31
|
}, "strip", import("zod").ZodTypeAny, {
|
|
35
|
-
value: string;
|
|
36
32
|
action: "postback" | "url" | "say";
|
|
37
33
|
label: string;
|
|
38
|
-
}, {
|
|
39
34
|
value: string;
|
|
35
|
+
}, {
|
|
40
36
|
action: "postback" | "url" | "say";
|
|
41
37
|
label: string;
|
|
38
|
+
value: string;
|
|
42
39
|
}>, "many">;
|
|
43
40
|
type: import("zod").ZodLiteral<"card">;
|
|
44
|
-
className: import("zod").ZodOptional<import("zod").ZodString>;
|
|
45
41
|
}, "strip", import("zod").ZodTypeAny, {
|
|
46
42
|
type: "card";
|
|
47
43
|
title: string;
|
|
48
44
|
actions: {
|
|
49
|
-
value: string;
|
|
50
45
|
action: "postback" | "url" | "say";
|
|
51
46
|
label: string;
|
|
47
|
+
value: string;
|
|
52
48
|
}[];
|
|
53
49
|
subtitle?: string | undefined;
|
|
54
50
|
imageUrl?: string | undefined;
|
|
55
|
-
className?: string | undefined;
|
|
56
51
|
}, {
|
|
57
52
|
type: "card";
|
|
58
53
|
title: string;
|
|
59
54
|
actions: {
|
|
60
|
-
value: string;
|
|
61
55
|
action: "postback" | "url" | "say";
|
|
62
56
|
label: string;
|
|
57
|
+
value: string;
|
|
63
58
|
}[];
|
|
64
59
|
subtitle?: string | undefined;
|
|
65
60
|
imageUrl?: string | undefined;
|
|
66
|
-
className?: string | undefined;
|
|
67
61
|
}>, import("zod").ZodObject<{
|
|
68
62
|
items: import("zod").ZodArray<import("zod").ZodObject<{
|
|
69
63
|
title: import("zod").ZodString;
|
|
@@ -74,98 +68,87 @@ export declare const zod: {
|
|
|
74
68
|
label: import("zod").ZodString;
|
|
75
69
|
value: import("zod").ZodString;
|
|
76
70
|
}, "strip", import("zod").ZodTypeAny, {
|
|
77
|
-
value: string;
|
|
78
71
|
action: "postback" | "url" | "say";
|
|
79
72
|
label: string;
|
|
80
|
-
}, {
|
|
81
73
|
value: string;
|
|
74
|
+
}, {
|
|
82
75
|
action: "postback" | "url" | "say";
|
|
83
76
|
label: string;
|
|
77
|
+
value: string;
|
|
84
78
|
}>, "many">;
|
|
85
|
-
className: import("zod").ZodOptional<import("zod").ZodString>;
|
|
86
79
|
}, "strip", import("zod").ZodTypeAny, {
|
|
87
80
|
title: string;
|
|
88
81
|
actions: {
|
|
89
|
-
value: string;
|
|
90
82
|
action: "postback" | "url" | "say";
|
|
91
83
|
label: string;
|
|
84
|
+
value: string;
|
|
92
85
|
}[];
|
|
93
86
|
subtitle?: string | undefined;
|
|
94
87
|
imageUrl?: string | undefined;
|
|
95
|
-
className?: string | undefined;
|
|
96
88
|
}, {
|
|
97
89
|
title: string;
|
|
98
90
|
actions: {
|
|
99
|
-
value: string;
|
|
100
91
|
action: "postback" | "url" | "say";
|
|
101
92
|
label: string;
|
|
93
|
+
value: string;
|
|
102
94
|
}[];
|
|
103
95
|
subtitle?: string | undefined;
|
|
104
96
|
imageUrl?: string | undefined;
|
|
105
|
-
className?: string | undefined;
|
|
106
97
|
}>, "many">;
|
|
107
|
-
className: import("zod").ZodOptional<import("zod").ZodString>;
|
|
108
98
|
type: import("zod").ZodLiteral<"carousel">;
|
|
109
99
|
}, "strip", import("zod").ZodTypeAny, {
|
|
110
100
|
type: "carousel";
|
|
111
101
|
items: {
|
|
112
102
|
title: string;
|
|
113
103
|
actions: {
|
|
114
|
-
value: string;
|
|
115
104
|
action: "postback" | "url" | "say";
|
|
116
105
|
label: string;
|
|
106
|
+
value: string;
|
|
117
107
|
}[];
|
|
118
108
|
subtitle?: string | undefined;
|
|
119
109
|
imageUrl?: string | undefined;
|
|
120
|
-
className?: string | undefined;
|
|
121
110
|
}[];
|
|
122
|
-
className?: string | undefined;
|
|
123
111
|
}, {
|
|
124
112
|
type: "carousel";
|
|
125
113
|
items: {
|
|
126
114
|
title: string;
|
|
127
115
|
actions: {
|
|
128
|
-
value: string;
|
|
129
116
|
action: "postback" | "url" | "say";
|
|
130
117
|
label: string;
|
|
118
|
+
value: string;
|
|
131
119
|
}[];
|
|
132
120
|
subtitle?: string | undefined;
|
|
133
121
|
imageUrl?: string | undefined;
|
|
134
|
-
className?: string | undefined;
|
|
135
122
|
}[];
|
|
136
|
-
className?: string | undefined;
|
|
137
123
|
}>, import("zod").ZodObject<{
|
|
138
124
|
text: import("zod").ZodString;
|
|
139
125
|
options: import("zod").ZodArray<import("zod").ZodObject<{
|
|
140
126
|
label: import("zod").ZodString;
|
|
141
127
|
value: import("zod").ZodString;
|
|
142
128
|
}, "strip", import("zod").ZodTypeAny, {
|
|
143
|
-
value: string;
|
|
144
129
|
label: string;
|
|
145
|
-
}, {
|
|
146
130
|
value: string;
|
|
131
|
+
}, {
|
|
147
132
|
label: string;
|
|
133
|
+
value: string;
|
|
148
134
|
}>, "many">;
|
|
149
|
-
className: import("zod").ZodOptional<import("zod").ZodString>;
|
|
150
135
|
type: import("zod").ZodLiteral<"choice">;
|
|
151
136
|
disableFreeText: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
152
137
|
}, "strip", import("zod").ZodTypeAny, {
|
|
153
138
|
type: "choice";
|
|
154
139
|
text: string;
|
|
155
140
|
options: {
|
|
156
|
-
value: string;
|
|
157
141
|
label: string;
|
|
142
|
+
value: string;
|
|
158
143
|
}[];
|
|
159
|
-
className?: string | undefined;
|
|
160
144
|
disableFreeText?: boolean | undefined;
|
|
161
145
|
}, {
|
|
162
146
|
type: "choice";
|
|
163
147
|
text: string;
|
|
164
148
|
options: {
|
|
165
|
-
value: string;
|
|
166
149
|
label: string;
|
|
150
|
+
value: string;
|
|
167
151
|
}[];
|
|
168
|
-
className?: string | undefined;
|
|
169
152
|
disableFreeText?: boolean | undefined;
|
|
170
153
|
}>, import("zod").ZodObject<{
|
|
171
154
|
text: import("zod").ZodString;
|
|
@@ -173,63 +156,53 @@ export declare const zod: {
|
|
|
173
156
|
label: import("zod").ZodString;
|
|
174
157
|
value: import("zod").ZodString;
|
|
175
158
|
}, "strip", import("zod").ZodTypeAny, {
|
|
176
|
-
value: string;
|
|
177
159
|
label: string;
|
|
178
|
-
}, {
|
|
179
160
|
value: string;
|
|
161
|
+
}, {
|
|
180
162
|
label: string;
|
|
163
|
+
value: string;
|
|
181
164
|
}>, "many">;
|
|
182
|
-
className: import("zod").ZodOptional<import("zod").ZodString>;
|
|
183
165
|
type: import("zod").ZodLiteral<"dropdown">;
|
|
184
166
|
}, "strip", import("zod").ZodTypeAny, {
|
|
185
167
|
type: "dropdown";
|
|
186
168
|
text: string;
|
|
187
169
|
options: {
|
|
188
|
-
value: string;
|
|
189
170
|
label: string;
|
|
171
|
+
value: string;
|
|
190
172
|
}[];
|
|
191
|
-
className?: string | undefined;
|
|
192
173
|
}, {
|
|
193
174
|
type: "dropdown";
|
|
194
175
|
text: string;
|
|
195
176
|
options: {
|
|
196
|
-
value: string;
|
|
197
177
|
label: string;
|
|
178
|
+
value: string;
|
|
198
179
|
}[];
|
|
199
|
-
className?: string | undefined;
|
|
200
180
|
}>, import("zod").ZodObject<{
|
|
201
181
|
fileUrl: import("zod").ZodString;
|
|
202
182
|
title: import("zod").ZodOptional<import("zod").ZodString>;
|
|
203
|
-
className: import("zod").ZodOptional<import("zod").ZodString>;
|
|
204
183
|
type: import("zod").ZodLiteral<"file">;
|
|
205
184
|
}, "strip", import("zod").ZodTypeAny, {
|
|
206
185
|
type: "file";
|
|
207
186
|
fileUrl: string;
|
|
208
187
|
title?: string | undefined;
|
|
209
|
-
className?: string | undefined;
|
|
210
188
|
}, {
|
|
211
189
|
type: "file";
|
|
212
190
|
fileUrl: string;
|
|
213
191
|
title?: string | undefined;
|
|
214
|
-
className?: string | undefined;
|
|
215
192
|
}>, import("zod").ZodObject<{
|
|
216
193
|
imageUrl: import("zod").ZodString;
|
|
217
|
-
className: import("zod").ZodOptional<import("zod").ZodString>;
|
|
218
194
|
type: import("zod").ZodLiteral<"image">;
|
|
219
195
|
}, "strip", import("zod").ZodTypeAny, {
|
|
220
196
|
type: "image";
|
|
221
197
|
imageUrl: string;
|
|
222
|
-
className?: string | undefined;
|
|
223
198
|
}, {
|
|
224
199
|
type: "image";
|
|
225
200
|
imageUrl: string;
|
|
226
|
-
className?: string | undefined;
|
|
227
201
|
}>, import("zod").ZodObject<{
|
|
228
202
|
latitude: import("zod").ZodNumber;
|
|
229
203
|
longitude: import("zod").ZodNumber;
|
|
230
204
|
address: import("zod").ZodOptional<import("zod").ZodString>;
|
|
231
205
|
title: import("zod").ZodOptional<import("zod").ZodString>;
|
|
232
|
-
className: import("zod").ZodOptional<import("zod").ZodString>;
|
|
233
206
|
type: import("zod").ZodLiteral<"location">;
|
|
234
207
|
}, "strip", import("zod").ZodTypeAny, {
|
|
235
208
|
type: "location";
|
|
@@ -237,50 +210,39 @@ export declare const zod: {
|
|
|
237
210
|
longitude: number;
|
|
238
211
|
address?: string | undefined;
|
|
239
212
|
title?: string | undefined;
|
|
240
|
-
className?: string | undefined;
|
|
241
213
|
}, {
|
|
242
214
|
type: "location";
|
|
243
215
|
latitude: number;
|
|
244
216
|
longitude: number;
|
|
245
217
|
address?: string | undefined;
|
|
246
218
|
title?: string | undefined;
|
|
247
|
-
className?: string | undefined;
|
|
248
219
|
}>, import("zod").ZodObject<{
|
|
249
220
|
markdown: import("zod").ZodString;
|
|
250
|
-
className: import("zod").ZodOptional<import("zod").ZodString>;
|
|
251
221
|
type: import("zod").ZodLiteral<"markdown">;
|
|
252
222
|
}, "strip", import("zod").ZodTypeAny, {
|
|
253
223
|
type: "markdown";
|
|
254
224
|
markdown: string;
|
|
255
|
-
className?: string | undefined;
|
|
256
225
|
}, {
|
|
257
226
|
type: "markdown";
|
|
258
227
|
markdown: string;
|
|
259
|
-
className?: string | undefined;
|
|
260
228
|
}>, import("zod").ZodObject<{
|
|
261
229
|
text: import("zod").ZodString;
|
|
262
|
-
className: import("zod").ZodOptional<import("zod").ZodString>;
|
|
263
230
|
type: import("zod").ZodLiteral<"text">;
|
|
264
231
|
}, "strip", import("zod").ZodTypeAny, {
|
|
265
232
|
type: "text";
|
|
266
233
|
text: string;
|
|
267
|
-
className?: string | undefined;
|
|
268
234
|
}, {
|
|
269
235
|
type: "text";
|
|
270
236
|
text: string;
|
|
271
|
-
className?: string | undefined;
|
|
272
237
|
}>, import("zod").ZodObject<{
|
|
273
238
|
videoUrl: import("zod").ZodString;
|
|
274
|
-
className: import("zod").ZodOptional<import("zod").ZodString>;
|
|
275
239
|
type: import("zod").ZodLiteral<"video">;
|
|
276
240
|
}, "strip", import("zod").ZodTypeAny, {
|
|
277
241
|
type: "video";
|
|
278
242
|
videoUrl: string;
|
|
279
|
-
className?: string | undefined;
|
|
280
243
|
}, {
|
|
281
244
|
type: "video";
|
|
282
245
|
videoUrl: string;
|
|
283
|
-
className?: string | undefined;
|
|
284
246
|
}>, import("zod").ZodObject<{
|
|
285
247
|
items: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodObject<{
|
|
286
248
|
type: import("zod").ZodLiteral<"text">;
|
|
@@ -436,7 +398,6 @@ export declare const zod: {
|
|
|
436
398
|
title?: string | undefined;
|
|
437
399
|
};
|
|
438
400
|
}>]>, "many">;
|
|
439
|
-
className: import("zod").ZodOptional<import("zod").ZodString>;
|
|
440
401
|
type: import("zod").ZodLiteral<"bloc">;
|
|
441
402
|
}, "strip", import("zod").ZodTypeAny, {
|
|
442
403
|
type: "bloc";
|
|
@@ -480,7 +441,6 @@ export declare const zod: {
|
|
|
480
441
|
title?: string | undefined;
|
|
481
442
|
};
|
|
482
443
|
})[];
|
|
483
|
-
className?: string | undefined;
|
|
484
444
|
}, {
|
|
485
445
|
type: "bloc";
|
|
486
446
|
items: ({
|
|
@@ -523,7 +483,6 @@ export declare const zod: {
|
|
|
523
483
|
title?: string | undefined;
|
|
524
484
|
};
|
|
525
485
|
})[];
|
|
526
|
-
className?: string | undefined;
|
|
527
486
|
}>]>;
|
|
528
487
|
userId: import("zod").ZodString;
|
|
529
488
|
conversationId: import("zod").ZodString;
|
|
@@ -531,77 +490,65 @@ export declare const zod: {
|
|
|
531
490
|
payload: {
|
|
532
491
|
type: "audio";
|
|
533
492
|
audioUrl: string;
|
|
534
|
-
className?: string | undefined;
|
|
535
493
|
} | {
|
|
536
494
|
type: "card";
|
|
537
495
|
title: string;
|
|
538
496
|
actions: {
|
|
539
|
-
value: string;
|
|
540
497
|
action: "postback" | "url" | "say";
|
|
541
498
|
label: string;
|
|
499
|
+
value: string;
|
|
542
500
|
}[];
|
|
543
501
|
subtitle?: string | undefined;
|
|
544
502
|
imageUrl?: string | undefined;
|
|
545
|
-
className?: string | undefined;
|
|
546
503
|
} | {
|
|
547
504
|
type: "carousel";
|
|
548
505
|
items: {
|
|
549
506
|
title: string;
|
|
550
507
|
actions: {
|
|
551
|
-
value: string;
|
|
552
508
|
action: "postback" | "url" | "say";
|
|
553
509
|
label: string;
|
|
510
|
+
value: string;
|
|
554
511
|
}[];
|
|
555
512
|
subtitle?: string | undefined;
|
|
556
513
|
imageUrl?: string | undefined;
|
|
557
|
-
className?: string | undefined;
|
|
558
514
|
}[];
|
|
559
|
-
className?: string | undefined;
|
|
560
515
|
} | {
|
|
561
516
|
type: "choice";
|
|
562
517
|
text: string;
|
|
563
518
|
options: {
|
|
564
|
-
value: string;
|
|
565
519
|
label: string;
|
|
520
|
+
value: string;
|
|
566
521
|
}[];
|
|
567
|
-
className?: string | undefined;
|
|
568
522
|
disableFreeText?: boolean | undefined;
|
|
569
523
|
} | {
|
|
570
524
|
type: "dropdown";
|
|
571
525
|
text: string;
|
|
572
526
|
options: {
|
|
573
|
-
value: string;
|
|
574
527
|
label: string;
|
|
528
|
+
value: string;
|
|
575
529
|
}[];
|
|
576
|
-
className?: string | undefined;
|
|
577
530
|
} | {
|
|
578
531
|
type: "file";
|
|
579
532
|
fileUrl: string;
|
|
580
533
|
title?: string | undefined;
|
|
581
|
-
className?: string | undefined;
|
|
582
534
|
} | {
|
|
583
535
|
type: "image";
|
|
584
536
|
imageUrl: string;
|
|
585
|
-
className?: string | undefined;
|
|
586
537
|
} | {
|
|
587
538
|
type: "location";
|
|
588
539
|
latitude: number;
|
|
589
540
|
longitude: number;
|
|
590
541
|
address?: string | undefined;
|
|
591
542
|
title?: string | undefined;
|
|
592
|
-
className?: string | undefined;
|
|
593
543
|
} | {
|
|
594
544
|
type: "markdown";
|
|
595
545
|
markdown: string;
|
|
596
|
-
className?: string | undefined;
|
|
597
546
|
} | {
|
|
598
547
|
type: "text";
|
|
599
548
|
text: string;
|
|
600
|
-
className?: string | undefined;
|
|
601
549
|
} | {
|
|
602
550
|
type: "video";
|
|
603
551
|
videoUrl: string;
|
|
604
|
-
className?: string | undefined;
|
|
605
552
|
} | {
|
|
606
553
|
type: "bloc";
|
|
607
554
|
items: ({
|
|
@@ -644,7 +591,6 @@ export declare const zod: {
|
|
|
644
591
|
title?: string | undefined;
|
|
645
592
|
};
|
|
646
593
|
})[];
|
|
647
|
-
className?: string | undefined;
|
|
648
594
|
};
|
|
649
595
|
id: string;
|
|
650
596
|
userId: string;
|
|
@@ -654,77 +600,65 @@ export declare const zod: {
|
|
|
654
600
|
payload: {
|
|
655
601
|
type: "audio";
|
|
656
602
|
audioUrl: string;
|
|
657
|
-
className?: string | undefined;
|
|
658
603
|
} | {
|
|
659
604
|
type: "card";
|
|
660
605
|
title: string;
|
|
661
606
|
actions: {
|
|
662
|
-
value: string;
|
|
663
607
|
action: "postback" | "url" | "say";
|
|
664
608
|
label: string;
|
|
609
|
+
value: string;
|
|
665
610
|
}[];
|
|
666
611
|
subtitle?: string | undefined;
|
|
667
612
|
imageUrl?: string | undefined;
|
|
668
|
-
className?: string | undefined;
|
|
669
613
|
} | {
|
|
670
614
|
type: "carousel";
|
|
671
615
|
items: {
|
|
672
616
|
title: string;
|
|
673
617
|
actions: {
|
|
674
|
-
value: string;
|
|
675
618
|
action: "postback" | "url" | "say";
|
|
676
619
|
label: string;
|
|
620
|
+
value: string;
|
|
677
621
|
}[];
|
|
678
622
|
subtitle?: string | undefined;
|
|
679
623
|
imageUrl?: string | undefined;
|
|
680
|
-
className?: string | undefined;
|
|
681
624
|
}[];
|
|
682
|
-
className?: string | undefined;
|
|
683
625
|
} | {
|
|
684
626
|
type: "choice";
|
|
685
627
|
text: string;
|
|
686
628
|
options: {
|
|
687
|
-
value: string;
|
|
688
629
|
label: string;
|
|
630
|
+
value: string;
|
|
689
631
|
}[];
|
|
690
|
-
className?: string | undefined;
|
|
691
632
|
disableFreeText?: boolean | undefined;
|
|
692
633
|
} | {
|
|
693
634
|
type: "dropdown";
|
|
694
635
|
text: string;
|
|
695
636
|
options: {
|
|
696
|
-
value: string;
|
|
697
637
|
label: string;
|
|
638
|
+
value: string;
|
|
698
639
|
}[];
|
|
699
|
-
className?: string | undefined;
|
|
700
640
|
} | {
|
|
701
641
|
type: "file";
|
|
702
642
|
fileUrl: string;
|
|
703
643
|
title?: string | undefined;
|
|
704
|
-
className?: string | undefined;
|
|
705
644
|
} | {
|
|
706
645
|
type: "image";
|
|
707
646
|
imageUrl: string;
|
|
708
|
-
className?: string | undefined;
|
|
709
647
|
} | {
|
|
710
648
|
type: "location";
|
|
711
649
|
latitude: number;
|
|
712
650
|
longitude: number;
|
|
713
651
|
address?: string | undefined;
|
|
714
652
|
title?: string | undefined;
|
|
715
|
-
className?: string | undefined;
|
|
716
653
|
} | {
|
|
717
654
|
type: "markdown";
|
|
718
655
|
markdown: string;
|
|
719
|
-
className?: string | undefined;
|
|
720
656
|
} | {
|
|
721
657
|
type: "text";
|
|
722
658
|
text: string;
|
|
723
|
-
className?: string | undefined;
|
|
724
659
|
} | {
|
|
725
660
|
type: "video";
|
|
726
661
|
videoUrl: string;
|
|
727
|
-
className?: string | undefined;
|
|
728
662
|
} | {
|
|
729
663
|
type: "bloc";
|
|
730
664
|
items: ({
|
|
@@ -767,7 +701,6 @@ export declare const zod: {
|
|
|
767
701
|
title?: string | undefined;
|
|
768
702
|
};
|
|
769
703
|
})[];
|
|
770
|
-
className?: string | undefined;
|
|
771
704
|
};
|
|
772
705
|
id: string;
|
|
773
706
|
userId: string;
|
|
@@ -780,77 +713,65 @@ export declare const zod: {
|
|
|
780
713
|
payload: {
|
|
781
714
|
type: "audio";
|
|
782
715
|
audioUrl: string;
|
|
783
|
-
className?: string | undefined;
|
|
784
716
|
} | {
|
|
785
717
|
type: "card";
|
|
786
718
|
title: string;
|
|
787
719
|
actions: {
|
|
788
|
-
value: string;
|
|
789
720
|
action: "postback" | "url" | "say";
|
|
790
721
|
label: string;
|
|
722
|
+
value: string;
|
|
791
723
|
}[];
|
|
792
724
|
subtitle?: string | undefined;
|
|
793
725
|
imageUrl?: string | undefined;
|
|
794
|
-
className?: string | undefined;
|
|
795
726
|
} | {
|
|
796
727
|
type: "carousel";
|
|
797
728
|
items: {
|
|
798
729
|
title: string;
|
|
799
730
|
actions: {
|
|
800
|
-
value: string;
|
|
801
731
|
action: "postback" | "url" | "say";
|
|
802
732
|
label: string;
|
|
733
|
+
value: string;
|
|
803
734
|
}[];
|
|
804
735
|
subtitle?: string | undefined;
|
|
805
736
|
imageUrl?: string | undefined;
|
|
806
|
-
className?: string | undefined;
|
|
807
737
|
}[];
|
|
808
|
-
className?: string | undefined;
|
|
809
738
|
} | {
|
|
810
739
|
type: "choice";
|
|
811
740
|
text: string;
|
|
812
741
|
options: {
|
|
813
|
-
value: string;
|
|
814
742
|
label: string;
|
|
743
|
+
value: string;
|
|
815
744
|
}[];
|
|
816
|
-
className?: string | undefined;
|
|
817
745
|
disableFreeText?: boolean | undefined;
|
|
818
746
|
} | {
|
|
819
747
|
type: "dropdown";
|
|
820
748
|
text: string;
|
|
821
749
|
options: {
|
|
822
|
-
value: string;
|
|
823
750
|
label: string;
|
|
751
|
+
value: string;
|
|
824
752
|
}[];
|
|
825
|
-
className?: string | undefined;
|
|
826
753
|
} | {
|
|
827
754
|
type: "file";
|
|
828
755
|
fileUrl: string;
|
|
829
756
|
title?: string | undefined;
|
|
830
|
-
className?: string | undefined;
|
|
831
757
|
} | {
|
|
832
758
|
type: "image";
|
|
833
759
|
imageUrl: string;
|
|
834
|
-
className?: string | undefined;
|
|
835
760
|
} | {
|
|
836
761
|
type: "location";
|
|
837
762
|
latitude: number;
|
|
838
763
|
longitude: number;
|
|
839
764
|
address?: string | undefined;
|
|
840
765
|
title?: string | undefined;
|
|
841
|
-
className?: string | undefined;
|
|
842
766
|
} | {
|
|
843
767
|
type: "markdown";
|
|
844
768
|
markdown: string;
|
|
845
|
-
className?: string | undefined;
|
|
846
769
|
} | {
|
|
847
770
|
type: "text";
|
|
848
771
|
text: string;
|
|
849
|
-
className?: string | undefined;
|
|
850
772
|
} | {
|
|
851
773
|
type: "video";
|
|
852
774
|
videoUrl: string;
|
|
853
|
-
className?: string | undefined;
|
|
854
775
|
} | {
|
|
855
776
|
type: "bloc";
|
|
856
777
|
items: ({
|
|
@@ -893,7 +814,6 @@ export declare const zod: {
|
|
|
893
814
|
title?: string | undefined;
|
|
894
815
|
};
|
|
895
816
|
})[];
|
|
896
|
-
className?: string | undefined;
|
|
897
817
|
};
|
|
898
818
|
id: string;
|
|
899
819
|
userId: string;
|
|
@@ -906,77 +826,65 @@ export declare const zod: {
|
|
|
906
826
|
payload: {
|
|
907
827
|
type: "audio";
|
|
908
828
|
audioUrl: string;
|
|
909
|
-
className?: string | undefined;
|
|
910
829
|
} | {
|
|
911
830
|
type: "card";
|
|
912
831
|
title: string;
|
|
913
832
|
actions: {
|
|
914
|
-
value: string;
|
|
915
833
|
action: "postback" | "url" | "say";
|
|
916
834
|
label: string;
|
|
835
|
+
value: string;
|
|
917
836
|
}[];
|
|
918
837
|
subtitle?: string | undefined;
|
|
919
838
|
imageUrl?: string | undefined;
|
|
920
|
-
className?: string | undefined;
|
|
921
839
|
} | {
|
|
922
840
|
type: "carousel";
|
|
923
841
|
items: {
|
|
924
842
|
title: string;
|
|
925
843
|
actions: {
|
|
926
|
-
value: string;
|
|
927
844
|
action: "postback" | "url" | "say";
|
|
928
845
|
label: string;
|
|
846
|
+
value: string;
|
|
929
847
|
}[];
|
|
930
848
|
subtitle?: string | undefined;
|
|
931
849
|
imageUrl?: string | undefined;
|
|
932
|
-
className?: string | undefined;
|
|
933
850
|
}[];
|
|
934
|
-
className?: string | undefined;
|
|
935
851
|
} | {
|
|
936
852
|
type: "choice";
|
|
937
853
|
text: string;
|
|
938
854
|
options: {
|
|
939
|
-
value: string;
|
|
940
855
|
label: string;
|
|
856
|
+
value: string;
|
|
941
857
|
}[];
|
|
942
|
-
className?: string | undefined;
|
|
943
858
|
disableFreeText?: boolean | undefined;
|
|
944
859
|
} | {
|
|
945
860
|
type: "dropdown";
|
|
946
861
|
text: string;
|
|
947
862
|
options: {
|
|
948
|
-
value: string;
|
|
949
863
|
label: string;
|
|
864
|
+
value: string;
|
|
950
865
|
}[];
|
|
951
|
-
className?: string | undefined;
|
|
952
866
|
} | {
|
|
953
867
|
type: "file";
|
|
954
868
|
fileUrl: string;
|
|
955
869
|
title?: string | undefined;
|
|
956
|
-
className?: string | undefined;
|
|
957
870
|
} | {
|
|
958
871
|
type: "image";
|
|
959
872
|
imageUrl: string;
|
|
960
|
-
className?: string | undefined;
|
|
961
873
|
} | {
|
|
962
874
|
type: "location";
|
|
963
875
|
latitude: number;
|
|
964
876
|
longitude: number;
|
|
965
877
|
address?: string | undefined;
|
|
966
878
|
title?: string | undefined;
|
|
967
|
-
className?: string | undefined;
|
|
968
879
|
} | {
|
|
969
880
|
type: "markdown";
|
|
970
881
|
markdown: string;
|
|
971
|
-
className?: string | undefined;
|
|
972
882
|
} | {
|
|
973
883
|
type: "text";
|
|
974
884
|
text: string;
|
|
975
|
-
className?: string | undefined;
|
|
976
885
|
} | {
|
|
977
886
|
type: "video";
|
|
978
887
|
videoUrl: string;
|
|
979
|
-
className?: string | undefined;
|
|
980
888
|
} | {
|
|
981
889
|
type: "bloc";
|
|
982
890
|
items: ({
|
|
@@ -1019,7 +927,6 @@ export declare const zod: {
|
|
|
1019
927
|
title?: string | undefined;
|
|
1020
928
|
};
|
|
1021
929
|
})[];
|
|
1022
|
-
className?: string | undefined;
|
|
1023
930
|
};
|
|
1024
931
|
id: string;
|
|
1025
932
|
userId: string;
|