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