@kl1/contracts 1.0.34 → 1.0.36

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 (79) hide show
  1. package/dist/index.js +1030 -924
  2. package/dist/index.js.map +1 -1
  3. package/dist/index.mjs +1029 -924
  4. package/dist/index.mjs.map +1 -1
  5. package/dist/src/activity-log/index.d.ts +17 -10
  6. package/dist/src/activity-log/index.d.ts.map +1 -1
  7. package/dist/src/activity-log/schema.d.ts +17 -10
  8. package/dist/src/activity-log/schema.d.ts.map +1 -1
  9. package/dist/src/auth/index.d.ts +17 -10
  10. package/dist/src/auth/index.d.ts.map +1 -1
  11. package/dist/src/channel/index.d.ts +650 -51
  12. package/dist/src/channel/index.d.ts.map +1 -1
  13. package/dist/src/channel/schema.d.ts +18 -12
  14. package/dist/src/channel/schema.d.ts.map +1 -1
  15. package/dist/src/chat/index.d.ts +12464 -12390
  16. package/dist/src/chat/index.d.ts.map +1 -1
  17. package/dist/src/chat/schema.d.ts +227 -110
  18. package/dist/src/chat/schema.d.ts.map +1 -1
  19. package/dist/src/chat/validation.d.ts +1158 -1545
  20. package/dist/src/chat/validation.d.ts.map +1 -1
  21. package/dist/src/comment/index.d.ts +1128 -491
  22. package/dist/src/comment/index.d.ts.map +1 -1
  23. package/dist/src/comment/schema.d.ts +319 -140
  24. package/dist/src/comment/schema.d.ts.map +1 -1
  25. package/dist/src/contact/index.d.ts +77 -0
  26. package/dist/src/contact/index.d.ts.map +1 -1
  27. package/dist/src/contact/schema.d.ts +16 -0
  28. package/dist/src/contact/schema.d.ts.map +1 -1
  29. package/dist/src/contact/validation.d.ts +63 -0
  30. package/dist/src/contact/validation.d.ts.map +1 -1
  31. package/dist/src/contract.d.ts +28088 -29053
  32. package/dist/src/contract.d.ts.map +1 -1
  33. package/dist/src/cx-log/index.d.ts +243 -72
  34. package/dist/src/cx-log/index.d.ts.map +1 -1
  35. package/dist/src/cx-log/schema.d.ts +193 -56
  36. package/dist/src/cx-log/schema.d.ts.map +1 -1
  37. package/dist/src/extension/index.d.ts +29 -120
  38. package/dist/src/extension/index.d.ts.map +1 -1
  39. package/dist/src/extension/schema.d.ts +3 -0
  40. package/dist/src/extension/schema.d.ts.map +1 -1
  41. package/dist/src/extension/validation.d.ts +6 -0
  42. package/dist/src/extension/validation.d.ts.map +1 -1
  43. package/dist/src/mail/mail-contract.d.ts +7 -0
  44. package/dist/src/mail/mail-contract.d.ts.map +1 -1
  45. package/dist/src/mail/room-contract.d.ts +7 -0
  46. package/dist/src/mail/room-contract.d.ts.map +1 -1
  47. package/dist/src/mail/schemas/room.schema.d.ts +5 -0
  48. package/dist/src/mail/schemas/room.schema.d.ts.map +1 -1
  49. package/dist/src/messenger/index.d.ts +442 -100
  50. package/dist/src/messenger/index.d.ts.map +1 -1
  51. package/dist/src/telephony-agent-presence-status/index.d.ts +57 -34
  52. package/dist/src/telephony-agent-presence-status/index.d.ts.map +1 -1
  53. package/dist/src/telephony-agent-presence-status/schema.d.ts +17 -10
  54. package/dist/src/telephony-agent-presence-status/schema.d.ts.map +1 -1
  55. package/dist/src/telephony-cdr/schema.d.ts +53 -0
  56. package/dist/src/telephony-cdr/schema.d.ts.map +1 -1
  57. package/dist/src/telephony-extension/index.d.ts +2 -0
  58. package/dist/src/telephony-extension/index.d.ts.map +1 -1
  59. package/dist/src/ticket/index.d.ts +3022 -1253
  60. package/dist/src/ticket/index.d.ts.map +1 -1
  61. package/dist/src/ticket/schema.d.ts +236 -167
  62. package/dist/src/ticket/schema.d.ts.map +1 -1
  63. package/dist/src/upload/schema.d.ts +3 -0
  64. package/dist/src/upload/schema.d.ts.map +1 -1
  65. package/dist/src/user/index.d.ts +57 -34
  66. package/dist/src/user/index.d.ts.map +1 -1
  67. package/dist/src/user/schema.d.ts +11 -6
  68. package/dist/src/user/schema.d.ts.map +1 -1
  69. package/dist/src/user-presence-status-log/index.d.ts +12 -8
  70. package/dist/src/user-presence-status-log/index.d.ts.map +1 -1
  71. package/dist/src/user-presence-status-log/schema.d.ts +17 -10
  72. package/dist/src/user-presence-status-log/schema.d.ts.map +1 -1
  73. package/package.json +1 -1
  74. package/dist/src/app/index.d.ts +0 -17
  75. package/dist/src/app/index.d.ts.map +0 -1
  76. package/dist/src/mail/mail-server.d.ts +0 -216
  77. package/dist/src/mail/mail-server.d.ts.map +0 -1
  78. package/dist/src/platform-contact/schema.d.ts +0 -30
  79. package/dist/src/platform-contact/schema.d.ts.map +0 -1
@@ -161,7 +161,7 @@ export declare const channelContract: {
161
161
  displayName: string;
162
162
  }[];
163
163
  }>, "many">;
