@kl1/contracts 1.3.46 → 1.3.47

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 (51) hide show
  1. package/dist/api-contracts/src/botpress/index.d.ts +2 -2
  2. package/dist/api-contracts/src/channel/index.d.ts +837 -2
  3. package/dist/api-contracts/src/channel/index.d.ts.map +1 -1
  4. package/dist/api-contracts/src/channel/validation.d.ts +20 -0
  5. package/dist/api-contracts/src/channel/validation.d.ts.map +1 -1
  6. package/dist/api-contracts/src/chat/index.d.ts +233 -211
  7. package/dist/api-contracts/src/chat/index.d.ts.map +1 -1
  8. package/dist/api-contracts/src/chat/schema.d.ts +60 -63
  9. package/dist/api-contracts/src/chat/schema.d.ts.map +1 -1
  10. package/dist/api-contracts/src/chat/validation.d.ts +95 -69
  11. package/dist/api-contracts/src/chat/validation.d.ts.map +1 -1
  12. package/dist/api-contracts/src/contract.d.ts +3109 -1833
  13. package/dist/api-contracts/src/contract.d.ts.map +1 -1
  14. package/dist/api-contracts/src/cx-log/index.d.ts +1 -1
  15. package/dist/api-contracts/src/cx-log/schema.d.ts +1 -1
  16. package/dist/api-contracts/src/facebook-feed/index.d.ts +58 -53
  17. package/dist/api-contracts/src/facebook-feed/index.d.ts.map +1 -1
  18. package/dist/api-contracts/src/facebook-feed/schema.d.ts +3 -3
  19. package/dist/api-contracts/src/index.d.ts +1 -0
  20. package/dist/api-contracts/src/index.d.ts.map +1 -1
  21. package/dist/api-contracts/src/instagram/index.d.ts +46 -41
  22. package/dist/api-contracts/src/instagram/index.d.ts.map +1 -1
  23. package/dist/api-contracts/src/line/index.d.ts +53 -48
  24. package/dist/api-contracts/src/line/index.d.ts.map +1 -1
  25. package/dist/api-contracts/src/line/validation.d.ts +7 -7
  26. package/dist/api-contracts/src/messenger/index.d.ts +46 -41
  27. package/dist/api-contracts/src/messenger/index.d.ts.map +1 -1
  28. package/dist/api-contracts/src/presence-status/index.d.ts +1 -1
  29. package/dist/api-contracts/src/presence-status/index.d.ts.map +1 -1
  30. package/dist/api-contracts/src/sms/index.d.ts +12 -7
  31. package/dist/api-contracts/src/sms/index.d.ts.map +1 -1
  32. package/dist/api-contracts/src/telegram/index.d.ts +46 -41
  33. package/dist/api-contracts/src/telegram/index.d.ts.map +1 -1
  34. package/dist/api-contracts/src/telephony-agent-presence-status/index.d.ts +0 -430
  35. package/dist/api-contracts/src/telephony-agent-presence-status/index.d.ts.map +1 -1
  36. package/dist/api-contracts/src/telephony-agent-presence-status/schema.d.ts +0 -3
  37. package/dist/api-contracts/src/telephony-agent-presence-status/schema.d.ts.map +1 -1
  38. package/dist/api-contracts/src/telephony-agent-presence-status/validation.d.ts +0 -3
  39. package/dist/api-contracts/src/telephony-agent-presence-status/validation.d.ts.map +1 -1
  40. package/dist/api-contracts/src/viber/index.d.ts +46 -41
  41. package/dist/api-contracts/src/viber/index.d.ts.map +1 -1
  42. package/dist/api-contracts/src/webchat/index.d.ts +46 -41
  43. package/dist/api-contracts/src/webchat/index.d.ts.map +1 -1
  44. package/dist/api-contracts/src/whatsapp/index.d.ts +46 -41
  45. package/dist/api-contracts/src/whatsapp/index.d.ts.map +1 -1
  46. package/dist/api-contracts/src/workflow-rule/index.d.ts +17 -17
  47. package/dist/index.js +1617 -1604
  48. package/dist/index.js.map +1 -1
  49. package/dist/index.mjs +1615 -1603
  50. package/dist/index.mjs.map +1 -1
  51. package/package.json +1 -1
