@kl1/contracts 1.1.22 → 1.1.23

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 (76) hide show
  1. package/dist/index.js +579 -211
  2. package/dist/index.js.map +1 -1
  3. package/dist/index.mjs +578 -211
  4. package/dist/index.mjs.map +1 -1
  5. package/dist/src/business-calendar/index.d.ts +799 -0
  6. package/dist/src/business-calendar/index.d.ts.map +1 -0
  7. package/dist/src/business-calendar/schema.d.ts +172 -0
  8. package/dist/src/business-calendar/schema.d.ts.map +1 -0
  9. package/dist/src/business-calendar/validation.d.ts +210 -0
  10. package/dist/src/business-calendar/validation.d.ts.map +1 -0
  11. package/dist/src/channel/index.d.ts +725 -611
  12. package/dist/src/channel/index.d.ts.map +1 -1
  13. package/dist/src/channel/schema.d.ts +12 -12
  14. package/dist/src/channel/schema.d.ts.map +1 -1
  15. package/dist/src/channel/validation.d.ts +71 -8
  16. package/dist/src/channel/validation.d.ts.map +1 -1
  17. package/dist/src/chat/index.d.ts +5144 -299
  18. package/dist/src/chat/index.d.ts.map +1 -1
  19. package/dist/src/chat/schema.d.ts +807 -47
  20. package/dist/src/chat/schema.d.ts.map +1 -1
  21. package/dist/src/chat/validation.d.ts +1093 -118
  22. package/dist/src/chat/validation.d.ts.map +1 -1
  23. package/dist/src/contract.d.ts +26553 -6263
  24. package/dist/src/contract.d.ts.map +1 -1
  25. package/dist/src/cx-log/index.d.ts +376 -31
  26. package/dist/src/cx-log/index.d.ts.map +1 -1
  27. package/dist/src/cx-log/schema.d.ts +577 -27
  28. package/dist/src/cx-log/schema.d.ts.map +1 -1
  29. package/dist/src/index.d.ts +1 -0
  30. package/dist/src/index.d.ts.map +1 -1
  31. package/dist/src/instagram/index.d.ts +628 -138
  32. package/dist/src/instagram/index.d.ts.map +1 -1
  33. package/dist/src/line/index.d.ts +623 -133
  34. package/dist/src/line/index.d.ts.map +1 -1
  35. package/dist/src/line/schema.d.ts.map +1 -1
  36. package/dist/src/line/validation.d.ts +23 -23
  37. package/dist/src/line/validation.d.ts.map +1 -1
  38. package/dist/src/mail/account-contract.d.ts +230 -4
  39. package/dist/src/mail/account-contract.d.ts.map +1 -1
  40. package/dist/src/mail/mail-contract.d.ts +3277 -435
  41. package/dist/src/mail/mail-contract.d.ts.map +1 -1
  42. package/dist/src/mail/message-contract.d.ts +58 -1
  43. package/dist/src/mail/message-contract.d.ts.map +1 -1
  44. package/dist/src/mail/room-contract.d.ts +3009 -450
  45. package/dist/src/mail/room-contract.d.ts.map +1 -1
  46. package/dist/src/mail/schemas/room-validation.schema.d.ts +731 -6
  47. package/dist/src/mail/schemas/room-validation.schema.d.ts.map +1 -1
  48. package/dist/src/mail/schemas/room.schema.d.ts +557 -0
  49. package/dist/src/mail/schemas/room.schema.d.ts.map +1 -1
  50. package/dist/src/messenger/index.d.ts +628 -138
  51. package/dist/src/messenger/index.d.ts.map +1 -1
  52. package/dist/src/messenger/validation.d.ts +13 -13
  53. package/dist/src/snippet/index.d.ts +545 -97
  54. package/dist/src/snippet/index.d.ts.map +1 -1
  55. package/dist/src/snippet/schema.d.ts +220 -19
  56. package/dist/src/snippet/schema.d.ts.map +1 -1
  57. package/dist/src/snippet/validation.d.ts +5 -5
  58. package/dist/src/viber/index.d.ts +592 -102
  59. package/dist/src/viber/index.d.ts.map +1 -1
  60. package/dist/src/webchat/index.d.ts +8506 -0
  61. package/dist/src/webchat/index.d.ts.map +1 -0
  62. package/dist/src/webchat/schema.d.ts +95 -0
  63. package/dist/src/webchat/schema.d.ts.map +1 -0
  64. package/dist/src/webchat/validation.d.ts +36 -0
  65. package/dist/src/webchat/validation.d.ts.map +1 -0
  66. package/dist/src/workflow-rule/index.d.ts +7295 -0
  67. package/dist/src/workflow-rule/index.d.ts.map +1 -0
  68. package/dist/src/workflow-rule/schema.d.ts +27 -0
  69. package/dist/src/workflow-rule/schema.d.ts.map +1 -0
  70. package/dist/src/wrap-up-form/index.d.ts +1000 -6
  71. package/dist/src/wrap-up-form/index.d.ts.map +1 -1
  72. package/dist/src/wrap-up-form/schema.d.ts +207 -2
  73. package/dist/src/wrap-up-form/schema.d.ts.map +1 -1
  74. package/dist/src/wrap-up-form/validation.d.ts +29 -0
  75. package/dist/src/wrap-up-form/validation.d.ts.map +1 -1
  76. package/package.json +1 -1
