@kl1/contracts 1.0.73 → 1.0.75

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.
@@ -2775,14 +2775,14 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
2775
2775
  telephonySignature: string | null;
2776
2776
  };
2777
2777
  }>;
2778
- channel: z.ZodOptional<z.ZodObject<{
2779
- id: z.ZodOptional<z.ZodString>;
2780
- createdAt: z.ZodOptional<z.ZodDate>;
2781
- updatedAt: z.ZodOptional<z.ZodDate>;
2782
- deletedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
2783
- name: z.ZodOptional<z.ZodString>;
2784
- type: z.ZodOptional<z.ZodEnum<["whatsapp", "messenger", "telegram", "line", "viber", "kakao", "shopee", "lazada", "instagram"]>>;
2785
- metadata: z.ZodOptional<z.ZodObject<{
2778
+ channel: z.ZodObject<{
2779
+ id: z.ZodString;
2780
+ createdAt: z.ZodDate;
2781
+ updatedAt: z.ZodDate;
2782
+ deletedAt: z.ZodNullable<z.ZodDate>;
2783
+ name: z.ZodString;
2784
+ type: z.ZodEnum<["whatsapp", "messenger", "telegram", "line", "viber", "kakao", "shopee", "lazada", "instagram"]>;
2785
+ metadata: z.ZodObject<{
2786
2786
  id: z.ZodString;
2787
2787
  name: z.ZodString;
2788
2788
  accessToken: z.ZodString;
@@ -2800,14 +2800,14 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
2800
2800
  accessToken: string;
2801
2801
  channelSecret?: string | undefined;
2802
2802
  additionalCredentials?: any;
2803
- }>>;
2804
- brandName: z.ZodOptional<z.ZodString>;
2805
- platformId: z.ZodOptional<z.ZodString>;
2806
- status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<true>, z.ZodLiteral<false>]>>;
2807
- isReloginRequired: z.ZodOptional<z.ZodBoolean>;
2808
- connectedUserName: z.ZodOptional<z.ZodString>;
2809
- connectedUserId: z.ZodOptional<z.ZodString>;
2810
- actor: z.ZodOptional<z.ZodObject<{
2803
+ }>;
2804
+ brandName: z.ZodString;
2805
+ platformId: z.ZodString;
2806
+ status: z.ZodUnion<[z.ZodLiteral<true>, z.ZodLiteral<false>]>;
2807
+ isReloginRequired: z.ZodBoolean;
2808
+ connectedUserName: z.ZodString;
2809
+ connectedUserId: z.ZodString;
2810
+ actor: z.ZodObject<{
2811
2811
  id: z.ZodString;
2812
2812
  createdAt: z.ZodDate;
2813
2813
  updatedAt: z.ZodDate;
@@ -3010,28 +3010,23 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
3010
3010
  extensionName: string;
3011
3011
  telephonySignature: string | null;
3012
3012
  };
3013
- }>>;
3013
+ }>;
3014
3014
  }, "strip", z.ZodTypeAny, {
3015
- id?: string | undefined;
3016
- createdAt?: Date | undefined;
3017
- updatedAt?: Date | undefined;
3018
- deletedAt?: Date | null | undefined;
3019
- name?: string | undefined;
3020
- type?: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram" | undefined;
3021
- metadata?: {
3015
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
3016
+ id: string;
3017
+ name: string;
3018
+ metadata: {
3022
3019
  id: string;
3023
3020
  name: string;
3024
3021
  accessToken: string;
3025
3022
  channelSecret?: string | undefined;
3026
3023
  additionalCredentials?: any;
3027
- } | undefined;
3028
- brandName?: string | undefined;
3029
- platformId?: string | undefined;
3030
- status?: boolean | undefined;
3031
- isReloginRequired?: boolean | undefined;
3032
- connectedUserName?: string | undefined;
3033
- connectedUserId?: string | undefined;
3034
- actor?: {
3024
+ };
3025
+ status: boolean;
3026
+ createdAt: Date;
3027
+ updatedAt: Date;
3028
+ deletedAt: Date | null;
3029
+ actor: {
3035
3030
  id: string;
3036
3031
  address: string | null;
3037
3032
  name: string;
@@ -3074,28 +3069,28 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
3074
3069
  extensionName: string;
3075
3070
  telephonySignature: string | null;
3076
3071
  };
3077
- } | undefined;
3072
+ };
3073
+ brandName: string;
3074
+ platformId: string;
3075
+ isReloginRequired: boolean;
3076
+ connectedUserName: string;
3077
+ connectedUserId: string;
3078
3078
  }, {
3079
- id?: string | undefined;
3080
- createdAt?: Date | undefined;
3081
- updatedAt?: Date | undefined;
3082
- deletedAt?: Date | null | undefined;
3083
- name?: string | undefined;
3084
- type?: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram" | undefined;
3085
- metadata?: {
3079
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
3080
+ id: string;
3081
+ name: string;
3082
+ metadata: {
3086
3083
  id: string;
3087
3084
  name: string;
3088
3085
  accessToken: string;
3089
3086
  channelSecret?: string | undefined;
3090
3087
  additionalCredentials?: any;
3091
- } | undefined;
3092
- brandName?: string | undefined;
3093
- platformId?: string | undefined;
3094
- status?: boolean | undefined;
3095
- isReloginRequired?: boolean | undefined;
3096
- connectedUserName?: string | undefined;
3097
- connectedUserId?: string | undefined;
3098
- actor?: {
3088
+ };
3089
+ status: boolean;
3090
+ createdAt: Date;
3091
+ updatedAt: Date;
3092
+ deletedAt: Date | null;
3093
+ actor: {
3099
3094
  id: string;
3100
3095
  address: string | null;
3101
3096
  name: string;
@@ -3138,8 +3133,13 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
3138
3133
  extensionName: string;
3139
3134
  telephonySignature: string | null;
3140
3135
  };
3141
- } | undefined;
3142
- }>>;
3136
+ };
3137
+ brandName: string;
3138
+ platformId: string;
3139
+ isReloginRequired: boolean;
3140
+ connectedUserName: string;
3141
+ connectedUserId: string;
3142
+ }>;
3143
3143
  cxlog: z.ZodObject<{
3144
3144
  id: z.ZodString;
3145
3145
  createdAt: z.ZodDate;
@@ -3156,7 +3156,6 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
3156
3156
  startedDate: z.ZodNullable<z.ZodDate>;
3157
3157
  handledTime: z.ZodNullable<z.ZodNumber>;
3158
3158
  firstResponseTime: z.ZodNullable<z.ZodNumber>;
3159
- disposition: z.ZodNullable<z.ZodString>;
3160
3159
  wrapUpForm: z.ZodNullable<z.ZodObject<{
3161
3160
  id: z.ZodString;
3162
3161
  createdAt: z.ZodDate;
@@ -3221,7 +3220,6 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
3221
3220
  }, "strip", z.ZodTypeAny, {
3222
3221
  id: string;
3223
3222
  channel: string | null;
3224
- disposition: string | null;
3225
3223
  direction: string | null;
3226
3224
  createdAt: Date;
3227
3225
  updatedAt: Date;
@@ -3255,7 +3253,6 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
3255
3253
  }, {
3256
3254
  id: string;
3257
3255
  channel: string | null;
3258
- disposition: string | null;
3259
3256
  direction: string | null;
3260
3257
  createdAt: Date;
3261
3258
  updatedAt: Date;
@@ -3289,6 +3286,71 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
3289
3286
  }>;
3290
3287
  }, "strip", z.ZodTypeAny, {
3291
3288
  id: string;
3289
+ channel: {
3290
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
3291
+ id: string;
3292
+ name: string;
3293
+ metadata: {
3294
+ id: string;
3295
+ name: string;
3296
+ accessToken: string;
3297
+ channelSecret?: string | undefined;
3298
+ additionalCredentials?: any;
3299
+ };
3300
+ status: boolean;
3301
+ createdAt: Date;
3302
+ updatedAt: Date;
3303
+ deletedAt: Date | null;
3304
+ actor: {
3305
+ id: string;
3306
+ address: string | null;
3307
+ name: string;
3308
+ email: string;
3309
+ createdAt: Date;
3310
+ updatedAt: Date;
3311
+ deletedAt: Date | null;
3312
+ emailVerifiedAt: Date | null;
3313
+ password: string;
3314
+ phone: string | null;
3315
+ notificationCount: number | null;
3316
+ roles: {
3317
+ id: string;
3318
+ description: string | null;
3319
+ createdAt: Date;
3320
+ updatedAt: Date;
3321
+ deletedAt: Date | null;
3322
+ systemName: string;
3323
+ displayName: string;
3324
+ permissions: {
3325
+ id: string;
3326
+ description: string | null;
3327
+ createdAt: Date;
3328
+ updatedAt: Date;
3329
+ deletedAt: Date | null;
3330
+ systemName: string;
3331
+ displayName: string;
3332
+ }[];
3333
+ }[];
3334
+ extension: {
3335
+ id: string;
3336
+ createdAt: Date;
3337
+ updatedAt: Date;
3338
+ deletedAt: Date | null;
3339
+ userId: string | null;
3340
+ sipServerUrl: string;
3341
+ sipUserName: string;
3342
+ webphoneLoginUser: string;
3343
+ extensionId: string | null;
3344
+ extensionName: string;
3345
+ telephonySignature: string | null;
3346
+ };
3347
+ };
3348
+ brandName: string;
3349
+ platformId: string;
3350
+ isReloginRequired: boolean;
3351
+ connectedUserName: string;
3352
+ connectedUserId: string;
3353
+ };
3292
3354
  direction: "incoming" | "outgoing" | "system";
3293
3355
  createdAt: Date;
3294
3356
  updatedAt: Date;
@@ -3503,7 +3565,6 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
3503
3565
  cxlog: {
3504
3566
  id: string;
3505
3567
  channel: string | null;
3506
- disposition: string | null;
3507
3568
  direction: string | null;
3508
3569
  createdAt: Date;
3509
3570
  updatedAt: Date;
@@ -3535,27 +3596,24 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
3535
3596
  callTo: string | null;
3536
3597
  } | null;
3537
3598
  };
