@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.
@@ -2325,14 +2325,14 @@ export declare const RoomSchema: z.ZodObject<{
2325
2325
  telephonySignature: string | null;
2326
2326
  };
2327
2327
  }>;
2328
- channel: z.ZodOptional<z.ZodObject<{
2329
- id: z.ZodOptional<z.ZodString>;
2330
- createdAt: z.ZodOptional<z.ZodDate>;
2331
- updatedAt: z.ZodOptional<z.ZodDate>;
2332
- deletedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
2333
- name: z.ZodOptional<z.ZodString>;
2334
- type: z.ZodOptional<z.ZodEnum<["whatsapp", "messenger", "telegram", "line", "viber", "kakao", "shopee", "lazada", "instagram"]>>;
2335
- metadata: z.ZodOptional<z.ZodObject<{
2328
+ channel: z.ZodObject<{
2329
+ id: z.ZodString;
2330
+ createdAt: z.ZodDate;
2331
+ updatedAt: z.ZodDate;
2332
+ deletedAt: z.ZodNullable<z.ZodDate>;
2333
+ name: z.ZodString;
2334
+ type: z.ZodEnum<["whatsapp", "messenger", "telegram", "line", "viber", "kakao", "shopee", "lazada", "instagram"]>;
2335
+ metadata: z.ZodObject<{
2336
2336
  id: z.ZodString;
2337
2337
  name: z.ZodString;
2338
2338
  accessToken: z.ZodString;
@@ -2350,14 +2350,14 @@ export declare const RoomSchema: z.ZodObject<{
2350
2350
  accessToken: string;
2351
2351
  channelSecret?: string | undefined;
2352
2352
  additionalCredentials?: any;
2353
- }>>;
2354
- brandName: z.ZodOptional<z.ZodString>;
2355
- platformId: z.ZodOptional<z.ZodString>;
2356
- status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<true>, z.ZodLiteral<false>]>>;
2357
- isReloginRequired: z.ZodOptional<z.ZodBoolean>;
2358
- connectedUserName: z.ZodOptional<z.ZodString>;
2359
- connectedUserId: z.ZodOptional<z.ZodString>;
2360
- actor: z.ZodOptional<z.ZodObject<{
2353
+ }>;
2354
+ brandName: z.ZodString;
2355
+ platformId: z.ZodString;
2356
+ status: z.ZodUnion<[z.ZodLiteral<true>, z.ZodLiteral<false>]>;
2357
+ isReloginRequired: z.ZodBoolean;
2358
+ connectedUserName: z.ZodString;
2359
+ connectedUserId: z.ZodString;
2360
+ actor: z.ZodObject<{
2361
2361
  id: z.ZodString;
2362
2362
  createdAt: z.ZodDate;
2363
2363
  updatedAt: z.ZodDate;
@@ -2560,28 +2560,23 @@ export declare const RoomSchema: z.ZodObject<{
2560
2560
  extensionName: string;
2561
2561
  telephonySignature: string | null;
2562
2562
  };
2563
- }>>;
2563
+ }>;
2564
2564
  }, "strip", z.ZodTypeAny, {
2565
- id?: string | undefined;
2566
- createdAt?: Date | undefined;
2567
- updatedAt?: Date | undefined;
2568
- deletedAt?: Date | null | undefined;
2569
- name?: string | undefined;
2570
- type?: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram" | undefined;
2571
- metadata?: {
2565
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
2566
+ id: string;
2567
+ name: string;
2568
+ metadata: {
2572
2569
  id: string;
2573
2570
  name: string;
2574
2571
  accessToken: string;
2575
2572
  channelSecret?: string | undefined;
2576
2573
  additionalCredentials?: any;
2577
- } | undefined;
2578
- brandName?: string | undefined;
2579
- platformId?: string | undefined;
2580
- status?: boolean | undefined;
2581
- isReloginRequired?: boolean | undefined;
2582
- connectedUserName?: string | undefined;
2583
- connectedUserId?: string | undefined;
2584
- actor?: {
2574
+ };
2575
+ status: boolean;
2576
+ createdAt: Date;
2577
+ updatedAt: Date;
2578
+ deletedAt: Date | null;
2579
+ actor: {
2585
2580
  id: string;
2586
2581
  address: string | null;
2587
2582
  name: string;
@@ -2624,28 +2619,28 @@ export declare const RoomSchema: z.ZodObject<{
2624
2619
  extensionName: string;
2625
2620
  telephonySignature: string | null;
2626
2621
  };
2627
- } | undefined;
2622
+ };
2623
+ brandName: string;
2624
+ platformId: string;
2625
+ isReloginRequired: boolean;
2626
+ connectedUserName: string;
2627
+ connectedUserId: string;
2628
2628
  }, {
2629
- id?: string | undefined;
2630
- createdAt?: Date | undefined;
2631
- updatedAt?: Date | undefined;
2632
- deletedAt?: Date | null | undefined;
2633
- name?: string | undefined;
2634
- type?: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram" | undefined;
2635
- metadata?: {
2629
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
2630
+ id: string;
2631
+ name: string;
2632
+ metadata: {
2636
2633
  id: string;
2637
2634
  name: string;
2638
2635
  accessToken: string;
2639
2636
  channelSecret?: string | undefined;
2640
2637
  additionalCredentials?: any;
2641
- } | undefined;
2642
- brandName?: string | undefined;
2643
- platformId?: string | undefined;
2644
- status?: boolean | undefined;
2645
- isReloginRequired?: boolean | undefined;
2646
- connectedUserName?: string | undefined;
2647
- connectedUserId?: string | undefined;
2648
- actor?: {
2638
+ };
2639
+ status: boolean;
2640
+ createdAt: Date;
2641
+ updatedAt: Date;
2642
+ deletedAt: Date | null;
2643
+ actor: {
2649
2644
  id: string;
2650
2645
  address: string | null;
2651
2646
  name: string;
@@ -2688,8 +2683,13 @@ export declare const RoomSchema: z.ZodObject<{
2688
2683
  extensionName: string;
2689
2684
  telephonySignature: string | null;
2690
2685
  };
2691
- } | undefined;
2692
- }>>;
2686
+ };
2687
+ brandName: string;
2688
+ platformId: string;
2689
+ isReloginRequired: boolean;
2690
+ connectedUserName: string;
2691
+ connectedUserId: string;
2692
+ }>;
2693
2693
  cxlog: z.ZodObject<{
2694
2694
  id: z.ZodString;
2695
2695
  createdAt: z.ZodDate;
@@ -2706,7 +2706,6 @@ export declare const RoomSchema: z.ZodObject<{
2706
2706
  startedDate: z.ZodNullable<z.ZodDate>;
2707
2707
  handledTime: z.ZodNullable<z.ZodNumber>;
2708
2708
  firstResponseTime: z.ZodNullable<z.ZodNumber>;
2709
- disposition: z.ZodNullable<z.ZodString>;
2710
2709
  wrapUpForm: z.ZodNullable<z.ZodObject<{
2711
2710
  id: z.ZodString;
2712
2711
  createdAt: z.ZodDate;
@@ -2771,7 +2770,6 @@ export declare const RoomSchema: z.ZodObject<{
2771
2770
  }, "strip", z.ZodTypeAny, {
2772
2771
  id: string;
2773
2772
  channel: string | null;
2774
- disposition: string | null;
2775
2773
  direction: string | null;
2776
2774
  createdAt: Date;
2777
2775
  updatedAt: Date;
@@ -2805,7 +2803,6 @@ export declare const RoomSchema: z.ZodObject<{
2805
2803
  }, {
2806
2804
  id: string;
2807
2805
  channel: string | null;
2808
- disposition: string | null;
2809
2806
  direction: string | null;
2810
2807
  createdAt: Date;
2811
2808
  updatedAt: Date;
@@ -2839,6 +2836,71 @@ export declare const RoomSchema: z.ZodObject<{
2839
2836
  }>;
2840
2837
  }, "strip", z.ZodTypeAny, {
2841
2838
  id: string;
2839
+ channel: {
2840
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
2841
+ id: string;
2842
+ name: string;
2843
+ metadata: {
2844
+ id: string;
2845
+ name: string;
2846
+ accessToken: string;
2847
+ channelSecret?: string | undefined;
2848
+ additionalCredentials?: any;
2849
+ };
2850
+ status: boolean;
2851
+ createdAt: Date;
2852
+ updatedAt: Date;
2853
+ deletedAt: Date | null;
2854
+ actor: {
2855
+ id: string;
2856
+ address: string | null;
2857
+ name: string;
2858
+ email: string;
2859
+ createdAt: Date;
2860
+ updatedAt: Date;
2861
+ deletedAt: Date | null;
2862
+ emailVerifiedAt: Date | null;
2863
+ password: string;
2864
+ phone: string | null;
2865
+ notificationCount: number | null;
2866
+ roles: {
2867
+ id: string;
2868
+ description: string | null;
2869
+ createdAt: Date;
2870
+ updatedAt: Date;
2871
+ deletedAt: Date | null;
2872
+ systemName: string;
2873
+ displayName: string;
2874
+ permissions: {
2875
+ id: string;
2876
+ description: string | null;
2877
+ createdAt: Date;
2878
+ updatedAt: Date;
2879
+ deletedAt: Date | null;
2880
+ systemName: string;
2881
+ displayName: string;
2882
+ }[];
2883
+ }[];
2884
+ extension: {
2885
+ id: string;
2886
+ createdAt: Date;
2887
+ updatedAt: Date;
2888
+ deletedAt: Date | null;
2889
+ userId: string | null;
2890
+ sipServerUrl: string;
2891
+ sipUserName: string;
2892
+ webphoneLoginUser: string;
2893
+ extensionId: string | null;
2894
+ extensionName: string;
2895
+ telephonySignature: string | null;
2896
+ };
2897
+ };
2898
+ brandName: string;
2899
+ platformId: string;
2900
+ isReloginRequired: boolean;
2901
+ connectedUserName: string;
2902
+ connectedUserId: string;
2903
+ };
2842
2904
  direction: "incoming" | "outgoing" | "system";
2843
2905
  createdAt: Date;
2844
2906
  updatedAt: Date;
@@ -3053,7 +3115,6 @@ export declare const RoomSchema: z.ZodObject<{
3053
3115
  cxlog: {
3054
3116
  id: string;
3055
3117
  channel: string | null;
3056
- disposition: string | null;
3057
3118
  direction: string | null;
3058
3119
  createdAt: Date;
3059
3120
  updatedAt: Date;
@@ -3085,27 +3146,24 @@ export declare const RoomSchema: z.ZodObject<{
3085
3146
  callTo: string | null;
3086
3147
  } | null;
3087
3148
  };
3088
- channel?: {
3089
- id?: string | undefined;
3090
- createdAt?: Date | undefined;
3091
- updatedAt?: Date | undefined;
3092
- deletedAt?: Date | null | undefined;
3093
- name?: string | undefined;
3094
- type?: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram" | undefined;
3095
- metadata?: {
3149
+ }, {
3150
+ id: string;
3151
+ channel: {
3152
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
3153
+ id: string;
3154
+ name: string;
3155
+ metadata: {
3096
3156
  id: string;
3097
3157
  name: string;
3098
3158
  accessToken: string;
3099
3159
  channelSecret?: string | undefined;
3100
3160
  additionalCredentials?: any;
3101
- } | undefined;
3102
- brandName?: string | undefined;
3103
- platformId?: string | undefined;
3104
- status?: boolean | undefined;
3105
- isReloginRequired?: boolean | undefined;
3106
- connectedUserName?: string | undefined;
3107
- connectedUserId?: string | undefined;
3108
- actor?: {
3161
+ };
3162
+ status: boolean;
3163
+ createdAt: Date;
3164
+ updatedAt: Date;
3165
+ deletedAt: Date | null;
3166
+ actor: {
3109
3167
  id: string;
3110
3168
  address: string | null;
3111
3169
  name: string;
@@ -3148,10 +3206,13 @@ export declare const RoomSchema: z.ZodObject<{
3148
3206
  extensionName: string;
3149
3207
  telephonySignature: string | null;
3150
3208
  };
3151
- } | undefined;
3152
- } | undefined;
3153
- }, {
3154
- id: string;
3209
+ };
3210
+ brandName: string;
3211
+ platformId: string;
3212
+ isReloginRequired: boolean;
3213
+ connectedUserName: string;
3214
+ connectedUserId: string;
3215
+ };
3155
3216
  direction: "incoming" | "outgoing" | "system";
3156
3217
  createdAt: Date;
3157
3218
  updatedAt: Date;
@@ -3366,7 +3427,6 @@ export declare const RoomSchema: z.ZodObject<{
3366
3427
  cxlog: {
3367
3428
  id: string;
3368
3429
  channel: string | null;
3369
- disposition: string | null;
3370
3430
  direction: string | null;
3371
3431
  createdAt: Date;
3372
3432
  updatedAt: Date;
@@ -3398,71 +3458,6 @@ export declare const RoomSchema: z.ZodObject<{
3398
3458
  callTo: string | null;
3399
3459
  } | null;
3400
3460
  };
3401
- channel?: {
3402
- id?: string | undefined;
3403
- createdAt?: Date | undefined;
3404
- updatedAt?: Date | undefined;
3405
- deletedAt?: Date | null | undefined;
3406
- name?: string | undefined;
3407
- type?: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram" | undefined;
3408
- metadata?: {
3409
- id: string;
3410
- name: string;
3411
- accessToken: string;
3412
- channelSecret?: string | undefined;
3413
- additionalCredentials?: any;
3414
- } | undefined;
3415
- brandName?: string | undefined;
3416
- platformId?: string | undefined;
3417
- status?: boolean | undefined;
3418
- isReloginRequired?: boolean | undefined;
3419
- connectedUserName?: string | undefined;
3420
- connectedUserId?: string | undefined;
3421
- actor?: {
3422
- id: string;
3423
- address: string | null;
3424
- name: string;
3425
- email: string;
3426
- createdAt: Date;
3427
- updatedAt: Date;
3428
- deletedAt: Date | null;
3429
- emailVerifiedAt: Date | null;
3430
- password: string;
3431
- phone: string | null;
3432
- notificationCount: number | null;
3433
- roles: {
3434
- id: string;
3435
- description: string | null;
3436
- createdAt: Date;
3437
- updatedAt: Date;
3438
- deletedAt: Date | null;
3439
- systemName: string;
3440
- displayName: string;
3441
- permissions: {
3442
- id: string;
3443
- description: string | null;
3444
- createdAt: Date;
3445
- updatedAt: Date;
3446
- deletedAt: Date | null;
3447
- systemName: string;
3448
- displayName: string;
3449
- }[];
3450
- }[];
3451
- extension: {
3452
- id: string;
3453
- createdAt: Date;
3454
- updatedAt: Date;
3455
- deletedAt: Date | null;
3456
- userId: string | null;
3457
- sipServerUrl: string;
3458
- sipUserName: string;
3459
- webphoneLoginUser: string;
3460
- extensionId: string | null;
3461
- extensionName: string;
3462
- telephonySignature: string | null;
3463
- };
3464
- } | undefined;
3465
- } | undefined;
3466
3461
  }>;
3467
3462
  /**
3468
3463
  * Message
@@ -4840,14 +4835,14 @@ export declare const MessageSchema: z.ZodObject<{
4840
4835
  telephonySignature: string | null;
4841
4836
  };
4842
4837
  }>;
4843
- channel: z.ZodOptional<z.ZodObject<{
4844
- id: z.ZodOptional<z.ZodString>;
4845
- createdAt: z.ZodOptional<z.ZodDate>;
4846
- updatedAt: z.ZodOptional<z.ZodDate>;
4847
- deletedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
4848
- name: z.ZodOptional<z.ZodString>;
4849
- type: z.ZodOptional<z.ZodEnum<["whatsapp", "messenger", "telegram", "line", "viber", "kakao", "shopee", "lazada", "instagram"]>>;
4850
- metadata: z.ZodOptional<z.ZodObject<{
4838
+ channel: z.ZodObject<{
4839
+ id: z.ZodString;
4840
+ createdAt: z.ZodDate;
4841
+ updatedAt: z.ZodDate;
4842
+ deletedAt: z.ZodNullable<z.ZodDate>;
4843
+ name: z.ZodString;
4844
+ type: z.ZodEnum<["whatsapp", "messenger", "telegram", "line", "viber", "kakao", "shopee", "lazada", "instagram"]>;
4845
+ metadata: z.ZodObject<{
4851
4846
  id: z.ZodString;
4852
4847
  name: z.ZodString;
4853
4848
  accessToken: z.ZodString;
@@ -4865,14 +4860,14 @@ export declare const MessageSchema: z.ZodObject<{
4865
4860
  accessToken: string;
4866
4861
  channelSecret?: string | undefined;
4867
4862
  additionalCredentials?: any;
4868
- }>>;
4869
- brandName: z.ZodOptional<z.ZodString>;
4870
- platformId: z.ZodOptional<z.ZodString>;
4871
- status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<true>, z.ZodLiteral<false>]>>;
4872
- isReloginRequired: z.ZodOptional<z.ZodBoolean>;
4873
- connectedUserName: z.ZodOptional<z.ZodString>;
4874
- connectedUserId: z.ZodOptional<z.ZodString>;
4875
- actor: z.ZodOptional<z.ZodObject<{
4863
+ }>;
4864
+ brandName: z.ZodString;
4865
+ platformId: z.ZodString;
4866
+ status: z.ZodUnion<[z.ZodLiteral<true>, z.ZodLiteral<false>]>;
4867
+ isReloginRequired: z.ZodBoolean;
4868
+ connectedUserName: z.ZodString;
4869
+ connectedUserId: z.ZodString;
4870
+ actor: z.ZodObject<{
4876
4871
  id: z.ZodString;
4877
4872
  createdAt: z.ZodDate;
4878
4873
  updatedAt: z.ZodDate;
@@ -5075,28 +5070,23 @@ export declare const MessageSchema: z.ZodObject<{
5075
5070
  extensionName: string;
5076
5071
  telephonySignature: string | null;
5077
5072
  };
5078
- }>>;
5073
+ }>;
5079
5074
  }, "strip", z.ZodTypeAny, {
5080
- id?: string | undefined;
5081
- createdAt?: Date | undefined;
5082
- updatedAt?: Date | undefined;
5083
- deletedAt?: Date | null | undefined;
5084
- name?: string | undefined;
5085
- type?: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram" | undefined;
5086
- metadata?: {
5075
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
5076
+ id: string;
5077
+ name: string;
5078
+ metadata: {
5087
5079
  id: string;
5088
5080
  name: string;
5089
5081
  accessToken: string;
5090
5082
  channelSecret?: string | undefined;
5091
5083
  additionalCredentials?: any;
5092
- } | undefined;
5093
- brandName?: string | undefined;
5094
- platformId?: string | undefined;
5095
- status?: boolean | undefined;
5096
- isReloginRequired?: boolean | undefined;
5097
- connectedUserName?: string | undefined;
5098
- connectedUserId?: string | undefined;
5099
- actor?: {
5084
+ };
5085
+ status: boolean;
5086
+ createdAt: Date;
5087
+ updatedAt: Date;
5088
+ deletedAt: Date | null;
5089
+ actor: {
5100
5090
  id: string;
5101
5091
  address: string | null;
5102
5092
  name: string;
@@ -5139,28 +5129,28 @@ export declare const MessageSchema: z.ZodObject<{
5139
5129
  extensionName: string;
5140
5130
  telephonySignature: string | null;
5141
5131
  };
5142
- } | undefined;
5132
+ };
5133
+ brandName: string;
5134
+ platformId: string;
5135
+ isReloginRequired: boolean;
5136
+ connectedUserName: string;
5137
+ connectedUserId: string;
5143
5138
  }, {
5144
- id?: string | undefined;
5145
- createdAt?: Date | undefined;
5146
- updatedAt?: Date | undefined;
5147
- deletedAt?: Date | null | undefined;
5148
- name?: string | undefined;
5149
- type?: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram" | undefined;
5150
- metadata?: {
5139
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
5140
+ id: string;
5141
+ name: string;
5142
+ metadata: {
5151
5143
  id: string;
5152
5144
  name: string;
5153
5145
  accessToken: string;
5154
5146
  channelSecret?: string | undefined;
5155
5147
  additionalCredentials?: any;
5156
- } | undefined;
5157
- brandName?: string | undefined;
5158
- platformId?: string | undefined;
5159
- status?: boolean | undefined;
5160
- isReloginRequired?: boolean | undefined;
5161
- connectedUserName?: string | undefined;
5162
- connectedUserId?: string | undefined;
5163
- actor?: {
5148
+ };
5149
+ status: boolean;
5150
+ createdAt: Date;
5151
+ updatedAt: Date;
5152
+ deletedAt: Date | null;
5153
+ actor: {
5164
5154
  id: string;
5165
5155
  address: string | null;
5166
5156
  name: string;
@@ -5203,8 +5193,13 @@ export declare const MessageSchema: z.ZodObject<{
5203
5193
  extensionName: string;
5204
5194
  telephonySignature: string | null;
5205
5195
  };
5206
- } | undefined;
5207
- }>>;
5196
+ };
5197
+ brandName: string;
5198
+ platformId: string;
5199
+ isReloginRequired: boolean;
5200
+ connectedUserName: string;
5201
+ connectedUserId: string;
5202
+ }>;
5208
5203
  cxlog: z.ZodObject<{
5209
5204
  id: z.ZodString;
5210
5205
  createdAt: z.ZodDate;
@@ -5221,7 +5216,6 @@ export declare const MessageSchema: z.ZodObject<{
5221
5216
  startedDate: z.ZodNullable<z.ZodDate>;
5222
5217
  handledTime: z.ZodNullable<z.ZodNumber>;
5223
5218
  firstResponseTime: z.ZodNullable<z.ZodNumber>;
5224
- disposition: z.ZodNullable<z.ZodString>;
5225
5219
  wrapUpForm: z.ZodNullable<z.ZodObject<{
5226
5220
  id: z.ZodString;
5227
5221
  createdAt: z.ZodDate;
@@ -5286,7 +5280,6 @@ export declare const MessageSchema: z.ZodObject<{
5286
5280
  }, "strip", z.ZodTypeAny, {
5287
5281
  id: string;
5288
5282
  channel: string | null;
5289
- disposition: string | null;
5290
5283
  direction: string | null;
5291
5284
  createdAt: Date;
5292
5285
  updatedAt: Date;
@@ -5320,7 +5313,6 @@ export declare const MessageSchema: z.ZodObject<{
5320
5313
  }, {
5321
5314
  id: string;
5322
5315
  channel: string | null;
5323
- disposition: string | null;
5324
5316
  direction: string | null;
5325
5317
  createdAt: Date;
5326
5318
  updatedAt: Date;
@@ -5354,6 +5346,71 @@ export declare const MessageSchema: z.ZodObject<{
5354
5346
  }>;
5355
5347
  }, "strip", z.ZodTypeAny, {
5356
5348
  id: string;
5349
+ channel: {
5350
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
5351
+ id: string;
5352
+ name: string;
5353
+ metadata: {
5354
+ id: string;
5355
+ name: string;
5356
+ accessToken: string;
5357
+ channelSecret?: string | undefined;
5358
+ additionalCredentials?: any;
5359
+ };
5360
+ status: boolean;
5361
+ createdAt: Date;
5362
+ updatedAt: Date;
5363
+ deletedAt: Date | null;
5364
+ actor: {
5365
+ id: string;
5366
+ address: string | null;
5367
+ name: string;
5368
+ email: string;
5369
+ createdAt: Date;
5370
+ updatedAt: Date;
5371
+ deletedAt: Date | null;
5372
+ emailVerifiedAt: Date | null;
5373
+ password: string;
5374
+ phone: string | null;
5375
+ notificationCount: number | null;
5376
+ roles: {
5377
+ id: string;
5378
+ description: string | null;
5379
+ createdAt: Date;
5380
+ updatedAt: Date;
5381
+ deletedAt: Date | null;
5382
+ systemName: string;
5383
+ displayName: string;
5384
+ permissions: {
5385
+ id: string;
5386
+ description: string | null;
5387
+ createdAt: Date;
5388
+ updatedAt: Date;
5389
+ deletedAt: Date | null;
5390
+ systemName: string;
5391
+ displayName: string;
5392
+ }[];
5393
+ }[];
5394
+ extension: {
5395
+ id: string;
5396
+ createdAt: Date;
5397
+ updatedAt: Date;
5398
+ deletedAt: Date | null;
5399
+ userId: string | null;
5400
+ sipServerUrl: string;
5401
+ sipUserName: string;
5402
+ webphoneLoginUser: string;
5403
+ extensionId: string | null;
5404
+ extensionName: string;
5405
+ telephonySignature: string | null;
5406
+ };
5407
+ };
5408
+ brandName: string;
5409
+ platformId: string;
5410
+ isReloginRequired: boolean;
5411
+ connectedUserName: string;
5412
+ connectedUserId: string;
5413
+ };
5357
5414
  direction: "incoming" | "outgoing" | "system";
5358
5415
  createdAt: Date;
5359
5416
  updatedAt: Date;
@@ -5568,7 +5625,6 @@ export declare const MessageSchema: z.ZodObject<{
5568
5625
  cxlog: {
5569
5626
  id: string;
5570
5627
  channel: string | null;
5571
- disposition: string | null;
5572
5628
  direction: string | null;
5573
5629
  createdAt: Date;
5574
5630
  updatedAt: Date;
@@ -5600,28 +5656,25 @@ export declare const MessageSchema: z.ZodObject<{
5600
5656
  callTo: string | null;
5601
5657
  } | null;
5602
5658
  };
5603
- channel?: {
5604
- id?: string | undefined;
5605
- createdAt?: Date | undefined;
5606
- updatedAt?: Date | undefined;
5607
- deletedAt?: Date | null | undefined;
5608
- name?: string | undefined;
5609
- type?: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram" | undefined;
5610
- metadata?: {
5659
+ }, {
5660
+ id: string;
5661
+ channel: {
5662
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
5663
+ id: string;
5664
+ name: string;
5665
+ metadata: {
5611
5666
  id: string;
5612
5667
  name: string;
5613
5668
  accessToken: string;
5614
5669
  channelSecret?: string | undefined;
5615
5670
  additionalCredentials?: any;
5616
- } | undefined;
5617
- brandName?: string | undefined;
5618
- platformId?: string | undefined;
5619
- status?: boolean | undefined;
5620
- isReloginRequired?: boolean | undefined;
5621
- connectedUserName?: string | undefined;
5622
- connectedUserId?: string | undefined;
5623
- actor?: {
5624
- id: string;
5671
+ };
5672
+ status: boolean;
5673
+ createdAt: Date;
5674
+ updatedAt: Date;
5675
+ deletedAt: Date | null;
5676
+ actor: {
5677
+ id: string;
5625
5678
  address: string | null;
5626
5679
  name: string;
5627
5680
  email: string;
@@ -5663,10 +5716,13 @@ export declare const MessageSchema: z.ZodObject<{
5663
5716
  extensionName: string;
5664
5717
  telephonySignature: string | null;
5665
5718
  };
5666
- } | undefined;
5667
- } | undefined;
5668
- }, {
5669
- id: string;
5719
+ };
5720
+ brandName: string;
5721
+ platformId: string;
5722
+ isReloginRequired: boolean;
5723
+ connectedUserName: string;
5724
+ connectedUserId: string;
5725
+ };
5670
5726
  direction: "incoming" | "outgoing" | "system";
5671
5727
  createdAt: Date;
5672
5728
  updatedAt: Date;
@@ -5881,7 +5937,6 @@ export declare const MessageSchema: z.ZodObject<{
5881
5937
  cxlog: {
5882
5938
  id: string;
5883
5939
  channel: string | null;
5884
- disposition: string | null;
5885
5940
  direction: string | null;
5886
5941
  createdAt: Date;
5887
5942
  updatedAt: Date;
@@ -5913,71 +5968,6 @@ export declare const MessageSchema: z.ZodObject<{
5913
5968
  callTo: string | null;
5914
5969
  } | null;
5915
5970
  };
5916
- channel?: {
5917
- id?: string | undefined;
5918
- createdAt?: Date | undefined;
5919
- updatedAt?: Date | undefined;
5920
- deletedAt?: Date | null | undefined;
5921
- name?: string | undefined;
5922
- type?: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram" | undefined;
5923
- metadata?: {
5924
- id: string;
5925
- name: string;
5926
- accessToken: string;
5927
- channelSecret?: string | undefined;
5928
- additionalCredentials?: any;
5929
- } | undefined;
5930
- brandName?: string | undefined;
5931
- platformId?: string | undefined;
5932
- status?: boolean | undefined;
5933
- isReloginRequired?: boolean | undefined;
5934
- connectedUserName?: string | undefined;
5935
- connectedUserId?: string | undefined;
5936
- actor?: {
5937
- id: string;
5938
- address: string | null;
5939
- name: string;
5940
- email: string;
5941
- createdAt: Date;
5942
- updatedAt: Date;
5943
- deletedAt: Date | null;
5944
- emailVerifiedAt: Date | null;
5945
- password: string;
5946
- phone: string | null;
5947
- notificationCount: number | null;
5948
- roles: {
5949
- id: string;
5950
- description: string | null;
5951
- createdAt: Date;
5952
- updatedAt: Date;
5953
- deletedAt: Date | null;
5954
- systemName: string;
5955
- displayName: string;
5956
- permissions: {
5957
- id: string;
5958
- description: string | null;
5959
- createdAt: Date;
5960
- updatedAt: Date;
5961
- deletedAt: Date | null;
5962
- systemName: string;
5963
- displayName: string;
5964
- }[];
5965
- }[];
5966
- extension: {
5967
- id: string;
5968
- createdAt: Date;
5969
- updatedAt: Date;
5970
- deletedAt: Date | null;
5971
- userId: string | null;
5972
- sipServerUrl: string;
5973
- sipUserName: string;
5974
- webphoneLoginUser: string;
5975
- extensionId: string | null;
5976
- extensionName: string;
5977
- telephonySignature: string | null;
5978
- };
5979
- } | undefined;
5980
- } | undefined;
5981
5971
  }>;
5982
5972
  upload: z.ZodObject<{
5983
5973
  id: z.ZodString;
@@ -6731,6 +6721,71 @@ export declare const MessageSchema: z.ZodObject<{
6731
6721
  imageSetId: string;
6732
6722
  room: {
6733
6723
  id: string;
6724
+ channel: {
6725
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
6726
+ id: string;
6727
+ name: string;
6728
+ metadata: {
6729
+ id: string;
6730
+ name: string;
6731
+ accessToken: string;
6732
+ channelSecret?: string | undefined;
6733
+ additionalCredentials?: any;
6734
+ };
6735
+ status: boolean;
6736
+ createdAt: Date;
6737
+ updatedAt: Date;
6738
+ deletedAt: Date | null;
6739
+ actor: {
6740
+ id: string;
6741
+ address: string | null;
6742
+ name: string;
6743
+ email: string;
6744
+ createdAt: Date;
6745
+ updatedAt: Date;
6746
+ deletedAt: Date | null;
6747
+ emailVerifiedAt: Date | null;
6748
+ password: string;
6749
+ phone: string | null;
6750
+ notificationCount: number | null;
6751
+ roles: {
6752
+ id: string;
6753
+ description: string | null;
6754
+ createdAt: Date;
6755
+ updatedAt: Date;
6756
+ deletedAt: Date | null;
6757
+ systemName: string;
6758
+ displayName: string;
6759
+ permissions: {
6760
+ id: string;
6761
+ description: string | null;
6762
+ createdAt: Date;
6763
+ updatedAt: Date;
6764
+ deletedAt: Date | null;
6765
+ systemName: string;
6766
+ displayName: string;
6767
+ }[];
6768
+ }[];
6769
+ extension: {
6770
+ id: string;
6771
+ createdAt: Date;
6772
+ updatedAt: Date;
6773
+ deletedAt: Date | null;
6774
+ userId: string | null;
6775
+ sipServerUrl: string;
6776
+ sipUserName: string;
6777
+ webphoneLoginUser: string;
6778
+ extensionId: string | null;
6779
+ extensionName: string;
6780
+ telephonySignature: string | null;
6781
+ };
6782
+ };
6783
+ brandName: string;
6784
+ platformId: string;
6785
+ isReloginRequired: boolean;
6786
+ connectedUserName: string;
6787
+ connectedUserId: string;
6788
+ };
6734
6789
  direction: "incoming" | "outgoing" | "system";
6735
6790
  createdAt: Date;
6736
6791
  updatedAt: Date;
@@ -6945,7 +7000,6 @@ export declare const MessageSchema: z.ZodObject<{
6945
7000
  cxlog: {
6946
7001
  id: string;
6947
7002
  channel: string | null;
6948
- disposition: string | null;
6949
7003
  direction: string | null;
6950
7004
  createdAt: Date;
6951
7005
  updatedAt: Date;
@@ -6977,71 +7031,6 @@ export declare const MessageSchema: z.ZodObject<{
6977
7031
  callTo: string | null;
6978
7032
  } | null;
6979
7033
  };
6980
- channel?: {
6981
- id?: string | undefined;
6982
- createdAt?: Date | undefined;
6983
- updatedAt?: Date | undefined;
6984
- deletedAt?: Date | null | undefined;
6985
- name?: string | undefined;
6986
- type?: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram" | undefined;
6987
- metadata?: {
6988
- id: string;
6989
- name: string;
6990
- accessToken: string;
6991
- channelSecret?: string | undefined;
6992
- additionalCredentials?: any;
6993
- } | undefined;
6994
- brandName?: string | undefined;
6995
- platformId?: string | undefined;
6996
- status?: boolean | undefined;
6997
- isReloginRequired?: boolean | undefined;
6998
- connectedUserName?: string | undefined;
6999
- connectedUserId?: string | undefined;
7000
- actor?: {
7001
- id: string;
7002
- address: string | null;
7003
- name: string;
7004
- email: string;
7005
- createdAt: Date;
7006
- updatedAt: Date;
7007
- deletedAt: Date | null;
7008
- emailVerifiedAt: Date | null;
7009
- password: string;
7010
- phone: string | null;
7011
- notificationCount: number | null;
7012
- roles: {
7013
- id: string;
7014
- description: string | null;
7015
- createdAt: Date;
7016
- updatedAt: Date;
7017
- deletedAt: Date | null;
7018
- systemName: string;
7019
- displayName: string;
7020
- permissions: {
7021
- id: string;
7022
- description: string | null;
7023
- createdAt: Date;
7024
- updatedAt: Date;
7025
- deletedAt: Date | null;
7026
- systemName: string;
7027
- displayName: string;
7028
- }[];
7029
- }[];
7030
- extension: {
7031
- id: string;
7032
- createdAt: Date;
7033
- updatedAt: Date;
7034
- deletedAt: Date | null;
7035
- userId: string | null;
7036
- sipServerUrl: string;
7037
- sipUserName: string;
7038
- webphoneLoginUser: string;
7039
- extensionId: string | null;
7040
- extensionName: string;
7041
- telephonySignature: string | null;
7042
- };
7043
- } | undefined;
7044
- } | undefined;
7045
7034
  };
7046
7035
  upload: {
7047
7036
  id: string;
@@ -7207,6 +7196,71 @@ export declare const MessageSchema: z.ZodObject<{
7207
7196
  imageSetId: string;
7208
7197
  room: {
7209
7198
  id: string;
7199
+ channel: {
7200
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
7201
+ id: string;
7202
+ name: string;
7203
+ metadata: {
7204
+ id: string;
7205
+ name: string;
7206
+ accessToken: string;
7207
+ channelSecret?: string | undefined;
7208
+ additionalCredentials?: any;
7209
+ };
7210
+ status: boolean;
7211
+ createdAt: Date;
7212
+ updatedAt: Date;
7213
+ deletedAt: Date | null;
7214
+ actor: {
7215
+ id: string;
7216
+ address: string | null;
7217
+ name: string;
7218
+ email: string;
7219
+ createdAt: Date;
7220
+ updatedAt: Date;
7221
+ deletedAt: Date | null;
7222
+ emailVerifiedAt: Date | null;
7223
+ password: string;
7224
+ phone: string | null;
7225
+ notificationCount: number | null;
7226
+ roles: {
7227
+ id: string;
7228
+ description: string | null;
7229
+ createdAt: Date;
7230
+ updatedAt: Date;
7231
+ deletedAt: Date | null;
7232
+ systemName: string;
7233
+ displayName: string;
7234
+ permissions: {
7235
+ id: string;
7236
+ description: string | null;
7237
+ createdAt: Date;
7238
+ updatedAt: Date;
7239
+ deletedAt: Date | null;
7240
+ systemName: string;
7241
+ displayName: string;
7242
+ }[];
7243
+ }[];
7244
+ extension: {
7245
+ id: string;
7246
+ createdAt: Date;
7247
+ updatedAt: Date;
7248
+ deletedAt: Date | null;
7249
+ userId: string | null;
7250
+ sipServerUrl: string;
7251
+ sipUserName: string;
7252
+ webphoneLoginUser: string;
7253
+ extensionId: string | null;
7254
+ extensionName: string;
7255
+ telephonySignature: string | null;
7256
+ };
7257
+ };
7258
+ brandName: string;
7259
+ platformId: string;
7260
+ isReloginRequired: boolean;
7261
+ connectedUserName: string;
7262
+ connectedUserId: string;
7263
+ };
7210
7264
  direction: "incoming" | "outgoing" | "system";
7211
7265
  createdAt: Date;
7212
7266
  updatedAt: Date;
@@ -7421,7 +7475,6 @@ export declare const MessageSchema: z.ZodObject<{
7421
7475
  cxlog: {
7422
7476
  id: string;
7423
7477
  channel: string | null;
7424
- disposition: string | null;
7425
7478
  direction: string | null;
7426
7479
  createdAt: Date;
7427
7480
  updatedAt: Date;
@@ -7453,71 +7506,6 @@ export declare const MessageSchema: z.ZodObject<{
7453
7506
  callTo: string | null;
7454
7507
  } | null;
7455
7508
  };
7456
- channel?: {
7457
- id?: string | undefined;
7458
- createdAt?: Date | undefined;
7459
- updatedAt?: Date | undefined;
7460
- deletedAt?: Date | null | undefined;
7461
- name?: string | undefined;
7462
- type?: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram" | undefined;
7463
- metadata?: {
7464
- id: string;
7465
- name: string;
7466
- accessToken: string;
7467
- channelSecret?: string | undefined;
7468
- additionalCredentials?: any;
7469
- } | undefined;
7470
- brandName?: string | undefined;
7471
- platformId?: string | undefined;
7472
- status?: boolean | undefined;
7473
- isReloginRequired?: boolean | undefined;
7474
- connectedUserName?: string | undefined;
7475
- connectedUserId?: string | undefined;
7476
- actor?: {
7477
- id: string;
7478
- address: string | null;
7479
- name: string;
7480
- email: string;
7481
- createdAt: Date;
7482
- updatedAt: Date;
7483
- deletedAt: Date | null;
7484
- emailVerifiedAt: Date | null;
7485
- password: string;
7486
- phone: string | null;
7487
- notificationCount: number | null;
7488
- roles: {
7489
- id: string;
7490
- description: string | null;
7491
- createdAt: Date;
7492
- updatedAt: Date;
7493
- deletedAt: Date | null;
7494
- systemName: string;
7495
- displayName: string;
7496
- permissions: {
7497
- id: string;
7498
- description: string | null;
7499
- createdAt: Date;
7500
- updatedAt: Date;
7501
- deletedAt: Date | null;
7502
- systemName: string;
7503
- displayName: string;
7504
- }[];
7505
- }[];
7506
- extension: {
7507
- id: string;
7508
- createdAt: Date;
7509
- updatedAt: Date;
7510
- deletedAt: Date | null;
7511
- userId: string | null;
7512
- sipServerUrl: string;
7513
- sipUserName: string;
7514
- webphoneLoginUser: string;
7515
- extensionId: string | null;
7516
- extensionName: string;
7517
- telephonySignature: string | null;
7518
- };
7519
- } | undefined;
7520
- } | undefined;
7521
7509
  };
7522
7510
  upload: {
7523
7511
  id: string;