@kl1/contracts 1.0.65 → 1.0.67

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 (46) hide show
  1. package/dist/index.js +2331 -2327
  2. package/dist/index.js.map +1 -1
  3. package/dist/index.mjs +2331 -2327
  4. package/dist/index.mjs.map +1 -1
  5. package/dist/src/call-log/schema.d.ts +4 -4
  6. package/dist/src/call-log/validation.d.ts +2 -2
  7. package/dist/src/channel/index.d.ts +69 -709
  8. package/dist/src/channel/index.d.ts.map +1 -1
  9. package/dist/src/channel/validation.d.ts +19 -0
  10. package/dist/src/channel/validation.d.ts.map +1 -1
  11. package/dist/src/chat/index.d.ts +490 -490
  12. package/dist/src/chat/index.d.ts.map +1 -1
  13. package/dist/src/chat/schema.d.ts +74 -74
  14. package/dist/src/chat/validation.d.ts +228 -131
  15. package/dist/src/chat/validation.d.ts.map +1 -1
  16. package/dist/src/comment/index.d.ts +609 -609
  17. package/dist/src/comment/schema.d.ts +144 -144
  18. package/dist/src/contract.d.ts +3503 -4143
  19. package/dist/src/contract.d.ts.map +1 -1
  20. package/dist/src/cx-log/index.d.ts +90 -90
  21. package/dist/src/cx-log/schema.d.ts +62 -62
  22. package/dist/src/instagram/index.d.ts +78 -78
  23. package/dist/src/line/index.d.ts +96 -96
  24. package/dist/src/line/schema.d.ts +19 -19
  25. package/dist/src/line/schema.d.ts.map +1 -1
  26. package/dist/src/mail/mail-contract.d.ts +24 -24
  27. package/dist/src/mail/room-contract.d.ts +24 -24
  28. package/dist/src/mail/schemas/room-validation.schema.d.ts +8 -8
  29. package/dist/src/mail/schemas/room.schema.d.ts +4 -4
  30. package/dist/src/messenger/index.d.ts +99 -93
  31. package/dist/src/messenger/index.d.ts.map +1 -1
  32. package/dist/src/telephony-cdr/index.d.ts +38 -38
  33. package/dist/src/telephony-cdr/schema.d.ts +6 -6
  34. package/dist/src/telephony-cdr/validation.d.ts +5 -5
  35. package/dist/src/telephony-cdr/validation.d.ts.map +1 -1
  36. package/dist/src/ticket/index.d.ts +1084 -1084
  37. package/dist/src/ticket/schema.d.ts +72 -72
  38. package/dist/src/ticket/validation.d.ts +12 -12
  39. package/dist/src/user-presence-status-log/index.d.ts +4 -9
  40. package/dist/src/user-presence-status-log/index.d.ts.map +1 -1
  41. package/dist/src/user-presence-status-log/validation.d.ts +7 -0
  42. package/dist/src/user-presence-status-log/validation.d.ts.map +1 -1
  43. package/dist/src/wrap-up-form/index.d.ts +19 -19
  44. package/dist/src/wrap-up-form/schema.d.ts +2 -2
  45. package/dist/src/wrap-up-form/validation.d.ts +3 -3
  46. package/package.json +1 -1