3538
- channel?: {
3539
- id?: string | undefined;
3540
- createdAt?: Date | undefined;
3541
- updatedAt?: Date | undefined;
3542
- deletedAt?: Date | null | undefined;
3543
- name?: string | undefined;
3544
- type?: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram" | undefined;
3545
- metadata?: {
3599
+ }, {
3600
+ id: string;
3601
+ channel: {
3602
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
3603
+ id: string;
3604
+ name: string;
3605
+ metadata: {
3546
3606
  id: string;
3547
3607
  name: string;
3548
3608
  accessToken: string;
3549
3609
  channelSecret?: string | undefined;
3550
3610
  additionalCredentials?: any;
3551
- } | undefined;
3552
- brandName?: string | undefined;
3553
- platformId?: string | undefined;
3554
- status?: boolean | undefined;
3555
- isReloginRequired?: boolean | undefined;
3556
- connectedUserName?: string | undefined;
3557
- connectedUserId?: string | undefined;
3558
- actor?: {
3611
+ };
3612
+ status: boolean;
3613
+ createdAt: Date;
3614
+ updatedAt: Date;
3615
+ deletedAt: Date | null;
3616
+ actor: {
3559
3617
  id: string;
3560
3618
  address: string | null;
3561
3619
  name: string;
@@ -3598,10 +3656,13 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
3598
3656
  extensionName: string;
3599
3657
  telephonySignature: string | null;
3600
3658
  };
3601
- } | undefined;
3602
- } | undefined;
3603
- }, {
3604
- id: string;
3659
+ };
3660
+ brandName: string;
3661
+ platformId: string;
3662
+ isReloginRequired: boolean;
3663
+ connectedUserName: string;
3664
+ connectedUserId: string;
3665
+ };
3605
3666
  direction: "incoming" | "outgoing" | "system";
