@kl1/contracts 1.2.50-uat → 1.2.51-uat

Sign up to get free protection for your applications and to get access to all the features.
Files changed (36) hide show
  1. package/dist/api-contracts/src/activity-log/index.d.ts +3 -3
  2. package/dist/api-contracts/src/attribute/index.d.ts +21 -21
  3. package/dist/api-contracts/src/auth/index.d.ts +15 -15
  4. package/dist/api-contracts/src/automation-queue/index.d.ts +21 -21
  5. package/dist/api-contracts/src/base-contract.d.ts +3 -3
  6. package/dist/api-contracts/src/category/index.d.ts +18 -18
  7. package/dist/api-contracts/src/channel/index.d.ts +66 -66
  8. package/dist/api-contracts/src/chat/index.d.ts +60 -60
  9. package/dist/api-contracts/src/comment/index.d.ts +16 -16
  10. package/dist/api-contracts/src/company/index.d.ts +5 -5
  11. package/dist/api-contracts/src/contact/index.d.ts +56 -56
  12. package/dist/api-contracts/src/contract.d.ts +795 -795
  13. package/dist/api-contracts/src/cx-intelligence/index.d.ts +9 -9
  14. package/dist/api-contracts/src/cx-log/index.d.ts +9 -9
  15. package/dist/api-contracts/src/dashboard/index.d.ts +54 -54
  16. package/dist/api-contracts/src/extension/index.d.ts +21 -21
  17. package/dist/api-contracts/src/mail/account-contract.d.ts +33 -33
  18. package/dist/api-contracts/src/mail/mail-contract.d.ts +33 -33
  19. package/dist/api-contracts/src/permission/index.d.ts +3 -3
  20. package/dist/api-contracts/src/presence-status/index.d.ts +15 -15
  21. package/dist/api-contracts/src/role/index.d.ts +15 -15
  22. package/dist/api-contracts/src/tag/index.d.ts +12 -12
  23. package/dist/api-contracts/src/telephony-agent-presence-status/index.d.ts +9 -9
  24. package/dist/api-contracts/src/telephony-cdr/index.d.ts +42 -42
  25. package/dist/api-contracts/src/telephony-extension/index.d.ts +3 -3
  26. package/dist/api-contracts/src/ticket/index.d.ts +76 -76
  27. package/dist/api-contracts/src/upload/index.d.ts +6 -6
  28. package/dist/api-contracts/src/user/index.d.ts +18 -18
  29. package/dist/api-contracts/src/user-presence-status-log/index.d.ts +6 -6
  30. package/dist/api-contracts/src/widget/index.d.ts +27 -27
  31. package/dist/api-contracts/src/wrap-up-form/index.d.ts +18 -18
  32. package/dist/index.js +5 -5
  33. package/dist/index.js.map +1 -1
  34. package/dist/index.mjs +5 -5
  35. package/dist/index.mjs.map +1 -1
  36. package/package.json +1 -1
@@ -344,17 +344,17 @@ export declare const userPresenceStatusLogContract: {
344
344
  path: "user-presence-status-log";
345
345
  headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
346
346
  'x-tenant': z.ZodString;
347
- authorization: z.ZodString;
347
+ 'x-service-token': z.ZodString;
348
348
  'x-code': z.ZodOptional<z.ZodString>;
349
349
  'x-client-timezone': z.ZodDefault<z.ZodString>;
350
350
  }, "strip", z.ZodTypeAny, {
351
351
  'x-tenant': string;
352
- authorization: string;
352
+ 'x-service-token': string;
353
353
  'x-client-timezone': string;
354
354
  'x-code'?: string | undefined;
355
355
  }, {
356
356
  'x-tenant': string;
357
- authorization: string;
357
+ 'x-service-token': string;
358
358
  'x-code'?: string | undefined;
359
359
  'x-client-timezone'?: string | undefined;
360
360
  }>>>;