@@ -632,9 +632,9 @@ export declare const SearchRoomsSchema: z.ZodObject<{
632
632
  page: z.ZodDefault<z.ZodNumber>;
633
633
  pageSize: z.ZodDefault<z.ZodNumber>;
634
634
  query: z.ZodString;
635
- type: z.ZodDefault<z.ZodString>;
635
+ type: z.ZodDefault<z.ZodEnum<["contact", "message"]>>;
636
636
  }, "strip", z.ZodTypeAny, {
637
- type: string;
637
+ type: "message" | "contact";
638
638
  page: number;
639
639
  pageSize: number;
640
640
  query: string;
@@ -642,7 +642,7 @@ export declare const SearchRoomsSchema: z.ZodObject<{
642
642
  query: string;
643
643
  page?: number | undefined;
644
644
  pageSize?: number | undefined;
645
- type?: string | undefined;
645
+ type?: "message" | "contact" | undefined;
646
646
  }>;
647
647
  export declare const ChannelSchema: z.ZodObject<{
648
648
  name: z.ZodString;
@@ -735,6 +735,103 @@ export declare const ChannelSchema: z.ZodObject<{
735
735
  phone: string | null;
736
736
  } | undefined;
737
737
  }>;
738
+ export declare const ReloginChanelSchema: z.ZodObject<{
739
+ type: z.ZodEnum<["whatsapp", "messenger", "telegram", "line", "viber", "kakao", "shopee", "lazada", "instagram"]>;
740
+ name: z.ZodString;
741
+ metadata: z.ZodObject<{
742
+ id: z.ZodString;
743
+ name: z.ZodString;
744
+ accessToken: z.ZodString;
745
+ channelSecret: z.ZodOptional<z.ZodString>;
746
+ additionalCredentials: z.ZodOptional<z.ZodAny>;
747
+ }, "strip", z.ZodTypeAny, {
748
+ id: string;
749
+ name: string;
750
+ accessToken: string;
751
+ channelSecret?: string | undefined;
752
+ additionalCredentials?: any;
753
+ }, {
754
+ id: string;
755
+ name: string;
756
+ accessToken: string;
757
+ channelSecret?: string | undefined;
758
+ additionalCredentials?: any;
759
+ }>;
760
+ status: z.ZodUnion<[z.ZodLiteral<true>, z.ZodLiteral<false>]>;
761
+ actor: z.ZodOptional<z.ZodObject<{
762
+ id: z.ZodString;
763
+ name: z.ZodString;
764
+ email: z.ZodString;
765
+ address: z.ZodNullable<z.ZodString>;
766
+ phone: z.ZodNullable<z.ZodString>;
767
+ }, "strip", z.ZodTypeAny, {
768
+ id: string;
769
+ address: string | null;
770
+ name: string;
771
+ email: string;
772
+ phone: string | null;
773
+ }, {
774
+ id: string;
775
+ address: string | null;
776
+ name: string;
777
+ email: string;
778
+ phone: string | null;
779
+ }>>;
780
+ brandName: z.ZodString;
781
+ platformId: z.ZodString;
782
+ connectedUserName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
783
+ connectedUserId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
784
+ id: z.ZodString;
785
+ isReloginRequired: z.ZodBoolean;
786
+ }, "strip", z.ZodTypeAny, {
787
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
788
+ id: string;
789
+ name: string;
790
+ metadata: {
791
+ id: string;
792
+ name: string;
793
+ accessToken: string;
794
+ channelSecret?: string | undefined;
795
+ additionalCredentials?: any;
796
+ };
797
+ status: boolean;
798
+ brandName: string;
799
+ platformId: string;
800
+ isReloginRequired: boolean;
801
+ actor?: {
802
+ id: string;
803
+ address: string | null;
804
+ name: string;
805
+ email: string;
806
+ phone: string | null;
807
+ } | undefined;
808
+ connectedUserName?: string | null | undefined;
809
+ connectedUserId?: string | null | undefined;
810
+ }, {
811
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
812
+ id: string;
813
+ name: string;
814
+ metadata: {
815
+ id: string;
816
+ name: string;
817
+ accessToken: string;
818
+ channelSecret?: string | undefined;
819
+ additionalCredentials?: any;
820
+ };
821
+ status: boolean;
822
+ brandName: string;
823
+ platformId: string;
824
+ isReloginRequired: boolean;
825
+ actor?: {
826
+ id: string;
827
+ address: string | null;
828
+ name: string;
829
+ email: string;
830
+ phone: string | null;
831
+ } | undefined;
832
+ connectedUserName?: string | null | undefined;
833
+ connectedUserId?: string | null | undefined;
834
+ }>;
738
835
  export declare const SendMessageToPlatformSchema: z.ZodObject<{
739
836
  room: z.ZodObject<{
740
837
  id: z.ZodString;
@@ -792,7 +889,6 @@ export declare const SendMessageToPlatformSchema: z.ZodObject<{
792
889
  picture?: string | undefined;
793
890
  additionalCredentials?: any;
794
891
  };
795
- channelId: string;
796
892
  contact: {
797
893
  channel: string | null;
798
894
  address: string | null;
@@ -801,6 +897,7 @@ export declare const SendMessageToPlatformSchema: z.ZodObject<{
801
897
  contactProfile: string | null;
802
898
  socialProfileUrl: string | null;
803
899
  };
900
+ channelId: string;
804
901
  socialPlatformId: string | null;
805
902
  }, {
806
903
  type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
@@ -810,7 +907,6 @@ export declare const SendMessageToPlatformSchema: z.ZodObject<{
810
907
  picture?: string | undefined;
811
908
  additionalCredentials?: any;
812
909
  };
813
- channelId: string;
814
910
  contact: {
815
911
  channel: string | null;
816
912
  address: string | null;
@@ -819,6 +915,7 @@ export declare const SendMessageToPlatformSchema: z.ZodObject<{
819
915
  contactProfile: string | null;
820
916
  socialProfileUrl: string | null;
821
917
  };
918
+ channelId: string;
822
919
  socialPlatformId: string | null;
823
920
  }>;
824
921
  actor: z.ZodNullable<z.ZodObject<{
@@ -969,7 +1066,6 @@ export declare const SendMessageToPlatformSchema: z.ZodObject<{
969
1066
  picture?: string | undefined;
970
1067
  additionalCredentials?: any;
971
1068
  };
972
- channelId: string;
973
1069
  contact: {
974
1070
  channel: string | null;
975
1071
  address: string | null;
@@ -978,6 +1074,7 @@ export declare const SendMessageToPlatformSchema: z.ZodObject<{
978
1074
  contactProfile: string | null;
979
1075
  socialProfileUrl: string | null;
980
1076
  };
1077
+ channelId: string;
981
1078
  socialPlatformId: string | null;
982
1079
  };
983
1080
  lastMessage?: string | undefined;
@@ -1023,7 +1120,6 @@ export declare const SendMessageToPlatformSchema: z.ZodObject<{
1023
1120
  picture?: string | undefined;
1024
1121
  additionalCredentials?: any;
1025
1122
  };
1026
- channelId: string;
1027
1123
  contact: {
1028
1124
  channel: string | null;
1029
1125
  address: string | null;
@@ -1032,6 +1128,7 @@ export declare const SendMessageToPlatformSchema: z.ZodObject<{
1032
1128
  contactProfile: string | null;
1033
1129
  socialProfileUrl: string | null;
1034
1130
  };
1131
+ channelId: string;
1035
1132
  socialPlatformId: string | null;
1036
1133
  };
1037
1134
  lastMessage?: string | undefined;
@@ -1205,7 +1302,6 @@ export declare const SendMessageToPlatformSchema: z.ZodObject<{
1205
1302
  picture?: string | undefined;
1206
1303
  additionalCredentials?: any;
1207
1304
  };
1208
- channelId: string;
1209
1305
  contact: {
1210
1306
  channel: string | null;
1211
1307
  address: string | null;
@@ -1214,6 +1310,7 @@ export declare const SendMessageToPlatformSchema: z.ZodObject<{
1214
1310
  contactProfile: string | null;
1215
1311
  socialProfileUrl: string | null;
1216
1312
  };
1313
+ channelId: string;
1217
1314
  socialPlatformId: string | null;
1218
1315
  };
1219
1316
  lastMessage?: string | undefined;
@@ -1288,7 +1385,6 @@ export declare const SendMessageToPlatformSchema: z.ZodObject<{
1288
1385
  picture?: string | undefined;
1289
1386
  additionalCredentials?: any;
1290
1387
  };
1291
- channelId: string;
1292
1388
  contact: {
1293
1389
  channel: string | null;
1294
1390
  address: string | null;
@@ -1297,6 +1393,7 @@ export declare const SendMessageToPlatformSchema: z.ZodObject<{
1297
1393
  contactProfile: string | null;
1298
1394
  socialProfileUrl: string | null;
1299
1395
  };
1396
+ channelId: string;
1300
1397
  socialPlatformId: string | null;
1301
1398
  };
1302
1399
  lastMessage?: string | undefined;
@@ -2130,7 +2227,6 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
2130
2227
  createdAt: Date;
2131
2228
  updatedAt: Date;
2132
2229
  deletedAt: Date | null;
2133
- channelId: string;
2134
2230
  contact: {
2135
2231
  id: string;
2136
2232
  channel: string | null;
@@ -2235,6 +2331,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
2235
2331
  };
2236
2332
  }[] | undefined;
2237
2333
  };
2334
+ channelId: string;
2238
2335
  socialPlatformId: string;
2239
2336
  }, {
2240
2337
  type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
@@ -2248,7 +2345,6 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
2248
2345
  createdAt: Date;
2249
2346
  updatedAt: Date;
2250
2347
  deletedAt: Date | null;
2251
- channelId: string;
2252
2348
  contact: {
2253
2349
  id: string;
2254
2350
  channel: string | null;
@@ -2353,6 +2449,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
2353
2449
  };
2354
2450
  }[] | undefined;
2355
2451
  };
2452
+ channelId: string;
2356
2453
  socialPlatformId: string;
2357
2454
  }>;
