@kl1/contracts 1.3.48 → 1.3.49

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 (45) hide show
  1. package/dist/api-contracts/src/channel/index.d.ts +832 -1
  2. package/dist/api-contracts/src/channel/index.d.ts.map +1 -1
  3. package/dist/api-contracts/src/channel/validation.d.ts +10 -0
  4. package/dist/api-contracts/src/channel/validation.d.ts.map +1 -1
  5. package/dist/api-contracts/src/chat/index.d.ts +233 -211
  6. package/dist/api-contracts/src/chat/index.d.ts.map +1 -1
  7. package/dist/api-contracts/src/chat/schema.d.ts +60 -63
  8. package/dist/api-contracts/src/chat/schema.d.ts.map +1 -1
  9. package/dist/api-contracts/src/chat/validation.d.ts +85 -69
  10. package/dist/api-contracts/src/chat/validation.d.ts.map +1 -1
  11. package/dist/api-contracts/src/contract.d.ts +3070 -1829
  12. package/dist/api-contracts/src/contract.d.ts.map +1 -1
  13. package/dist/api-contracts/src/cx-log/index.d.ts +13 -2
  14. package/dist/api-contracts/src/cx-log/index.d.ts.map +1 -1
  15. package/dist/api-contracts/src/cx-log/schema.d.ts +4 -1
  16. package/dist/api-contracts/src/cx-log/schema.d.ts.map +1 -1
  17. package/dist/api-contracts/src/cx-log/validation.d.ts +3 -0
  18. package/dist/api-contracts/src/cx-log/validation.d.ts.map +1 -1
  19. package/dist/api-contracts/src/facebook-feed/index.d.ts +53 -53
  20. package/dist/api-contracts/src/facebook-feed/schema.d.ts +3 -3
  21. package/dist/api-contracts/src/index.d.ts +1 -0
  22. package/dist/api-contracts/src/index.d.ts.map +1 -1
  23. package/dist/api-contracts/src/instagram/index.d.ts +41 -41
  24. package/dist/api-contracts/src/line/index.d.ts +48 -48
  25. package/dist/api-contracts/src/line/validation.d.ts +7 -7
  26. package/dist/api-contracts/src/messenger/index.d.ts +41 -41
  27. package/dist/api-contracts/src/presence-status/index.d.ts +1 -1
  28. package/dist/api-contracts/src/presence-status/index.d.ts.map +1 -1
  29. package/dist/api-contracts/src/sms/index.d.ts +7 -7
  30. package/dist/api-contracts/src/telegram/index.d.ts +41 -41
  31. package/dist/api-contracts/src/telephony-agent-presence-status/index.d.ts +0 -430
  32. package/dist/api-contracts/src/telephony-agent-presence-status/index.d.ts.map +1 -1
  33. package/dist/api-contracts/src/telephony-agent-presence-status/schema.d.ts +0 -3
  34. package/dist/api-contracts/src/telephony-agent-presence-status/schema.d.ts.map +1 -1
  35. package/dist/api-contracts/src/telephony-agent-presence-status/validation.d.ts +0 -3
  36. package/dist/api-contracts/src/telephony-agent-presence-status/validation.d.ts.map +1 -1
  37. package/dist/api-contracts/src/viber/index.d.ts +41 -41
  38. package/dist/api-contracts/src/webchat/index.d.ts +41 -41
  39. package/dist/api-contracts/src/whatsapp/index.d.ts +41 -41
  40. package/dist/api-contracts/src/workflow-rule/index.d.ts +17 -17
  41. package/dist/index.js +1610 -1598
  42. package/dist/index.js.map +1 -1
  43. package/dist/index.mjs +1609 -1598
  44. package/dist/index.mjs.map +1 -1
  45. package/package.json +1 -1
