@holocronlab/botruntime-chat 0.5.5

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