2358
2455
  actor: z.ZodObject<{
@@ -3186,9 +3283,9 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
3186
3283
  updatedAt: Date;
3187
3284
  deletedAt: Date | null;
3188
3285
  }[];
3286
+ note: string | null;
3189
3287
  callFrom: string | null;
3190
3288
  callTo: string | null;
3191
- note: string | null;
3192
3289
  }, {
3193
3290
  id: string;
3194
3291
  disposition: string | null;
@@ -3202,9 +3299,9 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
3202
3299
  updatedAt: Date;
3203
3300
  deletedAt: Date | null;
3204
3301
  }[];
3302
+ note: string | null;
3205
3303
  callFrom: string | null;
3206
3304
  callTo: string | null;
3207
- note: string | null;
3208
3305
  }>>;
3209
3306
  }, "strip", z.ZodTypeAny, {
3210
3307
  id: string;
@@ -3215,14 +3312,14 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
3215
3312
  updatedAt: Date;
3216
3313
  deletedAt: Date | null;
3217
3314
  entityId: string;
3218
- queueId: string | null;
3219
- contactId: string | null;
3315
+ firstResponseTime: number | null;
3220
3316
  caseId: number;
3221
3317
  entityName: string;
3318
+ contactId: string | null;
3319
+ queueId: string | null;
3222
3320
  agentId: string | null;
3223
3321
  startedDate: Date | null;
3224
3322
  handledTime: number | null;
3225
- firstResponseTime: number | null;
3226
3323
  wrapUpForm: {
3227
3324
  id: string;
3228
3325
  disposition: string | null;
@@ -3236,9 +3333,9 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
3236
3333
  updatedAt: Date;
3237
3334
  deletedAt: Date | null;
3238
3335
  }[];
3336
+ note: string | null;
3239
3337
  callFrom: string | null;
3240
3338
  callTo: string | null;
3241
- note: string | null;
3242
3339
  } | null;
3243
3340
  }, {
3244
3341
  id: string;
@@ -3249,14 +3346,14 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
3249
3346
  updatedAt: Date;
3250
3347
  deletedAt: Date | null;
3251
3348
  entityId: string;
3252
- queueId: string | null;
3253
- contactId: string | null;
3349
+ firstResponseTime: number | null;
3254
3350
  caseId: number;
3255
3351
  entityName: string;
3352
+ contactId: string | null;
3353
+ queueId: string | null;
3256
3354
  agentId: string | null;
3257
3355
  startedDate: Date | null;
3258
3356
  handledTime: number | null;
3259
- firstResponseTime: number | null;
3260
3357
  wrapUpForm: {
3261
3358
  id: string;
3262
3359
  disposition: string | null;
@@ -3270,9 +3367,9 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
3270
3367
  updatedAt: Date;
3271
3368
  deletedAt: Date | null;
3272
3369
  }[];
3370
+ note: string | null;
3273
3371
  callFrom: string | null;
3274
3372
  callTo: string | null;
3275
- note: string | null;
3276
3373
  } | null;
3277
3374
  }>;
3278
3375
  }, "strip", z.ZodTypeAny, {
@@ -3325,12 +3422,12 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
3325
3422
  telephonySignature: string | null;
3326
3423
  };
3327
3424
  };
3328
- firstResponseTime: number;
3329
3425
  lastMessage: string;
3330
3426
  handleTime: number;
3331
3427
  closeAt: Date;
3332
3428
  unreadCount: number;
3333
3429
  firstResponseAt: Date;
3430
+ firstResponseTime: number;
3334
3431
  isLatest: boolean;
3335
3432
  platformContact: {
3336
3433
  type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
@@ -3344,7 +3441,6 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
3344
3441
  createdAt: Date;
3345
3442
  updatedAt: Date;
3346
3443
  deletedAt: Date | null;
3347
- channelId: string;
3348
3444
  contact: {
3349
3445
  id: string;
3350
3446
  channel: string | null;
@@ -3449,6 +3545,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
3449
3545
  };
3450
3546
  }[] | undefined;
3451
3547
  };
3548
+ channelId: string;
3452
3549
  socialPlatformId: string;
3453
3550
  };
3454
3551
  assignee: {
@@ -3504,14 +3601,14 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
3504
3601
  updatedAt: Date;
3505
3602
  deletedAt: Date | null;
3506
3603
  entityId: string;
3507
- queueId: string | null;
3508
- contactId: string | null;
3604
+ firstResponseTime: number | null;
3509
3605
  caseId: number;
3510
3606
  entityName: string;
3607
+ contactId: string | null;
3608
+ queueId: string | null;
3511
3609
  agentId: string | null;
3512
3610
  startedDate: Date | null;
3513
3611
  handledTime: number | null;
3514
- firstResponseTime: number | null;
3515
3612
  wrapUpForm: {
3516
3613
  id: string;
3517
3614
  disposition: string | null;
@@ -3525,9 +3622,9 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
3525
3622
  updatedAt: Date;
3526
3623
  deletedAt: Date | null;
3527
3624
  }[];
3625
+ note: string | null;
3528
3626
  callFrom: string | null;
3529
3627
  callTo: string | null;
3530
- note: string | null;
3531
3628
  } | null;
3532
3629
  };
3533
3630
  channel?: {
@@ -3645,12 +3742,12 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
3645
3742
  telephonySignature: string | null;
3646
3743
  };
