@botpress/webchat 1.1.1 → 1.2.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 (65) hide show
  1. package/dist/App.d.ts +4 -4
  2. package/dist/client/MessagingClient/client.d.ts +2 -16
  3. package/dist/client/{ChatClient → PushpinClient}/index.d.ts +4 -4
  4. package/dist/client/PushpinClient/inner-client/event-emitter.d.ts +10 -0
  5. package/dist/client/PushpinClient/inner-client/eventsource.d.ts +22 -0
  6. package/dist/client/PushpinClient/inner-client/index.d.ts +39 -0
  7. package/dist/client/PushpinClient/inner-client/signal-listener.d.ts +47 -0
  8. package/dist/client/{ChatClient → PushpinClient}/state-machine.d.ts +13 -13
  9. package/dist/client/index.d.ts +1 -1
  10. package/dist/client/types.d.ts +4 -1
  11. package/dist/components/Block.d.ts +1 -1
  12. package/dist/components/Composer.d.ts +1 -1
  13. package/dist/components/Header.d.ts +1 -1
  14. package/dist/components/LoadingIndicator.d.ts +1 -1
  15. package/dist/components/MessageList.d.ts +1 -1
  16. package/dist/components/Modal.d.ts +2 -2
  17. package/dist/components/RestartConversation.d.ts +1 -1
  18. package/dist/components/Webchat.d.ts +1 -1
  19. package/dist/components/dev-tools/DevTools.d.ts +1 -1
  20. package/dist/components/renderers/Button.d.ts +1 -1
  21. package/dist/components/renderers/Dropdown.d.ts +1 -1
  22. package/dist/components/renderers/Text.d.ts +1 -1
  23. package/dist/contexts/WebchatContext.d.ts +4 -4
  24. package/dist/gen/client/api.d.ts +1694 -0
  25. package/dist/gen/client/base.d.ts +54 -0
  26. package/dist/gen/client/client.d.ts +57 -0
  27. package/dist/gen/client/common.d.ts +65 -0
  28. package/dist/gen/client/configuration.d.ts +83 -0
  29. package/dist/gen/client/errors.d.ts +197 -0
  30. package/dist/gen/client/index.d.ts +13 -0
  31. package/dist/gen/models/conversation.j.d.ts +20 -0
  32. package/dist/gen/models/conversation.t.d.ts +10 -0
  33. package/dist/gen/models/conversation.z.d.ts +15 -0
  34. package/dist/gen/models/index.d.ts +851 -0
  35. package/dist/gen/models/message.j.d.ts +388 -0
  36. package/dist/gen/models/message.t.d.ts +73 -0
  37. package/dist/gen/models/message.z.d.ts +372 -0
  38. package/dist/gen/models/user.j.d.ts +29 -0
  39. package/dist/gen/models/user.t.d.ts +13 -0
  40. package/dist/gen/models/user.z.d.ts +24 -0
  41. package/dist/gen/signals/customSignal.j.d.ts +24 -0
  42. package/dist/gen/signals/customSignal.t.d.ts +13 -0
  43. package/dist/gen/signals/customSignal.z.d.ts +22 -0
  44. package/dist/gen/signals/index.d.ts +1054 -0
  45. package/dist/gen/signals/messageCreatedSignal.j.d.ts +399 -0
  46. package/dist/gen/signals/messageCreatedSignal.t.d.ts +76 -0
  47. package/dist/gen/signals/messageCreatedSignal.z.d.ts +515 -0
  48. package/dist/gen/signals/webchatConfigSignal.j.d.ts +24 -0
  49. package/dist/gen/signals/webchatConfigSignal.t.d.ts +13 -0
  50. package/dist/gen/signals/webchatConfigSignal.z.d.ts +22 -0
  51. package/dist/gen/signals/webchatVisibilitySignal.j.d.ts +24 -0
  52. package/dist/gen/signals/webchatVisibilitySignal.t.d.ts +11 -0
  53. package/dist/gen/signals/webchatVisibilitySignal.z.d.ts +22 -0
  54. package/dist/hooks/useClient.d.ts +3 -3
  55. package/dist/index.d.ts +1 -1
  56. package/dist/index.js +27937 -73852
  57. package/dist/index.umd.cjs +113 -154
  58. package/dist/options.d.ts +3 -3
  59. package/dist/providers/ModalProvider.d.ts +1 -1
  60. package/dist/providers/WebchatProvider.d.ts +3 -3
  61. package/openapi/index.ts +31 -0
  62. package/openapi/package.json +5 -0
  63. package/openapi/readme.md +1 -0
  64. package/package.json +10 -4
  65. package/dist/client/MessagingClient/adapters/Trigger.d.ts +0 -33