3606
3667
  createdAt: Date;
3607
3668
  updatedAt: Date;
@@ -3816,7 +3877,6 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
3816
3877
  cxlog: {
3817
3878
  id: string;
3818
3879
  channel: string | null;
3819
- disposition: string | null;
3820
3880
  direction: string | null;
3821
3881
  createdAt: Date;
3822
3882
  updatedAt: Date;
@@ -3848,71 +3908,6 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
3848
3908
  callTo: string | null;
3849
3909
  } | null;
3850
3910
  };
3851
- channel?: {
3852
- id?: string | undefined;
3853
- createdAt?: Date | undefined;
3854
- updatedAt?: Date | undefined;
3855
- deletedAt?: Date | null | undefined;
3856
- name?: string | undefined;
3857
- type?: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram" | undefined;
3858
- metadata?: {
3859
- id: string;
3860
- name: string;
3861
- accessToken: string;
3862
- channelSecret?: string | undefined;
3863
- additionalCredentials?: any;
3864
- } | undefined;
3865
- brandName?: string | undefined;
3866
- platformId?: string | undefined;
3867
- status?: boolean | undefined;
3868
- isReloginRequired?: boolean | undefined;
3869
- connectedUserName?: string | undefined;
3870
- connectedUserId?: string | undefined;
3871
- actor?: {
3872
- id: string;
3873
- address: string | null;
3874
- name: string;
3875
- email: string;
3876
- createdAt: Date;
3877
- updatedAt: Date;
3878
- deletedAt: Date | null;
3879
- emailVerifiedAt: Date | null;
3880
- password: string;
3881
- phone: string | null;
3882
- notificationCount: number | null;
3883
- roles: {
3884
- id: string;
3885
- description: string | null;
3886
- createdAt: Date;
3887
- updatedAt: Date;
3888
- deletedAt: Date | null;
3889
- systemName: string;
3890
- displayName: string;
3891
- permissions: {
3892
- id: string;
3893
- description: string | null;
3894
- createdAt: Date;
3895
- updatedAt: Date;
3896
- deletedAt: Date | null;
3897
- systemName: string;
3898
- displayName: string;
3899
- }[];
3900
- }[];
3901
- extension: {
3902
- id: string;
3903
- createdAt: Date;
3904
- updatedAt: Date;
3905
- deletedAt: Date | null;
3906
- userId: string | null;
3907
- sipServerUrl: string;
3908
- sipUserName: string;
3909
- webphoneLoginUser: string;
3910
- extensionId: string | null;
3911
- extensionName: string;
3912
- telephonySignature: string | null;
3913
- };
3914
- } | undefined;
3915
- } | undefined;
3916
3911
  }>;