@@ -401,17 +401,17 @@ export declare const userPresenceStatusLogContract: {
401
401
  path: "user-presence-status-log/export";
402
402
  headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
403
403
  'x-tenant': z.ZodString;
404
- authorization: z.ZodString;
404
+ 'x-service-token': z.ZodString;
405
405
  'x-code': z.ZodOptional<z.ZodString>;
406
406
  'x-client-timezone': z.ZodDefault<z.ZodString>;
407
407
  }, "strip", z.ZodTypeAny, {
408
408
  'x-tenant': string;
409
- authorization: string;
409
+ 'x-service-token': string;
410
410
  'x-client-timezone': string;
411
411
  'x-code'?: string | undefined;
412
412
  }, {
413
413
  'x-tenant': string;
414
- authorization: string;
414
+ 'x-service-token': string;
415
415
  'x-code'?: string | undefined;
416
416
  'x-client-timezone'?: string | undefined;
417
417
  }>>>;
@@ -144,17 +144,17 @@ export declare const widgetContract: {
144
144
  path: "widget";
145
145
  headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
146
146
  'x-tenant': z.ZodString;
147
- authorization: z.ZodString;
147
+ 'x-service-token': z.ZodString;
148
148
  'x-code': z.ZodOptional<z.ZodString>;
149
149
  'x-client-timezone': z.ZodDefault<z.ZodString>;
150
150
  }, "strip", z.ZodTypeAny, {
151
151
  'x-tenant': string;
152
- authorization: string;
152
+ 'x-service-token': string;
153
153
  'x-client-timezone': string;
154
154
  'x-code'?: string | undefined;
155
155
  }, {
156
156
  'x-tenant': string;
157
- authorization: string;
157
+ 'x-service-token': string;
158
158
  'x-code'?: string | undefined;
159
159
  'x-client-timezone'?: string | undefined;
160
160
  }>>>;
@@ -274,17 +274,17 @@ export declare const widgetContract: {
274
274
  path: "widget";
275
275
  headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
276
276
  'x-tenant': z.ZodString;
277
- authorization: z.ZodString;
277
+ 'x-service-token': z.ZodString;
278
278
  'x-code': z.ZodOptional<z.ZodString>;
279
279
  'x-client-timezone': z.ZodDefault<z.ZodString>;
280
280
  }, "strip", z.ZodTypeAny, {
281
281
  'x-tenant': string;
282
- authorization: string;
282
+ 'x-service-token': string;
283
283
  'x-client-timezone': string;
284
284
  'x-code'?: string | undefined;
285
285
  }, {
286
286
  'x-tenant': string;
287
- authorization: string;
287
+ 'x-service-token': string;
288
288
  'x-code'?: string | undefined;
289
289
  'x-client-timezone'?: string | undefined;
290
290
  }>>>;
@@ -365,17 +365,17 @@ export declare const widgetContract: {
365
365
  path: "widget/menu";
366
366
  headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
367
367
  'x-tenant': z.ZodString;
368
- authorization: z.ZodString;
368
+ 'x-service-token': z.ZodString;
369
369
  'x-code': z.ZodOptional<z.ZodString>;
370
370
  'x-client-timezone': z.ZodDefault<z.ZodString>;
371
371
  }, "strip", z.ZodTypeAny, {
372
372
  'x-tenant': string;
373
- authorization: string;
373
+ 'x-service-token': string;
374
374
  'x-client-timezone': string;
375
375
  'x-code'?: string | undefined;
376
376
  }, {
377
377
  'x-tenant': string;
378
- authorization: string;
378
+ 'x-service-token': string;
379
379
  'x-code'?: string | undefined;
380
380
  'x-client-timezone'?: string | undefined;
381
381
  }>>>;
@@ -456,17 +456,17 @@ export declare const widgetContract: {
456
456
  path: "widget/ticket_detail";
457
457
  headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
458
458
  'x-tenant': z.ZodString;
459
- authorization: z.ZodString;
459
+ 'x-service-token': z.ZodString;
460
460
  'x-code': z.ZodOptional<z.ZodString>;
461
461
  'x-client-timezone': z.ZodDefault<z.ZodString>;
462
462
  }, "strip", z.ZodTypeAny, {
463
463
  'x-tenant': string;
464
- authorization: string;
464
+ 'x-service-token': string;
465
465
  'x-client-timezone': string;
466
466
  'x-code'?: string | undefined;
467
467
  }, {
468
468
  'x-tenant': string;
469
- authorization: string;
469
+ 'x-service-token': string;
470
470
  'x-code'?: string | undefined;
471
471
  'x-client-timezone'?: string | undefined;
472
472
  }>>>;