3647
3744
  };
3648
- firstResponseTime: number;
3649
3745
  lastMessage: string;
3650
3746
  handleTime: number;
3651
3747
  closeAt: Date;
3652
3748
  unreadCount: number;
3653
3749
  firstResponseAt: Date;
3750
+ firstResponseTime: number;
3654
3751
  isLatest: boolean;
3655
3752
  platformContact: {
3656
3753
  type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
@@ -3664,7 +3761,6 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
3664
3761
  createdAt: Date;
3665
3762
  updatedAt: Date;
3666
3763
  deletedAt: Date | null;
3667
- channelId: string;
3668
3764
  contact: {
3669
3765
  id: string;
3670
3766
  channel: string | null;
@@ -3769,6 +3865,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
3769
3865
  };
3770
3866
  }[] | undefined;
3771
3867
  };
3868
+ channelId: string;
3772
3869
  socialPlatformId: string;
3773
3870
  };
3774
3871
  assignee: {
@@ -3824,14 +3921,14 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
3824
3921
  updatedAt: Date;
3825
3922
  deletedAt: Date | null;
3826
3923
  entityId: string;
3827
- queueId: string | null;
3828
- contactId: string | null;
3924
+ firstResponseTime: number | null;
3829
3925
  caseId: number;
3830
3926
  entityName: string;
3927
+ contactId: string | null;
3928
+ queueId: string | null;
3831
3929
  agentId: string | null;
3832
3930
  startedDate: Date | null;
3833
3931
  handledTime: number | null;
3834
- firstResponseTime: number | null;
3835
3932
  wrapUpForm: {
3836
3933
  id: string;
3837
3934
  disposition: string | null;
@@ -3845,9 +3942,9 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
3845
3942
  updatedAt: Date;
3846
3943
  deletedAt: Date | null;
3847
3944
  }[];
3945
+ note: string | null;
3848
3946
  callFrom: string | null;
3849
3947
  callTo: string | null;
3850
- note: string | null;
3851
3948
  } | null;
3852
3949
  };
3853
3950
  channel?: {
@@ -4672,6 +4769,12 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
4672
4769
  telephonySignature: string | null;
4673
4770
  };
4674
4771
  };
4772
+ readAt: Date;
4773
+ platformMessageId: string;
4774
+ replyPlatformMessageId: string;
4775
+ locale: "" | "th" | "mm" | "en";
4776
+ previewUrl: string;
4777
+ imageSetId: string;
4675
4778
  room: {
4676
4779
  id: string;
4677
4780
  direction: "incoming" | "outgoing" | "system";
@@ -4722,12 +4825,12 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
4722
4825
  telephonySignature: string | null;
4723
4826
  };
4724
4827
  };
4725
- firstResponseTime: number;
4726
4828
  lastMessage: string;
4727
4829
  handleTime: number;
4728
4830
  closeAt: Date;
4729
4831
  unreadCount: number;
4730
4832
  firstResponseAt: Date;
4833
+ firstResponseTime: number;
4731
4834
  isLatest: boolean;
4732
4835
  platformContact: {
4733
4836
  type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
@@ -4741,7 +4844,6 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
4741
4844
  createdAt: Date;
4742
4845
  updatedAt: Date;
4743
4846
  deletedAt: Date | null;
4744
- channelId: string;
4745
4847
  contact: {
4746
4848
  id: string;
4747
4849
  channel: string | null;
@@ -4846,6 +4948,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
4846
4948
  };
4847
4949
  }[] | undefined;
4848
4950
  };
4951
+ channelId: string;
4849
4952
  socialPlatformId: string;
4850
4953
  };
4851
4954
  assignee: {
@@ -4901,14 +5004,14 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
4901
5004
  updatedAt: Date;
4902
5005
  deletedAt: Date | null;
4903
5006
  entityId: string;
4904
- queueId: string | null;
4905
- contactId: string | null;
5007
+ firstResponseTime: number | null;
4906
5008
  caseId: number;
4907
5009
  entityName: string;
5010
+ contactId: string | null;
5011
+ queueId: string | null;
4908
5012
  agentId: string | null;
4909
5013
  startedDate: Date | null;
4910
5014
  handledTime: number | null;
4911
- firstResponseTime: number | null;
4912
5015
  wrapUpForm: {
4913
5016
  id: string;
4914
5017
  disposition: string | null;
@@ -4922,9 +5025,9 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
4922
5025
  updatedAt: Date;
4923
5026
  deletedAt: Date | null;
4924
5027
  }[];
5028
+ note: string | null;
4925
5029
  callFrom: string | null;
4926
5030
  callTo: string | null;
4927
- note: string | null;
4928
5031
  } | null;
4929
5032
  };
4930
5033
  channel?: {
@@ -4993,12 +5096,6 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
4993
5096
  } | undefined;
4994
5097
  } | undefined;
4995
5098
  };
4996
- readAt: Date;
4997
- platformMessageId: string;
4998
- replyPlatformMessageId: string;
4999
- locale: "" | "th" | "mm" | "en";
5000
- previewUrl: string;
5001
- imageSetId: string;
5002
5099
  sender: {
5003
5100
  id: string;
5004
5101
  address: string | null;
@@ -5155,6 +5252,12 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
5155
5252
  telephonySignature: string | null;
5156
5253
  };
5157
5254
  };
5255
+ readAt: Date;
5256
+ platformMessageId: string;
5257
+ replyPlatformMessageId: string;
5258
+ locale: "" | "th" | "mm" | "en";
5259
+ previewUrl: string;
5260
+ imageSetId: string;
5158
5261
  room: {
5159
5262
  id: string;
5160
5263
  direction: "incoming" | "outgoing" | "system";
@@ -5205,12 +5308,12 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
5205
5308
  telephonySignature: string | null;
5206
5309
  };
5207
5310
  };
5208
- firstResponseTime: number;
5209
5311
  lastMessage: string;
5210
5312
  handleTime: number;
5211
5313
  closeAt: Date;
5212
5314
  unreadCount: number;
5213
5315
  firstResponseAt: Date;
5316
+ firstResponseTime: number;
5214
5317
  isLatest: boolean;
