@botpress/webchat 2.3.0 → 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.
@@ -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,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,7 +483,6 @@ 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;
@@ -535,7 +493,6 @@ declare const _default: z.ZodObject<{
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: {
@@ -547,9 +504,7 @@ declare const _default: z.ZodObject<{
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;
@@ -557,7 +512,6 @@ declare const _default: z.ZodObject<{
557
512
  value: string;
558
513
  label: string;
559
514
  }[];
560
- className?: string | undefined;
561
515
  disableFreeText?: boolean | undefined;
562
516
  } | {
563
517
  type: "dropdown";
@@ -566,35 +520,28 @@ declare const _default: z.ZodObject<{
566
520
  value: string;
567
521
  label: 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,7 +593,6 @@ 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;
@@ -658,7 +603,6 @@ declare const _default: z.ZodObject<{
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: {
@@ -670,9 +614,7 @@ declare const _default: z.ZodObject<{
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;
@@ -680,7 +622,6 @@ declare const _default: z.ZodObject<{
680
622
  value: string;
681
623
  label: string;
682
624
  }[];
683
- className?: string | undefined;
684
625
  disableFreeText?: boolean | undefined;
685
626
  } | {
686
627
  type: "dropdown";
@@ -689,35 +630,28 @@ declare const _default: z.ZodObject<{
689
630
  value: string;
690
631
  label: 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,7 +706,6 @@ 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;
@@ -784,7 +716,6 @@ declare const _default: z.ZodObject<{
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: {
@@ -796,9 +727,7 @@ declare const _default: z.ZodObject<{
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;
@@ -806,7 +735,6 @@ declare const _default: z.ZodObject<{
806
735
  value: string;
807
736
  label: string;
808
737
  }[];
809
- className?: string | undefined;
810
738
  disableFreeText?: boolean | undefined;
811
739
  } | {
812
740
  type: "dropdown";
@@ -815,35 +743,28 @@ declare const _default: z.ZodObject<{
815
743
  value: string;
816
744
  label: 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,7 +819,6 @@ 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;
@@ -910,7 +829,6 @@ declare const _default: z.ZodObject<{
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: {
@@ -922,9 +840,7 @@ declare const _default: z.ZodObject<{
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;
@@ -932,7 +848,6 @@ declare const _default: z.ZodObject<{
932
848
  value: string;
933
849
  label: string;
934
850
  }[];
935
- className?: string | undefined;
936
851
  disableFreeText?: boolean | undefined;
937
852
  } | {
938
853
  type: "dropdown";
@@ -941,35 +856,28 @@ declare const _default: z.ZodObject<{
941
856
  value: string;
942
857
  label: 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;