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