@botpress/webchat 2.2.20 → 2.3.1

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.
Files changed (53) hide show
  1. package/.turbo/turbo-build.log +8 -8
  2. package/dist/adapters/adapters/webchat-to-target.d.ts +46 -0
  3. package/dist/adapters/webchat.d.ts +816 -0
  4. package/dist/client/{PushpinClient/index.d.ts → client.d.ts} +6 -5
  5. package/dist/client/index.d.ts +1 -2
  6. package/dist/client/{PushpinClient/inner-client → inner-client}/index.d.ts +3 -3
  7. package/dist/client/{PushpinClient/inner-client → inner-client}/signal-listener.d.ts +1 -1
  8. package/dist/client/types.d.ts +3 -26
  9. package/dist/components/Block.d.ts +1 -1
  10. package/dist/components/Message/Message.d.ts +4 -2
  11. package/dist/components/renderers/Audio/Audio.d.ts +3 -1
  12. package/dist/components/renderers/Bubble/Bubble.d.ts +2 -2
  13. package/dist/components/renderers/Button/Button.d.ts +2 -2
  14. package/dist/components/renderers/Carousel/Carousel.d.ts +3 -1
  15. package/dist/components/renderers/Column/Column.d.ts +2 -2
  16. package/dist/components/renderers/Dropdown/Dropdown.d.ts +2 -2
  17. package/dist/components/renderers/File/File.d.ts +3 -1
  18. package/dist/components/renderers/Image/Image.d.ts +3 -1
  19. package/dist/components/renderers/Location/Location.d.ts +3 -1
  20. package/dist/components/renderers/Row/Row.d.ts +2 -2
  21. package/dist/components/renderers/Text/Text.d.ts +2 -2
  22. package/dist/components/renderers/Video/Video.d.ts +3 -1
  23. package/dist/gen/client/models.d.ts +57 -48
  24. package/dist/gen/client/operations/createMessage.d.ts +114 -96
  25. package/dist/gen/client/operations/getMessage.d.ts +57 -48
  26. package/dist/gen/client/operations/listConversationMessages.d.ts +57 -48
  27. package/dist/gen/signals/index.d.ts +409 -94
  28. package/dist/gen/signals/messageCreated.t.d.ts +57 -48
  29. package/dist/gen/signals/messageCreated.z.d.ts +408 -86
  30. package/dist/get-client.d.ts +1 -2
  31. package/dist/hooks/useClient.d.ts +1 -2
  32. package/dist/index.js +12137 -14521
  33. package/dist/index.umd.cjs +88 -88
  34. package/dist/schemas/init.d.ts +0 -7
  35. package/dist/stores/offlineStore.d.ts +1 -1
  36. package/dist/stores/webchatStore.d.ts +1 -0
  37. package/dist/style.css +1 -1
  38. package/dist/styles/classes.d.ts +22 -22
  39. package/dist/types/block-type.d.ts +16 -14
  40. package/dist/types/init.d.ts +0 -1
  41. package/openapi.ts +1 -1
  42. package/package.json +3 -2
  43. package/dist/client/MessagingClient/client.d.ts +0 -35
  44. package/dist/client/MessagingClient/index.d.ts +0 -1
  45. package/dist/gen/signals/custom.j.d.ts +0 -3
  46. package/dist/gen/signals/messageCreated.j.d.ts +0 -3
  47. package/dist/gen/signals/typingStarted.j.d.ts +0 -3
  48. package/dist/gen/signals/typingStopped.j.d.ts +0 -3
  49. package/dist/gen/signals/webchatConfig.j.d.ts +0 -3
  50. package/dist/gen/signals/webchatVisibility.j.d.ts +0 -3
  51. /package/dist/client/{PushpinClient/inner-client → inner-client}/event-emitter.d.ts +0 -0
  52. /package/dist/client/{PushpinClient/inner-client → inner-client}/eventsource.d.ts +0 -0
  53. /package/dist/client/{PushpinClient/state-machine.d.ts → state-machine.d.ts} +0 -0
