@botpress/webchat 2.3.1 → 2.3.2

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 (37) hide show
  1. package/.eslintrc.js +11 -0
  2. package/.turbo/turbo-build.log +16 -15
  3. package/dist/adapters/index.d.ts +1 -6
  4. package/dist/adapters/target.d.ts +1 -6
  5. package/dist/adapters/typings.d.ts +1 -6
  6. package/dist/adapters/webchat-to-target.d.ts +8 -0
  7. package/dist/adapters/webchat.d.ts +3 -1986
  8. package/dist/client/state-machine.d.ts +1 -1
  9. package/dist/client/types.d.ts +1 -0
  10. package/dist/components/MessageList/MessageList.d.ts +1 -1
  11. package/dist/components/renderers/Audio/Audio.d.ts +1 -0
  12. package/dist/components/renderers/Carousel/Carousel.d.ts +1 -0
  13. package/dist/components/renderers/File/File.d.ts +1 -0
  14. package/dist/components/renderers/Image/Image.d.ts +1 -0
  15. package/dist/components/renderers/Location/Location.d.ts +1 -0
  16. package/dist/components/renderers/Video/Video.d.ts +1 -0
  17. package/dist/gen/signals/index.d.ts +34 -34
  18. package/dist/gen/signals/messageCreated.z.d.ts +34 -34
  19. package/dist/index.js +67478 -25250
  20. package/dist/index.umd.cjs +172 -127
  21. package/dist/schemas/init.d.ts +14 -14
  22. package/dist/schemas/theme.d.ts +8 -8
  23. package/dist/stores/offlineStore.d.ts +1 -1
  24. package/dist/stores/webchatStore.d.ts +2 -2
  25. package/dist/types/block-type.d.ts +2 -0
  26. package/package.json +21 -22
  27. package/dist/adapters/adapters/messaging-to-target.d.ts +0 -184
  28. package/dist/adapters/adapters/messaging-to-webchat.d.ts +0 -5
  29. package/dist/adapters/adapters/webchat-to-messaging.d.ts +0 -223
  30. package/dist/adapters/adapters/webchat-to-target.d.ts +0 -197
  31. package/dist/adapters/messaging.d.ts +0 -1455
  32. package/dist/adapters/sdk.d.ts +0 -472
  33. package/dist/client/inner-client/event-emitter.d.ts +0 -10
  34. package/dist/client/inner-client/eventsource.d.ts +0 -22
  35. package/dist/client/inner-client/index.d.ts +0 -42
  36. package/dist/client/inner-client/signal-listener.d.ts +0 -47
  37. package/openapi.ts +0 -35