164
- extension: z.ZodOptional<z.ZodObject<{
164
+ extension: z.ZodObject<{
165
165
  id: z.ZodString;
166
166
  createdAt: z.ZodDate;
167
167
  updatedAt: z.ZodDate;
@@ -169,6 +169,7 @@ export declare const channelContract: {
169
169
  userId: z.ZodNullable<z.ZodString>;
170
170
  sipServerUrl: z.ZodString;
171
171
  sipUserName: z.ZodString;
172
+ webphoneLoginUser: z.ZodString;
172
173
  extensionId: z.ZodNumber;
173
174
  extensionName: z.ZodString;
174
175
  telephonySignature: z.ZodNullable<z.ZodString>;
@@ -180,6 +181,7 @@ export declare const channelContract: {
180
181
  userId: string | null;
181
182
  sipServerUrl: string;
182
183
  sipUserName: string;
184
+ webphoneLoginUser: string;
183
185
  extensionId: number;
184
186
  extensionName: string;
185
187
  telephonySignature: string | null;
@@ -191,10 +193,11 @@ export declare const channelContract: {
191
193
  userId: string | null;
192
194
  sipServerUrl: string;
193
195
  sipUserName: string;
196
+ webphoneLoginUser: string;
194
197
  extensionId: number;
195
198
  extensionName: string;
196
199
  telephonySignature: string | null;
197
- }>>;
200
+ }>;
198
201
  }, "strip", z.ZodTypeAny, {
199
202
  id: string;
200
203
  address: string | null;
@@ -225,7 +228,7 @@ export declare const channelContract: {
225
228
  displayName: string;
226
229
  }[];
227
230
  }[];
228
- extension?: {
231
+ extension: {
229
232
  id: string;
230
233
  createdAt: Date;
231
234
  updatedAt: Date;
@@ -233,10 +236,11 @@ export declare const channelContract: {
233
236
  userId: string | null;
234
237
  sipServerUrl: string;
235
238
  sipUserName: string;
239
+ webphoneLoginUser: string;
236
240
  extensionId: number;
237
241
  extensionName: string;
238
242
  telephonySignature: string | null;
239
- } | undefined;
243
+ };
240
244
  }, {
241
245
  id: string;
242
246
  address: string | null;
@@ -267,7 +271,7 @@ export declare const channelContract: {
267
271
  displayName: string;
268
272
  }[];
269
273
  }[];
270
- extension?: {
274
+ extension: {
271
275
  id: string;
272
276
  createdAt: Date;
273
277
  updatedAt: Date;
@@ -275,10 +279,11 @@ export declare const channelContract: {
275
279
  userId: string | null;
276
280
  sipServerUrl: string;
277
281
  sipUserName: string;
282
+ webphoneLoginUser: string;
278
283
  extensionId: number;
279
284
  extensionName: string;
280
285
  telephonySignature: string | null;
281
- } | undefined;
286
+ };
282
287
  }>>;
283
288
  }, "strip", z.ZodTypeAny, {
284
289
  id?: string | undefined;
@@ -329,7 +334,7 @@ export declare const channelContract: {
329
334
  displayName: string;
330
335
  }[];
331
336
  }[];
332
- extension?: {
337
+ extension: {
333
338
  id: string;
334
339
  createdAt: Date;
335
340
  updatedAt: Date;
@@ -337,10 +342,11 @@ export declare const channelContract: {
337
342
  userId: string | null;
338
343
  sipServerUrl: string;
339
344
  sipUserName: string;
345
+ webphoneLoginUser: string;
340
346
  extensionId: number;
341
347
  extensionName: string;
342
348
  telephonySignature: string | null;
343
- } | undefined;
349
+ };
344
350
  } | undefined;
345
351
  }, {
346
352
  id?: string | undefined;
@@ -391,7 +397,7 @@ export declare const channelContract: {
391
397
  displayName: string;
392
398
  }[];
393
399
  }[];
394
- extension?: {
400
+ extension: {
395
401
  id: string;
396
402
  createdAt: Date;
397
403
  updatedAt: Date;
@@ -399,10 +405,11 @@ export declare const channelContract: {
399
405
  userId: string | null;
400
406
  sipServerUrl: string;
401
407
  sipUserName: string;
408
+ webphoneLoginUser: string;
402
409
  extensionId: number;
403
410
  extensionName: string;
404
411
  telephonySignature: string | null;
405
- } | undefined;
412
+ };
406
413
  } | undefined;
407
414
  }>>;
408
415
  }, "strip", z.ZodTypeAny, {
@@ -456,7 +463,7 @@ export declare const channelContract: {
456
463
  displayName: string;
457
464
  }[];
458
465
  }[];
459
- extension?: {
466
+ extension: {
460
467
  id: string;
461
468
  createdAt: Date;
462
469
  updatedAt: Date;
@@ -464,10 +471,11 @@ export declare const channelContract: {
464
471
  userId: string | null;
465
472
  sipServerUrl: string;
466
473
  sipUserName: string;
474
+ webphoneLoginUser: string;
467
475
  extensionId: number;
468
476
  extensionName: string;
469
477
  telephonySignature: string | null;
470
- } | undefined;
478
+ };
471
479
  } | undefined;
472
480
  } | undefined;
473
481
  }, {
@@ -521,7 +529,7 @@ export declare const channelContract: {
521
529
  displayName: string;
522
530
  }[];
523
531
  }[];
524
- extension?: {
532
+ extension: {
525
533
  id: string;
526
534
  createdAt: Date;
527
535
  updatedAt: Date;
@@ -529,10 +537,11 @@ export declare const channelContract: {
529
537
  userId: string | null;
530
538
  sipServerUrl: string;
531
539
  sipUserName: string;
540
+ webphoneLoginUser: string;
532
541
  extensionId: number;
533
542
  extensionName: string;
534
543
  telephonySignature: string | null;
535
- } | undefined;
544
+ };
536
545
  } | undefined;
537
546
  } | undefined;
538
547
  }>;
@@ -567,7 +576,7 @@ export declare const channelContract: {
567
576
  };
