@botpress/webchat 1.1.1 → 1.3.0

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 (99) hide show
  1. package/dist/client/MessagingClient/client.d.ts +8 -19
  2. package/dist/client/{ChatClient → PushpinClient}/index.d.ts +7 -5
  3. package/dist/client/PushpinClient/inner-client/event-emitter.d.ts +10 -0
  4. package/dist/client/PushpinClient/inner-client/eventsource.d.ts +22 -0
  5. package/dist/client/PushpinClient/inner-client/index.d.ts +41 -0
  6. package/dist/client/PushpinClient/inner-client/signal-listener.d.ts +47 -0
  7. package/dist/client/{ChatClient → PushpinClient}/state-machine.d.ts +13 -13
  8. package/dist/client/index.d.ts +1 -1
  9. package/dist/client/types.d.ts +8 -2
  10. package/dist/components/Avatar.d.ts +2 -3
  11. package/dist/components/Block.d.ts +3 -2
  12. package/dist/components/CloseWindow.d.ts +5 -0
  13. package/dist/components/Composer.d.ts +2 -2
  14. package/dist/components/Header.d.ts +1 -1
  15. package/dist/components/LoadingIndicator.d.ts +1 -1
  16. package/dist/components/MessageList.d.ts +1 -1
  17. package/dist/components/Modal.d.ts +2 -2
  18. package/dist/components/RestartConversation.d.ts +1 -1
  19. package/dist/components/Webchat.d.ts +1 -1
  20. package/dist/components/renderers/Audio.d.ts +1 -1
  21. package/dist/components/renderers/Button.d.ts +1 -1
  22. package/dist/components/renderers/Carousel.d.ts +1 -1
  23. package/dist/components/renderers/Dropdown.d.ts +1 -1
  24. package/dist/components/renderers/File.d.ts +1 -1
  25. package/dist/components/renderers/Image.d.ts +1 -1
  26. package/dist/components/renderers/Location.d.ts +1 -1
  27. package/dist/components/renderers/Text.d.ts +1 -1
  28. package/dist/components/renderers/Video.d.ts +1 -1
  29. package/dist/contexts/WebchatContext.d.ts +6 -6
  30. package/dist/gen/client/api.d.ts +2012 -0
  31. package/dist/gen/client/base.d.ts +54 -0
  32. package/dist/gen/client/client.d.ts +61 -0
  33. package/dist/gen/client/common.d.ts +65 -0
  34. package/dist/gen/client/configuration.d.ts +83 -0
  35. package/dist/gen/client/errors.d.ts +204 -0
  36. package/dist/gen/client/index.d.ts +13 -0
  37. package/dist/gen/models/conversation.j.d.ts +20 -0
  38. package/dist/gen/models/conversation.t.d.ts +10 -0
  39. package/dist/gen/models/conversation.z.d.ts +15 -0
  40. package/dist/gen/models/index.d.ts +1014 -0
  41. package/dist/gen/models/message.j.d.ts +490 -0
  42. package/dist/gen/models/message.t.d.ts +122 -0
  43. package/dist/gen/models/message.z.d.ts +439 -0
  44. package/dist/gen/models/user.j.d.ts +26 -0
  45. package/dist/gen/models/user.t.d.ts +12 -0
  46. package/dist/gen/models/user.z.d.ts +21 -0
  47. package/dist/gen/signals/customSignal.j.d.ts +24 -0
  48. package/dist/gen/signals/customSignal.t.d.ts +13 -0
  49. package/dist/gen/signals/customSignal.z.d.ts +22 -0
  50. package/dist/gen/signals/index.d.ts +1249 -0
  51. package/dist/gen/signals/messageCreatedSignal.j.d.ts +501 -0
  52. package/dist/gen/signals/messageCreatedSignal.t.d.ts +125 -0
  53. package/dist/gen/signals/messageCreatedSignal.z.d.ts +608 -0
  54. package/dist/gen/signals/webchatConfigSignal.j.d.ts +24 -0
  55. package/dist/gen/signals/webchatConfigSignal.t.d.ts +13 -0
  56. package/dist/gen/signals/webchatConfigSignal.z.d.ts +22 -0
  57. package/dist/gen/signals/webchatVisibilitySignal.j.d.ts +24 -0
  58. package/dist/gen/signals/webchatVisibilitySignal.t.d.ts +11 -0
  59. package/dist/gen/signals/webchatVisibilitySignal.z.d.ts +22 -0
  60. package/dist/get-client.d.ts +8 -0
  61. package/dist/hooks/useClient.d.ts +3 -3
  62. package/dist/hooks/useWebchatStore.d.ts +3 -0
  63. package/dist/index.d.ts +3 -4
  64. package/dist/index.js +31976 -85703
  65. package/dist/index.umd.cjs +117 -187
  66. package/dist/providers/ModalProvider.d.ts +1 -1
  67. package/dist/providers/WebchatProvider.d.ts +6 -5
  68. package/dist/schemas/configuration.d.ts +117 -0
  69. package/dist/schemas/index.d.ts +2 -0
  70. package/dist/schemas/init.d.ts +3844 -0
  71. package/dist/schemas/theme.d.ts +231 -232
  72. package/dist/types/block-type.d.ts +3 -6
  73. package/dist/types/configuration.d.ts +4 -16
  74. package/dist/types/index.d.ts +2 -0
  75. package/dist/types/init.d.ts +6 -0
  76. package/dist/types/theme.d.ts +7 -0
  77. package/dist/utils/index.d.ts +0 -2
  78. package/openapi/index.ts +31 -0
  79. package/openapi/package.json +5 -0
  80. package/openapi/readme.md +1 -0
  81. package/package.json +18 -38
  82. package/dist/App.d.ts +0 -11
  83. package/dist/client/MessagingClient/adapters/Trigger.d.ts +0 -33
  84. package/dist/components/dev-tools/DevTools.d.ts +0 -1
  85. package/dist/components/dev-tools/configuration.d.ts +0 -2
  86. package/dist/components/dev-tools/helpers.d.ts +0 -5
  87. package/dist/main.d.ts +0 -0
  88. package/dist/options.d.ts +0 -11
  89. package/dist/themes/base.d.ts +0 -3
  90. package/dist/themes/baseColors.d.ts +0 -736
  91. package/dist/themes/dawn.d.ts +0 -4
  92. package/dist/themes/eggplant.d.ts +0 -4
  93. package/dist/themes/index.d.ts +0 -3
  94. package/dist/themes/prism.d.ts +0 -4
  95. package/dist/themes/themeBuilder.d.ts +0 -27
  96. package/dist/twind.config.d.ts +0 -9
  97. package/dist/twind.d.ts +0 -16
  98. package/dist/utils/mergeThemes.d.ts +0 -2
  99. package/dist/utils/withBaseTheme.d.ts +0 -384