@@ -547,17 +547,17 @@ export declare const widgetContract: {
547
547
  path: "widget/contact_detail";
548
548
  headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
549
549
  'x-tenant': z.ZodString;
550
- authorization: z.ZodString;
550
+ 'x-service-token': z.ZodString;
551
551
  'x-code': z.ZodOptional<z.ZodString>;
552
552
  'x-client-timezone': z.ZodDefault<z.ZodString>;
553
553
  }, "strip", z.ZodTypeAny, {
554
554
  'x-tenant': string;
555
- authorization: string;
555
+ 'x-service-token': string;
556
556
  'x-client-timezone': string;
557
557
  'x-code'?: string | undefined;
558
558
  }, {
559
559
  'x-tenant': string;
560
- authorization: string;
560
+ 'x-service-token': string;
561
561
  'x-code'?: string | undefined;
562
562
  'x-client-timezone'?: string | undefined;
563
563
  }>>>;
@@ -645,17 +645,17 @@ export declare const widgetContract: {
645
645
  path: "widget/:id";
646
646
  headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
647
647
  'x-tenant': z.ZodString;
648
- authorization: z.ZodString;
648
+ 'x-service-token': z.ZodString;
649
649
  'x-code': z.ZodOptional<z.ZodString>;
650
650
  'x-client-timezone': z.ZodDefault<z.ZodString>;
651
651
  }, "strip", z.ZodTypeAny, {
652
652
  'x-tenant': string;
653
- authorization: string;
653
+ 'x-service-token': string;
654
654
  'x-client-timezone': string;
655
655
  'x-code'?: string | undefined;
656
656
  }, {
657
657
  'x-tenant': string;
658
- authorization: string;
658
+ 'x-service-token': string;
659
659
  'x-code'?: string | undefined;
660
660
  'x-client-timezone'?: string | undefined;
661
661
  }>>>;
@@ -705,17 +705,17 @@ export declare const widgetContract: {
705
705
  path: "widget/url_token/generate";
706
706
  headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
707
707
  'x-tenant': z.ZodString;
708
- authorization: z.ZodString;
708
+ 'x-service-token': z.ZodString;
709
709
  'x-code': z.ZodOptional<z.ZodString>;
710
710
  'x-client-timezone': z.ZodDefault<z.ZodString>;
711
711
  }, "strip", z.ZodTypeAny, {
712
712
  'x-tenant': string;
713
- authorization: string;
713
+ 'x-service-token': string;
714
714
  'x-client-timezone': string;
715
715
  'x-code'?: string | undefined;
716
716
  }, {
717
717
  'x-tenant': string;
718
- authorization: string;
718
+ 'x-service-token': string;
719
719
  'x-code'?: string | undefined;
720
720
  'x-client-timezone'?: string | undefined;
721
721
  }>>>;
@@ -855,17 +855,17 @@ export declare const widgetContract: {
855
855
  path: "widget/:id";
856
856
  headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
857
857
  'x-tenant': z.ZodString;
858
- authorization: z.ZodString;
858
+ 'x-service-token': z.ZodString;
859
859
  'x-code': z.ZodOptional<z.ZodString>;
860
860
  'x-client-timezone': z.ZodDefault<z.ZodString>;
861
861
  }, "strip", z.ZodTypeAny, {
862
862
  'x-tenant': string;
863
- authorization: string;
863
+ 'x-service-token': string;
864
864
  'x-client-timezone': string;
865
865
  'x-code'?: string | undefined;
866
866
  }, {
867
867
  'x-tenant': string;
868
- authorization: string;
868
+ 'x-service-token': string;
869
869
  'x-code'?: string | undefined;
870
870
  'x-client-timezone'?: string | undefined;
871
871
  }>>>;
@@ -906,17 +906,17 @@ export declare const widgetContract: {
906
906
  path: "widget/:id";
907
907
  headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
908
908
  'x-tenant': z.ZodString;
909
- authorization: z.ZodString;
909
+ 'x-service-token': z.ZodString;
910
910
  'x-code': z.ZodOptional<z.ZodString>;
911
911
  'x-client-timezone': z.ZodDefault<z.ZodString>;
912
912
  }, "strip", z.ZodTypeAny, {
913
913
  'x-tenant': string;
914
- authorization: string;
914
+ 'x-service-token': string;
915
915
  'x-client-timezone': string;
916
916
  'x-code'?: string | undefined;
917
917
  }, {
918
918
  'x-tenant': string;
919
- authorization: string;
919
+ 'x-service-token': string;
920
920
  'x-code'?: string | undefined;
921
921
  'x-client-timezone'?: string | undefined;
922
922
  }>>>;