@@ -656,23 +656,23 @@ export declare const SearchRoomsSchema: z.ZodObject<{
656
656
  export declare const ChannelSchema: z.ZodObject<{
657
657
  id: z.ZodString;
658
658
  name: z.ZodString;
659
- type: z.ZodEnum<["whatsapp", "messenger", "telegram", "instagram", "line", "viber", "kakao", "shopee", "lazada"]>;
659
+ type: z.ZodEnum<["whatsapp", "messenger", "telegram", "instagram", "line", "viber", "kakao", "shopee", "lazada", "webchat"]>;
660
660
  metadata: z.ZodObject<{
661
661
  id: z.ZodString;
662
662
  name: z.ZodString;
663
- accessToken: z.ZodString;
663
+ accessToken: z.ZodOptional<z.ZodString>;
664
664
  channelSecret: z.ZodOptional<z.ZodString>;
665
665
  additionalCredentials: z.ZodOptional<z.ZodAny>;
666
666
  }, "strip", z.ZodTypeAny, {
667
667
  id: string;
668
668
  name: string;
669
- accessToken: string;
669
+ accessToken?: string | undefined;
670
670
  channelSecret?: string | undefined;
671
671
  additionalCredentials?: any;
672
672
  }, {
673
673
  id: string;
674
674
  name: string;
675
- accessToken: string;
675
+ accessToken?: string | undefined;
676
676
  channelSecret?: string | undefined;
677
677
  additionalCredentials?: any;
678
678
  }>;
@@ -701,13 +701,13 @@ export declare const ChannelSchema: z.ZodObject<{
701
701
  phone: string | null;
702
702
  }>>;
703
703
  }, "strip", z.ZodTypeAny, {
704
- type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
704
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat";
705
705
  id: string;
706
706
  name: string;
707
707
  metadata: {
708
708
  id: string;
709
709
  name: string;
710
- accessToken: string;
710
+ accessToken?: string | undefined;
711
711
  channelSecret?: string | undefined;
712
712
  additionalCredentials?: any;
713
713
  };
@@ -724,13 +724,13 @@ export declare const ChannelSchema: z.ZodObject<{
724
724
  phone: string | null;
725
725
  } | undefined;
726
726
  }, {
727
- type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
727
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat";
728
728
  id: string;
729
729
  name: string;
730
730
  metadata: {
731
731
  id: string;
732
732
  name: string;
733
- accessToken: string;
733
+ accessToken?: string | undefined;
734
734
  channelSecret?: string | undefined;
735
735
  additionalCredentials?: any;
736
736
  };
@@ -748,24 +748,24 @@ export declare const ChannelSchema: z.ZodObject<{
748
748
  } | undefined;
749
749
  }>;
750
750
  export declare const ReloginChanelSchema: z.ZodObject<{
751
- type: z.ZodEnum<["whatsapp", "messenger", "telegram", "instagram", "line", "viber", "kakao", "shopee", "lazada"]>;
751
+ type: z.ZodEnum<["whatsapp", "messenger", "telegram", "instagram", "line", "viber", "kakao", "shopee", "lazada", "webchat"]>;
752
752
  name: z.ZodString;
753
753
  metadata: z.ZodObject<{
754
754
  id: z.ZodString;
755
755
  name: z.ZodString;
756
- accessToken: z.ZodString;
756
+ accessToken: z.ZodOptional<z.ZodString>;
757
757
  channelSecret: z.ZodOptional<z.ZodString>;
758
758
  additionalCredentials: z.ZodOptional<z.ZodAny>;
759
759
  }, "strip", z.ZodTypeAny, {
760
760
  id: string;
761
761
  name: string;
762
- accessToken: string;
762
+ accessToken?: string | undefined;
763
763
  channelSecret?: string | undefined;
764
764
  additionalCredentials?: any;
765
765
  }, {
766
766
  id: string;
767
767
  name: string;
768
- accessToken: string;
768
+ accessToken?: string | undefined;
769
769
  channelSecret?: string | undefined;
770
770
  additionalCredentials?: any;
771
771
  }>;
@@ -799,13 +799,13 @@ export declare const ReloginChanelSchema: z.ZodObject<{
799
799
  deletedAt: z.ZodNullable<z.ZodString>;
800
800
  isReloginRequired: z.ZodBoolean;
801
801
  }, "strip", z.ZodTypeAny, {
802
- type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
802
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat";
803
803
  id: string;
804
804
  name: string;
805
805
  metadata: {
806
806
  id: string;
807
807
  name: string;
808
- accessToken: string;
808
+ accessToken?: string | undefined;
809
809
  channelSecret?: string | undefined;
810
810
  additionalCredentials?: any;
811
811
  };
@@ -826,13 +826,13 @@ export declare const ReloginChanelSchema: z.ZodObject<{
826
826
  connectedUserName?: string | null | undefined;
827
827
  connectedUserId?: string | null | undefined;
828
828
  }, {
829
- type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
829
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat";
830
830
  id: string;
831
831
  name: string;
832
832
  metadata: {
833
833
  id: string;
834
834
  name: string;
835
- accessToken: string;
835
+ accessToken?: string | undefined;
836
836
  channelSecret?: string | undefined;
837
837
  additionalCredentials?: any;
838
838
  };
@@ -860,13 +860,14 @@ export declare const SendMessageToPlatformSchema: z.ZodObject<{
860
860
  handleTime: z.ZodOptional<z.ZodNumber>;
861
861
  isLatest: z.ZodBoolean;
862
862
  direction: z.ZodEnum<["incoming", "outgoing", "system"]>;
863
+ metadata: z.ZodOptional<z.ZodAny>;
863
864
  createdAt: z.ZodString;
864
865
  updatedAt: z.ZodString;
865
866
  platformContact: z.ZodObject<{
866
867
  id: z.ZodString;
867
868
  channelId: z.ZodString;
868
869
  socialPlatformId: z.ZodNullable<z.ZodString>;
869
- type: z.ZodEnum<["whatsapp", "messenger", "telegram", "instagram", "line", "viber", "kakao", "shopee", "lazada"]>;
870
+ type: z.ZodEnum<["whatsapp", "messenger", "telegram", "instagram", "line", "viber", "kakao", "shopee", "lazada", "webchat"]>;
870
871
  metadata: z.ZodObject<{
871
872
  id: z.ZodString;
872
873
  name: z.ZodString;
@@ -906,7 +907,7 @@ export declare const SendMessageToPlatformSchema: z.ZodObject<{
906
907
  socialProfileUrl: string | null;
907
908
  }>;
908
909
  }, "strip", z.ZodTypeAny, {
909
- type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
910
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat";
910
911
  id: string;
911
912
  metadata: {
912
913
  id: string;
@@ -925,7 +926,7 @@ export declare const SendMessageToPlatformSchema: z.ZodObject<{
925
926
  channelId: string;
926
927
  socialPlatformId: string | null;
927
928
  }, {
928
- type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
929
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat";
929
930
  id: string;
930
931
  metadata: {
931
932
  id: string;
@@ -979,23 +980,23 @@ export declare const SendMessageToPlatformSchema: z.ZodObject<{
979
980
  channel: z.ZodObject<{
980
981
  id: z.ZodString;
981
982
  name: z.ZodString;
982
- type: z.ZodEnum<["whatsapp", "messenger", "telegram", "instagram", "line", "viber", "kakao", "shopee", "lazada"]>;
983
+ type: z.ZodEnum<["whatsapp", "messenger", "telegram", "instagram", "line", "viber", "kakao", "shopee", "lazada", "webchat"]>;
983
984
  metadata: z.ZodObject<{
984
985
  id: z.ZodString;
985
986
  name: z.ZodString;
986
- accessToken: z.ZodString;
987
+ accessToken: z.ZodOptional<z.ZodString>;
987
988
  channelSecret: z.ZodOptional<z.ZodString>;
988
989
  additionalCredentials: z.ZodOptional<z.ZodAny>;
989
990
  }, "strip", z.ZodTypeAny, {
990
991
  id: string;
991
992
  name: string;
992
- accessToken: string;
993
+ accessToken?: string | undefined;
993
994
  channelSecret?: string | undefined;
994
995
  additionalCredentials?: any;
995
996
  }, {
996
997
  id: string;
997
998
  name: string;
998
- accessToken: string;
999
+ accessToken?: string | undefined;
999
1000
  channelSecret?: string | undefined;
1000
1001
  additionalCredentials?: any;
1001
1002
  }>;
@@ -1024,13 +1025,13 @@ export declare const SendMessageToPlatformSchema: z.ZodObject<{
1024
1025
  phone: string | null;
1025
1026
  }>>;
1026
1027
  }, "strip", z.ZodTypeAny, {
1027
- type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
1028
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat";
1028
1029
  id: string;
1029
1030
  name: string;
1030
1031
  metadata: {
1031
1032
  id: string;
1032
1033
  name: string;
1033
- accessToken: string;
1034
+ accessToken?: string | undefined;
1034
1035
  channelSecret?: string | undefined;
1035
1036
  additionalCredentials?: any;
1036
1037
  };
@@ -1047,13 +1048,13 @@ export declare const SendMessageToPlatformSchema: z.ZodObject<{
1047
1048
  phone: string | null;
1048
1049
  } | undefined;
1049
1050
  }, {
1050
- type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
1051
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat";
1051
1052
  id: string;
1052
1053
  name: string;
1053
1054
  metadata: {
1054
1055
  id: string;
1055
1056
  name: string;
1056
- accessToken: string;
1057
+ accessToken?: string | undefined;
1057
1058
  channelSecret?: string | undefined;
1058
1059
  additionalCredentials?: any;
1059
1060
  };
@@ -1074,13 +1075,13 @@ export declare const SendMessageToPlatformSchema: z.ZodObject<{
1074
1075
  }, "strip", z.ZodTypeAny, {
1075
1076
  id: string;
1076
1077
  channel: {
1077
- type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
1078
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat";
1078
1079
  id: string;
1079
1080
  name: string;
1080
1081
  metadata: {
1081
1082
  id: string;
1082
1083
  name: string;
1083
- accessToken: string;
1084
+ accessToken?: string | undefined;
1084
1085
  channelSecret?: string | undefined;
1085
1086
  additionalCredentials?: any;
1086
1087
  };
@@ -1109,7 +1110,7 @@ export declare const SendMessageToPlatformSchema: z.ZodObject<{
1109
1110
  } | null;
1110
1111
  isLatest: boolean;
1111
1112
  platformContact: {
1112
- type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
1113
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat";
1113
1114
  id: string;
1114
1115
  metadata: {
1115
1116
  id: string;
@@ -1135,17 +1136,18 @@ export declare const SendMessageToPlatformSchema: z.ZodObject<{
1135
1136
  } | null;
1136
1137
  lastMessage?: string | undefined;
1137
1138
  handleTime?: number | undefined;
1139
+ metadata?: any;
1138
1140
  messengerTags?: "post_purchase_update" | "account_update" | "confirmed_event_update" | undefined;
1139
1141
  }, {
1140
1142
  id: string;
1141
1143
  channel: {
1142
- type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
1144
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat";
1143
1145
  id: string;
1144
1146
  name: string;
1145
1147
  metadata: {
1146
1148
  id: string;
1147
1149
  name: string;
1148
- accessToken: string;
1150
+ accessToken?: string | undefined;
1149
1151
  channelSecret?: string | undefined;
1150
1152
  additionalCredentials?: any;
1151
1153
  };
@@ -1174,7 +1176,7 @@ export declare const SendMessageToPlatformSchema: z.ZodObject<{
1174
1176
  } | null;
1175
1177
  isLatest: boolean;
1176
1178
  platformContact: {
1177
- type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
1179
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat";
1178
1180
  id: string;
1179
1181
  metadata: {
1180
1182
  id: string;
@@ -1200,6 +1202,7 @@ export declare const SendMessageToPlatformSchema: z.ZodObject<{
1200
1202
  } | null;
1201
1203
  lastMessage?: string | undefined;
1202
1204
  handleTime?: number | undefined;
1205
+ metadata?: any;
1203
1206
  messengerTags?: "post_purchase_update" | "account_update" | "confirmed_event_update" | undefined;
1204
1207
  }>;
1205
1208
  message: z.ZodObject<{
@@ -1338,13 +1341,13 @@ export declare const SendMessageToPlatformSchema: z.ZodObject<{
1338
1341
  room: {
1339
1342
  id: string;
1340
1343
  channel: {
1341
- type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
1344
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat";
1342
1345
  id: string;
1343
1346
  name: string;
1344
1347
  metadata: {
1345
1348
  id: string;
1346
1349
  name: string;
1347
- accessToken: string;
1350
+ accessToken?: string | undefined;
1348
1351
  channelSecret?: string | undefined;
1349
1352
  additionalCredentials?: any;
1350
1353
  };
@@ -1373,7 +1376,7 @@ export declare const SendMessageToPlatformSchema: z.ZodObject<{
1373
1376
  } | null;
1374
1377
  isLatest: boolean;
1375
1378
  platformContact: {
1376
- type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
1379
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat";
1377
1380
  id: string;
1378
1381
  metadata: {
1379
1382
  id: string;
@@ -1399,6 +1402,7 @@ export declare const SendMessageToPlatformSchema: z.ZodObject<{
1399
1402
  } | null;
1400
1403
  lastMessage?: string | undefined;
1401
1404
  handleTime?: number | undefined;
1405
+ metadata?: any;
1402
1406
  messengerTags?: "post_purchase_update" | "account_update" | "confirmed_event_update" | undefined;
1403
1407
  };
1404
1408
  }, {
@@ -1433,13 +1437,13 @@ export declare const SendMessageToPlatformSchema: z.ZodObject<{
1433
1437
  room: {
1434
1438
  id: string;
1435
1439
  channel: {
1436
- type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
1440
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat";
1437
1441
  id: string;
1438
1442
  name: string;
1439
1443
  metadata: {
1440
1444
  id: string;
1441
1445
  name: string;
1442
- accessToken: string;
1446
+ accessToken?: string | undefined;
1443
1447
  channelSecret?: string | undefined;
1444
1448
  additionalCredentials?: any;
1445
1449
  };
@@ -1468,7 +1472,7 @@ export declare const SendMessageToPlatformSchema: z.ZodObject<{
1468
1472
  } | null;
1469
1473
  isLatest: boolean;
1470
1474
  platformContact: {
1471
- type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
1475
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat";
1472
1476
  id: string;
1473
1477
  metadata: {
1474
1478
  id: string;
@@ -1494,6 +1498,7 @@ export declare const SendMessageToPlatformSchema: z.ZodObject<{
1494
1498
  } | null;
1495
1499
  lastMessage?: string | undefined;
1496
1500
  handleTime?: number | undefined;
1501
+ metadata?: any;
1497
1502
  messengerTags?: "post_purchase_update" | "account_update" | "confirmed_event_update" | undefined;
1498
1503
  };
1499
1504
  }>;
@@ -1539,7 +1544,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
1539
1544
  deletedAt: z.ZodNullable<z.ZodDate>;
1540
1545
  channelId: z.ZodString;
1541
1546
  socialPlatformId: z.ZodString;
1542
- type: z.ZodEnum<["whatsapp", "messenger", "telegram", "instagram", "line", "viber", "kakao", "shopee", "lazada"]>;
1547
+ type: z.ZodEnum<["whatsapp", "messenger", "telegram", "instagram", "line", "viber", "kakao", "shopee", "lazada", "webchat"]>;
1543
1548
  metadata: z.ZodObject<{
1544
1549
  id: z.ZodString;
1545
1550
  name: z.ZodString;
@@ -2244,7 +2249,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
2244
2249
  }[] | undefined;
2245
2250
  }>;
2246
2251
  }, "strip", z.ZodTypeAny, {
2247
- type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
2252
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat";
2248
2253
  id: string;
2249
2254
  metadata: {
2250
2255
  id: string;
@@ -2355,7 +2360,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
2355
2360
  channelId: string;
2356
2361
  socialPlatformId: string;
2357
2362
  }, {
2358
- type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
2363
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat";
2359
2364
  id: string;
2360
2365
  metadata: {
2361
2366
  id: string;
@@ -2880,23 +2885,23 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
2880
2885
  updatedAt: z.ZodDate;
2881
2886
  deletedAt: z.ZodNullable<z.ZodDate>;
2882
2887
  name: z.ZodString;
2883
- type: z.ZodEnum<["whatsapp", "messenger", "telegram", "instagram", "line", "viber", "kakao", "shopee", "lazada"]>;
2888
+ type: z.ZodEnum<["whatsapp", "messenger", "telegram", "instagram", "line", "viber", "kakao", "shopee", "lazada", "webchat"]>;
2884
2889
  metadata: z.ZodObject<{
2885
2890
  id: z.ZodString;
2886
2891
  name: z.ZodString;
2887
- accessToken: z.ZodString;
2892
+ accessToken: z.ZodOptional<z.ZodString>;
2888
2893
  channelSecret: z.ZodOptional<z.ZodString>;
2889
2894
  additionalCredentials: z.ZodOptional<z.ZodAny>;
2890
2895
  }, "strip", z.ZodTypeAny, {
2891
2896
  id: string;
2892
2897
  name: string;
2893
- accessToken: string;
2898
+ accessToken?: string | undefined;
2894
2899
  channelSecret?: string | undefined;
2895
2900
  additionalCredentials?: any;
2896
2901
  }, {
2897
2902
  id: string;
2898
2903
  name: string;
2899
- accessToken: string;
2904
+ accessToken?: string | undefined;
2900
2905
  channelSecret?: string | undefined;
2901
2906
  additionalCredentials?: any;
2902
2907
  }>;
@@ -3111,13 +3116,13 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
3111
3116
  };
3112
3117
  }>;
3113
3118
  }, "strip", z.ZodTypeAny, {
3114
- type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
3119
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat";
3115
3120
  id: string;
3116
3121
  name: string;
3117
3122
  metadata: {
3118
3123
  id: string;
3119
3124
  name: string;
3120
- accessToken: string;
3125
+ accessToken?: string | undefined;
3121
3126
  channelSecret?: string | undefined;
3122
3127
  additionalCredentials?: any;
3123
3128
  };
@@ -3175,13 +3180,13 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
3175
3180
  connectedUserName: string;
3176
3181
  connectedUserId: string;
3177
3182
  }, {
3178
- type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
3183
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat";
3179
3184
  id: string;
3180
3185
  name: string;
3181
3186
  metadata: {
3182
3187
  id: string;
3183
3188
  name: string;
3184
- accessToken: string;
3189
+ accessToken?: string | undefined;
3185
3190
  channelSecret?: string | undefined;
3186
3191
  additionalCredentials?: any;
3187
3192
  };
@@ -3262,8 +3267,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
3262
3267
  deletedAt: z.ZodNullable<z.ZodDate>;
3263
3268
  note: z.ZodNullable<z.ZodString>;
3264
3269
  disposition: z.ZodNullable<z.ZodString>;
3265
- callFrom: z.ZodNullable<z.ZodString>;
3266
- callTo: z.ZodNullable<z.ZodString>;
3270
+ type: z.ZodString;
3267
3271
  tags: z.ZodArray<z.ZodObject<{
3268
3272
  id: z.ZodString;
3269
3273
  createdAt: z.ZodDate;
@@ -3283,12 +3287,171 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
3283
3287
  updatedAt: Date;
3284
3288
  deletedAt: Date | null;
3285
3289
  }>, "many">;
3290
+ categories: z.ZodArray<z.ZodObject<{
3291
+ id: z.ZodString;
3292
+ createdAt: z.ZodDate;
3293
+ updatedAt: z.ZodDate;
3294
+ deletedAt: z.ZodNullable<z.ZodDate>;
3295
+ value: z.ZodString;
3296
+ level: z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
3297
+ parentId: z.ZodNullable<z.ZodString>;
3298
+ childCategoryList: z.ZodArray<z.ZodObject<{
3299
+ id: z.ZodString;
3300
+ value: z.ZodString;
3301
+ level: z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
3302
+ parentId: z.ZodNullable<z.ZodString>;
3303
+ childCategoryList: z.ZodArray<z.ZodObject<{
3304
+ id: z.ZodString;
3305
+ value: z.ZodString;
3306
+ level: z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
3307
+ parentId: z.ZodNullable<z.ZodString>;
3308
+ childCategoryList: z.ZodArray<z.ZodAny, "many">;
3309
+ }, "strip", z.ZodTypeAny, {
3310
+ id: string;
3311
+ value: string;
3312
+ level: 2 | 1 | 3;
3313
+ parentId: string | null;
3314
+ childCategoryList: any[];
3315
+ }, {
3316
+ id: string;
3317
+ value: string;
3318
+ level: 2 | 1 | 3;
3319
+ parentId: string | null;
3320
+ childCategoryList: any[];
3321
+ }>, "many">;
3322
+ }, "strip", z.ZodTypeAny, {
3323
+ id: string;
3324
+ value: string;
3325
+ level: 2 | 1 | 3;
3326
+ parentId: string | null;
3327
+ childCategoryList: {
3328
+ id: string;
3329
+ value: string;
3330
+ level: 2 | 1 | 3;
3331
+ parentId: string | null;
3332
+ childCategoryList: any[];
3333
+ }[];
3334
+ }, {
3335
+ id: string;
3336
+ value: string;
3337
+ level: 2 | 1 | 3;
3338
+ parentId: string | null;
3339
+ childCategoryList: {
3340
+ id: string;
3341
+ value: string;
3342
+ level: 2 | 1 | 3;
3343
+ parentId: string | null;
3344
+ childCategoryList: any[];
3345
+ }[];
3346
+ }>, "many">;
3347
+ }, "strip", z.ZodTypeAny, {
3348
+ id: string;
3349
+ value: string;
3350
+ createdAt: Date;
3351
+ updatedAt: Date;
3352
+ deletedAt: Date | null;
3353
+ level: 2 | 1 | 3;
3354
+ parentId: string | null;
3355
+ childCategoryList: {
3356
+ id: string;
3357
+ value: string;
3358
+ level: 2 | 1 | 3;
3359
+ parentId: string | null;
3360
+ childCategoryList: {
3361
+ id: string;
3362
+ value: string;
3363
+ level: 2 | 1 | 3;
3364
+ parentId: string | null;
3365
+ childCategoryList: any[];
3366
+ }[];
3367
+ }[];
3368
+ }, {
3369
+ id: string;
3370
+ value: string;
3371
+ createdAt: Date;
3372
+ updatedAt: Date;
3373
+ deletedAt: Date | null;
3374
+ level: 2 | 1 | 3;
3375
+ parentId: string | null;
3376
+ childCategoryList: {
3377
+ id: string;
3378
+ value: string;
3379
+ level: 2 | 1 | 3;
3380
+ parentId: string | null;
3381
+ childCategoryList: {
3382
+ id: string;
3383
+ value: string;
3384
+ level: 2 | 1 | 3;
3385
+ parentId: string | null;
3386
+ childCategoryList: any[];
3387
+ }[];
3388
+ }[];
3389
+ }>, "many">;
3390
+ callFrom: z.ZodNullable<z.ZodString>;
3391
+ callTo: z.ZodNullable<z.ZodString>;
3392
+ customFields: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
3393
+ id: z.ZodString;
3394
+ createdAt: z.ZodDate;
3395
+ updatedAt: z.ZodDate;
3396
+ deletedAt: z.ZodNullable<z.ZodDate>;
3397
+ textValue: z.ZodNullable<z.ZodString>;
3398
+ booleanValue: z.ZodNullable<z.ZodBoolean>;
3399
+ numberValue: z.ZodNullable<z.ZodNumber>;
3400
+ dateValue: z.ZodNullable<z.ZodDate>;
3401
+ entityId: z.ZodString;
3402
+ attributeId: z.ZodString;
3403
+ }, "strip", z.ZodTypeAny, {
3404
+ id: string;
3405
+ createdAt: Date;
3406
+ updatedAt: Date;
3407
+ deletedAt: Date | null;
3408
+ entityId: string;
3409
+ attributeId: string;
3410
+ textValue: string | null;
3411
+ booleanValue: boolean | null;
3412
+ numberValue: number | null;
3413
+ dateValue: Date | null;
3414
+ }, {
3415
+ id: string;
3416
+ createdAt: Date;
3417
+ updatedAt: Date;
3418
+ deletedAt: Date | null;
3419
+ entityId: string;
3420
+ attributeId: string;
3421
+ textValue: string | null;
3422
+ booleanValue: boolean | null;
3423
+ numberValue: number | null;
3424
+ dateValue: Date | null;
3425
+ }>, "many">>>;
3286
3426
  }, "strip", z.ZodTypeAny, {
3427
+ type: string;
3287
3428
  id: string;
3288
3429
  disposition: string | null;
3289
3430
  createdAt: Date;
3290
3431
  updatedAt: Date;
3291
3432
  deletedAt: Date | null;
3433
+ categories: {
3434
+ id: string;
3435
+ value: string;
3436
+ createdAt: Date;
3437
+ updatedAt: Date;
3438
+ deletedAt: Date | null;
3439
+ level: 2 | 1 | 3;
3440
+ parentId: string | null;
3441
+ childCategoryList: {
3442
+ id: string;
3443
+ value: string;
3444
+ level: 2 | 1 | 3;
3445
+ parentId: string | null;
3446
+ childCategoryList: {
3447
+ id: string;
3448
+ value: string;
3449
+ level: 2 | 1 | 3;
3450
+ parentId: string | null;
3451
+ childCategoryList: any[];
3452
+ }[];
3453
+ }[];
3454
+ }[];
3292
3455
  tags: {
3293
3456
  id: string;
3294
3457
  name: string;
@@ -3299,12 +3462,47 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
3299
3462
  callFrom: string | null;
3300
3463
  callTo: string | null;
3301
3464
  note: string | null;
3465
+ customFields?: {
3466
+ id: string;
3467
+ createdAt: Date;
3468
+ updatedAt: Date;
3469
+ deletedAt: Date | null;
3470
+ entityId: string;
3471
+ attributeId: string;
3472
+ textValue: string | null;
3473
+ booleanValue: boolean | null;
3474
+ numberValue: number | null;
3475
+ dateValue: Date | null;
3476
+ }[] | null | undefined;
3302
3477
  }, {
3478
+ type: string;
3303
3479
  id: string;
3304
3480
  disposition: string | null;
3305
3481
  createdAt: Date;
3306
3482
  updatedAt: Date;
3307
3483
  deletedAt: Date | null;
3484
+ categories: {
3485
+ id: string;
3486
+ value: string;
3487
+ createdAt: Date;
3488
+ updatedAt: Date;
3489
+ deletedAt: Date | null;
3490
+ level: 2 | 1 | 3;
3491
+ parentId: string | null;
3492
+ childCategoryList: {
3493
+ id: string;
3494
+ value: string;
3495
+ level: 2 | 1 | 3;
3496
+ parentId: string | null;
3497
+ childCategoryList: {
3498
+ id: string;
3499
+ value: string;
3500
+ level: 2 | 1 | 3;
3501
+ parentId: string | null;
3502
+ childCategoryList: any[];
3503
+ }[];
3504
+ }[];
3505
+ }[];
3308
3506
  tags: {
3309
3507
  id: string;
3310
3508
  name: string;
@@ -3315,6 +3513,18 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
3315
3513
  callFrom: string | null;
3316
3514
  callTo: string | null;
3317
3515
  note: string | null;
3516
+ customFields?: {
3517
+ id: string;
3518
+ createdAt: Date;
3519
+ updatedAt: Date;
3520
+ deletedAt: Date | null;
3521
+ entityId: string;
3522
+ attributeId: string;
3523
+ textValue: string | null;
3524
+ booleanValue: boolean | null;
3525
+ numberValue: number | null;
3526
+ dateValue: Date | null;
3527
+ }[] | null | undefined;
3318
3528
  }>>;
3319
3529
  }, "strip", z.ZodTypeAny, {
3320
3530
  id: string;
@@ -3333,11 +3543,34 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
3333
3543
  handledTime: number | null;
3334
3544
  firstResponseTime: number | null;
3335
3545
  wrapUpForm: {
3546
+ type: string;
3336
3547
  id: string;
3337
3548
  disposition: string | null;
3338
3549
  createdAt: Date;
3339
3550
  updatedAt: Date;
3340
3551
  deletedAt: Date | null;
3552
+ categories: {
3553
+ id: string;
3554
+ value: string;
3555
+ createdAt: Date;
3556
+ updatedAt: Date;
3557
+ deletedAt: Date | null;
3558
+ level: 2 | 1 | 3;
3559
+ parentId: string | null;
3560
+ childCategoryList: {
3561
+ id: string;
3562
+ value: string;
3563
+ level: 2 | 1 | 3;
3564
+ parentId: string | null;
3565
+ childCategoryList: {
3566
+ id: string;
3567
+ value: string;
3568
+ level: 2 | 1 | 3;
3569
+ parentId: string | null;
3570
+ childCategoryList: any[];
3571
+ }[];
3572
+ }[];
3573
+ }[];
3341
3574
  tags: {
3342
3575
  id: string;
3343
3576
  name: string;
@@ -3348,6 +3581,18 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
3348
3581
  callFrom: string | null;
3349
3582
  callTo: string | null;
3350
3583
  note: string | null;
3584
+ customFields?: {
3585
+ id: string;
3586
+ createdAt: Date;
3587
+ updatedAt: Date;
3588
+ deletedAt: Date | null;
3589
+ entityId: string;
3590
+ attributeId: string;
3591
+ textValue: string | null;
3592
+ booleanValue: boolean | null;
3593
+ numberValue: number | null;
3594
+ dateValue: Date | null;
3595
+ }[] | null | undefined;
3351
3596
  } | null;
3352
3597
  }, {
3353
3598
  id: string;
@@ -3366,11 +3611,34 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
3366
3611
  handledTime: number | null;
3367
3612
  firstResponseTime: number | null;
3368
3613
  wrapUpForm: {
3614
+ type: string;
3369
3615
  id: string;
3370
3616
  disposition: string | null;
3371
3617
  createdAt: Date;
3372
3618
  updatedAt: Date;
3373
3619
  deletedAt: Date | null;
3620
+ categories: {
3621
+ id: string;
3622
+ value: string;
3623
+ createdAt: Date;
3624
+ updatedAt: Date;
3625
+ deletedAt: Date | null;
3626
+ level: 2 | 1 | 3;
3627
+ parentId: string | null;
3628
+ childCategoryList: {
3629
+ id: string;
3630
+ value: string;
3631
+ level: 2 | 1 | 3;
3632
+ parentId: string | null;
3633
+ childCategoryList: {
3634
+ id: string;
3635
+ value: string;
3636
+ level: 2 | 1 | 3;
3637
+ parentId: string | null;
3638
+ childCategoryList: any[];
3639
+ }[];
3640
+ }[];
3641
+ }[];
3374
3642
  tags: {
3375
3643
  id: string;
3376
3644
  name: string;
@@ -3381,18 +3649,30 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
3381
3649
  callFrom: string | null;
3382
3650
  callTo: string | null;
3383
3651
  note: string | null;
3652
+ customFields?: {
3653
+ id: string;
3654
+ createdAt: Date;
3655
+ updatedAt: Date;
3656
+ deletedAt: Date | null;
3657
+ entityId: string;
3658
+ attributeId: string;
3659
+ textValue: string | null;
3660
+ booleanValue: boolean | null;
3661
+ numberValue: number | null;
3662
+ dateValue: Date | null;
3663
+ }[] | null | undefined;
3384
3664
  } | null;
3385
3665
  }>;
3386
3666
  }, "strip", z.ZodTypeAny, {
3387
3667
  id: string;
3388
3668
  channel: {
3389
- type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
3669
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat";
3390
3670
  id: string;
3391
3671
  name: string;
3392
3672
  metadata: {
3393
3673
  id: string;
3394
3674
  name: string;
3395
- accessToken: string;
3675
+ accessToken?: string | undefined;
3396
3676
  channelSecret?: string | undefined;
3397
3677
  additionalCredentials?: any;
3398
3678
  };
@@ -3506,7 +3786,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
3506
3786
  firstResponseAt: Date;
3507
3787
  isLatest: boolean;
3508
3788
  platformContact: {
3509
- type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
3789
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat";
3510
3790
  id: string;
3511
3791
  metadata: {
3512
3792
  id: string;
@@ -3680,11 +3960,34 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
3680
3960
  handledTime: number | null;
3681
3961
  firstResponseTime: number | null;
3682
3962
  wrapUpForm: {
3963
+ type: string;
3683
3964
  id: string;
3684
3965
  disposition: string | null;
3685
3966
  createdAt: Date;
3686
3967
  updatedAt: Date;
3687
3968
  deletedAt: Date | null;
3969
+ categories: {
3970
+ id: string;
3971
+ value: string;
3972
+ createdAt: Date;
3973
+ updatedAt: Date;
3974
+ deletedAt: Date | null;
3975
+ level: 2 | 1 | 3;
3976
+ parentId: string | null;
3977
+ childCategoryList: {
3978
+ id: string;
3979
+ value: string;
3980
+ level: 2 | 1 | 3;
3981
+ parentId: string | null;
3982
+ childCategoryList: {
3983
+ id: string;
3984
+ value: string;
3985
+ level: 2 | 1 | 3;
3986
+ parentId: string | null;
3987
+ childCategoryList: any[];
3988
+ }[];
3989
+ }[];
3990
+ }[];
3688
3991
  tags: {
3689
3992
  id: string;
3690
3993
  name: string;
@@ -3695,18 +3998,30 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
3695
3998
  callFrom: string | null;
3696
3999
  callTo: string | null;
3697
4000
  note: string | null;
4001
+ customFields?: {
4002
+ id: string;
4003
+ createdAt: Date;
4004
+ updatedAt: Date;
4005
+ deletedAt: Date | null;
4006
+ entityId: string;
4007
+ attributeId: string;
4008
+ textValue: string | null;
4009
+ booleanValue: boolean | null;
4010
+ numberValue: number | null;
4011
+ dateValue: Date | null;
4012
+ }[] | null | undefined;
3698
4013
  } | null;
3699
4014
  };
3700
4015
  }, {
3701
4016
  id: string;
3702
4017
  channel: {
3703
- type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
4018
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat";
3704
4019
  id: string;
3705
4020
  name: string;
3706
4021
  metadata: {
3707
4022
  id: string;
3708
4023
  name: string;
3709
- accessToken: string;
4024
+ accessToken?: string | undefined;
3710
4025
  channelSecret?: string | undefined;
3711
4026
  additionalCredentials?: any;
3712
4027
  };
@@ -3820,7 +4135,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
3820
4135
  firstResponseAt: Date;
3821
4136
  isLatest: boolean;
3822
4137
  platformContact: {
3823
- type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
4138
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat";
3824
4139
  id: string;
3825
4140
  metadata: {
3826
4141
  id: string;
@@ -3994,11 +4309,34 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
3994
4309
  handledTime: number | null;
3995
4310
  firstResponseTime: number | null;
3996
4311
  wrapUpForm: {
4312
+ type: string;
3997
4313
  id: string;
3998
4314
  disposition: string | null;
3999
4315
  createdAt: Date;
4000
4316
  updatedAt: Date;
4001
4317
  deletedAt: Date | null;
4318
+ categories: {
4319
+ id: string;
4320
+ value: string;
4321
+ createdAt: Date;
4322
+ updatedAt: Date;
4323
+ deletedAt: Date | null;
4324
+ level: 2 | 1 | 3;
4325
+ parentId: string | null;
4326
+ childCategoryList: {
4327
+ id: string;
4328
+ value: string;
4329
+ level: 2 | 1 | 3;
4330
+ parentId: string | null;
4331
+ childCategoryList: {
4332
+ id: string;
4333
+ value: string;
4334
+ level: 2 | 1 | 3;
4335
+ parentId: string | null;
4336
+ childCategoryList: any[];
4337
+ }[];
4338
+ }[];
4339
+ }[];
4002
4340
  tags: {
4003
4341
  id: string;
4004
4342
  name: string;
@@ -4009,6 +4347,18 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
4009
4347
  callFrom: string | null;
4010
4348
  callTo: string | null;
4011
4349
  note: string | null;
4350
+ customFields?: {
4351
+ id: string;
4352
+ createdAt: Date;
4353
+ updatedAt: Date;
4354
+ deletedAt: Date | null;
4355
+ entityId: string;
4356
+ attributeId: string;
4357
+ textValue: string | null;
4358
+ booleanValue: boolean | null;
4359
+ numberValue: number | null;
4360
+ dateValue: Date | null;
4361
+ }[] | null | undefined;
4012
4362
  } | null;
4013
4363
  };
4014
4364
  }>;
@@ -5760,13 +6110,13 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
5760
6110
  room: {
5761
6111
  id: string;
5762
6112
  channel: {
5763
- type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
6113
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat";
5764
6114
  id: string;
5765
6115
  name: string;
5766
6116
  metadata: {
5767
6117
  id: string;
5768
6118
  name: string;
5769
- accessToken: string;
6119
+ accessToken?: string | undefined;
5770
6120
  channelSecret?: string | undefined;
5771
6121
  additionalCredentials?: any;
5772
6122
  };
@@ -5880,7 +6230,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
5880
6230
  firstResponseAt: Date;
5881
6231
  isLatest: boolean;
5882
6232
  platformContact: {
5883
- type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
6233
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat";
5884
6234
  id: string;
5885
6235
  metadata: {
5886
6236
  id: string;
@@ -6054,11 +6404,34 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
6054
6404
  handledTime: number | null;
6055
6405
  firstResponseTime: number | null;
6056
6406
  wrapUpForm: {
6407
+ type: string;
6057
6408
  id: string;
6058
6409
  disposition: string | null;
6059
6410
  createdAt: Date;
6060
6411
  updatedAt: Date;
6061
6412
  deletedAt: Date | null;
6413
+ categories: {
6414
+ id: string;
6415
+ value: string;
6416
+ createdAt: Date;
6417
+ updatedAt: Date;
6418
+ deletedAt: Date | null;
6419
+ level: 2 | 1 | 3;
6420
+ parentId: string | null;
6421
+ childCategoryList: {
6422
+ id: string;
6423
+ value: string;
6424
+ level: 2 | 1 | 3;
6425
+ parentId: string | null;
6426
+ childCategoryList: {
6427
+ id: string;
6428
+ value: string;
6429
+ level: 2 | 1 | 3;
6430
+ parentId: string | null;
6431
+ childCategoryList: any[];
6432
+ }[];
6433
+ }[];
6434
+ }[];
6062
6435
  tags: {
6063
6436
  id: string;
6064
6437
  name: string;
@@ -6069,6 +6442,18 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
6069
6442
  callFrom: string | null;
6070
6443
  callTo: string | null;
6071
6444
  note: string | null;
6445
+ customFields?: {
6446
+ id: string;
6447
+ createdAt: Date;
6448
+ updatedAt: Date;
6449
+ deletedAt: Date | null;
6450
+ entityId: string;
6451
+ attributeId: string;
6452
+ textValue: string | null;
6453
+ booleanValue: boolean | null;
6454
+ numberValue: number | null;
6455
+ dateValue: Date | null;
6456
+ }[] | null | undefined;
6072
6457
  } | null;
6073
6458
  };
6074
6459
  };
@@ -6400,13 +6785,13 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
6400
6785
  room: {
6401
6786
  id: string;
6402
6787
  channel: {
6403
- type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
6788
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat";
6404
6789
  id: string;
6405
6790
  name: string;
6406
6791
  metadata: {
6407
6792
  id: string;
6408
6793
  name: string;
6409
- accessToken: string;
6794
+ accessToken?: string | undefined;
6410
6795
  channelSecret?: string | undefined;
6411
6796
  additionalCredentials?: any;
6412
6797
  };
@@ -6520,7 +6905,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
6520
6905
  firstResponseAt: Date;
6521
6906
  isLatest: boolean;
6522
6907
  platformContact: {
6523
- type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
6908
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat";
6524
6909
  id: string;
6525
6910
  metadata: {
6526
6911
  id: string;
@@ -6694,11 +7079,34 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
6694
7079
  handledTime: number | null;
6695
7080
  firstResponseTime: number | null;
6696
7081
  wrapUpForm: {
7082
+ type: string;
6697
7083
  id: string;
6698
7084
  disposition: string | null;
6699
7085
  createdAt: Date;
6700
7086
  updatedAt: Date;
6701
7087
  deletedAt: Date | null;
7088
+ categories: {
7089
+ id: string;
7090
+ value: string;
7091
+ createdAt: Date;
7092
+ updatedAt: Date;
7093
+ deletedAt: Date | null;
7094
+ level: 2 | 1 | 3;
7095
+ parentId: string | null;
7096
+ childCategoryList: {
7097
+ id: string;
7098
+ value: string;
7099
+ level: 2 | 1 | 3;
7100
+ parentId: string | null;
7101
+ childCategoryList: {
7102
+ id: string;
7103
+ value: string;
7104
+ level: 2 | 1 | 3;
7105
+ parentId: string | null;
7106
+ childCategoryList: any[];
7107
+ }[];
7108
+ }[];
7109
+ }[];
6702
7110
  tags: {
6703
7111
  id: string;
6704
7112
  name: string;
@@ -6709,6 +7117,18 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
6709
7117
  callFrom: string | null;
6710
7118
  callTo: string | null;
6711
7119
  note: string | null;
7120
+ customFields?: {
7121
+ id: string;
7122
+ createdAt: Date;
7123
+ updatedAt: Date;
7124
+ deletedAt: Date | null;
7125
+ entityId: string;
7126
+ attributeId: string;
7127
+ textValue: string | null;
7128
+ booleanValue: boolean | null;
7129
+ numberValue: number | null;
7130
+ dateValue: Date | null;
7131
+ }[] | null | undefined;
6712
7132
  } | null;
6713
7133
  };
6714
7134
  };
@@ -7042,13 +7462,13 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
7042
7462
  room: {
7043
7463
  id: string;
7044
7464
  channel: {
7045
- type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
7465
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat";
7046
7466
  id: string;
7047
7467
  name: string;
7048
7468
  metadata: {
7049
7469
  id: string;
7050
7470
  name: string;
7051
- accessToken: string;
7471
+ accessToken?: string | undefined;
7052
7472
  channelSecret?: string | undefined;
7053
7473
  additionalCredentials?: any;
7054
7474
  };
@@ -7162,7 +7582,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
7162
7582
  firstResponseAt: Date;
7163
7583
  isLatest: boolean;
7164
7584
  platformContact: {
7165
- type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
7585
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat";
7166
7586
  id: string;
7167
7587
  metadata: {
7168
7588
  id: string;
@@ -7336,11 +7756,34 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
7336
7756
  handledTime: number | null;
7337
7757
  firstResponseTime: number | null;
7338
7758
  wrapUpForm: {
7759
+ type: string;
7339
7760
  id: string;
7340
7761
  disposition: string | null;
7341
7762
  createdAt: Date;
7342
7763
  updatedAt: Date;
7343
7764
  deletedAt: Date | null;
7765
+ categories: {
7766
+ id: string;
7767
+ value: string;
7768
+ createdAt: Date;
7769
+ updatedAt: Date;
7770
+ deletedAt: Date | null;
7771
+ level: 2 | 1 | 3;
7772
+ parentId: string | null;
7773
+ childCategoryList: {
7774
+ id: string;
7775
+ value: string;
7776
+ level: 2 | 1 | 3;
7777
+ parentId: string | null;
7778
+ childCategoryList: {
7779
+ id: string;
7780
+ value: string;
7781
+ level: 2 | 1 | 3;
7782
+ parentId: string | null;
7783
+ childCategoryList: any[];
7784
+ }[];
7785
+ }[];
7786
+ }[];
7344
7787
  tags: {
7345
7788
  id: string;
7346
7789
  name: string;
@@ -7351,6 +7794,18 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
7351
7794
  callFrom: string | null;
7352
7795
  callTo: string | null;
7353
7796
  note: string | null;
7797
+ customFields?: {
7798
+ id: string;
7799
+ createdAt: Date;
7800
+ updatedAt: Date;
7801
+ deletedAt: Date | null;
7802
+ entityId: string;
7803
+ attributeId: string;
7804
+ textValue: string | null;
7805
+ booleanValue: boolean | null;
7806
+ numberValue: number | null;
7807
+ dateValue: Date | null;
7808
+ }[] | null | undefined;
7354
7809
  } | null;
7355
7810
  };
7356
7811
  };
@@ -7685,13 +8140,13 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
7685
8140
  room: {
7686
8141
  id: string;
7687
8142
  channel: {
7688
- type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
8143
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat";
7689
8144
  id: string;
7690
8145
  name: string;
7691
8146
  metadata: {
7692
8147
  id: string;
7693
8148
  name: string;
7694
- accessToken: string;
8149
+ accessToken?: string | undefined;
7695
8150
  channelSecret?: string | undefined;
7696
8151
  additionalCredentials?: any;
7697
8152
  };
@@ -7805,7 +8260,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
7805
8260
  firstResponseAt: Date;
7806
8261
  isLatest: boolean;
7807
8262
  platformContact: {
7808
- type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
8263
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat";
7809
8264
  id: string;
7810
8265
  metadata: {
7811
8266
  id: string;
@@ -7979,21 +8434,56 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
7979
8434
  handledTime: number | null;
7980
8435
  firstResponseTime: number | null;
7981
8436
  wrapUpForm: {
8437
+ type: string;
7982
8438
  id: string;
7983
8439
  disposition: string | null;
7984
8440
  createdAt: Date;
7985
8441
  updatedAt: Date;
7986
8442
  deletedAt: Date | null;
7987
- tags: {
8443
+ categories: {
7988
8444
  id: string;
7989
- name: string;
8445
+ value: string;
7990
8446
  createdAt: Date;
7991
8447
  updatedAt: Date;
7992
8448
  deletedAt: Date | null;
7993
- }[];
7994
- callFrom: string | null;
7995
- callTo: string | null;
8449
+ level: 2 | 1 | 3;
8450
+ parentId: string | null;
8451
+ childCategoryList: {
8452
+ id: string;
8453
+ value: string;
8454
+ level: 2 | 1 | 3;
8455
+ parentId: string | null;
8456
+ childCategoryList: {
8457
+ id: string;
8458
+ value: string;
8459
+ level: 2 | 1 | 3;
8460
+ parentId: string | null;
8461
+ childCategoryList: any[];
8462
+ }[];
8463
+ }[];
8464
+ }[];
8465
+ tags: {
8466
+ id: string;
8467
+ name: string;
8468
+ createdAt: Date;
8469
+ updatedAt: Date;
8470
+ deletedAt: Date | null;
8471
+ }[];
8472
+ callFrom: string | null;
8473
+ callTo: string | null;
7996
8474
  note: string | null;
8475
+ customFields?: {
8476
+ id: string;
8477
+ createdAt: Date;
8478
+ updatedAt: Date;
8479
+ deletedAt: Date | null;
8480
+ entityId: string;
8481
+ attributeId: string;
8482
+ textValue: string | null;
8483
+ booleanValue: boolean | null;
8484
+ numberValue: number | null;
8485
+ dateValue: Date | null;
8486
+ }[] | null | undefined;
7997
8487
  } | null;
7998
8488
  };
7999
8489
  };
@@ -8220,23 +8710,23 @@ export declare const ChannelServiceResponseSchema: z.ZodObject<{
8220
8710
  data: z.ZodObject<{
8221
8711
  id: z.ZodString;
8222
8712
  name: z.ZodString;
8223
- type: z.ZodEnum<["whatsapp", "messenger", "telegram", "instagram", "line", "viber", "kakao", "shopee", "lazada"]>;
8713
+ type: z.ZodEnum<["whatsapp", "messenger", "telegram", "instagram", "line", "viber", "kakao", "shopee", "lazada", "webchat"]>;
8224
8714
  metadata: z.ZodObject<{
8225
8715
  id: z.ZodString;
8226
8716
  name: z.ZodString;
8227
- accessToken: z.ZodString;
8717
+ accessToken: z.ZodOptional<z.ZodString>;
8228
8718
  channelSecret: z.ZodOptional<z.ZodString>;
8229
8719
  additionalCredentials: z.ZodOptional<z.ZodAny>;
8230
8720
  }, "strip", z.ZodTypeAny, {
8231
8721
  id: string;
8232
8722
  name: string;
8233
- accessToken: string;
8723
+ accessToken?: string | undefined;
8234
8724
  channelSecret?: string | undefined;
8235
8725
  additionalCredentials?: any;
8236
8726
  }, {
8237
8727
  id: string;
8238
8728
  name: string;
8239
- accessToken: string;
8729
+ accessToken?: string | undefined;
8240
8730
  channelSecret?: string | undefined;
8241
8731
  additionalCredentials?: any;
8242
8732
  }>;
@@ -8265,13 +8755,13 @@ export declare const ChannelServiceResponseSchema: z.ZodObject<{
8265
8755
  phone: string | null;
8266
8756
  }>>;
8267
8757
  }, "strip", z.ZodTypeAny, {
8268
- type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
8758
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat";
8269
8759
  id: string;
8270
8760
  name: string;
8271
8761
  metadata: {
8272
8762
  id: string;
8273
8763
  name: string;
8274
- accessToken: string;
8764
+ accessToken?: string | undefined;
8275
8765
  channelSecret?: string | undefined;
8276
8766
  additionalCredentials?: any;
8277
8767
  };
@@ -8288,13 +8778,13 @@ export declare const ChannelServiceResponseSchema: z.ZodObject<{
8288
8778
  phone: string | null;
8289
8779
  } | undefined;
8290
8780
  }, {
8291
- type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
8781
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat";
8292
8782
  id: string;
8293
8783
  name: string;
8294
8784
  metadata: {
8295
8785
  id: string;
8296
8786
  name: string;
8297
- accessToken: string;
8787
+ accessToken?: string | undefined;
8298
8788
  channelSecret?: string | undefined;
8299
8789
  additionalCredentials?: any;
8300
8790
  };
@@ -8313,13 +8803,13 @@ export declare const ChannelServiceResponseSchema: z.ZodObject<{
8313
8803
  }>;
8314
8804
  }, "strip", z.ZodTypeAny, {
8315
8805
  data: {
8316
- type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
8806
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat";
8317
8807
  id: string;
8318
8808
  name: string;
8319
8809
  metadata: {
8320
8810
  id: string;
8321
8811
  name: string;
8322
- accessToken: string;
8812
+ accessToken?: string | undefined;
8323
8813
  channelSecret?: string | undefined;
8324
8814
  additionalCredentials?: any;
8325
8815
  };
@@ -8339,13 +8829,13 @@ export declare const ChannelServiceResponseSchema: z.ZodObject<{
8339
8829
  requestId: string;
8340
8830
  }, {
8341
8831
  data: {
8342
- type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
8832
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat";
8343
8833
  id: string;
8344
8834
  name: string;
8345
8835
  metadata: {
8346
8836
  id: string;
8347
8837
  name: string;
8348
- accessToken: string;
8838
+ accessToken?: string | undefined;
8349
8839
  channelSecret?: string | undefined;
8350
8840
  additionalCredentials?: any;
8351
8841
  };
@@ -8402,7 +8892,7 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
8402
8892
  deletedAt: z.ZodNullable<z.ZodString>;
8403
8893
  channelId: z.ZodString;
8404
8894
  socialPlatformId: z.ZodString;
8405
- type: z.ZodEnum<["whatsapp", "messenger", "telegram", "instagram", "line", "viber", "kakao", "shopee", "lazada"]>;
8895
+ type: z.ZodEnum<["whatsapp", "messenger", "telegram", "instagram", "line", "viber", "kakao", "shopee", "lazada", "webchat"]>;
8406
8896
  metadata: z.ZodObject<{
8407
8897
  id: z.ZodString;
8408
8898
  name: z.ZodString;
@@ -9107,7 +9597,7 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
9107
9597
  }[] | undefined;
9108
9598
  }>;
9109
9599
  }, "strip", z.ZodTypeAny, {
9110
- type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
9600
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat";
9111
9601
  id: string;
9112
9602
  metadata: {
9113
9603
  id: string;
@@ -9218,7 +9708,7 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
9218
9708
  channelId: string;
9219
9709
  socialPlatformId: string;
9220
9710
  }, {
9221
- type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
9711
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat";
9222
9712
  id: string;
9223
9713
  metadata: {
9224
9714
  id: string;
@@ -9740,23 +10230,23 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
9740
10230
  channel: z.ZodOptional<z.ZodObject<{
9741
10231
  id: z.ZodString;
9742
10232
  name: z.ZodString;
9743
- type: z.ZodEnum<["whatsapp", "messenger", "telegram", "instagram", "line", "viber", "kakao", "shopee", "lazada"]>;
10233
+ type: z.ZodEnum<["whatsapp", "messenger", "telegram", "instagram", "line", "viber", "kakao", "shopee", "lazada", "webchat"]>;
9744
10234
  metadata: z.ZodObject<{
9745
10235
  id: z.ZodString;
9746
10236
  name: z.ZodString;
9747
- accessToken: z.ZodString;
10237
+ accessToken: z.ZodOptional<z.ZodString>;
9748
10238
  channelSecret: z.ZodOptional<z.ZodString>;
9749
10239
  additionalCredentials: z.ZodOptional<z.ZodAny>;
9750
10240
  }, "strip", z.ZodTypeAny, {
9751
10241
  id: string;
9752
10242
  name: string;
9753
- accessToken: string;
10243
+ accessToken?: string | undefined;
9754
10244
  channelSecret?: string | undefined;
9755
10245
  additionalCredentials?: any;
9756
10246
  }, {
9757
10247
  id: string;
9758
10248
  name: string;
9759
- accessToken: string;
10249
+ accessToken?: string | undefined;
9760
10250
  channelSecret?: string | undefined;
9761
10251
  additionalCredentials?: any;
9762
10252
  }>;
@@ -9785,13 +10275,13 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
9785
10275
  phone: string | null;
9786
10276
  }>>;
9787
10277
  }, "strip", z.ZodTypeAny, {
9788
- type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
10278
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat";
9789
10279
  id: string;
9790
10280
  name: string;
9791
10281
  metadata: {
9792
10282
  id: string;
9793
10283
  name: string;
9794
- accessToken: string;
10284
+ accessToken?: string | undefined;
9795
10285
  channelSecret?: string | undefined;
9796
10286
  additionalCredentials?: any;
9797
10287
  };
@@ -9808,13 +10298,13 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
9808
10298
  phone: string | null;
9809
10299
  } | undefined;
9810
10300
  }, {
9811
- type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
10301
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat";
9812
10302
  id: string;
9813
10303
  name: string;
9814
10304
  metadata: {
9815
10305
  id: string;
9816
10306
  name: string;
9817
- accessToken: string;
10307
+ accessToken?: string | undefined;
9818
10308
  channelSecret?: string | undefined;
9819
10309
  additionalCredentials?: any;
9820
10310
  };
@@ -9854,8 +10344,7 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
9854
10344
  deletedAt: z.ZodNullable<z.ZodDate>;
9855
10345
  note: z.ZodNullable<z.ZodString>;
9856
10346
  disposition: z.ZodNullable<z.ZodString>;
9857
- callFrom: z.ZodNullable<z.ZodString>;
9858
- callTo: z.ZodNullable<z.ZodString>;
10347
+ type: z.ZodString;
9859
10348
  tags: z.ZodArray<z.ZodObject<{
9860
10349
  id: z.ZodString;
9861
10350
  createdAt: z.ZodDate;
@@ -9875,12 +10364,171 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
9875
10364
  updatedAt: Date;
9876
10365
  deletedAt: Date | null;
9877
10366
  }>, "many">;
10367
+ categories: z.ZodArray<z.ZodObject<{
10368
+ id: z.ZodString;
10369
+ createdAt: z.ZodDate;
10370
+ updatedAt: z.ZodDate;
10371
+ deletedAt: z.ZodNullable<z.ZodDate>;
10372
+ value: z.ZodString;
10373
+ level: z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
10374
+ parentId: z.ZodNullable<z.ZodString>;
10375
+ childCategoryList: z.ZodArray<z.ZodObject<{
10376
+ id: z.ZodString;
10377
+ value: z.ZodString;
10378
+ level: z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
10379
+ parentId: z.ZodNullable<z.ZodString>;
10380
+ childCategoryList: z.ZodArray<z.ZodObject<{
10381
+ id: z.ZodString;
10382
+ value: z.ZodString;
10383
+ level: z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
10384
+ parentId: z.ZodNullable<z.ZodString>;
10385
+ childCategoryList: z.ZodArray<z.ZodAny, "many">;
10386
+ }, "strip", z.ZodTypeAny, {
10387
+ id: string;
10388
+ value: string;
10389
+ level: 2 | 1 | 3;
10390
+ parentId: string | null;
10391
+ childCategoryList: any[];
10392
+ }, {
10393
+ id: string;
10394
+ value: string;
10395
+ level: 2 | 1 | 3;
10396
+ parentId: string | null;
10397
+ childCategoryList: any[];
10398
+ }>, "many">;
10399
+ }, "strip", z.ZodTypeAny, {
10400
+ id: string;
10401
+ value: string;
10402
+ level: 2 | 1 | 3;
10403
+ parentId: string | null;
10404
+ childCategoryList: {
10405
+ id: string;
10406
+ value: string;
10407
+ level: 2 | 1 | 3;
10408
+ parentId: string | null;
10409
+ childCategoryList: any[];
10410
+ }[];
10411
+ }, {
10412
+ id: string;
10413
+ value: string;
10414
+ level: 2 | 1 | 3;
10415
+ parentId: string | null;
10416
+ childCategoryList: {
10417
+ id: string;
10418
+ value: string;
10419
+ level: 2 | 1 | 3;
10420
+ parentId: string | null;
10421
+ childCategoryList: any[];
10422
+ }[];
10423
+ }>, "many">;
10424
+ }, "strip", z.ZodTypeAny, {
10425
+ id: string;
10426
+ value: string;
10427
+ createdAt: Date;
10428
+ updatedAt: Date;
10429
+ deletedAt: Date | null;
10430
+ level: 2 | 1 | 3;
10431
+ parentId: string | null;
10432
+ childCategoryList: {
10433
+ id: string;
10434
+ value: string;
10435
+ level: 2 | 1 | 3;
10436
+ parentId: string | null;
10437
+ childCategoryList: {
10438
+ id: string;
10439
+ value: string;
10440
+ level: 2 | 1 | 3;
10441
+ parentId: string | null;
10442
+ childCategoryList: any[];
10443
+ }[];
10444
+ }[];
10445
+ }, {
10446
+ id: string;
10447
+ value: string;
10448
+ createdAt: Date;
10449
+ updatedAt: Date;
10450
+ deletedAt: Date | null;
10451
+ level: 2 | 1 | 3;
10452
+ parentId: string | null;
10453
+ childCategoryList: {
10454
+ id: string;
10455
+ value: string;
10456
+ level: 2 | 1 | 3;
10457
+ parentId: string | null;
10458
+ childCategoryList: {
10459
+ id: string;
10460
+ value: string;
10461
+ level: 2 | 1 | 3;
10462
+ parentId: string | null;
10463
+ childCategoryList: any[];
10464
+ }[];
10465
+ }[];
10466
+ }>, "many">;
10467
+ callFrom: z.ZodNullable<z.ZodString>;
10468
+ callTo: z.ZodNullable<z.ZodString>;
10469
+ customFields: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
10470
+ id: z.ZodString;
10471
+ createdAt: z.ZodDate;
10472
+ updatedAt: z.ZodDate;
10473
+ deletedAt: z.ZodNullable<z.ZodDate>;
10474
+ textValue: z.ZodNullable<z.ZodString>;
10475
+ booleanValue: z.ZodNullable<z.ZodBoolean>;
10476
+ numberValue: z.ZodNullable<z.ZodNumber>;
10477
+ dateValue: z.ZodNullable<z.ZodDate>;
10478
+ entityId: z.ZodString;
10479
+ attributeId: z.ZodString;
10480
+ }, "strip", z.ZodTypeAny, {
10481
+ id: string;
10482
+ createdAt: Date;
10483
+ updatedAt: Date;
10484
+ deletedAt: Date | null;
10485
+ entityId: string;
10486
+ attributeId: string;
10487
+ textValue: string | null;
10488
+ booleanValue: boolean | null;
10489
+ numberValue: number | null;
10490
+ dateValue: Date | null;
10491
+ }, {
10492
+ id: string;
10493
+ createdAt: Date;
10494
+ updatedAt: Date;
10495
+ deletedAt: Date | null;
10496
+ entityId: string;
10497
+ attributeId: string;
10498
+ textValue: string | null;
10499
+ booleanValue: boolean | null;
10500
+ numberValue: number | null;
10501
+ dateValue: Date | null;
10502
+ }>, "many">>>;
9878
10503
  }, "strip", z.ZodTypeAny, {
10504
+ type: string;
9879
10505
  id: string;
9880
10506
  disposition: string | null;
9881
10507
  createdAt: Date;
9882
10508
  updatedAt: Date;
9883
10509
  deletedAt: Date | null;
10510
+ categories: {
10511
+ id: string;
10512
+ value: string;
10513
+ createdAt: Date;
10514
+ updatedAt: Date;
10515
+ deletedAt: Date | null;
10516
+ level: 2 | 1 | 3;
10517
+ parentId: string | null;
10518
+ childCategoryList: {
10519
+ id: string;
10520
+ value: string;
10521
+ level: 2 | 1 | 3;
10522
+ parentId: string | null;
10523
+ childCategoryList: {
10524
+ id: string;
10525
+ value: string;
10526
+ level: 2 | 1 | 3;
10527
+ parentId: string | null;
10528
+ childCategoryList: any[];
10529
+ }[];
10530
+ }[];
10531
+ }[];
9884
10532
  tags: {
9885
10533
  id: string;
9886
10534
  name: string;
@@ -9891,12 +10539,47 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
9891
10539
  callFrom: string | null;
9892
10540
  callTo: string | null;
9893
10541
  note: string | null;
10542
+ customFields?: {
10543
+ id: string;
10544
+ createdAt: Date;
10545
+ updatedAt: Date;
10546
+ deletedAt: Date | null;
10547
+ entityId: string;
10548
+ attributeId: string;
10549
+ textValue: string | null;
10550
+ booleanValue: boolean | null;
10551
+ numberValue: number | null;
10552
+ dateValue: Date | null;
10553
+ }[] | null | undefined;
9894
10554
  }, {
10555
+ type: string;
9895
10556
  id: string;
9896
10557
  disposition: string | null;
9897
10558
  createdAt: Date;
9898
10559
  updatedAt: Date;
9899
10560
  deletedAt: Date | null;
10561
+ categories: {
10562
+ id: string;
10563
+ value: string;
10564
+ createdAt: Date;
10565
+ updatedAt: Date;
10566
+ deletedAt: Date | null;
10567
+ level: 2 | 1 | 3;
10568
+ parentId: string | null;
10569
+ childCategoryList: {
10570
+ id: string;
10571
+ value: string;
10572
+ level: 2 | 1 | 3;
10573
+ parentId: string | null;
10574
+ childCategoryList: {
10575
+ id: string;
10576
+ value: string;
10577
+ level: 2 | 1 | 3;
10578
+ parentId: string | null;
10579
+ childCategoryList: any[];
10580
+ }[];
10581
+ }[];
10582
+ }[];
9900
10583
  tags: {
9901
10584
  id: string;
9902
10585
  name: string;
@@ -9907,6 +10590,18 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
9907
10590
  callFrom: string | null;
9908
10591
  callTo: string | null;
9909
10592
  note: string | null;
10593
+ customFields?: {
10594
+ id: string;
10595
+ createdAt: Date;
10596
+ updatedAt: Date;
10597
+ deletedAt: Date | null;
10598
+ entityId: string;
10599
+ attributeId: string;
10600
+ textValue: string | null;
10601
+ booleanValue: boolean | null;
10602
+ numberValue: number | null;
10603
+ dateValue: Date | null;
10604
+ }[] | null | undefined;
9910
10605
  }>>;
9911
10606
  }, "strip", z.ZodTypeAny, {
9912
10607
  id: string;
@@ -9925,11 +10620,34 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
9925
10620
  handledTime: number | null;
9926
10621
  firstResponseTime: number | null;
9927
10622
  wrapUpForm: {
10623
+ type: string;
9928
10624
  id: string;
9929
10625
  disposition: string | null;
9930
10626
  createdAt: Date;
9931
10627
  updatedAt: Date;
9932
10628
  deletedAt: Date | null;
10629
+ categories: {
10630
+ id: string;
10631
+ value: string;
10632
+ createdAt: Date;
10633
+ updatedAt: Date;
10634
+ deletedAt: Date | null;
10635
+ level: 2 | 1 | 3;
10636
+ parentId: string | null;
10637
+ childCategoryList: {
10638
+ id: string;
10639
+ value: string;
10640
+ level: 2 | 1 | 3;
10641
+ parentId: string | null;
10642
+ childCategoryList: {
10643
+ id: string;
10644
+ value: string;
10645
+ level: 2 | 1 | 3;
10646
+ parentId: string | null;
10647
+ childCategoryList: any[];
10648
+ }[];
10649
+ }[];
10650
+ }[];
9933
10651
  tags: {
9934
10652
  id: string;
9935
10653
  name: string;
@@ -9940,6 +10658,18 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
9940
10658
  callFrom: string | null;
9941
10659
  callTo: string | null;
9942
10660
  note: string | null;
10661
+ customFields?: {
10662
+ id: string;
10663
+ createdAt: Date;
10664
+ updatedAt: Date;
10665
+ deletedAt: Date | null;
10666
+ entityId: string;
10667
+ attributeId: string;
10668
+ textValue: string | null;
10669
+ booleanValue: boolean | null;
10670
+ numberValue: number | null;
10671
+ dateValue: Date | null;
10672
+ }[] | null | undefined;
9943
10673
  } | null;
9944
10674
  }, {
9945
10675
  id: string;
@@ -9958,11 +10688,34 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
9958
10688
  handledTime: number | null;
9959
10689
  firstResponseTime: number | null;
9960
10690
  wrapUpForm: {
10691
+ type: string;
9961
10692
  id: string;
9962
10693
  disposition: string | null;
9963
10694
  createdAt: Date;
9964
10695
  updatedAt: Date;
9965
10696
  deletedAt: Date | null;
10697
+ categories: {
10698
+ id: string;
10699
+ value: string;
10700
+ createdAt: Date;
10701
+ updatedAt: Date;
10702
+ deletedAt: Date | null;
10703
+ level: 2 | 1 | 3;
10704
+ parentId: string | null;
10705
+ childCategoryList: {
10706
+ id: string;
10707
+ value: string;
10708
+ level: 2 | 1 | 3;
10709
+ parentId: string | null;
10710
+ childCategoryList: {
10711
+ id: string;
10712
+ value: string;
10713
+ level: 2 | 1 | 3;
10714
+ parentId: string | null;
10715
+ childCategoryList: any[];
10716
+ }[];
10717
+ }[];
10718
+ }[];
9966
10719
  tags: {
9967
10720
  id: string;
9968
10721
  name: string;
@@ -9973,6 +10726,18 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
9973
10726
  callFrom: string | null;
9974
10727
  callTo: string | null;
9975
10728
  note: string | null;
10729
+ customFields?: {
10730
+ id: string;
10731
+ createdAt: Date;
10732
+ updatedAt: Date;
10733
+ deletedAt: Date | null;
10734
+ entityId: string;
10735
+ attributeId: string;
10736
+ textValue: string | null;
10737
+ booleanValue: boolean | null;
10738
+ numberValue: number | null;
10739
+ dateValue: Date | null;
10740
+ }[] | null | undefined;
9976
10741
  } | null;
9977
10742
  }>>;
9978
10743
  }, "strip", z.ZodTypeAny, {
@@ -9989,7 +10754,7 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
9989
10754
  isLatest?: boolean | undefined;
9990
10755
  direction?: "incoming" | "outgoing" | "system" | undefined;
9991
10756
  platformContact?: {
9992
- type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
10757
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat";
9993
10758
  id: string;
9994
10759
  metadata: {
9995
10760
  id: string;
@@ -10189,13 +10954,13 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
10189
10954
  } | undefined;
10190
10955
  } | null | undefined;
10191
10956
  channel?: {
10192
- type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
10957
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat";
10193
10958
  id: string;
10194
10959
  name: string;
10195
10960
  metadata: {
10196
10961
  id: string;
10197
10962
  name: string;
10198
- accessToken: string;
10963
+ accessToken?: string | undefined;
10199
10964
  channelSecret?: string | undefined;
10200
10965
  additionalCredentials?: any;
10201
10966
  };
@@ -10229,11 +10994,34 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
10229
10994
  handledTime: number | null;
10230
10995
  firstResponseTime: number | null;
10231
10996
  wrapUpForm: {
10997
+ type: string;
10232
10998
  id: string;
10233
10999
  disposition: string | null;
10234
11000
  createdAt: Date;
10235
11001
  updatedAt: Date;
10236
11002
  deletedAt: Date | null;
11003
+ categories: {
11004
+ id: string;
11005
+ value: string;
11006
+ createdAt: Date;
11007
+ updatedAt: Date;
11008
+ deletedAt: Date | null;
11009
+ level: 2 | 1 | 3;
11010
+ parentId: string | null;
11011
+ childCategoryList: {
11012
+ id: string;
11013
+ value: string;
11014
+ level: 2 | 1 | 3;
11015
+ parentId: string | null;
11016
+ childCategoryList: {
11017
+ id: string;
11018
+ value: string;
11019
+ level: 2 | 1 | 3;
11020
+ parentId: string | null;
11021
+ childCategoryList: any[];
11022
+ }[];
11023
+ }[];
11024
+ }[];
10237
11025
  tags: {
10238
11026
  id: string;
10239
11027
  name: string;
@@ -10244,6 +11032,18 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
10244
11032
  callFrom: string | null;
10245
11033
  callTo: string | null;
10246
11034
  note: string | null;
11035
+ customFields?: {
11036
+ id: string;
11037
+ createdAt: Date;
11038
+ updatedAt: Date;
11039
+ deletedAt: Date | null;
11040
+ entityId: string;
11041
+ attributeId: string;
11042
+ textValue: string | null;
11043
+ booleanValue: boolean | null;
11044
+ numberValue: number | null;
11045
+ dateValue: Date | null;
11046
+ }[] | null | undefined;
10247
11047
  } | null;
10248
11048
  } | undefined;
10249
11049
  }, {
@@ -10260,7 +11060,7 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
10260
11060
  isLatest?: boolean | undefined;
10261
11061
  direction?: "incoming" | "outgoing" | "system" | undefined;
10262
11062
  platformContact?: {
10263
- type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
11063
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat";
10264
11064
  id: string;
10265
11065
  metadata: {
10266
11066
  id: string;
@@ -10460,13 +11260,13 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
10460
11260
  } | undefined;
10461
11261
  } | null | undefined;
10462
11262
  channel?: {
10463
- type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
11263
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat";
10464
11264
  id: string;
10465
11265
  name: string;
10466
11266
  metadata: {
10467
11267
  id: string;
10468
11268
  name: string;
10469
- accessToken: string;
11269
+ accessToken?: string | undefined;
10470
11270
  channelSecret?: string | undefined;
10471
11271
  additionalCredentials?: any;
10472
11272
  };
@@ -10500,11 +11300,34 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
10500
11300
  handledTime: number | null;
10501
11301
  firstResponseTime: number | null;
10502
11302
  wrapUpForm: {
11303
+ type: string;
10503
11304
  id: string;
10504
11305
  disposition: string | null;
10505
11306
  createdAt: Date;
10506
11307
  updatedAt: Date;
10507
11308
  deletedAt: Date | null;
11309
+ categories: {
11310
+ id: string;
11311
+ value: string;
11312
+ createdAt: Date;
11313
+ updatedAt: Date;
11314
+ deletedAt: Date | null;
11315
+ level: 2 | 1 | 3;
11316
+ parentId: string | null;
11317
+ childCategoryList: {
11318
+ id: string;
11319
+ value: string;
11320
+ level: 2 | 1 | 3;
11321
+ parentId: string | null;
11322
+ childCategoryList: {
11323
+ id: string;
11324
+ value: string;
11325
+ level: 2 | 1 | 3;
11326
+ parentId: string | null;
11327
+ childCategoryList: any[];
11328
+ }[];
11329
+ }[];
11330
+ }[];
10508
11331
  tags: {
10509
11332
  id: string;
10510
11333
  name: string;
@@ -10515,6 +11338,18 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
10515
11338
  callFrom: string | null;
10516
11339
  callTo: string | null;
10517
11340
  note: string | null;
11341
+ customFields?: {
11342
+ id: string;
11343
+ createdAt: Date;
11344
+ updatedAt: Date;
11345
+ deletedAt: Date | null;
11346
+ entityId: string;
11347
+ attributeId: string;
11348
+ textValue: string | null;
11349
+ booleanValue: boolean | null;
11350
+ numberValue: number | null;
11351
+ dateValue: Date | null;
11352
+ }[] | null | undefined;
10518
11353
  } | null;
10519
11354
  } | undefined;
10520
11355
  }>>;
@@ -11186,7 +12021,7 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
11186
12021
  isLatest?: boolean | undefined;
11187
12022
  direction?: "incoming" | "outgoing" | "system" | undefined;
11188
12023
  platformContact?: {
11189
- type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
12024
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat";
11190
12025
  id: string;
11191
12026
  metadata: {
11192
12027
  id: string;
@@ -11386,13 +12221,13 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
11386
12221
  } | undefined;
11387
12222
  } | null | undefined;
11388
12223
  channel?: {
11389
- type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
12224
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat";
11390
12225
  id: string;
11391
12226
  name: string;
11392
12227
  metadata: {
11393
12228
  id: string;
11394
12229
  name: string;
11395
- accessToken: string;
12230
+ accessToken?: string | undefined;
11396
12231
  channelSecret?: string | undefined;
11397
12232
  additionalCredentials?: any;
11398
12233
  };
@@ -11426,11 +12261,34 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
11426
12261
  handledTime: number | null;
11427
12262
  firstResponseTime: number | null;
11428
12263
  wrapUpForm: {
12264
+ type: string;
11429
12265
  id: string;
11430
12266
  disposition: string | null;
11431
12267
  createdAt: Date;
11432
12268
  updatedAt: Date;
11433
12269
  deletedAt: Date | null;
12270
+ categories: {
12271
+ id: string;
12272
+ value: string;
12273
+ createdAt: Date;
12274
+ updatedAt: Date;
12275
+ deletedAt: Date | null;
12276
+ level: 2 | 1 | 3;
12277
+ parentId: string | null;
12278
+ childCategoryList: {
12279
+ id: string;
12280
+ value: string;
12281
+ level: 2 | 1 | 3;
12282
+ parentId: string | null;
12283
+ childCategoryList: {
12284
+ id: string;
12285
+ value: string;
12286
+ level: 2 | 1 | 3;
12287
+ parentId: string | null;
12288
+ childCategoryList: any[];
12289
+ }[];
12290
+ }[];
12291
+ }[];
11434
12292
  tags: {
11435
12293
  id: string;
11436
12294
  name: string;
@@ -11441,6 +12299,18 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
11441
12299
  callFrom: string | null;
11442
12300
  callTo: string | null;
11443
12301
  note: string | null;
12302
+ customFields?: {
12303
+ id: string;
12304
+ createdAt: Date;
12305
+ updatedAt: Date;
12306
+ deletedAt: Date | null;
12307
+ entityId: string;
12308
+ attributeId: string;
12309
+ textValue: string | null;
12310
+ booleanValue: boolean | null;
12311
+ numberValue: number | null;
12312
+ dateValue: Date | null;
12313
+ }[] | null | undefined;
11444
12314
  } | null;
11445
12315
  } | undefined;
11446
12316
  } | null;
@@ -11619,7 +12489,7 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
11619
12489
  isLatest?: boolean | undefined;
11620
12490
  direction?: "incoming" | "outgoing" | "system" | undefined;
11621
12491
  platformContact?: {
11622
- type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
12492
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat";
11623
12493
  id: string;
11624
12494
  metadata: {
11625
12495
  id: string;
@@ -11819,13 +12689,13 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
11819
12689
  } | undefined;
11820
12690
  } | null | undefined;
11821
12691
  channel?: {
11822
- type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
12692
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat";
11823
12693
  id: string;
11824
12694
  name: string;
11825
12695
  metadata: {
11826
12696
  id: string;
11827
12697
  name: string;
11828
- accessToken: string;
12698
+ accessToken?: string | undefined;
11829
12699
  channelSecret?: string | undefined;
11830
12700
  additionalCredentials?: any;
11831
12701
  };
@@ -11859,11 +12729,34 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
11859
12729
  handledTime: number | null;
11860
12730
  firstResponseTime: number | null;
11861
12731
  wrapUpForm: {
12732
+ type: string;
11862
12733
  id: string;
11863
12734
  disposition: string | null;
11864
12735
  createdAt: Date;
11865
12736
  updatedAt: Date;
11866
12737
  deletedAt: Date | null;
12738
+ categories: {
12739
+ id: string;
12740
+ value: string;
12741
+ createdAt: Date;
12742
+ updatedAt: Date;
12743
+ deletedAt: Date | null;
12744
+ level: 2 | 1 | 3;
12745
+ parentId: string | null;
12746
+ childCategoryList: {
12747
+ id: string;
12748
+ value: string;
12749
+ level: 2 | 1 | 3;
12750
+ parentId: string | null;
12751
+ childCategoryList: {
12752
+ id: string;
12753
+ value: string;
12754
+ level: 2 | 1 | 3;
12755
+ parentId: string | null;
12756
+ childCategoryList: any[];
12757
+ }[];
12758
+ }[];
12759
+ }[];
11867
12760
  tags: {
11868
12761
  id: string;
11869
12762
  name: string;
@@ -11874,6 +12767,18 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
11874
12767
  callFrom: string | null;
11875
12768
  callTo: string | null;
11876
12769
  note: string | null;
12770
+ customFields?: {
12771
+ id: string;
12772
+ createdAt: Date;
12773
+ updatedAt: Date;
12774
+ deletedAt: Date | null;
12775
+ entityId: string;
12776
+ attributeId: string;
12777
+ textValue: string | null;
12778
+ booleanValue: boolean | null;
12779
+ numberValue: number | null;
12780
+ dateValue: Date | null;
12781
+ }[] | null | undefined;
11877
12782
  } | null;
11878
12783
  } | undefined;
11879
12784
  } | null;
@@ -12054,7 +12959,7 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
12054
12959
  isLatest?: boolean | undefined;
12055
12960
  direction?: "incoming" | "outgoing" | "system" | undefined;
12056
12961
  platformContact?: {
12057
- type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
12962
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat";
12058
12963
  id: string;
12059
12964
  metadata: {
12060
12965
  id: string;
@@ -12254,13 +13159,13 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
12254
13159
  } | undefined;
12255
13160
  } | null | undefined;
12256
13161
  channel?: {
12257
- type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
13162
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat";
12258
13163
  id: string;
12259
13164
  name: string;
12260
13165
  metadata: {
12261
13166
  id: string;
12262
13167
  name: string;
12263
- accessToken: string;
13168
+ accessToken?: string | undefined;
12264
13169
  channelSecret?: string | undefined;
12265
13170
  additionalCredentials?: any;
12266
13171
  };
@@ -12294,11 +13199,34 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
12294
13199
  handledTime: number | null;
12295
13200
  firstResponseTime: number | null;
12296
13201
  wrapUpForm: {
13202
+ type: string;
12297
13203
  id: string;
12298
13204
  disposition: string | null;
12299
13205
  createdAt: Date;
12300
13206
  updatedAt: Date;
12301
13207
  deletedAt: Date | null;
13208
+ categories: {
13209
+ id: string;
13210
+ value: string;
13211
+ createdAt: Date;
13212
+ updatedAt: Date;
13213
+ deletedAt: Date | null;
13214
+ level: 2 | 1 | 3;
13215
+ parentId: string | null;
13216
+ childCategoryList: {
13217
+ id: string;
13218
+ value: string;
13219
+ level: 2 | 1 | 3;
13220
+ parentId: string | null;
13221
+ childCategoryList: {
13222
+ id: string;
13223
+ value: string;
13224
+ level: 2 | 1 | 3;
13225
+ parentId: string | null;
13226
+ childCategoryList: any[];
13227
+ }[];
13228
+ }[];
13229
+ }[];
12302
13230
  tags: {
12303
13231
  id: string;
12304
13232
  name: string;
@@ -12309,6 +13237,18 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
12309
13237
  callFrom: string | null;
12310
13238
  callTo: string | null;
12311
13239
  note: string | null;
13240
+ customFields?: {
13241
+ id: string;
13242
+ createdAt: Date;
13243
+ updatedAt: Date;
13244
+ deletedAt: Date | null;
13245
+ entityId: string;
13246
+ attributeId: string;
13247
+ textValue: string | null;
13248
+ booleanValue: boolean | null;
13249
+ numberValue: number | null;
13250
+ dateValue: Date | null;
13251
+ }[] | null | undefined;
12312
13252
  } | null;
12313
13253
  } | undefined;
12314
13254
  } | null;
@@ -12489,7 +13429,7 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
12489
13429
  isLatest?: boolean | undefined;
12490
13430
  direction?: "incoming" | "outgoing" | "system" | undefined;
12491
13431
  platformContact?: {
12492
- type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
13432
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat";
12493
13433
  id: string;
12494
13434
  metadata: {
12495
13435
  id: string;
@@ -12689,13 +13629,13 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
12689
13629
  } | undefined;
12690
13630
  } | null | undefined;
12691
13631
  channel?: {
12692
- type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
13632
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat";
12693
13633
  id: string;
12694
13634
  name: string;
12695
13635
  metadata: {
12696
13636
  id: string;
12697
13637
  name: string;
12698
- accessToken: string;
13638
+ accessToken?: string | undefined;
12699
13639
  channelSecret?: string | undefined;
12700
13640
  additionalCredentials?: any;
12701
13641
  };
@@ -12729,11 +13669,34 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
12729
13669
  handledTime: number | null;
12730
13670
  firstResponseTime: number | null;
12731
13671
  wrapUpForm: {
13672
+ type: string;
12732
13673
  id: string;
12733
13674
  disposition: string | null;
12734
13675
  createdAt: Date;
12735
13676
  updatedAt: Date;
12736
13677
  deletedAt: Date | null;
13678
+ categories: {
13679
+ id: string;
13680
+ value: string;
13681
+ createdAt: Date;
13682
+ updatedAt: Date;
13683
+ deletedAt: Date | null;
13684
+ level: 2 | 1 | 3;
13685
+ parentId: string | null;
13686
+ childCategoryList: {
13687
+ id: string;
13688
+ value: string;
13689
+ level: 2 | 1 | 3;
13690
+ parentId: string | null;
13691
+ childCategoryList: {
13692
+ id: string;
13693
+ value: string;
13694
+ level: 2 | 1 | 3;
13695
+ parentId: string | null;
13696
+ childCategoryList: any[];
13697
+ }[];
13698
+ }[];
13699
+ }[];
12737
13700
  tags: {
12738
13701
  id: string;
12739
13702
  name: string;
@@ -12744,6 +13707,18 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
12744
13707
  callFrom: string | null;
12745
13708
  callTo: string | null;
12746
13709
  note: string | null;
13710
+ customFields?: {
13711
+ id: string;
13712
+ createdAt: Date;
13713
+ updatedAt: Date;
13714
+ deletedAt: Date | null;
13715
+ entityId: string;
13716
+ attributeId: string;
13717
+ textValue: string | null;
13718
+ booleanValue: boolean | null;
13719
+ numberValue: number | null;
13720
+ dateValue: Date | null;
13721
+ }[] | null | undefined;
12747
13722
  } | null;
12748
13723
  } | undefined;
12749
13724
  } | null;