@@ -14,7 +14,7 @@ export declare const whatsappContract: {
14
14
  lastMessage: z.ZodOptional<z.ZodString>;
15
15
  handleTime: z.ZodOptional<z.ZodNumber>;
16
16
  isLatest: z.ZodBoolean;
17
- direction: z.ZodEnum<["incoming", "outgoing", "system"]>;
17
+ direction: z.ZodUnion<[z.ZodLiteral<"incoming">, z.ZodLiteral<"outgoing">, z.ZodLiteral<"system">]>;
18
18
  metadata: z.ZodOptional<z.ZodAny>;
19
19
  createdAt: z.ZodString;
20
20
  updatedAt: z.ZodString;
@@ -610,8 +610,8 @@ export declare const whatsappContract: {
610
610
  message: z.ZodObject<{
611
611
  id: z.ZodOptional<z.ZodString>;
612
612
  message: z.ZodOptional<z.ZodString>;
613
- direction: z.ZodEnum<["incoming", "outgoing", "system"]>;
614
- 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"]>;
613
+ direction: z.ZodUnion<[z.ZodLiteral<"incoming">, z.ZodLiteral<"outgoing">, z.ZodLiteral<"system">]>;
614
+ type: z.ZodUnion<[z.ZodLiteral<string>, z.ZodLiteral<string>, ...z.ZodLiteral<string>[]]>;
615
615
  readAt: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodDate, z.ZodString]>>>;
616
616
  metadata: z.ZodOptional<z.ZodAny>;
617
617
  platformId: z.ZodOptional<z.ZodString>;
@@ -667,7 +667,7 @@ export declare const whatsappContract: {
667
667
  editedAt: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodDate, z.ZodString]>>>;
668
668
  label: z.ZodOptional<z.ZodString>;
669
669
  }, "strip", z.ZodTypeAny, {
670
- 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";
670
+ type: string;
671
671
  direction: "incoming" | "outgoing" | "system";
672
672
  id?: string | undefined;
673
673
  message?: string | undefined;
@@ -702,7 +702,7 @@ export declare const whatsappContract: {
702
702
  editedAt?: string | Date | null | undefined;
703
703
  label?: string | undefined;
704
704
  }, {
705
- 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";
705
+ type: string;
706
706
  direction: "incoming" | "outgoing" | "system";
707
707
  id?: string | undefined;
708
708
  message?: string | undefined;
@@ -739,7 +739,7 @@ export declare const whatsappContract: {
739
739
  }>;
740
740
  }, "strip", z.ZodTypeAny, {
741
741
  message: {
742
- 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";
742
+ type: string;
743
743
  direction: "incoming" | "outgoing" | "system";
744
744
  id?: string | undefined;
745
745
  message?: string | undefined;
@@ -875,7 +875,7 @@ export declare const whatsappContract: {
875
875
  isBot: boolean | null;
876
876
  }, {
877
877
  message: {
878
- 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";
878
+ type: string;
879
879
  direction: "incoming" | "outgoing" | "system";
880
880
  id?: string | undefined;
881
881
  message?: string | undefined;
@@ -1015,11 +1015,11 @@ export declare const whatsappContract: {
1015
1015
  200: z.ZodObject<{
1016
1016
  requestId: z.ZodString;
1017
1017
  data: z.ZodObject<{
1018
- 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"]>;
1018
+ type: z.ZodUnion<[z.ZodLiteral<string>, z.ZodLiteral<string>, ...z.ZodLiteral<string>[]]>;
1019
1019
  message: z.ZodString;
1020
1020
  id: z.ZodString;
1021
1021
  url: z.ZodString;
1022
- direction: z.ZodEnum<["incoming", "outgoing", "system"]>;
1022
+ direction: z.ZodUnion<[z.ZodLiteral<"incoming">, z.ZodLiteral<"outgoing">, z.ZodLiteral<"system">]>;
1023
1023
  label: z.ZodOptional<z.ZodString>;
1024
1024
  template: z.ZodAny;
1025
1025
  metadata: z.ZodAny;
@@ -1484,7 +1484,7 @@ export declare const whatsappContract: {
1484
1484
  firstResponseTime: z.ZodNumber;
1485
1485
  isLatest: z.ZodBoolean;
1486
1486
  isBotRoom: z.ZodBoolean;
1487
- direction: z.ZodEnum<["incoming", "outgoing", "system"]>;
1487
+ direction: z.ZodUnion<[z.ZodLiteral<"incoming">, z.ZodLiteral<"outgoing">, z.ZodLiteral<"system">]>;
1488
1488
  platformContact: z.ZodObject<{
1489
1489
  id: z.ZodString;
1490
1490
  createdAt: z.ZodDate;
@@ -4997,8 +4997,8 @@ export declare const whatsappContract: {
4997
4997
  updatedAt: z.ZodDate;
4998
4998
  deletedAt: z.ZodNullable<z.ZodDate>;
4999
4999
  message: z.ZodString;
5000
- direction: z.ZodEnum<["incoming", "outgoing", "system"]>;
5001
- 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"]>;
5000
+ direction: z.ZodUnion<[z.ZodLiteral<"incoming">, z.ZodLiteral<"outgoing">, z.ZodLiteral<"system">]>;
5001
+ type: z.ZodUnion<[z.ZodLiteral<string>, z.ZodLiteral<string>, ...z.ZodLiteral<string>[]]>;
5002
5002
  readAt: z.ZodDate;
5003
5003
  metadata: z.ZodAny;
5004
5004
  platformId: z.ZodString;
@@ -5656,7 +5656,7 @@ export declare const whatsappContract: {
5656
5656
  };
5657
5657
  }>;
5658
5658
  }, "strip", z.ZodTypeAny, {
5659
- 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";
5659
+ type: string;
5660
5660
  message: string;
5661
5661
  id: string;
5662
5662
  url: string;
@@ -5818,7 +5818,7 @@ export declare const whatsappContract: {
5818
5818
  metadata?: any;
5819
5819
  template?: any;
5820
5820
  }, {
5821
- 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";
5821
+ type: string;
5822
5822
  message: string;
5823
5823
  id: string;
5824
5824
  url: string;
@@ -6191,8 +6191,8 @@ export declare const whatsappContract: {
6191
6191
  updatedAt: z.ZodDate;
6192
6192
  deletedAt: z.ZodNullable<z.ZodDate>;
6193
6193
  message: z.ZodString;
6194
- direction: z.ZodEnum<["incoming", "outgoing", "system"]>;
6195
- 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"]>;
6194
+ direction: z.ZodUnion<[z.ZodLiteral<"incoming">, z.ZodLiteral<"outgoing">, z.ZodLiteral<"system">]>;
6195
+ type: z.ZodUnion<[z.ZodLiteral<string>, z.ZodLiteral<string>, ...z.ZodLiteral<string>[]]>;
6196
6196
  readAt: z.ZodDate;
6197
6197
  metadata: z.ZodAny;
6198
6198
  platformId: z.ZodString;
@@ -6218,7 +6218,7 @@ export declare const whatsappContract: {
6218
6218
  firstResponseTime: z.ZodNumber;
6219
6219
  isLatest: z.ZodBoolean;
6220
6220
  isBotRoom: z.ZodBoolean;
6221
- direction: z.ZodEnum<["incoming", "outgoing", "system"]>;
6221
+ direction: z.ZodUnion<[z.ZodLiteral<"incoming">, z.ZodLiteral<"outgoing">, z.ZodLiteral<"system">]>;
6222
6222
  platformContact: z.ZodObject<{
6223
6223
  id: z.ZodString;
6224
6224
  createdAt: z.ZodDate;
@@ -9734,8 +9734,8 @@ export declare const whatsappContract: {
9734
9734
  updatedAt: z.ZodDate;
9735
9735
  deletedAt: z.ZodNullable<z.ZodDate>;
9736
9736
  message: z.ZodString;
9737
- direction: z.ZodEnum<["incoming", "outgoing", "system"]>;
9738
- 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"]>;
9737
+ direction: z.ZodUnion<[z.ZodLiteral<"incoming">, z.ZodLiteral<"outgoing">, z.ZodLiteral<"system">]>;
9738
+ type: z.ZodUnion<[z.ZodLiteral<string>, z.ZodLiteral<string>, ...z.ZodLiteral<string>[]]>;
9739
9739
  readAt: z.ZodDate;
9740
9740
  metadata: z.ZodAny;
9741
9741
  platformId: z.ZodString;
@@ -10393,7 +10393,7 @@ export declare const whatsappContract: {
10393
10393
  };
10394
10394
  }>;
10395
10395
  }, "strip", z.ZodTypeAny, {
10396
- 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";
10396
+ type: string;
10397
10397
  message: string;
10398
10398
  id: string;
10399
10399
  url: string;
@@ -10555,7 +10555,7 @@ export declare const whatsappContract: {
10555
10555
  metadata?: any;
10556
10556
  template?: any;
10557
10557
  }, {
10558
- 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";
10558
+ type: string;
10559
10559
  message: string;
10560
10560
  id: string;
10561
10561
  url: string;
@@ -11357,7 +11357,7 @@ export declare const whatsappContract: {
11357
11357
  editedMessageid: z.ZodString;
11358
11358
  label: z.ZodOptional<z.ZodString>;
11359
11359
  }, "strip", z.ZodTypeAny, {
11360
- 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";
11360
+ type: string;
11361
11361
  message: string;
11362
11362
  id: string;
11363
11363
  url: string;
@@ -11919,7 +11919,7 @@ export declare const whatsappContract: {
11919
11919
  previewUrl: string;
11920
11920
  imageSetId: string;
11921
11921
  repliedMessage: {
11922
- 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";
11922
+ type: string;
11923
11923
  message: string;
11924
11924
  id: string;
11925
11925
  url: string;
@@ -12130,7 +12130,7 @@ export declare const whatsappContract: {
12130
12130
  template?: any;
12131
12131
  label?: string | undefined;
12132
12132
  }, {
12133
- 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";
12133
+ type: string;
12134
12134
  message: string;
12135
12135
  id: string;
12136
12136
  url: string;
@@ -12692,7 +12692,7 @@ export declare const whatsappContract: {
12692
12692
  previewUrl: string;
12693
12693
  imageSetId: string;
12694
12694
  repliedMessage: {
12695
- 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";
12695
+ type: string;
12696
12696
  message: string;
12697
12697
  id: string;
12698
12698
  url: string;
@@ -12904,7 +12904,7 @@ export declare const whatsappContract: {
12904
12904
  label?: string | undefined;
12905
12905
  }>>>;
12906
12906
  }, "strip", z.ZodTypeAny, {
12907
- 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";
12907
+ type: string;
12908
12908
  message: string;
12909
12909
  id: string;
12910
12910
  url: string;
@@ -13466,7 +13466,7 @@ export declare const whatsappContract: {
13466
13466
  previewUrl: string;
13467
13467
  imageSetId: string;
13468
13468
  repliedMessage: {
13469
- 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";
13469
+ type: string;
13470
13470
  message: string;
13471
13471
  id: string;
13472
13472
  url: string;
@@ -13677,7 +13677,7 @@ export declare const whatsappContract: {
13677
13677
  template?: any;
13678
13678
  metadata?: any;
13679
13679
  fromMessage?: {
13680
- 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";
13680
+ type: string;
13681
13681
  message: string;
13682
13682
  id: string;
13683
13683
  url: string;
@@ -14239,7 +14239,7 @@ export declare const whatsappContract: {
14239
14239
  previewUrl: string;
14240
14240
  imageSetId: string;
14241
14241
  repliedMessage: {
14242
- 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";
14242
+ type: string;
14243
14243
  message: string;
14244
14244
  id: string;
14245
14245
  url: string;
@@ -14451,7 +14451,7 @@ export declare const whatsappContract: {
14451
14451
  label?: string | undefined;
14452
14452
  } | null | undefined;
14453
14453
  }, {
14454
- 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";
14454
+ type: string;
14455
14455
  message: string;
14456
14456
  id: string;
14457
14457
  url: string;
@@ -15013,7 +15013,7 @@ export declare const whatsappContract: {
15013
15013
  previewUrl: string;
15014
15014
  imageSetId: string;
15015
15015
  repliedMessage: {
15016
- 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";
15016
+ type: string;
15017
15017
  message: string;
15018
15018
  id: string;
15019
15019
  url: string;
@@ -15224,7 +15224,7 @@ export declare const whatsappContract: {
15224
15224
  template?: any;
15225
15225
  metadata?: any;
15226
15226
  fromMessage?: {
15227
- 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";
15227
+ type: string;
15228
15228
  message: string;
15229
15229
  id: string;
15230
15230
  url: string;
@@ -15786,7 +15786,7 @@ export declare const whatsappContract: {
15786
15786
  previewUrl: string;
15787
15787
  imageSetId: string;
15788
15788
  repliedMessage: {
15789
- 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";
15789
+ type: string;
15790
15790
  message: string;
15791
15791
  id: string;
15792
15792
  url: string;
@@ -16000,7 +16000,7 @@ export declare const whatsappContract: {
16000
16000
  }>;
16001
16001
  }, "strip", z.ZodTypeAny, {
16002
16002
  data: {
16003
- 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";
16003
+ type: string;
16004
16004
  message: string;
16005
16005
  id: string;
16006
16006
  url: string;
@@ -16562,7 +16562,7 @@ export declare const whatsappContract: {
16562
16562
  previewUrl: string;
16563
16563
  imageSetId: string;
16564
16564
  repliedMessage: {
16565
- 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";
16565
+ type: string;
16566
16566
  message: string;
16567
16567
  id: string;
16568
16568
  url: string;
@@ -16773,7 +16773,7 @@ export declare const whatsappContract: {
16773
16773
  template?: any;
16774
16774
  metadata?: any;
16775
16775
  fromMessage?: {
16776
- 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";
16776
+ type: string;
16777
16777
  message: string;
16778
16778
  id: string;
16779
16779
  url: string;
@@ -17335,7 +17335,7 @@ export declare const whatsappContract: {
17335
17335
  previewUrl: string;
17336
17336
  imageSetId: string;
17337
17337
  repliedMessage: {
17338
- 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";
17338
+ type: string;
17339
17339
  message: string;
17340
17340
  id: string;
17341
17341
  url: string;
@@ -17550,7 +17550,7 @@ export declare const whatsappContract: {
17550
17550
  requestId: string;
17551
17551
  }, {
17552
17552
  data: {
17553
- 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";
17553
+ type: string;
17554
17554
  message: string;
17555
17555
  id: string;
17556
17556
  url: string;
@@ -18112,7 +18112,7 @@ export declare const whatsappContract: {
18112
18112
  previewUrl: string;
18113
18113
  imageSetId: string;
18114
18114
  repliedMessage: {
18115
- 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";
18115
+ type: string;
18116
18116
  message: string;
18117
18117
  id: string;
18118
18118
  url: string;
@@ -18323,7 +18323,7 @@ export declare const whatsappContract: {
18323
18323
  template?: any;
18324
18324
  metadata?: any;
18325
18325
  fromMessage?: {
18326
- 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";
18326
+ type: string;
18327
18327
  message: string;
18328
18328
  id: string;
18329
18329
  url: string;
@@ -18885,7 +18885,7 @@ export declare const whatsappContract: {
18885
18885
  previewUrl: string;
18886
18886
  imageSetId: string;
18887
18887
  repliedMessage: {
18888
- 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";
18888
+ type: string;
18889
18889
  message: string;
18890
18890
  id: string;
18891
18891
  url: string;
@@ -37,7 +37,7 @@ export declare const chatContract: {
37
37
  firstResponseTime: z.ZodNumber;
38
38
  isLatest: z.ZodBoolean;
39
39
  isBotRoom: z.ZodBoolean;
40
- direction: z.ZodEnum<["incoming", "outgoing", "system"]>;
40
+ direction: z.ZodUnion<[z.ZodLiteral<"incoming">, z.ZodLiteral<"outgoing">, z.ZodLiteral<"system">]>;
41
41
  platformContact: z.ZodObject<{
42
42
  id: z.ZodString;
43
43
  createdAt: z.ZodDate;
@@ -4440,8 +4440,8 @@ export declare const chatContract: {
4440
4440
  updatedAt: z.ZodDate;
4441
4441
  deletedAt: z.ZodNullable<z.ZodDate>;
4442
4442
  message: z.ZodString;
4443
- direction: z.ZodEnum<["incoming", "outgoing", "system"]>;
4444
- 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"]>;
4443
+ direction: z.ZodUnion<[z.ZodLiteral<"incoming">, z.ZodLiteral<"outgoing">, z.ZodLiteral<"system">]>;
4444
+ type: z.ZodUnion<[z.ZodLiteral<string>, z.ZodLiteral<string>, ...z.ZodLiteral<string>[]]>;
4445
4445
  readAt: z.ZodDate;
4446
4446
  metadata: z.ZodAny;
4447
4447
  platformId: z.ZodString;
@@ -4467,7 +4467,7 @@ export declare const chatContract: {
4467
4467
  firstResponseTime: z.ZodNumber;
4468
4468
  isLatest: z.ZodBoolean;
4469
4469
  isBotRoom: z.ZodBoolean;
4470
- direction: z.ZodEnum<["incoming", "outgoing", "system"]>;
4470
+ direction: z.ZodUnion<[z.ZodLiteral<"incoming">, z.ZodLiteral<"outgoing">, z.ZodLiteral<"system">]>;
4471
4471
  platformContact: z.ZodObject<{
4472
4472
  id: z.ZodString;
4473
4473
  createdAt: z.ZodDate;
@@ -7983,8 +7983,8 @@ export declare const chatContract: {
7983
7983
  updatedAt: z.ZodDate;
7984
7984
  deletedAt: z.ZodNullable<z.ZodDate>;
7985
7985
  message: z.ZodString;
7986
- direction: z.ZodEnum<["incoming", "outgoing", "system"]>;
7987
- 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"]>;
7986
+ direction: z.ZodUnion<[z.ZodLiteral<"incoming">, z.ZodLiteral<"outgoing">, z.ZodLiteral<"system">]>;
7987
+ type: z.ZodUnion<[z.ZodLiteral<string>, z.ZodLiteral<string>, ...z.ZodLiteral<string>[]]>;
7988
7988
  readAt: z.ZodDate;
7989
7989
  metadata: z.ZodAny;
7990
7990
  platformId: z.ZodString;
@@ -8642,7 +8642,7 @@ export declare const chatContract: {
8642
8642
  };
8643
8643
  }>;
8644
8644
  }, "strip", z.ZodTypeAny, {
8645
- 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";
8645
+ type: string;
8646
8646
  message: string;
8647
8647
  id: string;
8648
8648
  url: string;
@@ -8804,7 +8804,7 @@ export declare const chatContract: {
8804
8804
  metadata?: any;
8805
8805
  template?: any;
8806
8806
  }, {
8807
- 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";
8807
+ type: string;
8808
8808
  message: string;
8809
8809
  id: string;
8810
8810
  url: string;
@@ -9606,7 +9606,7 @@ export declare const chatContract: {
9606
9606
  editedMessageid: z.ZodString;
9607
9607
  label: z.ZodOptional<z.ZodString>;
9608
9608
  }, "strip", z.ZodTypeAny, {
9609
- 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";
9609
+ type: string;
9610
9610
  message: string;
9611
9611
  id: string;
9612
9612
  url: string;
@@ -10168,7 +10168,7 @@ export declare const chatContract: {
10168
10168
  previewUrl: string;
10169
10169
  imageSetId: string;
10170
10170
  repliedMessage: {
10171
- 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";
10171
+ type: string;
10172
10172
  message: string;
10173
10173
  id: string;
10174
10174
  url: string;
@@ -10379,7 +10379,7 @@ export declare const chatContract: {
10379
10379
  template?: any;
10380
10380
  label?: string | undefined;
10381
10381
  }, {
10382
- 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";
10382
+ type: string;
10383
10383
  message: string;
10384
10384
  id: string;
10385
10385
  url: string;
@@ -10941,7 +10941,7 @@ export declare const chatContract: {
10941
10941
  previewUrl: string;
10942
10942
  imageSetId: string;
10943
10943
  repliedMessage: {
10944
- 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";
10944
+ type: string;
10945
10945
  message: string;
10946
10946
  id: string;
10947
10947
  url: string;
@@ -11154,7 +11154,7 @@ export declare const chatContract: {
11154
11154
  }>;
11155
11155
  }, "strip", z.ZodTypeAny, {
11156
11156
  data: {
11157
- 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";
11157
+ type: string;
11158
11158
  message: string;
11159
11159
  id: string;
11160
11160
  url: string;
@@ -11716,7 +11716,7 @@ export declare const chatContract: {
11716
11716
  previewUrl: string;
11717
11717
  imageSetId: string;
11718
11718
  repliedMessage: {
11719
- 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";
11719
+ type: string;
11720
11720
  message: string;
11721
11721
  id: string;
11722
11722
  url: string;
@@ -11930,7 +11930,7 @@ export declare const chatContract: {
11930
11930
  requestId: string;
11931
11931
  }, {
11932
11932
  data: {
11933
- 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";
11933
+ type: string;
11934
11934
  message: string;
11935
11935
  id: string;
11936
11936
  url: string;
@@ -12492,7 +12492,7 @@ export declare const chatContract: {
12492
12492
  previewUrl: string;
12493
12493
  imageSetId: string;
12494
12494
  repliedMessage: {
12495
- 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";
12495
+ type: string;
12496
12496
  message: string;
12497
12497
  id: string;
12498
12498
  url: string;
@@ -13327,7 +13327,7 @@ export declare const chatContract: {
13327
13327
  integrationId: string;
13328
13328
  } | null;
13329
13329
  }>;
13330
- direction: z.ZodEnum<["incoming", "outgoing", "system"]>;
13330
+ direction: z.ZodUnion<[z.ZodLiteral<"incoming">, z.ZodLiteral<"outgoing">, z.ZodLiteral<"system">]>;
13331
13331
  status: z.ZodNumber;
13332
13332
  createdAt: z.ZodDate;
13333
13333
  updatedAt: z.ZodDate;