3917
3912
  upload: z.ZodObject<{
3918
3913
  id: z.ZodString;
@@ -4666,6 +4661,71 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
4666
4661
  imageSetId: string;
4667
4662
  room: {
4668
4663
  id: string;
4664
+ channel: {
4665
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
4666
+ id: string;
4667
+ name: string;
4668
+ metadata: {
4669
+ id: string;
4670
+ name: string;
4671
+ accessToken: string;
4672
+ channelSecret?: string | undefined;
4673
+ additionalCredentials?: any;
4674
+ };
4675
+ status: boolean;
4676
+ createdAt: Date;
4677
+ updatedAt: Date;
4678
+ deletedAt: Date | null;
4679
+ actor: {
4680
+ id: string;
4681
+ address: string | null;
4682
+ name: string;
4683
+ email: string;
4684
+ createdAt: Date;
4685
+ updatedAt: Date;
4686
+ deletedAt: Date | null;
4687
+ emailVerifiedAt: Date | null;
4688
+ password: string;
4689
+ phone: string | null;
4690
+ notificationCount: number | null;
4691
+ roles: {
4692
+ id: string;
4693
+ description: string | null;
4694
+ createdAt: Date;
4695
+ updatedAt: Date;
4696
+ deletedAt: Date | null;
4697
+ systemName: string;
4698
+ displayName: string;
4699
+ permissions: {
4700
+ id: string;
4701
+ description: string | null;
4702
+ createdAt: Date;
4703
+ updatedAt: Date;
4704
+ deletedAt: Date | null;
4705
+ systemName: string;
4706
+ displayName: string;
4707
+ }[];
4708
+ }[];
4709
+ extension: {
4710
+ id: string;
4711
+ createdAt: Date;
4712
+ updatedAt: Date;
4713
+ deletedAt: Date | null;
4714
+ userId: string | null;
4715
+ sipServerUrl: string;
4716
+ sipUserName: string;
4717
+ webphoneLoginUser: string;
4718
+ extensionId: string | null;
4719
+ extensionName: string;
4720
+ telephonySignature: string | null;
4721
+ };
4722
+ };
4723
+ brandName: string;
4724
+ platformId: string;
4725
+ isReloginRequired: boolean;
4726
+ connectedUserName: string;
4727
+ connectedUserId: string;
4728
+ };
4669
4729
  direction: "incoming" | "outgoing" | "system";
4670
4730
  createdAt: Date;
4671
4731
  updatedAt: Date;
@@ -4880,7 +4940,6 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
4880
4940
  cxlog: {
4881
4941
  id: string;
4882
4942
  channel: string | null;
4883
- disposition: string | null;
4884
4943
  direction: string | null;
4885
4944
  createdAt: Date;
4886
4945
  updatedAt: Date;
@@ -4912,71 +4971,6 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
4912
4971
  callTo: string | null;
4913
4972
  } | null;
4914
4973
  };
4915
- channel?: {
4916
- id?: string | undefined;
4917
- createdAt?: Date | undefined;
4918
- updatedAt?: Date | undefined;
4919
- deletedAt?: Date | null | undefined;
4920
- name?: string | undefined;
4921
- type?: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram" | undefined;
4922
- metadata?: {
4923
- id: string;
4924
- name: string;
4925
- accessToken: string;
4926
- channelSecret?: string | undefined;
4927
- additionalCredentials?: any;
4928
- } | undefined;
4929
- brandName?: string | undefined;
4930
- platformId?: string | undefined;
4931
- status?: boolean | undefined;
4932
- isReloginRequired?: boolean | undefined;
4933
- connectedUserName?: string | undefined;
4934
- connectedUserId?: string | undefined;
4935
- actor?: {
4936
- id: string;
4937
- address: string | null;
4938
- name: string;
4939
- email: string;
4940
- createdAt: Date;
4941
- updatedAt: Date;
4942
- deletedAt: Date | null;
4943
- emailVerifiedAt: Date | null;
4944
- password: string;
4945
- phone: string | null;
4946
- notificationCount: number | null;
4947
- roles: {
4948
- id: string;
4949
- description: string | null;
4950
- createdAt: Date;
4951
- updatedAt: Date;
4952
- deletedAt: Date | null;
4953
- systemName: string;
4954
- displayName: string;
4955
- permissions: {
4956
- id: string;
4957
- description: string | null;
4958
- createdAt: Date;
4959
- updatedAt: Date;
4960
- deletedAt: Date | null;
4961
- systemName: string;
4962
- displayName: string;
4963
- }[];
4964
- }[];
4965
- extension: {
4966
- id: string;
4967
- createdAt: Date;
4968
- updatedAt: Date;
4969
- deletedAt: Date | null;
4970
- userId: string | null;
4971
- sipServerUrl: string;
4972
- sipUserName: string;
4973
- webphoneLoginUser: string;
4974
- extensionId: string | null;
4975
- extensionName: string;
4976
- telephonySignature: string | null;
4977
- };
4978
- } | undefined;
4979
- } | undefined;
4980
4974
  };
