@botpress/webchat 1.1.0 → 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,851 @@
1
+ import type { Conversation } from './conversation.t';
2
+ import type { Message } from './message.t';
3
+ import type { User } from './user.t';
4
+ export declare const zod: {
5
+ conversation: import("zod").ZodObject<{
6
+ id: import("zod").ZodString;
7
+ createdAt: import("zod").ZodString;
8
+ updatedAt: import("zod").ZodString;
9
+ }, "strip", import("zod").ZodTypeAny, {
10
+ id: string;
11
+ createdAt: string;
12
+ updatedAt: string;
13
+ }, {
14
+ id: string;
15
+ createdAt: string;
16
+ updatedAt: string;
17
+ }>;
18
+ message: import("zod").ZodObject<{
19
+ id: import("zod").ZodString;
20
+ createdAt: import("zod").ZodString;
21
+ payload: import("zod").ZodUnion<[import("zod").ZodObject<{
22
+ audioUrl: import("zod").ZodString;
23
+ type: import("zod").ZodLiteral<"audio">;
24
+ }, "strip", import("zod").ZodTypeAny, {
25
+ type: "audio";
26
+ audioUrl: string;
27
+ }, {
28
+ type: "audio";
29
+ audioUrl: string;
30
+ }>, import("zod").ZodObject<{
31
+ title: import("zod").ZodString;
32
+ subtitle: import("zod").ZodOptional<import("zod").ZodString>;
33
+ imageUrl: import("zod").ZodOptional<import("zod").ZodString>;
34
+ actions: import("zod").ZodArray<import("zod").ZodObject<{
35
+ action: import("zod").ZodEnum<["postback", "url", "say"]>;
36
+ label: import("zod").ZodString;
37
+ value: import("zod").ZodString;
38
+ }, "strip", import("zod").ZodTypeAny, {
39
+ value: string;
40
+ action: "url" | "postback" | "say";
41
+ label: string;
42
+ }, {
43
+ value: string;
44
+ action: "url" | "postback" | "say";
45
+ label: string;
46
+ }>, "many">;
47
+ type: import("zod").ZodLiteral<"card">;
48
+ }, "strip", import("zod").ZodTypeAny, {
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
+ }, {
59
+ type: "card";
60
+ title: string;
61
+ actions: {
62
+ value: string;
63
+ action: "url" | "postback" | "say";
64
+ label: string;
65
+ }[];
66
+ subtitle?: string | undefined;
67
+ imageUrl?: string | undefined;
68
+ }>, import("zod").ZodObject<{
69
+ items: import("zod").ZodArray<import("zod").ZodObject<{
70
+ title: import("zod").ZodString;
71
+ subtitle: import("zod").ZodOptional<import("zod").ZodString>;
72
+ imageUrl: import("zod").ZodOptional<import("zod").ZodString>;
73
+ actions: import("zod").ZodArray<import("zod").ZodObject<{
74
+ action: import("zod").ZodEnum<["postback", "url", "say"]>;
75
+ label: import("zod").ZodString;
76
+ value: import("zod").ZodString;
77
+ }, "strip", import("zod").ZodTypeAny, {
78
+ value: string;
79
+ action: "url" | "postback" | "say";
80
+ label: string;
81
+ }, {
82
+ value: string;
83
+ action: "url" | "postback" | "say";
84
+ label: string;
85
+ }>, "many">;
86
+ }, "strip", import("zod").ZodTypeAny, {
87
+ title: string;
88
+ actions: {
89
+ value: string;
90
+ action: "url" | "postback" | "say";
91
+ label: string;
92
+ }[];
93
+ subtitle?: string | undefined;
94
+ imageUrl?: string | undefined;
95
+ }, {
96
+ title: string;
97
+ actions: {
98
+ value: string;
99
+ action: "url" | "postback" | "say";
100
+ label: string;
101
+ }[];
102
+ subtitle?: string | undefined;
103
+ imageUrl?: string | undefined;
104
+ }>, "many">;
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
+ }[];
118
+ }, {
119
+ type: "carousel";
120
+ items: {
121
+ title: string;
122
+ actions: {
123
+ value: string;
124
+ action: "url" | "postback" | "say";
125
+ label: string;
126
+ }[];
127
+ subtitle?: string | undefined;
128
+ imageUrl?: string | undefined;
129
+ }[];
130
+ }>, import("zod").ZodObject<{
131
+ text: import("zod").ZodString;
132
+ options: import("zod").ZodArray<import("zod").ZodObject<{
133
+ label: import("zod").ZodString;
134
+ value: import("zod").ZodString;
135
+ }, "strip", import("zod").ZodTypeAny, {
136
+ value: string;
137
+ label: string;
138
+ }, {
139
+ value: string;
140
+ label: string;
141
+ }>, "many">;
142
+ type: import("zod").ZodLiteral<"choice">;
143
+ }, "strip", import("zod").ZodTypeAny, {
144
+ type: "choice";
145
+ options: {
146
+ value: string;
147
+ label: string;
148
+ }[];
149
+ text: string;
150
+ }, {
151
+ type: "choice";
152
+ options: {
153
+ value: string;
154
+ label: string;
155
+ }[];
156
+ text: string;
157
+ }>, import("zod").ZodObject<{
158
+ text: import("zod").ZodString;
159
+ options: import("zod").ZodArray<import("zod").ZodObject<{
160
+ label: import("zod").ZodString;
161
+ value: import("zod").ZodString;
162
+ }, "strip", import("zod").ZodTypeAny, {
163
+ value: string;
164
+ label: string;
165
+ }, {
166
+ value: string;
167
+ label: string;
168
+ }>, "many">;
169
+ type: import("zod").ZodLiteral<"dropdown">;
170
+ }, "strip", import("zod").ZodTypeAny, {
171
+ type: "dropdown";
172
+ options: {
173
+ value: string;
174
+ label: string;
175
+ }[];
176
+ text: string;
177
+ }, {
178
+ type: "dropdown";
179
+ options: {
180
+ value: string;
181
+ label: string;
182
+ }[];
183
+ text: string;
184
+ }>, import("zod").ZodObject<{
185
+ fileUrl: import("zod").ZodString;
186
+ title: import("zod").ZodOptional<import("zod").ZodString>;
187
+ type: import("zod").ZodLiteral<"file">;
188
+ }, "strip", import("zod").ZodTypeAny, {
189
+ type: "file";
190
+ fileUrl: string;
191
+ title?: string | undefined;
192
+ }, {
193
+ type: "file";
194
+ fileUrl: string;
195
+ title?: string | undefined;
196
+ }>, import("zod").ZodObject<{
197
+ imageUrl: import("zod").ZodString;
198
+ type: import("zod").ZodLiteral<"image">;
199
+ }, "strip", import("zod").ZodTypeAny, {
200
+ type: "image";
201
+ imageUrl: string;
202
+ }, {
203
+ type: "image";
204
+ imageUrl: string;
205
+ }>, import("zod").ZodObject<{
206
+ latitude: import("zod").ZodNumber;
207
+ longitude: import("zod").ZodNumber;
208
+ address: import("zod").ZodOptional<import("zod").ZodString>;
209
+ title: import("zod").ZodOptional<import("zod").ZodString>;
210
+ type: import("zod").ZodLiteral<"location">;
211
+ }, "strip", import("zod").ZodTypeAny, {
212
+ type: "location";
213
+ latitude: number;
214
+ longitude: number;
215
+ address?: string | undefined;
216
+ title?: string | undefined;
217
+ }, {
218
+ type: "location";
219
+ latitude: number;
220
+ longitude: number;
221
+ address?: string | undefined;
222
+ title?: string | undefined;
223
+ }>, import("zod").ZodObject<{
224
+ markdown: import("zod").ZodString;
225
+ type: import("zod").ZodLiteral<"markdown">;
226
+ }, "strip", import("zod").ZodTypeAny, {
227
+ type: "markdown";
228
+ markdown: string;
229
+ }, {
230
+ type: "markdown";
231
+ markdown: string;
232
+ }>, import("zod").ZodObject<{
233
+ text: import("zod").ZodString;
234
+ type: import("zod").ZodLiteral<"text">;
235
+ }, "strip", import("zod").ZodTypeAny, {
236
+ type: "text";
237
+ text: string;
238
+ }, {
239
+ type: "text";
240
+ text: string;
241
+ }>, import("zod").ZodObject<{
242
+ videoUrl: import("zod").ZodString;
243
+ type: import("zod").ZodLiteral<"video">;
244
+ }, "strip", import("zod").ZodTypeAny, {
245
+ type: "video";
246
+ videoUrl: string;
247
+ }, {
248
+ type: "video";
249
+ videoUrl: string;
250
+ }>]>;
251
+ userId: import("zod").ZodString;
252
+ conversationId: import("zod").ZodString;
253
+ }, "strip", import("zod").ZodTypeAny, {
254
+ payload: {
255
+ type: "audio";
256
+ audioUrl: string;
257
+ } | {
258
+ type: "card";
259
+ title: string;
260
+ actions: {
261
+ value: string;
262
+ action: "url" | "postback" | "say";
263
+ label: string;
264
+ }[];
265
+ subtitle?: string | undefined;
266
+ imageUrl?: string | undefined;
267
+ } | {
268
+ type: "carousel";
269
+ items: {
270
+ title: string;
271
+ actions: {
272
+ value: string;
273
+ action: "url" | "postback" | "say";
274
+ label: string;
275
+ }[];
276
+ subtitle?: string | undefined;
277
+ imageUrl?: string | undefined;
278
+ }[];
279
+ } | {
280
+ type: "choice";
281
+ options: {
282
+ value: string;
283
+ label: string;
284
+ }[];
285
+ text: string;
286
+ } | {
287
+ type: "dropdown";
288
+ options: {
289
+ value: string;
290
+ label: string;
291
+ }[];
292
+ text: string;
293
+ } | {
294
+ type: "file";
295
+ fileUrl: string;
296
+ title?: string | undefined;
297
+ } | {
298
+ type: "image";
299
+ imageUrl: string;
300
+ } | {
301
+ type: "location";
302
+ latitude: number;
303
+ longitude: number;
304
+ address?: string | undefined;
305
+ title?: string | undefined;
306
+ } | {
307
+ type: "markdown";
308
+ markdown: string;
309
+ } | {
310
+ type: "text";
311
+ text: string;
312
+ } | {
313
+ type: "video";
314
+ videoUrl: string;
315
+ };
316
+ id: string;
317
+ userId: string;
318
+ conversationId: string;
319
+ createdAt: string;
320
+ }, {
321
+ payload: {
322
+ type: "audio";
323
+ audioUrl: string;
324
+ } | {
325
+ type: "card";
326
+ title: string;
327
+ actions: {
328
+ value: string;
329
+ action: "url" | "postback" | "say";
330
+ label: string;
331
+ }[];
332
+ subtitle?: string | undefined;
333
+ imageUrl?: string | undefined;
334
+ } | {
335
+ type: "carousel";
336
+ items: {
337
+ title: string;
338
+ actions: {
339
+ value: string;
340
+ action: "url" | "postback" | "say";
341
+ label: string;
342
+ }[];
343
+ subtitle?: string | undefined;
344
+ imageUrl?: string | undefined;
345
+ }[];
346
+ } | {
347
+ type: "choice";
348
+ options: {
349
+ value: string;
350
+ label: string;
351
+ }[];
352
+ text: string;
353
+ } | {
354
+ type: "dropdown";
355
+ options: {
356
+ value: string;
357
+ label: string;
358
+ }[];
359
+ text: string;
360
+ } | {
361
+ type: "file";
362
+ fileUrl: string;
363
+ title?: string | undefined;
364
+ } | {
365
+ type: "image";
366
+ imageUrl: string;
367
+ } | {
368
+ type: "location";
369
+ latitude: number;
370
+ longitude: number;
371
+ address?: string | undefined;
372
+ title?: string | undefined;
373
+ } | {
374
+ type: "markdown";
375
+ markdown: string;
376
+ } | {
377
+ type: "text";
378
+ text: string;
379
+ } | {
380
+ type: "video";
381
+ videoUrl: string;
382
+ };
383
+ id: string;
384
+ userId: string;
385
+ conversationId: string;
386
+ createdAt: string;
387
+ }>;
388
+ user: import("zod").ZodObject<{
389
+ name: import("zod").ZodOptional<import("zod").ZodString>;
390
+ pictureUrl: import("zod").ZodOptional<import("zod").ZodString>;
391
+ profile: import("zod").ZodOptional<import("zod").ZodString>;
392
+ id: import("zod").ZodString;
393
+ createdAt: import("zod").ZodString;
394
+ updatedAt: import("zod").ZodString;
395
+ }, "strip", import("zod").ZodTypeAny, {
396
+ id: string;
397
+ createdAt: string;
398
+ updatedAt: string;
399
+ name?: string | undefined;
400
+ pictureUrl?: string | undefined;
401
+ profile?: string | undefined;
402
+ }, {
403
+ id: string;
404
+ createdAt: string;
405
+ updatedAt: string;
406
+ name?: string | undefined;
407
+ pictureUrl?: string | undefined;
408
+ profile?: string | undefined;
409
+ }>;
410
+ };
411
+ export declare const json: {
412
+ conversation: {
413
+ type: string;
414
+ properties: {
415
+ id: {
416
+ type: string;
417
+ };
418
+ createdAt: {
419
+ type: string;
420
+ format: string;
421
+ };
422
+ updatedAt: {
423
+ type: string;
424
+ format: string;
425
+ };
426
+ };
427
+ required: string[];
428
+ additionalProperties: boolean;
429
+ $schema: string;
430
+ };
431
+ message: {
432
+ type: string;
433
+ properties: {
434
+ id: {
435
+ type: string;
436
+ };
437
+ createdAt: {
438
+ type: string;
439
+ format: string;
440
+ };
441
+ payload: {
442
+ anyOf: ({
443
+ type: string;
444
+ properties: {
445
+ audioUrl: {
446
+ type: string;
447
+ minLength: number;
448
+ };
449
+ type: {
450
+ type: string;
451
+ const: string;
452
+ };
453
+ title?: undefined;
454
+ subtitle?: undefined;
455
+ imageUrl?: undefined;
456
+ actions?: undefined;
457
+ items?: undefined;
458
+ text?: undefined;
459
+ options?: undefined;
460
+ fileUrl?: undefined;
461
+ latitude?: undefined;
462
+ longitude?: undefined;
463
+ address?: undefined;
464
+ markdown?: undefined;
465
+ videoUrl?: undefined;
466
+ };
467
+ required: string[];
468
+ additionalProperties: boolean;
469
+ } | {
470
+ type: string;
471
+ properties: {
472
+ title: {
473
+ type: string;
474
+ minLength: number;
475
+ };
476
+ subtitle: {
477
+ type: string;
478
+ minLength: number;
479
+ };
480
+ imageUrl: {
481
+ type: string;
482
+ minLength: number;
483
+ };
484
+ actions: {
485
+ type: string;
486
+ items: {
487
+ type: string;
488
+ properties: {
489
+ action: {
490
+ type: string;
491
+ enum: string[];
492
+ };
493
+ label: {
494
+ type: string;
495
+ minLength: number;
496
+ };
497
+ value: {
498
+ type: string;
499
+ minLength: number;
500
+ };
501
+ };
502
+ required: string[];
503
+ additionalProperties: boolean;
504
+ };
505
+ };
506
+ type: {
507
+ type: string;
508
+ const: string;
509
+ };
510
+ audioUrl?: undefined;
511
+ items?: undefined;
512
+ text?: undefined;
513
+ options?: undefined;
514
+ fileUrl?: undefined;
515
+ latitude?: undefined;
516
+ longitude?: undefined;
517
+ address?: undefined;
518
+ markdown?: undefined;
519
+ videoUrl?: undefined;
520
+ };
521
+ required: string[];
522
+ additionalProperties: boolean;
523
+ } | {
524
+ type: string;
525
+ properties: {
526
+ items: {
527
+ type: string;
528
+ items: {
529
+ type: string;
530
+ properties: {
531
+ title: {
532
+ type: string;
533
+ minLength: number;
534
+ };
535
+ subtitle: {
536
+ type: string;
537
+ minLength: number;
538
+ };
539
+ imageUrl: {
540
+ type: string;
541
+ minLength: number;
542
+ };
543
+ actions: {
544
+ type: string;
545
+ items: {
546
+ type: string;
547
+ properties: {
548
+ action: {
549
+ type: string;
550
+ enum: string[];
551
+ };
552
+ label: {
553
+ type: string;
554
+ minLength: number;
555
+ };
556
+ value: {
557
+ type: string;
558
+ minLength: number;
559
+ };
560
+ };
561
+ required: string[];
562
+ additionalProperties: boolean;
563
+ };
564
+ };
565
+ };
566
+ required: string[];
567
+ additionalProperties: boolean;
568
+ };
569
+ };
570
+ type: {
571
+ type: string;
572
+ const: string;
573
+ };
574
+ audioUrl?: undefined;
575
+ title?: undefined;
576
+ subtitle?: undefined;
577
+ imageUrl?: undefined;
578
+ actions?: undefined;
579
+ text?: undefined;
580
+ options?: undefined;
581
+ fileUrl?: undefined;
582
+ latitude?: undefined;
583
+ longitude?: undefined;
584
+ address?: undefined;
585
+ markdown?: undefined;
586
+ videoUrl?: undefined;
587
+ };
588
+ required: string[];
589
+ additionalProperties: boolean;
590
+ } | {
591
+ type: string;
592
+ properties: {
593
+ text: {
594
+ type: string;
595
+ minLength: number;
596
+ };
597
+ options: {
598
+ type: string;
599
+ items: {
600
+ type: string;
601
+ properties: {
602
+ label: {
603
+ type: string;
604
+ minLength: number;
605
+ };
606
+ value: {
607
+ type: string;
608
+ minLength: number;
609
+ };
610
+ };
611
+ required: string[];
612
+ additionalProperties: boolean;
613
+ };
614
+ };
615
+ type: {
616
+ type: string;
617
+ const: string;
618
+ };
619
+ audioUrl?: undefined;
620
+ title?: undefined;
621
+ subtitle?: undefined;
622
+ imageUrl?: undefined;
623
+ actions?: undefined;
624
+ items?: undefined;
625
+ fileUrl?: undefined;
626
+ latitude?: undefined;
627
+ longitude?: undefined;
628
+ address?: undefined;
629
+ markdown?: undefined;
630
+ videoUrl?: undefined;
631
+ };
632
+ required: string[];
633
+ additionalProperties: boolean;
634
+ } | {
635
+ type: string;
636
+ properties: {
637
+ fileUrl: {
638
+ type: string;
639
+ minLength: number;
640
+ };
641
+ title: {
642
+ type: string;
643
+ minLength: number;
644
+ };
645
+ type: {
646
+ type: string;
647
+ const: string;
648
+ };
649
+ audioUrl?: undefined;
650
+ subtitle?: undefined;
651
+ imageUrl?: undefined;
652
+ actions?: undefined;
653
+ items?: undefined;
654
+ text?: undefined;
655
+ options?: undefined;
656
+ latitude?: undefined;
657
+ longitude?: undefined;
658
+ address?: undefined;
659
+ markdown?: undefined;
660
+ videoUrl?: undefined;
661
+ };
662
+ required: string[];
663
+ additionalProperties: boolean;
664
+ } | {
665
+ type: string;
666
+ properties: {
667
+ imageUrl: {
668
+ type: string;
669
+ minLength: number;
670
+ };
671
+ type: {
672
+ type: string;
673
+ const: string;
674
+ };
675
+ audioUrl?: undefined;
676
+ title?: undefined;
677
+ subtitle?: undefined;
678
+ actions?: undefined;
679
+ items?: undefined;
680
+ text?: undefined;
681
+ options?: undefined;
682
+ fileUrl?: undefined;
683
+ latitude?: undefined;
684
+ longitude?: undefined;
685
+ address?: undefined;
686
+ markdown?: undefined;
687
+ videoUrl?: undefined;
688
+ };
689
+ required: string[];
690
+ additionalProperties: boolean;
691
+ } | {
692
+ type: string;
693
+ properties: {
694
+ latitude: {
695
+ type: string;
696
+ };
697
+ longitude: {
698
+ type: string;
699
+ };
700
+ address: {
701
+ type: string;
702
+ };
703
+ title: {
704
+ type: string;
705
+ minLength?: undefined;
706
+ };
707
+ type: {
708
+ type: string;
709
+ const: string;
710
+ };
711
+ audioUrl?: undefined;
712
+ subtitle?: undefined;
713
+ imageUrl?: undefined;
714
+ actions?: undefined;
715
+ items?: undefined;
716
+ text?: undefined;
717
+ options?: undefined;
718
+ fileUrl?: undefined;
719
+ markdown?: undefined;
720
+ videoUrl?: undefined;
721
+ };
722
+ required: string[];
723
+ additionalProperties: boolean;
724
+ } | {
725
+ type: string;
726
+ properties: {
727
+ markdown: {
728
+ type: string;
729
+ minLength: number;
730
+ };
731
+ type: {
732
+ type: string;
733
+ const: string;
734
+ };
735
+ audioUrl?: undefined;
736
+ title?: undefined;
737
+ subtitle?: undefined;
738
+ imageUrl?: undefined;
739
+ actions?: undefined;
740
+ items?: undefined;
741
+ text?: undefined;
742
+ options?: undefined;
743
+ fileUrl?: undefined;
744
+ latitude?: undefined;
745
+ longitude?: undefined;
746
+ address?: undefined;
747
+ videoUrl?: undefined;
748
+ };
749
+ required: string[];
750
+ additionalProperties: boolean;
751
+ } | {
752
+ type: string;
753
+ properties: {
754
+ text: {
755
+ type: string;
756
+ minLength: number;
757
+ };
758
+ type: {
759
+ type: string;
760
+ const: string;
761
+ };
762
+ audioUrl?: undefined;
763
+ title?: undefined;
764
+ subtitle?: undefined;
765
+ imageUrl?: undefined;
766
+ actions?: undefined;
767
+ items?: undefined;
768
+ options?: undefined;
769
+ fileUrl?: undefined;
770
+ latitude?: undefined;
771
+ longitude?: undefined;
772
+ address?: undefined;
773
+ markdown?: undefined;
774
+ videoUrl?: undefined;
775
+ };
776
+ required: string[];
777
+ additionalProperties: boolean;
778
+ } | {
779
+ type: string;
780
+ properties: {
781
+ videoUrl: {
782
+ type: string;
783
+ minLength: number;
784
+ };
785
+ type: {
786
+ type: string;
787
+ const: string;
788
+ };
789
+ audioUrl?: undefined;
790
+ title?: undefined;
791
+ subtitle?: undefined;
792
+ imageUrl?: undefined;
793
+ actions?: undefined;
794
+ items?: undefined;
795
+ text?: undefined;
796
+ options?: undefined;
797
+ fileUrl?: undefined;
798
+ latitude?: undefined;
799
+ longitude?: undefined;
800
+ address?: undefined;
801
+ markdown?: undefined;
802
+ };
803
+ required: string[];
804
+ additionalProperties: boolean;
805
+ })[];
806
+ };
807
+ userId: {
808
+ type: string;
809
+ };
810
+ conversationId: {
811
+ type: string;
812
+ };
813
+ };
814
+ required: string[];
815
+ additionalProperties: boolean;
816
+ $schema: string;
817
+ };
818
+ user: {
819
+ type: string;
820
+ properties: {
821
+ name: {
822
+ type: string;
823
+ };
824
+ pictureUrl: {
825
+ type: string;
826
+ };
827
+ profile: {
828
+ type: string;
829
+ };
830
+ id: {
831
+ type: string;
832
+ };
833
+ createdAt: {
834
+ type: string;
835
+ format: string;
836
+ };
837
+ updatedAt: {
838
+ type: string;
839
+ format: string;
840
+ };
841
+ };
842
+ required: string[];
843
+ additionalProperties: boolean;
844
+ $schema: string;
845
+ };
846
+ };
847
+ export type Types = {
848
+ conversation: Conversation;
849
+ message: Message;
850
+ user: User;
851
+ };