5215
5318
  platformContact: {
5216
5319
  type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
@@ -5224,7 +5327,6 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
5224
5327
  createdAt: Date;
5225
5328
  updatedAt: Date;
5226
5329
  deletedAt: Date | null;
5227
- channelId: string;
5228
5330
  contact: {
5229
5331
  id: string;
5230
5332
  channel: string | null;
@@ -5329,6 +5431,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
5329
5431
  };
5330
5432
  }[] | undefined;
5331
5433
  };
5434
+ channelId: string;
5332
5435
  socialPlatformId: string;
5333
5436
  };
5334
5437
  assignee: {
@@ -5384,14 +5487,14 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
5384
5487
  updatedAt: Date;
5385
5488
  deletedAt: Date | null;
5386
5489
  entityId: string;
5387
- queueId: string | null;
5388
- contactId: string | null;
5490
+ firstResponseTime: number | null;
5389
5491
  caseId: number;
5390
5492
  entityName: string;
5493
+ contactId: string | null;
5494
+ queueId: string | null;
5391
5495
  agentId: string | null;
5392
5496
  startedDate: Date | null;
5393
5497
  handledTime: number | null;
5394
- firstResponseTime: number | null;
5395
5498
  wrapUpForm: {
5396
5499
  id: string;
5397
5500
  disposition: string | null;
@@ -5405,9 +5508,9 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
5405
5508
  updatedAt: Date;
5406
5509
  deletedAt: Date | null;
5407
5510
  }[];
5511
+ note: string | null;
5408
5512
  callFrom: string | null;
5409
5513
  callTo: string | null;
5410
- note: string | null;
5411
5514
  } | null;
5412
5515
  };
5413
5516
  channel?: {
@@ -5476,12 +5579,6 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
5476
5579
  } | undefined;
5477
5580
  } | undefined;
5478
5581
  };
5479
- readAt: Date;
5480
- platformMessageId: string;
5481
- replyPlatformMessageId: string;
5482
- locale: "" | "th" | "mm" | "en";
5483
- previewUrl: string;
5484
- imageSetId: string;
5485
5582
  sender: {
5486
5583
  id: string;
5487
5584
  address: string | null;
@@ -5640,6 +5737,12 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
5640
5737
  telephonySignature: string | null;
5641
5738
  };
5642
5739
  };
5740
+ readAt: Date;
5741
+ platformMessageId: string;
5742
+ replyPlatformMessageId: string;
5743
+ locale: "" | "th" | "mm" | "en";
5744
+ previewUrl: string;
5745
+ imageSetId: string;
5643
5746
  room: {
5644
5747
  id: string;
5645
5748
  direction: "incoming" | "outgoing" | "system";
@@ -5690,12 +5793,12 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
5690
5793
  telephonySignature: string | null;
5691
5794
  };
5692
5795
  };
5693
- firstResponseTime: number;
5694
5796
  lastMessage: string;
5695
5797
  handleTime: number;
5696
5798
  closeAt: Date;
5697
5799
  unreadCount: number;
5698
5800
  firstResponseAt: Date;
5801
+ firstResponseTime: number;
5699
5802
  isLatest: boolean;
5700
5803
  platformContact: {
5701
5804
  type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
@@ -5709,7 +5812,6 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
5709
5812
  createdAt: Date;
5710
5813
  updatedAt: Date;
5711
5814
  deletedAt: Date | null;
5712
- channelId: string;
5713
5815
  contact: {
5714
5816
  id: string;
5715
5817
  channel: string | null;
@@ -5814,6 +5916,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
5814
5916
  };
5815
5917
  }[] | undefined;
5816
5918
  };
5919
+ channelId: string;
5817
5920
  socialPlatformId: string;
5818
5921
  };
5819
5922
  assignee: {
@@ -5869,14 +5972,14 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
5869
5972
  updatedAt: Date;
5870
5973
  deletedAt: Date | null;
5871
5974
  entityId: string;
5872
- queueId: string | null;
5873
- contactId: string | null;
5975
+ firstResponseTime: number | null;
5874
5976
  caseId: number;
5875
5977
  entityName: string;
5978
+ contactId: string | null;
5979
+ queueId: string | null;
5876
5980
  agentId: string | null;
5877
5981
  startedDate: Date | null;
5878
5982
  handledTime: number | null;
5879
- firstResponseTime: number | null;
5880
5983
  wrapUpForm: {
5881
5984
  id: string;
5882
5985
  disposition: string | null;
@@ -5890,9 +5993,9 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
5890
5993
  updatedAt: Date;
5891
5994
  deletedAt: Date | null;
5892
5995
  }[];
5996
+ note: string | null;
5893
5997
  callFrom: string | null;
5894
5998
  callTo: string | null;
5895
- note: string | null;
5896
5999
  } | null;
5897
6000
  };
5898
6001
  channel?: {
@@ -5961,12 +6064,6 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
5961
6064
  } | undefined;
5962
6065
  } | undefined;
5963
6066
  };
5964
- readAt: Date;
5965
- platformMessageId: string;
5966
- replyPlatformMessageId: string;
5967
- locale: "" | "th" | "mm" | "en";
5968
- previewUrl: string;
5969
- imageSetId: string;
5970
6067
  sender: {
5971
6068
  id: string;
5972
6069
  address: string | null;
@@ -6126,6 +6223,12 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
6126
6223
  telephonySignature: string | null;
6127
6224
  };
6128
6225
  };
6226
+ readAt: Date;
6227
+ platformMessageId: string;
6228
+ replyPlatformMessageId: string;
6229
+ locale: "" | "th" | "mm" | "en";
6230
+ previewUrl: string;
6231
+ imageSetId: string;
6129
6232
  room: {
6130
6233
  id: string;
6131
6234
  direction: "incoming" | "outgoing" | "system";
@@ -6176,12 +6279,12 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
6176
6279
  telephonySignature: string | null;
6177
6280
  };
6178
6281
  };
6179
- firstResponseTime: number;
6180
6282
  lastMessage: string;
6181
6283
  handleTime: number;
6182
6284
  closeAt: Date;
6183
6285
  unreadCount: number;
6184
6286
  firstResponseAt: Date;
6287
+ firstResponseTime: number;
6185
6288
  isLatest: boolean;