4981
4975
  upload: {
4982
4976
  id: string;
@@ -5142,6 +5136,71 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
5142
5136
  imageSetId: string;
5143
5137
  room: {
5144
5138
  id: string;
5139
+ channel: {
5140
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
5141
+ id: string;
5142
+ name: string;
5143
+ metadata: {
5144
+ id: string;
5145
+ name: string;
5146
+ accessToken: string;
5147
+ channelSecret?: string | undefined;
5148
+ additionalCredentials?: any;
5149
+ };
5150
+ status: boolean;
5151
+ createdAt: Date;
5152
+ updatedAt: Date;
5153
+ deletedAt: Date | null;
5154
+ actor: {
5155
+ id: string;
5156
+ address: string | null;
5157
+ name: string;
5158
+ email: string;
5159
+ createdAt: Date;
5160
+ updatedAt: Date;
5161
+ deletedAt: Date | null;
5162
+ emailVerifiedAt: Date | null;
5163
+ password: string;
5164
+ phone: string | null;
5165
+ notificationCount: number | null;
5166
+ roles: {
5167
+ id: string;
5168
+ description: string | null;
5169
+ createdAt: Date;
5170
+ updatedAt: Date;
5171
+ deletedAt: Date | null;
5172
+ systemName: string;
5173
+ displayName: string;
5174
+ permissions: {
5175
+ id: string;
5176
+ description: string | null;
5177
+ createdAt: Date;
5178
+ updatedAt: Date;
5179
+ deletedAt: Date | null;
5180
+ systemName: string;
5181
+ displayName: string;
5182
+ }[];
5183
+ }[];
5184
+ extension: {
5185
+ id: string;
5186
+ createdAt: Date;
5187
+ updatedAt: Date;
5188
+ deletedAt: Date | null;
5189
+ userId: string | null;
5190
+ sipServerUrl: string;
5191
+ sipUserName: string;
5192
+ webphoneLoginUser: string;
5193
+ extensionId: string | null;
5194
+ extensionName: string;
5195
+ telephonySignature: string | null;
5196
+ };
5197
+ };
5198
+ brandName: string;
5199
+ platformId: string;
5200
+ isReloginRequired: boolean;
5201
+ connectedUserName: string;
5202
+ connectedUserId: string;
5203
+ };
5145
5204
  direction: "incoming" | "outgoing" | "system";
5146
5205
  createdAt: Date;
5147
5206
  updatedAt: Date;
@@ -5356,7 +5415,6 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
5356
5415
  cxlog: {
5357
5416
  id: string;
5358
5417
  channel: string | null;
5359
- disposition: string | null;
5360
5418
  direction: string | null;
5361
5419
  createdAt: Date;
5362
5420
  updatedAt: Date;
@@ -5388,71 +5446,6 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
5388
5446
  callTo: string | null;
5389
5447
  } | null;
5390
5448
  };
5391
- channel?: {
5392
- id?: string | undefined;
5393
- createdAt?: Date | undefined;
5394
- updatedAt?: Date | undefined;
5395
- deletedAt?: Date | null | undefined;
5396
- name?: string | undefined;
5397
- type?: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram" | undefined;
5398
- metadata?: {
5399
- id: string;
5400
- name: string;
5401
- accessToken: string;
5402
- channelSecret?: string | undefined;
5403
- additionalCredentials?: any;
5404
- } | undefined;
5405
- brandName?: string | undefined;
5406
- platformId?: string | undefined;
5407
- status?: boolean | undefined;
5408
- isReloginRequired?: boolean | undefined;
5409
- connectedUserName?: string | undefined;
5410
- connectedUserId?: string | undefined;
5411
- actor?: {
5412
- id: string;
5413
- address: string | null;
5414
- name: string;
5415
- email: string;
5416
- createdAt: Date;
5417
- updatedAt: Date;
5418
- deletedAt: Date | null;
5419
- emailVerifiedAt: Date | null;
5420
- password: string;
5421
- phone: string | null;
5422
- notificationCount: number | null;
5423
- roles: {
5424
- id: string;
5425
- description: string | null;
5426
- createdAt: Date;
5427
- updatedAt: Date;
5428
- deletedAt: Date | null;
5429
- systemName: string;
5430
- displayName: string;
5431
- permissions: {
5432
- id: string;
5433
- description: string | null;
5434
- createdAt: Date;
5435
- updatedAt: Date;
5436
- deletedAt: Date | null;
5437
- systemName: string;
5438
- displayName: string;
5439
- }[];
5440
- }[];
5441
- extension: {
5442
- id: string;
5443
- createdAt: Date;
5444
- updatedAt: Date;
5445
- deletedAt: Date | null;
5446
- userId: string | null;
5447
- sipServerUrl: string;
5448
- sipUserName: string;
5449
- webphoneLoginUser: string;
5450
- extensionId: string | null;
5451
- extensionName: string;
5452
- telephonySignature: string | null;
5453
- };
5454
- } | undefined;
5455
- } | undefined;
5456
5449
  };