@@ -1,1455 +0,0 @@
1
- import * as types from './typings';
2
- import { z } from 'zod';
3
- export declare const audioSchema: z.ZodObject<{
4
- className: z.ZodOptional<z.ZodString>;
5
- avatarUrl: z.ZodOptional<z.ZodString>;
6
- type: z.ZodLiteral<"audio">;
7
- audio: z.ZodString;
8
- title: z.ZodOptional<z.ZodString>;
9
- }, "strip", z.ZodTypeAny, {
10
- type: "audio";
11
- audio: string;
12
- className?: string | undefined;
13
- avatarUrl?: string | undefined;
14
- title?: string | undefined;
15
- }, {
16
- type: "audio";
17
- audio: string;
18
- className?: string | undefined;
19
- avatarUrl?: string | undefined;
20
- title?: string | undefined;
21
- }>;
22
- export declare const cardSchema: z.ZodObject<{
23
- className: z.ZodOptional<z.ZodString>;
24
- avatarUrl: z.ZodOptional<z.ZodString>;
25
- type: z.ZodLiteral<"card">;
26
- title: z.ZodString;
27
- subtitle: z.ZodOptional<z.ZodString>;
28
- image: z.ZodOptional<z.ZodString>;
29
- actions: z.ZodArray<z.ZodUnion<[z.ZodObject<{
30
- title: z.ZodString;
31
- action: z.ZodLiteral<"Say something">;
32
- text: z.ZodString;
33
- }, "strip", z.ZodTypeAny, {
34
- text: string;
35
- title: string;
36
- action: "Say something";
37
- }, {
38
- text: string;
39
- title: string;
40
- action: "Say something";
41
- }>, z.ZodObject<{
42
- title: z.ZodString;
43
- action: z.ZodLiteral<"Open URL">;
44
- url: z.ZodString;
45
- }, "strip", z.ZodTypeAny, {
46
- title: string;
47
- action: "Open URL";
48
- url: string;
49
- }, {
50
- title: string;
51
- action: "Open URL";
52
- url: string;
53
- }>, z.ZodObject<{
54
- title: z.ZodString;
55
- action: z.ZodLiteral<"Postback">;
56
- payload: z.ZodString;
57
- }, "strip", z.ZodTypeAny, {
58
- title: string;
59
- action: "Postback";
60
- payload: string;
61
- }, {
62
- title: string;
63
- action: "Postback";
64
- payload: string;
65
- }>]>, "many">;
66
- }, "strip", z.ZodTypeAny, {
67
- type: "card";
68
- title: string;
69
- actions: ({
70
- text: string;
71
- title: string;
72
- action: "Say something";
73
- } | {
74
- title: string;
75
- action: "Open URL";
76
- url: string;
77
- } | {
78
- title: string;
79
- action: "Postback";
80
- payload: string;
81
- })[];
82
- className?: string | undefined;
83
- avatarUrl?: string | undefined;
84
- subtitle?: string | undefined;
85
- image?: string | undefined;
86
- }, {
87
- type: "card";
88
- title: string;
89
- actions: ({
90
- text: string;
91
- title: string;
92
- action: "Say something";
93
- } | {
94
- title: string;
95
- action: "Open URL";
96
- url: string;
97
- } | {
98
- title: string;
99
- action: "Postback";
100
- payload: string;
101
- })[];
102
- className?: string | undefined;
103
- avatarUrl?: string | undefined;
104
- subtitle?: string | undefined;
105
- image?: string | undefined;
106
- }>;
107
- export declare const carouselSchame: z.ZodObject<{
108
- className: z.ZodOptional<z.ZodString>;
109
- avatarUrl: z.ZodOptional<z.ZodString>;
110
- type: z.ZodLiteral<"carousel">;
111
- items: z.ZodArray<z.ZodObject<{
112
- className: z.ZodOptional<z.ZodString>;
113
- avatarUrl: z.ZodOptional<z.ZodString>;
114
- type: z.ZodLiteral<"card">;
115
- title: z.ZodString;
116
- subtitle: z.ZodOptional<z.ZodString>;
117
- image: z.ZodOptional<z.ZodString>;
118
- actions: z.ZodArray<z.ZodUnion<[z.ZodObject<{
119
- title: z.ZodString;
120
- action: z.ZodLiteral<"Say something">;
121
- text: z.ZodString;
122
- }, "strip", z.ZodTypeAny, {
123
- text: string;
124
- title: string;
125
- action: "Say something";
126
- }, {
127
- text: string;
128
- title: string;
129
- action: "Say something";
130
- }>, z.ZodObject<{
131
- title: z.ZodString;
132
- action: z.ZodLiteral<"Open URL">;
133
- url: z.ZodString;
134
- }, "strip", z.ZodTypeAny, {
135
- title: string;
136
- action: "Open URL";
137
- url: string;
138
- }, {
139
- title: string;
140
- action: "Open URL";
141
- url: string;
142
- }>, z.ZodObject<{
143
- title: z.ZodString;
144
- action: z.ZodLiteral<"Postback">;
145
- payload: z.ZodString;
146
- }, "strip", z.ZodTypeAny, {
147
- title: string;
148
- action: "Postback";
149
- payload: string;
150
- }, {
151
- title: string;
152
- action: "Postback";
153
- payload: string;
154
- }>]>, "many">;
155
- }, "strip", z.ZodTypeAny, {
156
- type: "card";
157
- title: string;
158
- actions: ({
159
- text: string;
160
- title: string;
161
- action: "Say something";
162
- } | {
163
- title: string;
164
- action: "Open URL";
165
- url: string;
166
- } | {
167
- title: string;
168
- action: "Postback";
169
- payload: string;
170
- })[];
171
- className?: string | undefined;
172
- avatarUrl?: string | undefined;
173
- subtitle?: string | undefined;
174
- image?: string | undefined;
175
- }, {
176
- type: "card";
177
- title: string;
178
- actions: ({
179
- text: string;
180
- title: string;
181
- action: "Say something";
182
- } | {
183
- title: string;
184
- action: "Open URL";
185
- url: string;
186
- } | {
187
- title: string;
188
- action: "Postback";
189
- payload: string;
190
- })[];
191
- className?: string | undefined;
192
- avatarUrl?: string | undefined;
193
- subtitle?: string | undefined;
194
- image?: string | undefined;
195
- }>, "many">;
196
- }, "strip", z.ZodTypeAny, {
197
- type: "carousel";
198
- items: {
199
- type: "card";
200
- title: string;
201
- actions: ({
202
- text: string;
203
- title: string;
204
- action: "Say something";
205
- } | {
206
- title: string;
207
- action: "Open URL";
208
- url: string;
209
- } | {
210
- title: string;
211
- action: "Postback";
212
- payload: string;
213
- })[];
214
- className?: string | undefined;
215
- avatarUrl?: string | undefined;
216
- subtitle?: string | undefined;
217
- image?: string | undefined;
218
- }[];
219
- className?: string | undefined;
220
- avatarUrl?: string | undefined;
221
- }, {
222
- type: "carousel";
223
- items: {
224
- type: "card";
225
- title: string;
226
- actions: ({
227
- text: string;
228
- title: string;
229
- action: "Say something";
230
- } | {
231
- title: string;
232
- action: "Open URL";
233
- url: string;
234
- } | {
235
- title: string;
236
- action: "Postback";
237
- payload: string;
238
- })[];
239
- className?: string | undefined;
240
- avatarUrl?: string | undefined;
241
- subtitle?: string | undefined;
242
- image?: string | undefined;
243
- }[];
244
- className?: string | undefined;
245
- avatarUrl?: string | undefined;
246
- }>;
247
- export declare const dropdownSchema: z.ZodObject<{
248
- className: z.ZodOptional<z.ZodString>;
249
- avatarUrl: z.ZodOptional<z.ZodString>;
250
- type: z.ZodLiteral<"dropdown">;
251
- message: z.ZodOptional<z.ZodString>;
252
- options: z.ZodArray<z.ZodObject<{
253
- label: z.ZodString;
254
- value: z.ZodString;
255
- }, "strip", z.ZodTypeAny, {
256
- value: string;
257
- label: string;
258
- }, {
259
- value: string;
260
- label: string;
261
- }>, "many">;
262
- allowCreation: z.ZodOptional<z.ZodBoolean>;
263
- placeholderText: z.ZodOptional<z.ZodString>;
264
- allowMultiple: z.ZodOptional<z.ZodBoolean>;
265
- buttonText: z.ZodOptional<z.ZodString>;
266
- width: z.ZodOptional<z.ZodNumber>;
267
- displayInKeyboard: z.ZodOptional<z.ZodBoolean>;
268
- markdown: z.ZodOptional<z.ZodBoolean>;
269
- text: z.ZodOptional<z.ZodString>;
270
- }, "strip", z.ZodTypeAny, {
271
- type: "dropdown";
272
- options: {
273
- value: string;
274
- label: string;
275
- }[];
276
- className?: string | undefined;
277
- avatarUrl?: string | undefined;
278
- message?: string | undefined;
279
- allowCreation?: boolean | undefined;
280
- placeholderText?: string | undefined;
281
- allowMultiple?: boolean | undefined;
282
- buttonText?: string | undefined;
283
- width?: number | undefined;
284
- displayInKeyboard?: boolean | undefined;
285
- markdown?: boolean | undefined;
286
- text?: string | undefined;
287
- }, {
288
- type: "dropdown";
289
- options: {
290
- value: string;
291
- label: string;
292
- }[];
293
- className?: string | undefined;
294
- avatarUrl?: string | undefined;
295
- message?: string | undefined;
296
- allowCreation?: boolean | undefined;
297
- placeholderText?: string | undefined;
298
- allowMultiple?: boolean | undefined;
299
- buttonText?: string | undefined;
300
- width?: number | undefined;
301
- displayInKeyboard?: boolean | undefined;
302
- markdown?: boolean | undefined;
303
- text?: string | undefined;
304
- }>;
305
- export declare const fileSchema: z.ZodObject<{
306
- className: z.ZodOptional<z.ZodString>;
307
- avatarUrl: z.ZodOptional<z.ZodString>;
308
- type: z.ZodLiteral<"file">;
309
- file: z.ZodString;
310
- title: z.ZodOptional<z.ZodString>;
311
- }, "strip", z.ZodTypeAny, {
312
- type: "file";
313
- file: string;
314
- className?: string | undefined;
315
- avatarUrl?: string | undefined;
316
- title?: string | undefined;
317
- }, {
318
- type: "file";
319
- file: string;
320
- className?: string | undefined;
321
- avatarUrl?: string | undefined;
322
- title?: string | undefined;
323
- }>;
324
- export declare const imageSchema: z.ZodObject<{
325
- className: z.ZodOptional<z.ZodString>;
326
- avatarUrl: z.ZodOptional<z.ZodString>;
327
- type: z.ZodLiteral<"image">;
328
- image: z.ZodString;
329
- }, "strip", z.ZodTypeAny, {
330
- type: "image";
331
- image: string;
332
- className?: string | undefined;
333
- avatarUrl?: string | undefined;
334
- }, {
335
- type: "image";
336
- image: string;
337
- className?: string | undefined;
338
- avatarUrl?: string | undefined;
339
- }>;
340
- export declare const locationSchema: z.ZodObject<{
341
- className: z.ZodOptional<z.ZodString>;
342
- avatarUrl: z.ZodOptional<z.ZodString>;
343
- type: z.ZodLiteral<"location">;
344
- latitude: z.ZodNumber;
345
- longitude: z.ZodNumber;
346
- address: z.ZodOptional<z.ZodString>;
347
- title: z.ZodOptional<z.ZodString>;
348
- }, "strip", z.ZodTypeAny, {
349
- type: "location";
350
- latitude: number;
351
- longitude: number;
352
- className?: string | undefined;
353
- avatarUrl?: string | undefined;
354
- address?: string | undefined;
355
- title?: string | undefined;
356
- }, {
357
- type: "location";
358
- latitude: number;
359
- longitude: number;
360
- className?: string | undefined;
361
- avatarUrl?: string | undefined;
362
- address?: string | undefined;
363
- title?: string | undefined;
364
- }>;
365
- export declare const singleChoiceSchema: z.ZodObject<{
366
- className: z.ZodOptional<z.ZodString>;
367
- avatarUrl: z.ZodOptional<z.ZodString>;
368
- type: z.ZodLiteral<"single-choice">;
369
- text: z.ZodString;
370
- disableFreeText: z.ZodOptional<z.ZodBoolean>;
371
- choices: z.ZodArray<z.ZodObject<{
372
- title: z.ZodString;
373
- value: z.ZodString;
374
- }, "strip", z.ZodTypeAny, {
375
- value: string;
376
- title: string;
377
- }, {
378
- value: string;
379
- title: string;
380
- }>, "many">;
381
- }, "strip", z.ZodTypeAny, {
382
- type: "single-choice";
383
- text: string;
384
- choices: {
385
- value: string;
386
- title: string;
387
- }[];
388
- className?: string | undefined;
389
- avatarUrl?: string | undefined;
390
- disableFreeText?: boolean | undefined;
391
- }, {
392
- type: "single-choice";
393
- text: string;
394
- choices: {
395
- value: string;
396
- title: string;
397
- }[];
398
- className?: string | undefined;
399
- avatarUrl?: string | undefined;
400
- disableFreeText?: boolean | undefined;
401
- }>;
402
- export declare const textSchema: z.ZodObject<{
403
- className: z.ZodOptional<z.ZodString>;
404
- avatarUrl: z.ZodOptional<z.ZodString>;
405
- type: z.ZodLiteral<"text">;
406
- text: z.ZodString;
407
- markdown: z.ZodOptional<z.ZodBoolean>;
408
- }, "strip", z.ZodTypeAny, {
409
- type: "text";
410
- text: string;
411
- className?: string | undefined;
412
- avatarUrl?: string | undefined;
413
- markdown?: boolean | undefined;
414
- }, {
415
- type: "text";
416
- text: string;
417
- className?: string | undefined;
418
- avatarUrl?: string | undefined;
419
- markdown?: boolean | undefined;
420
- }>;
421
- export declare const videoSchema: z.ZodObject<{
422
- className: z.ZodOptional<z.ZodString>;
423
- avatarUrl: z.ZodOptional<z.ZodString>;
424
- type: z.ZodLiteral<"video">;
425
- video: z.ZodString;
426
- title: z.ZodOptional<z.ZodString>;
427
- }, "strip", z.ZodTypeAny, {
428
- type: "video";
429
- video: string;
430
- className?: string | undefined;
431
- avatarUrl?: string | undefined;
432
- title?: string | undefined;
433
- }, {
434
- type: "video";
435
- video: string;
436
- className?: string | undefined;
437
- avatarUrl?: string | undefined;
438
- title?: string | undefined;
439
- }>;
440
- export declare const quickReplySchema: z.ZodObject<{
441
- type: z.ZodLiteral<"quick_reply">;
442
- text: z.ZodString;
443
- payload: z.ZodOptional<z.ZodString>;
444
- }, "strip", z.ZodTypeAny, {
445
- type: "quick_reply";
446
- text: string;
447
- payload?: string | undefined;
448
- }, {
449
- type: "quick_reply";
450
- text: string;
451
- payload?: string | undefined;
452
- }>;
453
- export declare const messageSchema: z.ZodUnion<[z.ZodObject<{
454
- className: z.ZodOptional<z.ZodString>;
455
- avatarUrl: z.ZodOptional<z.ZodString>;
456
- type: z.ZodLiteral<"audio">;
457
- audio: z.ZodString;
458
- title: z.ZodOptional<z.ZodString>;
459
- }, "strip", z.ZodTypeAny, {
460
- type: "audio";
461
- audio: string;
462
- className?: string | undefined;
463
- avatarUrl?: string | undefined;
464
- title?: string | undefined;
465
- }, {
466
- type: "audio";
467
- audio: string;
468
- className?: string | undefined;
469
- avatarUrl?: string | undefined;
470
- title?: string | undefined;
471
- }>, z.ZodObject<{
472
- className: z.ZodOptional<z.ZodString>;
473
- avatarUrl: z.ZodOptional<z.ZodString>;
474
- type: z.ZodLiteral<"card">;
475
- title: z.ZodString;
476
- subtitle: z.ZodOptional<z.ZodString>;
477
- image: z.ZodOptional<z.ZodString>;
478
- actions: z.ZodArray<z.ZodUnion<[z.ZodObject<{
479
- title: z.ZodString;
480
- action: z.ZodLiteral<"Say something">;
481
- text: z.ZodString;
482
- }, "strip", z.ZodTypeAny, {
483
- text: string;
484
- title: string;
485
- action: "Say something";
486
- }, {
487
- text: string;
488
- title: string;
489
- action: "Say something";
490
- }>, z.ZodObject<{
491
- title: z.ZodString;
492
- action: z.ZodLiteral<"Open URL">;
493
- url: z.ZodString;
494
- }, "strip", z.ZodTypeAny, {
495
- title: string;
496
- action: "Open URL";
497
- url: string;
498
- }, {
499
- title: string;
500
- action: "Open URL";
501
- url: string;
502
- }>, z.ZodObject<{
503
- title: z.ZodString;
504
- action: z.ZodLiteral<"Postback">;
505
- payload: z.ZodString;
506
- }, "strip", z.ZodTypeAny, {
507
- title: string;
508
- action: "Postback";
509
- payload: string;
510
- }, {
511
- title: string;
512
- action: "Postback";
513
- payload: string;
514
- }>]>, "many">;
515
- }, "strip", z.ZodTypeAny, {
516
- type: "card";
517
- title: string;
518
- actions: ({
519
- text: string;
520
- title: string;
521
- action: "Say something";
522
- } | {
523
- title: string;
524
- action: "Open URL";
525
- url: string;
526
- } | {
527
- title: string;
528
- action: "Postback";
529
- payload: string;
530
- })[];
531
- className?: string | undefined;
532
- avatarUrl?: string | undefined;
533
- subtitle?: string | undefined;
534
- image?: string | undefined;
535
- }, {
536
- type: "card";
537
- title: string;
538
- actions: ({
539
- text: string;
540
- title: string;
541
- action: "Say something";
542
- } | {
543
- title: string;
544
- action: "Open URL";
545
- url: string;
546
- } | {
547
- title: string;
548
- action: "Postback";
549
- payload: string;
550
- })[];
551
- className?: string | undefined;
552
- avatarUrl?: string | undefined;
553
- subtitle?: string | undefined;
554
- image?: string | undefined;
555
- }>, z.ZodObject<{
556
- className: z.ZodOptional<z.ZodString>;
557
- avatarUrl: z.ZodOptional<z.ZodString>;
558
- type: z.ZodLiteral<"carousel">;
559
- items: z.ZodArray<z.ZodObject<{
560
- className: z.ZodOptional<z.ZodString>;
561
- avatarUrl: z.ZodOptional<z.ZodString>;
562
- type: z.ZodLiteral<"card">;
563
- title: z.ZodString;
564
- subtitle: z.ZodOptional<z.ZodString>;
565
- image: z.ZodOptional<z.ZodString>;
566
- actions: z.ZodArray<z.ZodUnion<[z.ZodObject<{
567
- title: z.ZodString;
568
- action: z.ZodLiteral<"Say something">;
569
- text: z.ZodString;
570
- }, "strip", z.ZodTypeAny, {
571
- text: string;
572
- title: string;
573
- action: "Say something";
574
- }, {
575
- text: string;
576
- title: string;
577
- action: "Say something";
578
- }>, z.ZodObject<{
579
- title: z.ZodString;
580
- action: z.ZodLiteral<"Open URL">;
581
- url: z.ZodString;
582
- }, "strip", z.ZodTypeAny, {
583
- title: string;
584
- action: "Open URL";
585
- url: string;
586
- }, {
587
- title: string;
588
- action: "Open URL";
589
- url: string;
590
- }>, z.ZodObject<{
591
- title: z.ZodString;
592
- action: z.ZodLiteral<"Postback">;
593
- payload: z.ZodString;
594
- }, "strip", z.ZodTypeAny, {
595
- title: string;
596
- action: "Postback";
597
- payload: string;
598
- }, {
599
- title: string;
600
- action: "Postback";
601
- payload: string;
602
- }>]>, "many">;
603
- }, "strip", z.ZodTypeAny, {
604
- type: "card";
605
- title: string;
606
- actions: ({
607
- text: string;
608
- title: string;
609
- action: "Say something";
610
- } | {
611
- title: string;
612
- action: "Open URL";
613
- url: string;
614
- } | {
615
- title: string;
616
- action: "Postback";
617
- payload: string;
618
- })[];
619
- className?: string | undefined;
620
- avatarUrl?: string | undefined;
621
- subtitle?: string | undefined;
622
- image?: string | undefined;
623
- }, {
624
- type: "card";
625
- title: string;
626
- actions: ({
627
- text: string;
628
- title: string;
629
- action: "Say something";
630
- } | {
631
- title: string;
632
- action: "Open URL";
633
- url: string;
634
- } | {
635
- title: string;
636
- action: "Postback";
637
- payload: string;
638
- })[];
639
- className?: string | undefined;
640
- avatarUrl?: string | undefined;
641
- subtitle?: string | undefined;
642
- image?: string | undefined;
643
- }>, "many">;
644
- }, "strip", z.ZodTypeAny, {
645
- type: "carousel";
646
- items: {
647
- type: "card";
648
- title: string;
649
- actions: ({
650
- text: string;
651
- title: string;
652
- action: "Say something";
653
- } | {
654
- title: string;
655
- action: "Open URL";
656
- url: string;
657
- } | {
658
- title: string;
659
- action: "Postback";
660
- payload: string;
661
- })[];
662
- className?: string | undefined;
663
- avatarUrl?: string | undefined;
664
- subtitle?: string | undefined;
665
- image?: string | undefined;
666
- }[];
667
- className?: string | undefined;
668
- avatarUrl?: string | undefined;
669
- }, {
670
- type: "carousel";
671
- items: {
672
- type: "card";
673
- title: string;
674
- actions: ({
675
- text: string;
676
- title: string;
677
- action: "Say something";
678
- } | {
679
- title: string;
680
- action: "Open URL";
681
- url: string;
682
- } | {
683
- title: string;
684
- action: "Postback";
685
- payload: string;
686
- })[];
687
- className?: string | undefined;
688
- avatarUrl?: string | undefined;
689
- subtitle?: string | undefined;
690
- image?: string | undefined;
691
- }[];
692
- className?: string | undefined;
693
- avatarUrl?: string | undefined;
694
- }>, z.ZodObject<{
695
- className: z.ZodOptional<z.ZodString>;
696
- avatarUrl: z.ZodOptional<z.ZodString>;
697
- type: z.ZodLiteral<"dropdown">;
698
- message: z.ZodOptional<z.ZodString>;
699
- options: z.ZodArray<z.ZodObject<{
700
- label: z.ZodString;
701
- value: z.ZodString;
702
- }, "strip", z.ZodTypeAny, {
703
- value: string;
704
- label: string;
705
- }, {
706
- value: string;
707
- label: string;
708
- }>, "many">;
709
- allowCreation: z.ZodOptional<z.ZodBoolean>;
710
- placeholderText: z.ZodOptional<z.ZodString>;
711
- allowMultiple: z.ZodOptional<z.ZodBoolean>;
712
- buttonText: z.ZodOptional<z.ZodString>;
713
- width: z.ZodOptional<z.ZodNumber>;
714
- displayInKeyboard: z.ZodOptional<z.ZodBoolean>;
715
- markdown: z.ZodOptional<z.ZodBoolean>;
716
- text: z.ZodOptional<z.ZodString>;
717
- }, "strip", z.ZodTypeAny, {
718
- type: "dropdown";
719
- options: {
720
- value: string;
721
- label: string;
722
- }[];
723
- className?: string | undefined;
724
- avatarUrl?: string | undefined;
725
- message?: string | undefined;
726
- allowCreation?: boolean | undefined;
727
- placeholderText?: string | undefined;
728
- allowMultiple?: boolean | undefined;
729
- buttonText?: string | undefined;
730
- width?: number | undefined;
731
- displayInKeyboard?: boolean | undefined;
732
- markdown?: boolean | undefined;
733
- text?: string | undefined;
734
- }, {
735
- type: "dropdown";
736
- options: {
737
- value: string;
738
- label: string;
739
- }[];
740
- className?: string | undefined;
741
- avatarUrl?: string | undefined;
742
- message?: string | undefined;
743
- allowCreation?: boolean | undefined;
744
- placeholderText?: string | undefined;
745
- allowMultiple?: boolean | undefined;
746
- buttonText?: string | undefined;
747
- width?: number | undefined;
748
- displayInKeyboard?: boolean | undefined;
749
- markdown?: boolean | undefined;
750
- text?: string | undefined;
751
- }>, z.ZodObject<{
752
- className: z.ZodOptional<z.ZodString>;
753
- avatarUrl: z.ZodOptional<z.ZodString>;
754
- type: z.ZodLiteral<"file">;
755
- file: z.ZodString;
756
- title: z.ZodOptional<z.ZodString>;
757
- }, "strip", z.ZodTypeAny, {
758
- type: "file";
759
- file: string;
760
- className?: string | undefined;
761
- avatarUrl?: string | undefined;
762
- title?: string | undefined;
763
- }, {
764
- type: "file";
765
- file: string;
766
- className?: string | undefined;
767
- avatarUrl?: string | undefined;
768
- title?: string | undefined;
769
- }>, z.ZodObject<{
770
- className: z.ZodOptional<z.ZodString>;
771
- avatarUrl: z.ZodOptional<z.ZodString>;
772
- type: z.ZodLiteral<"image">;
773
- image: z.ZodString;
774
- }, "strip", z.ZodTypeAny, {
775
- type: "image";
776
- image: string;
777
- className?: string | undefined;
778
- avatarUrl?: string | undefined;
779
- }, {
780
- type: "image";
781
- image: string;
782
- className?: string | undefined;
783
- avatarUrl?: string | undefined;
784
- }>, z.ZodObject<{
785
- className: z.ZodOptional<z.ZodString>;
786
- avatarUrl: z.ZodOptional<z.ZodString>;
787
- type: z.ZodLiteral<"location">;
788
- latitude: z.ZodNumber;
789
- longitude: z.ZodNumber;
790
- address: z.ZodOptional<z.ZodString>;
791
- title: z.ZodOptional<z.ZodString>;
792
- }, "strip", z.ZodTypeAny, {
793
- type: "location";
794
- latitude: number;
795
- longitude: number;
796
- className?: string | undefined;
797
- avatarUrl?: string | undefined;
798
- address?: string | undefined;
799
- title?: string | undefined;
800
- }, {
801
- type: "location";
802
- latitude: number;
803
- longitude: number;
804
- className?: string | undefined;
805
- avatarUrl?: string | undefined;
806
- address?: string | undefined;
807
- title?: string | undefined;
808
- }>, z.ZodObject<{
809
- className: z.ZodOptional<z.ZodString>;
810
- avatarUrl: z.ZodOptional<z.ZodString>;
811
- type: z.ZodLiteral<"single-choice">;
812
- text: z.ZodString;
813
- disableFreeText: z.ZodOptional<z.ZodBoolean>;
814
- choices: z.ZodArray<z.ZodObject<{
815
- title: z.ZodString;
816
- value: z.ZodString;
817
- }, "strip", z.ZodTypeAny, {
818
- value: string;
819
- title: string;
820
- }, {
821
- value: string;
822
- title: string;
823
- }>, "many">;
824
- }, "strip", z.ZodTypeAny, {
825
- type: "single-choice";
826
- text: string;
827
- choices: {
828
- value: string;
829
- title: string;
830
- }[];
831
- className?: string | undefined;
832
- avatarUrl?: string | undefined;
833
- disableFreeText?: boolean | undefined;
834
- }, {
835
- type: "single-choice";
836
- text: string;
837
- choices: {
838
- value: string;
839
- title: string;
840
- }[];
841
- className?: string | undefined;
842
- avatarUrl?: string | undefined;
843
- disableFreeText?: boolean | undefined;
844
- }>, z.ZodObject<{
845
- className: z.ZodOptional<z.ZodString>;
846
- avatarUrl: z.ZodOptional<z.ZodString>;
847
- type: z.ZodLiteral<"text">;
848
- text: z.ZodString;
849
- markdown: z.ZodOptional<z.ZodBoolean>;
850
- }, "strip", z.ZodTypeAny, {
851
- type: "text";
852
- text: string;
853
- className?: string | undefined;
854
- avatarUrl?: string | undefined;
855
- markdown?: boolean | undefined;
856
- }, {
857
- type: "text";
858
- text: string;
859
- className?: string | undefined;
860
- avatarUrl?: string | undefined;
861
- markdown?: boolean | undefined;
862
- }>, z.ZodObject<{
863
- className: z.ZodOptional<z.ZodString>;
864
- avatarUrl: z.ZodOptional<z.ZodString>;
865
- type: z.ZodLiteral<"video">;
866
- video: z.ZodString;
867
- title: z.ZodOptional<z.ZodString>;
868
- }, "strip", z.ZodTypeAny, {
869
- type: "video";
870
- video: string;
871
- className?: string | undefined;
872
- avatarUrl?: string | undefined;
873
- title?: string | undefined;
874
- }, {
875
- type: "video";
876
- video: string;
877
- className?: string | undefined;
878
- avatarUrl?: string | undefined;
879
- title?: string | undefined;
880
- }>, z.ZodObject<{
881
- type: z.ZodLiteral<"quick_reply">;
882
- text: z.ZodString;
883
- payload: z.ZodOptional<z.ZodString>;
884
- }, "strip", z.ZodTypeAny, {
885
- type: "quick_reply";
886
- text: string;
887
- payload?: string | undefined;
888
- }, {
889
- type: "quick_reply";
890
- text: string;
891
- payload?: string | undefined;
892
- }>]>;
893
- export type Message = z.infer<typeof messageSchema>;
894
- /**
895
- * ###############
896
- * ### Signals ###
897
- * ###############
898
- */
899
- export declare const webchatVisibilitySchema: z.ZodObject<{
900
- type: z.ZodLiteral<"webchat-visibility">;
901
- visibility: z.ZodUnion<[z.ZodLiteral<"show">, z.ZodLiteral<"hide">, z.ZodLiteral<"toggle">]>;
902
- }, "strip", z.ZodTypeAny, {
903
- type: "webchat-visibility";
904
- visibility: "show" | "hide" | "toggle";
905
- }, {
906
- type: "webchat-visibility";
907
- visibility: "show" | "hide" | "toggle";
908
- }>;
909
- export declare const webchatConfigSchema: z.ZodObject<{
910
- type: z.ZodLiteral<"webchat-config">;
911
- config: z.ZodRecord<z.ZodString, z.ZodAny>;
912
- }, "strip", z.ZodTypeAny, {
913
- type: "webchat-config";
914
- config: Record<string, any>;
915
- }, {
916
- type: "webchat-config";
917
- config: Record<string, any>;
918
- }>;
919
- export declare const customEventSchema: z.ZodObject<{
920
- type: z.ZodLiteral<"custom-event">;
921
- event: z.ZodRecord<z.ZodString, z.ZodAny>;
922
- }, "strip", z.ZodTypeAny, {
923
- type: "custom-event";
924
- event: Record<string, any>;
925
- }, {
926
- type: "custom-event";
927
- event: Record<string, any>;
928
- }>;
929
- export declare const triggerSchema: z.ZodUnion<[z.ZodObject<{
930
- type: z.ZodLiteral<"webchat-visibility">;
931
- visibility: z.ZodUnion<[z.ZodLiteral<"show">, z.ZodLiteral<"hide">, z.ZodLiteral<"toggle">]>;
932
- }, "strip", z.ZodTypeAny, {
933
- type: "webchat-visibility";
934
- visibility: "show" | "hide" | "toggle";
935
- }, {
936
- type: "webchat-visibility";
937
- visibility: "show" | "hide" | "toggle";
938
- }>, z.ZodObject<{
939
- type: z.ZodLiteral<"webchat-config">;
940
- config: z.ZodRecord<z.ZodString, z.ZodAny>;
941
- }, "strip", z.ZodTypeAny, {
942
- type: "webchat-config";
943
- config: Record<string, any>;
944
- }, {
945
- type: "webchat-config";
946
- config: Record<string, any>;
947
- }>, z.ZodObject<{
948
- type: z.ZodLiteral<"custom-event">;
949
- event: z.ZodRecord<z.ZodString, z.ZodAny>;
950
- }, "strip", z.ZodTypeAny, {
951
- type: "custom-event";
952
- event: Record<string, any>;
953
- }, {
954
- type: "custom-event";
955
- event: Record<string, any>;
956
- }>]>;
957
- export type Trigger = z.infer<typeof triggerSchema>;
958
- export declare const triggerSignalSchema: z.ZodObject<{
959
- type: z.ZodLiteral<"trigger">;
960
- trigger: z.ZodUnion<[z.ZodObject<{
961
- type: z.ZodLiteral<"webchat-visibility">;
962
- visibility: z.ZodUnion<[z.ZodLiteral<"show">, z.ZodLiteral<"hide">, z.ZodLiteral<"toggle">]>;
963
- }, "strip", z.ZodTypeAny, {
964
- type: "webchat-visibility";
965
- visibility: "show" | "hide" | "toggle";
966
- }, {
967
- type: "webchat-visibility";
968
- visibility: "show" | "hide" | "toggle";
969
- }>, z.ZodObject<{
970
- type: z.ZodLiteral<"webchat-config">;
971
- config: z.ZodRecord<z.ZodString, z.ZodAny>;
972
- }, "strip", z.ZodTypeAny, {
973
- type: "webchat-config";
974
- config: Record<string, any>;
975
- }, {
976
- type: "webchat-config";
977
- config: Record<string, any>;
978
- }>, z.ZodObject<{
979
- type: z.ZodLiteral<"custom-event">;
980
- event: z.ZodRecord<z.ZodString, z.ZodAny>;
981
- }, "strip", z.ZodTypeAny, {
982
- type: "custom-event";
983
- event: Record<string, any>;
984
- }, {
985
- type: "custom-event";
986
- event: Record<string, any>;
987
- }>]>;
988
- }, "strip", z.ZodTypeAny, {
989
- type: "trigger";
990
- trigger: {
991
- type: "webchat-visibility";
992
- visibility: "show" | "hide" | "toggle";
993
- } | {
994
- type: "webchat-config";
995
- config: Record<string, any>;
996
- } | {
997
- type: "custom-event";
998
- event: Record<string, any>;
999
- };
1000
- }, {
1001
- type: "trigger";
1002
- trigger: {
1003
- type: "webchat-visibility";
1004
- visibility: "show" | "hide" | "toggle";
1005
- } | {
1006
- type: "webchat-config";
1007
- config: Record<string, any>;
1008
- } | {
1009
- type: "custom-event";
1010
- event: Record<string, any>;
1011
- };
1012
- }>;
1013
- export declare const messageSignalSchema: z.ZodUnion<[z.ZodObject<{
1014
- className: z.ZodOptional<z.ZodString>;
1015
- avatarUrl: z.ZodOptional<z.ZodString>;
1016
- type: z.ZodLiteral<"audio">;
1017
- audio: z.ZodString;
1018
- title: z.ZodOptional<z.ZodString>;
1019
- }, "strip", z.ZodTypeAny, {
1020
- type: "audio";
1021
- audio: string;
1022
- className?: string | undefined;
1023
- avatarUrl?: string | undefined;
1024
- title?: string | undefined;
1025
- }, {
1026
- type: "audio";
1027
- audio: string;
1028
- className?: string | undefined;
1029
- avatarUrl?: string | undefined;
1030
- title?: string | undefined;
1031
- }>, z.ZodObject<{
1032
- className: z.ZodOptional<z.ZodString>;
1033
- avatarUrl: z.ZodOptional<z.ZodString>;
1034
- type: z.ZodLiteral<"card">;
1035
- title: z.ZodString;
1036
- subtitle: z.ZodOptional<z.ZodString>;
1037
- image: z.ZodOptional<z.ZodString>;
1038
- actions: z.ZodArray<z.ZodUnion<[z.ZodObject<{
1039
- title: z.ZodString;
1040
- action: z.ZodLiteral<"Say something">;
1041
- text: z.ZodString;
1042
- }, "strip", z.ZodTypeAny, {
1043
- text: string;
1044
- title: string;
1045
- action: "Say something";
1046
- }, {
1047
- text: string;
1048
- title: string;
1049
- action: "Say something";
1050
- }>, z.ZodObject<{
1051
- title: z.ZodString;
1052
- action: z.ZodLiteral<"Open URL">;
1053
- url: z.ZodString;
1054
- }, "strip", z.ZodTypeAny, {
1055
- title: string;
1056
- action: "Open URL";
1057
- url: string;
1058
- }, {
1059
- title: string;
1060
- action: "Open URL";
1061
- url: string;
1062
- }>, z.ZodObject<{
1063
- title: z.ZodString;
1064
- action: z.ZodLiteral<"Postback">;
1065
- payload: z.ZodString;
1066
- }, "strip", z.ZodTypeAny, {
1067
- title: string;
1068
- action: "Postback";
1069
- payload: string;
1070
- }, {
1071
- title: string;
1072
- action: "Postback";
1073
- payload: string;
1074
- }>]>, "many">;
1075
- }, "strip", z.ZodTypeAny, {
1076
- type: "card";
1077
- title: string;
1078
- actions: ({
1079
- text: string;
1080
- title: string;
1081
- action: "Say something";
1082
- } | {
1083
- title: string;
1084
- action: "Open URL";
1085
- url: string;
1086
- } | {
1087
- title: string;
1088
- action: "Postback";
1089
- payload: string;
1090
- })[];
1091
- className?: string | undefined;
1092
- avatarUrl?: string | undefined;
1093
- subtitle?: string | undefined;
1094
- image?: string | undefined;
1095
- }, {
1096
- type: "card";
1097
- title: string;
1098
- actions: ({
1099
- text: string;
1100
- title: string;
1101
- action: "Say something";
1102
- } | {
1103
- title: string;
1104
- action: "Open URL";
1105
- url: string;
1106
- } | {
1107
- title: string;
1108
- action: "Postback";
1109
- payload: string;
1110
- })[];
1111
- className?: string | undefined;
1112
- avatarUrl?: string | undefined;
1113
- subtitle?: string | undefined;
1114
- image?: string | undefined;
1115
- }>, z.ZodObject<{
1116
- className: z.ZodOptional<z.ZodString>;
1117
- avatarUrl: z.ZodOptional<z.ZodString>;
1118
- type: z.ZodLiteral<"carousel">;
1119
- items: z.ZodArray<z.ZodObject<{
1120
- className: z.ZodOptional<z.ZodString>;
1121
- avatarUrl: z.ZodOptional<z.ZodString>;
1122
- type: z.ZodLiteral<"card">;
1123
- title: z.ZodString;
1124
- subtitle: z.ZodOptional<z.ZodString>;
1125
- image: z.ZodOptional<z.ZodString>;
1126
- actions: z.ZodArray<z.ZodUnion<[z.ZodObject<{
1127
- title: z.ZodString;
1128
- action: z.ZodLiteral<"Say something">;
1129
- text: z.ZodString;
1130
- }, "strip", z.ZodTypeAny, {
1131
- text: string;
1132
- title: string;
1133
- action: "Say something";
1134
- }, {
1135
- text: string;
1136
- title: string;
1137
- action: "Say something";
1138
- }>, z.ZodObject<{
1139
- title: z.ZodString;
1140
- action: z.ZodLiteral<"Open URL">;
1141
- url: z.ZodString;
1142
- }, "strip", z.ZodTypeAny, {
1143
- title: string;
1144
- action: "Open URL";
1145
- url: string;
1146
- }, {
1147
- title: string;
1148
- action: "Open URL";
1149
- url: string;
1150
- }>, z.ZodObject<{
1151
- title: z.ZodString;
1152
- action: z.ZodLiteral<"Postback">;
1153
- payload: z.ZodString;
1154
- }, "strip", z.ZodTypeAny, {
1155
- title: string;
1156
- action: "Postback";
1157
- payload: string;
1158
- }, {
1159
- title: string;
1160
- action: "Postback";
1161
- payload: string;
1162
- }>]>, "many">;
1163
- }, "strip", z.ZodTypeAny, {
1164
- type: "card";
1165
- title: string;
1166
- actions: ({
1167
- text: string;
1168
- title: string;
1169
- action: "Say something";
1170
- } | {
1171
- title: string;
1172
- action: "Open URL";
1173
- url: string;
1174
- } | {
1175
- title: string;
1176
- action: "Postback";
1177
- payload: string;
1178
- })[];
1179
- className?: string | undefined;
1180
- avatarUrl?: string | undefined;
1181
- subtitle?: string | undefined;
1182
- image?: string | undefined;
1183
- }, {
1184
- type: "card";
1185
- title: string;
1186
- actions: ({
1187
- text: string;
1188
- title: string;
1189
- action: "Say something";
1190
- } | {
1191
- title: string;
1192
- action: "Open URL";
1193
- url: string;
1194
- } | {
1195
- title: string;
1196
- action: "Postback";
1197
- payload: string;
1198
- })[];
1199
- className?: string | undefined;
1200
- avatarUrl?: string | undefined;
1201
- subtitle?: string | undefined;
1202
- image?: string | undefined;
1203
- }>, "many">;
1204
- }, "strip", z.ZodTypeAny, {
1205
- type: "carousel";
1206
- items: {
1207
- type: "card";
1208
- title: string;
1209
- actions: ({
1210
- text: string;
1211
- title: string;
1212
- action: "Say something";
1213
- } | {
1214
- title: string;
1215
- action: "Open URL";
1216
- url: string;
1217
- } | {
1218
- title: string;
1219
- action: "Postback";
1220
- payload: string;
1221
- })[];
1222
- className?: string | undefined;
1223
- avatarUrl?: string | undefined;
1224
- subtitle?: string | undefined;
1225
- image?: string | undefined;
1226
- }[];
1227
- className?: string | undefined;
1228
- avatarUrl?: string | undefined;
1229
- }, {
1230
- type: "carousel";
1231
- items: {
1232
- type: "card";
1233
- title: string;
1234
- actions: ({
1235
- text: string;
1236
- title: string;
1237
- action: "Say something";
1238
- } | {
1239
- title: string;
1240
- action: "Open URL";
1241
- url: string;
1242
- } | {
1243
- title: string;
1244
- action: "Postback";
1245
- payload: string;
1246
- })[];
1247
- className?: string | undefined;
1248
- avatarUrl?: string | undefined;
1249
- subtitle?: string | undefined;
1250
- image?: string | undefined;
1251
- }[];
1252
- className?: string | undefined;
1253
- avatarUrl?: string | undefined;
1254
- }>, z.ZodObject<{
1255
- className: z.ZodOptional<z.ZodString>;
1256
- avatarUrl: z.ZodOptional<z.ZodString>;
1257
- type: z.ZodLiteral<"dropdown">;
1258
- message: z.ZodOptional<z.ZodString>;
1259
- options: z.ZodArray<z.ZodObject<{
1260
- label: z.ZodString;
1261
- value: z.ZodString;
1262
- }, "strip", z.ZodTypeAny, {
1263
- value: string;
1264
- label: string;
1265
- }, {
1266
- value: string;
1267
- label: string;
1268
- }>, "many">;
1269
- allowCreation: z.ZodOptional<z.ZodBoolean>;
1270
- placeholderText: z.ZodOptional<z.ZodString>;
1271
- allowMultiple: z.ZodOptional<z.ZodBoolean>;
1272
- buttonText: z.ZodOptional<z.ZodString>;
1273
- width: z.ZodOptional<z.ZodNumber>;
1274
- displayInKeyboard: z.ZodOptional<z.ZodBoolean>;
1275
- markdown: z.ZodOptional<z.ZodBoolean>;
1276
- text: z.ZodOptional<z.ZodString>;
1277
- }, "strip", z.ZodTypeAny, {
1278
- type: "dropdown";
1279
- options: {
1280
- value: string;
1281
- label: string;
1282
- }[];
1283
- className?: string | undefined;
1284
- avatarUrl?: string | undefined;
1285
- message?: string | undefined;
1286
- allowCreation?: boolean | undefined;
1287
- placeholderText?: string | undefined;
1288
- allowMultiple?: boolean | undefined;
1289
- buttonText?: string | undefined;
1290
- width?: number | undefined;
1291
- displayInKeyboard?: boolean | undefined;
1292
- markdown?: boolean | undefined;
1293
- text?: string | undefined;
1294
- }, {
1295
- type: "dropdown";
1296
- options: {
1297
- value: string;
1298
- label: string;
1299
- }[];
1300
- className?: string | undefined;
1301
- avatarUrl?: string | undefined;
1302
- message?: string | undefined;
1303
- allowCreation?: boolean | undefined;
1304
- placeholderText?: string | undefined;
1305
- allowMultiple?: boolean | undefined;
1306
- buttonText?: string | undefined;
1307
- width?: number | undefined;
1308
- displayInKeyboard?: boolean | undefined;
1309
- markdown?: boolean | undefined;
1310
- text?: string | undefined;
1311
- }>, z.ZodObject<{
1312
- className: z.ZodOptional<z.ZodString>;
1313
- avatarUrl: z.ZodOptional<z.ZodString>;
1314
- type: z.ZodLiteral<"file">;
1315
- file: z.ZodString;
1316
- title: z.ZodOptional<z.ZodString>;
1317
- }, "strip", z.ZodTypeAny, {
1318
- type: "file";
1319
- file: string;
1320
- className?: string | undefined;
1321
- avatarUrl?: string | undefined;
1322
- title?: string | undefined;
1323
- }, {
1324
- type: "file";
1325
- file: string;
1326
- className?: string | undefined;
1327
- avatarUrl?: string | undefined;
1328
- title?: string | undefined;
1329
- }>, z.ZodObject<{
1330
- className: z.ZodOptional<z.ZodString>;
1331
- avatarUrl: z.ZodOptional<z.ZodString>;
1332
- type: z.ZodLiteral<"image">;
1333
- image: z.ZodString;
1334
- }, "strip", z.ZodTypeAny, {
1335
- type: "image";
1336
- image: string;
1337
- className?: string | undefined;
1338
- avatarUrl?: string | undefined;
1339
- }, {
1340
- type: "image";
1341
- image: string;
1342
- className?: string | undefined;
1343
- avatarUrl?: string | undefined;
1344
- }>, z.ZodObject<{
1345
- className: z.ZodOptional<z.ZodString>;
1346
- avatarUrl: z.ZodOptional<z.ZodString>;
1347
- type: z.ZodLiteral<"location">;
1348
- latitude: z.ZodNumber;
1349
- longitude: z.ZodNumber;
1350
- address: z.ZodOptional<z.ZodString>;
1351
- title: z.ZodOptional<z.ZodString>;
1352
- }, "strip", z.ZodTypeAny, {
1353
- type: "location";
1354
- latitude: number;
1355
- longitude: number;
1356
- className?: string | undefined;
1357
- avatarUrl?: string | undefined;
1358
- address?: string | undefined;
1359
- title?: string | undefined;
1360
- }, {
1361
- type: "location";
1362
- latitude: number;
1363
- longitude: number;
1364
- className?: string | undefined;
1365
- avatarUrl?: string | undefined;
1366
- address?: string | undefined;
1367
- title?: string | undefined;
1368
- }>, z.ZodObject<{
1369
- className: z.ZodOptional<z.ZodString>;
1370
- avatarUrl: z.ZodOptional<z.ZodString>;
1371
- type: z.ZodLiteral<"single-choice">;
1372
- text: z.ZodString;
1373
- disableFreeText: z.ZodOptional<z.ZodBoolean>;
1374
- choices: z.ZodArray<z.ZodObject<{
1375
- title: z.ZodString;
1376
- value: z.ZodString;
1377
- }, "strip", z.ZodTypeAny, {
1378
- value: string;
1379
- title: string;
1380
- }, {
1381
- value: string;
1382
- title: string;
1383
- }>, "many">;
1384
- }, "strip", z.ZodTypeAny, {
1385
- type: "single-choice";
1386
- text: string;
1387
- choices: {
1388
- value: string;
1389
- title: string;
1390
- }[];
1391
- className?: string | undefined;
1392
- avatarUrl?: string | undefined;
1393
- disableFreeText?: boolean | undefined;
1394
- }, {
1395
- type: "single-choice";
1396
- text: string;
1397
- choices: {
1398
- value: string;
1399
- title: string;
1400
- }[];
1401
- className?: string | undefined;
1402
- avatarUrl?: string | undefined;
1403
- disableFreeText?: boolean | undefined;
1404
- }>, z.ZodObject<{
1405
- className: z.ZodOptional<z.ZodString>;
1406
- avatarUrl: z.ZodOptional<z.ZodString>;
1407
- type: z.ZodLiteral<"text">;
1408
- text: z.ZodString;
1409
- markdown: z.ZodOptional<z.ZodBoolean>;
1410
- }, "strip", z.ZodTypeAny, {
1411
- type: "text";
1412
- text: string;
1413
- className?: string | undefined;
1414
- avatarUrl?: string | undefined;
1415
- markdown?: boolean | undefined;
1416
- }, {
1417
- type: "text";
1418
- text: string;
1419
- className?: string | undefined;
1420
- avatarUrl?: string | undefined;
1421
- markdown?: boolean | undefined;
1422
- }>, z.ZodObject<{
1423
- className: z.ZodOptional<z.ZodString>;
1424
- avatarUrl: z.ZodOptional<z.ZodString>;
1425
- type: z.ZodLiteral<"video">;
1426
- video: z.ZodString;
1427
- title: z.ZodOptional<z.ZodString>;
1428
- }, "strip", z.ZodTypeAny, {
1429
- type: "video";
1430
- video: string;
1431
- className?: string | undefined;
1432
- avatarUrl?: string | undefined;
1433
- title?: string | undefined;
1434
- }, {
1435
- type: "video";
1436
- video: string;
1437
- className?: string | undefined;
1438
- avatarUrl?: string | undefined;
1439
- title?: string | undefined;
1440
- }>, z.ZodObject<{
1441
- type: z.ZodLiteral<"quick_reply">;
1442
- text: z.ZodString;
1443
- payload: z.ZodOptional<z.ZodString>;
1444
- }, "strip", z.ZodTypeAny, {
1445
- type: "quick_reply";
1446
- text: string;
1447
- payload?: string | undefined;
1448
- }, {
1449
- type: "quick_reply";
1450
- text: string;
1451
- payload?: string | undefined;
1452
- }>]>;
1453
- export type Signal = z.infer<typeof messageSignalSchema> | z.infer<typeof triggerSignalSchema>;
1454
- export type Messages = types.MessagesOf<Message>;
1455
- export type Triggers = types.MessagesOf<Trigger>;