6186
6289
  platformContact: {
6187
6290
  type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
@@ -6195,7 +6298,6 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
6195
6298
  createdAt: Date;
6196
6299
  updatedAt: Date;
6197
6300
  deletedAt: Date | null;
6198
- channelId: string;
6199
6301
  contact: {
6200
6302
  id: string;
6201
6303
  channel: string | null;
@@ -6300,6 +6402,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
6300
6402
  };
6301
6403
  }[] | undefined;
6302
6404
  };
6405
+ channelId: string;
6303
6406
  socialPlatformId: string;
6304
6407
  };
6305
6408
  assignee: {
@@ -6355,14 +6458,14 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
6355
6458
  updatedAt: Date;
6356
6459
  deletedAt: Date | null;
6357
6460
  entityId: string;
6358
- queueId: string | null;
6359
- contactId: string | null;
6461
+ firstResponseTime: number | null;
6360
6462
  caseId: number;
6361
6463
  entityName: string;
6464
+ contactId: string | null;
6465
+ queueId: string | null;
6362
6466
  agentId: string | null;
6363
6467
  startedDate: Date | null;
6364
6468
  handledTime: number | null;
6365
- firstResponseTime: number | null;
6366
6469
  wrapUpForm: {
6367
6470
  id: string;
6368
6471
  disposition: string | null;
@@ -6376,9 +6479,9 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
6376
6479
  updatedAt: Date;
6377
6480
  deletedAt: Date | null;
6378
6481
  }[];
6482
+ note: string | null;
6379
6483
  callFrom: string | null;
6380
6484
  callTo: string | null;
6381
- note: string | null;
6382
6485
  } | null;
6383
6486
  };
6384
6487
  channel?: {
@@ -6447,12 +6550,6 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
6447
6550
  } | undefined;
6448
6551
  } | undefined;
6449
6552
  };
6450
- readAt: Date;
6451
- platformMessageId: string;
6452
- replyPlatformMessageId: string;
6453
- locale: "" | "th" | "mm" | "en";
6454
- previewUrl: string;
6455
- imageSetId: string;
6456
6553
  sender: {
6457
6554
  id: string;
6458
6555
  address: string | null;
@@ -7471,7 +7568,6 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
7471
7568
  createdAt: string;
7472
7569
  updatedAt: string;
7473
7570
  deletedAt: string | null;
7474
- channelId: string;
7475
7571
  contact: {
7476
7572
  id: string;
7477
7573
  channel: string | null;
@@ -7576,6 +7672,7 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
7576
7672
  };
7577
7673
  }[] | undefined;
7578
7674
  };
7675
+ channelId: string;
7579
7676
  socialPlatformId: string;
7580
7677
  }, {
7581
7678
  type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
@@ -7589,7 +7686,6 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
7589
7686
  createdAt: string;
7590
7687
  updatedAt: string;
7591
7688
  deletedAt: string | null;
7592
- channelId: string;
7593
7689
  contact: {
7594
7690
  id: string;
7595
7691
  channel: string | null;
@@ -7694,6 +7790,7 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
7694
7790
  };
7695
7791
  }[] | undefined;
7696
7792
  };
7793
+ channelId: string;
7697
7794
  socialPlatformId: string;
7698
7795
  }>>;
7699
7796
  actor: z.ZodOptional<z.ZodNullable<z.ZodObject<{
@@ -8253,9 +8350,9 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
8253
8350
  updatedAt: Date;
8254
8351
  deletedAt: Date | null;
8255
8352
  }[];
8353
+ note: string | null;
8256
8354
  callFrom: string | null;
8257
8355
  callTo: string | null;
8258
- note: string | null;
8259
8356
  }, {
8260
8357
  id: string;
8261
8358
  disposition: string | null;
@@ -8269,9 +8366,9 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
8269
8366
  updatedAt: Date;
8270
8367
  deletedAt: Date | null;
8271
8368
  }[];
8369
+ note: string | null;
8272
8370
  callFrom: string | null;
8273
8371
  callTo: string | null;
8274
- note: string | null;
8275
8372
  }>>;
8276
8373
  }, "strip", z.ZodTypeAny, {
8277
8374
  id: string;
@@ -8282,14 +8379,14 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
8282
8379
  updatedAt: Date;
8283
8380
  deletedAt: Date | null;
8284
8381
  entityId: string;
8285
- queueId: string | null;
8286
- contactId: string | null;
8382
+ firstResponseTime: number | null;
8287
8383
  caseId: number;
8288
8384
  entityName: string;
8385
+ contactId: string | null;
8386
+ queueId: string | null;
8289
8387
  agentId: string | null;
8290
8388
  startedDate: Date | null;
8291
8389
  handledTime: number | null;
8292
- firstResponseTime: number | null;
8293
8390
  wrapUpForm: {
8294
8391
  id: string;
8295
8392
  disposition: string | null;
@@ -8303,9 +8400,9 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
8303
8400
  updatedAt: Date;
8304
8401
  deletedAt: Date | null;
8305
8402
  }[];
8403
+ note: string | null;
8306
8404
  callFrom: string | null;
8307
8405
  callTo: string | null;
8308
- note: string | null;
8309
8406
  } | null;
8310
8407
  }, {
8311
8408
  id: string;
@@ -8316,14 +8413,14 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
8316
8413
  updatedAt: Date;
8317
8414
  deletedAt: Date | null;
8318
8415
  entityId: string;
8319
- queueId: string | null;
8320
- contactId: string | null;
8416
+ firstResponseTime: number | null;
8321
8417
  caseId: number;
8322
8418
  entityName: string;
8419
+ contactId: string | null;
8420
+ queueId: string | null;
8323
8421
  agentId: string | null;
8324
8422
  startedDate: Date | null;
8325
8423
  handledTime: number | null;
8326
- firstResponseTime: number | null;
8327
8424
  wrapUpForm: {
8328
8425
  id: string;
8329
8426
  disposition: string | null;
@@ -8337,9 +8434,9 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
8337
8434
  updatedAt: Date;
8338
8435
  deletedAt: Date | null;
8339
8436
  }[];
8437
+ note: string | null;
8340
8438
  callFrom: string | null;
8341
8439
  callTo: string | null;
8342
- note: string | null;
8343
8440
  } | null;
8344
8441
  }>>;