5457
5450
  upload: {
5458
5451
  id: string;
@@ -5620,6 +5613,71 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
5620
5613
  imageSetId: string;
5621
5614
  room: {
5622
5615
  id: string;
5616
+ channel: {
5617
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
5618
+ id: string;
5619
+ name: string;
5620
+ metadata: {
5621
+ id: string;
5622
+ name: string;
5623
+ accessToken: string;
5624
+ channelSecret?: string | undefined;
5625
+ additionalCredentials?: any;
5626
+ };
5627
+ status: boolean;
5628
+ createdAt: Date;
5629
+ updatedAt: Date;
5630
+ deletedAt: Date | null;
5631
+ actor: {
5632
+ id: string;
5633
+ address: string | null;
5634
+ name: string;
5635
+ email: string;
5636
+ createdAt: Date;
5637
+ updatedAt: Date;
5638
+ deletedAt: Date | null;
5639
+ emailVerifiedAt: Date | null;
5640
+ password: string;
5641
+ phone: string | null;
5642
+ notificationCount: number | null;
5643
+ roles: {
5644
+ id: string;
5645
+ description: string | null;
5646
+ createdAt: Date;
5647
+ updatedAt: Date;
5648
+ deletedAt: Date | null;
5649
+ systemName: string;
5650
+ displayName: string;
5651
+ permissions: {
5652
+ id: string;
5653
+ description: string | null;
5654
+ createdAt: Date;
5655
+ updatedAt: Date;
5656
+ deletedAt: Date | null;
5657
+ systemName: string;
5658
+ displayName: string;
5659
+ }[];
5660
+ }[];
5661
+ extension: {
5662
+ id: string;
5663
+ createdAt: Date;
5664
+ updatedAt: Date;
5665
+ deletedAt: Date | null;
5666
+ userId: string | null;
5667
+ sipServerUrl: string;
5668
+ sipUserName: string;
5669
+ webphoneLoginUser: string;
5670
+ extensionId: string | null;
5671
+ extensionName: string;
5672
+ telephonySignature: string | null;
5673
+ };
5674
+ };
5675
+ brandName: string;
5676
+ platformId: string;
5677
+ isReloginRequired: boolean;
5678
+ connectedUserName: string;
5679
+ connectedUserId: string;
5680
+ };
5623
5681
  direction: "incoming" | "outgoing" | "system";
5624
5682
  createdAt: Date;
5625
5683
  updatedAt: Date;
@@ -5834,7 +5892,6 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
5834
5892
  cxlog: {
5835
5893
  id: string;
5836
5894
  channel: string | null;
5837
- disposition: string | null;
5838
5895
  direction: string | null;
5839
5896
  createdAt: Date;
5840
5897
  updatedAt: Date;
@@ -5866,71 +5923,6 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
5866
5923
  callTo: string | null;
5867
5924
  } | null;
5868
5925
  };
5869
- channel?: {
5870
- id?: string | undefined;
5871
- createdAt?: Date | undefined;
5872
- updatedAt?: Date | undefined;
5873
- deletedAt?: Date | null | undefined;
5874
- name?: string | undefined;
5875
- type?: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram" | undefined;
5876
- metadata?: {
5877
- id: string;
5878
- name: string;
5879
- accessToken: string;
5880
- channelSecret?: string | undefined;
5881
- additionalCredentials?: any;
5882
- } | undefined;
5883
- brandName?: string | undefined;
5884
- platformId?: string | undefined;
5885
- status?: boolean | undefined;
5886
- isReloginRequired?: boolean | undefined;
5887
- connectedUserName?: string | undefined;
5888
- connectedUserId?: string | undefined;
5889
- actor?: {
5890
- id: string;
5891
- address: string | null;
5892
- name: string;
5893
- email: string;
5894
- createdAt: Date;
5895
- updatedAt: Date;
5896
- deletedAt: Date | null;
5897
- emailVerifiedAt: Date | null;
5898
- password: string;
5899
- phone: string | null;
5900
- notificationCount: number | null;
5901
- roles: {
5902
- id: string;
5903
- description: string | null;
5904
- createdAt: Date;
5905
- updatedAt: Date;
5906
- deletedAt: Date | null;
5907
- systemName: string;
5908
- displayName: string;
5909
- permissions: {
5910
- id: string;
5911
- description: string | null;
5912
- createdAt: Date;
5913
- updatedAt: Date;
5914
- deletedAt: Date | null;
5915
- systemName: string;
5916
- displayName: string;
5917
- }[];
5918
- }[];
5919
- extension: {
5920
- id: string;
5921
- createdAt: Date;
5922
- updatedAt: Date;
5923
- deletedAt: Date | null;
5924
- userId: string | null;
5925
- sipServerUrl: string;
5926
- sipUserName: string;
5927
- webphoneLoginUser: string;
5928
- extensionId: string | null;
5929
- extensionName: string;
5930
- telephonySignature: string | null;
5931
- };
5932
- } | undefined;
5933
- } | undefined;
5934
5926
  };