568
577
  disconnectChannel: {
569
578
  body: null;
570
- summary: "Connect message channel";
579
+ summary: "Disconnect message channel";
571
580
  method: "POST";
572
581
  pathParams: z.ZodObject<{
573
582
  channelId: z.ZodString;
@@ -688,7 +697,7 @@ export declare const channelContract: {
688
697
  displayName: string;
689
698
  }[];
690
699
  }>, "many">;
691
- extension: z.ZodOptional<z.ZodObject<{
700
+ extension: z.ZodObject<{
692
701
  id: z.ZodString;
693
702
  createdAt: z.ZodDate;
694
703
  updatedAt: z.ZodDate;
@@ -696,6 +705,7 @@ export declare const channelContract: {
696
705
  userId: z.ZodNullable<z.ZodString>;
697
706
  sipServerUrl: z.ZodString;
698
707
  sipUserName: z.ZodString;
708
+ webphoneLoginUser: z.ZodString;
699
709
  extensionId: z.ZodNumber;
700
710
  extensionName: z.ZodString;
701
711
  telephonySignature: z.ZodNullable<z.ZodString>;
@@ -707,6 +717,7 @@ export declare const channelContract: {
707
717
  userId: string | null;
708
718
  sipServerUrl: string;
709
719
  sipUserName: string;
720
+ webphoneLoginUser: string;
710
721
  extensionId: number;
711
722
  extensionName: string;
712
723
  telephonySignature: string | null;
@@ -718,10 +729,11 @@ export declare const channelContract: {
718
729
  userId: string | null;
719
730
  sipServerUrl: string;
720
731
  sipUserName: string;
732
+ webphoneLoginUser: string;
721
733
  extensionId: number;
722
734
  extensionName: string;
723
735
  telephonySignature: string | null;
724
- }>>;
736
+ }>;
725
737
  }, "strip", z.ZodTypeAny, {
726
738
  id: string;
727
739
  address: string | null;
@@ -752,7 +764,7 @@ export declare const channelContract: {
752
764
  displayName: string;
753
765
  }[];
754
766
  }[];
755
- extension?: {
767
+ extension: {
756
768
  id: string;
757
769
  createdAt: Date;
758
770
  updatedAt: Date;
@@ -760,10 +772,11 @@ export declare const channelContract: {
760
772
  userId: string | null;
761
773
  sipServerUrl: string;
762
774
  sipUserName: string;
775
+ webphoneLoginUser: string;
763
776
  extensionId: number;
764
777
  extensionName: string;
765
778
  telephonySignature: string | null;
766
- } | undefined;
779
+ };
767
780
  }, {
768
781
  id: string;
769
782
  address: string | null;
@@ -794,7 +807,7 @@ export declare const channelContract: {
794
807
  displayName: string;
795
808
  }[];
796
809
  }[];
797
- extension?: {
810
+ extension: {
798
811
  id: string;
799
812
  createdAt: Date;
800
813
  updatedAt: Date;
@@ -802,10 +815,11 @@ export declare const channelContract: {
802
815
  userId: string | null;
803
816
  sipServerUrl: string;
804
817
  sipUserName: string;
818
+ webphoneLoginUser: string;
805
819
  extensionId: number;
806
820
  extensionName: string;
807
821
  telephonySignature: string | null;
808
- } | undefined;
822
+ };
809
823
  }>>;
810
824
  }, "strip", z.ZodTypeAny, {
811
825
  id?: string | undefined;
@@ -856,7 +870,7 @@ export declare const channelContract: {
856
870
  displayName: string;
857
871
  }[];
858
872
  }[];
859
- extension?: {
873
+ extension: {
860
874
  id: string;
861
875
  createdAt: Date;
862
876
  updatedAt: Date;
@@ -864,10 +878,11 @@ export declare const channelContract: {
864
878
  userId: string | null;
865
879
  sipServerUrl: string;
866
880
  sipUserName: string;
881
+ webphoneLoginUser: string;
867
882
  extensionId: number;
868
883
  extensionName: string;
869
884
  telephonySignature: string | null;
870
- } | undefined;
885
+ };
871
886
  } | undefined;
872
887
  }, {
873
888
  id?: string | undefined;
@@ -918,7 +933,7 @@ export declare const channelContract: {
918
933
  displayName: string;
919
934
  }[];
920
935
  }[];
921
- extension?: {
936
+ extension: {
922
937
  id: string;
923
938
  createdAt: Date;
924
939
  updatedAt: Date;
@@ -926,10 +941,11 @@ export declare const channelContract: {
926
941
  userId: string | null;
927
942
  sipServerUrl: string;
928
943
  sipUserName: string;
944
+ webphoneLoginUser: string;
929
945
  extensionId: number;
930
946
  extensionName: string;
931
947
  telephonySignature: string | null;
932
- } | undefined;
948
+ };
933
949
  } | undefined;
934
950
  }>>;
935
951
  }, "strip", z.ZodTypeAny, {
@@ -983,7 +999,7 @@ export declare const channelContract: {
983
999
  displayName: string;
984
1000
  }[];
985
1001
  }[];
986
- extension?: {
1002
+ extension: {
987
1003
  id: string;
988
1004
  createdAt: Date;
989
1005
  updatedAt: Date;
@@ -991,10 +1007,11 @@ export declare const channelContract: {
991
1007
  userId: string | null;
992
1008
  sipServerUrl: string;
993
1009
  sipUserName: string;
1010
+ webphoneLoginUser: string;
994
1011
  extensionId: number;
995
1012
  extensionName: string;
996
1013
  telephonySignature: string | null;
997
- } | undefined;
1014
+ };
998
1015
  } | undefined;
999
1016
  } | undefined;
1000
1017
  }, {
@@ -1048,7 +1065,7 @@ export declare const channelContract: {
1048
1065
  displayName: string;
1049
1066
  }[];
1050
1067
  }[];
1051
- extension?: {
1068
+ extension: {
1052
1069
  id: string;
1053
1070
  createdAt: Date;
1054
1071
  updatedAt: Date;
@@ -1056,10 +1073,11 @@ export declare const channelContract: {
1056
1073
  userId: string | null;
1057
1074
  sipServerUrl: string;
1058
1075
  sipUserName: string;
1076
+ webphoneLoginUser: string;
1059
1077
  extensionId: number;
1060
1078
  extensionName: string;
1061
1079
  telephonySignature: string | null;
1062
- } | undefined;
1080
+ };
1063
1081
  } | undefined;