@@ -224,6 +224,8 @@ export declare const MessageAttachmentSchema: z.ZodObject<{
224
224
  url: z.ZodNullable<z.ZodString>;
225
225
  fileType: z.ZodString;
226
226
  thumbnailUrl: z.ZodOptional<z.ZodString>;
227
+ width: z.ZodOptional<z.ZodString>;
228
+ height: z.ZodOptional<z.ZodString>;
227
229
  }, "strip", z.ZodTypeAny, {
228
230
  url: string | null;
229
231
  fileName: string;
@@ -232,6 +234,8 @@ export declare const MessageAttachmentSchema: z.ZodObject<{
232
234
  bucketName: string;
233
235
  fileSize: number;
234
236
  thumbnailUrl?: string | undefined;
237
+ width?: string | undefined;
238
+ height?: string | undefined;
235
239
  }, {
236
240
  url: string | null;
237
241
  fileName: string;
@@ -240,6 +244,8 @@ export declare const MessageAttachmentSchema: z.ZodObject<{
240
244
  bucketName: string;
241
245
  fileSize: number;
242
246
  thumbnailUrl?: string | undefined;
247
+ width?: string | undefined;
248
+ height?: string | undefined;
243
249
  }>;
244
250
  export declare const StickerSchema: z.ZodObject<{
245
251
  packageId: z.ZodNumber;
@@ -264,7 +270,7 @@ export declare const ActionMessageSchema: z.ZodObject<{
264
270
  }>;
265
271
  export declare const SendMessageSchema: z.ZodObject<{
266
272
  roomId: z.ZodString;
267
- messageType: z.ZodEnum<["text", "image", "video", "audio", "file", "imagemap", "group", "fallback", "location", "sticker", "carousel", "card", "choice", "dropdown", "text_with_image", "reaction", "contacts", "carousel", "card", "choice", "dropdown", "referral", "csat", "assign", "solve", "resolved", "reopen", "open", "closed", "handed_over", "updated", "started", "hold", "unhold", "auto_unhold", "edited", "deleted", "unsupported"]>;
273
+ messageType: z.ZodUnion<[z.ZodLiteral<string>, z.ZodLiteral<string>, ...z.ZodLiteral<string>[]]>;
268
274
  message: z.ZodOptional<z.ZodString>;
269
275
  messageAttachments: z.ZodOptional<z.ZodObject<{
270
276
  bucketName: z.ZodString;
@@ -274,6 +280,8 @@ export declare const SendMessageSchema: z.ZodObject<{
274
280
  url: z.ZodNullable<z.ZodString>;
275
281
  fileType: z.ZodString;
276
282
  thumbnailUrl: z.ZodOptional<z.ZodString>;
283
+ width: z.ZodOptional<z.ZodString>;
284
+ height: z.ZodOptional<z.ZodString>;
277
285
  }, "strip", z.ZodTypeAny, {
278
286
  url: string | null;
279
287
  fileName: string;
@@ -282,6 +290,8 @@ export declare const SendMessageSchema: z.ZodObject<{
282
290
  bucketName: string;
283
291
  fileSize: number;
284
292
  thumbnailUrl?: string | undefined;
293
+ width?: string | undefined;
294
+ height?: string | undefined;
285
295
  }, {
286
296
  url: string | null;
287
297
  fileName: string;
@@ -290,6 +300,8 @@ export declare const SendMessageSchema: z.ZodObject<{
290
300
  bucketName: string;
291
301
  fileSize: number;
292
302
  thumbnailUrl?: string | undefined;
303
+ width?: string | undefined;
304
+ height?: string | undefined;
293
305
  }>>;
294
306
  user: z.ZodOptional<z.ZodObject<{
295
307
  name: z.ZodString;
@@ -523,7 +535,7 @@ export declare const SendMessageSchema: z.ZodObject<{
523
535
  mentions?: string[] | undefined;
524
536
  }>>;
525
537
  }, "strip", z.ZodTypeAny, {
526
- messageType: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "group" | "imagemap" | "sticker" | "carousel" | "card" | "choice" | "dropdown" | "text_with_image" | "reaction" | "contacts" | "referral" | "csat" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "hold" | "unhold" | "auto_unhold" | "edited" | "deleted" | "unsupported";
538
+ messageType: string;
527
539
  roomId: string;
528
540
  message?: string | undefined;
529
541
  messageAttachments?: {
@@ -534,6 +546,8 @@ export declare const SendMessageSchema: z.ZodObject<{
534
546
  bucketName: string;
535
547
  fileSize: number;
536
548
  thumbnailUrl?: string | undefined;
549
+ width?: string | undefined;
550
+ height?: string | undefined;
537
551
  } | undefined;
538
552
  user?: {
539
553
  name: string;
@@ -595,7 +609,7 @@ export declare const SendMessageSchema: z.ZodObject<{
595
609
  mentions?: string[] | undefined;
596
610
  } | undefined;
597
611
  }, {
598
- messageType: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "group" | "imagemap" | "sticker" | "carousel" | "card" | "choice" | "dropdown" | "text_with_image" | "reaction" | "contacts" | "referral" | "csat" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "hold" | "unhold" | "auto_unhold" | "edited" | "deleted" | "unsupported";
612
+ messageType: string;
599
613
  roomId: string;
600
614
  message?: string | undefined;
601
615
  messageAttachments?: {
@@ -606,6 +620,8 @@ export declare const SendMessageSchema: z.ZodObject<{
606
620
  bucketName: string;
607
621
  fileSize: number;
608
622
  thumbnailUrl?: string | undefined;
623
+ width?: string | undefined;
624
+ height?: string | undefined;
609
625
  } | undefined;
610
626
  user?: {
611
627
  name: string;
@@ -673,17 +689,17 @@ export declare const InitiateMessageSchema: z.ZodObject<{
673
689
  contactId: z.ZodOptional<z.ZodString>;
674
690
  message: z.ZodObject<{
675
691
  message: z.ZodOptional<z.ZodString>;
676
- messageType: z.ZodEnum<["text", "image", "video", "audio", "file", "imagemap", "group", "fallback", "location", "sticker", "carousel", "card", "choice", "dropdown", "text_with_image", "reaction", "contacts", "carousel", "card", "choice", "dropdown", "referral", "csat", "assign", "solve", "resolved", "reopen", "open", "closed", "handed_over", "updated", "started", "hold", "unhold", "auto_unhold", "edited", "deleted", "unsupported"]>;
692
+ messageType: z.ZodUnion<[z.ZodLiteral<string>, z.ZodLiteral<string>, ...z.ZodLiteral<string>[]]>;
677
693
  }, "strip", z.ZodTypeAny, {
678
- messageType: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "group" | "imagemap" | "sticker" | "carousel" | "card" | "choice" | "dropdown" | "text_with_image" | "reaction" | "contacts" | "referral" | "csat" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "hold" | "unhold" | "auto_unhold" | "edited" | "deleted" | "unsupported";
694
+ messageType: string;
679
695
  message?: string | undefined;
680
696
  }, {
681
- messageType: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "group" | "imagemap" | "sticker" | "carousel" | "card" | "choice" | "dropdown" | "text_with_image" | "reaction" | "contacts" | "referral" | "csat" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "hold" | "unhold" | "auto_unhold" | "edited" | "deleted" | "unsupported";
697
+ messageType: string;
682
698
  message?: string | undefined;
683
699
  }>;
684
700
  }, "strip", z.ZodTypeAny, {
685
701
  message: {
686
- messageType: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "group" | "imagemap" | "sticker" | "carousel" | "card" | "choice" | "dropdown" | "text_with_image" | "reaction" | "contacts" | "referral" | "csat" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "hold" | "unhold" | "auto_unhold" | "edited" | "deleted" | "unsupported";
702
+ messageType: string;
687
703
  message?: string | undefined;
688
704
  };
689
705
  channelId: string;
@@ -691,7 +707,7 @@ export declare const InitiateMessageSchema: z.ZodObject<{
691
707
  contactId?: string | undefined;
692
708
  }, {
693
709
  message: {
694
- messageType: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "group" | "imagemap" | "sticker" | "carousel" | "card" | "choice" | "dropdown" | "text_with_image" | "reaction" | "contacts" | "referral" | "csat" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "hold" | "unhold" | "auto_unhold" | "edited" | "deleted" | "unsupported";
710
+ messageType: string;
695
711
  message?: string | undefined;
696
712
  };
697
713
  channelId: string;
@@ -1723,8 +1739,8 @@ export declare const DeleteMessageToPlatformSchema: z.ZodObject<{
1723
1739
  message: z.ZodObject<{
1724
1740
  id: z.ZodOptional<z.ZodString>;
1725
1741
  message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1726
- direction: z.ZodEnum<["incoming", "outgoing", "system"]>;
1727
- type: z.ZodEnum<["text", "image", "video", "audio", "file", "imagemap", "group", "fallback", "location", "sticker", "carousel", "card", "choice", "dropdown", "text_with_image", "reaction", "contacts", "carousel", "card", "choice", "dropdown", "referral", "csat", "assign", "solve", "resolved", "reopen", "open", "closed", "handed_over", "updated", "started", "hold", "unhold", "auto_unhold", "edited", "deleted", "unsupported"]>;
1742
+ direction: z.ZodUnion<[z.ZodLiteral<"incoming">, z.ZodLiteral<"outgoing">, z.ZodLiteral<"system">]>;
1743
+ type: z.ZodUnion<[z.ZodLiteral<string>, z.ZodLiteral<string>, ...z.ZodLiteral<string>[]]>;
1728
1744
  readAt: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodDate, z.ZodString]>>>;
1729
1745
  metadata: z.ZodOptional<z.ZodAny>;
1730
1746
  platformId: z.ZodOptional<z.ZodString>;
@@ -1776,7 +1792,7 @@ export declare const DeleteMessageToPlatformSchema: z.ZodObject<{
1776
1792
  parentMessageId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1777
1793
  feedPostId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1778
1794
  }, "strip", z.ZodTypeAny, {
1779
- type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "group" | "imagemap" | "sticker" | "carousel" | "card" | "choice" | "dropdown" | "text_with_image" | "reaction" | "contacts" | "referral" | "csat" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "hold" | "unhold" | "auto_unhold" | "edited" | "deleted" | "unsupported";
1795
+ type: string;
1780
1796
  direction: "incoming" | "outgoing" | "system";
1781
1797
  id?: string | undefined;
1782
1798
  message?: string | null | undefined;
@@ -1807,7 +1823,7 @@ export declare const DeleteMessageToPlatformSchema: z.ZodObject<{
1807
1823
  parentMessageId?: string | null | undefined;
1808
1824
  feedPostId?: string | null | undefined;
1809
1825
  }, {
1810
- type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "group" | "imagemap" | "sticker" | "carousel" | "card" | "choice" | "dropdown" | "text_with_image" | "reaction" | "contacts" | "referral" | "csat" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "hold" | "unhold" | "auto_unhold" | "edited" | "deleted" | "unsupported";
1826
+ type: string;
1811
1827
  direction: "incoming" | "outgoing" | "system";
1812
1828
  id?: string | undefined;
1813
1829
  message?: string | null | undefined;
@@ -1840,7 +1856,7 @@ export declare const DeleteMessageToPlatformSchema: z.ZodObject<{
1840
1856
  }>;
1841
1857
  }, "strip", z.ZodTypeAny, {
1842
1858
  message: {
1843
- type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "group" | "imagemap" | "sticker" | "carousel" | "card" | "choice" | "dropdown" | "text_with_image" | "reaction" | "contacts" | "referral" | "csat" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "hold" | "unhold" | "auto_unhold" | "edited" | "deleted" | "unsupported";
1859
+ type: string;
1844
1860
  direction: "incoming" | "outgoing" | "system";
1845
1861
  id?: string | undefined;
1846
1862
  message?: string | null | undefined;
@@ -1929,7 +1945,7 @@ export declare const DeleteMessageToPlatformSchema: z.ZodObject<{
1929
1945
  };
1930
1946
  }, {
1931
1947
  message: {
1932
- type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "group" | "imagemap" | "sticker" | "carousel" | "card" | "choice" | "dropdown" | "text_with_image" | "reaction" | "contacts" | "referral" | "csat" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "hold" | "unhold" | "auto_unhold" | "edited" | "deleted" | "unsupported";
1948
+ type: string;
1933
1949
  direction: "incoming" | "outgoing" | "system";
1934
1950
  id?: string | undefined;
1935
1951
  message?: string | null | undefined;
@@ -2024,7 +2040,7 @@ export declare const SendMessageToPlatformSchema: z.ZodObject<{
2024
2040
  lastMessage: z.ZodOptional<z.ZodString>;
2025
2041
  handleTime: z.ZodOptional<z.ZodNumber>;
2026
2042
  isLatest: z.ZodBoolean;
2027
- direction: z.ZodEnum<["incoming", "outgoing", "system"]>;
2043
+ direction: z.ZodUnion<[z.ZodLiteral<"incoming">, z.ZodLiteral<"outgoing">, z.ZodLiteral<"system">]>;
2028
2044
  metadata: z.ZodOptional<z.ZodAny>;
2029
2045
  createdAt: z.ZodString;
2030
2046
  updatedAt: z.ZodString;
@@ -2421,6 +2437,7 @@ export declare const SendMessageToPlatformSchema: z.ZodObject<{
2421
2437
  }>;
2422
2438
  messengerTags: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"post_purchase_update">, z.ZodLiteral<"account_update">, z.ZodLiteral<"confirmed_event_update">]>>;
2423
2439
  telegramBusinessConnectionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2440
+ isBotRoom: z.ZodDefault<z.ZodNullable<z.ZodBoolean>>;
2424
2441
  }, "strip", z.ZodTypeAny, {
2425
2442
  id: string;
2426
2443
  channel: {
@@ -2512,6 +2529,7 @@ export declare const SendMessageToPlatformSchema: z.ZodObject<{
2512
2529
  id: string;
2513
2530
  email: string;
2514
2531
  } | null;
2532
+ isBotRoom: boolean | null;
2515
2533
  lastMessage?: string | undefined;
2516
2534
  handleTime?: number | undefined;
2517
2535
  metadata?: any;
@@ -2613,12 +2631,13 @@ export declare const SendMessageToPlatformSchema: z.ZodObject<{
2613
2631
  metadata?: any;
2614
2632
  messengerTags?: "post_purchase_update" | "account_update" | "confirmed_event_update" | undefined;
2615
2633
  telegramBusinessConnectionId?: string | null | undefined;
2634
+ isBotRoom?: boolean | null | undefined;
2616
2635
  }>;
2617
2636
  message: z.ZodObject<{
2618
2637
  id: z.ZodOptional<z.ZodString>;
2619
2638
  message: z.ZodOptional<z.ZodString>;
2620
- direction: z.ZodEnum<["incoming", "outgoing", "system"]>;
2621
- type: z.ZodEnum<["text", "image", "video", "audio", "file", "imagemap", "group", "fallback", "location", "sticker", "carousel", "card", "choice", "dropdown", "text_with_image", "reaction", "contacts", "carousel", "card", "choice", "dropdown", "referral", "csat", "assign", "solve", "resolved", "reopen", "open", "closed", "handed_over", "updated", "started", "hold", "unhold", "auto_unhold", "edited", "deleted", "unsupported"]>;
2639
+ direction: z.ZodUnion<[z.ZodLiteral<"incoming">, z.ZodLiteral<"outgoing">, z.ZodLiteral<"system">]>;
2640
+ type: z.ZodUnion<[z.ZodLiteral<string>, z.ZodLiteral<string>, ...z.ZodLiteral<string>[]]>;
2622
2641
  readAt: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodDate, z.ZodString]>>>;
2623
2642
  metadata: z.ZodOptional<z.ZodAny>;
2624
2643
  platformId: z.ZodOptional<z.ZodString>;
@@ -2674,7 +2693,7 @@ export declare const SendMessageToPlatformSchema: z.ZodObject<{
2674
2693
  editedAt: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodDate, z.ZodString]>>>;
2675
2694
  label: z.ZodOptional<z.ZodString>;
2676
2695
  }, "strip", z.ZodTypeAny, {
2677
- type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "group" | "imagemap" | "sticker" | "carousel" | "card" | "choice" | "dropdown" | "text_with_image" | "reaction" | "contacts" | "referral" | "csat" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "hold" | "unhold" | "auto_unhold" | "edited" | "deleted" | "unsupported";
2696
+ type: string;
2678
2697
  direction: "incoming" | "outgoing" | "system";
2679
2698
  id?: string | undefined;
2680
2699
  message?: string | undefined;
@@ -2709,7 +2728,7 @@ export declare const SendMessageToPlatformSchema: z.ZodObject<{
2709
2728
  editedAt?: string | Date | null | undefined;
2710
2729
  label?: string | undefined;
2711
2730
  }, {
2712
- type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "group" | "imagemap" | "sticker" | "carousel" | "card" | "choice" | "dropdown" | "text_with_image" | "reaction" | "contacts" | "referral" | "csat" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "hold" | "unhold" | "auto_unhold" | "edited" | "deleted" | "unsupported";
2731
+ type: string;
2713
2732
  direction: "incoming" | "outgoing" | "system";
2714
2733
  id?: string | undefined;
2715
2734
  message?: string | undefined;
@@ -2746,7 +2765,7 @@ export declare const SendMessageToPlatformSchema: z.ZodObject<{
2746
2765
  }>;
2747
2766
  }, "strip", z.ZodTypeAny, {
2748
2767
  message: {
2749
- type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "group" | "imagemap" | "sticker" | "carousel" | "card" | "choice" | "dropdown" | "text_with_image" | "reaction" | "contacts" | "referral" | "csat" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "hold" | "unhold" | "auto_unhold" | "edited" | "deleted" | "unsupported";
2768
+ type: string;
2750
2769
  direction: "incoming" | "outgoing" | "system";
2751
2770
  id?: string | undefined;
2752
2771
  message?: string | undefined;
@@ -2872,6 +2891,7 @@ export declare const SendMessageToPlatformSchema: z.ZodObject<{
2872
2891
  id: string;
2873
2892
  email: string;
2874
2893
  } | null;
2894
+ isBotRoom: boolean | null;
2875
2895
  lastMessage?: string | undefined;
2876
2896
  handleTime?: number | undefined;
2877
2897
  metadata?: any;
@@ -2881,7 +2901,7 @@ export declare const SendMessageToPlatformSchema: z.ZodObject<{
2881
2901
  isBot: boolean | null;
2882
2902
  }, {
2883
2903
  message: {
2884
- type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "group" | "imagemap" | "sticker" | "carousel" | "card" | "choice" | "dropdown" | "text_with_image" | "reaction" | "contacts" | "referral" | "csat" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "hold" | "unhold" | "auto_unhold" | "edited" | "deleted" | "unsupported";
2904
+ type: string;
2885
2905
  direction: "incoming" | "outgoing" | "system";
2886
2906
  id?: string | undefined;
2887
2907
  message?: string | undefined;
@@ -3012,6 +3032,7 @@ export declare const SendMessageToPlatformSchema: z.ZodObject<{
3012
3032
  metadata?: any;
3013
3033
  messengerTags?: "post_purchase_update" | "account_update" | "confirmed_event_update" | undefined;
3014
3034
  telegramBusinessConnectionId?: string | null | undefined;
3035
+ isBotRoom?: boolean | null | undefined;
3015
3036
  };
3016
3037
  isBot?: boolean | null | undefined;
3017
3038
  }>;
@@ -3019,8 +3040,8 @@ export declare const SendMessageWithActionTypeSchema: z.ZodObject<{
3019
3040
  message: z.ZodObject<{
3020
3041
  id: z.ZodOptional<z.ZodString>;
3021
3042
  message: z.ZodOptional<z.ZodString>;
3022
- direction: z.ZodEnum<["incoming", "outgoing", "system"]>;
3023
- type: z.ZodEnum<["text", "image", "video", "audio", "file", "imagemap", "group", "fallback", "location", "sticker", "carousel", "card", "choice", "dropdown", "text_with_image", "reaction", "contacts", "carousel", "card", "choice", "dropdown", "referral", "csat", "assign", "solve", "resolved", "reopen", "open", "closed", "handed_over", "updated", "started", "hold", "unhold", "auto_unhold", "edited", "deleted", "unsupported"]>;
3043
+ direction: z.ZodUnion<[z.ZodLiteral<"incoming">, z.ZodLiteral<"outgoing">, z.ZodLiteral<"system">]>;
3044
+ type: z.ZodUnion<[z.ZodLiteral<string>, z.ZodLiteral<string>, ...z.ZodLiteral<string>[]]>;
3024
3045
  readAt: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodDate, z.ZodString]>>>;
3025
3046
  metadata: z.ZodOptional<z.ZodAny>;
3026
3047
  platformId: z.ZodOptional<z.ZodString>;
@@ -3076,7 +3097,7 @@ export declare const SendMessageWithActionTypeSchema: z.ZodObject<{
3076
3097
  editedAt: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodDate, z.ZodString]>>>;
3077
3098
  label: z.ZodOptional<z.ZodString>;
3078
3099
  }, "strip", z.ZodTypeAny, {
3079
- type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "group" | "imagemap" | "sticker" | "carousel" | "card" | "choice" | "dropdown" | "text_with_image" | "reaction" | "contacts" | "referral" | "csat" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "hold" | "unhold" | "auto_unhold" | "edited" | "deleted" | "unsupported";
3100
+ type: string;
3080
3101
  direction: "incoming" | "outgoing" | "system";
3081
3102
  id?: string | undefined;
3082
3103
  message?: string | undefined;
@@ -3111,7 +3132,7 @@ export declare const SendMessageWithActionTypeSchema: z.ZodObject<{
3111
3132
  editedAt?: string | Date | null | undefined;
3112
3133
  label?: string | undefined;
3113
3134
  }, {
3114
- type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "group" | "imagemap" | "sticker" | "carousel" | "card" | "choice" | "dropdown" | "text_with_image" | "reaction" | "contacts" | "referral" | "csat" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "hold" | "unhold" | "auto_unhold" | "edited" | "deleted" | "unsupported";
3135
+ type: string;
3115
3136
  direction: "incoming" | "outgoing" | "system";
3116
3137
  id?: string | undefined;
3117
3138
  message?: string | undefined;
@@ -3151,7 +3172,7 @@ export declare const SendMessageWithActionTypeSchema: z.ZodObject<{
3151
3172
  lastMessage: z.ZodOptional<z.ZodString>;
3152
3173
  handleTime: z.ZodOptional<z.ZodNumber>;
3153
3174
  isLatest: z.ZodBoolean;
3154
- direction: z.ZodEnum<["incoming", "outgoing", "system"]>;
3175
+ direction: z.ZodUnion<[z.ZodLiteral<"incoming">, z.ZodLiteral<"outgoing">, z.ZodLiteral<"system">]>;
3155
3176
  metadata: z.ZodOptional<z.ZodAny>;
3156
3177
  createdAt: z.ZodString;
3157
3178
  updatedAt: z.ZodString;
@@ -3548,6 +3569,7 @@ export declare const SendMessageWithActionTypeSchema: z.ZodObject<{
3548
3569
  }>;
3549
3570
  messengerTags: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"post_purchase_update">, z.ZodLiteral<"account_update">, z.ZodLiteral<"confirmed_event_update">]>>;
3550
3571
  telegramBusinessConnectionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3572
+ isBotRoom: z.ZodDefault<z.ZodNullable<z.ZodBoolean>>;
3551
3573
  }, "strip", z.ZodTypeAny, {
3552
3574
  id: string;
3553
3575
  channel: {
@@ -3639,6 +3661,7 @@ export declare const SendMessageWithActionTypeSchema: z.ZodObject<{
3639
3661
  id: string;
3640
3662
  email: string;
3641
3663
  } | null;
3664
+ isBotRoom: boolean | null;
3642
3665
  lastMessage?: string | undefined;
3643
3666
  handleTime?: number | undefined;
3644
3667
  metadata?: any;
@@ -3740,6 +3763,7 @@ export declare const SendMessageWithActionTypeSchema: z.ZodObject<{
3740
3763
  metadata?: any;
3741
3764
  messengerTags?: "post_purchase_update" | "account_update" | "confirmed_event_update" | undefined;
3742
3765
  telegramBusinessConnectionId?: string | null | undefined;
3766
+ isBotRoom?: boolean | null | undefined;
3743
3767
  }>;
3744
3768
  isBot: z.ZodDefault<z.ZodNullable<z.ZodBoolean>>;
3745
3769
  params: z.ZodOptional<z.ZodObject<{
@@ -3754,7 +3778,7 @@ export declare const SendMessageWithActionTypeSchema: z.ZodObject<{
3754
3778
  }>>;
3755
3779
  }, "strip", z.ZodTypeAny, {
3756
3780
  message: {
3757
- type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "group" | "imagemap" | "sticker" | "carousel" | "card" | "choice" | "dropdown" | "text_with_image" | "reaction" | "contacts" | "referral" | "csat" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "hold" | "unhold" | "auto_unhold" | "edited" | "deleted" | "unsupported";
3781
+ type: string;
3758
3782
  direction: "incoming" | "outgoing" | "system";
3759
3783
  id?: string | undefined;
3760
3784
  message?: string | undefined;
@@ -3880,6 +3904,7 @@ export declare const SendMessageWithActionTypeSchema: z.ZodObject<{
3880
3904
  id: string;
3881
3905
  email: string;
3882
3906
  } | null;
3907
+ isBotRoom: boolean | null;
3883
3908
  lastMessage?: string | undefined;
3884
3909
  handleTime?: number | undefined;
3885
3910
  metadata?: any;
@@ -3893,7 +3918,7 @@ export declare const SendMessageWithActionTypeSchema: z.ZodObject<{
3893
3918
  } | undefined;
3894
3919
  }, {
3895
3920
  message: {
3896
- type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "group" | "imagemap" | "sticker" | "carousel" | "card" | "choice" | "dropdown" | "text_with_image" | "reaction" | "contacts" | "referral" | "csat" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "hold" | "unhold" | "auto_unhold" | "edited" | "deleted" | "unsupported";
3921
+ type: string;
3897
3922
  direction: "incoming" | "outgoing" | "system";
3898
3923
  id?: string | undefined;
3899
3924
  message?: string | undefined;
@@ -4024,6 +4049,7 @@ export declare const SendMessageWithActionTypeSchema: z.ZodObject<{
4024
4049
  metadata?: any;
4025
4050
  messengerTags?: "post_purchase_update" | "account_update" | "confirmed_event_update" | undefined;
4026
4051
  telegramBusinessConnectionId?: string | null | undefined;
4052
+ isBotRoom?: boolean | null | undefined;
4027
4053
  };
4028
4054
  isBot?: boolean | null | undefined;
4029
4055
  params?: {
@@ -4034,11 +4060,11 @@ export declare const SendMessageWithActionTypeSchema: z.ZodObject<{
4034
4060
  export declare const SendMessageResponseSchema: z.ZodObject<{
4035
4061
  requestId: z.ZodString;
4036
4062
  data: z.ZodObject<{
4037
- type: z.ZodEnum<["text", "image", "video", "audio", "file", "imagemap", "group", "fallback", "location", "sticker", "carousel", "card", "choice", "dropdown", "text_with_image", "reaction", "contacts", "carousel", "card", "choice", "dropdown", "referral", "csat", "assign", "solve", "resolved", "reopen", "open", "closed", "handed_over", "updated", "started", "hold", "unhold", "auto_unhold", "edited", "deleted", "unsupported"]>;
4063
+ type: z.ZodUnion<[z.ZodLiteral<string>, z.ZodLiteral<string>, ...z.ZodLiteral<string>[]]>;
4038
4064
  message: z.ZodString;
4039
4065
  id: z.ZodString;
4040
4066
  url: z.ZodString;
4041
- direction: z.ZodEnum<["incoming", "outgoing", "system"]>;
4067
+ direction: z.ZodUnion<[z.ZodLiteral<"incoming">, z.ZodLiteral<"outgoing">, z.ZodLiteral<"system">]>;
4042
4068
  label: z.ZodOptional<z.ZodString>;
4043
4069
  template: z.ZodAny;
4044
4070
  metadata: z.ZodAny;
@@ -4503,7 +4529,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
4503
4529
  firstResponseTime: z.ZodNumber;
4504
4530
  isLatest: z.ZodBoolean;
4505
4531
  isBotRoom: z.ZodBoolean;
4506
- direction: z.ZodEnum<["incoming", "outgoing", "system"]>;
4532
+ direction: z.ZodUnion<[z.ZodLiteral<"incoming">, z.ZodLiteral<"outgoing">, z.ZodLiteral<"system">]>;
4507
4533
  platformContact: z.ZodObject<{
4508
4534
  id: z.ZodString;
4509
4535
  createdAt: z.ZodDate;
@@ -8016,8 +8042,8 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
8016
8042
  updatedAt: z.ZodDate;
8017
8043
  deletedAt: z.ZodNullable<z.ZodDate>;
8018
8044
  message: z.ZodString;
8019
- direction: z.ZodEnum<["incoming", "outgoing", "system"]>;
8020
- type: z.ZodEnum<["text", "image", "video", "audio", "file", "imagemap", "group", "fallback", "location", "sticker", "carousel", "card", "choice", "dropdown", "text_with_image", "reaction", "contacts", "carousel", "card", "choice", "dropdown", "referral", "csat", "assign", "solve", "resolved", "reopen", "open", "closed", "handed_over", "updated", "started", "hold", "unhold", "auto_unhold", "edited", "deleted", "unsupported"]>;
8045
+ direction: z.ZodUnion<[z.ZodLiteral<"incoming">, z.ZodLiteral<"outgoing">, z.ZodLiteral<"system">]>;
8046
+ type: z.ZodUnion<[z.ZodLiteral<string>, z.ZodLiteral<string>, ...z.ZodLiteral<string>[]]>;
8021
8047
  readAt: z.ZodDate;
8022
8048
  metadata: z.ZodAny;
8023
8049
  platformId: z.ZodString;
@@ -8675,7 +8701,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
8675
8701
  };
8676
8702
  }>;
8677
8703
  }, "strip", z.ZodTypeAny, {
8678
- type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "group" | "imagemap" | "sticker" | "carousel" | "card" | "choice" | "dropdown" | "text_with_image" | "reaction" | "contacts" | "referral" | "csat" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "hold" | "unhold" | "auto_unhold" | "edited" | "deleted" | "unsupported";
8704
+ type: string;
8679
8705
  message: string;
8680
8706
  id: string;
8681
8707
  url: string;
@@ -8837,7 +8863,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
8837
8863
  metadata?: any;
8838
8864
  template?: any;
8839
8865
  }, {
8840
- type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "group" | "imagemap" | "sticker" | "carousel" | "card" | "choice" | "dropdown" | "text_with_image" | "reaction" | "contacts" | "referral" | "csat" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "hold" | "unhold" | "auto_unhold" | "edited" | "deleted" | "unsupported";
8866
+ type: string;
8841
8867
  message: string;
8842
8868
  id: string;
8843
8869
  url: string;
@@ -9210,8 +9236,8 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
9210
9236
  updatedAt: z.ZodDate;
9211
9237
  deletedAt: z.ZodNullable<z.ZodDate>;
9212
9238
  message: z.ZodString;
9213
- direction: z.ZodEnum<["incoming", "outgoing", "system"]>;
9214
- type: z.ZodEnum<["text", "image", "video", "audio", "file", "imagemap", "group", "fallback", "location", "sticker", "carousel", "card", "choice", "dropdown", "text_with_image", "reaction", "contacts", "carousel", "card", "choice", "dropdown", "referral", "csat", "assign", "solve", "resolved", "reopen", "open", "closed", "handed_over", "updated", "started", "hold", "unhold", "auto_unhold", "edited", "deleted", "unsupported"]>;
9239
+ direction: z.ZodUnion<[z.ZodLiteral<"incoming">, z.ZodLiteral<"outgoing">, z.ZodLiteral<"system">]>;
9240
+ type: z.ZodUnion<[z.ZodLiteral<string>, z.ZodLiteral<string>, ...z.ZodLiteral<string>[]]>;
9215
9241
  readAt: z.ZodDate;
9216
9242
  metadata: z.ZodAny;
9217
9243
  platformId: z.ZodString;
@@ -9237,7 +9263,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
9237
9263
  firstResponseTime: z.ZodNumber;
9238
9264
  isLatest: z.ZodBoolean;
9239
9265
  isBotRoom: z.ZodBoolean;
9240
- direction: z.ZodEnum<["incoming", "outgoing", "system"]>;
9266
+ direction: z.ZodUnion<[z.ZodLiteral<"incoming">, z.ZodLiteral<"outgoing">, z.ZodLiteral<"system">]>;
9241
9267
  platformContact: z.ZodObject<{
9242
9268
  id: z.ZodString;
9243
9269
  createdAt: z.ZodDate;
@@ -12753,8 +12779,8 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
12753
12779
  updatedAt: z.ZodDate;
12754
12780
  deletedAt: z.ZodNullable<z.ZodDate>;
12755
12781
  message: z.ZodString;
12756
- direction: z.ZodEnum<["incoming", "outgoing", "system"]>;
12757
- type: z.ZodEnum<["text", "image", "video", "audio", "file", "imagemap", "group", "fallback", "location", "sticker", "carousel", "card", "choice", "dropdown", "text_with_image", "reaction", "contacts", "carousel", "card", "choice", "dropdown", "referral", "csat", "assign", "solve", "resolved", "reopen", "open", "closed", "handed_over", "updated", "started", "hold", "unhold", "auto_unhold", "edited", "deleted", "unsupported"]>;
12782
+ direction: z.ZodUnion<[z.ZodLiteral<"incoming">, z.ZodLiteral<"outgoing">, z.ZodLiteral<"system">]>;
12783
+ type: z.ZodUnion<[z.ZodLiteral<string>, z.ZodLiteral<string>, ...z.ZodLiteral<string>[]]>;
12758
12784
  readAt: z.ZodDate;
12759
12785
  metadata: z.ZodAny;
12760
12786
  platformId: z.ZodString;
@@ -13412,7 +13438,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
13412
13438
  };
13413
13439
  }>;
13414
13440
  }, "strip", z.ZodTypeAny, {
13415
- type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "group" | "imagemap" | "sticker" | "carousel" | "card" | "choice" | "dropdown" | "text_with_image" | "reaction" | "contacts" | "referral" | "csat" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "hold" | "unhold" | "auto_unhold" | "edited" | "deleted" | "unsupported";
13441
+ type: string;
13416
13442
  message: string;
13417
13443
  id: string;
13418
13444
  url: string;
@@ -13574,7 +13600,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
13574
13600
  metadata?: any;
13575
13601
  template?: any;
13576
13602
  }, {
13577
- type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "group" | "imagemap" | "sticker" | "carousel" | "card" | "choice" | "dropdown" | "text_with_image" | "reaction" | "contacts" | "referral" | "csat" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "hold" | "unhold" | "auto_unhold" | "edited" | "deleted" | "unsupported";
13603
+ type: string;
13578
13604
  message: string;
13579
13605
  id: string;
13580
13606
  url: string;
@@ -14376,7 +14402,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
14376
14402
  editedMessageid: z.ZodString;
14377
14403
  label: z.ZodOptional<z.ZodString>;
14378
14404
  }, "strip", z.ZodTypeAny, {
14379
- type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "group" | "imagemap" | "sticker" | "carousel" | "card" | "choice" | "dropdown" | "text_with_image" | "reaction" | "contacts" | "referral" | "csat" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "hold" | "unhold" | "auto_unhold" | "edited" | "deleted" | "unsupported";
14405
+ type: string;
14380
14406
  message: string;
14381
14407
  id: string;
14382
14408
  url: string;
@@ -14938,7 +14964,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
14938
14964
  previewUrl: string;
14939
14965
  imageSetId: string;
14940
14966
  repliedMessage: {
14941
- type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "group" | "imagemap" | "sticker" | "carousel" | "card" | "choice" | "dropdown" | "text_with_image" | "reaction" | "contacts" | "referral" | "csat" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "hold" | "unhold" | "auto_unhold" | "edited" | "deleted" | "unsupported";
14967
+ type: string;
14942
14968
  message: string;
14943
14969
  id: string;
14944
14970
  url: string;
@@ -15149,7 +15175,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
15149
15175
  template?: any;
15150
15176
  label?: string | undefined;
15151
15177
  }, {
15152
- type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "group" | "imagemap" | "sticker" | "carousel" | "card" | "choice" | "dropdown" | "text_with_image" | "reaction" | "contacts" | "referral" | "csat" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "hold" | "unhold" | "auto_unhold" | "edited" | "deleted" | "unsupported";
15178
+ type: string;
15153
15179
  message: string;
15154
15180
  id: string;
15155
15181
  url: string;
@@ -15711,7 +15737,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
15711
15737
  previewUrl: string;
15712
15738
  imageSetId: string;
15713
15739
  repliedMessage: {
15714
- type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "group" | "imagemap" | "sticker" | "carousel" | "card" | "choice" | "dropdown" | "text_with_image" | "reaction" | "contacts" | "referral" | "csat" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "hold" | "unhold" | "auto_unhold" | "edited" | "deleted" | "unsupported";
15740
+ type: string;
15715
15741
  message: string;
15716
15742
  id: string;
15717
15743
  url: string;
@@ -15923,7 +15949,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
15923
15949
  label?: string | undefined;
15924
15950
  }>>>;
15925
15951
  }, "strip", z.ZodTypeAny, {
15926
- type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "group" | "imagemap" | "sticker" | "carousel" | "card" | "choice" | "dropdown" | "text_with_image" | "reaction" | "contacts" | "referral" | "csat" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "hold" | "unhold" | "auto_unhold" | "edited" | "deleted" | "unsupported";
15952
+ type: string;
15927
15953
  message: string;
15928
15954
  id: string;
15929
15955
  url: string;
@@ -16485,7 +16511,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
16485
16511
  previewUrl: string;
16486
16512
  imageSetId: string;
16487
16513
  repliedMessage: {
16488
- type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "group" | "imagemap" | "sticker" | "carousel" | "card" | "choice" | "dropdown" | "text_with_image" | "reaction" | "contacts" | "referral" | "csat" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "hold" | "unhold" | "auto_unhold" | "edited" | "deleted" | "unsupported";
16514
+ type: string;
16489
16515
  message: string;
16490
16516
  id: string;
16491
16517
  url: string;
@@ -16696,7 +16722,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
16696
16722
  template?: any;
16697
16723
  metadata?: any;
16698
16724
  fromMessage?: {
16699
- type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "group" | "imagemap" | "sticker" | "carousel" | "card" | "choice" | "dropdown" | "text_with_image" | "reaction" | "contacts" | "referral" | "csat" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "hold" | "unhold" | "auto_unhold" | "edited" | "deleted" | "unsupported";
16725
+ type: string;
16700
16726
  message: string;
16701
16727
  id: string;
16702
16728
  url: string;
@@ -17258,7 +17284,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
17258
17284
  previewUrl: string;
17259
17285
  imageSetId: string;
17260
17286
  repliedMessage: {
17261
- type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "group" | "imagemap" | "sticker" | "carousel" | "card" | "choice" | "dropdown" | "text_with_image" | "reaction" | "contacts" | "referral" | "csat" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "hold" | "unhold" | "auto_unhold" | "edited" | "deleted" | "unsupported";
17287
+ type: string;
17262
17288
  message: string;
17263
17289
  id: string;
17264
17290
  url: string;
@@ -17470,7 +17496,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
17470
17496
  label?: string | undefined;
17471
17497
  } | null | undefined;
17472
17498
  }, {
17473
- type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "group" | "imagemap" | "sticker" | "carousel" | "card" | "choice" | "dropdown" | "text_with_image" | "reaction" | "contacts" | "referral" | "csat" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "hold" | "unhold" | "auto_unhold" | "edited" | "deleted" | "unsupported";
17499
+ type: string;
17474
17500
  message: string;
17475
17501
  id: string;
17476
17502
  url: string;
@@ -18032,7 +18058,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
18032
18058
  previewUrl: string;
18033
18059
  imageSetId: string;
18034
18060
  repliedMessage: {
18035
- type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "group" | "imagemap" | "sticker" | "carousel" | "card" | "choice" | "dropdown" | "text_with_image" | "reaction" | "contacts" | "referral" | "csat" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "hold" | "unhold" | "auto_unhold" | "edited" | "deleted" | "unsupported";
18061
+ type: string;
18036
18062
  message: string;
18037
18063
  id: string;
18038
18064
  url: string;
@@ -18243,7 +18269,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
18243
18269
  template?: any;
18244
18270
  metadata?: any;
18245
18271
  fromMessage?: {
18246
- type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "group" | "imagemap" | "sticker" | "carousel" | "card" | "choice" | "dropdown" | "text_with_image" | "reaction" | "contacts" | "referral" | "csat" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "hold" | "unhold" | "auto_unhold" | "edited" | "deleted" | "unsupported";
18272
+ type: string;
18247
18273
  message: string;
18248
18274
  id: string;
18249
18275
  url: string;
@@ -18805,7 +18831,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
18805
18831
  previewUrl: string;
18806
18832
  imageSetId: string;
18807
18833
  repliedMessage: {
18808
- type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "group" | "imagemap" | "sticker" | "carousel" | "card" | "choice" | "dropdown" | "text_with_image" | "reaction" | "contacts" | "referral" | "csat" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "hold" | "unhold" | "auto_unhold" | "edited" | "deleted" | "unsupported";
18834
+ type: string;
18809
18835
  message: string;
18810
18836
  id: string;
18811
18837
  url: string;
@@ -19019,7 +19045,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
19019
19045
  }>;
19020
19046
  }, "strip", z.ZodTypeAny, {
19021
19047
  data: {
19022
- type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "group" | "imagemap" | "sticker" | "carousel" | "card" | "choice" | "dropdown" | "text_with_image" | "reaction" | "contacts" | "referral" | "csat" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "hold" | "unhold" | "auto_unhold" | "edited" | "deleted" | "unsupported";
19048
+ type: string;
19023
19049
  message: string;
19024
19050
  id: string;
19025
19051
  url: string;
@@ -19581,7 +19607,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
19581
19607
  previewUrl: string;
19582
19608
  imageSetId: string;
19583
19609
  repliedMessage: {
19584
- type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "group" | "imagemap" | "sticker" | "carousel" | "card" | "choice" | "dropdown" | "text_with_image" | "reaction" | "contacts" | "referral" | "csat" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "hold" | "unhold" | "auto_unhold" | "edited" | "deleted" | "unsupported";
19610
+ type: string;
19585
19611
  message: string;
19586
19612
  id: string;
19587
19613
  url: string;
@@ -19792,7 +19818,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
19792
19818
  template?: any;
19793
19819
  metadata?: any;
19794
19820
  fromMessage?: {
19795
- type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "group" | "imagemap" | "sticker" | "carousel" | "card" | "choice" | "dropdown" | "text_with_image" | "reaction" | "contacts" | "referral" | "csat" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "hold" | "unhold" | "auto_unhold" | "edited" | "deleted" | "unsupported";
19821
+ type: string;
19796
19822
  message: string;
19797
19823
  id: string;
19798
19824
  url: string;
@@ -20354,7 +20380,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
20354
20380
  previewUrl: string;
20355
20381
  imageSetId: string;
20356
20382
  repliedMessage: {
20357
- type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "group" | "imagemap" | "sticker" | "carousel" | "card" | "choice" | "dropdown" | "text_with_image" | "reaction" | "contacts" | "referral" | "csat" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "hold" | "unhold" | "auto_unhold" | "edited" | "deleted" | "unsupported";
20383
+ type: string;
20358
20384
  message: string;
20359
20385
  id: string;
20360
20386
  url: string;
@@ -20569,7 +20595,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
20569
20595
  requestId: string;
20570
20596
  }, {
20571
20597
  data: {
20572
- type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "group" | "imagemap" | "sticker" | "carousel" | "card" | "choice" | "dropdown" | "text_with_image" | "reaction" | "contacts" | "referral" | "csat" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "hold" | "unhold" | "auto_unhold" | "edited" | "deleted" | "unsupported";
20598
+ type: string;
20573
20599
  message: string;
20574
20600
  id: string;
20575
20601
  url: string;
@@ -21131,7 +21157,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
21131
21157
  previewUrl: string;
21132
21158
  imageSetId: string;
21133
21159
  repliedMessage: {
21134
- type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "group" | "imagemap" | "sticker" | "carousel" | "card" | "choice" | "dropdown" | "text_with_image" | "reaction" | "contacts" | "referral" | "csat" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "hold" | "unhold" | "auto_unhold" | "edited" | "deleted" | "unsupported";
21160
+ type: string;
21135
21161
  message: string;
21136
21162
  id: string;
21137
21163
  url: string;
@@ -21342,7 +21368,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
21342
21368
  template?: any;
21343
21369
  metadata?: any;
21344
21370
  fromMessage?: {
21345
- type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "group" | "imagemap" | "sticker" | "carousel" | "card" | "choice" | "dropdown" | "text_with_image" | "reaction" | "contacts" | "referral" | "csat" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "hold" | "unhold" | "auto_unhold" | "edited" | "deleted" | "unsupported";
21371
+ type: string;
21346
21372
  message: string;
21347
21373
  id: string;
21348
21374
  url: string;
@@ -21904,7 +21930,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
21904
21930
  previewUrl: string;
21905
21931
  imageSetId: string;
21906
21932
  repliedMessage: {
21907
- type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "group" | "imagemap" | "sticker" | "carousel" | "card" | "choice" | "dropdown" | "text_with_image" | "reaction" | "contacts" | "referral" | "csat" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "hold" | "unhold" | "auto_unhold" | "edited" | "deleted" | "unsupported";
21933
+ type: string;
21908
21934
  message: string;
21909
21935
  id: string;
21910
21936
  url: string;
@@ -22515,8 +22541,8 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
22515
22541
  updatedAt: z.ZodString;
22516
22542
  deletedAt: z.ZodNullable<z.ZodString>;
22517
22543
  message: z.ZodOptional<z.ZodString>;
22518
- direction: z.ZodEnum<["incoming", "outgoing", "system"]>;
22519
- type: z.ZodEnum<["text", "image", "video", "audio", "file", "imagemap", "group", "fallback", "location", "sticker", "carousel", "card", "choice", "dropdown", "text_with_image", "reaction", "contacts", "carousel", "card", "choice", "dropdown", "referral", "csat", "assign", "solve", "resolved", "reopen", "open", "closed", "handed_over", "updated", "started", "hold", "unhold", "auto_unhold", "edited", "deleted", "unsupported"]>;
22544
+ direction: z.ZodUnion<[z.ZodLiteral<"incoming">, z.ZodLiteral<"outgoing">, z.ZodLiteral<"system">]>;
22545
+ type: z.ZodUnion<[z.ZodLiteral<string>, z.ZodLiteral<string>, ...z.ZodLiteral<string>[]]>;
22520
22546
  metadata: z.ZodAny;
22521
22547
  platformId: z.ZodString;
22522
22548
  platformMessageId: z.ZodString;
@@ -22538,7 +22564,7 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
22538
22564
  firstResponseAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22539
22565
  firstResponseTime: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
22540
22566
  isLatest: z.ZodOptional<z.ZodBoolean>;
22541
- direction: z.ZodOptional<z.ZodEnum<["incoming", "outgoing", "system"]>>;
22567
+ direction: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"incoming">, z.ZodLiteral<"outgoing">, z.ZodLiteral<"system">]>>;
22542
22568
  platformContact: z.ZodOptional<z.ZodObject<{
22543
22569
  id: z.ZodString;
22544
22570
  createdAt: z.ZodString;
@@ -26056,7 +26082,7 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
26056
26082
  }>>>;
26057
26083
  label: z.ZodNullable<z.ZodOptional<z.ZodString>>;
26058
26084
  }, "strip", z.ZodTypeAny, {
26059
- type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "group" | "imagemap" | "sticker" | "carousel" | "card" | "choice" | "dropdown" | "text_with_image" | "reaction" | "contacts" | "referral" | "csat" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "hold" | "unhold" | "auto_unhold" | "edited" | "deleted" | "unsupported";
26085
+ type: string;
26060
26086
  id: string;
26061
26087
  direction: "incoming" | "outgoing" | "system";
26062
26088
  createdAt: string;
@@ -26576,7 +26602,7 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
26576
26602
  } | null | undefined;
26577
26603
  label?: string | null | undefined;
26578
26604
  }, {
26579
- type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "group" | "imagemap" | "sticker" | "carousel" | "card" | "choice" | "dropdown" | "text_with_image" | "reaction" | "contacts" | "referral" | "csat" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "hold" | "unhold" | "auto_unhold" | "edited" | "deleted" | "unsupported";
26605
+ type: string;
26580
26606
  id: string;
26581
26607
  direction: "incoming" | "outgoing" | "system";
26582
26608
  createdAt: string;
@@ -27098,7 +27124,7 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
27098
27124
  }>;
27099
27125
  }, "strip", z.ZodTypeAny, {
27100
27126
  message: {
27101
- type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "group" | "imagemap" | "sticker" | "carousel" | "card" | "choice" | "dropdown" | "text_with_image" | "reaction" | "contacts" | "referral" | "csat" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "hold" | "unhold" | "auto_unhold" | "edited" | "deleted" | "unsupported";
27127
+ type: string;
27102
27128
  id: string;
27103
27129
  direction: "incoming" | "outgoing" | "system";
27104
27130
  createdAt: string;
@@ -27620,7 +27646,7 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
27620
27646
  };
27621
27647
  }, {
27622
27648
  message: {
27623
- type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "group" | "imagemap" | "sticker" | "carousel" | "card" | "choice" | "dropdown" | "text_with_image" | "reaction" | "contacts" | "referral" | "csat" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "hold" | "unhold" | "auto_unhold" | "edited" | "deleted" | "unsupported";
27649
+ type: string;
27624
27650
  id: string;
27625
27651
  direction: "incoming" | "outgoing" | "system";
27626
27652
  createdAt: string;