@@ -0,0 +1,1249 @@
1
+ import type { MessageCreatedSignal } from './messageCreatedSignal.t';
2
+ import type { WebchatVisibilitySignal } from './webchatVisibilitySignal.t';
3
+ import type { WebchatConfigSignal } from './webchatConfigSignal.t';
4
+ import type { CustomSignal } from './customSignal.t';
5
+ export declare const zod: {
6
+ messageCreatedSignal: import("zod").ZodObject<{
7
+ type: import("zod").ZodLiteral<"message_created">;
8
+ data: import("zod").ZodObject<{
9
+ id: import("zod").ZodString;
10
+ createdAt: import("zod").ZodString;
11
+ payload: import("zod").ZodUnion<[import("zod").ZodObject<{
12
+ audioUrl: import("zod").ZodString;
13
+ className: import("zod").ZodOptional<import("zod").ZodString>;
14
+ type: import("zod").ZodLiteral<"audio">;
15
+ }, "strip", import("zod").ZodTypeAny, {
16
+ type: "audio";
17
+ audioUrl: string;
18
+ className?: string | undefined;
19
+ }, {
20
+ type: "audio";
21
+ audioUrl: string;
22
+ className?: string | undefined;
23
+ }>, import("zod").ZodObject<{
24
+ title: import("zod").ZodString;
25
+ subtitle: import("zod").ZodOptional<import("zod").ZodString>;
26
+ imageUrl: import("zod").ZodOptional<import("zod").ZodString>;
27
+ actions: import("zod").ZodArray<import("zod").ZodObject<{
28
+ action: import("zod").ZodEnum<["postback", "url", "say"]>;
29
+ label: import("zod").ZodString;
30
+ value: import("zod").ZodString;
31
+ }, "strip", import("zod").ZodTypeAny, {
32
+ value: string;
33
+ action: "url" | "postback" | "say";
34
+ label: string;
35
+ }, {
36
+ value: string;
37
+ action: "url" | "postback" | "say";
38
+ label: string;
39
+ }>, "many">;
40
+ type: import("zod").ZodLiteral<"card">;
41
+ className: import("zod").ZodOptional<import("zod").ZodString>;
42
+ }, "strip", import("zod").ZodTypeAny, {
43
+ title: string;
44
+ type: "card";
45
+ actions: {
46
+ value: string;
47
+ action: "url" | "postback" | "say";
48
+ label: string;
49
+ }[];
50
+ subtitle?: string | undefined;
51
+ imageUrl?: string | undefined;
52
+ className?: string | undefined;
53
+ }, {
54
+ title: string;
55
+ type: "card";
56
+ actions: {
57
+ value: string;
58
+ action: "url" | "postback" | "say";
59
+ label: string;
60
+ }[];
61
+ subtitle?: string | undefined;
62
+ imageUrl?: string | undefined;
63
+ className?: string | undefined;
64
+ }>, import("zod").ZodObject<{
65
+ items: import("zod").ZodArray<import("zod").ZodObject<{
66
+ title: import("zod").ZodString;
67
+ subtitle: import("zod").ZodOptional<import("zod").ZodString>;
68
+ imageUrl: import("zod").ZodOptional<import("zod").ZodString>;
69
+ actions: import("zod").ZodArray<import("zod").ZodObject<{
70
+ action: import("zod").ZodEnum<["postback", "url", "say"]>;
71
+ label: import("zod").ZodString;
72
+ value: import("zod").ZodString;
73
+ }, "strip", import("zod").ZodTypeAny, {
74
+ value: string;
75
+ action: "url" | "postback" | "say";
76
+ label: string;
77
+ }, {
78
+ value: string;
79
+ action: "url" | "postback" | "say";
80
+ label: string;
81
+ }>, "many">;
82
+ className: import("zod").ZodOptional<import("zod").ZodString>;
83
+ }, "strip", import("zod").ZodTypeAny, {
84
+ title: string;
85
+ actions: {
86
+ value: string;
87
+ action: "url" | "postback" | "say";
88
+ label: string;
89
+ }[];
90
+ subtitle?: string | undefined;
91
+ imageUrl?: string | undefined;
92
+ className?: string | undefined;
93
+ }, {
94
+ title: string;
95
+ actions: {
96
+ value: string;
97
+ action: "url" | "postback" | "say";
98
+ label: string;
99
+ }[];
100
+ subtitle?: string | undefined;
101
+ imageUrl?: string | undefined;
102
+ className?: string | undefined;
103
+ }>, "many">;
104
+ className: import("zod").ZodOptional<import("zod").ZodString>;
105
+ type: import("zod").ZodLiteral<"carousel">;
106
+ }, "strip", import("zod").ZodTypeAny, {
107
+ type: "carousel";
108
+ items: {
109
+ title: string;
110
+ actions: {
111
+ value: string;
112
+ action: "url" | "postback" | "say";
113
+ label: string;
114
+ }[];
115
+ subtitle?: string | undefined;
116
+ imageUrl?: string | undefined;
117
+ className?: string | undefined;
118
+ }[];
119
+ className?: string | undefined;
120
+ }, {
121
+ type: "carousel";
122
+ items: {
123
+ title: string;
124
+ actions: {
125
+ value: string;
126
+ action: "url" | "postback" | "say";
127
+ label: string;
128
+ }[];
129
+ subtitle?: string | undefined;
130
+ imageUrl?: string | undefined;
131
+ className?: string | undefined;
132
+ }[];
133
+ className?: string | undefined;
134
+ }>, import("zod").ZodObject<{
135
+ text: import("zod").ZodString;
136
+ options: import("zod").ZodArray<import("zod").ZodObject<{
137
+ label: import("zod").ZodString;
138
+ value: import("zod").ZodString;
139
+ }, "strip", import("zod").ZodTypeAny, {
140
+ value: string;
141
+ label: string;
142
+ }, {
143
+ value: string;
144
+ label: string;
145
+ }>, "many">;
146
+ className: import("zod").ZodOptional<import("zod").ZodString>;
147
+ type: import("zod").ZodLiteral<"choice">;
148
+ disableFreeText: import("zod").ZodOptional<import("zod").ZodBoolean>;
149
+ }, "strip", import("zod").ZodTypeAny, {
150
+ options: {
151
+ value: string;
152
+ label: string;
153
+ }[];
154
+ type: "choice";
155
+ text: string;
156
+ className?: string | undefined;
157
+ disableFreeText?: boolean | undefined;
158
+ }, {
159
+ options: {
160
+ value: string;
161
+ label: string;
162
+ }[];
163
+ type: "choice";
164
+ text: string;
165
+ className?: string | undefined;
166
+ disableFreeText?: boolean | undefined;
167
+ }>, import("zod").ZodObject<{
168
+ text: import("zod").ZodString;
169
+ options: import("zod").ZodArray<import("zod").ZodObject<{
170
+ label: import("zod").ZodString;
171
+ value: import("zod").ZodString;
172
+ }, "strip", import("zod").ZodTypeAny, {
173
+ value: string;
174
+ label: string;
175
+ }, {
176
+ value: string;
177
+ label: string;
178
+ }>, "many">;
179
+ className: import("zod").ZodOptional<import("zod").ZodString>;
180
+ type: import("zod").ZodLiteral<"dropdown">;
181
+ }, "strip", import("zod").ZodTypeAny, {
182
+ options: {
183
+ value: string;
184
+ label: string;
185
+ }[];
186
+ type: "dropdown";
187
+ text: string;
188
+ className?: string | undefined;
189
+ }, {
190
+ options: {
191
+ value: string;
192
+ label: string;
193
+ }[];
194
+ type: "dropdown";
195
+ text: string;
196
+ className?: string | undefined;
197
+ }>, import("zod").ZodObject<{
198
+ fileUrl: import("zod").ZodString;
199
+ title: import("zod").ZodOptional<import("zod").ZodString>;
200
+ className: import("zod").ZodOptional<import("zod").ZodString>;
201
+ type: import("zod").ZodLiteral<"file">;
202
+ }, "strip", import("zod").ZodTypeAny, {
203
+ type: "file";
204
+ fileUrl: string;
205
+ title?: string | undefined;
206
+ className?: string | undefined;
207
+ }, {
208
+ type: "file";
209
+ fileUrl: string;
210
+ title?: string | undefined;
211
+ className?: string | undefined;
212
+ }>, import("zod").ZodObject<{
213
+ imageUrl: import("zod").ZodString;
214
+ className: import("zod").ZodOptional<import("zod").ZodString>;
215
+ type: import("zod").ZodLiteral<"image">;
216
+ }, "strip", import("zod").ZodTypeAny, {
217
+ type: "image";
218
+ imageUrl: string;
219
+ className?: string | undefined;
220
+ }, {
221
+ type: "image";
222
+ imageUrl: string;
223
+ className?: string | undefined;
224
+ }>, import("zod").ZodObject<{
225
+ latitude: import("zod").ZodNumber;
226
+ longitude: import("zod").ZodNumber;
227
+ address: import("zod").ZodOptional<import("zod").ZodString>;
228
+ title: import("zod").ZodOptional<import("zod").ZodString>;
229
+ className: import("zod").ZodOptional<import("zod").ZodString>;
230
+ type: import("zod").ZodLiteral<"location">;
231
+ }, "strip", import("zod").ZodTypeAny, {
232
+ type: "location";
233
+ latitude: number;
234
+ longitude: number;
235
+ address?: string | undefined;
236
+ title?: string | undefined;
237
+ className?: string | undefined;
238
+ }, {
239
+ type: "location";
240
+ latitude: number;
241
+ longitude: number;
242
+ address?: string | undefined;
243
+ title?: string | undefined;
244
+ className?: string | undefined;
245
+ }>, import("zod").ZodObject<{
246
+ markdown: import("zod").ZodString;
247
+ className: import("zod").ZodOptional<import("zod").ZodString>;
248
+ type: import("zod").ZodLiteral<"markdown">;
249
+ }, "strip", import("zod").ZodTypeAny, {
250
+ type: "markdown";
251
+ markdown: string;
252
+ className?: string | undefined;
253
+ }, {
254
+ type: "markdown";
255
+ markdown: string;
256
+ className?: string | undefined;
257
+ }>, import("zod").ZodObject<{
258
+ text: import("zod").ZodString;
259
+ className: import("zod").ZodOptional<import("zod").ZodString>;
260
+ type: import("zod").ZodLiteral<"text">;
261
+ }, "strip", import("zod").ZodTypeAny, {
262
+ type: "text";
263
+ text: string;
264
+ className?: string | undefined;
265
+ }, {
266
+ type: "text";
267
+ text: string;
268
+ className?: string | undefined;
269
+ }>, import("zod").ZodObject<{
270
+ videoUrl: import("zod").ZodString;
271
+ className: import("zod").ZodOptional<import("zod").ZodString>;
272
+ type: import("zod").ZodLiteral<"video">;
273
+ }, "strip", import("zod").ZodTypeAny, {
274
+ type: "video";
275
+ videoUrl: string;
276
+ className?: string | undefined;
277
+ }, {
278
+ type: "video";
279
+ videoUrl: string;
280
+ className?: string | undefined;
281
+ }>]>;
282
+ userId: import("zod").ZodString;
283
+ conversationId: import("zod").ZodString;
284
+ }, "strip", import("zod").ZodTypeAny, {
285
+ payload: {
286
+ type: "audio";
287
+ audioUrl: string;
288
+ className?: string | undefined;
289
+ } | {
290
+ title: string;
291
+ type: "card";
292
+ actions: {
293
+ value: string;
294
+ action: "url" | "postback" | "say";
295
+ label: string;
296
+ }[];
297
+ subtitle?: string | undefined;
298
+ imageUrl?: string | undefined;
299
+ className?: string | undefined;
300
+ } | {
301
+ type: "carousel";
302
+ items: {
303
+ title: string;
304
+ actions: {
305
+ value: string;
306
+ action: "url" | "postback" | "say";
307
+ label: string;
308
+ }[];
309
+ subtitle?: string | undefined;
310
+ imageUrl?: string | undefined;
311
+ className?: string | undefined;
312
+ }[];
313
+ className?: string | undefined;
314
+ } | {
315
+ options: {
316
+ value: string;
317
+ label: string;
318
+ }[];
319
+ type: "choice";
320
+ text: string;
321
+ className?: string | undefined;
322
+ disableFreeText?: boolean | undefined;
323
+ } | {
324
+ options: {
325
+ value: string;
326
+ label: string;
327
+ }[];
328
+ type: "dropdown";
329
+ text: string;
330
+ className?: string | undefined;
331
+ } | {
332
+ type: "file";
333
+ fileUrl: string;
334
+ title?: string | undefined;
335
+ className?: string | undefined;
336
+ } | {
337
+ type: "image";
338
+ imageUrl: string;
339
+ className?: string | undefined;
340
+ } | {
341
+ type: "location";
342
+ latitude: number;
343
+ longitude: number;
344
+ address?: string | undefined;
345
+ title?: string | undefined;
346
+ className?: string | undefined;
347
+ } | {
348
+ type: "markdown";
349
+ markdown: string;
350
+ className?: string | undefined;
351
+ } | {
352
+ type: "text";
353
+ text: string;
354
+ className?: string | undefined;
355
+ } | {
356
+ type: "video";
357
+ videoUrl: string;
358
+ className?: string | undefined;
359
+ };
360
+ id: string;
361
+ userId: string;
362
+ conversationId: string;
363
+ createdAt: string;
364
+ }, {
365
+ payload: {
366
+ type: "audio";
367
+ audioUrl: string;
368
+ className?: string | undefined;
369
+ } | {
370
+ title: string;
371
+ type: "card";
372
+ actions: {
373
+ value: string;
374
+ action: "url" | "postback" | "say";
375
+ label: string;
376
+ }[];
377
+ subtitle?: string | undefined;
378
+ imageUrl?: string | undefined;
379
+ className?: string | undefined;
380
+ } | {
381
+ type: "carousel";
382
+ items: {
383
+ title: string;
384
+ actions: {
385
+ value: string;
386
+ action: "url" | "postback" | "say";
387
+ label: string;
388
+ }[];
389
+ subtitle?: string | undefined;
390
+ imageUrl?: string | undefined;
391
+ className?: string | undefined;
392
+ }[];
393
+ className?: string | undefined;
394
+ } | {
395
+ options: {
396
+ value: string;
397
+ label: string;
398
+ }[];
399
+ type: "choice";
400
+ text: string;
401
+ className?: string | undefined;
402
+ disableFreeText?: boolean | undefined;
403
+ } | {
404
+ options: {
405
+ value: string;
406
+ label: string;
407
+ }[];
408
+ type: "dropdown";
409
+ text: string;
410
+ className?: string | undefined;
411
+ } | {
412
+ type: "file";
413
+ fileUrl: string;
414
+ title?: string | undefined;
415
+ className?: string | undefined;
416
+ } | {
417
+ type: "image";
418
+ imageUrl: string;
419
+ className?: string | undefined;
420
+ } | {
421
+ type: "location";
422
+ latitude: number;
423
+ longitude: number;
424
+ address?: string | undefined;
425
+ title?: string | undefined;
426
+ className?: string | undefined;
427
+ } | {
428
+ type: "markdown";
429
+ markdown: string;
430
+ className?: string | undefined;
431
+ } | {
432
+ type: "text";
433
+ text: string;
434
+ className?: string | undefined;
435
+ } | {
436
+ type: "video";
437
+ videoUrl: string;
438
+ className?: string | undefined;
439
+ };
440
+ id: string;
441
+ userId: string;
442
+ conversationId: string;
443
+ createdAt: string;
444
+ }>;
445
+ }, "strip", import("zod").ZodTypeAny, {
446
+ type: "message_created";
447
+ data: {
448
+ payload: {
449
+ type: "audio";
450
+ audioUrl: string;
451
+ className?: string | undefined;
452
+ } | {
453
+ title: string;
454
+ type: "card";
455
+ actions: {
456
+ value: string;
457
+ action: "url" | "postback" | "say";
458
+ label: string;
459
+ }[];
460
+ subtitle?: string | undefined;
461
+ imageUrl?: string | undefined;
462
+ className?: string | undefined;
463
+ } | {
464
+ type: "carousel";
465
+ items: {
466
+ title: string;
467
+ actions: {
468
+ value: string;
469
+ action: "url" | "postback" | "say";
470
+ label: string;
471
+ }[];
472
+ subtitle?: string | undefined;
473
+ imageUrl?: string | undefined;
474
+ className?: string | undefined;
475
+ }[];
476
+ className?: string | undefined;
477
+ } | {
478
+ options: {
479
+ value: string;
480
+ label: string;
481
+ }[];
482
+ type: "choice";
483
+ text: string;
484
+ className?: string | undefined;
485
+ disableFreeText?: boolean | undefined;
486
+ } | {
487
+ options: {
488
+ value: string;
489
+ label: string;
490
+ }[];
491
+ type: "dropdown";
492
+ text: string;
493
+ className?: string | undefined;
494
+ } | {
495
+ type: "file";
496
+ fileUrl: string;
497
+ title?: string | undefined;
498
+ className?: string | undefined;
499
+ } | {
500
+ type: "image";
501
+ imageUrl: string;
502
+ className?: string | undefined;
503
+ } | {
504
+ type: "location";
505
+ latitude: number;
506
+ longitude: number;
507
+ address?: string | undefined;
508
+ title?: string | undefined;
509
+ className?: string | undefined;
510
+ } | {
511
+ type: "markdown";
512
+ markdown: string;
513
+ className?: string | undefined;
514
+ } | {
515
+ type: "text";
516
+ text: string;
517
+ className?: string | undefined;
518
+ } | {
519
+ type: "video";
520
+ videoUrl: string;
521
+ className?: string | undefined;
522
+ };
523
+ id: string;
524
+ userId: string;
525
+ conversationId: string;
526
+ createdAt: string;
527
+ };
528
+ }, {
529
+ type: "message_created";
530
+ data: {
531
+ payload: {
532
+ type: "audio";
533
+ audioUrl: string;
534
+ className?: string | undefined;
535
+ } | {
536
+ title: string;
537
+ type: "card";
538
+ actions: {
539
+ value: string;
540
+ action: "url" | "postback" | "say";
541
+ label: string;
542
+ }[];
543
+ subtitle?: string | undefined;
544
+ imageUrl?: string | undefined;
545
+ className?: string | undefined;
546
+ } | {
547
+ type: "carousel";
548
+ items: {
549
+ title: string;
550
+ actions: {
551
+ value: string;
552
+ action: "url" | "postback" | "say";
553
+ label: string;
554
+ }[];
555
+ subtitle?: string | undefined;
556
+ imageUrl?: string | undefined;
557
+ className?: string | undefined;
558
+ }[];
559
+ className?: string | undefined;
560
+ } | {
561
+ options: {
562
+ value: string;
563
+ label: string;
564
+ }[];
565
+ type: "choice";
566
+ text: string;
567
+ className?: string | undefined;
568
+ disableFreeText?: boolean | undefined;
569
+ } | {
570
+ options: {
571
+ value: string;
572
+ label: string;
573
+ }[];
574
+ type: "dropdown";
575
+ text: string;
576
+ className?: string | undefined;
577
+ } | {
578
+ type: "file";
579
+ fileUrl: string;
580
+ title?: string | undefined;
581
+ className?: string | undefined;
582
+ } | {
583
+ type: "image";
584
+ imageUrl: string;
585
+ className?: string | undefined;
586
+ } | {
587
+ type: "location";
588
+ latitude: number;
589
+ longitude: number;
590
+ address?: string | undefined;
591
+ title?: string | undefined;
592
+ className?: string | undefined;
593
+ } | {
594
+ type: "markdown";
595
+ markdown: string;
596
+ className?: string | undefined;
597
+ } | {
598
+ type: "text";
599
+ text: string;
600
+ className?: string | undefined;
601
+ } | {
602
+ type: "video";
603
+ videoUrl: string;
604
+ className?: string | undefined;
605
+ };
606
+ id: string;
607
+ userId: string;
608
+ conversationId: string;
609
+ createdAt: string;
610
+ };
611
+ }>;
612
+ webchatVisibilitySignal: import("zod").ZodObject<{
613
+ type: import("zod").ZodLiteral<"webchat_visibility">;
614
+ data: import("zod").ZodObject<{
615
+ visibility: import("zod").ZodEnum<["show", "hide", "toggle"]>;
616
+ }, "strip", import("zod").ZodTypeAny, {
617
+ visibility: "show" | "hide" | "toggle";
618
+ }, {
619
+ visibility: "show" | "hide" | "toggle";
620
+ }>;
621
+ }, "strip", import("zod").ZodTypeAny, {
622
+ type: "webchat_visibility";
623
+ data: {
624
+ visibility: "show" | "hide" | "toggle";
625
+ };
626
+ }, {
627
+ type: "webchat_visibility";
628
+ data: {
629
+ visibility: "show" | "hide" | "toggle";
630
+ };
631
+ }>;
632
+ webchatConfigSignal: import("zod").ZodObject<{
633
+ type: import("zod").ZodLiteral<"webchat_config">;
634
+ data: import("zod").ZodObject<{
635
+ config: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>;
636
+ }, "strip", import("zod").ZodTypeAny, {
637
+ config: Record<string, any>;
638
+ }, {
639
+ config: Record<string, any>;
640
+ }>;
641
+ }, "strip", import("zod").ZodTypeAny, {
642
+ type: "webchat_config";
643
+ data: {
644
+ config: Record<string, any>;
645
+ };
646
+ }, {
647
+ type: "webchat_config";
648
+ data: {
649
+ config: Record<string, any>;
650
+ };
651
+ }>;
652
+ customSignal: import("zod").ZodObject<{
653
+ type: import("zod").ZodLiteral<"custom">;
654
+ data: import("zod").ZodObject<{
655
+ event: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>;
656
+ }, "strip", import("zod").ZodTypeAny, {
657
+ event: Record<string, any>;
658
+ }, {
659
+ event: Record<string, any>;
660
+ }>;
661
+ }, "strip", import("zod").ZodTypeAny, {
662
+ type: "custom";
663
+ data: {
664
+ event: Record<string, any>;
665
+ };
666
+ }, {
667
+ type: "custom";
668
+ data: {
669
+ event: Record<string, any>;
670
+ };
671
+ }>;
672
+ };
673
+ export declare const json: {
674
+ messageCreatedSignal: {
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
+ webchatVisibilitySignal: {
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
+ webchatConfigSignal: {
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
+ customSignal: {
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
+ export type Types = {
1245
+ messageCreatedSignal: MessageCreatedSignal;
1246
+ webchatVisibilitySignal: WebchatVisibilitySignal;
1247
+ webchatConfigSignal: WebchatConfigSignal;
1248
+ customSignal: CustomSignal;
1249
+ };