1064
1082
  } | undefined;
1065
1083
  }>;
@@ -1092,13 +1110,57 @@ export declare const channelContract: {
1092
1110
  'x-client-timezone'?: string | undefined;
1093
1111
  }>>>;
1094
1112
  };
1095
- getChannels: {
1096
- summary: "Get Channels";
1097
- method: "GET";
1113
+ reloginChannel: {
1114
+ body: z.ZodObject<{
1115
+ name: z.ZodString;
1116
+ type: z.ZodEnum<["whatsapp", "messenger", "telegram", "line", "viber", "kakao", "shopee", "lazada", "instagram"]>;
1117
+ metadata: z.ZodObject<{
1118
+ id: z.ZodString;
1119
+ name: z.ZodString;
1120
+ accessToken: z.ZodString;
1121
+ additionalCredentials: z.ZodOptional<z.ZodAny>;
1122
+ }, "strip", z.ZodTypeAny, {
1123
+ id: string;
1124
+ name: string;
1125
+ accessToken: string;
1126
+ additionalCredentials?: any;
1127
+ }, {
1128
+ id: string;
1129
+ name: string;
1130
+ accessToken: string;
1131
+ additionalCredentials?: any;
1132
+ }>;
1133
+ platformId: z.ZodString;
1134
+ connectedUserId: z.ZodString;
1135
+ }, "strip", z.ZodTypeAny, {
1136
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
1137
+ name: string;
1138
+ metadata: {
1139
+ id: string;
1140
+ name: string;
1141
+ accessToken: string;
1142
+ additionalCredentials?: any;
1143
+ };
1144
+ platformId: string;
1145
+ connectedUserId: string;
1146
+ }, {
1147
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
1148
+ name: string;
1149
+ metadata: {
1150
+ id: string;
1151
+ name: string;
1152
+ accessToken: string;
1153
+ additionalCredentials?: any;
1154
+ };
1155
+ platformId: string;
1156
+ connectedUserId: string;
1157
+ }>;
1158
+ summary: "Relogin message channel";
1159
+ method: "POST";
1098
1160
  responses: {
1099
1161
  200: z.ZodObject<{
1100
1162
  requestId: z.ZodString;
1101
- channels: z.ZodArray<z.ZodOptional<z.ZodObject<{
1163
+ channel: z.ZodOptional<z.ZodObject<{
1102
1164
  id: z.ZodOptional<z.ZodString>;
1103
1165
  createdAt: z.ZodOptional<z.ZodDate>;
1104
1166
  updatedAt: z.ZodOptional<z.ZodDate>;
@@ -1207,7 +1269,7 @@ export declare const channelContract: {
1207
1269
  displayName: string;
1208
1270
  }[];
1209
1271
  }>, "many">;
1210
- extension: z.ZodOptional<z.ZodObject<{
1272
+ extension: z.ZodObject<{
1211
1273
  id: z.ZodString;
1212
1274
  createdAt: z.ZodDate;
1213
1275
  updatedAt: z.ZodDate;
@@ -1215,6 +1277,7 @@ export declare const channelContract: {
1215
1277
  userId: z.ZodNullable<z.ZodString>;
1216
1278
  sipServerUrl: z.ZodString;
1217
1279
  sipUserName: z.ZodString;
1280
+ webphoneLoginUser: z.ZodString;
1218
1281
  extensionId: z.ZodNumber;
1219
1282
  extensionName: z.ZodString;
1220
1283
  telephonySignature: z.ZodNullable<z.ZodString>;
@@ -1226,6 +1289,7 @@ export declare const channelContract: {
1226
1289
  userId: string | null;
1227
1290
  sipServerUrl: string;
1228
1291
  sipUserName: string;
1292
+ webphoneLoginUser: string;
1229
1293
  extensionId: number;
1230
1294
  extensionName: string;
1231
1295
  telephonySignature: string | null;
@@ -1237,10 +1301,11 @@ export declare const channelContract: {
1237
1301
  userId: string | null;
1238
1302
  sipServerUrl: string;
1239
1303
  sipUserName: string;
1304
+ webphoneLoginUser: string;
1240
1305
  extensionId: number;
1241
1306
  extensionName: string;
1242
1307
  telephonySignature: string | null;
1243
- }>>;
1308
+ }>;
1244
1309
  }, "strip", z.ZodTypeAny, {
1245
1310
  id: string;
1246
1311
  address: string | null;
@@ -1271,7 +1336,7 @@ export declare const channelContract: {
1271
1336
  displayName: string;
1272
1337
  }[];
1273
1338
  }[];
1274
- extension?: {
1339
+ extension: {
1275
1340
  id: string;
1276
1341
  createdAt: Date;
1277
1342
  updatedAt: Date;
@@ -1279,10 +1344,11 @@ export declare const channelContract: {
1279
1344
  userId: string | null;
1280
1345
  sipServerUrl: string;
1281
1346
  sipUserName: string;
1347
+ webphoneLoginUser: string;
1282
1348
  extensionId: number;
1283
1349
  extensionName: string;
1284
1350
  telephonySignature: string | null;
1285
- } | undefined;
1351
+ };
1286
1352
  }, {
1287
1353
  id: string;
1288
1354
  address: string | null;
@@ -1313,7 +1379,7 @@ export declare const channelContract: {
1313
1379
  displayName: string;
1314
1380
  }[];
1315
1381
  }[];
1316
- extension?: {
1382
+ extension: {
1317
1383
  id: string;
1318
1384
  createdAt: Date;
1319
1385
  updatedAt: Date;
@@ -1321,10 +1387,11 @@ export declare const channelContract: {
1321
1387
  userId: string | null;
1322
1388
  sipServerUrl: string;
1323
1389
  sipUserName: string;
1390
+ webphoneLoginUser: string;
1324
1391
  extensionId: number;
1325
1392
  extensionName: string;
1326
1393
  telephonySignature: string | null;
1327
- } | undefined;
1394
+ };
1328
1395
  }>>;
1329
1396
  }, "strip", z.ZodTypeAny, {
1330
1397
  id?: string | undefined;
@@ -1375,7 +1442,7 @@ export declare const channelContract: {
1375
1442
  displayName: string;
1376
1443
  }[];
1377
1444
  }[];
1378
- extension?: {
1445
+ extension: {
1379
1446
  id: string;
1380
1447
  createdAt: Date;
1381
1448
  updatedAt: Date;
@@ -1383,10 +1450,11 @@ export declare const channelContract: {
1383
1450
  userId: string | null;
1384
1451
  sipServerUrl: string;
1385
1452
  sipUserName: string;
1453
+ webphoneLoginUser: string;
1386
1454
  extensionId: number;
1387
1455
  extensionName: string;
1388
1456
  telephonySignature: string | null;
1389
- } | undefined;
1457
+ };
1390
1458
  } | undefined;
1391
1459
  }, {
1392
1460
  id?: string | undefined;
@@ -1437,7 +1505,7 @@ export declare const channelContract: {
1437
1505
  displayName: string;
1438
1506
  }[];
1439
1507
  }[];
1440
- extension?: {
1508
+ extension: {
1441
1509
  id: string;
1442
1510
  createdAt: Date;
1443
1511
  updatedAt: Date;
@@ -1445,15 +1513,16 @@ export declare const channelContract: {
1445
1513
  userId: string | null;
1446
1514
  sipServerUrl: string;
1447
1515
  sipUserName: string;
1516
+ webphoneLoginUser: string;
1448
1517
  extensionId: number;
1449
1518
  extensionName: string;
1450
1519
  telephonySignature: string | null;
1451
- } | undefined;
1520
+ };
1452
1521
  } | undefined;
1453
- }>>, "many">;
1522
+ }>>;
1454
1523
  }, "strip", z.ZodTypeAny, {
1455
1524
  requestId: string;
1456
- channels: ({
1525
+ channel?: {
1457
1526
  id?: string | undefined;
1458
1527
  createdAt?: Date | undefined;
1459
1528
  updatedAt?: Date | undefined;
@@ -1502,7 +1571,7 @@ export declare const channelContract: {
1502
1571
  displayName: string;
1503
1572
  }[];
1504
1573
  }[];
1505
- extension?: {
1574
+ extension: {
1506
1575
  id: string;
1507
1576
  createdAt: Date;
1508
1577
  updatedAt: Date;
@@ -1510,15 +1579,16 @@ export declare const channelContract: {
1510
1579
  userId: string | null;
1511
1580
  sipServerUrl: string;
1512
1581
  sipUserName: string;
1582
+ webphoneLoginUser: string;
1513
1583
  extensionId: number;
1514
1584
  extensionName: string;
1515
1585
  telephonySignature: string | null;
1516
- } | undefined;
1586
+ };
1517
1587
  } | undefined;
1518
- } | undefined)[];
1588
+ } | undefined;
1519
1589
  }, {
1520
1590
  requestId: string;
1521
- channels: ({
1591
+ channel?: {
1522
1592
  id?: string | undefined;
1523
1593
  createdAt?: Date | undefined;
1524
1594
  updatedAt?: Date | undefined;
@@ -1567,7 +1637,7 @@ export declare const channelContract: {
1567
1637
  displayName: string;
1568
1638
  }[];
1569
1639
  }[];
1570
- extension?: {
1640
+ extension: {
1571
1641
  id: string;
1572
1642
  createdAt: Date;
1573
1643
  updatedAt: Date;
@@ -1575,10 +1645,539 @@ export declare const channelContract: {
1575
1645
  userId: string | null;
1576
1646
  sipServerUrl: string;
1577
1647
  sipUserName: string;
1648
+ webphoneLoginUser: string;
1578
1649
  extensionId: number;
1579
1650
  extensionName: string;
1580
1651
  telephonySignature: string | null;
1581
- } | undefined;
1652
+ };
1653
+ } | undefined;
1654
+ } | undefined;
1655
+ }>;
1656
+ 408: z.ZodObject<{
1657
+ message: z.ZodString;
1658
+ error: z.ZodAny;
1659
+ }, "strip", z.ZodTypeAny, {
1660
+ message: string;
1661
+ error?: any;
1662
+ }, {
1663
+ message: string;
1664
+ error?: any;
1665
+ }>;
1666
+ };
1667
+ path: "channel/relogin";
1668
+ headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1669
+ 'x-tenant': z.ZodString;
1670
+ authorization: z.ZodString;
1671
+ 'x-code': z.ZodOptional<z.ZodString>;
1672
+ 'x-client-timezone': z.ZodDefault<z.ZodString>;
1673
+ }, "strip", z.ZodTypeAny, {
1674
+ 'x-tenant': string;
1675
+ authorization: string;
1676
+ 'x-client-timezone': string;
1677
+ 'x-code'?: string | undefined;
1678
+ }, {
1679
+ 'x-tenant': string;
1680
+ authorization: string;
1681
+ 'x-code'?: string | undefined;
1682
+ 'x-client-timezone'?: string | undefined;
1683
+ }>>>;
1684
+ };
1685
+ getChannels: {
1686
+ summary: "Get Channels";
1687
+ method: "GET";
1688
+ responses: {
1689
+ 200: z.ZodObject<{
1690
+ requestId: z.ZodString;
1691
+ channels: z.ZodArray<z.ZodOptional<z.ZodObject<{
1692
+ id: z.ZodOptional<z.ZodString>;
1693
+ createdAt: z.ZodOptional<z.ZodDate>;
1694
+ updatedAt: z.ZodOptional<z.ZodDate>;
1695
+ deletedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
1696
+ name: z.ZodOptional<z.ZodString>;
1697
+ type: z.ZodOptional<z.ZodEnum<["whatsapp", "messenger", "telegram", "line", "viber", "kakao", "shopee", "lazada", "instagram"]>>;
1698
+ metadata: z.ZodOptional<z.ZodObject<{
1699
+ id: z.ZodString;
1700
+ name: z.ZodString;
1701
+ accessToken: z.ZodString;
1702
+ additionalCredentials: z.ZodOptional<z.ZodAny>;
1703
+ }, "strip", z.ZodTypeAny, {
1704
+ id: string;
1705
+ name: string;
1706
+ accessToken: string;
1707
+ additionalCredentials?: any;
1708
+ }, {
1709
+ id: string;
1710
+ name: string;
1711
+ accessToken: string;
1712
+ additionalCredentials?: any;
1713
+ }>>;
1714
+ brandName: z.ZodOptional<z.ZodString>;
1715
+ platformId: z.ZodOptional<z.ZodString>;
1716
+ status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<true>, z.ZodLiteral<false>]>>;
1717
+ isReloginRequired: z.ZodOptional<z.ZodBoolean>;
1718
+ connectedUserName: z.ZodOptional<z.ZodString>;
1719
+ connectedUserId: z.ZodOptional<z.ZodString>;
1720
+ actor: z.ZodOptional<z.ZodObject<{
1721
+ id: z.ZodString;
1722
+ createdAt: z.ZodDate;
1723
+ updatedAt: z.ZodDate;
1724
+ deletedAt: z.ZodNullable<z.ZodDate>;
1725
+ name: z.ZodString;
1726
+ email: z.ZodString;
1727
+ emailVerifiedAt: z.ZodNullable<z.ZodDate>;
1728
+ password: z.ZodString;
1729
+ address: z.ZodNullable<z.ZodString>;
1730
+ phone: z.ZodNullable<z.ZodString>;
1731
+ notificationCount: z.ZodNullable<z.ZodNumber>;
1732
+ roles: z.ZodArray<z.ZodObject<{
1733
+ id: z.ZodString;
1734
+ createdAt: z.ZodDate;
1735
+ updatedAt: z.ZodDate;
1736
+ deletedAt: z.ZodNullable<z.ZodDate>;
1737
+ systemName: z.ZodString;
1738
+ displayName: z.ZodString;
1739
+ description: z.ZodNullable<z.ZodString>;
1740
+ permissions: z.ZodArray<z.ZodObject<{
1741
+ id: z.ZodString;
1742
+ createdAt: z.ZodDate;
1743
+ updatedAt: z.ZodDate;
1744
+ deletedAt: z.ZodNullable<z.ZodDate>;
1745
+ systemName: z.ZodString;
1746
+ displayName: z.ZodString;
1747
+ description: z.ZodNullable<z.ZodString>;
1748
+ }, "strip", z.ZodTypeAny, {
1749
+ id: string;
1750
+ description: string | null;
1751
+ createdAt: Date;
1752
+ updatedAt: Date;
1753
+ deletedAt: Date | null;
1754
+ systemName: string;
1755
+ displayName: string;
1756
+ }, {
1757
+ id: string;
1758
+ description: string | null;
1759
+ createdAt: Date;
1760
+ updatedAt: Date;
1761
+ deletedAt: Date | null;
1762
+ systemName: string;
1763
+ displayName: string;
1764
+ }>, "many">;
1765
+ }, "strip", z.ZodTypeAny, {
1766
+ id: string;
1767
+ description: string | null;
1768
+ createdAt: Date;
1769
+ updatedAt: Date;
1770
+ deletedAt: Date | null;
1771
+ systemName: string;
1772
+ displayName: string;
1773
+ permissions: {
1774
+ id: string;
1775
+ description: string | null;
1776
+ createdAt: Date;
1777
+ updatedAt: Date;
1778
+ deletedAt: Date | null;
1779
+ systemName: string;
1780
+ displayName: string;
1781
+ }[];
1782
+ }, {
1783
+ id: string;
1784
+ description: string | null;
1785
+ createdAt: Date;
1786
+ updatedAt: Date;
1787
+ deletedAt: Date | null;
1788
+ systemName: string;
1789
+ displayName: string;
1790
+ permissions: {
1791
+ id: string;
1792
+ description: string | null;
1793
+ createdAt: Date;
1794
+ updatedAt: Date;
1795
+ deletedAt: Date | null;
1796
+ systemName: string;
1797
+ displayName: string;
1798
+ }[];
1799
+ }>, "many">;
1800
+ extension: z.ZodObject<{
1801
+ id: z.ZodString;
1802
+ createdAt: z.ZodDate;
1803
+ updatedAt: z.ZodDate;
1804
+ deletedAt: z.ZodNullable<z.ZodDate>;
1805
+ userId: z.ZodNullable<z.ZodString>;
1806
+ sipServerUrl: z.ZodString;
1807
+ sipUserName: z.ZodString;
1808
+ webphoneLoginUser: z.ZodString;
1809
+ extensionId: z.ZodNumber;
1810
+ extensionName: z.ZodString;
1811
+ telephonySignature: z.ZodNullable<z.ZodString>;
1812
+ }, "strip", z.ZodTypeAny, {
1813
+ id: string;
1814
+ createdAt: Date;
1815
+ updatedAt: Date;
1816
+ deletedAt: Date | null;
1817
+ userId: string | null;
1818
+ sipServerUrl: string;
1819
+ sipUserName: string;
1820
+ webphoneLoginUser: string;
1821
+ extensionId: number;
1822
+ extensionName: string;
1823
+ telephonySignature: string | null;
1824
+ }, {
1825
+ id: string;
1826
+ createdAt: Date;
1827
+ updatedAt: Date;
1828
+ deletedAt: Date | null;
1829
+ userId: string | null;
1830
+ sipServerUrl: string;
1831
+ sipUserName: string;
1832
+ webphoneLoginUser: string;
1833
+ extensionId: number;
1834
+ extensionName: string;
1835
+ telephonySignature: string | null;
1836
+ }>;
1837
+ }, "strip", z.ZodTypeAny, {
1838
+ id: string;
1839
+ address: string | null;
1840
+ name: string;
1841
+ email: string;
1842
+ createdAt: Date;
1843
+ updatedAt: Date;
1844
+ deletedAt: Date | null;
1845
+ emailVerifiedAt: Date | null;
1846
+ password: string;
1847
+ phone: string | null;
1848
+ notificationCount: number | null;
1849
+ roles: {
1850
+ id: string;
1851
+ description: string | null;
1852
+ createdAt: Date;
1853
+ updatedAt: Date;
1854
+ deletedAt: Date | null;
1855
+ systemName: string;
1856
+ displayName: string;
1857
+ permissions: {
1858
+ id: string;
1859
+ description: string | null;
1860
+ createdAt: Date;
1861
+ updatedAt: Date;
1862
+ deletedAt: Date | null;
1863
+ systemName: string;
1864
+ displayName: string;
1865
+ }[];
1866
+ }[];
1867
+ extension: {
1868
+ id: string;
1869
+ createdAt: Date;
1870
+ updatedAt: Date;
1871
+ deletedAt: Date | null;
1872
+ userId: string | null;
1873
+ sipServerUrl: string;
1874
+ sipUserName: string;
1875
+ webphoneLoginUser: string;
1876
+ extensionId: number;
1877
+ extensionName: string;
1878
+ telephonySignature: string | null;
1879
+ };
1880
+ }, {
1881
+ id: string;
1882
+ address: string | null;
1883
+ name: string;
1884
+ email: string;
1885
+ createdAt: Date;
1886
+ updatedAt: Date;
1887
+ deletedAt: Date | null;
1888
+ emailVerifiedAt: Date | null;
1889
+ password: string;
1890
+ phone: string | null;
1891
+ notificationCount: number | null;
1892
+ roles: {
1893
+ id: string;
1894
+ description: string | null;
1895
+ createdAt: Date;
1896
+ updatedAt: Date;
1897
+ deletedAt: Date | null;
1898
+ systemName: string;
1899
+ displayName: string;
1900
+ permissions: {
1901
+ id: string;
1902
+ description: string | null;
1903
+ createdAt: Date;
1904
+ updatedAt: Date;
1905
+ deletedAt: Date | null;
1906
+ systemName: string;
1907
+ displayName: string;
1908
+ }[];
1909
+ }[];
1910
+ extension: {
1911
+ id: string;
1912
+ createdAt: Date;
1913
+ updatedAt: Date;
1914
+ deletedAt: Date | null;
1915
+ userId: string | null;
1916
+ sipServerUrl: string;
1917
+ sipUserName: string;
1918
+ webphoneLoginUser: string;
1919
+ extensionId: number;
1920
+ extensionName: string;
1921
+ telephonySignature: string | null;
1922
+ };
1923
+ }>>;
1924
+ }, "strip", z.ZodTypeAny, {
1925
+ id?: string | undefined;
1926
+ createdAt?: Date | undefined;
1927
+ updatedAt?: Date | undefined;
1928
+ deletedAt?: Date | null | undefined;
1929
+ name?: string | undefined;
1930
+ type?: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram" | undefined;
1931
+ metadata?: {
1932
+ id: string;
1933
+ name: string;
1934
+ accessToken: string;
1935
+ additionalCredentials?: any;
1936
+ } | undefined;
1937
+ brandName?: string | undefined;
1938
+ platformId?: string | undefined;
1939
+ status?: boolean | undefined;
1940
+ isReloginRequired?: boolean | undefined;
1941
+ connectedUserName?: string | undefined;
1942
+ connectedUserId?: string | undefined;
1943
+ actor?: {
1944
+ id: string;
1945
+ address: string | null;
1946
+ name: string;
1947
+ email: string;
1948
+ createdAt: Date;
1949
+ updatedAt: Date;
1950
+ deletedAt: Date | null;
1951
+ emailVerifiedAt: Date | null;
1952
+ password: string;
1953
+ phone: string | null;
1954
+ notificationCount: number | null;
1955
+ roles: {
1956
+ id: string;
1957
+ description: string | null;
1958
+ createdAt: Date;
1959
+ updatedAt: Date;
1960
+ deletedAt: Date | null;
1961
+ systemName: string;
1962
+ displayName: string;
1963
+ permissions: {
1964
+ id: string;
1965
+ description: string | null;
1966
+ createdAt: Date;
1967
+ updatedAt: Date;
1968
+ deletedAt: Date | null;
1969
+ systemName: string;
1970
+ displayName: string;
1971
+ }[];
1972
+ }[];
1973
+ extension: {
1974
+ id: string;
1975
+ createdAt: Date;
1976
+ updatedAt: Date;
1977
+ deletedAt: Date | null;
1978
+ userId: string | null;
1979
+ sipServerUrl: string;
1980
+ sipUserName: string;
1981
+ webphoneLoginUser: string;
1982
+ extensionId: number;
1983
+ extensionName: string;
1984
+ telephonySignature: string | null;
1985
+ };
1986
+ } | undefined;
1987
+ }, {
1988
+ id?: string | undefined;
1989
+ createdAt?: Date | undefined;
1990
+ updatedAt?: Date | undefined;
1991
+ deletedAt?: Date | null | undefined;
1992
+ name?: string | undefined;
1993
+ type?: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram" | undefined;
1994
+ metadata?: {
1995
+ id: string;
1996
+ name: string;
1997
+ accessToken: string;
1998
+ additionalCredentials?: any;
1999
+ } | undefined;
2000
+ brandName?: string | undefined;
2001
+ platformId?: string | undefined;
2002
+ status?: boolean | undefined;
2003
+ isReloginRequired?: boolean | undefined;
2004
+ connectedUserName?: string | undefined;
2005
+ connectedUserId?: string | undefined;
2006
+ actor?: {
2007
+ id: string;
2008
+ address: string | null;
2009
+ name: string;
2010
+ email: string;
2011
+ createdAt: Date;
2012
+ updatedAt: Date;
2013
+ deletedAt: Date | null;
2014
+ emailVerifiedAt: Date | null;
2015
+ password: string;
2016
+ phone: string | null;
2017
+ notificationCount: number | null;
2018
+ roles: {
2019
+ id: string;
2020
+ description: string | null;
2021
+ createdAt: Date;
2022
+ updatedAt: Date;
2023
+ deletedAt: Date | null;
2024
+ systemName: string;
2025
+ displayName: string;
2026
+ permissions: {
2027
+ id: string;
2028
+ description: string | null;
2029
+ createdAt: Date;
2030
+ updatedAt: Date;
2031
+ deletedAt: Date | null;
2032
+ systemName: string;
2033
+ displayName: string;
2034
+ }[];
2035
+ }[];
2036
+ extension: {
2037
+ id: string;
2038
+ createdAt: Date;
2039
+ updatedAt: Date;
2040
+ deletedAt: Date | null;
2041
+ userId: string | null;
2042
+ sipServerUrl: string;
2043
+ sipUserName: string;
2044
+ webphoneLoginUser: string;
2045
+ extensionId: number;
2046
+ extensionName: string;
2047
+ telephonySignature: string | null;
2048
+ };
2049
+ } | undefined;
2050
+ }>>, "many">;
2051
+ }, "strip", z.ZodTypeAny, {
2052
+ requestId: string;
2053
+ channels: ({
2054
+ id?: string | undefined;
2055
+ createdAt?: Date | undefined;
2056
+ updatedAt?: Date | undefined;
2057
+ deletedAt?: Date | null | undefined;
2058
+ name?: string | undefined;
2059
+ type?: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram" | undefined;
2060
+ metadata?: {
2061
+ id: string;
2062
+ name: string;
2063
+ accessToken: string;
2064
+ additionalCredentials?: any;
2065
+ } | undefined;
2066
+ brandName?: string | undefined;
2067
+ platformId?: string | undefined;
2068
+ status?: boolean | undefined;
2069
+ isReloginRequired?: boolean | undefined;
2070
+ connectedUserName?: string | undefined;
2071
+ connectedUserId?: string | undefined;
2072
+ actor?: {
2073
+ id: string;
2074
+ address: string | null;
2075
+ name: string;
2076
+ email: string;
2077
+ createdAt: Date;
2078
+ updatedAt: Date;
2079
+ deletedAt: Date | null;
2080
+ emailVerifiedAt: Date | null;
2081
+ password: string;
2082
+ phone: string | null;
2083
+ notificationCount: number | null;
2084
+ roles: {
2085
+ id: string;
2086
+ description: string | null;
2087
+ createdAt: Date;
2088
+ updatedAt: Date;
2089
+ deletedAt: Date | null;
2090
+ systemName: string;
2091
+ displayName: string;
2092
+ permissions: {
2093
+ id: string;
2094
+ description: string | null;
2095
+ createdAt: Date;
2096
+ updatedAt: Date;
2097
+ deletedAt: Date | null;
2098
+ systemName: string;
2099
+ displayName: string;
2100
+ }[];
2101
+ }[];
2102
+ extension: {
2103
+ id: string;
2104
+ createdAt: Date;
2105
+ updatedAt: Date;
2106
+ deletedAt: Date | null;
2107
+ userId: string | null;
2108
+ sipServerUrl: string;
2109
+ sipUserName: string;
2110
+ webphoneLoginUser: string;
2111
+ extensionId: number;
2112
+ extensionName: string;
2113
+ telephonySignature: string | null;
2114
+ };
2115
+ } | undefined;
2116
+ } | undefined)[];
2117
+ }, {
2118
+ requestId: string;
2119
+ channels: ({
2120
+ id?: string | undefined;
2121
+ createdAt?: Date | undefined;
2122
+ updatedAt?: Date | undefined;
2123
+ deletedAt?: Date | null | undefined;
2124
+ name?: string | undefined;
2125
+ type?: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram" | undefined;
2126
+ metadata?: {
2127
+ id: string;
2128
+ name: string;
2129
+ accessToken: string;
2130
+ additionalCredentials?: any;
2131
+ } | undefined;
2132
+ brandName?: string | undefined;
2133
+ platformId?: string | undefined;
2134
+ status?: boolean | undefined;
2135
+ isReloginRequired?: boolean | undefined;
2136
+ connectedUserName?: string | undefined;
2137
+ connectedUserId?: string | undefined;
2138
+ actor?: {
2139
+ id: string;
2140
+ address: string | null;
2141
+ name: string;
2142
+ email: string;
2143
+ createdAt: Date;
2144
+ updatedAt: Date;
2145
+ deletedAt: Date | null;
2146
+ emailVerifiedAt: Date | null;
2147
+ password: string;
2148
+ phone: string | null;
2149
+ notificationCount: number | null;
2150
+ roles: {
2151
+ id: string;
2152
+ description: string | null;
2153
+ createdAt: Date;
2154
+ updatedAt: Date;
2155
+ deletedAt: Date | null;
2156
+ systemName: string;
2157
+ displayName: string;
2158
+ permissions: {
2159
+ id: string;
2160
+ description: string | null;
2161
+ createdAt: Date;
2162
+ updatedAt: Date;
2163
+ deletedAt: Date | null;
2164
+ systemName: string;
2165
+ displayName: string;
2166
+ }[];
2167
+ }[];
2168
+ extension: {
2169
+ id: string;
2170
+ createdAt: Date;
2171
+ updatedAt: Date;
2172
+ deletedAt: Date | null;
2173
+ userId: string | null;
2174
+ sipServerUrl: string;
2175
+ sipUserName: string;
2176
+ webphoneLoginUser: string;
2177
+ extensionId: number;
2178
+ extensionName: string;
2179
+ telephonySignature: string | null;
2180
+ };
1582
2181
  } | undefined;
1583
2182
  } | undefined)[];
1584
2183
  }>;