@botpress/webchat 2.3.1 → 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/signals/index.d.ts +34 -34
- package/dist/gen/signals/messageCreated.z.d.ts +34 -34
- package/dist/index.js +67478 -25250
- 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/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
|
@@ -22,22 +22,22 @@ declare const _default: z.ZodObject<{
|
|
|
22
22
|
label: z.ZodString;
|
|
23
23
|
value: z.ZodString;
|
|
24
24
|
}, "strip", z.ZodTypeAny, {
|
|
25
|
-
value: string;
|
|
26
25
|
action: "postback" | "url" | "say";
|
|
27
26
|
label: string;
|
|
28
|
-
}, {
|
|
29
27
|
value: string;
|
|
28
|
+
}, {
|
|
30
29
|
action: "postback" | "url" | "say";
|
|
31
30
|
label: string;
|
|
31
|
+
value: string;
|
|
32
32
|
}>, "many">;
|
|
33
33
|
type: z.ZodLiteral<"card">;
|
|
34
34
|
}, "strip", z.ZodTypeAny, {
|
|
35
35
|
type: "card";
|
|
36
36
|
title: string;
|
|
37
37
|
actions: {
|
|
38
|
-
value: string;
|
|
39
38
|
action: "postback" | "url" | "say";
|
|
40
39
|
label: string;
|
|
40
|
+
value: string;
|
|
41
41
|
}[];
|
|
42
42
|
subtitle?: string | undefined;
|
|
43
43
|
imageUrl?: string | undefined;
|
|
@@ -45,9 +45,9 @@ declare const _default: z.ZodObject<{
|
|
|
45
45
|
type: "card";
|
|
46
46
|
title: string;
|
|
47
47
|
actions: {
|
|
48
|
-
value: string;
|
|
49
48
|
action: "postback" | "url" | "say";
|
|
50
49
|
label: string;
|
|
50
|
+
value: string;
|
|
51
51
|
}[];
|
|
52
52
|
subtitle?: string | undefined;
|
|
53
53
|
imageUrl?: string | undefined;
|
|
@@ -61,29 +61,29 @@ declare const _default: z.ZodObject<{
|
|
|
61
61
|
label: z.ZodString;
|
|
62
62
|
value: z.ZodString;
|
|
63
63
|
}, "strip", z.ZodTypeAny, {
|
|
64
|
-
value: string;
|
|
65
64
|
action: "postback" | "url" | "say";
|
|
66
65
|
label: string;
|
|
67
|
-
}, {
|
|
68
66
|
value: string;
|
|
67
|
+
}, {
|
|
69
68
|
action: "postback" | "url" | "say";
|
|
70
69
|
label: string;
|
|
70
|
+
value: string;
|
|
71
71
|
}>, "many">;
|
|
72
72
|
}, "strip", z.ZodTypeAny, {
|
|
73
73
|
title: string;
|
|
74
74
|
actions: {
|
|
75
|
-
value: string;
|
|
76
75
|
action: "postback" | "url" | "say";
|
|
77
76
|
label: string;
|
|
77
|
+
value: string;
|
|
78
78
|
}[];
|
|
79
79
|
subtitle?: string | undefined;
|
|
80
80
|
imageUrl?: string | undefined;
|
|
81
81
|
}, {
|
|
82
82
|
title: string;
|
|
83
83
|
actions: {
|
|
84
|
-
value: string;
|
|
85
84
|
action: "postback" | "url" | "say";
|
|
86
85
|
label: string;
|
|
86
|
+
value: string;
|
|
87
87
|
}[];
|
|
88
88
|
subtitle?: string | undefined;
|
|
89
89
|
imageUrl?: string | undefined;
|
|
@@ -94,9 +94,9 @@ declare const _default: z.ZodObject<{
|
|
|
94
94
|
items: {
|
|
95
95
|
title: string;
|
|
96
96
|
actions: {
|
|
97
|
-
value: string;
|
|
98
97
|
action: "postback" | "url" | "say";
|
|
99
98
|
label: string;
|
|
99
|
+
value: string;
|
|
100
100
|
}[];
|
|
101
101
|
subtitle?: string | undefined;
|
|
102
102
|
imageUrl?: string | undefined;
|
|
@@ -106,9 +106,9 @@ declare const _default: z.ZodObject<{
|
|
|
106
106
|
items: {
|
|
107
107
|
title: string;
|
|
108
108
|
actions: {
|
|
109
|
-
value: string;
|
|
110
109
|
action: "postback" | "url" | "say";
|
|
111
110
|
label: string;
|
|
111
|
+
value: string;
|
|
112
112
|
}[];
|
|
113
113
|
subtitle?: string | undefined;
|
|
114
114
|
imageUrl?: string | undefined;
|
|
@@ -119,11 +119,11 @@ declare const _default: z.ZodObject<{
|
|
|
119
119
|
label: z.ZodString;
|
|
120
120
|
value: z.ZodString;
|
|
121
121
|
}, "strip", z.ZodTypeAny, {
|
|
122
|
-
value: string;
|
|
123
122
|
label: string;
|
|
124
|
-
}, {
|
|
125
123
|
value: string;
|
|
124
|
+
}, {
|
|
126
125
|
label: string;
|
|
126
|
+
value: string;
|
|
127
127
|
}>, "many">;
|
|
128
128
|
type: z.ZodLiteral<"choice">;
|
|
129
129
|
disableFreeText: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -131,16 +131,16 @@ declare const _default: z.ZodObject<{
|
|
|
131
131
|
type: "choice";
|
|
132
132
|
text: string;
|
|
133
133
|
options: {
|
|
134
|
-
value: string;
|
|
135
134
|
label: string;
|
|
135
|
+
value: string;
|
|
136
136
|
}[];
|
|
137
137
|
disableFreeText?: boolean | undefined;
|
|
138
138
|
}, {
|
|
139
139
|
type: "choice";
|
|
140
140
|
text: string;
|
|
141
141
|
options: {
|
|
142
|
-
value: string;
|
|
143
142
|
label: string;
|
|
143
|
+
value: string;
|
|
144
144
|
}[];
|
|
145
145
|
disableFreeText?: boolean | undefined;
|
|
146
146
|
}>, z.ZodObject<{
|
|
@@ -149,26 +149,26 @@ declare const _default: z.ZodObject<{
|
|
|
149
149
|
label: z.ZodString;
|
|
150
150
|
value: z.ZodString;
|
|
151
151
|
}, "strip", z.ZodTypeAny, {
|
|
152
|
-
value: string;
|
|
153
152
|
label: string;
|
|
154
|
-
}, {
|
|
155
153
|
value: string;
|
|
154
|
+
}, {
|
|
156
155
|
label: string;
|
|
156
|
+
value: string;
|
|
157
157
|
}>, "many">;
|
|
158
158
|
type: z.ZodLiteral<"dropdown">;
|
|
159
159
|
}, "strip", z.ZodTypeAny, {
|
|
160
160
|
type: "dropdown";
|
|
161
161
|
text: string;
|
|
162
162
|
options: {
|
|
163
|
-
value: string;
|
|
164
163
|
label: string;
|
|
164
|
+
value: string;
|
|
165
165
|
}[];
|
|
166
166
|
}, {
|
|
167
167
|
type: "dropdown";
|
|
168
168
|
text: string;
|
|
169
169
|
options: {
|
|
170
|
-
value: string;
|
|
171
170
|
label: string;
|
|
171
|
+
value: string;
|
|
172
172
|
}[];
|
|
173
173
|
}>, z.ZodObject<{
|
|
174
174
|
fileUrl: z.ZodString;
|
|
@@ -487,9 +487,9 @@ declare const _default: z.ZodObject<{
|
|
|
487
487
|
type: "card";
|
|
488
488
|
title: string;
|
|
489
489
|
actions: {
|
|
490
|
-
value: string;
|
|
491
490
|
action: "postback" | "url" | "say";
|
|
492
491
|
label: string;
|
|
492
|
+
value: string;
|
|
493
493
|
}[];
|
|
494
494
|
subtitle?: string | undefined;
|
|
495
495
|
imageUrl?: string | undefined;
|
|
@@ -498,9 +498,9 @@ declare const _default: z.ZodObject<{
|
|
|
498
498
|
items: {
|
|
499
499
|
title: string;
|
|
500
500
|
actions: {
|
|
501
|
-
value: string;
|
|
502
501
|
action: "postback" | "url" | "say";
|
|
503
502
|
label: string;
|
|
503
|
+
value: string;
|
|
504
504
|
}[];
|
|
505
505
|
subtitle?: string | undefined;
|
|
506
506
|
imageUrl?: string | undefined;
|
|
@@ -509,16 +509,16 @@ declare const _default: z.ZodObject<{
|
|
|
509
509
|
type: "choice";
|
|
510
510
|
text: string;
|
|
511
511
|
options: {
|
|
512
|
-
value: string;
|
|
513
512
|
label: string;
|
|
513
|
+
value: string;
|
|
514
514
|
}[];
|
|
515
515
|
disableFreeText?: boolean | undefined;
|
|
516
516
|
} | {
|
|
517
517
|
type: "dropdown";
|
|
518
518
|
text: string;
|
|
519
519
|
options: {
|
|
520
|
-
value: string;
|
|
521
520
|
label: string;
|
|
521
|
+
value: string;
|
|
522
522
|
}[];
|
|
523
523
|
} | {
|
|
524
524
|
type: "file";
|
|
@@ -597,9 +597,9 @@ declare const _default: z.ZodObject<{
|
|
|
597
597
|
type: "card";
|
|
598
598
|
title: string;
|
|
599
599
|
actions: {
|
|
600
|
-
value: string;
|
|
601
600
|
action: "postback" | "url" | "say";
|
|
602
601
|
label: string;
|
|
602
|
+
value: string;
|
|
603
603
|
}[];
|
|
604
604
|
subtitle?: string | undefined;
|
|
605
605
|
imageUrl?: string | undefined;
|
|
@@ -608,9 +608,9 @@ declare const _default: z.ZodObject<{
|
|
|
608
608
|
items: {
|
|
609
609
|
title: string;
|
|
610
610
|
actions: {
|
|
611
|
-
value: string;
|
|
612
611
|
action: "postback" | "url" | "say";
|
|
613
612
|
label: string;
|
|
613
|
+
value: string;
|
|
614
614
|
}[];
|
|
615
615
|
subtitle?: string | undefined;
|
|
616
616
|
imageUrl?: string | undefined;
|
|
@@ -619,16 +619,16 @@ declare const _default: z.ZodObject<{
|
|
|
619
619
|
type: "choice";
|
|
620
620
|
text: string;
|
|
621
621
|
options: {
|
|
622
|
-
value: string;
|
|
623
622
|
label: string;
|
|
623
|
+
value: string;
|
|
624
624
|
}[];
|
|
625
625
|
disableFreeText?: boolean | undefined;
|
|
626
626
|
} | {
|
|
627
627
|
type: "dropdown";
|
|
628
628
|
text: string;
|
|
629
629
|
options: {
|
|
630
|
-
value: string;
|
|
631
630
|
label: string;
|
|
631
|
+
value: string;
|
|
632
632
|
}[];
|
|
633
633
|
} | {
|
|
634
634
|
type: "file";
|
|
@@ -710,9 +710,9 @@ declare const _default: z.ZodObject<{
|
|
|
710
710
|
type: "card";
|
|
711
711
|
title: string;
|
|
712
712
|
actions: {
|
|
713
|
-
value: string;
|
|
714
713
|
action: "postback" | "url" | "say";
|
|
715
714
|
label: string;
|
|
715
|
+
value: string;
|
|
716
716
|
}[];
|
|
717
717
|
subtitle?: string | undefined;
|
|
718
718
|
imageUrl?: string | undefined;
|
|
@@ -721,9 +721,9 @@ declare const _default: z.ZodObject<{
|
|
|
721
721
|
items: {
|
|
722
722
|
title: string;
|
|
723
723
|
actions: {
|
|
724
|
-
value: string;
|
|
725
724
|
action: "postback" | "url" | "say";
|
|
726
725
|
label: string;
|
|
726
|
+
value: string;
|
|
727
727
|
}[];
|
|
728
728
|
subtitle?: string | undefined;
|
|
729
729
|
imageUrl?: string | undefined;
|
|
@@ -732,16 +732,16 @@ declare const _default: z.ZodObject<{
|
|
|
732
732
|
type: "choice";
|
|
733
733
|
text: string;
|
|
734
734
|
options: {
|
|
735
|
-
value: string;
|
|
736
735
|
label: string;
|
|
736
|
+
value: string;
|
|
737
737
|
}[];
|
|
738
738
|
disableFreeText?: boolean | undefined;
|
|
739
739
|
} | {
|
|
740
740
|
type: "dropdown";
|
|
741
741
|
text: string;
|
|
742
742
|
options: {
|
|
743
|
-
value: string;
|
|
744
743
|
label: string;
|
|
744
|
+
value: string;
|
|
745
745
|
}[];
|
|
746
746
|
} | {
|
|
747
747
|
type: "file";
|
|
@@ -823,9 +823,9 @@ declare const _default: z.ZodObject<{
|
|
|
823
823
|
type: "card";
|
|
824
824
|
title: string;
|
|
825
825
|
actions: {
|
|
826
|
-
value: string;
|
|
827
826
|
action: "postback" | "url" | "say";
|
|
828
827
|
label: string;
|
|
828
|
+
value: string;
|
|
829
829
|
}[];
|
|
830
830
|
subtitle?: string | undefined;
|
|
831
831
|
imageUrl?: string | undefined;
|
|
@@ -834,9 +834,9 @@ declare const _default: z.ZodObject<{
|
|
|
834
834
|
items: {
|
|
835
835
|
title: string;
|
|
836
836
|
actions: {
|
|
837
|
-
value: string;
|
|
838
837
|
action: "postback" | "url" | "say";
|
|
839
838
|
label: string;
|
|
839
|
+
value: string;
|
|
840
840
|
}[];
|
|
841
841
|
subtitle?: string | undefined;
|
|
842
842
|
imageUrl?: string | undefined;
|
|
@@ -845,16 +845,16 @@ declare const _default: z.ZodObject<{
|
|
|
845
845
|
type: "choice";
|
|
846
846
|
text: string;
|
|
847
847
|
options: {
|
|
848
|
-
value: string;
|
|
849
848
|
label: string;
|
|
849
|
+
value: string;
|
|
850
850
|
}[];
|
|
851
851
|
disableFreeText?: boolean | undefined;
|
|
852
852
|
} | {
|
|
853
853
|
type: "dropdown";
|
|
854
854
|
text: string;
|
|
855
855
|
options: {
|
|
856
|
-
value: string;
|
|
857
856
|
label: string;
|
|
857
|
+
value: string;
|
|
858
858
|
}[];
|
|
859
859
|
} | {
|
|
860
860
|
type: "file";
|