@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
@@ -1,7 +1,7 @@
1
1
  import z from 'zod';
2
2
  import { DefaultQueryParamsSchema } from '../base-contract';
3
3
  import { FeedPostSchema } from '../facebook-feed/schema';
4
- import { MessageRelevanceSchema, MessageSchema, MessageWithFeedPostSchema, OrderQueryParamSchema, RoomSchema } from './schema';
4
+ import { MessageDirectionTypeSchema, MessageRelevanceSchema, MessageSchema, MessageTypeSchema, MessageWithFeedPostSchema, OrderQueryParamSchema, RoomSchema } from './schema';
5
5
  import { ActionMessageSchema, ChannelSchema, DeleteMessageToPlatformSchema, GetRoomsSchema, InitiateMessageSchema, LineStickerSchema, ReceiveMessageSchema, ReloginChanelSchema, SearchRoomsSchema, SendMessageResponseSchema, SendMessageSchema, SendMessageToPlatformSchema, SendMessageWithActionTypeSchema, SolveRoomSchema, UpdateAssigneeByWorkflowSchema, UpdateAssigneeSchema, UpdateRoomAttributesSchema, UpdateRoomTagsAndNotesSchema, UpdateUnAssignRoomsSchema } from './validation';
6
6
  export type GetRoomRequest = z.infer<typeof GetRoomsSchema>;
7
7
  export type UpdateRoomAttributesRequest = z.infer<typeof UpdateRoomAttributesSchema>;
@@ -25,6 +25,8 @@ export type ReceiveMessageRequest = z.infer<typeof ReceiveMessageSchema>;
25
25
  export type GetMessagesResponse = z.infer<typeof DefaultQueryParamsSchema>;
26
26
  export type RoomSchemaType = z.infer<typeof RoomSchema>;
27
27
  export type MessageSchemaType = z.infer<typeof MessageSchema>;
28
+ export type MessageType = z.infer<typeof MessageTypeSchema>;
29
+ export type MessageDirectionType = z.infer<typeof MessageDirectionTypeSchema>;
28
30
  export type MessageWithFeedPostSchemaType = z.infer<typeof MessageWithFeedPostSchema>;
29
31
  export type LineStickerRequestType = z.infer<typeof LineStickerSchema>;
30
32
  export type MessageRelevanceType = z.infer<typeof MessageRelevanceSchema>;