8345
8442
  }, "strip", z.ZodTypeAny, {
@@ -8367,7 +8464,6 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
8367
8464
  createdAt: string;
8368
8465
  updatedAt: string;
8369
8466
  deletedAt: string | null;
8370
- channelId: string;
8371
8467
  contact: {
8372
8468
  id: string;
8373
8469
  channel: string | null;
@@ -8472,6 +8568,7 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
8472
8568
  };
8473
8569
  }[] | undefined;
8474
8570
  };
8571
+ channelId: string;
8475
8572
  socialPlatformId: string;
8476
8573
  } | undefined;
8477
8574
  actor?: {
@@ -8594,14 +8691,14 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
8594
8691
  updatedAt: Date;
8595
8692
  deletedAt: Date | null;
8596
8693
  entityId: string;
8597
- queueId: string | null;
8598
- contactId: string | null;
8694
+ firstResponseTime: number | null;
8599
8695
  caseId: number;
8600
8696
  entityName: string;
8697
+ contactId: string | null;
8698
+ queueId: string | null;
8601
8699
  agentId: string | null;
8602
8700
  startedDate: Date | null;
8603
8701
  handledTime: number | null;
8604
- firstResponseTime: number | null;
8605
8702
  wrapUpForm: {
8606
8703
  id: string;
8607
8704
  disposition: string | null;
@@ -8615,9 +8712,9 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
8615
8712
  updatedAt: Date;
8616
8713
  deletedAt: Date | null;
8617
8714
  }[];
8715
+ note: string | null;
8618
8716
  callFrom: string | null;
8619
8717
  callTo: string | null;
8620
- note: string | null;
8621
8718
  } | null;
8622
8719
  } | undefined;
8623
8720
  }, {
@@ -8645,7 +8742,6 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
8645
8742
  createdAt: string;
8646
8743
  updatedAt: string;
8647
8744
  deletedAt: string | null;
8648
- channelId: string;
8649
8745
  contact: {
8650
8746
  id: string;
8651
8747
  channel: string | null;
@@ -8750,6 +8846,7 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
8750
8846
  };
8751
8847
  }[] | undefined;
8752
8848
  };
8849
+ channelId: string;
8753
8850
  socialPlatformId: string;
8754
8851
  } | undefined;
8755
8852
  actor?: {
@@ -8872,14 +8969,14 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
8872
8969
  updatedAt: Date;
8873
8970
  deletedAt: Date | null;
8874
8971
  entityId: string;
8875
- queueId: string | null;
8876
- contactId: string | null;
8972
+ firstResponseTime: number | null;
8877
8973
  caseId: number;
8878
8974
  entityName: string;
8975
+ contactId: string | null;
8976
+ queueId: string | null;
8879
8977
  agentId: string | null;
8880
8978
  startedDate: Date | null;
8881
8979
  handledTime: number | null;
8882
- firstResponseTime: number | null;
8883
8980
  wrapUpForm: {
8884
8981
  id: string;
8885
8982
  disposition: string | null;
@@ -8893,9 +8990,9 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
8893
8990
  updatedAt: Date;
8894
8991
  deletedAt: Date | null;
8895
8992
  }[];
8993
+ note: string | null;
8896
8994
  callFrom: string | null;
8897
8995
  callTo: string | null;
8898
- note: string | null;
8899
8996
  } | null;
8900
8997
  } | undefined;
8901
8998
  }>>;
@@ -9553,6 +9650,8 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
9553
9650
  updatedAt: string;
9554
9651
  deletedAt: string | null;
9555
9652
  platformId: string;
9653
+ platformMessageId: string;
9654
+ locale: "" | "th" | "mm" | "en" | null;
9556
9655
  room: {
9557
9656
  id?: string | undefined;
9558
9657
  createdAt?: string | undefined;
@@ -9578,7 +9677,6 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
9578
9677
  createdAt: string;
9579
9678
  updatedAt: string;
9580
9679
  deletedAt: string | null;
9581
- channelId: string;
9582
9680
  contact: {
9583
9681
  id: string;
9584
9682
  channel: string | null;
@@ -9683,6 +9781,7 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
9683
9781
  };
9684
9782
  }[] | undefined;
9685
9783
  };
9784
+ channelId: string;
9686
9785
  socialPlatformId: string;
9687
9786
  } | undefined;
9688
9787
  actor?: {
@@ -9805,14 +9904,14 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
9805
9904
  updatedAt: Date;
9806
9905
  deletedAt: Date | null;
9807
9906
  entityId: string;
9808
- queueId: string | null;
9809
- contactId: string | null;
9907
+ firstResponseTime: number | null;
9810
9908
  caseId: number;
9811
9909
  entityName: string;
9910
+ contactId: string | null;
9911
+ queueId: string | null;
9812
9912
  agentId: string | null;
9813
9913
  startedDate: Date | null;
9814
9914
  handledTime: number | null;
9815
- firstResponseTime: number | null;
9816
9915
  wrapUpForm: {
9817
9916
  id: string;
9818
9917
  disposition: string | null;
@@ -9826,14 +9925,12 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
9826
9925
  updatedAt: Date;
9827
9926
  deletedAt: Date | null;
9828
9927
  }[];
9928
+ note: string | null;
9829
9929
  callFrom: string | null;
9830
9930
  callTo: string | null;
9831
- note: string | null;
9832
9931
  } | null;
9833
9932
  } | undefined;
9834
9933
  } | null;
9835
- platformMessageId: string;
9836
- locale: "" | "th" | "mm" | "en" | null;
9837
9934
  message?: string | undefined;
9838
9935
  metadata?: any;
9839
9936
  replyPlatformMessageId?: string | undefined;
@@ -9993,6 +10090,8 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
9993
10090
  updatedAt: string;
9994
10091
  deletedAt: string | null;
9995
10092
  platformId: string;
10093
+ platformMessageId: string;
10094
+ locale: "" | "th" | "mm" | "en" | null;
9996
10095
  room: {
9997
10096
  id?: string | undefined;
9998
10097
  createdAt?: string | undefined;
@@ -10018,7 +10117,6 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
10018
10117
  createdAt: string;
10019
10118
  updatedAt: string;
10020
10119
  deletedAt: string | null;
10021
- channelId: string;
10022
10120
  contact: {
10023
10121
  id: string;
10024
10122
  channel: string | null;
@@ -10123,6 +10221,7 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
10123
10221
  };
10124
10222
  }[] | undefined;
