@botpress/webchat 2.1.3 → 2.1.5

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 (33) hide show
  1. package/.turbo/turbo-build.log +9 -9
  2. package/dist/adapters/messaging-to-target.d.ts +12 -12
  3. package/dist/adapters/webchat-to-target.d.ts +6 -6
  4. package/dist/components/Block.d.ts +1 -1
  5. package/dist/gen/client/models.d.ts +19 -3
  6. package/dist/gen/client/operations/createEvent.d.ts +6 -6
  7. package/dist/gen/client/operations/createMessage.d.ts +32 -0
  8. package/dist/gen/client/operations/getEvent.d.ts +3 -3
  9. package/dist/gen/client/operations/getMessage.d.ts +16 -0
  10. package/dist/gen/client/operations/listConversationMessages.d.ts +16 -0
  11. package/dist/gen/signals/custom.j.d.ts +3 -24
  12. package/dist/gen/signals/custom.t.d.ts +0 -5
  13. package/dist/gen/signals/custom.z.d.ts +1 -1
  14. package/dist/gen/signals/index.d.ts +27 -592
  15. package/dist/gen/signals/messageCreated.j.d.ts +3 -501
  16. package/dist/gen/signals/messageCreated.t.d.ts +34 -5
  17. package/dist/gen/signals/messageCreated.z.d.ts +18 -18
  18. package/dist/gen/signals/webchatConfig.j.d.ts +3 -24
  19. package/dist/gen/signals/webchatConfig.t.d.ts +0 -5
  20. package/dist/gen/signals/webchatConfig.z.d.ts +1 -1
  21. package/dist/gen/signals/webchatVisibility.j.d.ts +3 -24
  22. package/dist/gen/signals/webchatVisibility.t.d.ts +0 -5
  23. package/dist/gen/signals/webchatVisibility.z.d.ts +1 -1
  24. package/dist/{index-d2d96fc2.js → index-ba8c56be.js} +31978 -31717
  25. package/dist/{index-2c165908.js → index-e890d9a1.js} +1 -1
  26. package/dist/index.d.ts +6 -0
  27. package/dist/index.js +19 -18
  28. package/dist/index.umd.cjs +182 -182
  29. package/dist/schemas/init.d.ts +14 -14
  30. package/dist/schemas/theme.d.ts +8 -8
  31. package/dist/stores/webchatStore.d.ts +5 -0
  32. package/dist/types/block-type.d.ts +1 -1
  33. package/package.json +1 -1
@@ -2,6 +2,12 @@ import type { MessageCreated } from './messageCreated.t';
2
2
  import type { WebchatVisibility } from './webchatVisibility.t';
3
3
  import type { WebchatConfig } from './webchatConfig.t';
4
4
  import type { Custom } from './custom.t';