@@ -39,8 +41,8 @@ export declare const receiveMessageContract: {
39
41
  updatedAt: z.ZodString;
40
42
  deletedAt: z.ZodNullable<z.ZodString>;
41
43
  message: z.ZodOptional<z.ZodString>;
42
- direction: z.ZodEnum<["incoming", "outgoing", "system"]>;
43
- 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"]>;
44
+ direction: z.ZodUnion<[z.ZodLiteral<"incoming">, z.ZodLiteral<"outgoing">, z.ZodLiteral<"system">]>;
45
+ type: z.ZodUnion<[z.ZodLiteral<string>, z.ZodLiteral<string>, ...z.ZodLiteral<string>[]]>;
44
46
  metadata: z.ZodAny;
45
47
  platformId: z.ZodString;
46
48
  platformMessageId: z.ZodString;
@@ -62,7 +64,7 @@ export declare const receiveMessageContract: {
62
64
  firstResponseAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
63
65
  firstResponseTime: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
64
66
  isLatest: z.ZodOptional<z.ZodBoolean>;
65
- direction: z.ZodOptional<z.ZodEnum<["incoming", "outgoing", "system"]>>;
67
+ direction: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"incoming">, z.ZodLiteral<"outgoing">, z.ZodLiteral<"system">]>>;
66
68
  platformContact: z.ZodOptional<z.ZodObject<{
67
69
  id: z.ZodString;
68
70
  createdAt: z.ZodString;
@@ -3580,7 +3582,7 @@ export declare const receiveMessageContract: {
3580
3582
  }>>>;
3581
3583
  label: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3582
3584
  }, "strip", z.ZodTypeAny, {
3583
- 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";
3585
+ type: string;
3584
3586
  id: string;
3585
3587
  direction: "incoming" | "outgoing" | "system";
3586
3588
  createdAt: string;
@@ -4100,7 +4102,7 @@ export declare const receiveMessageContract: {
4100
4102
  } | null | undefined;
4101
4103
  label?: string | null | undefined;
4102
4104
  }, {
4103
- 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";
4105
+ type: string;
4104
4106
  id: string;
4105
4107
  direction: "incoming" | "outgoing" | "system";
4106
4108
  createdAt: string;
@@ -4622,7 +4624,7 @@ export declare const receiveMessageContract: {
4622
4624
  }>;
4623
4625
  }, "strip", z.ZodTypeAny, {
4624
4626
  message: {
4625
- 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";
4627
+ type: string;
4626
4628
  id: string;
4627
4629
  direction: "incoming" | "outgoing" | "system";
4628
4630
  createdAt: string;
@@ -5144,7 +5146,7 @@ export declare const receiveMessageContract: {
5144
5146
  };
5145
5147
  }, {
5146
5148
  message: {
5147
- 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";
5149
+ type: string;
5148
5150
  id: string;
5149
5151
  direction: "incoming" | "outgoing" | "system";
5150
5152
  createdAt: string;
@@ -5713,7 +5715,7 @@ export declare const mainFeedContract: {
5713
5715
  updatedAt: z.ZodDate;
5714
5716
  deletedAt: z.ZodNullable<z.ZodDate>;
5715
5717
  message: z.ZodNullable<z.ZodString>;
5716
- type: z.ZodUnion<[z.ZodEnum<["text", "added_photos", "added_video", "shared_story", "mobile_status_update", "no_data"]>, 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"]>]>;
5718
+ type: z.ZodUnion<[z.ZodEnum<["text", "added_photos", "added_video", "shared_story", "mobile_status_update", "no_data"]>, z.ZodUnion<[z.ZodLiteral<string>, z.ZodLiteral<string>, ...z.ZodLiteral<string>[]]>]>;
5717
5719
  metadata: z.ZodAny;
5718
5720
  platformId: z.ZodString;
5719
5721
  platformMessageId: z.ZodString;
@@ -7552,7 +7554,7 @@ export declare const mainFeedContract: {
7552
7554
  }>;
7553
7555
  permalinkURL: z.ZodString;
7554
7556
  }, "strip", z.ZodTypeAny, {
7555
- type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "group" | "added_photos" | "added_video" | "shared_story" | "mobile_status_update" | "no_data" | "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";
7557
+ type: string;
7556
7558
  message: string | null;
7557
7559
  id: string;
7558
7560
  channel: {
@@ -7838,7 +7840,7 @@ export declare const mainFeedContract: {
7838
7840
  metadata?: any;
7839
7841
  template?: any;
7840
7842
  }, {
7841
- type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "group" | "added_photos" | "added_video" | "shared_story" | "mobile_status_update" | "no_data" | "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";
7843
+ type: string;
7842
7844
  message: string | null;
7843
7845
  id: string;
7844
7846
  channel: {
@@ -8126,7 +8128,7 @@ export declare const mainFeedContract: {
8126
8128
  }>;
8127
8129
  }, "strip", z.ZodTypeAny, {
8128
8130
  data: {
8129
- type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "group" | "added_photos" | "added_video" | "shared_story" | "mobile_status_update" | "no_data" | "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";
8131
+ type: string;
8130
8132
  message: string | null;
8131
8133
  id: string;
8132
8134
  channel: {
@@ -8415,7 +8417,7 @@ export declare const mainFeedContract: {
8415
8417
  requestId: string;
8416
8418
  }, {
8417
8419
  data: {
8418
- type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "group" | "added_photos" | "added_video" | "shared_story" | "mobile_status_update" | "no_data" | "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";
8420
+ type: string;
8419
8421
  message: string | null;
8420
8422
  id: string;
8421
8423
  channel: {
@@ -8749,11 +8751,11 @@ export declare const mainFeedContract: {
8749
8751
  page: z.ZodNumber;
8750
8752
  pageSize: z.ZodNumber;
8751
8753
  data: z.ZodObject<{
8752
- 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"]>;
8754
+ type: z.ZodUnion<[z.ZodLiteral<string>, z.ZodLiteral<string>, ...z.ZodLiteral<string>[]]>;
8753
8755
  message: z.ZodString;
8754
8756
  id: z.ZodString;
8755
8757
  url: z.ZodString;
8756
- direction: z.ZodEnum<["incoming", "outgoing", "system"]>;
8758
+ direction: z.ZodUnion<[z.ZodLiteral<"incoming">, z.ZodLiteral<"outgoing">, z.ZodLiteral<"system">]>;
8757
8759
  label: z.ZodOptional<z.ZodString>;
8758
8760
  template: z.ZodAny;
8759
8761
  metadata: z.ZodAny;
@@ -9218,7 +9220,7 @@ export declare const mainFeedContract: {
9218
9220
  firstResponseTime: z.ZodNumber;
9219
9221
  isLatest: z.ZodBoolean;
9220
9222
  isBotRoom: z.ZodBoolean;
9221
- direction: z.ZodEnum<["incoming", "outgoing", "system"]>;
9223
+ direction: z.ZodUnion<[z.ZodLiteral<"incoming">, z.ZodLiteral<"outgoing">, z.ZodLiteral<"system">]>;
9222
9224
  platformContact: z.ZodObject<{
9223
9225
  id: z.ZodString;
9224
9226
  createdAt: z.ZodDate;
@@ -12731,8 +12733,8 @@ export declare const mainFeedContract: {
12731
12733
  updatedAt: z.ZodDate;
12732
12734
  deletedAt: z.ZodNullable<z.ZodDate>;
12733
12735
  message: z.ZodString;
12734
- direction: z.ZodEnum<["incoming", "outgoing", "system"]>;
12735
- 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"]>;
12736
+ direction: z.ZodUnion<[z.ZodLiteral<"incoming">, z.ZodLiteral<"outgoing">, z.ZodLiteral<"system">]>;
12737
+ type: z.ZodUnion<[z.ZodLiteral<string>, z.ZodLiteral<string>, ...z.ZodLiteral<string>[]]>;
12736
12738
  readAt: z.ZodDate;
12737
12739
  metadata: z.ZodAny;
12738
12740
  platformId: z.ZodString;
@@ -13390,7 +13392,7 @@ export declare const mainFeedContract: {
13390
13392
  };
13391
13393
  }>;
13392
13394
  }, "strip", z.ZodTypeAny, {
13393
- 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";
13395
+ type: string;
13394
13396
  message: string;
13395
13397
  id: string;
13396
13398
  url: string;
@@ -13552,7 +13554,7 @@ export declare const mainFeedContract: {
13552
13554
  metadata?: any;
13553
13555
  template?: any;
13554
13556
  }, {
13555
- 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";
13557
+ type: string;
13556
13558
  message: string;
13557
13559
  id: string;
13558
13560
  url: string;
@@ -14972,8 +14974,8 @@ export declare const mainFeedContract: {
14972
14974
  updatedAt: z.ZodDate;
14973
14975
  deletedAt: z.ZodNullable<z.ZodDate>;
14974
14976
  message: z.ZodString;
14975
- direction: z.ZodEnum<["incoming", "outgoing", "system"]>;
14976
- 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"]>;
14977
+ direction: z.ZodUnion<[z.ZodLiteral<"incoming">, z.ZodLiteral<"outgoing">, z.ZodLiteral<"system">]>;
14978
+ type: z.ZodUnion<[z.ZodLiteral<string>, z.ZodLiteral<string>, ...z.ZodLiteral<string>[]]>;
14977
14979
  readAt: z.ZodDate;
14978
14980
  metadata: z.ZodAny;
14979
14981
  platformId: z.ZodString;
@@ -14999,7 +15001,7 @@ export declare const mainFeedContract: {
14999
15001
  firstResponseTime: z.ZodNumber;
15000
15002
  isLatest: z.ZodBoolean;
15001
15003
  isBotRoom: z.ZodBoolean;
15002
- direction: z.ZodEnum<["incoming", "outgoing", "system"]>;
15004
+ direction: z.ZodUnion<[z.ZodLiteral<"incoming">, z.ZodLiteral<"outgoing">, z.ZodLiteral<"system">]>;
15003
15005
  platformContact: z.ZodObject<{
15004
15006
  id: z.ZodString;
15005
15007
  createdAt: z.ZodDate;
@@ -18515,8 +18517,8 @@ export declare const mainFeedContract: {
18515
18517
  updatedAt: z.ZodDate;
18516
18518
  deletedAt: z.ZodNullable<z.ZodDate>;
18517
18519
  message: z.ZodString;
18518
- direction: z.ZodEnum<["incoming", "outgoing", "system"]>;
18519
- 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"]>;
18520
+ direction: z.ZodUnion<[z.ZodLiteral<"incoming">, z.ZodLiteral<"outgoing">, z.ZodLiteral<"system">]>;
18521
+ type: z.ZodUnion<[z.ZodLiteral<string>, z.ZodLiteral<string>, ...z.ZodLiteral<string>[]]>;
18520
18522
  readAt: z.ZodDate;
18521
18523
  metadata: z.ZodAny;
18522
18524
  platformId: z.ZodString;
@@ -19174,7 +19176,7 @@ export declare const mainFeedContract: {
19174
19176
  };
19175
19177
  }>;
19176
19178
  }, "strip", z.ZodTypeAny, {
19177
- 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";
19179
+ type: string;
19178
19180
  message: string;
19179
19181
  id: string;
19180
19182
  url: string;
@@ -19336,7 +19338,7 @@ export declare const mainFeedContract: {
19336
19338
  metadata?: any;
19337
19339
  template?: any;
19338
19340
  }, {
19339
- 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";
19341
+ type: string;
19340
19342
  message: string;
19341
19343
  id: string;
19342
19344
  url: string;
@@ -20138,7 +20140,7 @@ export declare const mainFeedContract: {
20138
20140
  editedMessageid: z.ZodString;
20139
20141
  label: z.ZodOptional<z.ZodString>;
20140
20142
  }, "strip", z.ZodTypeAny, {
20141
- 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";
20143
+ type: string;
20142
20144
  message: string;
20143
20145
  id: string;
20144
20146
  url: string;
@@ -20700,7 +20702,7 @@ export declare const mainFeedContract: {
20700
20702
  previewUrl: string;
20701
20703
  imageSetId: string;
20702
20704
  repliedMessage: {
20703
- 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";
20705
+ type: string;
20704
20706
  message: string;
20705
20707
  id: string;
20706
20708
  url: string;
@@ -20911,7 +20913,7 @@ export declare const mainFeedContract: {
20911
20913
  template?: any;
20912
20914
  label?: string | undefined;
20913
20915
  }, {
20914
- 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";
20916
+ type: string;
20915
20917
  message: string;
20916
20918
  id: string;
20917
20919
  url: string;
@@ -21473,7 +21475,7 @@ export declare const mainFeedContract: {
21473
21475
  previewUrl: string;
21474
21476
  imageSetId: string;
21475
21477
  repliedMessage: {
21476
- 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";
21478
+ type: string;
21477
21479
  message: string;
21478
21480
  id: string;
21479
21481
  url: string;
@@ -21685,13 +21687,13 @@ export declare const mainFeedContract: {
21685
21687
  label?: string | undefined;
21686
21688
  }>, "many">;
21687
21689
  }, "strip", z.ZodTypeAny, {
21688
- 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";
21690
+ type: string;
21689
21691
  message: string;
21690
21692
  id: string;
21691
21693
  url: string;
21692
21694
  direction: "incoming" | "outgoing" | "system";
21693
21695
  children: {
21694
- 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";
21696
+ type: string;
21695
21697
  message: string;
21696
21698
  id: string;
21697
21699
  url: string;
@@ -22253,7 +22255,7 @@ export declare const mainFeedContract: {
22253
22255
  previewUrl: string;
22254
22256
  imageSetId: string;
22255
22257
  repliedMessage: {
22256
- 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";
22258
+ type: string;
22257
22259
  message: string;
22258
22260
  id: string;
22259
22261
  url: string;
@@ -23021,7 +23023,7 @@ export declare const mainFeedContract: {
23021
23023
  previewUrl: string;
23022
23024
  imageSetId: string;
23023
23025
  repliedMessage: {
23024
- 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";
23026
+ type: string;
23025
23027
  message: string;
23026
23028
  id: string;
23027
23029
  url: string;
@@ -23359,13 +23361,13 @@ export declare const mainFeedContract: {
23359
23361
  template?: any;
23360
23362
  metadata?: any;
23361
23363
  }, {
23362
- 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";
23364
+ type: string;
23363
23365
  message: string;
23364
23366
  id: string;
23365
23367
  url: string;
23366
23368
  direction: "incoming" | "outgoing" | "system";
23367
23369
  children: {
23368
- 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";
23370
+ type: string;
23369
23371
  message: string;
23370
23372
  id: string;
23371
23373
  url: string;
@@ -23927,7 +23929,7 @@ export declare const mainFeedContract: {
23927
23929
  previewUrl: string;
23928
23930
  imageSetId: string;
23929
23931
  repliedMessage: {
23930
- 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";
23932
+ type: string;
23931
23933
  message: string;
23932
23934
  id: string;
23933
23935
  url: string;
@@ -24695,7 +24697,7 @@ export declare const mainFeedContract: {
24695
24697
  previewUrl: string;
24696
24698
  imageSetId: string;
24697
24699
  repliedMessage: {
24698
- 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";
24700
+ type: string;
24699
24701
  message: string;
24700
24702
  id: string;
24701
24703
  url: string;
@@ -25035,13 +25037,13 @@ export declare const mainFeedContract: {
25035
25037
  }>;
25036
25038
  }, "strip", z.ZodTypeAny, {
25037
25039
  data: {
25038
- 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";
25040
+ type: string;
25039
25041
  message: string;
25040
25042
  id: string;
25041
25043
  url: string;
25042
25044
  direction: "incoming" | "outgoing" | "system";
25043
25045
  children: {
25044
- 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";
25046
+ type: string;
25045
25047
  message: string;
25046
25048
  id: string;
25047
25049
  url: string;
@@ -25603,7 +25605,7 @@ export declare const mainFeedContract: {
25603
25605
  previewUrl: string;
25604
25606
  imageSetId: string;
25605
25607
  repliedMessage: {
25606
- 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";
25608
+ type: string;
25607
25609
  message: string;
25608
25610
  id: string;
25609
25611
  url: string;
@@ -26371,7 +26373,7 @@ export declare const mainFeedContract: {
26371
26373
  previewUrl: string;
26372
26374
  imageSetId: string;
26373
26375
  repliedMessage: {
26374
- 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";
26376
+ type: string;
26375
26377
  message: string;
26376
26378
  id: string;
26377
26379
  url: string;
@@ -26715,13 +26717,13 @@ export declare const mainFeedContract: {
26715
26717
  requestId: string;
26716
26718
  }, {
26717
26719
  data: {
26718
- 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";
26720
+ type: string;
26719
26721
  message: string;
26720
26722
  id: string;
26721
26723
  url: string;
26722
26724
  direction: "incoming" | "outgoing" | "system";
26723
26725
  children: {
26724
- 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";
26726
+ type: string;
26725
26727
  message: string;
26726
26728
  id: string;
26727
26729
  url: string;
@@ -27283,7 +27285,7 @@ export declare const mainFeedContract: {
27283
27285
  previewUrl: string;
27284
27286
  imageSetId: string;
27285
27287
  repliedMessage: {
27286
- 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";
27288
+ type: string;
27287
27289
  message: string;
27288
27290
  id: string;
27289
27291
  url: string;
@@ -28051,7 +28053,7 @@ export declare const mainFeedContract: {
28051
28053
  previewUrl: string;
28052
28054
  imageSetId: string;
28053
28055
  repliedMessage: {
28054
- 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";
28056
+ type: string;
28055
28057
  message: string;
28056
28058
  id: string;
28057
28059
  url: string;
@@ -28573,7 +28575,7 @@ export declare const mainChatRoomContract: {
28573
28575
  firstResponseTime: z.ZodNumber;
28574
28576
  isLatest: z.ZodBoolean;
28575
28577
  isBotRoom: z.ZodBoolean;
28576
- direction: z.ZodEnum<["incoming", "outgoing", "system"]>;
28578
+ direction: z.ZodUnion<[z.ZodLiteral<"incoming">, z.ZodLiteral<"outgoing">, z.ZodLiteral<"system">]>;
28577
28579
  platformContact: z.ZodObject<{
28578
28580
  id: z.ZodString;
28579
28581
  createdAt: z.ZodDate;
@@ -33013,7 +33015,7 @@ export declare const mainChatRoomContract: {
33013
33015
  firstResponseTime: z.ZodNumber;
33014
33016
  isLatest: z.ZodBoolean;
33015
33017
  isBotRoom: z.ZodBoolean;
33016
- direction: z.ZodEnum<["incoming", "outgoing", "system"]>;
33018
+ direction: z.ZodUnion<[z.ZodLiteral<"incoming">, z.ZodLiteral<"outgoing">, z.ZodLiteral<"system">]>;
33017
33019
  platformContact: z.ZodObject<{
33018
33020
  id: z.ZodString;
33019
33021
  createdAt: z.ZodDate;
@@ -36492,8 +36494,8 @@ export declare const mainChatRoomContract: {
36492
36494
  showResumeLabel: z.ZodBoolean;
36493
36495
  latestIncomingMessage: z.ZodObject<{
36494
36496
  message: z.ZodString;
36495
- direction: z.ZodEnum<["incoming", "outgoing", "system"]>;
36496
- 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"]>;
36497
+ direction: z.ZodUnion<[z.ZodLiteral<"incoming">, z.ZodLiteral<"outgoing">, z.ZodLiteral<"system">]>;
36498
+ type: z.ZodUnion<[z.ZodLiteral<string>, z.ZodLiteral<string>, ...z.ZodLiteral<string>[]]>;
36497
36499
  readAt: z.ZodDate;
36498
36500
  metadata: z.ZodAny;
36499
36501
  platformId: z.ZodString;
@@ -36505,7 +36507,7 @@ export declare const mainChatRoomContract: {
36505
36507
  previewUrl: z.ZodString;
36506
36508
  imageSetId: z.ZodString;
36507
36509
  }, "strip", z.ZodTypeAny, {
36508
- 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";
36510
+ type: string;
36509
36511
  message: string;
36510
36512
  url: string;
36511
36513
  direction: "incoming" | "outgoing" | "system";
@@ -36519,7 +36521,7 @@ export declare const mainChatRoomContract: {
36519
36521
  metadata?: any;
36520
36522
  template?: any;
36521
36523
  }, {
36522
- 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";
36524
+ type: string;
36523
36525
  message: string;
36524
36526
  url: string;
36525
36527
  direction: "incoming" | "outgoing" | "system";
@@ -36535,8 +36537,8 @@ export declare const mainChatRoomContract: {
36535
36537
  }>;
36536
36538
  latestMessage: z.ZodObject<{
36537
36539
  message: z.ZodString;
36538
- direction: z.ZodEnum<["incoming", "outgoing", "system"]>;
36539
- 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"]>;
36540
+ direction: z.ZodUnion<[z.ZodLiteral<"incoming">, z.ZodLiteral<"outgoing">, z.ZodLiteral<"system">]>;
36541
+ type: z.ZodUnion<[z.ZodLiteral<string>, z.ZodLiteral<string>, ...z.ZodLiteral<string>[]]>;
36540
36542
  readAt: z.ZodDate;
36541
36543
  metadata: z.ZodAny;
36542
36544
  platformId: z.ZodString;
@@ -36548,7 +36550,7 @@ export declare const mainChatRoomContract: {
36548
36550
  previewUrl: z.ZodString;
36549
36551
  imageSetId: z.ZodString;
36550
36552
  }, "strip", z.ZodTypeAny, {
36551
- 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";
36553
+ type: string;
36552
36554
  message: string;
36553
36555
  url: string;
36554
36556
  direction: "incoming" | "outgoing" | "system";
@@ -36562,7 +36564,7 @@ export declare const mainChatRoomContract: {
36562
36564
  metadata?: any;
36563
36565
  template?: any;
36564
36566
  }, {
36565
- 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";
36567
+ type: string;
36566
36568
  message: string;
36567
36569
  url: string;
36568
36570
  direction: "incoming" | "outgoing" | "system";
@@ -37016,7 +37018,7 @@ export declare const mainChatRoomContract: {
37016
37018
  };
37017
37019
  showResumeLabel: boolean;
37018
37020
  latestIncomingMessage: {
37019
- 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";
37021
+ type: string;
37020
37022
  message: string;
37021
37023
  url: string;
37022
37024
  direction: "incoming" | "outgoing" | "system";
@@ -37031,7 +37033,7 @@ export declare const mainChatRoomContract: {
37031
37033
  template?: any;
37032
37034
  };
37033
37035
  latestMessage: {
37034
- 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";
37036
+ type: string;
37035
37037
  message: string;
37036
37038
  url: string;
37037
37039
  direction: "incoming" | "outgoing" | "system";
@@ -37485,7 +37487,7 @@ export declare const mainChatRoomContract: {
37485
37487
  };
37486
37488
  showResumeLabel: boolean;
37487
37489
  latestIncomingMessage: {
37488
- 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";
37490
+ type: string;
37489
37491
  message: string;
37490
37492
  url: string;
37491
37493
  direction: "incoming" | "outgoing" | "system";
@@ -37500,7 +37502,7 @@ export declare const mainChatRoomContract: {
37500
37502
  template?: any;
37501
37503
  };
37502
37504
  latestMessage: {
37503
- 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";
37505
+ type: string;
37504
37506
  message: string;
37505
37507
  url: string;
37506
37508
  direction: "incoming" | "outgoing" | "system";
@@ -37956,7 +37958,7 @@ export declare const mainChatRoomContract: {
37956
37958
  };
37957
37959
  showResumeLabel: boolean;
37958
37960
  latestIncomingMessage: {
37959
- 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";
37961
+ type: string;
37960
37962
  message: string;
37961
37963
  url: string;
37962
37964
  direction: "incoming" | "outgoing" | "system";
@@ -37971,7 +37973,7 @@ export declare const mainChatRoomContract: {
37971
37973
  template?: any;
37972
37974
  };
37973
37975
  latestMessage: {
37974
- 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";
37976
+ type: string;
37975
37977
  message: string;
37976
37978
  url: string;
37977
37979
  direction: "incoming" | "outgoing" | "system";
@@ -38428,7 +38430,7 @@ export declare const mainChatRoomContract: {
38428
38430
  };
38429
38431
  showResumeLabel: boolean;
38430
38432
  latestIncomingMessage: {
38431
- 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";
38433
+ type: string;
38432
38434
  message: string;
38433
38435
  url: string;
38434
38436
  direction: "incoming" | "outgoing" | "system";
@@ -38443,7 +38445,7 @@ export declare const mainChatRoomContract: {
38443
38445
  template?: any;
38444
38446
  };
38445
38447
  latestMessage: {
38446
- 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";
38448
+ type: string;
38447
38449
  message: string;
38448
38450
  url: string;
38449
38451
  direction: "incoming" | "outgoing" | "system";
@@ -39085,7 +39087,7 @@ export declare const mainChatRoomContract: {
39085
39087
  integrationId: string;
39086
39088
  } | null;
39087
39089
  }>;
39088
- direction: z.ZodEnum<["incoming", "outgoing", "system"]>;
39090
+ direction: z.ZodUnion<[z.ZodLiteral<"incoming">, z.ZodLiteral<"outgoing">, z.ZodLiteral<"system">]>;
39089
39091
  status: z.ZodNumber;
39090
39092
  createdAt: z.ZodDate;
39091
39093
  updatedAt: z.ZodDate;
@@ -43503,7 +43505,7 @@ export declare const mainChatRoomContract: {
43503
43505
  integrationId: string;
43504
43506
  } | null;
43505
43507
  }>;
43506
- direction: z.ZodEnum<["incoming", "outgoing", "system"]>;
43508
+ direction: z.ZodUnion<[z.ZodLiteral<"incoming">, z.ZodLiteral<"outgoing">, z.ZodLiteral<"system">]>;
43507
43509
  status: z.ZodNumber;
43508
43510
  createdAt: z.ZodDate;
43509
43511
  updatedAt: z.ZodDate;
@@ -49129,7 +49131,7 @@ export declare const mainChatRoomContract: {
49129
49131
  integrationId: string;
49130
49132
  } | null;
49131
49133
  }>;
49132
- direction: z.ZodEnum<["incoming", "outgoing", "system"]>;
49134
+ direction: z.ZodUnion<[z.ZodLiteral<"incoming">, z.ZodLiteral<"outgoing">, z.ZodLiteral<"system">]>;
49133
49135
  status: z.ZodNumber;
49134
49136
  createdAt: z.ZodDate;
49135
49137
  updatedAt: z.ZodDate;
@@ -53551,7 +53553,7 @@ export declare const mainChatRoomContract: {
53551
53553
  integrationId: string;
53552
53554
  } | null;
53553
53555
  }>;
53554
- direction: z.ZodEnum<["incoming", "outgoing", "system"]>;
53556
+ direction: z.ZodUnion<[z.ZodLiteral<"incoming">, z.ZodLiteral<"outgoing">, z.ZodLiteral<"system">]>;
53555
53557
  status: z.ZodNumber;
53556
53558
  createdAt: z.ZodDate;
53557
53559
  updatedAt: z.ZodDate;
@@ -57371,7 +57373,7 @@ export declare const mainChatContract: {
57371
57373
  sendMessage: {
57372
57374
  body: z.ZodObject<{
57373
57375
  roomId: z.ZodString;
57374
- 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"]>;
57376
+ messageType: z.ZodUnion<[z.ZodLiteral<string>, z.ZodLiteral<string>, ...z.ZodLiteral<string>[]]>;
57375
57377
  message: z.ZodOptional<z.ZodString>;
57376
57378
  messageAttachments: z.ZodOptional<z.ZodObject<{
57377
57379
  bucketName: z.ZodString;
@@ -57381,6 +57383,8 @@ export declare const mainChatContract: {
57381
57383
  url: z.ZodNullable<z.ZodString>;
57382
57384
  fileType: z.ZodString;
57383
57385
  thumbnailUrl: z.ZodOptional<z.ZodString>;
57386
+ width: z.ZodOptional<z.ZodString>;
57387
+ height: z.ZodOptional<z.ZodString>;
57384
57388
  }, "strip", z.ZodTypeAny, {
57385
57389
  url: string | null;
57386
57390
  fileName: string;
@@ -57389,6 +57393,8 @@ export declare const mainChatContract: {
57389
57393
  bucketName: string;
57390
57394
  fileSize: number;
57391
57395
  thumbnailUrl?: string | undefined;
57396
+ width?: string | undefined;
57397
+ height?: string | undefined;
57392
57398
  }, {
57393
57399
  url: string | null;
57394
57400
  fileName: string;
@@ -57397,6 +57403,8 @@ export declare const mainChatContract: {
57397
57403
  bucketName: string;
57398
57404
  fileSize: number;
57399
57405
  thumbnailUrl?: string | undefined;
57406
+ width?: string | undefined;
57407
+ height?: string | undefined;
57400
57408
  }>>;
57401
57409
  user: z.ZodOptional<z.ZodObject<{
57402
57410
  name: z.ZodString;
@@ -57630,7 +57638,7 @@ export declare const mainChatContract: {
57630
57638
  mentions?: string[] | undefined;
57631
57639
  }>>;
57632
57640
  }, "strip", z.ZodTypeAny, {
57633
- 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";
57641
+ messageType: string;
57634
57642
  roomId: string;
57635
57643
  message?: string | undefined;
57636
57644
  messageAttachments?: {
@@ -57641,6 +57649,8 @@ export declare const mainChatContract: {
57641
57649
  bucketName: string;
57642
57650
  fileSize: number;
57643
57651
  thumbnailUrl?: string | undefined;
57652
+ width?: string | undefined;
57653
+ height?: string | undefined;
57644
57654
  } | undefined;
57645
57655
  user?: {
57646
57656
  name: string;
@@ -57702,7 +57712,7 @@ export declare const mainChatContract: {
57702
57712
  mentions?: string[] | undefined;
57703
57713
  } | undefined;
57704
57714
  }, {
57705
- 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";
57715
+ messageType: string;
57706
57716
  roomId: string;
57707
57717
  message?: string | undefined;
57708
57718
  messageAttachments?: {
@@ -57713,6 +57723,8 @@ export declare const mainChatContract: {
57713
57723
  bucketName: string;
57714
57724
  fileSize: number;
57715
57725
  thumbnailUrl?: string | undefined;
57726
+ width?: string | undefined;
57727
+ height?: string | undefined;
57716
57728
  } | undefined;
57717
57729
  user?: {
57718
57730
  name: string;
@@ -57780,11 +57792,11 @@ export declare const mainChatContract: {
57780
57792
  200: z.ZodObject<{
57781
57793
  requestId: z.ZodString;
57782
57794
  data: z.ZodObject<{
57783
- 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"]>;
57795
+ type: z.ZodUnion<[z.ZodLiteral<string>, z.ZodLiteral<string>, ...z.ZodLiteral<string>[]]>;
57784
57796
  message: z.ZodString;
57785
57797
  id: z.ZodString;
57786
57798
  url: z.ZodString;
57787
- direction: z.ZodEnum<["incoming", "outgoing", "system"]>;
57799
+ direction: z.ZodUnion<[z.ZodLiteral<"incoming">, z.ZodLiteral<"outgoing">, z.ZodLiteral<"system">]>;
57788
57800
  label: z.ZodOptional<z.ZodString>;
57789
57801
  template: z.ZodAny;
57790
57802
  metadata: z.ZodAny;
@@ -58249,7 +58261,7 @@ export declare const mainChatContract: {
58249
58261
  firstResponseTime: z.ZodNumber;
58250
58262
  isLatest: z.ZodBoolean;
58251
58263
  isBotRoom: z.ZodBoolean;
58252
- direction: z.ZodEnum<["incoming", "outgoing", "system"]>;
58264
+ direction: z.ZodUnion<[z.ZodLiteral<"incoming">, z.ZodLiteral<"outgoing">, z.ZodLiteral<"system">]>;
58253
58265
  platformContact: z.ZodObject<{
58254
58266
  id: z.ZodString;
58255
58267
  createdAt: z.ZodDate;
@@ -61762,8 +61774,8 @@ export declare const mainChatContract: {
61762
61774
  updatedAt: z.ZodDate;
61763
61775
  deletedAt: z.ZodNullable<z.ZodDate>;
61764
61776
  message: z.ZodString;
61765
- direction: z.ZodEnum<["incoming", "outgoing", "system"]>;
61766
- 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"]>;
61777
+ direction: z.ZodUnion<[z.ZodLiteral<"incoming">, z.ZodLiteral<"outgoing">, z.ZodLiteral<"system">]>;
61778
+ type: z.ZodUnion<[z.ZodLiteral<string>, z.ZodLiteral<string>, ...z.ZodLiteral<string>[]]>;
61767
61779
  readAt: z.ZodDate;
61768
61780
  metadata: z.ZodAny;
61769
61781
  platformId: z.ZodString;
@@ -62421,7 +62433,7 @@ export declare const mainChatContract: {
62421
62433
  };
62422
62434
  }>;
62423
62435
  }, "strip", z.ZodTypeAny, {
62424
- 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";
62436
+ type: string;
62425
62437
  message: string;
62426
62438
  id: string;
62427
62439
  url: string;
@@ -62583,7 +62595,7 @@ export declare const mainChatContract: {
62583
62595
  metadata?: any;
62584
62596
  template?: any;
62585
62597
  }, {
62586
- 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";
62598
+ type: string;
62587
62599
  message: string;
62588
62600
  id: string;
62589
62601
  url: string;
@@ -62956,8 +62968,8 @@ export declare const mainChatContract: {
62956
62968
  updatedAt: z.ZodDate;
62957
62969
  deletedAt: z.ZodNullable<z.ZodDate>;
62958
62970
  message: z.ZodString;
62959
- direction: z.ZodEnum<["incoming", "outgoing", "system"]>;
62960
- 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"]>;
62971
+ direction: z.ZodUnion<[z.ZodLiteral<"incoming">, z.ZodLiteral<"outgoing">, z.ZodLiteral<"system">]>;
62972
+ type: z.ZodUnion<[z.ZodLiteral<string>, z.ZodLiteral<string>, ...z.ZodLiteral<string>[]]>;
62961
62973
  readAt: z.ZodDate;
62962
62974
  metadata: z.ZodAny;
62963
62975
  platformId: z.ZodString;
@@ -62983,7 +62995,7 @@ export declare const mainChatContract: {
62983
62995
  firstResponseTime: z.ZodNumber;
62984
62996
  isLatest: z.ZodBoolean;
62985
62997
  isBotRoom: z.ZodBoolean;
62986
- direction: z.ZodEnum<["incoming", "outgoing", "system"]>;
62998
+ direction: z.ZodUnion<[z.ZodLiteral<"incoming">, z.ZodLiteral<"outgoing">, z.ZodLiteral<"system">]>;
62987
62999
  platformContact: z.ZodObject<{
62988
63000
  id: z.ZodString;
62989
63001
  createdAt: z.ZodDate;
@@ -66499,8 +66511,8 @@ export declare const mainChatContract: {
66499
66511
  updatedAt: z.ZodDate;
66500
66512
  deletedAt: z.ZodNullable<z.ZodDate>;
66501
66513
  message: z.ZodString;
66502
- direction: z.ZodEnum<["incoming", "outgoing", "system"]>;
66503
- 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"]>;
66514
+ direction: z.ZodUnion<[z.ZodLiteral<"incoming">, z.ZodLiteral<"outgoing">, z.ZodLiteral<"system">]>;
66515
+ type: z.ZodUnion<[z.ZodLiteral<string>, z.ZodLiteral<string>, ...z.ZodLiteral<string>[]]>;
66504
66516
  readAt: z.ZodDate;
66505
66517
  metadata: z.ZodAny;
66506
66518
  platformId: z.ZodString;
@@ -67158,7 +67170,7 @@ export declare const mainChatContract: {
67158
67170
  };
67159
67171
  }>;
67160
67172
  }, "strip", z.ZodTypeAny, {
67161
- 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";
67173
+ type: string;
67162
67174
  message: string;
67163
67175
  id: string;
67164
67176
  url: string;
@@ -67320,7 +67332,7 @@ export declare const mainChatContract: {
67320
67332
  metadata?: any;
67321
67333
  template?: any;
67322
67334
  }, {
67323
- 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";
67335
+ type: string;
67324
67336
  message: string;
67325
67337
  id: string;
67326
67338
  url: string;
@@ -68122,7 +68134,7 @@ export declare const mainChatContract: {
68122
68134
  editedMessageid: z.ZodString;
68123
68135
  label: z.ZodOptional<z.ZodString>;
68124
68136
  }, "strip", z.ZodTypeAny, {
68125
- 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";
68137
+ type: string;
68126
68138
  message: string;
68127
68139
  id: string;
68128
68140
  url: string;
@@ -68684,7 +68696,7 @@ export declare const mainChatContract: {
68684
68696
  previewUrl: string;
68685
68697
  imageSetId: string;
68686
68698
  repliedMessage: {
68687
- 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";
68699
+ type: string;
68688
68700
  message: string;
68689
68701
  id: string;
68690
68702
  url: string;
@@ -68895,7 +68907,7 @@ export declare const mainChatContract: {
68895
68907
  template?: any;
68896
68908
  label?: string | undefined;
68897
68909
  }, {
68898
- 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";
68910
+ type: string;
68899
68911
  message: string;
68900
68912
  id: string;
68901
68913
  url: string;
@@ -69457,7 +69469,7 @@ export declare const mainChatContract: {
69457
69469
  previewUrl: string;
69458
69470
  imageSetId: string;
69459
69471
  repliedMessage: {
69460
- 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";
69472
+ type: string;
69461
69473
  message: string;
69462
69474
  id: string;
69463
69475
  url: string;
@@ -69669,7 +69681,7 @@ export declare const mainChatContract: {
69669
69681
  label?: string | undefined;
69670
69682
  }>>>;
69671
69683
  }, "strip", z.ZodTypeAny, {
69672
- 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";
69684
+ type: string;
69673
69685
  message: string;
69674
69686
  id: string;
69675
69687
  url: string;
@@ -70231,7 +70243,7 @@ export declare const mainChatContract: {
70231
70243
  previewUrl: string;
70232
70244
  imageSetId: string;
70233
70245
  repliedMessage: {
70234
- 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";
70246
+ type: string;
70235
70247
  message: string;
70236
70248
  id: string;
70237
70249
  url: string;
@@ -70442,7 +70454,7 @@ export declare const mainChatContract: {
70442
70454
  template?: any;
70443
70455
  metadata?: any;
70444
70456
  fromMessage?: {
70445
- 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";
70457
+ type: string;
70446
70458
  message: string;
70447
70459
  id: string;
70448
70460
  url: string;
@@ -71004,7 +71016,7 @@ export declare const mainChatContract: {
71004
71016
  previewUrl: string;
71005
71017
  imageSetId: string;
71006
71018
  repliedMessage: {
71007
- 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";
71019
+ type: string;
71008
71020
  message: string;
71009
71021
  id: string;
71010
71022
  url: string;
@@ -71216,7 +71228,7 @@ export declare const mainChatContract: {
71216
71228
  label?: string | undefined;
71217
71229
  } | null | undefined;
71218
71230
  }, {
71219
- 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";
71231
+ type: string;
71220
71232
  message: string;
71221
71233
  id: string;
71222
71234
  url: string;
@@ -71778,7 +71790,7 @@ export declare const mainChatContract: {
71778
71790
  previewUrl: string;
71779
71791
  imageSetId: string;
71780
71792
  repliedMessage: {
71781
- 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";
71793
+ type: string;
71782
71794
  message: string;
71783
71795
  id: string;
71784
71796
  url: string;
@@ -71989,7 +72001,7 @@ export declare const mainChatContract: {
71989
72001
  template?: any;
71990
72002
  metadata?: any;
71991
72003
  fromMessage?: {
71992
- 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";
72004
+ type: string;
71993
72005
  message: string;
71994
72006
  id: string;
71995
72007
  url: string;
@@ -72551,7 +72563,7 @@ export declare const mainChatContract: {
72551
72563
  previewUrl: string;
72552
72564
  imageSetId: string;
72553
72565
  repliedMessage: {
72554
- 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";
72566
+ type: string;
72555
72567
  message: string;
72556
72568
  id: string;
72557
72569
  url: string;
@@ -72765,7 +72777,7 @@ export declare const mainChatContract: {
72765
72777
  }>;
72766
72778
  }, "strip", z.ZodTypeAny, {
72767
72779
  data: {
72768
- 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";
72780
+ type: string;
72769
72781
  message: string;
72770
72782
  id: string;
72771
72783
  url: string;
@@ -73327,7 +73339,7 @@ export declare const mainChatContract: {
73327
73339
  previewUrl: string;
73328
73340
  imageSetId: string;
73329
73341
  repliedMessage: {
73330
- 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";
73342
+ type: string;
73331
73343
  message: string;
73332
73344
  id: string;
73333
73345
  url: string;
@@ -73538,7 +73550,7 @@ export declare const mainChatContract: {
73538
73550
  template?: any;
73539
73551
  metadata?: any;
73540
73552
  fromMessage?: {
73541
- 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";
73553
+ type: string;
73542
73554
  message: string;
73543
73555
  id: string;
73544
73556
  url: string;
@@ -74100,7 +74112,7 @@ export declare const mainChatContract: {
74100
74112
  previewUrl: string;
74101
74113
  imageSetId: string;
74102
74114
  repliedMessage: {
74103
- 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";
74115
+ type: string;
74104
74116
  message: string;
74105
74117
  id: string;
74106
74118
  url: string;
@@ -74315,7 +74327,7 @@ export declare const mainChatContract: {
74315
74327
  requestId: string;
74316
74328
  }, {
74317
74329
  data: {
74318
- 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";
74330
+ type: string;
74319
74331
  message: string;
74320
74332
  id: string;
74321
74333
  url: string;
@@ -74877,7 +74889,7 @@ export declare const mainChatContract: {
74877
74889
  previewUrl: string;
74878
74890
  imageSetId: string;
74879
74891
  repliedMessage: {
74880
- 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";
74892
+ type: string;
74881
74893
  message: string;
74882
74894
  id: string;
74883
74895
  url: string;
@@ -75088,7 +75100,7 @@ export declare const mainChatContract: {
75088
75100
  template?: any;
75089
75101
  metadata?: any;
75090
75102
  fromMessage?: {
75091
- 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";
75103
+ type: string;
75092
75104
  message: string;
75093
75105
  id: string;
75094
75106
  url: string;
@@ -75650,7 +75662,7 @@ export declare const mainChatContract: {
75650
75662
  previewUrl: string;
75651
75663
  imageSetId: string;
75652
75664
  repliedMessage: {
75653
- 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";
75665
+ type: string;
75654
75666
  message: string;
75655
75667
  id: string;
75656
75668
  url: string;
@@ -76042,11 +76054,11 @@ export declare const mainChatContract: {
76042
76054
  page: z.ZodNumber;
76043
76055
  pageSize: z.ZodNumber;
76044
76056
  data: z.ZodArray<z.ZodObject<{
76045
- 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"]>;
76057
+ type: z.ZodUnion<[z.ZodLiteral<string>, z.ZodLiteral<string>, ...z.ZodLiteral<string>[]]>;
76046
76058
  message: z.ZodString;
76047
76059
  id: z.ZodString;
76048
76060
  url: z.ZodString;
76049
- direction: z.ZodEnum<["incoming", "outgoing", "system"]>;
76061
+ direction: z.ZodUnion<[z.ZodLiteral<"incoming">, z.ZodLiteral<"outgoing">, z.ZodLiteral<"system">]>;
76050
76062
  label: z.ZodOptional<z.ZodString>;
76051
76063
  template: z.ZodAny;
76052
76064
  metadata: z.ZodAny;
@@ -76511,7 +76523,7 @@ export declare const mainChatContract: {
76511
76523
  firstResponseTime: z.ZodNumber;
76512
76524
  isLatest: z.ZodBoolean;
76513
76525
  isBotRoom: z.ZodBoolean;
76514
- direction: z.ZodEnum<["incoming", "outgoing", "system"]>;
76526
+ direction: z.ZodUnion<[z.ZodLiteral<"incoming">, z.ZodLiteral<"outgoing">, z.ZodLiteral<"system">]>;
76515
76527
  platformContact: z.ZodObject<{
76516
76528
  id: z.ZodString;
76517
76529
  createdAt: z.ZodDate;
@@ -80024,8 +80036,8 @@ export declare const mainChatContract: {
80024
80036
  updatedAt: z.ZodDate;
80025
80037
  deletedAt: z.ZodNullable<z.ZodDate>;
80026
80038
  message: z.ZodString;
80027
- direction: z.ZodEnum<["incoming", "outgoing", "system"]>;
80028
- 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"]>;
80039
+ direction: z.ZodUnion<[z.ZodLiteral<"incoming">, z.ZodLiteral<"outgoing">, z.ZodLiteral<"system">]>;
80040
+ type: z.ZodUnion<[z.ZodLiteral<string>, z.ZodLiteral<string>, ...z.ZodLiteral<string>[]]>;
80029
80041
  readAt: z.ZodDate;
80030
80042
  metadata: z.ZodAny;
80031
80043
  platformId: z.ZodString;
@@ -80683,7 +80695,7 @@ export declare const mainChatContract: {
80683
80695
  };
80684
80696
  }>;
80685
80697
  }, "strip", z.ZodTypeAny, {
80686
- 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";
80698
+ type: string;
80687
80699
  message: string;
80688
80700
  id: string;
80689
80701
  url: string;
@@ -80845,7 +80857,7 @@ export declare const mainChatContract: {
80845
80857
  metadata?: any;
80846
80858
  template?: any;
80847
80859
  }, {
80848
- 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";
80860
+ type: string;
80849
80861
  message: string;
80850
80862
  id: string;
80851
80863
  url: string;
@@ -81220,7 +81232,7 @@ export declare const mainChatContract: {
81220
81232
  updatedAt: z.ZodDate;
81221
81233
  deletedAt: z.ZodNullable<z.ZodDate>;
81222
81234
  message: z.ZodNullable<z.ZodString>;
81223
- type: z.ZodUnion<[z.ZodEnum<["text", "added_photos", "added_video", "shared_story", "mobile_status_update", "no_data"]>, 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"]>]>;
81235
+ type: z.ZodUnion<[z.ZodEnum<["text", "added_photos", "added_video", "shared_story", "mobile_status_update", "no_data"]>, z.ZodUnion<[z.ZodLiteral<string>, z.ZodLiteral<string>, ...z.ZodLiteral<string>[]]>]>;
81224
81236
  metadata: z.ZodAny;
81225
81237
  platformId: z.ZodString;
81226
81238
  platformMessageId: z.ZodString;
@@ -83059,7 +83071,7 @@ export declare const mainChatContract: {
83059
83071
  }>;
83060
83072
  permalinkURL: z.ZodString;
83061
83073
  }, "strip", z.ZodTypeAny, {
83062
- type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "group" | "added_photos" | "added_video" | "shared_story" | "mobile_status_update" | "no_data" | "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";
83074
+ type: string;
83063
83075
  message: string | null;
83064
83076
  id: string;
83065
83077
  channel: {
@@ -83345,7 +83357,7 @@ export declare const mainChatContract: {
83345
83357
  metadata?: any;
83346
83358
  template?: any;
83347
83359
  }, {
83348
- type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "group" | "added_photos" | "added_video" | "shared_story" | "mobile_status_update" | "no_data" | "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";
83360
+ type: string;
83349
83361
  message: string | null;
83350
83362
  id: string;
83351
83363
  channel: {
@@ -83633,7 +83645,7 @@ export declare const mainChatContract: {
83633
83645
  }>>;
83634
83646
  replyReaction: z.ZodNullable<z.ZodString>;
83635
83647
  }, "strip", z.ZodTypeAny, {
83636
- 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";
83648
+ type: string;
83637
83649
  message: string;
83638
83650
  id: string;
83639
83651
  url: string;
@@ -84195,7 +84207,7 @@ export declare const mainChatContract: {
84195
84207
  previewUrl: string;
84196
84208
  imageSetId: string;
84197
84209
  repliedMessage: {
84198
- 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";
84210
+ type: string;
84199
84211
  message: string;
84200
84212
  id: string;
84201
84213
  url: string;
@@ -84405,7 +84417,7 @@ export declare const mainChatContract: {
84405
84417
  parentMessageId: string | null;
84406
84418
  feedPostId: string | null;
84407
84419
  feedPost: {
84408
- type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "group" | "added_photos" | "added_video" | "shared_story" | "mobile_status_update" | "no_data" | "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";
84420
+ type: string;
84409
84421
  message: string | null;
84410
84422
  id: string;
84411
84423
  channel: {
@@ -84696,7 +84708,7 @@ export declare const mainChatContract: {
84696
84708
  template?: any;
84697
84709
  metadata?: any;
84698
84710
  }, {
84699
- 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";
84711
+ type: string;
84700
84712
  message: string;
84701
84713
  id: string;
84702
84714
  url: string;
@@ -85258,7 +85270,7 @@ export declare const mainChatContract: {
85258
85270
  previewUrl: string;
85259
85271
  imageSetId: string;
85260
85272
  repliedMessage: {
85261
- 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";
85273
+ type: string;
85262
85274
  message: string;
85263
85275
  id: string;
85264
85276
  url: string;
@@ -85468,7 +85480,7 @@ export declare const mainChatContract: {
85468
85480
  parentMessageId: string | null;
85469
85481
  feedPostId: string | null;
85470
85482
  feedPost: {
85471
- type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "group" | "added_photos" | "added_video" | "shared_story" | "mobile_status_update" | "no_data" | "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";
85483
+ type: string;
85472
85484
  message: string | null;
85473
85485
  id: string;
85474
85486
  channel: {
@@ -85761,7 +85773,7 @@ export declare const mainChatContract: {
85761
85773
  }>, "many">;
85762
85774
  }, "strip", z.ZodTypeAny, {
85763
85775
  data: {
85764
- 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";
85776
+ type: string;
85765
85777
  message: string;
85766
85778
  id: string;
85767
85779
  url: string;
@@ -86323,7 +86335,7 @@ export declare const mainChatContract: {
86323
86335
  previewUrl: string;
86324
86336
  imageSetId: string;
86325
86337
  repliedMessage: {
86326
- 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";
86338
+ type: string;
86327
86339
  message: string;
86328
86340
  id: string;
86329
86341
  url: string;
@@ -86533,7 +86545,7 @@ export declare const mainChatContract: {
86533
86545
  parentMessageId: string | null;
86534
86546
  feedPostId: string | null;
86535
86547
  feedPost: {
86536
- type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "group" | "added_photos" | "added_video" | "shared_story" | "mobile_status_update" | "no_data" | "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";
86548
+ type: string;
86537
86549
  message: string | null;
86538
86550
  id: string;
86539
86551
  channel: {
@@ -86830,7 +86842,7 @@ export declare const mainChatContract: {
86830
86842
  requestId: string;
86831
86843
  }, {
86832
86844
  data: {
86833
- 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";
86845
+ type: string;
86834
86846
  message: string;
86835
86847
  id: string;
86836
86848
  url: string;
@@ -87392,7 +87404,7 @@ export declare const mainChatContract: {
87392
87404
  previewUrl: string;
87393
87405
  imageSetId: string;
87394
87406
  repliedMessage: {
87395
- 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";
87407
+ type: string;
87396
87408
  message: string;
87397
87409
  id: string;
87398
87410
  url: string;
@@ -87602,7 +87614,7 @@ export declare const mainChatContract: {
87602
87614
  parentMessageId: string | null;
87603
87615
  feedPostId: string | null;
87604
87616
  feedPost: {
87605
- type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "group" | "added_photos" | "added_video" | "shared_story" | "mobile_status_update" | "no_data" | "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";
87617
+ type: string;
87606
87618
  message: string | null;
87607
87619
  id: string;
87608
87620
  channel: {
@@ -87951,7 +87963,7 @@ export declare const mainChatContract: {
87951
87963
  firstResponseTime: z.ZodNumber;
87952
87964
  isLatest: z.ZodBoolean;
87953
87965
  isBotRoom: z.ZodBoolean;
87954
- direction: z.ZodEnum<["incoming", "outgoing", "system"]>;
87966
+ direction: z.ZodUnion<[z.ZodLiteral<"incoming">, z.ZodLiteral<"outgoing">, z.ZodLiteral<"system">]>;
87955
87967
  platformContact: z.ZodObject<{
87956
87968
  id: z.ZodString;
87957
87969
  createdAt: z.ZodDate;
@@ -92369,7 +92381,7 @@ export declare const mainChatContract: {
92369
92381
  firstResponseTime: z.ZodNumber;
92370
92382
  isLatest: z.ZodBoolean;
92371
92383
  isBotRoom: z.ZodBoolean;
92372
- direction: z.ZodEnum<["incoming", "outgoing", "system"]>;
92384
+ direction: z.ZodUnion<[z.ZodLiteral<"incoming">, z.ZodLiteral<"outgoing">, z.ZodLiteral<"system">]>;
92373
92385
  platformContact: z.ZodObject<{
92374
92386
  id: z.ZodString;
92375
92387
  createdAt: z.ZodDate;
@@ -97848,7 +97860,7 @@ export declare const mainChatContract: {
97848
97860
  firstResponseTime: z.ZodNumber;
97849
97861
  isLatest: z.ZodBoolean;
97850
97862
  isBotRoom: z.ZodBoolean;
97851
- direction: z.ZodEnum<["incoming", "outgoing", "system"]>;
97863
+ direction: z.ZodUnion<[z.ZodLiteral<"incoming">, z.ZodLiteral<"outgoing">, z.ZodLiteral<"system">]>;
97852
97864
  platformContact: z.ZodObject<{
97853
97865
  id: z.ZodString;
97854
97866
  createdAt: z.ZodDate;
@@ -102231,17 +102243,17 @@ export declare const initiateMessageContract: {
102231
102243
  contactId: z.ZodOptional<z.ZodString>;
102232
102244
  message: z.ZodObject<{
102233
102245
  message: z.ZodOptional<z.ZodString>;
102234
- 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"]>;
102246
+ messageType: z.ZodUnion<[z.ZodLiteral<string>, z.ZodLiteral<string>, ...z.ZodLiteral<string>[]]>;
102235
102247
  }, "strip", z.ZodTypeAny, {
102236
- 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";
102248
+ messageType: string;
102237
102249
  message?: string | undefined;
102238
102250
  }, {
102239
- 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";
102251
+ messageType: string;
102240
102252
  message?: string | undefined;
102241
102253
  }>;
102242
102254
  }, "strip", z.ZodTypeAny, {
102243
102255
  message: {
102244
- 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";
102256
+ messageType: string;
102245
102257
  message?: string | undefined;
102246
102258
  };
102247
102259
  channelId: string;
@@ -102249,7 +102261,7 @@ export declare const initiateMessageContract: {
102249
102261
  contactId?: string | undefined;
102250
102262
  }, {
102251
102263
  message: {
102252
- 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";
102264
+ messageType: string;
102253
102265
  message?: string | undefined;
102254
102266
  };
102255
102267
  channelId: string;
@@ -102266,8 +102278,8 @@ export declare const initiateMessageContract: {
102266
102278
  updatedAt: z.ZodDate;
102267
102279
  deletedAt: z.ZodNullable<z.ZodDate>;
102268
102280
  message: z.ZodString;
102269
- direction: z.ZodEnum<["incoming", "outgoing", "system"]>;
102270
- 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"]>;
102281
+ direction: z.ZodUnion<[z.ZodLiteral<"incoming">, z.ZodLiteral<"outgoing">, z.ZodLiteral<"system">]>;
102282
+ type: z.ZodUnion<[z.ZodLiteral<string>, z.ZodLiteral<string>, ...z.ZodLiteral<string>[]]>;
102271
102283
  readAt: z.ZodDate;
102272
102284
  metadata: z.ZodAny;
102273
102285
  platformId: z.ZodString;
@@ -102293,7 +102305,7 @@ export declare const initiateMessageContract: {
102293
102305
  firstResponseTime: z.ZodNumber;
102294
102306
  isLatest: z.ZodBoolean;
102295
102307
  isBotRoom: z.ZodBoolean;
102296
- direction: z.ZodEnum<["incoming", "outgoing", "system"]>;
102308
+ direction: z.ZodUnion<[z.ZodLiteral<"incoming">, z.ZodLiteral<"outgoing">, z.ZodLiteral<"system">]>;
102297
102309
  platformContact: z.ZodObject<{
102298
102310
  id: z.ZodString;
102299
102311
  createdAt: z.ZodDate;
@@ -105809,8 +105821,8 @@ export declare const initiateMessageContract: {
105809
105821
  updatedAt: z.ZodDate;
105810
105822
  deletedAt: z.ZodNullable<z.ZodDate>;
105811
105823
  message: z.ZodString;
105812
- direction: z.ZodEnum<["incoming", "outgoing", "system"]>;
105813
- 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"]>;
105824
+ direction: z.ZodUnion<[z.ZodLiteral<"incoming">, z.ZodLiteral<"outgoing">, z.ZodLiteral<"system">]>;
105825
+ type: z.ZodUnion<[z.ZodLiteral<string>, z.ZodLiteral<string>, ...z.ZodLiteral<string>[]]>;
105814
105826
  readAt: z.ZodDate;
105815
105827
  metadata: z.ZodAny;
105816
105828
  platformId: z.ZodString;
@@ -106468,7 +106480,7 @@ export declare const initiateMessageContract: {
106468
106480
  };
106469
106481
  }>;
106470
106482
  }, "strip", z.ZodTypeAny, {
106471
- 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";
106483
+ type: string;
106472
106484
  message: string;
106473
106485
  id: string;
106474
106486
  url: string;
@@ -106630,7 +106642,7 @@ export declare const initiateMessageContract: {
106630
106642
  metadata?: any;
106631
106643
  template?: any;
106632
106644
  }, {
106633
- 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";
106645
+ type: string;
106634
106646
  message: string;
106635
106647
  id: string;
106636
106648
  url: string;
@@ -107432,7 +107444,7 @@ export declare const initiateMessageContract: {
107432
107444
  editedMessageid: z.ZodString;
107433
107445
  label: z.ZodOptional<z.ZodString>;
107434
107446
  }, "strip", z.ZodTypeAny, {
107435
- 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";
107447
+ type: string;
107436
107448
  message: string;
107437
107449
  id: string;
107438
107450
  url: string;
@@ -107994,7 +108006,7 @@ export declare const initiateMessageContract: {
107994
108006
  previewUrl: string;
107995
108007
  imageSetId: string;
107996
108008
  repliedMessage: {
107997
- 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";
108009
+ type: string;
107998
108010
  message: string;
107999
108011
  id: string;
108000
108012
  url: string;
@@ -108205,7 +108217,7 @@ export declare const initiateMessageContract: {
108205
108217
  template?: any;
108206
108218
  label?: string | undefined;
108207
108219
  }, {
108208
- 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";
108220
+ type: string;
108209
108221
  message: string;
108210
108222
  id: string;
108211
108223
  url: string;
@@ -108767,7 +108779,7 @@ export declare const initiateMessageContract: {
108767
108779
  previewUrl: string;
108768
108780
  imageSetId: string;
108769
108781
  repliedMessage: {
108770
- 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";
108782
+ type: string;
108771
108783
  message: string;
108772
108784
  id: string;
108773
108785
  url: string;
@@ -108980,7 +108992,7 @@ export declare const initiateMessageContract: {
108980
108992
  }>;
108981
108993
  }, "strip", z.ZodTypeAny, {
108982
108994
  data: {
108983
- 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";
108995
+ type: string;
108984
108996
  message: string;
108985
108997
  id: string;
108986
108998
  url: string;
@@ -109542,7 +109554,7 @@ export declare const initiateMessageContract: {
109542
109554
  previewUrl: string;
109543
109555
  imageSetId: string;
109544
109556
  repliedMessage: {
109545
- 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";
109557
+ type: string;
109546
109558
  message: string;
109547
109559
  id: string;
109548
109560
  url: string;
@@ -109756,7 +109768,7 @@ export declare const initiateMessageContract: {
109756
109768
  requestId: string;
109757
109769
  }, {
109758
109770
  data: {
109759
- 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";
109771
+ type: string;
109760
109772
  message: string;
109761
109773
  id: string;
109762
109774
  url: string;
@@ -110318,7 +110330,7 @@ export declare const initiateMessageContract: {
110318
110330
  previewUrl: string;
110319
110331
  imageSetId: string;
110320
110332
  repliedMessage: {
110321
- 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";
110333
+ type: string;
110322
110334
  message: string;
110323
110335
  id: string;
110324
110336
  url: string;
@@ -110575,7 +110587,7 @@ export declare const mainChatMessageContract: {
110575
110587
  sendMessage: {
110576
110588
  body: z.ZodObject<{
110577
110589
  roomId: z.ZodString;
110578
- 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"]>;
110590
+ messageType: z.ZodUnion<[z.ZodLiteral<string>, z.ZodLiteral<string>, ...z.ZodLiteral<string>[]]>;
110579
110591
  message: z.ZodOptional<z.ZodString>;
110580
110592
  messageAttachments: z.ZodOptional<z.ZodObject<{
110581
110593
  bucketName: z.ZodString;
@@ -110585,6 +110597,8 @@ export declare const mainChatMessageContract: {
110585
110597
  url: z.ZodNullable<z.ZodString>;
110586
110598
  fileType: z.ZodString;
110587
110599
  thumbnailUrl: z.ZodOptional<z.ZodString>;
110600
+ width: z.ZodOptional<z.ZodString>;
110601
+ height: z.ZodOptional<z.ZodString>;
110588
110602
  }, "strip", z.ZodTypeAny, {
110589
110603
  url: string | null;
110590
110604
  fileName: string;
@@ -110593,6 +110607,8 @@ export declare const mainChatMessageContract: {
110593
110607
  bucketName: string;
110594
110608
  fileSize: number;
110595
110609
  thumbnailUrl?: string | undefined;
110610
+ width?: string | undefined;
110611
+ height?: string | undefined;
110596
110612
  }, {
110597
110613
  url: string | null;
110598
110614
  fileName: string;
@@ -110601,6 +110617,8 @@ export declare const mainChatMessageContract: {
110601
110617
  bucketName: string;
110602
110618
  fileSize: number;
110603
110619
  thumbnailUrl?: string | undefined;
110620
+ width?: string | undefined;
110621
+ height?: string | undefined;
110604
110622
  }>>;
110605
110623
  user: z.ZodOptional<z.ZodObject<{
110606
110624
  name: z.ZodString;
@@ -110834,7 +110852,7 @@ export declare const mainChatMessageContract: {
110834
110852
  mentions?: string[] | undefined;
110835
110853
  }>>;
110836
110854
  }, "strip", z.ZodTypeAny, {
110837
- 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";
110855
+ messageType: string;
110838
110856
  roomId: string;
110839
110857
  message?: string | undefined;
110840
110858
  messageAttachments?: {
@@ -110845,6 +110863,8 @@ export declare const mainChatMessageContract: {
110845
110863
  bucketName: string;
110846
110864
  fileSize: number;
110847
110865
  thumbnailUrl?: string | undefined;
110866
+ width?: string | undefined;
110867
+ height?: string | undefined;
110848
110868
  } | undefined;
110849
110869
  user?: {
110850
110870
  name: string;
@@ -110906,7 +110926,7 @@ export declare const mainChatMessageContract: {
110906
110926
  mentions?: string[] | undefined;
110907
110927
  } | undefined;
110908
110928
  }, {
110909
- 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";
110929
+ messageType: string;
110910
110930
  roomId: string;
110911
110931
  message?: string | undefined;
110912
110932
  messageAttachments?: {
@@ -110917,6 +110937,8 @@ export declare const mainChatMessageContract: {
110917
110937
  bucketName: string;
110918
110938
  fileSize: number;
110919
110939
  thumbnailUrl?: string | undefined;
110940
+ width?: string | undefined;
110941
+ height?: string | undefined;
110920
110942
  } | undefined;
110921
110943
  user?: {
110922
110944
  name: string;
@@ -110984,11 +111006,11 @@ export declare const mainChatMessageContract: {
110984
111006
  200: z.ZodObject<{
110985
111007
  requestId: z.ZodString;
110986
111008
  data: z.ZodObject<{
110987
- 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"]>;
111009
+ type: z.ZodUnion<[z.ZodLiteral<string>, z.ZodLiteral<string>, ...z.ZodLiteral<string>[]]>;
110988
111010
  message: z.ZodString;
110989
111011
  id: z.ZodString;
110990
111012
  url: z.ZodString;
110991
- direction: z.ZodEnum<["incoming", "outgoing", "system"]>;
111013
+ direction: z.ZodUnion<[z.ZodLiteral<"incoming">, z.ZodLiteral<"outgoing">, z.ZodLiteral<"system">]>;
110992
111014
  label: z.ZodOptional<z.ZodString>;
110993
111015
  template: z.ZodAny;
110994
111016
  metadata: z.ZodAny;
@@ -111453,7 +111475,7 @@ export declare const mainChatMessageContract: {
111453
111475
  firstResponseTime: z.ZodNumber;
111454
111476
  isLatest: z.ZodBoolean;
111455
111477
  isBotRoom: z.ZodBoolean;
111456
- direction: z.ZodEnum<["incoming", "outgoing", "system"]>;
111478
+ direction: z.ZodUnion<[z.ZodLiteral<"incoming">, z.ZodLiteral<"outgoing">, z.ZodLiteral<"system">]>;
111457
111479
  platformContact: z.ZodObject<{
111458
111480
  id: z.ZodString;
111459
111481
  createdAt: z.ZodDate;
@@ -114966,8 +114988,8 @@ export declare const mainChatMessageContract: {
114966
114988
  updatedAt: z.ZodDate;
114967
114989
  deletedAt: z.ZodNullable<z.ZodDate>;
114968
114990
  message: z.ZodString;
114969
- direction: z.ZodEnum<["incoming", "outgoing", "system"]>;
114970
- 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"]>;
114991
+ direction: z.ZodUnion<[z.ZodLiteral<"incoming">, z.ZodLiteral<"outgoing">, z.ZodLiteral<"system">]>;
114992
+ type: z.ZodUnion<[z.ZodLiteral<string>, z.ZodLiteral<string>, ...z.ZodLiteral<string>[]]>;
114971
114993
  readAt: z.ZodDate;
114972
114994
  metadata: z.ZodAny;
114973
114995
  platformId: z.ZodString;
@@ -115625,7 +115647,7 @@ export declare const mainChatMessageContract: {
115625
115647
  };
115626
115648
  }>;
115627
115649
  }, "strip", z.ZodTypeAny, {
115628
- 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";
115650
+ type: string;
115629
115651
  message: string;
115630
115652
  id: string;
115631
115653
  url: string;
@@ -115787,7 +115809,7 @@ export declare const mainChatMessageContract: {
115787
115809
  metadata?: any;
115788
115810
  template?: any;
115789
115811
  }, {
115790
- 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";
115812
+ type: string;
115791
115813
  message: string;
115792
115814
  id: string;
115793
115815
  url: string;
@@ -116160,8 +116182,8 @@ export declare const mainChatMessageContract: {
116160
116182
  updatedAt: z.ZodDate;
116161
116183
  deletedAt: z.ZodNullable<z.ZodDate>;
116162
116184
  message: z.ZodString;
116163
- direction: z.ZodEnum<["incoming", "outgoing", "system"]>;
116164
- 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"]>;
116185
+ direction: z.ZodUnion<[z.ZodLiteral<"incoming">, z.ZodLiteral<"outgoing">, z.ZodLiteral<"system">]>;
116186
+ type: z.ZodUnion<[z.ZodLiteral<string>, z.ZodLiteral<string>, ...z.ZodLiteral<string>[]]>;
116165
116187
  readAt: z.ZodDate;
116166
116188
  metadata: z.ZodAny;
116167
116189
  platformId: z.ZodString;
@@ -116187,7 +116209,7 @@ export declare const mainChatMessageContract: {
116187
116209
  firstResponseTime: z.ZodNumber;
116188
116210
  isLatest: z.ZodBoolean;
116189
116211
  isBotRoom: z.ZodBoolean;
116190
- direction: z.ZodEnum<["incoming", "outgoing", "system"]>;
116212
+ direction: z.ZodUnion<[z.ZodLiteral<"incoming">, z.ZodLiteral<"outgoing">, z.ZodLiteral<"system">]>;
116191
116213
  platformContact: z.ZodObject<{
116192
116214
  id: z.ZodString;
116193
116215
  createdAt: z.ZodDate;
@@ -119703,8 +119725,8 @@ export declare const mainChatMessageContract: {
119703
119725
  updatedAt: z.ZodDate;
119704
119726
  deletedAt: z.ZodNullable<z.ZodDate>;
119705
119727
  message: z.ZodString;
119706
- direction: z.ZodEnum<["incoming", "outgoing", "system"]>;
119707
- 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"]>;
119728
+ direction: z.ZodUnion<[z.ZodLiteral<"incoming">, z.ZodLiteral<"outgoing">, z.ZodLiteral<"system">]>;
119729
+ type: z.ZodUnion<[z.ZodLiteral<string>, z.ZodLiteral<string>, ...z.ZodLiteral<string>[]]>;
119708
119730
  readAt: z.ZodDate;
119709
119731
  metadata: z.ZodAny;
119710
119732
  platformId: z.ZodString;
@@ -120362,7 +120384,7 @@ export declare const mainChatMessageContract: {
120362
120384
  };
120363
120385
  }>;
120364
120386
  }, "strip", z.ZodTypeAny, {
120365
- 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";
120387
+ type: string;
120366
120388
  message: string;
120367
120389
  id: string;
120368
120390
  url: string;
@@ -120524,7 +120546,7 @@ export declare const mainChatMessageContract: {
120524
120546
  metadata?: any;
120525
120547
  template?: any;
120526
120548
  }, {
120527
- 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";
120549
+ type: string;
120528
120550
  message: string;
120529
120551
  id: string;
120530
120552
  url: string;
@@ -121326,7 +121348,7 @@ export declare const mainChatMessageContract: {
121326
121348
  editedMessageid: z.ZodString;
121327
121349
  label: z.ZodOptional<z.ZodString>;
121328
121350
  }, "strip", z.ZodTypeAny, {
121329
- 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";
121351
+ type: string;
121330
121352
  message: string;
121331
121353
  id: string;
121332
121354
  url: string;
@@ -121888,7 +121910,7 @@ export declare const mainChatMessageContract: {
121888
121910
  previewUrl: string;
121889
121911
  imageSetId: string;
121890
121912
  repliedMessage: {
121891
- 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";
121913
+ type: string;
121892
121914
  message: string;
121893
121915
  id: string;
121894
121916
  url: string;
@@ -122099,7 +122121,7 @@ export declare const mainChatMessageContract: {
122099
122121
  template?: any;
122100
122122
  label?: string | undefined;
122101
122123
  }, {
122102
- 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";
122124
+ type: string;
122103
122125
  message: string;
122104
122126
  id: string;
122105
122127
  url: string;
@@ -122661,7 +122683,7 @@ export declare const mainChatMessageContract: {
122661
122683
  previewUrl: string;
122662
122684
  imageSetId: string;
122663
122685
  repliedMessage: {
122664
- 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";
122686
+ type: string;
122665
122687
  message: string;
122666
122688
  id: string;
122667
122689
  url: string;
@@ -122873,7 +122895,7 @@ export declare const mainChatMessageContract: {
122873
122895
  label?: string | undefined;
122874
122896
  }>>>;
122875
122897
  }, "strip", z.ZodTypeAny, {
122876
- 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";
122898
+ type: string;
122877
122899
  message: string;
122878
122900
  id: string;
122879
122901
  url: string;
@@ -123435,7 +123457,7 @@ export declare const mainChatMessageContract: {
123435
123457
  previewUrl: string;
123436
123458
  imageSetId: string;
123437
123459
  repliedMessage: {
123438
- 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";
123460
+ type: string;
123439
123461
  message: string;
123440
123462
  id: string;
123441
123463
  url: string;
@@ -123646,7 +123668,7 @@ export declare const mainChatMessageContract: {
123646
123668
  template?: any;
123647
123669
  metadata?: any;
123648
123670
  fromMessage?: {
123649
- 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";
123671
+ type: string;
123650
123672
  message: string;
123651
123673
  id: string;
123652
123674
  url: string;
@@ -124208,7 +124230,7 @@ export declare const mainChatMessageContract: {
124208
124230
  previewUrl: string;
124209
124231
  imageSetId: string;
124210
124232
  repliedMessage: {
124211
- 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";
124233
+ type: string;
124212
124234
  message: string;
124213
124235
  id: string;
124214
124236
  url: string;
@@ -124420,7 +124442,7 @@ export declare const mainChatMessageContract: {
124420
124442
  label?: string | undefined;
124421
124443
  } | null | undefined;
124422
124444
  }, {
124423
- 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";
124445
+ type: string;
124424
124446
  message: string;
124425
124447
  id: string;
124426
124448
  url: string;
@@ -124982,7 +125004,7 @@ export declare const mainChatMessageContract: {
124982
125004
  previewUrl: string;
124983
125005
  imageSetId: string;
124984
125006
  repliedMessage: {
124985
- 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";
125007
+ type: string;
124986
125008
  message: string;
124987
125009
  id: string;
124988
125010
  url: string;
@@ -125193,7 +125215,7 @@ export declare const mainChatMessageContract: {
125193
125215
  template?: any;
125194
125216
  metadata?: any;
125195
125217
  fromMessage?: {
125196
- 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";
125218
+ type: string;
125197
125219
  message: string;
125198
125220
  id: string;
125199
125221
  url: string;
@@ -125755,7 +125777,7 @@ export declare const mainChatMessageContract: {
125755
125777
  previewUrl: string;
125756
125778
  imageSetId: string;
125757
125779
  repliedMessage: {
125758
- 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";
125780
+ type: string;
125759
125781
  message: string;
125760
125782
  id: string;
125761
125783
  url: string;
@@ -125969,7 +125991,7 @@ export declare const mainChatMessageContract: {
125969
125991
  }>;
125970
125992
  }, "strip", z.ZodTypeAny, {
125971
125993
  data: {
125972
- 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";
125994
+ type: string;
125973
125995
  message: string;
125974
125996
  id: string;
125975
125997
  url: string;
@@ -126531,7 +126553,7 @@ export declare const mainChatMessageContract: {
126531
126553
  previewUrl: string;
126532
126554
  imageSetId: string;
126533
126555
  repliedMessage: {
126534
- 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";
126556
+ type: string;
126535
126557
  message: string;
126536
126558
  id: string;
126537
126559
  url: string;
@@ -126742,7 +126764,7 @@ export declare const mainChatMessageContract: {
126742
126764
  template?: any;
126743
126765
  metadata?: any;
126744
126766
  fromMessage?: {
126745
- 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";
126767
+ type: string;
126746
126768
  message: string;
126747
126769
  id: string;
126748
126770
  url: string;
@@ -127304,7 +127326,7 @@ export declare const mainChatMessageContract: {
127304
127326
  previewUrl: string;
127305
127327
  imageSetId: string;
127306
127328
  repliedMessage: {
127307
- 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";
127329
+ type: string;
127308
127330
  message: string;
127309
127331
  id: string;
127310
127332
  url: string;
@@ -127519,7 +127541,7 @@ export declare const mainChatMessageContract: {
127519
127541
  requestId: string;
127520
127542
  }, {
127521
127543
  data: {
127522
- 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";
127544
+ type: string;
127523
127545
  message: string;
127524
127546
  id: string;
127525
127547
  url: string;
@@ -128081,7 +128103,7 @@ export declare const mainChatMessageContract: {
128081
128103
  previewUrl: string;
128082
128104
  imageSetId: string;
128083
128105
  repliedMessage: {
128084
- 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";
128106
+ type: string;
128085
128107
  message: string;
128086
128108
  id: string;
128087
128109
  url: string;
@@ -128292,7 +128314,7 @@ export declare const mainChatMessageContract: {
128292
128314
  template?: any;
128293
128315
  metadata?: any;
128294
128316
  fromMessage?: {
128295
- 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";
128317
+ type: string;
128296
128318
  message: string;
128297
128319
  id: string;
128298
128320
  url: string;
@@ -128854,7 +128876,7 @@ export declare const mainChatMessageContract: {
128854
128876
  previewUrl: string;
128855
128877
  imageSetId: string;
128856
128878
  repliedMessage: {
128857
- 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";
128879
+ type: string;
128858
128880
  message: string;
128859
128881
  id: string;
128860
128882
  url: string;
@@ -129527,8 +129549,8 @@ export declare const mainChatMessageContract: {
129527
129549
  message: z.ZodObject<{
129528
129550
  id: z.ZodOptional<z.ZodString>;
129529
129551
  message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
129530
- direction: z.ZodEnum<["incoming", "outgoing", "system"]>;
129531
- 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"]>;
129552
+ direction: z.ZodUnion<[z.ZodLiteral<"incoming">, z.ZodLiteral<"outgoing">, z.ZodLiteral<"system">]>;
129553
+ type: z.ZodUnion<[z.ZodLiteral<string>, z.ZodLiteral<string>, ...z.ZodLiteral<string>[]]>;
129532
129554
  readAt: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodDate, z.ZodString]>>>;
129533
129555
  metadata: z.ZodOptional<z.ZodAny>;
129534
129556
  platformId: z.ZodOptional<z.ZodString>;
@@ -129580,7 +129602,7 @@ export declare const mainChatMessageContract: {
129580
129602
  parentMessageId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
129581
129603
  feedPostId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
129582
129604
  }, "strip", z.ZodTypeAny, {
129583
- 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";
129605
+ type: string;
129584
129606
  direction: "incoming" | "outgoing" | "system";
129585
129607
  id?: string | undefined;
129586
129608
  message?: string | null | undefined;
@@ -129611,7 +129633,7 @@ export declare const mainChatMessageContract: {
129611
129633
  parentMessageId?: string | null | undefined;
129612
129634
  feedPostId?: string | null | undefined;
129613
129635
  }, {
129614
- 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";
129636
+ type: string;
129615
129637
  direction: "incoming" | "outgoing" | "system";
129616
129638
  id?: string | undefined;
129617
129639
  message?: string | null | undefined;
@@ -129644,7 +129666,7 @@ export declare const mainChatMessageContract: {
129644
129666
  }>;
129645
129667
  }, "strip", z.ZodTypeAny, {
129646
129668
  message: {
129647
- 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";
129669
+ type: string;
129648
129670
  direction: "incoming" | "outgoing" | "system";
129649
129671
  id?: string | undefined;
129650
129672
  message?: string | null | undefined;
@@ -129733,7 +129755,7 @@ export declare const mainChatMessageContract: {
129733
129755
  };
129734
129756
  }, {
129735
129757
  message: {
129736
- 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";
129758
+ type: string;
129737
129759
  direction: "incoming" | "outgoing" | "system";
129738
129760
  id?: string | undefined;
129739
129761
  message?: string | null | undefined;
@@ -129824,7 +129846,7 @@ export declare const mainChatMessageContract: {
129824
129846
  }, "strip", z.ZodTypeAny, {
129825
129847
  data: {
129826
129848
  message: {
129827
- 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";
129849
+ type: string;
129828
129850
  direction: "incoming" | "outgoing" | "system";
129829
129851
  id?: string | undefined;
129830
129852
  message?: string | null | undefined;
@@ -129916,7 +129938,7 @@ export declare const mainChatMessageContract: {
129916
129938
  }, {
129917
129939
  data: {
129918
129940
  message: {
129919
- 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";
129941
+ type: string;
129920
129942
  direction: "incoming" | "outgoing" | "system";
129921
129943
  id?: string | undefined;
129922
129944
  message?: string | null | undefined;
@@ -130053,8 +130075,8 @@ export declare const mainChatMessageContract: {
130053
130075
  updatedAt: z.ZodDate;
130054
130076
  deletedAt: z.ZodNullable<z.ZodDate>;
130055
130077
  message: z.ZodString;
130056
- direction: z.ZodEnum<["incoming", "outgoing", "system"]>;
130057
- 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"]>;
130078
+ direction: z.ZodUnion<[z.ZodLiteral<"incoming">, z.ZodLiteral<"outgoing">, z.ZodLiteral<"system">]>;
130079
+ type: z.ZodUnion<[z.ZodLiteral<string>, z.ZodLiteral<string>, ...z.ZodLiteral<string>[]]>;
130058
130080
  readAt: z.ZodDate;
130059
130081
  metadata: z.ZodAny;
130060
130082
  platformId: z.ZodString;
@@ -130080,7 +130102,7 @@ export declare const mainChatMessageContract: {
130080
130102
  firstResponseTime: z.ZodNumber;
130081
130103
  isLatest: z.ZodBoolean;
130082
130104
  isBotRoom: z.ZodBoolean;
130083
- direction: z.ZodEnum<["incoming", "outgoing", "system"]>;
130105
+ direction: z.ZodUnion<[z.ZodLiteral<"incoming">, z.ZodLiteral<"outgoing">, z.ZodLiteral<"system">]>;
130084
130106
  platformContact: z.ZodObject<{
130085
130107
  id: z.ZodString;
130086
130108
  createdAt: z.ZodDate;
@@ -133596,8 +133618,8 @@ export declare const mainChatMessageContract: {
133596
133618
  updatedAt: z.ZodDate;
133597
133619
  deletedAt: z.ZodNullable<z.ZodDate>;
133598
133620
  message: z.ZodString;
133599
- direction: z.ZodEnum<["incoming", "outgoing", "system"]>;
133600
- 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"]>;
133621
+ direction: z.ZodUnion<[z.ZodLiteral<"incoming">, z.ZodLiteral<"outgoing">, z.ZodLiteral<"system">]>;
133622
+ type: z.ZodUnion<[z.ZodLiteral<string>, z.ZodLiteral<string>, ...z.ZodLiteral<string>[]]>;
133601
133623
  readAt: z.ZodDate;
133602
133624
  metadata: z.ZodAny;
133603
133625
  platformId: z.ZodString;
@@ -134255,7 +134277,7 @@ export declare const mainChatMessageContract: {
134255
134277
  };
134256
134278
  }>;
134257
134279
  }, "strip", z.ZodTypeAny, {
134258
- 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";
134280
+ type: string;
134259
134281
  message: string;
134260
134282
  id: string;
134261
134283
  url: string;
@@ -134417,7 +134439,7 @@ export declare const mainChatMessageContract: {
134417
134439
  metadata?: any;
134418
134440
  template?: any;
134419
134441
  }, {
134420
- 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";
134442
+ type: string;
134421
134443
  message: string;
134422
134444
  id: string;
134423
134445
  url: string;
@@ -135219,7 +135241,7 @@ export declare const mainChatMessageContract: {
135219
135241
  editedMessageid: z.ZodString;
135220
135242
  label: z.ZodOptional<z.ZodString>;
135221
135243
  }, "strip", z.ZodTypeAny, {
135222
- 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";
135244
+ type: string;
135223
135245
  message: string;
135224
135246
  id: string;
135225
135247
  url: string;
@@ -135781,7 +135803,7 @@ export declare const mainChatMessageContract: {
135781
135803
  previewUrl: string;
135782
135804
  imageSetId: string;
135783
135805
  repliedMessage: {
135784
- 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";
135806
+ type: string;
135785
135807
  message: string;
135786
135808
  id: string;
135787
135809
  url: string;
@@ -135992,7 +136014,7 @@ export declare const mainChatMessageContract: {
135992
136014
  template?: any;
135993
136015
  label?: string | undefined;
135994
136016
  }, {
135995
- 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";
136017
+ type: string;
135996
136018
  message: string;
135997
136019
  id: string;
135998
136020
  url: string;
@@ -136554,7 +136576,7 @@ export declare const mainChatMessageContract: {
136554
136576
  previewUrl: string;
136555
136577
  imageSetId: string;
136556
136578
  repliedMessage: {
136557
- 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";
136579
+ type: string;
136558
136580
  message: string;
136559
136581
  id: string;
136560
136582
  url: string;
@@ -136767,7 +136789,7 @@ export declare const mainChatMessageContract: {
136767
136789
  }>, "many">;
136768
136790
  }, "strip", z.ZodTypeAny, {
136769
136791
  data: {
136770
- 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";
136792
+ type: string;
136771
136793
  message: string;
136772
136794
  id: string;
136773
136795
  url: string;
@@ -137329,7 +137351,7 @@ export declare const mainChatMessageContract: {
137329
137351
  previewUrl: string;
137330
137352
  imageSetId: string;
137331
137353
  repliedMessage: {
137332
- 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";
137354
+ type: string;
137333
137355
  message: string;
137334
137356
  id: string;
137335
137357
  url: string;
@@ -137543,7 +137565,7 @@ export declare const mainChatMessageContract: {
137543
137565
  requestId: string;
137544
137566
  }, {
137545
137567
  data: {
137546
- 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";
137568
+ type: string;
137547
137569
  message: string;
137548
137570
  id: string;
137549
137571
  url: string;
@@ -138105,7 +138127,7 @@ export declare const mainChatMessageContract: {
138105
138127
  previewUrl: string;
138106
138128
  imageSetId: string;
138107
138129
  repliedMessage: {
138108
- 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";
138130
+ type: string;
138109
138131
  message: string;
138110
138132
  id: string;
138111
138133
  url: string;