10125
10223
  };
10224
+ channelId: string;
10126
10225
  socialPlatformId: string;
10127
10226
  } | undefined;
10128
10227
  actor?: {
@@ -10245,14 +10344,14 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
10245
10344
  updatedAt: Date;
10246
10345
  deletedAt: Date | null;
10247
10346
  entityId: string;
10248
- queueId: string | null;
10249
- contactId: string | null;
10347
+ firstResponseTime: number | null;
10250
10348
  caseId: number;
10251
10349
  entityName: string;
10350
+ contactId: string | null;
10351
+ queueId: string | null;
10252
10352
  agentId: string | null;
10253
10353
  startedDate: Date | null;
10254
10354
  handledTime: number | null;
10255
- firstResponseTime: number | null;
10256
10355
  wrapUpForm: {
10257
10356
  id: string;
10258
10357
  disposition: string | null;
@@ -10266,14 +10365,12 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
10266
10365
  updatedAt: Date;
10267
10366
  deletedAt: Date | null;
10268
10367
  }[];
10368
+ note: string | null;
10269
10369
  callFrom: string | null;
10270
10370
  callTo: string | null;
10271
- note: string | null;
10272
10371
  } | null;
10273
10372
  } | undefined;
10274
10373
  } | null;
10275
- platformMessageId: string;
10276
- locale: "" | "th" | "mm" | "en" | null;
10277
10374
  message?: string | undefined;
10278
10375
  metadata?: any;
10279
10376
  replyPlatformMessageId?: string | undefined;
@@ -10435,6 +10532,8 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
10435
10532
  updatedAt: string;
10436
10533
  deletedAt: string | null;
10437
10534
  platformId: string;
10535
+ platformMessageId: string;
10536
+ locale: "" | "th" | "mm" | "en" | null;
10438
10537
  room: {
10439
10538
  id?: string | undefined;
10440
10539
  createdAt?: string | undefined;
@@ -10460,7 +10559,6 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
10460
10559
  createdAt: string;
10461
10560
  updatedAt: string;
10462
10561
  deletedAt: string | null;
10463
- channelId: string;
10464
10562
  contact: {
10465
10563
  id: string;
10466
10564
  channel: string | null;
@@ -10565,6 +10663,7 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
10565
10663
  };
10566
10664
  }[] | undefined;
10567
10665
  };
10666
+ channelId: string;
10568
10667
  socialPlatformId: string;
10569
10668
  } | undefined;
10570
10669
  actor?: {
@@ -10687,14 +10786,14 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
10687
10786
  updatedAt: Date;
10688
10787
  deletedAt: Date | null;
10689
10788
  entityId: string;
10690
- queueId: string | null;
10691
- contactId: string | null;
10789
+ firstResponseTime: number | null;
10692
10790
  caseId: number;
10693
10791
  entityName: string;
10792
+ contactId: string | null;
10793
+ queueId: string | null;
10694
10794
  agentId: string | null;
10695
10795
  startedDate: Date | null;
10696
10796
  handledTime: number | null;
10697
- firstResponseTime: number | null;
10698
10797
  wrapUpForm: {
10699
10798
  id: string;
10700
10799
  disposition: string | null;
@@ -10708,14 +10807,12 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
10708
10807
  updatedAt: Date;
10709
10808
  deletedAt: Date | null;
10710
10809
  }[];
10810
+ note: string | null;
10711
10811
  callFrom: string | null;
10712
10812
  callTo: string | null;
10713
- note: string | null;
10714
10813
  } | null;
10715
10814
  } | undefined;
10716
10815
  } | null;
10717
- platformMessageId: string;
10718
- locale: "" | "th" | "mm" | "en" | null;
10719
10816
  message?: string | undefined;
10720
10817
  metadata?: any;
10721
10818
  replyPlatformMessageId?: string | undefined;
@@ -10877,6 +10974,8 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
10877
10974
  updatedAt: string;
10878
10975
  deletedAt: string | null;
10879
10976
  platformId: string;
10977
+ platformMessageId: string;
10978
+ locale: "" | "th" | "mm" | "en" | null;
10880
10979
  room: {
10881
10980
  id?: string | undefined;
10882
10981
  createdAt?: string | undefined;
@@ -10902,7 +11001,6 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
10902
11001
  createdAt: string;
10903
11002
  updatedAt: string;
10904
11003
  deletedAt: string | null;
10905
- channelId: string;
10906
11004
  contact: {
10907
11005
  id: string;
10908
11006
  channel: string | null;
@@ -11007,6 +11105,7 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
11007
11105
  };
11008
11106
  }[] | undefined;
11009
11107
  };
11108
+ channelId: string;
11010
11109
  socialPlatformId: string;
11011
11110
  } | undefined;
11012
11111
  actor?: {
@@ -11129,14 +11228,14 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
11129
11228
  updatedAt: Date;
11130
11229
  deletedAt: Date | null;
11131
11230
  entityId: string;
11132
- queueId: string | null;
11133
- contactId: string | null;
11231
+ firstResponseTime: number | null;
11134
11232
  caseId: number;
11135
11233
  entityName: string;
11234
+ contactId: string | null;
11235
+ queueId: string | null;
11136
11236
  agentId: string | null;
11137
11237
  startedDate: Date | null;
11138
11238
  handledTime: number | null;
11139
- firstResponseTime: number | null;
11140
11239
  wrapUpForm: {
11141
11240
  id: string;
11142
11241
  disposition: string | null;
@@ -11150,14 +11249,12 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
11150
11249
  updatedAt: Date;
11151
11250
  deletedAt: Date | null;
11152
11251
  }[];
11252
+ note: string | null;
11153
11253
  callFrom: string | null;
11154
11254
  callTo: string | null;
11155
- note: string | null;
11156
11255
  } | null;
11157
11256
  } | undefined;
11158
11257
  } | null;
11159
- platformMessageId: string;
11160
- locale: "" | "th" | "mm" | "en" | null;
11161
11258
  message?: string | undefined;
11162
11259
  metadata?: any;
11163
11260
  replyPlatformMessageId?: string | undefined;