@@ -48,17 +48,17 @@ export declare const wrapUpFormContract: {
48
48
  path: "wrap-up-form/timer";
49
49
  headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
50
50
  'x-tenant': z.ZodString;
51
- authorization: z.ZodString;
51
+ 'x-service-token': z.ZodString;
52
52
  'x-code': z.ZodOptional<z.ZodString>;
53
53
  'x-client-timezone': z.ZodDefault<z.ZodString>;
54
54
  }, "strip", z.ZodTypeAny, {
55
55
  'x-tenant': string;
56
- authorization: string;
56
+ 'x-service-token': string;
57
57
  'x-client-timezone': string;
58
58
  'x-code'?: string | undefined;
59
59
  }, {
60
60
  'x-tenant': string;
61
- authorization: string;
61
+ 'x-service-token': string;
62
62
  'x-code'?: string | undefined;
63
63
  'x-client-timezone'?: string | undefined;
64
64
  }>>>;
@@ -114,17 +114,17 @@ export declare const wrapUpFormContract: {
114
114
  path: "wrap-up-form/timer";
115
115
  headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
116
116
  'x-tenant': z.ZodString;
117
- authorization: z.ZodString;
117
+ 'x-service-token': z.ZodString;
118
118
  'x-code': z.ZodOptional<z.ZodString>;
119
119
  'x-client-timezone': z.ZodDefault<z.ZodString>;
120
120
  }, "strip", z.ZodTypeAny, {
121
121
  'x-tenant': string;
122
- authorization: string;
122
+ 'x-service-token': string;
123
123
  'x-client-timezone': string;
124
124
  'x-code'?: string | undefined;
125
125
  }, {
126
126
  'x-tenant': string;
127
- authorization: string;
127
+ 'x-service-token': string;
128
128
  'x-code'?: string | undefined;
129
129
  'x-client-timezone'?: string | undefined;
130
130
  }>>>;
@@ -557,17 +557,17 @@ export declare const wrapUpFormContract: {
557
557
  path: "wrap-up-form";
558
558
  headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
559
559
  'x-tenant': z.ZodString;
560
- authorization: z.ZodString;
560
+ 'x-service-token': z.ZodString;
561
561
  'x-code': z.ZodOptional<z.ZodString>;
562
562
  'x-client-timezone': z.ZodDefault<z.ZodString>;
563
563
  }, "strip", z.ZodTypeAny, {
564
564
  'x-tenant': string;
565
- authorization: string;
565
+ 'x-service-token': string;
566
566
  'x-client-timezone': string;
567
567
  'x-code'?: string | undefined;
568
568
  }, {
569
569
  'x-tenant': string;
570
- authorization: string;
570
+ 'x-service-token': string;
571
571
  'x-code'?: string | undefined;
572
572
  'x-client-timezone'?: string | undefined;
573
573
  }>>>;
@@ -1259,17 +1259,17 @@ export declare const wrapUpFormContract: {
1259
1259
  path: "wrap-up-form";
1260
1260
  headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1261
1261
  'x-tenant': z.ZodString;
1262
- authorization: z.ZodString;
1262
+ 'x-service-token': z.ZodString;
1263
1263
  'x-code': z.ZodOptional<z.ZodString>;
1264
1264
  'x-client-timezone': z.ZodDefault<z.ZodString>;
1265
1265
  }, "strip", z.ZodTypeAny, {
1266
1266
  'x-tenant': string;
1267
- authorization: string;
1267
+ 'x-service-token': string;
1268
1268
  'x-client-timezone': string;
1269
1269
  'x-code'?: string | undefined;
1270
1270
  }, {
1271
1271
  'x-tenant': string;
1272
- authorization: string;
1272
+ 'x-service-token': string;
1273
1273
  'x-code'?: string | undefined;
1274
1274
  'x-client-timezone'?: string | undefined;
1275
1275
  }>>>;