5935
5927
  upload: {
5936
5928
  id: string;
@@ -6099,6 +6091,71 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
6099
6091
  imageSetId: string;
6100
6092
  room: {
6101
6093
  id: string;
6094
+ channel: {
6095
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
6096
+ id: string;
6097
+ name: string;
6098
+ metadata: {
6099
+ id: string;
6100
+ name: string;
6101
+ accessToken: string;
6102
+ channelSecret?: string | undefined;
6103
+ additionalCredentials?: any;
6104
+ };
6105
+ status: boolean;
6106
+ createdAt: Date;
6107
+ updatedAt: Date;
6108
+ deletedAt: Date | null;
6109
+ actor: {
6110
+ id: string;
6111
+ address: string | null;
6112
+ name: string;
6113
+ email: string;
6114
+ createdAt: Date;
6115
+ updatedAt: Date;
6116
+ deletedAt: Date | null;
6117
+ emailVerifiedAt: Date | null;
6118
+ password: string;
6119
+ phone: string | null;
6120
+ notificationCount: number | null;
6121
+ roles: {
6122
+ id: string;
6123
+ description: string | null;
6124
+ createdAt: Date;
6125
+ updatedAt: Date;
6126
+ deletedAt: Date | null;
6127
+ systemName: string;
6128
+ displayName: string;
6129
+ permissions: {
6130
+ id: string;
6131
+ description: string | null;
6132
+ createdAt: Date;
6133
+ updatedAt: Date;
6134
+ deletedAt: Date | null;
6135
+ systemName: string;
6136
+ displayName: string;
6137
+ }[];
6138
+ }[];
6139
+ extension: {
6140
+ id: string;
6141
+ createdAt: Date;
6142
+ updatedAt: Date;
6143
+ deletedAt: Date | null;
6144
+ userId: string | null;
6145
+ sipServerUrl: string;
6146
+ sipUserName: string;
6147
+ webphoneLoginUser: string;
6148
+ extensionId: string | null;
6149
+ extensionName: string;
6150
+ telephonySignature: string | null;
6151
+ };
6152
+ };
6153
+ brandName: string;
6154
+ platformId: string;
6155
+ isReloginRequired: boolean;
6156
+ connectedUserName: string;
6157
+ connectedUserId: string;
6158
+ };
6102
6159
  direction: "incoming" | "outgoing" | "system";
6103
6160
  createdAt: Date;
6104
6161
  updatedAt: Date;
@@ -6313,7 +6370,6 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
6313
6370
  cxlog: {
6314
6371
  id: string;
6315
6372
  channel: string | null;
6316
- disposition: string | null;
6317
6373
  direction: string | null;
6318
6374
  createdAt: Date;
6319
6375
  updatedAt: Date;
@@ -6345,71 +6401,6 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
6345
6401
  callTo: string | null;
6346
6402
  } | null;
6347
6403
  };
6348
- channel?: {
6349
- id?: string | undefined;
6350
- createdAt?: Date | undefined;
6351
- updatedAt?: Date | undefined;
6352
- deletedAt?: Date | null | undefined;
6353
- name?: string | undefined;
6354
- type?: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram" | undefined;
6355
- metadata?: {
6356
- id: string;
6357
- name: string;
6358
- accessToken: string;
6359
- channelSecret?: string | undefined;
6360
- additionalCredentials?: any;
6361
- } | undefined;
6362
- brandName?: string | undefined;
6363
- platformId?: string | undefined;
6364
- status?: boolean | undefined;
6365
- isReloginRequired?: boolean | undefined;
6366
- connectedUserName?: string | undefined;
6367
- connectedUserId?: string | undefined;
6368
- actor?: {
6369
- id: string;
6370
- address: string | null;
6371
- name: string;
6372
- email: string;
6373
- createdAt: Date;
6374
- updatedAt: Date;
6375
- deletedAt: Date | null;
6376
- emailVerifiedAt: Date | null;
6377
- password: string;
6378
- phone: string | null;
6379
- notificationCount: number | null;
6380
- roles: {
6381
- id: string;
6382
- description: string | null;
6383
- createdAt: Date;
6384
- updatedAt: Date;
6385
- deletedAt: Date | null;
6386
- systemName: string;
6387
- displayName: string;
6388
- permissions: {
6389
- id: string;
6390
- description: string | null;
6391
- createdAt: Date;
6392
- updatedAt: Date;
6393
- deletedAt: Date | null;
6394
- systemName: string;
6395
- displayName: string;
6396
- }[];
6397
- }[];
6398
- extension: {
6399
- id: string;
6400
- createdAt: Date;
6401
- updatedAt: Date;
6402
- deletedAt: Date | null;
6403
- userId: string | null;
6404
- sipServerUrl: string;
6405
- sipUserName: string;
6406
- webphoneLoginUser: string;
6407
- extensionId: string | null;
6408
- extensionName: string;
6409
- telephonySignature: string | null;
6410
- };
6411
- } | undefined;
6412
- } | undefined;
6413
6404
  };