5
+ export declare const json: {
6
+ messageCreated: import("json-schema").JSONSchema7;
7
+ webchatVisibility: import("json-schema").JSONSchema7;
8
+ webchatConfig: import("json-schema").JSONSchema7;
9
+ custom: import("json-schema").JSONSchema7;
10
+ };
5
11
  export declare const zod: {
6
12
  messageCreated: import("zod").ZodObject<{
7
13
  type: import("zod").ZodLiteral<"message_created">;
@@ -40,8 +46,8 @@ export declare const zod: {
40
46
  type: import("zod").ZodLiteral<"card">;
41
47
  className: import("zod").ZodOptional<import("zod").ZodString>;
42
48
  }, "strip", import("zod").ZodTypeAny, {
43
- title: string;
44
49
  type: "card";
50
+ title: string;
45
51
  actions: {
46
52
  value: string;
47
53
  action: "url" | "postback" | "say";
@@ -51,8 +57,8 @@ export declare const zod: {
51
57
  imageUrl?: string | undefined;
52
58
  className?: string | undefined;
53
59
  }, {
54
- title: string;
55
60
  type: "card";
61
+ title: string;
56
62
  actions: {
57
63
  value: string;
58
64
  action: "url" | "postback" | "say";
@@ -147,20 +153,20 @@ export declare const zod: {
147
153
  type: import("zod").ZodLiteral<"choice">;
148
154
  disableFreeText: import("zod").ZodOptional<import("zod").ZodBoolean>;
149
155
  }, "strip", import("zod").ZodTypeAny, {
156
+ type: "choice";
150
157
  options: {
151
158
  value: string;
152
159
  label: string;
153
160
  }[];
154
- type: "choice";
155
161
  text: string;
156
162
  className?: string | undefined;
157
163
  disableFreeText?: boolean | undefined;
158
164
  }, {
165
+ type: "choice";
159
166
  options: {
160
167
  value: string;
161
168
  label: string;
162
169
  }[];
163
- type: "choice";
164
170
  text: string;
165
171
  className?: string | undefined;
166
172
  disableFreeText?: boolean | undefined;
@@ -179,19 +185,19 @@ export declare const zod: {
179
185
  className: import("zod").ZodOptional<import("zod").ZodString>;
180
186
  type: import("zod").ZodLiteral<"dropdown">;
181
187
  }, "strip", import("zod").ZodTypeAny, {
188
+ type: "dropdown";
182
189
  options: {
183
190
  value: string;
184
191
  label: string;
185
192
  }[];
186
- type: "dropdown";
187
193
  text: string;
188
194
  className?: string | undefined;
189
195
  }, {
196
+ type: "dropdown";
190
197
  options: {
191
198
  value: string;
192
199
  label: string;
193
200
  }[];
194
- type: "dropdown";
195
201
  text: string;
196
202
  className?: string | undefined;
197
203
  }>, import("zod").ZodObject<{
@@ -287,8 +293,8 @@ export declare const zod: {
287
293
  audioUrl: string;
288
294
  className?: string | undefined;
289
295
  } | {
290
- title: string;
291
296
  type: "card";
297
+ title: string;
292
298
  actions: {
293
299
  value: string;
294
300
  action: "url" | "postback" | "say";
@@ -312,20 +318,20 @@ export declare const zod: {
312
318
  }[];
313
319
  className?: string | undefined;
314
320
  } | {
321
+ type: "choice";
315
322
  options: {
316
323
  value: string;
317
324
  label: string;
318
325
  }[];
319
- type: "choice";
320
326
  text: string;
321
327
  className?: string | undefined;
322
328
  disableFreeText?: boolean | undefined;
323
329
  } | {
330
+ type: "dropdown";
324
331
  options: {
325
332
  value: string;
326
333
  label: string;
327
334
  }[];
328
- type: "dropdown";
329
335
  text: string;
330
336
  className?: string | undefined;
331
337
  } | {
@@ -367,8 +373,8 @@ export declare const zod: {
367
373
  audioUrl: string;
368
374
  className?: string | undefined;
369
375
  } | {
370
- title: string;
371
376
  type: "card";
377
+ title: string;
372
378
  actions: {
373
379
  value: string;
374
380
  action: "url" | "postback" | "say";
@@ -392,20 +398,20 @@ export declare const zod: {
392
398
  }[];
393
399
  className?: string | undefined;
394
400
  } | {
401
+ type: "choice";
395
402
  options: {
396
403
  value: string;
397
404
  label: string;
398
405
  }[];
399
- type: "choice";
400
406
  text: string;
401
407
  className?: string | undefined;
402
408
  disableFreeText?: boolean | undefined;
403
409
  } | {
410
+ type: "dropdown";
404
411
  options: {
405
412
  value: string;
406
413
  label: string;
407
414
  }[];
408
- type: "dropdown";
409
415
  text: string;
410
416
  className?: string | undefined;
411
417
  } | {
@@ -450,8 +456,8 @@ export declare const zod: {
450
456
  audioUrl: string;
451
457
  className?: string | undefined;
452
458
  } | {
453
- title: string;
454
459
  type: "card";
460
+ title: string;
455
461
  actions: {
456
462
  value: string;
457
463
  action: "url" | "postback" | "say";
@@ -475,20 +481,20 @@ export declare const zod: {
475
481
  }[];
476
482
  className?: string | undefined;
477
483
  } | {
484
+ type: "choice";
478
485
  options: {
479
486
  value: string;
480
487
  label: string;
481
488
  }[];
482
- type: "choice";
483
489
  text: string;
484
490
  className?: string | undefined;
485
491
  disableFreeText?: boolean | undefined;
486
492
  } | {
493
+ type: "dropdown";
487
494
  options: {
488
495
  value: string;
489
496
  label: string;
490
497
  }[];
491
- type: "dropdown";
492
498
  text: string;
493
499
  className?: string | undefined;
494
500
  } | {
@@ -533,8 +539,8 @@ export declare const zod: {
533
539
  audioUrl: string;
534
540
  className?: string | undefined;
535
541
  } | {
536
- title: string;
537
542
  type: "card";
543
+ title: string;
538
544
  actions: {
539
545
  value: string;
540
546
  action: "url" | "postback" | "say";
@@ -558,20 +564,20 @@ export declare const zod: {
558
564
  }[];
559
565
  className?: string | undefined;
560
566
  } | {
567
+ type: "choice";
561
568
  options: {
562
569
  value: string;
563
570
  label: string;
564
571
  }[];
565
- type: "choice";
566
572
  text: string;
567
573
  className?: string | undefined;
568
574
  disableFreeText?: boolean | undefined;
569
575
  } | {
576
+ type: "dropdown";
570
577
  options: {
571
578
  value: string;
572
579
  label: string;
573
580
  }[];
574
- type: "dropdown";
575
581
  text: string;
576
582
  className?: string | undefined;
577
583
  } | {
@@ -612,7 +618,7 @@ export declare const zod: {
612
618
  webchatVisibility: import("zod").ZodObject<{
613
619
  type: import("zod").ZodLiteral<"webchat_visibility">;
614
620
  data: import("zod").ZodObject<{
615
- visibility: import("zod").ZodEnum<["show", "hide", "toggle"]>;
621
+ visibility: import("zod").ZodUnion<[import("zod").ZodLiteral<"show">, import("zod").ZodLiteral<"hide">, import("zod").ZodLiteral<"toggle">]>;
616
622
  }, "strip", import("zod").ZodTypeAny, {
617
623
  visibility: "show" | "hide" | "toggle";
618
624
  }, {
@@ -632,7 +638,7 @@ export declare const zod: {
632
638
  webchatConfig: import("zod").ZodObject<{
633
639
  type: import("zod").ZodLiteral<"webchat_config">;
634
640
  data: import("zod").ZodObject<{
635
- config: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>;
641
+ config: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnion<[import("zod").ZodAny, import("zod").ZodNull]>>;
636
642
  }, "strip", import("zod").ZodTypeAny, {
637
643
  config: Record<string, any>;
638
644
  }, {
@@ -652,7 +658,7 @@ export declare const zod: {
652
658
  custom: import("zod").ZodObject<{
653
659
  type: import("zod").ZodLiteral<"custom">;
654
660
  data: import("zod").ZodObject<{
655
- event: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>;
661
+ event: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnion<[import("zod").ZodAny, import("zod").ZodNull]>>;
656
662
  }, "strip", import("zod").ZodTypeAny, {
657
663
  event: Record<string, any>;
658
664
  }, {
@@ -670,577 +676,6 @@ export declare const zod: {
670
676
  };
671
677
  }>;
672
678
  };
673
- export declare const json: {
674
- messageCreated: {
675
- type: string;
676
- properties: {
677
- type: {
678
- type: string;
679
- const: string;
680
- };
681
- data: {
682
- type: string;
683
- properties: {
684
- id: {
685
- type: string;
686
- };
687
- createdAt: {
688
- type: string;
689
- format: string;
690
- };
691
- payload: {
692
- anyOf: ({
693
- type: string;
694
- properties: {
695
- audioUrl: {
696
- type: string;
697
- minLength: number;
698
- };
699
- className: {
700
- type: string;
701
- description: string;
702
- };
703
- type: {
704
- type: string;
705
- const: string;
706
- };
707
- title?: undefined;
708
- subtitle?: undefined;
709
- imageUrl?: undefined;
710
- actions?: undefined;
711
- items?: undefined;
712
- text?: undefined;
713
- options?: undefined;
714
- disableFreeText?: undefined;
715
- fileUrl?: undefined;
716
- latitude?: undefined;
717
- longitude?: undefined;
718
- address?: undefined;
719
- markdown?: undefined;
720
- videoUrl?: undefined;
721
- };
722
- required: string[];
723
- additionalProperties: boolean;
724
- } | {
725
- type: string;
726
- properties: {
727
- title: {
728
- type: string;
729
- minLength: number;
730
- };
731
- subtitle: {
732
- type: string;
733
- };
734
- imageUrl: {
735
- type: string;
736
- minLength?: undefined;
737
- };
738
- actions: {
739
- type: string;
740
- items: {
741
- type: string;
742
- properties: {
743
- action: {
744
- type: string;
745
- enum: string[];
746
- };
747
- label: {
748
- type: string;
749
- minLength: number;
750
- };
751
- value: {
752
- type: string;
753
- minLength: number;
754
- };
755
- };
756
- required: string[];
757
- additionalProperties: boolean;
758
- };
759
- };
760
- type: {
761
- type: string;
762
- const: string;
763
- };
764
- className: {
765
- type: string;
766
- description: string;
767
- };
768
- audioUrl?: undefined;
769
- items?: undefined;
770
- text?: undefined;
771
- options?: undefined;
772
- disableFreeText?: undefined;
773
- fileUrl?: undefined;
774
- latitude?: undefined;
775
- longitude?: undefined;
776
- address?: undefined;
777
- markdown?: undefined;
778
- videoUrl?: undefined;
779
- };
780
- required: string[];
781
- additionalProperties: boolean;
782
- } | {
783
- type: string;
784
- properties: {
785
- items: {
786
- type: string;
787
- items: {
788
- type: string;
789
- properties: {
790
- title: {
791
- type: string;
792
- minLength: number;
793
- };
794
- subtitle: {
795
- type: string;
796
- };
797
- imageUrl: {
798
- type: string;
799
- };
800
- actions: {
801
- type: string;
802
- items: {
803
- type: string;
804
- properties: {
805
- action: {
806
- type: string;
807
- enum: string[];
808
- };
809
- label: {
810
- type: string;
811
- minLength: number;
812
- };
813
- value: {
814
- type: string;
815
- minLength: number;
816
- };
817
- };
818
- required: string[];
819
- additionalProperties: boolean;
820
- };
821
- };
822
- className: {
823
- type: string;
824
- description: string;
825
- };
826
- };
827
- required: string[];
828
- additionalProperties: boolean;
829
- };
830
- };
831
- className: {
832
- type: string;
833
- description: string;
834
- };
835
- type: {
836
- type: string;
837
- const: string;
838
- };
839
- audioUrl?: undefined;
840
- title?: undefined;
841
- subtitle?: undefined;
842
- imageUrl?: undefined;
843
- actions?: undefined;
844
- text?: undefined;
845
- options?: undefined;
846
- disableFreeText?: undefined;
847
- fileUrl?: undefined;
848
- latitude?: undefined;
849
- longitude?: undefined;
850
- address?: undefined;
851
- markdown?: undefined;
852
- videoUrl?: undefined;
853
- };
854
- required: string[];
855
- additionalProperties: boolean;
856
- } | {
857
- type: string;
858
- properties: {
859
- text: {
860
- type: string;
861
- minLength?: undefined;
862
- };
863
- options: {
864
- type: string;
865
- items: {
866
- type: string;
867
- properties: {
868
- label: {
869
- type: string;
870
- minLength: number;
871
- };
872
- value: {
873
- type: string;
874
- minLength: number;
875
- };
876
- };
877
- required: string[];
878
- additionalProperties: boolean;
879
- };
880
- };
881
- className: {
882
- type: string;
883
- description: string;
884
- };
885
- type: {
886
- type: string;
887
- const: string;
888
- };
889
- disableFreeText: {
890
- type: string;
891
- };
892
- audioUrl?: undefined;
893
- title?: undefined;
894
- subtitle?: undefined;
895
- imageUrl?: undefined;
896
- actions?: undefined;
897
- items?: undefined;
898
- fileUrl?: undefined;
899
- latitude?: undefined;
900
- longitude?: undefined;
901
- address?: undefined;
902
- markdown?: undefined;
903
- videoUrl?: undefined;
904
- };
905
- required: string[];
906
- additionalProperties: boolean;
907
- } | {
908
- type: string;
909
- properties: {
910
- text: {
911
- type: string;
912
- minLength?: undefined;
913
- };
914
- options: {
915
- type: string;
916
- items: {
917
- type: string;
918
- properties: {
919
- label: {
920
- type: string;
921
- minLength: number;
922
- };
923
- value: {
924
- type: string;
925
- minLength: number;
926
- };
927
- };
928
- required: string[];
929
- additionalProperties: boolean;
930
- };
931
- };
932
- className: {
933
- type: string;
934
- description: string;
935
- };
936
- type: {
937
- type: string;
938
- const: string;
939
- };
940
- audioUrl?: undefined;
941
- title?: undefined;
942
- subtitle?: undefined;
943
- imageUrl?: undefined;
944
- actions?: undefined;
945
- items?: undefined;
946
- disableFreeText?: undefined;
947
- fileUrl?: undefined;
948
- latitude?: undefined;
949
- longitude?: undefined;
950
- address?: undefined;
951
- markdown?: undefined;
952
- videoUrl?: undefined;
953
- };
954
- required: string[];
955
- additionalProperties: boolean;
956
- } | {
957
- type: string;
958
- properties: {
959
- fileUrl: {
960
- type: string;
961
- minLength: number;
962
- };
963
- title: {
964
- type: string;
965
- minLength: number;
966
- };
967
- className: {
968
- type: string;
969
- description: string;
970
- };
971
- type: {
972
- type: string;
973
- const: string;
974
- };
975
- audioUrl?: undefined;
976
- subtitle?: undefined;
977
- imageUrl?: undefined;
978
- actions?: undefined;
979
- items?: undefined;
980
- text?: undefined;
981
- options?: undefined;
982
- disableFreeText?: undefined;
983
- latitude?: undefined;
984
- longitude?: undefined;
985
- address?: undefined;
986
- markdown?: undefined;
987
- videoUrl?: undefined;
988
- };
989
- required: string[];
990
- additionalProperties: boolean;
991
- } | {
992
- type: string;
993
- properties: {
994
- imageUrl: {
995
- type: string;
996
- minLength: number;
997
- };
998
- className: {
999
- type: string;
1000
- description: string;
1001
- };
1002
- type: {
1003
- type: string;
1004
- const: string;
1005
- };
1006
- audioUrl?: undefined;
1007
- title?: undefined;
1008
- subtitle?: undefined;
1009
- actions?: undefined;
1010
- items?: undefined;
1011
- text?: undefined;
1012
- options?: undefined;
1013
- disableFreeText?: undefined;
1014
- fileUrl?: undefined;
1015
- latitude?: undefined;
1016
- longitude?: undefined;
1017
- address?: undefined;
1018
- markdown?: undefined;
1019
- videoUrl?: undefined;
1020
- };
1021
- required: string[];
1022
- additionalProperties: boolean;
1023
- } | {
1024
- type: string;
1025
- properties: {
1026
- latitude: {
1027
- type: string;
1028
- };
1029
- longitude: {
1030
- type: string;
1031
- };
1032
- address: {
1033
- type: string;
1034
- };
1035
- title: {
1036
- type: string;
1037
- minLength?: undefined;
1038
- };
1039
- className: {
1040
- type: string;
1041
- description: string;
1042
- };
1043
- type: {
1044
- type: string;
1045
- const: string;
1046
- };
1047
- audioUrl?: undefined;
1048
- subtitle?: undefined;
1049
- imageUrl?: undefined;
1050
- actions?: undefined;
1051
- items?: undefined;
1052
- text?: undefined;
1053
- options?: undefined;
1054
- disableFreeText?: undefined;
1055
- fileUrl?: undefined;
1056
- markdown?: undefined;
1057
- videoUrl?: undefined;
1058
- };
1059
- required: string[];
1060
- additionalProperties: boolean;
1061
- } | {
1062
- type: string;
1063
- properties: {
1064
- markdown: {
1065
- type: string;
1066
- minLength: number;
1067
- };
1068
- className: {
1069
- type: string;
1070
- description: string;
1071
- };
1072
- type: {
1073
- type: string;
1074
- const: string;
1075
- };
1076
- audioUrl?: undefined;
1077
- title?: undefined;
1078
- subtitle?: undefined;
1079
- imageUrl?: undefined;
1080
- actions?: undefined;
1081
- items?: undefined;
1082
- text?: undefined;
1083
- options?: undefined;
1084
- disableFreeText?: undefined;
1085
- fileUrl?: undefined;
1086
- latitude?: undefined;
1087
- longitude?: undefined;
1088
- address?: undefined;
1089
- videoUrl?: undefined;
1090
- };
1091
- required: string[];
1092
- additionalProperties: boolean;
1093
- } | {
1094
- type: string;
1095
- properties: {
1096
- text: {
1097
- type: string;
1098
- minLength: number;
1099
- };
1100
- className: {
1101
- type: string;
1102
- description: string;
1103
- };
1104
- type: {
1105
- type: string;
1106
- const: string;
1107
- };
1108
- audioUrl?: undefined;
1109
- title?: undefined;
1110
- subtitle?: undefined;
1111
- imageUrl?: undefined;
1112
- actions?: undefined;
1113
- items?: undefined;
1114
- options?: undefined;
1115
- disableFreeText?: undefined;
1116
- fileUrl?: undefined;
1117
- latitude?: undefined;
1118
- longitude?: undefined;
1119
- address?: undefined;
1120
- markdown?: undefined;
1121
- videoUrl?: undefined;
1122
- };
1123
- required: string[];
1124
- additionalProperties: boolean;
1125
- } | {
1126
- type: string;
1127
- properties: {
1128
- videoUrl: {
1129
- type: string;
1130
- minLength: number;
1131
- };
1132
- className: {
1133
- type: string;
1134
- description: string;
1135
- };
1136
- type: {
1137
- type: string;
1138
- const: string;
1139
- };
1140
- audioUrl?: undefined;
1141
- title?: undefined;
1142
- subtitle?: undefined;
1143
- imageUrl?: undefined;
1144
- actions?: undefined;
1145
- items?: undefined;
1146
- text?: undefined;
1147
- options?: undefined;
1148
- disableFreeText?: undefined;
1149
- fileUrl?: undefined;
1150
- latitude?: undefined;
1151
- longitude?: undefined;
1152
- address?: undefined;
1153
- markdown?: undefined;
1154
- };
1155
- required: string[];
1156
- additionalProperties: boolean;
1157
- })[];
1158
- };
1159
- userId: {
1160
- type: string;
1161
- };
1162
- conversationId: {
1163
- type: string;
1164
- };
1165
- };
1166
- required: string[];
1167
- additionalProperties: boolean;
1168
- };
1169
- };
1170
- required: string[];
1171
- additionalProperties: boolean;
1172
- $schema: string;
1173
- };
1174
- webchatVisibility: {
1175
- type: string;
1176
- properties: {
1177
- type: {
1178
- type: string;
1179
- const: string;
1180
- };
1181
- data: {
1182
- type: string;
1183
- properties: {
1184
- visibility: {
1185
- type: string;
1186
- enum: string[];
1187
- };
1188
- };
1189
- required: string[];
1190
- additionalProperties: boolean;
1191
- };
1192
- };
1193
- required: string[];
1194
- additionalProperties: boolean;
1195
- $schema: string;
1196
- };
1197
- webchatConfig: {
1198
- type: string;
1199
- properties: {
1200
- type: {
1201
- type: string;
1202
- const: string;
1203
- };
1204
- data: {
1205
- type: string;
1206
- properties: {
1207
- config: {
1208
- type: string;
1209
- additionalProperties: {};
1210
- };
1211
- };
1212
- required: string[];
1213
- additionalProperties: boolean;
1214
- };
1215
- };
1216
- required: string[];
1217
- additionalProperties: boolean;
1218
- $schema: string;
1219
- };
1220
- custom: {
1221
- type: string;
1222
- properties: {
1223
- type: {
1224
- type: string;
1225
- const: string;
1226
- };
1227
- data: {
1228
- type: string;
1229
- properties: {
1230
- event: {
1231
- type: string;
1232
- additionalProperties: {};
1233
- };
1234
- };
1235
- required: string[];
1236
- additionalProperties: boolean;
1237
- };
1238
- };
1239
- required: string[];
1240
- additionalProperties: boolean;
1241
- $schema: string;
1242
- };
1243
- };
1244
679
  export type Types = {
1245
680
  messageCreated: MessageCreated;
1246
681
  webchatVisibility: WebchatVisibility;