@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,608 @@
1
+ import { z } from "zod";
2
+ declare const _default: z.ZodObject<{
3
+ type: z.ZodLiteral<"message_created">;
4
+ data: z.ZodObject<{
5
+ id: z.ZodString;
6
+ createdAt: z.ZodString;
7
+ payload: z.ZodUnion<[z.ZodObject<{
8
+ audioUrl: z.ZodString;
9
+ className: z.ZodOptional<z.ZodString>;
10
+ type: z.ZodLiteral<"audio">;
11
+ }, "strip", z.ZodTypeAny, {
12
+ type: "audio";
13
+ audioUrl: string;
14
+ className?: string | undefined;
15
+ }, {
16
+ type: "audio";
17
+ audioUrl: string;
18
+ className?: string | undefined;
19
+ }>, z.ZodObject<{
20
+ title: z.ZodString;
21
+ subtitle: z.ZodOptional<z.ZodString>;
22
+ imageUrl: z.ZodOptional<z.ZodString>;
23
+ actions: z.ZodArray<z.ZodObject<{
24
+ action: z.ZodEnum<["postback", "url", "say"]>;
25
+ label: z.ZodString;
26
+ value: z.ZodString;
27
+ }, "strip", z.ZodTypeAny, {
28
+ value: string;
29
+ action: "url" | "postback" | "say";
30
+ label: string;
31
+ }, {
32
+ value: string;
33
+ action: "url" | "postback" | "say";
34
+ label: string;
35
+ }>, "many">;
36
+ type: z.ZodLiteral<"card">;
37
+ className: z.ZodOptional<z.ZodString>;
38
+ }, "strip", z.ZodTypeAny, {
39
+ title: string;
40
+ type: "card";
41
+ actions: {
42
+ value: string;
43
+ action: "url" | "postback" | "say";
44
+ label: string;
45
+ }[];
46
+ subtitle?: string | undefined;
47
+ imageUrl?: string | undefined;
48
+ className?: string | undefined;
49
+ }, {
50
+ title: string;
51
+ type: "card";
52
+ actions: {
53
+ value: string;
54
+ action: "url" | "postback" | "say";
55
+ label: string;
56
+ }[];
57
+ subtitle?: string | undefined;
58
+ imageUrl?: string | undefined;
59
+ className?: string | undefined;
60
+ }>, z.ZodObject<{
61
+ items: z.ZodArray<z.ZodObject<{
62
+ title: z.ZodString;
63
+ subtitle: z.ZodOptional<z.ZodString>;
64
+ imageUrl: z.ZodOptional<z.ZodString>;
65
+ actions: z.ZodArray<z.ZodObject<{
66
+ action: z.ZodEnum<["postback", "url", "say"]>;
67
+ label: z.ZodString;
68
+ value: z.ZodString;
69
+ }, "strip", z.ZodTypeAny, {
70
+ value: string;
71
+ action: "url" | "postback" | "say";
72
+ label: string;
73
+ }, {
74
+ value: string;
75
+ action: "url" | "postback" | "say";
76
+ label: string;
77
+ }>, "many">;
78
+ className: z.ZodOptional<z.ZodString>;
79
+ }, "strip", z.ZodTypeAny, {
80
+ title: string;
81
+ actions: {
82
+ value: string;
83
+ action: "url" | "postback" | "say";
84
+ label: string;
85
+ }[];
86
+ subtitle?: string | undefined;
87
+ imageUrl?: string | undefined;
88
+ className?: string | undefined;
89
+ }, {
90
+ title: string;
91
+ actions: {
92
+ value: string;
93
+ action: "url" | "postback" | "say";
94
+ label: string;
95
+ }[];
96
+ subtitle?: string | undefined;
97
+ imageUrl?: string | undefined;
98
+ className?: string | undefined;
99
+ }>, "many">;
100
+ className: z.ZodOptional<z.ZodString>;
101
+ type: z.ZodLiteral<"carousel">;
102
+ }, "strip", z.ZodTypeAny, {
103
+ type: "carousel";
104
+ items: {
105
+ title: string;
106
+ actions: {
107
+ value: string;
108
+ action: "url" | "postback" | "say";
109
+ label: string;
110
+ }[];
111
+ subtitle?: string | undefined;
112
+ imageUrl?: string | undefined;
113
+ className?: string | undefined;
114
+ }[];
115
+ className?: string | undefined;
116
+ }, {
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
+ }>, z.ZodObject<{
131
+ text: z.ZodString;
132
+ options: z.ZodArray<z.ZodObject<{
133
+ label: z.ZodString;
134
+ value: z.ZodString;
135
+ }, "strip", z.ZodTypeAny, {
136
+ value: string;
137
+ label: string;
138
+ }, {
139
+ value: string;
140
+ label: string;
141
+ }>, "many">;
142
+ className: z.ZodOptional<z.ZodString>;
143
+ type: z.ZodLiteral<"choice">;
144
+ disableFreeText: z.ZodOptional<z.ZodBoolean>;
145
+ }, "strip", z.ZodTypeAny, {
146
+ options: {
147
+ value: string;
148
+ label: string;
149
+ }[];
150
+ type: "choice";
151
+ text: string;
152
+ className?: string | undefined;
153
+ disableFreeText?: boolean | undefined;
154
+ }, {
155
+ options: {
156
+ value: string;
157
+ label: string;
158
+ }[];
159
+ type: "choice";
160
+ text: string;
161
+ className?: string | undefined;
162
+ disableFreeText?: boolean | undefined;
163
+ }>, z.ZodObject<{
164
+ text: z.ZodString;
165
+ options: z.ZodArray<z.ZodObject<{
166
+ label: z.ZodString;
167
+ value: z.ZodString;
168
+ }, "strip", z.ZodTypeAny, {
169
+ value: string;
170
+ label: string;
171
+ }, {
172
+ value: string;
173
+ label: string;
174
+ }>, "many">;
175
+ className: z.ZodOptional<z.ZodString>;
176
+ type: z.ZodLiteral<"dropdown">;
177
+ }, "strip", z.ZodTypeAny, {
178
+ options: {
179
+ value: string;
180
+ label: string;
181
+ }[];
182
+ type: "dropdown";
183
+ text: string;
184
+ className?: string | undefined;
185
+ }, {
186
+ options: {
187
+ value: string;
188
+ label: string;
189
+ }[];
190
+ type: "dropdown";
191
+ text: string;
192
+ className?: string | undefined;
193
+ }>, z.ZodObject<{
194
+ fileUrl: z.ZodString;
195
+ title: z.ZodOptional<z.ZodString>;
196
+ className: z.ZodOptional<z.ZodString>;
197
+ type: z.ZodLiteral<"file">;
198
+ }, "strip", z.ZodTypeAny, {
199
+ type: "file";
200
+ fileUrl: string;
201
+ title?: string | undefined;
202
+ className?: string | undefined;
203
+ }, {
204
+ type: "file";
205
+ fileUrl: string;
206
+ title?: string | undefined;
207
+ className?: string | undefined;
208
+ }>, z.ZodObject<{
209
+ imageUrl: z.ZodString;
210
+ className: z.ZodOptional<z.ZodString>;
211
+ type: z.ZodLiteral<"image">;
212
+ }, "strip", z.ZodTypeAny, {
213
+ type: "image";
214
+ imageUrl: string;
215
+ className?: string | undefined;
216
+ }, {
217
+ type: "image";
218
+ imageUrl: string;
219
+ className?: string | undefined;
220
+ }>, z.ZodObject<{
221
+ latitude: z.ZodNumber;
222
+ longitude: z.ZodNumber;
223
+ address: z.ZodOptional<z.ZodString>;
224
+ title: z.ZodOptional<z.ZodString>;
225
+ className: z.ZodOptional<z.ZodString>;
226
+ type: z.ZodLiteral<"location">;
227
+ }, "strip", z.ZodTypeAny, {
228
+ type: "location";
229
+ latitude: number;
230
+ longitude: number;
231
+ address?: string | undefined;
232
+ title?: string | undefined;
233
+ className?: string | undefined;
234
+ }, {
235
+ type: "location";
236
+ latitude: number;
237
+ longitude: number;
238
+ address?: string | undefined;
239
+ title?: string | undefined;
240
+ className?: string | undefined;
241
+ }>, z.ZodObject<{
242
+ markdown: z.ZodString;
243
+ className: z.ZodOptional<z.ZodString>;
244
+ type: z.ZodLiteral<"markdown">;
245
+ }, "strip", z.ZodTypeAny, {
246
+ type: "markdown";
247
+ markdown: string;
248
+ className?: string | undefined;
249
+ }, {
250
+ type: "markdown";
251
+ markdown: string;
252
+ className?: string | undefined;
253
+ }>, z.ZodObject<{
254
+ text: z.ZodString;
255
+ className: z.ZodOptional<z.ZodString>;
256
+ type: z.ZodLiteral<"text">;
257
+ }, "strip", z.ZodTypeAny, {
258
+ type: "text";
259
+ text: string;
260
+ className?: string | undefined;
261
+ }, {
262
+ type: "text";
263
+ text: string;
264
+ className?: string | undefined;
265
+ }>, z.ZodObject<{
266
+ videoUrl: z.ZodString;
267
+ className: z.ZodOptional<z.ZodString>;
268
+ type: z.ZodLiteral<"video">;
269
+ }, "strip", z.ZodTypeAny, {
270
+ type: "video";
271
+ videoUrl: string;
272
+ className?: string | undefined;
273
+ }, {
274
+ type: "video";
275
+ videoUrl: string;
276
+ className?: string | undefined;
277
+ }>]>;
278
+ userId: z.ZodString;
279
+ conversationId: z.ZodString;
280
+ }, "strip", z.ZodTypeAny, {
281
+ payload: {
282
+ type: "audio";
283
+ audioUrl: string;
284
+ className?: string | undefined;
285
+ } | {
286
+ title: string;
287
+ type: "card";
288
+ actions: {
289
+ value: string;
290
+ action: "url" | "postback" | "say";
291
+ label: string;
292
+ }[];
293
+ subtitle?: string | undefined;
294
+ imageUrl?: string | undefined;
295
+ className?: string | undefined;
296
+ } | {
297
+ type: "carousel";
298
+ items: {
299
+ title: string;
300
+ actions: {
301
+ value: string;
302
+ action: "url" | "postback" | "say";
303
+ label: string;
304
+ }[];
305
+ subtitle?: string | undefined;
306
+ imageUrl?: string | undefined;
307
+ className?: string | undefined;
308
+ }[];
309
+ className?: string | undefined;
310
+ } | {
311
+ options: {
312
+ value: string;
313
+ label: string;
314
+ }[];
315
+ type: "choice";
316
+ text: string;
317
+ className?: string | undefined;
318
+ disableFreeText?: boolean | undefined;
319
+ } | {
320
+ options: {
321
+ value: string;
322
+ label: string;
323
+ }[];
324
+ type: "dropdown";
325
+ text: string;
326
+ className?: string | undefined;
327
+ } | {
328
+ type: "file";
329
+ fileUrl: string;
330
+ title?: string | undefined;
331
+ className?: string | undefined;
332
+ } | {
333
+ type: "image";
334
+ imageUrl: string;
335
+ className?: string | undefined;
336
+ } | {
337
+ type: "location";
338
+ latitude: number;
339
+ longitude: number;
340
+ address?: string | undefined;
341
+ title?: string | undefined;
342
+ className?: string | undefined;
343
+ } | {
344
+ type: "markdown";
345
+ markdown: string;
346
+ className?: string | undefined;
347
+ } | {
348
+ type: "text";
349
+ text: string;
350
+ className?: string | undefined;
351
+ } | {
352
+ type: "video";
353
+ videoUrl: string;
354
+ className?: string | undefined;
355
+ };
356
+ id: string;
357
+ userId: string;
358
+ conversationId: string;
359
+ createdAt: string;
360
+ }, {
361
+ payload: {
362
+ type: "audio";
363
+ audioUrl: string;
364
+ className?: string | undefined;
365
+ } | {
366
+ title: string;
367
+ type: "card";
368
+ actions: {
369
+ value: string;
370
+ action: "url" | "postback" | "say";
371
+ label: string;
372
+ }[];
373
+ subtitle?: string | undefined;
374
+ imageUrl?: string | undefined;
375
+ className?: string | undefined;
376
+ } | {
377
+ type: "carousel";
378
+ items: {
379
+ title: string;
380
+ actions: {
381
+ value: string;
382
+ action: "url" | "postback" | "say";
383
+ label: string;
384
+ }[];
385
+ subtitle?: string | undefined;
386
+ imageUrl?: string | undefined;
387
+ className?: string | undefined;
388
+ }[];
389
+ className?: string | undefined;
390
+ } | {
391
+ options: {
392
+ value: string;
393
+ label: string;
394
+ }[];
395
+ type: "choice";
396
+ text: string;
397
+ className?: string | undefined;
398
+ disableFreeText?: boolean | undefined;
399
+ } | {
400
+ options: {
401
+ value: string;
402
+ label: string;
403
+ }[];
404
+ type: "dropdown";
405
+ text: string;
406
+ className?: string | undefined;
407
+ } | {
408
+ type: "file";
409
+ fileUrl: string;
410
+ title?: string | undefined;
411
+ className?: string | undefined;
412
+ } | {
413
+ type: "image";
414
+ imageUrl: string;
415
+ className?: string | undefined;
416
+ } | {
417
+ type: "location";
418
+ latitude: number;
419
+ longitude: number;
420
+ address?: string | undefined;
421
+ title?: string | undefined;
422
+ className?: string | undefined;
423
+ } | {
424
+ type: "markdown";
425
+ markdown: string;
426
+ className?: string | undefined;
427
+ } | {
428
+ type: "text";
429
+ text: string;
430
+ className?: string | undefined;
431
+ } | {
432
+ type: "video";
433
+ videoUrl: string;
434
+ className?: string | undefined;
435
+ };
436
+ id: string;
437
+ userId: string;
438
+ conversationId: string;
439
+ createdAt: string;
440
+ }>;
441
+ }, "strip", z.ZodTypeAny, {
442
+ type: "message_created";
443
+ data: {
444
+ payload: {
445
+ type: "audio";
446
+ audioUrl: string;
447
+ className?: string | undefined;
448
+ } | {
449
+ title: string;
450
+ type: "card";
451
+ actions: {
452
+ value: string;
453
+ action: "url" | "postback" | "say";
454
+ label: string;
455
+ }[];
456
+ subtitle?: string | undefined;
457
+ imageUrl?: string | undefined;
458
+ className?: string | undefined;
459
+ } | {
460
+ type: "carousel";
461
+ items: {
462
+ title: string;
463
+ actions: {
464
+ value: string;
465
+ action: "url" | "postback" | "say";
466
+ label: string;
467
+ }[];
468
+ subtitle?: string | undefined;
469
+ imageUrl?: string | undefined;
470
+ className?: string | undefined;
471
+ }[];
472
+ className?: string | undefined;
473
+ } | {
474
+ options: {
475
+ value: string;
476
+ label: string;
477
+ }[];
478
+ type: "choice";
479
+ text: string;
480
+ className?: string | undefined;
481
+ disableFreeText?: boolean | undefined;
482
+ } | {
483
+ options: {
484
+ value: string;
485
+ label: string;
486
+ }[];
487
+ type: "dropdown";
488
+ text: string;
489
+ className?: string | undefined;
490
+ } | {
491
+ type: "file";
492
+ fileUrl: string;
493
+ title?: string | undefined;
494
+ className?: string | undefined;
495
+ } | {
496
+ type: "image";
497
+ imageUrl: string;
498
+ className?: string | undefined;
499
+ } | {
500
+ type: "location";
501
+ latitude: number;
502
+ longitude: number;
503
+ address?: string | undefined;
504
+ title?: string | undefined;
505
+ className?: string | undefined;
506
+ } | {
507
+ type: "markdown";
508
+ markdown: string;
509
+ className?: string | undefined;
510
+ } | {
511
+ type: "text";
512
+ text: string;
513
+ className?: string | undefined;
514
+ } | {
515
+ type: "video";
516
+ videoUrl: string;
517
+ className?: string | undefined;
518
+ };
519
+ id: string;
520
+ userId: string;
521
+ conversationId: string;
522
+ createdAt: string;
523
+ };
524
+ }, {
525
+ type: "message_created";
526
+ data: {
527
+ payload: {
528
+ type: "audio";
529
+ audioUrl: string;
530
+ className?: string | undefined;
531
+ } | {
532
+ title: string;
533
+ type: "card";
534
+ actions: {
535
+ value: string;
536
+ action: "url" | "postback" | "say";
537
+ label: string;
538
+ }[];
539
+ subtitle?: string | undefined;
540
+ imageUrl?: string | undefined;
541
+ className?: string | undefined;
542
+ } | {
543
+ type: "carousel";
544
+ items: {
545
+ title: string;
546
+ actions: {
547
+ value: string;
548
+ action: "url" | "postback" | "say";
549
+ label: string;
550
+ }[];
551
+ subtitle?: string | undefined;
552
+ imageUrl?: string | undefined;
553
+ className?: string | undefined;
554
+ }[];
555
+ className?: string | undefined;
556
+ } | {
557
+ options: {
558
+ value: string;
559
+ label: string;
560
+ }[];
561
+ type: "choice";
562
+ text: string;
563
+ className?: string | undefined;
564
+ disableFreeText?: boolean | undefined;
565
+ } | {
566
+ options: {
567
+ value: string;
568
+ label: string;
569
+ }[];
570
+ type: "dropdown";
571
+ text: string;
572
+ className?: string | undefined;
573
+ } | {
574
+ type: "file";
575
+ fileUrl: string;
576
+ title?: string | undefined;
577
+ className?: string | undefined;
578
+ } | {
579
+ type: "image";
580
+ imageUrl: string;
581
+ className?: string | undefined;
582
+ } | {
583
+ type: "location";
584
+ latitude: number;
585
+ longitude: number;
586
+ address?: string | undefined;
587
+ title?: string | undefined;
588
+ className?: string | undefined;
589
+ } | {
590
+ type: "markdown";
591
+ markdown: string;
592
+ className?: string | undefined;
593
+ } | {
594
+ type: "text";
595
+ text: string;
596
+ className?: string | undefined;
597
+ } | {
598
+ type: "video";
599
+ videoUrl: string;
600
+ className?: string | undefined;
601
+ };
602
+ id: string;
603
+ userId: string;
604
+ conversationId: string;
605
+ createdAt: string;
606
+ };
607
+ }>;
608
+ export default _default;
@@ -0,0 +1,24 @@
1
+ declare const _default: {
2
+ type: string;
3
+ properties: {
4
+ type: {
5
+ type: string;
6
+ const: string;
7
+ };
8
+ data: {
9
+ type: string;
10
+ properties: {
11
+ config: {
12
+ type: string;
13
+ additionalProperties: {};
14
+ };
15
+ };
16
+ required: string[];
17
+ additionalProperties: boolean;
18
+ };
19
+ };
20
+ required: string[];
21
+ additionalProperties: boolean;
22
+ $schema: string;
23
+ };
24
+ export default _default;
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was automatically generated by json-schema-to-typescript.
3
+ * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
4
+ * and run json-schema-to-typescript to regenerate this file.
5
+ */
6
+ export interface WebchatConfigSignal {
7
+ type: "webchat_config";
8
+ data: {
9
+ config: {
10
+ [k: string]: any;
11
+ };
12
+ };
13
+ }
@@ -0,0 +1,22 @@
1
+ import { z } from "zod";
2
+ declare const _default: z.ZodObject<{
3
+ type: z.ZodLiteral<"webchat_config">;
4
+ data: z.ZodObject<{
5
+ config: z.ZodRecord<z.ZodString, z.ZodAny>;
6
+ }, "strip", z.ZodTypeAny, {
7
+ config: Record<string, any>;
8
+ }, {
9
+ config: Record<string, any>;
10
+ }>;
11
+ }, "strip", z.ZodTypeAny, {
12
+ type: "webchat_config";
13
+ data: {
14
+ config: Record<string, any>;
15
+ };
16
+ }, {
17
+ type: "webchat_config";
18
+ data: {
19
+ config: Record<string, any>;
20
+ };
21
+ }>;
22
+ export default _default;
@@ -0,0 +1,24 @@
1
+ declare const _default: {
2
+ type: string;
3
+ properties: {
4
+ type: {
5
+ type: string;
6
+ const: string;
7
+ };
8
+ data: {
9
+ type: string;
10
+ properties: {
11
+ visibility: {
12
+ type: string;
13
+ enum: string[];
14
+ };
15
+ };
16
+ required: string[];
17
+ additionalProperties: boolean;
18
+ };
19
+ };
20
+ required: string[];
21
+ additionalProperties: boolean;
22
+ $schema: string;
23
+ };
24
+ export default _default;
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was automatically generated by json-schema-to-typescript.
3
+ * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
4
+ * and run json-schema-to-typescript to regenerate this file.
5
+ */
6
+ export interface WebchatVisibilitySignal {
7
+ type: "webchat_visibility";
8
+ data: {
9
+ visibility: "show" | "hide" | "toggle";
10
+ };
11
+ }