@@ -0,0 +1,1054 @@
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
+ type: import("zod").ZodLiteral<"audio">;
14
+ }, "strip", import("zod").ZodTypeAny, {
15
+ type: "audio";
16
+ audioUrl: string;
17
+ }, {
18
+ type: "audio";
19
+ audioUrl: string;
20
+ }>, import("zod").ZodObject<{
21
+ title: import("zod").ZodString;
22
+ subtitle: import("zod").ZodOptional<import("zod").ZodString>;
23
+ imageUrl: import("zod").ZodOptional<import("zod").ZodString>;
24
+ actions: import("zod").ZodArray<import("zod").ZodObject<{
25
+ action: import("zod").ZodEnum<["postback", "url", "say"]>;
26
+ label: import("zod").ZodString;
27
+ value: import("zod").ZodString;
28
+ }, "strip", import("zod").ZodTypeAny, {
29
+ value: string;
30
+ action: "url" | "postback" | "say";
31
+ label: string;
32
+ }, {
33
+ value: string;
34
+ action: "url" | "postback" | "say";
35
+ label: string;
36
+ }>, "many">;
37
+ type: import("zod").ZodLiteral<"card">;
38
+ }, "strip", import("zod").ZodTypeAny, {
39
+ type: "card";
40
+ title: string;
41
+ actions: {
42
+ value: string;
43
+ action: "url" | "postback" | "say";
44
+ label: string;
45
+ }[];
46
+ subtitle?: string | undefined;
47
+ imageUrl?: string | undefined;
48
+ }, {
49
+ type: "card";
50
+ title: string;
51
+ actions: {
52
+ value: string;
53
+ action: "url" | "postback" | "say";
54
+ label: string;
55
+ }[];
56
+ subtitle?: string | undefined;
57
+ imageUrl?: string | undefined;
58
+ }>, import("zod").ZodObject<{
59
+ items: import("zod").ZodArray<import("zod").ZodObject<{
60
+ title: import("zod").ZodString;
61
+ subtitle: import("zod").ZodOptional<import("zod").ZodString>;
62
+ imageUrl: import("zod").ZodOptional<import("zod").ZodString>;
63
+ actions: import("zod").ZodArray<import("zod").ZodObject<{
64
+ action: import("zod").ZodEnum<["postback", "url", "say"]>;
65
+ label: import("zod").ZodString;
66
+ value: import("zod").ZodString;
67
+ }, "strip", import("zod").ZodTypeAny, {
68
+ value: string;
69
+ action: "url" | "postback" | "say";
70
+ label: string;
71
+ }, {
72
+ value: string;
73
+ action: "url" | "postback" | "say";
74
+ label: string;
75
+ }>, "many">;
76
+ }, "strip", import("zod").ZodTypeAny, {
77
+ title: string;
78
+ actions: {
79
+ value: string;
80
+ action: "url" | "postback" | "say";
81
+ label: string;
82
+ }[];
83
+ subtitle?: string | undefined;
84
+ imageUrl?: string | undefined;
85
+ }, {
86
+ title: string;
87
+ actions: {
88
+ value: string;
89
+ action: "url" | "postback" | "say";
90
+ label: string;
91
+ }[];
92
+ subtitle?: string | undefined;
93
+ imageUrl?: string | undefined;
94
+ }>, "many">;
95
+ type: import("zod").ZodLiteral<"carousel">;
96
+ }, "strip", import("zod").ZodTypeAny, {
97
+ type: "carousel";
98
+ items: {
99
+ title: string;
100
+ actions: {
101
+ value: string;
102
+ action: "url" | "postback" | "say";
103
+ label: string;
104
+ }[];
105
+ subtitle?: string | undefined;
106
+ imageUrl?: string | undefined;
107
+ }[];
108
+ }, {
109
+ type: "carousel";
110
+ items: {
111
+ title: string;
112
+ actions: {
113
+ value: string;
114
+ action: "url" | "postback" | "say";
115
+ label: string;
116
+ }[];
117
+ subtitle?: string | undefined;
118
+ imageUrl?: string | undefined;
119
+ }[];
120
+ }>, import("zod").ZodObject<{
121
+ text: import("zod").ZodString;
122
+ options: import("zod").ZodArray<import("zod").ZodObject<{
123
+ label: import("zod").ZodString;
124
+ value: import("zod").ZodString;
125
+ }, "strip", import("zod").ZodTypeAny, {
126
+ value: string;
127
+ label: string;
128
+ }, {
129
+ value: string;
130
+ label: string;
131
+ }>, "many">;
132
+ type: import("zod").ZodLiteral<"choice">;
133
+ }, "strip", import("zod").ZodTypeAny, {
134
+ type: "choice";
135
+ options: {
136
+ value: string;
137
+ label: string;
138
+ }[];
139
+ text: string;
140
+ }, {
141
+ type: "choice";
142
+ options: {
143
+ value: string;
144
+ label: string;
145
+ }[];
146
+ text: string;
147
+ }>, import("zod").ZodObject<{
148
+ text: import("zod").ZodString;
149
+ options: import("zod").ZodArray<import("zod").ZodObject<{
150
+ label: import("zod").ZodString;
151
+ value: import("zod").ZodString;
152
+ }, "strip", import("zod").ZodTypeAny, {
153
+ value: string;
154
+ label: string;
155
+ }, {
156
+ value: string;
157
+ label: string;
158
+ }>, "many">;
159
+ type: import("zod").ZodLiteral<"dropdown">;
160
+ }, "strip", import("zod").ZodTypeAny, {
161
+ type: "dropdown";
162
+ options: {
163
+ value: string;
164
+ label: string;
165
+ }[];
166
+ text: string;
167
+ }, {
168
+ type: "dropdown";
169
+ options: {
170
+ value: string;
171
+ label: string;
172
+ }[];
173
+ text: string;
174
+ }>, import("zod").ZodObject<{
175
+ fileUrl: import("zod").ZodString;
176
+ title: import("zod").ZodOptional<import("zod").ZodString>;
177
+ type: import("zod").ZodLiteral<"file">;
178
+ }, "strip", import("zod").ZodTypeAny, {
179
+ type: "file";
180
+ fileUrl: string;
181
+ title?: string | undefined;
182
+ }, {
183
+ type: "file";
184
+ fileUrl: string;
185
+ title?: string | undefined;
186
+ }>, import("zod").ZodObject<{
187
+ imageUrl: import("zod").ZodString;
188
+ type: import("zod").ZodLiteral<"image">;
189
+ }, "strip", import("zod").ZodTypeAny, {
190
+ type: "image";
191
+ imageUrl: string;
192
+ }, {
193
+ type: "image";
194
+ imageUrl: string;
195
+ }>, import("zod").ZodObject<{
196
+ latitude: import("zod").ZodNumber;
197
+ longitude: import("zod").ZodNumber;
198
+ address: import("zod").ZodOptional<import("zod").ZodString>;
199
+ title: import("zod").ZodOptional<import("zod").ZodString>;
200
+ type: import("zod").ZodLiteral<"location">;
201
+ }, "strip", import("zod").ZodTypeAny, {
202
+ type: "location";
203
+ latitude: number;
204
+ longitude: number;
205
+ address?: string | undefined;
206
+ title?: string | undefined;
207
+ }, {
208
+ type: "location";
209
+ latitude: number;
210
+ longitude: number;
211
+ address?: string | undefined;
212
+ title?: string | undefined;
213
+ }>, import("zod").ZodObject<{
214
+ markdown: import("zod").ZodString;
215
+ type: import("zod").ZodLiteral<"markdown">;
216
+ }, "strip", import("zod").ZodTypeAny, {
217
+ type: "markdown";
218
+ markdown: string;
219
+ }, {
220
+ type: "markdown";
221
+ markdown: string;
222
+ }>, import("zod").ZodObject<{
223
+ text: import("zod").ZodString;
224
+ type: import("zod").ZodLiteral<"text">;
225
+ }, "strip", import("zod").ZodTypeAny, {
226
+ type: "text";
227
+ text: string;
228
+ }, {
229
+ type: "text";
230
+ text: string;
231
+ }>, import("zod").ZodObject<{
232
+ videoUrl: import("zod").ZodString;
233
+ type: import("zod").ZodLiteral<"video">;
234
+ }, "strip", import("zod").ZodTypeAny, {
235
+ type: "video";
236
+ videoUrl: string;
237
+ }, {
238
+ type: "video";
239
+ videoUrl: string;
240
+ }>]>;
241
+ userId: import("zod").ZodString;
242
+ conversationId: import("zod").ZodString;
243
+ }, "strip", import("zod").ZodTypeAny, {
244
+ payload: {
245
+ type: "audio";
246
+ audioUrl: string;
247
+ } | {
248
+ type: "card";
249
+ title: string;
250
+ actions: {
251
+ value: string;
252
+ action: "url" | "postback" | "say";
253
+ label: string;
254
+ }[];
255
+ subtitle?: string | undefined;
256
+ imageUrl?: string | undefined;
257
+ } | {
258
+ type: "carousel";
259
+ items: {
260
+ title: string;
261
+ actions: {
262
+ value: string;
263
+ action: "url" | "postback" | "say";
264
+ label: string;
265
+ }[];
266
+ subtitle?: string | undefined;
267
+ imageUrl?: string | undefined;
268
+ }[];
269
+ } | {
270
+ type: "choice";
271
+ options: {
272
+ value: string;
273
+ label: string;
274
+ }[];
275
+ text: string;
276
+ } | {
277
+ type: "dropdown";
278
+ options: {
279
+ value: string;
280
+ label: string;
281
+ }[];
282
+ text: string;
283
+ } | {
284
+ type: "file";
285
+ fileUrl: string;
286
+ title?: string | undefined;
287
+ } | {
288
+ type: "image";
289
+ imageUrl: string;
290
+ } | {
291
+ type: "location";
292
+ latitude: number;
293
+ longitude: number;
294
+ address?: string | undefined;
295
+ title?: string | undefined;
296
+ } | {
297
+ type: "markdown";
298
+ markdown: string;
299
+ } | {
300
+ type: "text";
301
+ text: string;
302
+ } | {
303
+ type: "video";
304
+ videoUrl: string;
305
+ };
306
+ id: string;
307
+ userId: string;
308
+ conversationId: string;
309
+ createdAt: string;
310
+ }, {
311
+ payload: {
312
+ type: "audio";
313
+ audioUrl: string;
314
+ } | {
315
+ type: "card";
316
+ title: string;
317
+ actions: {
318
+ value: string;
319
+ action: "url" | "postback" | "say";
320
+ label: string;
321
+ }[];
322
+ subtitle?: string | undefined;
323
+ imageUrl?: string | undefined;
324
+ } | {
325
+ type: "carousel";
326
+ items: {
327
+ title: string;
328
+ actions: {
329
+ value: string;
330
+ action: "url" | "postback" | "say";
331
+ label: string;
332
+ }[];
333
+ subtitle?: string | undefined;
334
+ imageUrl?: string | undefined;
335
+ }[];
336
+ } | {
337
+ type: "choice";
338
+ options: {
339
+ value: string;
340
+ label: string;
341
+ }[];
342
+ text: string;
343
+ } | {
344
+ type: "dropdown";
345
+ options: {
346
+ value: string;
347
+ label: string;
348
+ }[];
349
+ text: string;
350
+ } | {
351
+ type: "file";
352
+ fileUrl: string;
353
+ title?: string | undefined;
354
+ } | {
355
+ type: "image";
356
+ imageUrl: string;
357
+ } | {
358
+ type: "location";
359
+ latitude: number;
360
+ longitude: number;
361
+ address?: string | undefined;
362
+ title?: string | undefined;
363
+ } | {
364
+ type: "markdown";
365
+ markdown: string;
366
+ } | {
367
+ type: "text";
368
+ text: string;
369
+ } | {
370
+ type: "video";
371
+ videoUrl: string;
372
+ };
373
+ id: string;
374
+ userId: string;
375
+ conversationId: string;
376
+ createdAt: string;
377
+ }>;
378
+ }, "strip", import("zod").ZodTypeAny, {
379
+ type: "message_created";
380
+ data: {
381
+ payload: {
382
+ type: "audio";
383
+ audioUrl: string;
384
+ } | {
385
+ type: "card";
386
+ title: string;
387
+ actions: {
388
+ value: string;
389
+ action: "url" | "postback" | "say";
390
+ label: string;
391
+ }[];
392
+ subtitle?: string | undefined;
393
+ imageUrl?: string | undefined;
394
+ } | {
395
+ type: "carousel";
396
+ items: {
397
+ title: string;
398
+ actions: {
399
+ value: string;
400
+ action: "url" | "postback" | "say";
401
+ label: string;
402
+ }[];
403
+ subtitle?: string | undefined;
404
+ imageUrl?: string | undefined;
405
+ }[];
406
+ } | {
407
+ type: "choice";
408
+ options: {
409
+ value: string;
410
+ label: string;
411
+ }[];
412
+ text: string;
413
+ } | {
414
+ type: "dropdown";
415
+ options: {
416
+ value: string;
417
+ label: string;
418
+ }[];
419
+ text: string;
420
+ } | {
421
+ type: "file";
422
+ fileUrl: string;
423
+ title?: string | undefined;
424
+ } | {
425
+ type: "image";
426
+ imageUrl: string;
427
+ } | {
428
+ type: "location";
429
+ latitude: number;
430
+ longitude: number;
431
+ address?: string | undefined;
432
+ title?: string | undefined;
433
+ } | {
434
+ type: "markdown";
435
+ markdown: string;
436
+ } | {
437
+ type: "text";
438
+ text: string;
439
+ } | {
440
+ type: "video";
441
+ videoUrl: string;
442
+ };
443
+ id: string;
444
+ userId: string;
445
+ conversationId: string;
446
+ createdAt: string;
447
+ };
448
+ }, {
449
+ type: "message_created";
450
+ data: {
451
+ payload: {
452
+ type: "audio";
453
+ audioUrl: string;
454
+ } | {
455
+ type: "card";
456
+ title: string;
457
+ actions: {
458
+ value: string;
459
+ action: "url" | "postback" | "say";
460
+ label: string;
461
+ }[];
462
+ subtitle?: string | undefined;
463
+ imageUrl?: string | undefined;
464
+ } | {
465
+ type: "carousel";
466
+ items: {
467
+ title: string;
468
+ actions: {
469
+ value: string;
470
+ action: "url" | "postback" | "say";
471
+ label: string;
472
+ }[];
473
+ subtitle?: string | undefined;
474
+ imageUrl?: string | undefined;
475
+ }[];
476
+ } | {
477
+ type: "choice";
478
+ options: {
479
+ value: string;
480
+ label: string;
481
+ }[];
482
+ text: string;
483
+ } | {
484
+ type: "dropdown";
485
+ options: {
486
+ value: string;
487
+ label: string;
488
+ }[];
489
+ text: string;
490
+ } | {
491
+ type: "file";
492
+ fileUrl: string;
493
+ title?: string | undefined;
494
+ } | {
495
+ type: "image";
496
+ imageUrl: string;
497
+ } | {
498
+ type: "location";
499
+ latitude: number;
500
+ longitude: number;
501
+ address?: string | undefined;
502
+ title?: string | undefined;
503
+ } | {
504
+ type: "markdown";
505
+ markdown: string;
506
+ } | {
507
+ type: "text";
508
+ text: string;
509
+ } | {
510
+ type: "video";
511
+ videoUrl: string;
512
+ };
513
+ id: string;
514
+ userId: string;
515
+ conversationId: string;
516
+ createdAt: string;
517
+ };
518
+ }>;
519
+ webchatVisibilitySignal: import("zod").ZodObject<{
520
+ type: import("zod").ZodLiteral<"webchat_visibility">;
521
+ data: import("zod").ZodObject<{
522
+ visibility: import("zod").ZodEnum<["show", "hide", "toggle"]>;
523
+ }, "strip", import("zod").ZodTypeAny, {
524
+ visibility: "show" | "hide" | "toggle";
525
+ }, {
526
+ visibility: "show" | "hide" | "toggle";
527
+ }>;
528
+ }, "strip", import("zod").ZodTypeAny, {
529
+ type: "webchat_visibility";
530
+ data: {
531
+ visibility: "show" | "hide" | "toggle";
532
+ };
533
+ }, {
534
+ type: "webchat_visibility";
535
+ data: {
536
+ visibility: "show" | "hide" | "toggle";
537
+ };
538
+ }>;
539
+ webchatConfigSignal: import("zod").ZodObject<{
540
+ type: import("zod").ZodLiteral<"webchat_config">;
541
+ data: import("zod").ZodObject<{
542
+ config: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>;
543
+ }, "strip", import("zod").ZodTypeAny, {
544
+ config: Record<string, any>;
545
+ }, {
546
+ config: Record<string, any>;
547
+ }>;
548
+ }, "strip", import("zod").ZodTypeAny, {
549
+ type: "webchat_config";
550
+ data: {
551
+ config: Record<string, any>;
552
+ };
553
+ }, {
554
+ type: "webchat_config";
555
+ data: {
556
+ config: Record<string, any>;
557
+ };
558
+ }>;
559
+ customSignal: import("zod").ZodObject<{
560
+ type: import("zod").ZodLiteral<"custom">;
561
+ data: import("zod").ZodObject<{
562
+ event: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>;
563
+ }, "strip", import("zod").ZodTypeAny, {
564
+ event: Record<string, any>;
565
+ }, {
566
+ event: Record<string, any>;
567
+ }>;
568
+ }, "strip", import("zod").ZodTypeAny, {
569
+ type: "custom";
570
+ data: {
571
+ event: Record<string, any>;
572
+ };
573
+ }, {
574
+ type: "custom";
575
+ data: {
576
+ event: Record<string, any>;
577
+ };
578
+ }>;
579
+ };
580
+ export declare const json: {
581
+ messageCreatedSignal: {
582
+ type: string;
583
+ properties: {
584
+ type: {
585
+ type: string;
586
+ const: string;
587
+ };
588
+ data: {
589
+ type: string;
590
+ properties: {
591
+ id: {
592
+ type: string;
593
+ };
594
+ createdAt: {
595
+ type: string;
596
+ format: string;
597
+ };
598
+ payload: {
599
+ anyOf: ({
600
+ type: string;
601
+ properties: {
602
+ audioUrl: {
603
+ type: string;
604
+ minLength: number;
605
+ };
606
+ type: {
607
+ type: string;
608
+ const: string;
609
+ };
610
+ title?: undefined;
611
+ subtitle?: undefined;
612
+ imageUrl?: undefined;
613
+ actions?: undefined;
614
+ items?: undefined;
615
+ text?: undefined;
616
+ options?: undefined;
617
+ fileUrl?: undefined;
618
+ latitude?: undefined;
619
+ longitude?: undefined;
620
+ address?: undefined;
621
+ markdown?: undefined;
622
+ videoUrl?: undefined;
623
+ };
624
+ required: string[];
625
+ additionalProperties: boolean;
626
+ } | {
627
+ type: string;
628
+ properties: {
629
+ title: {
630
+ type: string;
631
+ minLength: number;
632
+ };
633
+ subtitle: {
634
+ type: string;
635
+ minLength: number;
636
+ };
637
+ imageUrl: {
638
+ type: string;
639
+ minLength: number;
640
+ };
641
+ actions: {
642
+ type: string;
643
+ items: {
644
+ type: string;
645
+ properties: {
646
+ action: {
647
+ type: string;
648
+ enum: string[];
649
+ };
650
+ label: {
651
+ type: string;
652
+ minLength: number;
653
+ };
654
+ value: {
655
+ type: string;
656
+ minLength: number;
657
+ };
658
+ };
659
+ required: string[];
660
+ additionalProperties: boolean;
661
+ };
662
+ };
663
+ type: {
664
+ type: string;
665
+ const: string;
666
+ };
667
+ audioUrl?: undefined;
668
+ items?: undefined;
669
+ text?: undefined;
670
+ options?: undefined;
671
+ fileUrl?: undefined;
672
+ latitude?: undefined;
673
+ longitude?: undefined;
674
+ address?: undefined;
675
+ markdown?: undefined;
676
+ videoUrl?: undefined;
677
+ };
678
+ required: string[];
679
+ additionalProperties: boolean;
680
+ } | {
681
+ type: string;
682
+ properties: {
683
+ items: {
684
+ type: string;
685
+ items: {
686
+ type: string;
687
+ properties: {
688
+ title: {
689
+ type: string;
690
+ minLength: number;
691
+ };
692
+ subtitle: {
693
+ type: string;
694
+ minLength: number;
695
+ };
696
+ imageUrl: {
697
+ type: string;
698
+ minLength: number;
699
+ };
700
+ actions: {
701
+ type: string;
702
+ items: {
703
+ type: string;
704
+ properties: {
705
+ action: {
706
+ type: string;
707
+ enum: string[];
708
+ };
709
+ label: {
710
+ type: string;
711
+ minLength: number;
712
+ };
713
+ value: {
714
+ type: string;
715
+ minLength: number;
716
+ };
717
+ };
718
+ required: string[];
719
+ additionalProperties: boolean;
720
+ };
721
+ };
722
+ };
723
+ required: string[];
724
+ additionalProperties: boolean;
725
+ };
726
+ };
727
+ type: {
728
+ type: string;
729
+ const: string;
730
+ };
731
+ audioUrl?: undefined;
732
+ title?: undefined;
733
+ subtitle?: undefined;
734
+ imageUrl?: undefined;
735
+ actions?: undefined;
736
+ text?: undefined;
737
+ options?: undefined;
738
+ fileUrl?: undefined;
739
+ latitude?: undefined;
740
+ longitude?: undefined;
741
+ address?: undefined;
742
+ markdown?: undefined;
743
+ videoUrl?: undefined;
744
+ };
745
+ required: string[];
746
+ additionalProperties: boolean;
747
+ } | {
748
+ type: string;
749
+ properties: {
750
+ text: {
751
+ type: string;
752
+ minLength: number;
753
+ };
754
+ options: {
755
+ type: string;
756
+ items: {
757
+ type: string;
758
+ properties: {
759
+ label: {
760
+ type: string;
761
+ minLength: number;
762
+ };
763
+ value: {
764
+ type: string;
765
+ minLength: number;
766
+ };
767
+ };
768
+ required: string[];
769
+ additionalProperties: boolean;
770
+ };
771
+ };
772
+ type: {
773
+ type: string;
774
+ const: string;
775
+ };
776
+ audioUrl?: undefined;
777
+ title?: undefined;
778
+ subtitle?: undefined;
779
+ imageUrl?: undefined;
780
+ actions?: undefined;
781
+ items?: undefined;
782
+ fileUrl?: undefined;
783
+ latitude?: undefined;
784
+ longitude?: undefined;
785
+ address?: undefined;
786
+ markdown?: undefined;
787
+ videoUrl?: undefined;
788
+ };
789
+ required: string[];
790
+ additionalProperties: boolean;
791
+ } | {
792
+ type: string;
793
+ properties: {
794
+ fileUrl: {
795
+ type: string;
796
+ minLength: number;
797
+ };
798
+ title: {
799
+ type: string;
800
+ minLength: number;
801
+ };
802
+ type: {
803
+ type: string;
804
+ const: string;
805
+ };
806
+ audioUrl?: undefined;
807
+ subtitle?: undefined;
808
+ imageUrl?: undefined;
809
+ actions?: undefined;
810
+ items?: undefined;
811
+ text?: undefined;
812
+ options?: undefined;
813
+ latitude?: undefined;
814
+ longitude?: undefined;
815
+ address?: undefined;
816
+ markdown?: undefined;
817
+ videoUrl?: undefined;
818
+ };
819
+ required: string[];
820
+ additionalProperties: boolean;
821
+ } | {
822
+ type: string;
823
+ properties: {
824
+ imageUrl: {
825
+ type: string;
826
+ minLength: number;
827
+ };
828
+ type: {
829
+ type: string;
830
+ const: string;
831
+ };
832
+ audioUrl?: undefined;
833
+ title?: undefined;
834
+ subtitle?: undefined;
835
+ actions?: undefined;
836
+ items?: undefined;
837
+ text?: undefined;
838
+ options?: undefined;
839
+ fileUrl?: undefined;
840
+ latitude?: undefined;
841
+ longitude?: undefined;
842
+ address?: undefined;
843
+ markdown?: undefined;
844
+ videoUrl?: undefined;
845
+ };
846
+ required: string[];
847
+ additionalProperties: boolean;
848
+ } | {
849
+ type: string;
850
+ properties: {
851
+ latitude: {
852
+ type: string;
853
+ };
854
+ longitude: {
855
+ type: string;
856
+ };
857
+ address: {
858
+ type: string;
859
+ };
860
+ title: {
861
+ type: string;
862
+ minLength?: undefined;
863
+ };
864
+ type: {
865
+ type: string;
866
+ const: string;
867
+ };
868
+ audioUrl?: undefined;
869
+ subtitle?: undefined;
870
+ imageUrl?: undefined;
871
+ actions?: undefined;
872
+ items?: undefined;
873
+ text?: undefined;
874
+ options?: undefined;
875
+ fileUrl?: undefined;
876
+ markdown?: undefined;
877
+ videoUrl?: undefined;
878
+ };
879
+ required: string[];
880
+ additionalProperties: boolean;
881
+ } | {
882
+ type: string;
883
+ properties: {
884
+ markdown: {
885
+ type: string;
886
+ minLength: number;
887
+ };
888
+ type: {
889
+ type: string;
890
+ const: string;
891
+ };
892
+ audioUrl?: undefined;
893
+ title?: undefined;
894
+ subtitle?: undefined;
895
+ imageUrl?: undefined;
896
+ actions?: undefined;
897
+ items?: undefined;
898
+ text?: undefined;
899
+ options?: undefined;
900
+ fileUrl?: undefined;
901
+ latitude?: undefined;
902
+ longitude?: undefined;
903
+ address?: undefined;
904
+ videoUrl?: undefined;
905
+ };
906
+ required: string[];
907
+ additionalProperties: boolean;
908
+ } | {
909
+ type: string;
910
+ properties: {
911
+ text: {
912
+ type: string;
913
+ minLength: number;
914
+ };
915
+ type: {
916
+ type: string;
917
+ const: string;
918
+ };
919
+ audioUrl?: undefined;
920
+ title?: undefined;
921
+ subtitle?: undefined;
922
+ imageUrl?: undefined;
923
+ actions?: undefined;
924
+ items?: undefined;
925
+ options?: undefined;
926
+ fileUrl?: undefined;
927
+ latitude?: undefined;
928
+ longitude?: undefined;
929
+ address?: undefined;
930
+ markdown?: undefined;
931
+ videoUrl?: undefined;
932
+ };
933
+ required: string[];
934
+ additionalProperties: boolean;
935
+ } | {
936
+ type: string;
937
+ properties: {
938
+ videoUrl: {
939
+ type: string;
940
+ minLength: number;
941
+ };
942
+ type: {
943
+ type: string;
944
+ const: string;
945
+ };
946
+ audioUrl?: undefined;
947
+ title?: undefined;
948
+ subtitle?: undefined;
949
+ imageUrl?: undefined;
950
+ actions?: undefined;
951
+ items?: undefined;
952
+ text?: undefined;
953
+ options?: undefined;
954
+ fileUrl?: undefined;
955
+ latitude?: undefined;
956
+ longitude?: undefined;
957
+ address?: undefined;
958
+ markdown?: undefined;
959
+ };
960
+ required: string[];
961
+ additionalProperties: boolean;
962
+ })[];
963
+ };
964
+ userId: {
965
+ type: string;
966
+ };
967
+ conversationId: {
968
+ type: string;
969
+ };
970
+ };
971
+ required: string[];
972
+ additionalProperties: boolean;
973
+ };
974
+ };
975
+ required: string[];
976
+ additionalProperties: boolean;
977
+ $schema: string;
978
+ };
979
+ webchatVisibilitySignal: {
980
+ type: string;
981
+ properties: {
982
+ type: {
983
+ type: string;
984
+ const: string;
985
+ };
986
+ data: {
987
+ type: string;
988
+ properties: {
989
+ visibility: {
990
+ type: string;
991
+ enum: string[];
992
+ };
993
+ };
994
+ required: string[];
995
+ additionalProperties: boolean;
996
+ };
997
+ };
998
+ required: string[];
999
+ additionalProperties: boolean;
1000
+ $schema: string;
1001
+ };
1002
+ webchatConfigSignal: {
1003
+ type: string;
1004
+ properties: {
1005
+ type: {
1006
+ type: string;
1007
+ const: string;
1008
+ };
1009
+ data: {
1010
+ type: string;
1011
+ properties: {
1012
+ config: {
1013
+ type: string;
1014
+ additionalProperties: {};
1015
+ };
1016
+ };
1017
+ required: string[];
1018
+ additionalProperties: boolean;
1019
+ };
1020
+ };
1021
+ required: string[];
1022
+ additionalProperties: boolean;
1023
+ $schema: string;
1024
+ };
1025
+ customSignal: {
1026
+ type: string;
1027
+ properties: {
1028
+ type: {
1029
+ type: string;
1030
+ const: string;
1031
+ };
1032
+ data: {
1033
+ type: string;
1034
+ properties: {
1035
+ event: {
1036
+ type: string;
1037
+ additionalProperties: {};
1038
+ };
1039
+ };
1040
+ required: string[];
1041
+ additionalProperties: boolean;
1042
+ };
1043
+ };
1044
+ required: string[];
1045
+ additionalProperties: boolean;
1046
+ $schema: string;
1047
+ };
1048
+ };
1049
+ export type Types = {
1050
+ messageCreatedSignal: MessageCreatedSignal;
1051
+ webchatVisibilitySignal: WebchatVisibilitySignal;
1052
+ webchatConfigSignal: WebchatConfigSignal;
1053
+ customSignal: CustomSignal;
1054
+ };