@@ -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>;
@@ -34,7 +31,6 @@ declare const _default: z.ZodObject<{
34
31
  label: 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;
@@ -45,7 +41,6 @@ declare const _default: z.ZodObject<{
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;
@@ -56,7 +51,6 @@ declare const _default: z.ZodObject<{
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;
@@ -75,7 +69,6 @@ declare const _default: z.ZodObject<{
75
69
  action: "postback" | "url" | "say";
76
70
  label: string;
77
71
  }>, "many">;
78
- className: z.ZodOptional<z.ZodString>;
79
72
  }, "strip", z.ZodTypeAny, {
80
73
  title: string;
81
74
  actions: {
@@ -85,7 +78,6 @@ declare const _default: z.ZodObject<{
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: {
@@ -95,9 +87,7 @@ declare const _default: z.ZodObject<{
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";
@@ -110,9 +100,7 @@ declare const _default: z.ZodObject<{
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: {
@@ -124,9 +112,7 @@ declare const _default: z.ZodObject<{
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<{
@@ -139,7 +125,6 @@ declare const _default: z.ZodObject<{
139
125
  value: string;
140
126
  label: 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, {
@@ -149,7 +134,6 @@ declare const _default: z.ZodObject<{
149
134
  value: string;
150
135
  label: string;
151
136
  }[];
152
- className?: string | undefined;
153
137
  disableFreeText?: boolean | undefined;
154
138
  }, {
155
139
  type: "choice";
@@ -158,7 +142,6 @@ declare const _default: z.ZodObject<{
158
142
  value: string;
159
143
  label: string;
160
144
  }[];
161
- className?: string | undefined;
162
145
  disableFreeText?: boolean | undefined;
163
146
  }>, z.ZodObject<{
164
147
  text: z.ZodString;
@@ -172,7 +155,6 @@ declare const _default: z.ZodObject<{
172
155
  value: string;
173
156
  label: 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";
@@ -181,7 +163,6 @@ declare const _default: z.ZodObject<{
181
163
  value: string;
182
164
  label: string;
183
165
  }[];
184
- className?: string | undefined;
185
166
  }, {
186
167
  type: "dropdown";
187
168
  text: string;
@@ -189,40 +170,32 @@ declare const _default: z.ZodObject<{
189
170
  value: string;
190
171
  label: 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,279 @@ 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;
239
+ }>, z.ZodObject<{
240
+ items: z.ZodArray<z.ZodUnion<[z.ZodObject<{
241
+ type: z.ZodLiteral<"text">;
242
+ payload: z.ZodObject<{
243
+ text: z.ZodString;
244
+ }, "strip", z.ZodTypeAny, {
245
+ text: string;
246
+ }, {
247
+ text: string;
248
+ }>;
249
+ }, "strip", z.ZodTypeAny, {
250
+ type: "text";
251
+ payload: {
252
+ text: string;
253
+ };
254
+ }, {
255
+ type: "text";
256
+ payload: {
257
+ text: string;
258
+ };
259
+ }>, z.ZodObject<{
260
+ type: z.ZodLiteral<"markdown">;
261
+ payload: z.ZodObject<{
262
+ markdown: z.ZodString;
263
+ }, "strip", z.ZodTypeAny, {
264
+ markdown: string;
265
+ }, {
266
+ markdown: string;
267
+ }>;
268
+ }, "strip", z.ZodTypeAny, {
269
+ type: "markdown";
270
+ payload: {
271
+ markdown: string;
272
+ };
273
+ }, {
274
+ type: "markdown";
275
+ payload: {
276
+ markdown: string;
277
+ };
278
+ }>, z.ZodObject<{
279
+ type: z.ZodLiteral<"image">;
280
+ payload: z.ZodObject<{
281
+ imageUrl: z.ZodString;
282
+ }, "strip", z.ZodTypeAny, {
283
+ imageUrl: string;
284
+ }, {
285
+ imageUrl: string;
286
+ }>;
287
+ }, "strip", z.ZodTypeAny, {
288
+ type: "image";
289
+ payload: {
290
+ imageUrl: string;
291
+ };
292
+ }, {
293
+ type: "image";
294
+ payload: {
295
+ imageUrl: string;
296
+ };
297
+ }>, z.ZodObject<{
298
+ type: z.ZodLiteral<"audio">;
299
+ payload: z.ZodObject<{
300
+ audioUrl: z.ZodString;
301
+ }, "strip", z.ZodTypeAny, {
302
+ audioUrl: string;
303
+ }, {
304
+ audioUrl: string;
305
+ }>;
306
+ }, "strip", z.ZodTypeAny, {
307
+ type: "audio";
308
+ payload: {
309
+ audioUrl: string;
310
+ };
311
+ }, {
312
+ type: "audio";
313
+ payload: {
314
+ audioUrl: string;
315
+ };
316
+ }>, z.ZodObject<{
317
+ type: z.ZodLiteral<"video">;
318
+ payload: z.ZodObject<{
319
+ videoUrl: z.ZodString;
320
+ }, "strip", z.ZodTypeAny, {
321
+ videoUrl: string;
322
+ }, {
323
+ videoUrl: string;
324
+ }>;
325
+ }, "strip", z.ZodTypeAny, {
326
+ type: "video";
327
+ payload: {
328
+ videoUrl: string;
329
+ };
330
+ }, {
331
+ type: "video";
332
+ payload: {
333
+ videoUrl: string;
334
+ };
335
+ }>, z.ZodObject<{
336
+ type: z.ZodLiteral<"file">;
337
+ payload: z.ZodObject<{
338
+ fileUrl: z.ZodString;
339
+ title: z.ZodOptional<z.ZodString>;
340
+ }, "strip", z.ZodTypeAny, {
341
+ fileUrl: string;
342
+ title?: string | undefined;
343
+ }, {
344
+ fileUrl: string;
345
+ title?: string | undefined;
346
+ }>;
347
+ }, "strip", z.ZodTypeAny, {
348
+ type: "file";
349
+ payload: {
350
+ fileUrl: string;
351
+ title?: string | undefined;
352
+ };
353
+ }, {
354
+ type: "file";
355
+ payload: {
356
+ fileUrl: string;
357
+ title?: string | undefined;
358
+ };
359
+ }>, z.ZodObject<{
360
+ type: z.ZodLiteral<"location">;
361
+ payload: z.ZodObject<{
362
+ latitude: z.ZodNumber;
363
+ longitude: z.ZodNumber;
364
+ address: z.ZodOptional<z.ZodString>;
365
+ title: z.ZodOptional<z.ZodString>;
366
+ }, "strip", z.ZodTypeAny, {
367
+ latitude: number;
368
+ longitude: number;
369
+ address?: string | undefined;
370
+ title?: string | undefined;
371
+ }, {
372
+ latitude: number;
373
+ longitude: number;
374
+ address?: string | undefined;
375
+ title?: string | undefined;
376
+ }>;
377
+ }, "strip", z.ZodTypeAny, {
378
+ type: "location";
379
+ payload: {
380
+ latitude: number;
381
+ longitude: number;
382
+ address?: string | undefined;
383
+ title?: string | undefined;
384
+ };
385
+ }, {
386
+ type: "location";
387
+ payload: {
388
+ latitude: number;
389
+ longitude: number;
390
+ address?: string | undefined;
391
+ title?: string | undefined;
392
+ };
393
+ }>]>, "many">;
394
+ type: z.ZodLiteral<"bloc">;
395
+ }, "strip", z.ZodTypeAny, {
396
+ type: "bloc";
397
+ items: ({
398
+ type: "text";
399
+ payload: {
400
+ text: string;
401
+ };
402
+ } | {
403
+ type: "markdown";
404
+ payload: {
405
+ markdown: string;
406
+ };
407
+ } | {
408
+ type: "image";
409
+ payload: {
410
+ imageUrl: string;
411
+ };
412
+ } | {
413
+ type: "audio";
414
+ payload: {
415
+ audioUrl: string;
416
+ };
417
+ } | {
418
+ type: "video";
419
+ payload: {
420
+ videoUrl: string;
421
+ };
422
+ } | {
423
+ type: "file";
424
+ payload: {
425
+ fileUrl: string;
426
+ title?: string | undefined;
427
+ };
428
+ } | {
429
+ type: "location";
430
+ payload: {
431
+ latitude: number;
432
+ longitude: number;
433
+ address?: string | undefined;
434
+ title?: string | undefined;
435
+ };
436
+ })[];
437
+ }, {
438
+ type: "bloc";
439
+ items: ({
440
+ type: "text";
441
+ payload: {
442
+ text: string;
443
+ };
444
+ } | {
445
+ type: "markdown";
446
+ payload: {
447
+ markdown: string;
448
+ };
449
+ } | {
450
+ type: "image";
451
+ payload: {
452
+ imageUrl: string;
453
+ };
454
+ } | {
455
+ type: "audio";
456
+ payload: {
457
+ audioUrl: string;
458
+ };
459
+ } | {
460
+ type: "video";
461
+ payload: {
462
+ videoUrl: string;
463
+ };
464
+ } | {
465
+ type: "file";
466
+ payload: {
467
+ fileUrl: string;
468
+ title?: string | undefined;
469
+ };
470
+ } | {
471
+ type: "location";
472
+ payload: {
473
+ latitude: number;
474
+ longitude: number;
475
+ address?: string | undefined;
476
+ title?: string | undefined;
477
+ };
478
+ })[];
277
479
  }>]>;
278
480
  userId: z.ZodString;
279
481
  conversationId: z.ZodString;
@@ -281,7 +483,6 @@ declare const _default: z.ZodObject<{
281
483
  payload: {
282
484
  type: "audio";
283
485
  audioUrl: string;
284
- className?: string | undefined;
285
486
  } | {
286
487
  type: "card";
287
488
  title: string;
@@ -292,7 +493,6 @@ declare const _default: z.ZodObject<{
292
493
  }[];
293
494
  subtitle?: string | undefined;
294
495
  imageUrl?: string | undefined;
295
- className?: string | undefined;
296
496
  } | {
297
497
  type: "carousel";
298
498
  items: {
@@ -304,9 +504,7 @@ declare const _default: z.ZodObject<{
304
504
  }[];
305
505
  subtitle?: string | undefined;
306
506
  imageUrl?: string | undefined;
307
- className?: string | undefined;
308
507
  }[];
309
- className?: string | undefined;
310
508
  } | {
311
509
  type: "choice";
312
510
  text: string;
@@ -314,7 +512,6 @@ declare const _default: z.ZodObject<{
314
512
  value: string;
315
513
  label: string;
316
514
  }[];
317
- className?: string | undefined;
318
515
  disableFreeText?: boolean | undefined;
319
516
  } | {
320
517
  type: "dropdown";
@@ -323,35 +520,70 @@ declare const _default: z.ZodObject<{
323
520
  value: string;
324
521
  label: string;
325
522
  }[];
326
- className?: string | undefined;
327
523
  } | {
328
524
  type: "file";
329
525
  fileUrl: string;
330
526
  title?: string | undefined;
331
- className?: string | undefined;
332
527
  } | {
333
528
  type: "image";
334
529
  imageUrl: string;
335
- className?: string | undefined;
336
530
  } | {
337
531
  type: "location";
338
532
  latitude: number;
339
533
  longitude: number;
340
534
  address?: string | undefined;
341
535
  title?: string | undefined;
342
- className?: string | undefined;
343
536
  } | {
344
537
  type: "markdown";
345
538
  markdown: string;
346
- className?: string | undefined;
347
539
  } | {
348
540
  type: "text";
349
541
  text: string;
350
- className?: string | undefined;
351
542
  } | {
352
543
  type: "video";
353
544
  videoUrl: string;
354
- className?: string | undefined;
545
+ } | {
546
+ type: "bloc";
547
+ items: ({
548
+ type: "text";
549
+ payload: {
550
+ text: string;
551
+ };
552
+ } | {
553
+ type: "markdown";
554
+ payload: {
555
+ markdown: string;
556
+ };
557
+ } | {
558
+ type: "image";
559
+ payload: {
560
+ imageUrl: string;
561
+ };
562
+ } | {
563
+ type: "audio";
564
+ payload: {
565
+ audioUrl: string;
566
+ };
567
+ } | {
568
+ type: "video";
569
+ payload: {
570
+ videoUrl: string;
571
+ };
572
+ } | {
573
+ type: "file";
574
+ payload: {
575
+ fileUrl: string;
576
+ title?: string | undefined;
577
+ };
578
+ } | {
579
+ type: "location";
580
+ payload: {
581
+ latitude: number;
582
+ longitude: number;
583
+ address?: string | undefined;
584
+ title?: string | undefined;
585
+ };
586
+ })[];
355
587
  };
356
588
  id: string;
357
589
  userId: string;
@@ -361,7 +593,6 @@ declare const _default: z.ZodObject<{
361
593
  payload: {
362
594
  type: "audio";
363
595
  audioUrl: string;
364
- className?: string | undefined;
365
596
  } | {
366
597
  type: "card";
367
598
  title: string;
@@ -372,7 +603,6 @@ declare const _default: z.ZodObject<{
372
603
  }[];
373
604
  subtitle?: string | undefined;
374
605
  imageUrl?: string | undefined;
375
- className?: string | undefined;
376
606
  } | {
377
607
  type: "carousel";
378
608
  items: {
@@ -384,9 +614,7 @@ declare const _default: z.ZodObject<{
384
614
  }[];
385
615
  subtitle?: string | undefined;
386
616
  imageUrl?: string | undefined;
387
- className?: string | undefined;
388
617
  }[];
389
- className?: string | undefined;
390
618
  } | {
391
619
  type: "choice";
392
620
  text: string;
@@ -394,7 +622,6 @@ declare const _default: z.ZodObject<{
394
622
  value: string;
395
623
  label: string;
396
624
  }[];
397
- className?: string | undefined;
398
625
  disableFreeText?: boolean | undefined;
399
626
  } | {
400
627
  type: "dropdown";
@@ -403,35 +630,70 @@ declare const _default: z.ZodObject<{
403
630
  value: string;
404
631
  label: string;
405
632
  }[];
406
- className?: string | undefined;
407
633
  } | {
408
634
  type: "file";
409
635
  fileUrl: string;
410
636
  title?: string | undefined;
411
- className?: string | undefined;
412
637
  } | {
413
638
  type: "image";
414
639
  imageUrl: string;
415
- className?: string | undefined;
416
640
  } | {
417
641
  type: "location";
418
642
  latitude: number;
419
643
  longitude: number;
420
644
  address?: string | undefined;
421
645
  title?: string | undefined;
422
- className?: string | undefined;
423
646
  } | {
424
647
  type: "markdown";
425
648
  markdown: string;
426
- className?: string | undefined;
427
649
  } | {
428
650
  type: "text";
429
651
  text: string;
430
- className?: string | undefined;
431
652
  } | {
432
653
  type: "video";
433
654
  videoUrl: string;
434
- className?: string | undefined;
655
+ } | {
656
+ type: "bloc";
657
+ items: ({
658
+ type: "text";
659
+ payload: {
660
+ text: string;
661
+ };
662
+ } | {
663
+ type: "markdown";
664
+ payload: {
665
+ markdown: string;
666
+ };
667
+ } | {
668
+ type: "image";
669
+ payload: {
670
+ imageUrl: string;
671
+ };
672
+ } | {
673
+ type: "audio";
674
+ payload: {
675
+ audioUrl: string;
676
+ };
677
+ } | {
678
+ type: "video";
679
+ payload: {
680
+ videoUrl: string;
681
+ };
682
+ } | {
683
+ type: "file";
684
+ payload: {
685
+ fileUrl: string;
686
+ title?: string | undefined;
687
+ };
688
+ } | {
689
+ type: "location";
690
+ payload: {
691
+ latitude: number;
692
+ longitude: number;
693
+ address?: string | undefined;
694
+ title?: string | undefined;
695
+ };
696
+ })[];
435
697
  };
436
698
  id: string;
437
699
  userId: string;
@@ -444,7 +706,6 @@ declare const _default: z.ZodObject<{
444
706
  payload: {
445
707
  type: "audio";
446
708
  audioUrl: string;
447
- className?: string | undefined;
448
709
  } | {
449
710
  type: "card";
450
711
  title: string;
@@ -455,7 +716,6 @@ declare const _default: z.ZodObject<{
455
716
  }[];
456
717
  subtitle?: string | undefined;
457
718
  imageUrl?: string | undefined;
458
- className?: string | undefined;
459
719
  } | {
460
720
  type: "carousel";
461
721
  items: {
@@ -467,9 +727,7 @@ declare const _default: z.ZodObject<{
467
727
  }[];
468
728
  subtitle?: string | undefined;
469
729
  imageUrl?: string | undefined;
470
- className?: string | undefined;
471
730
  }[];
472
- className?: string | undefined;
473
731
  } | {
474
732
  type: "choice";
475
733
  text: string;
@@ -477,7 +735,6 @@ declare const _default: z.ZodObject<{
477
735
  value: string;
478
736
  label: string;
479
737
  }[];
480
- className?: string | undefined;
481
738
  disableFreeText?: boolean | undefined;
482
739
  } | {
483
740
  type: "dropdown";
@@ -486,35 +743,70 @@ declare const _default: z.ZodObject<{
486
743
  value: string;
487
744
  label: string;
488
745
  }[];
489
- className?: string | undefined;
490
746
  } | {
491
747
  type: "file";
492
748
  fileUrl: string;
493
749
  title?: string | undefined;
494
- className?: string | undefined;
495
750
  } | {
496
751
  type: "image";
497
752
  imageUrl: string;
498
- className?: string | undefined;
499
753
  } | {
500
754
  type: "location";
501
755
  latitude: number;
502
756
  longitude: number;
503
757
  address?: string | undefined;
504
758
  title?: string | undefined;
505
- className?: string | undefined;
506
759
  } | {
507
760
  type: "markdown";
508
761
  markdown: string;
509
- className?: string | undefined;
510
762
  } | {
511
763
  type: "text";
512
764
  text: string;
513
- className?: string | undefined;
514
765
  } | {
515
766
  type: "video";
516
767
  videoUrl: string;
517
- className?: string | undefined;
768
+ } | {
769
+ type: "bloc";
770
+ items: ({
771
+ type: "text";
772
+ payload: {
773
+ text: string;
774
+ };
775
+ } | {
776
+ type: "markdown";
777
+ payload: {
778
+ markdown: string;
779
+ };
780
+ } | {
781
+ type: "image";
782
+ payload: {
783
+ imageUrl: string;
784
+ };
785
+ } | {
786
+ type: "audio";
787
+ payload: {
788
+ audioUrl: string;
789
+ };
790
+ } | {
791
+ type: "video";
792
+ payload: {
793
+ videoUrl: string;
794
+ };
795
+ } | {
796
+ type: "file";
797
+ payload: {
798
+ fileUrl: string;
799
+ title?: string | undefined;
800
+ };
801
+ } | {
802
+ type: "location";
803
+ payload: {
804
+ latitude: number;
805
+ longitude: number;
806
+ address?: string | undefined;
807
+ title?: string | undefined;
808
+ };
809
+ })[];
518
810
  };
519
811
  id: string;
520
812
  userId: string;
@@ -527,7 +819,6 @@ declare const _default: z.ZodObject<{
527
819
  payload: {
528
820
  type: "audio";
529
821
  audioUrl: string;
530
- className?: string | undefined;
531
822
  } | {
532
823
  type: "card";
533
824
  title: string;
@@ -538,7 +829,6 @@ declare const _default: z.ZodObject<{
538
829
  }[];
539
830
  subtitle?: string | undefined;
540
831
  imageUrl?: string | undefined;
541
- className?: string | undefined;
542
832
  } | {
543
833
  type: "carousel";
544
834
  items: {
@@ -550,9 +840,7 @@ declare const _default: z.ZodObject<{
550
840
  }[];
551
841
  subtitle?: string | undefined;
552
842
  imageUrl?: string | undefined;
553
- className?: string | undefined;
554
843
  }[];
555
- className?: string | undefined;
556
844
  } | {
557
845
  type: "choice";
558
846
  text: string;
@@ -560,7 +848,6 @@ declare const _default: z.ZodObject<{
560
848
  value: string;
561
849
  label: string;
562
850
  }[];
563
- className?: string | undefined;
564
851
  disableFreeText?: boolean | undefined;
565
852
  } | {
566
853
  type: "dropdown";
@@ -569,35 +856,70 @@ declare const _default: z.ZodObject<{
569
856
  value: string;
570
857
  label: string;
571
858
  }[];
572
- className?: string | undefined;
573
859
  } | {
574
860
  type: "file";
575
861
  fileUrl: string;
576
862
  title?: string | undefined;
577
- className?: string | undefined;
578
863
  } | {
579
864
  type: "image";
580
865
  imageUrl: string;
581
- className?: string | undefined;
582
866
  } | {
583
867
  type: "location";
584
868
  latitude: number;
585
869
  longitude: number;
586
870
  address?: string | undefined;
587
871
  title?: string | undefined;
588
- className?: string | undefined;
589
872
  } | {
590
873
  type: "markdown";
591
874
  markdown: string;
592
- className?: string | undefined;
593
875
  } | {
594
876
  type: "text";
595
877
  text: string;
596
- className?: string | undefined;
597
878
  } | {
598
879
  type: "video";
599
880
  videoUrl: string;
600
- className?: string | undefined;
881
+ } | {
882
+ type: "bloc";
883
+ items: ({
884
+ type: "text";
885
+ payload: {
886
+ text: string;
887
+ };
888
+ } | {
889
+ type: "markdown";
890
+ payload: {
891
+ markdown: string;
892
+ };
893
+ } | {
894
+ type: "image";
895
+ payload: {
896
+ imageUrl: string;
897
+ };
898
+ } | {
899
+ type: "audio";
900
+ payload: {
901
+ audioUrl: string;
902
+ };
903
+ } | {
904
+ type: "video";
905
+ payload: {
906
+ videoUrl: string;
907
+ };
908
+ } | {
909
+ type: "file";
910
+ payload: {
911
+ fileUrl: string;
912
+ title?: string | undefined;
913
+ };
914
+ } | {
915
+ type: "location";
916
+ payload: {
917
+ latitude: number;
918
+ longitude: number;
919
+ address?: string | undefined;
920
+ title?: string | undefined;
921
+ };
922
+ })[];
601
923
  };
602
924
  id: string;
603
925
  userId: string;