6414
6405
  upload: {
6415
6406
  id: string;
@@ -8096,7 +8087,6 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
8096
8087
  startedDate: z.ZodNullable<z.ZodDate>;
8097
8088
  handledTime: z.ZodNullable<z.ZodNumber>;
8098
8089
  firstResponseTime: z.ZodNullable<z.ZodNumber>;
8099
- disposition: z.ZodNullable<z.ZodString>;
8100
8090
  wrapUpForm: z.ZodNullable<z.ZodObject<{
8101
8091
  id: z.ZodString;
8102
8092
  createdAt: z.ZodDate;
@@ -8161,7 +8151,6 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
8161
8151
  }, "strip", z.ZodTypeAny, {
8162
8152
  id: string;
8163
8153
  channel: string | null;
8164
- disposition: string | null;
8165
8154
  direction: string | null;
8166
8155
  createdAt: Date;
8167
8156
  updatedAt: Date;
@@ -8195,7 +8184,6 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
8195
8184
  }, {
8196
8185
  id: string;
8197
8186
  channel: string | null;
8198
- disposition: string | null;
8199
8187
  direction: string | null;
8200
8188
  createdAt: Date;
8201
8189
  updatedAt: Date;
@@ -8466,7 +8454,6 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
8466
8454
  cxlog?: {
8467
8455
  id: string;
8468
8456
  channel: string | null;
8469
- disposition: string | null;
8470
8457
  direction: string | null;
8471
8458
  createdAt: Date;
8472
8459
  updatedAt: Date;
@@ -8737,7 +8724,6 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
8737
8724
  cxlog?: {
8738
8725
  id: string;
8739
8726
  channel: string | null;
8740
- disposition: string | null;
8741
8727
  direction: string | null;
8742
8728
  createdAt: Date;
8743
8729
  updatedAt: Date;
@@ -9665,7 +9651,6 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
9665
9651
  cxlog?: {
9666
9652
  id: string;
9667
9653
  channel: string | null;
9668
- disposition: string | null;
9669
9654
  direction: string | null;
9670
9655
  createdAt: Date;
9671
9656
  updatedAt: Date;
@@ -10098,7 +10083,6 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
10098
10083
  cxlog?: {
10099
10084
  id: string;
10100
10085
  channel: string | null;
10101
- disposition: string | null;
10102
10086
  direction: string | null;
10103
10087
  createdAt: Date;
10104
10088
  updatedAt: Date;
@@ -10533,7 +10517,6 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
10533
10517
  cxlog?: {
10534
10518
  id: string;
10535
10519
  channel: string | null;
10536
- disposition: string | null;
10537
10520
  direction: string | null;
10538
10521
  createdAt: Date;
10539
10522
  updatedAt: Date;
@@ -10968,7 +10951,6 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
10968
10951
  cxlog?: {
10969
10952
  id: string;
10970
10953
  channel: string | null;
10971
- disposition: string | null;
10972
10954
  direction: string | null;
10973
10955
  createdAt: Date;
10974
10956
  updatedAt: Date;