@@ -1581,17 +1581,17 @@ export declare const wrapUpFormContract: {
1581
1581
  path: "wrap-up-form/:id";
1582
1582
  headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1583
1583
  'x-tenant': z.ZodString;
1584
- authorization: z.ZodString;
1584
+ 'x-service-token': z.ZodString;
1585
1585
  'x-code': z.ZodOptional<z.ZodString>;
1586
1586
  'x-client-timezone': z.ZodDefault<z.ZodString>;
1587
1587
  }, "strip", z.ZodTypeAny, {
1588
1588
  'x-tenant': string;
1589
- authorization: string;
1589
+ 'x-service-token': string;
1590
1590
  'x-client-timezone': string;
1591
1591
  'x-code'?: string | undefined;
1592
1592
  }, {
1593
1593
  'x-tenant': string;
1594
- authorization: string;
1594
+ 'x-service-token': string;
1595
1595
  'x-code'?: string | undefined;
1596
1596
  'x-client-timezone'?: string | undefined;
1597
1597
  }>>>;
@@ -2069,17 +2069,17 @@ export declare const wrapUpFormContract: {
2069
2069
  path: "wrap-up-form/:id";
2070
2070
  headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
2071
2071
  'x-tenant': z.ZodString;
2072
- authorization: z.ZodString;
2072
+ 'x-service-token': z.ZodString;
2073
2073
  'x-code': z.ZodOptional<z.ZodString>;
2074
2074
  'x-client-timezone': z.ZodDefault<z.ZodString>;
2075
2075
  }, "strip", z.ZodTypeAny, {
2076
2076
  'x-tenant': string;
2077
- authorization: string;
2077
+ 'x-service-token': string;
2078
2078
  'x-client-timezone': string;
2079
2079
  'x-code'?: string | undefined;
2080
2080
  }, {
2081
2081
  'x-tenant': string;
2082
- authorization: string;
2082
+ 'x-service-token': string;
2083
2083
  'x-code'?: string | undefined;
2084
2084
  'x-client-timezone'?: string | undefined;
2085
2085
  }>>>;
package/dist/index.js CHANGED
@@ -113,7 +113,7 @@ var import_zod = __toESM(require("zod"));
113
113
  var DefaultHeaderSchema = import_zod.default.object({
114
114
  // biome-ignore lint/style/useNamingConvention: <explanation>
115
115
  "x-tenant": import_zod.default.string({ required_error: "Tenant id is required" }),
116
- authorization: import_zod.default.string(),
116
+ "x-service-token": import_zod.default.string(),
117
117
  "x-code": import_zod.default.string().uuid().optional(),
118
118
  "x-client-timezone": import_zod.default.string().default("Asia/Rangoon")
119
119
  }).optional().nullable();
@@ -3369,7 +3369,7 @@ var commentContract = (0, import_core9.initContract)().router(
3369
3369
  summary: "Delete a comment."
3370
3370
  }
3371
3371
  },
3372
- { pathPrefix: "ticket-service/comment" }
3372
+ { pathPrefix: "ts/comment" }
3373
3373
  );
3374
3374
 
3375
3375
  // src/company/index.ts
@@ -3559,7 +3559,7 @@ var companyContract = (0, import_core10.initContract)().router(
3559
3559
  }
3560
3560
  },
3561
3561
  {
3562
- pathPrefix: "contact-service/companies"
3562
+ pathPrefix: "cs/companies"
3563
3563
  }
3564
3564
  );
3565
3565
 
@@ -4137,7 +4137,7 @@ var contactContract = (0, import_core11.initContract)().router(
4137
4137
  },
4138
4138
  {
4139
4139
  baseHeaders: DefaultHeaderSchema,
4140
- pathPrefix: "contact-service/contact"
4140
+ pathPrefix: "cs/contact"
4141
4141
  }
4142
4142
  );
4143
4143
 
@@ -6536,7 +6536,7 @@ var ticketContract = (0, import_core26.initContract)().router(
6536
6536
  }
6537
6537
  }
6538
6538
  },
6539
- { pathPrefix: "ticket-service/ticket" }
6539
+ { pathPrefix: "ts/ticket" }
6540
6540
  );
6541
6541
 
6542
6542
  // src/user/index.ts