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