@kl1/contracts 1.2.38-uat → 1.2.39-uat

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 (99) hide show
  1. package/dist/api-contracts/src/channel/index.d.ts +2349 -2560
  2. package/dist/api-contracts/src/channel/index.d.ts.map +1 -1
  3. package/dist/api-contracts/src/channel/schema.d.ts +75 -87
  4. package/dist/api-contracts/src/channel/schema.d.ts.map +1 -1
  5. package/dist/api-contracts/src/channel/validation.d.ts +84 -98
  6. package/dist/api-contracts/src/channel/validation.d.ts.map +1 -1
  7. package/dist/api-contracts/src/chat/index.d.ts +6954 -2629
  8. package/dist/api-contracts/src/chat/index.d.ts.map +1 -1
  9. package/dist/api-contracts/src/chat/schema.d.ts +1675 -721
  10. package/dist/api-contracts/src/chat/schema.d.ts.map +1 -1
  11. package/dist/api-contracts/src/chat/validation.d.ts +1512 -818
  12. package/dist/api-contracts/src/chat/validation.d.ts.map +1 -1
  13. package/dist/api-contracts/src/comment/index.d.ts +68 -68
  14. package/dist/api-contracts/src/comment/schema.d.ts +20 -20
  15. package/dist/api-contracts/src/contact/index.d.ts +97 -97
  16. package/dist/api-contracts/src/contact/schema.d.ts +12 -12
  17. package/dist/api-contracts/src/contact/validation.d.ts +56 -56
  18. package/dist/api-contracts/src/contract.d.ts +13847 -11876
  19. package/dist/api-contracts/src/contract.d.ts.map +1 -1
  20. package/dist/api-contracts/src/cx-intelligence/index.d.ts +87 -0
  21. package/dist/api-contracts/src/cx-intelligence/index.d.ts.map +1 -1
  22. package/dist/api-contracts/src/cx-log/index.d.ts +190 -143
  23. package/dist/api-contracts/src/cx-log/index.d.ts.map +1 -1
  24. package/dist/api-contracts/src/cx-log/schema.d.ts +233 -119
  25. package/dist/api-contracts/src/cx-log/schema.d.ts.map +1 -1
  26. package/dist/api-contracts/src/dashboard/index.d.ts +77 -99
  27. package/dist/api-contracts/src/dashboard/index.d.ts.map +1 -1
  28. package/dist/api-contracts/src/dashboard/schema.d.ts +12 -55
  29. package/dist/api-contracts/src/dashboard/schema.d.ts.map +1 -1
  30. package/dist/api-contracts/src/dashboard/validation.d.ts +26 -0
  31. package/dist/api-contracts/src/dashboard/validation.d.ts.map +1 -1
  32. package/dist/api-contracts/src/extension/index.d.ts +81 -0
  33. package/dist/api-contracts/src/extension/index.d.ts.map +1 -1
  34. package/dist/api-contracts/src/facebook-feed/index.d.ts +1466 -1060
  35. package/dist/api-contracts/src/facebook-feed/index.d.ts.map +1 -1
  36. package/dist/api-contracts/src/facebook-feed/schema.d.ts +68 -77
  37. package/dist/api-contracts/src/facebook-feed/schema.d.ts.map +1 -1
  38. package/dist/api-contracts/src/facebook-feed/validation.d.ts +53 -60
  39. package/dist/api-contracts/src/facebook-feed/validation.d.ts.map +1 -1
  40. package/dist/api-contracts/src/index.d.ts +5 -0
  41. package/dist/api-contracts/src/index.d.ts.map +1 -1
  42. package/dist/api-contracts/src/instagram/index.d.ts +1271 -836
  43. package/dist/api-contracts/src/instagram/index.d.ts.map +1 -1
  44. package/dist/api-contracts/src/line/index.d.ts +1204 -757
  45. package/dist/api-contracts/src/line/index.d.ts.map +1 -1
  46. package/dist/api-contracts/src/line/validation.d.ts +71 -82
  47. package/dist/api-contracts/src/line/validation.d.ts.map +1 -1
  48. package/dist/api-contracts/src/mail/mail-contract.d.ts +619 -7
  49. package/dist/api-contracts/src/mail/mail-contract.d.ts.map +1 -1
  50. package/dist/api-contracts/src/mail/room-contract.d.ts +619 -7
  51. package/dist/api-contracts/src/mail/room-contract.d.ts.map +1 -1
  52. package/dist/api-contracts/src/mail/schemas/room-validation.schema.d.ts +204 -0
  53. package/dist/api-contracts/src/mail/schemas/room-validation.schema.d.ts.map +1 -1
  54. package/dist/api-contracts/src/mail/schemas/room.schema.d.ts +165 -5
  55. package/dist/api-contracts/src/mail/schemas/room.schema.d.ts.map +1 -1
  56. package/dist/api-contracts/src/messenger/index.d.ts +1271 -836
  57. package/dist/api-contracts/src/messenger/index.d.ts.map +1 -1
  58. package/dist/api-contracts/src/messenger/validation.d.ts +53 -60
  59. package/dist/api-contracts/src/messenger/validation.d.ts.map +1 -1
  60. package/dist/api-contracts/src/public-api/index.d.ts +59 -59
  61. package/dist/api-contracts/src/public-api/schema.d.ts +12 -12
  62. package/dist/api-contracts/src/public-api/validation.d.ts +19 -19
  63. package/dist/api-contracts/src/sms/index.d.ts +180 -146
  64. package/dist/api-contracts/src/sms/index.d.ts.map +1 -1
  65. package/dist/api-contracts/src/sms/schema.d.ts +22 -0
  66. package/dist/api-contracts/src/sms/schema.d.ts.map +1 -1
  67. package/dist/api-contracts/src/snippet/index.d.ts +105 -105
  68. package/dist/api-contracts/src/snippet/schema.d.ts +40 -40
  69. package/dist/api-contracts/src/telegram/index.d.ts +1091 -626
  70. package/dist/api-contracts/src/telegram/index.d.ts.map +1 -1
  71. package/dist/api-contracts/src/telephony-agent-presence-status/index.d.ts +34 -89
  72. package/dist/api-contracts/src/telephony-agent-presence-status/index.d.ts.map +1 -1
  73. package/dist/api-contracts/src/telephony-agent-presence-status/schema.d.ts +10 -27
  74. package/dist/api-contracts/src/telephony-agent-presence-status/schema.d.ts.map +1 -1
  75. package/dist/api-contracts/src/telephony-cdr/index.d.ts +54 -54
  76. package/dist/api-contracts/src/telephony-cdr/index.d.ts.map +1 -1
  77. package/dist/api-contracts/src/telephony-cdr/schema.d.ts +14 -14
  78. package/dist/api-contracts/src/ticket/index.d.ts +111 -111
  79. package/dist/api-contracts/src/ticket/schema.d.ts +21 -21
  80. package/dist/api-contracts/src/upload/schema.d.ts +3 -3
  81. package/dist/api-contracts/src/user-presence-status-log/index.d.ts +16 -8
  82. package/dist/api-contracts/src/user-presence-status-log/index.d.ts.map +1 -1
  83. package/dist/api-contracts/src/user-presence-status-log/schema.d.ts +20 -10
  84. package/dist/api-contracts/src/user-presence-status-log/schema.d.ts.map +1 -1
  85. package/dist/api-contracts/src/viber/index.d.ts +1091 -626
  86. package/dist/api-contracts/src/viber/index.d.ts.map +1 -1
  87. package/dist/api-contracts/src/webchat/index.d.ts +1091 -626
  88. package/dist/api-contracts/src/webchat/index.d.ts.map +1 -1
  89. package/dist/api-contracts/src/whatsapp/index.d.ts +1175 -724
  90. package/dist/api-contracts/src/whatsapp/index.d.ts.map +1 -1
  91. package/dist/api-contracts/src/workflow-rule/index.d.ts +569 -183
  92. package/dist/api-contracts/src/workflow-rule/index.d.ts.map +1 -1
  93. package/dist/entities/src/enums/chat.d.ts +3 -0
  94. package/dist/entities/src/enums/chat.d.ts.map +1 -1
  95. package/dist/index.js +4837 -4272
  96. package/dist/index.js.map +1 -1
  97. package/dist/index.mjs +4830 -4272
  98. package/dist/index.mjs.map +1 -1
  99. package/package.json +7 -3
@@ -2,19 +2,19 @@ import z from 'zod';
2
2
  export declare const chatContract: {
3
3
  updateAssignee: {
4
4
  body: z.ZodObject<{
5
- assigneeId: z.ZodString;
5
+ assigneeId: z.ZodOptional<z.ZodString>;
6
6
  roomId: z.ZodString;
7
7
  workflowId: z.ZodString;
8
8
  queueId: z.ZodOptional<z.ZodString>;
9
9
  }, "strip", z.ZodTypeAny, {
10
- assigneeId: string;
11
10
  roomId: string;
12
11
  workflowId: string;
12
+ assigneeId?: string | undefined;
13
13
  queueId?: string | undefined;
14
14
  }, {
15
- assigneeId: string;
16
15
  roomId: string;
17
16
  workflowId: string;
17
+ assigneeId?: string | undefined;
18
18
  queueId?: string | undefined;
19
19
  }>;
20
20
  summary: "Update room assignee";
@@ -410,9 +410,10 @@ export declare const chatContract: {
410
410
  fileSize: z.ZodNumber;
411
411
  fileKey: z.ZodString;
412
412
  fileUrl: z.ZodNullable<z.ZodString>;
413
- status: z.ZodOptional<z.ZodString>;
413
+ status: z.ZodNullable<z.ZodString>;
414
414
  }, "strip", z.ZodTypeAny, {
415
415
  id: string;
416
+ status: string | null;
416
417
  createdAt: Date;
417
418
  updatedAt: Date;
418
419
  deletedAt: Date | null;
@@ -421,9 +422,9 @@ export declare const chatContract: {
421
422
  bucketName: string;
422
423
  fileSize: number;
423
424
  fileUrl: string | null;
424
- status?: string | undefined;
425
425
  }, {
426
426
  id: string;
427
+ status: string | null;
427
428
  createdAt: Date;
428
429
  updatedAt: Date;
429
430
  deletedAt: Date | null;
@@ -432,7 +433,6 @@ export declare const chatContract: {
432
433
  bucketName: string;
433
434
  fileSize: number;
434
435
  fileUrl: string | null;
435
- status?: string | undefined;
436
436
  }>, "many">;
437
437
  }, "strip", z.ZodTypeAny, {
438
438
  id: string;
@@ -459,6 +459,7 @@ export declare const chatContract: {
459
459
  dateValue: Date | null;
460
460
  uploads: {
461
461
  id: string;
462
+ status: string | null;
462
463
  createdAt: Date;
463
464
  updatedAt: Date;
464
465
  deletedAt: Date | null;
@@ -467,7 +468,6 @@ export declare const chatContract: {
467
468
  bucketName: string;
468
469
  fileSize: number;
469
470
  fileUrl: string | null;
470
- status?: string | undefined;
471
471
  }[];
472
472
  }, {
473
473
  id: string;
@@ -494,6 +494,7 @@ export declare const chatContract: {
494
494
  dateValue: Date | null;
495
495
  uploads: {
496
496
  id: string;
497
+ status: string | null;
497
498
  createdAt: Date;
498
499
  updatedAt: Date;
499
500
  deletedAt: Date | null;
@@ -502,7 +503,6 @@ export declare const chatContract: {
502
503
  bucketName: string;
503
504
  fileSize: number;
504
505
  fileUrl: string | null;
505
- status?: string | undefined;
506
506
  }[];
507
507
  }>, "many">;
508
508
  contactEmails: z.ZodArray<z.ZodObject<{
@@ -642,6 +642,7 @@ export declare const chatContract: {
642
642
  dateValue: Date | null;
643
643
  uploads: {
644
644
  id: string;
645
+ status: string | null;
645
646
  createdAt: Date;
646
647
  updatedAt: Date;
647
648
  deletedAt: Date | null;
@@ -650,7 +651,6 @@ export declare const chatContract: {
650
651
  bucketName: string;
651
652
  fileSize: number;
652
653
  fileUrl: string | null;
653
- status?: string | undefined;
654
654
  }[];
655
655
  }[];
656
656
  company: {
@@ -753,6 +753,7 @@ export declare const chatContract: {
753
753
  dateValue: Date | null;
754
754
  uploads: {
755
755
  id: string;
756
+ status: string | null;
756
757
  createdAt: Date;
757
758
  updatedAt: Date;
758
759
  deletedAt: Date | null;
@@ -761,7 +762,6 @@ export declare const chatContract: {
761
762
  bucketName: string;
762
763
  fileSize: number;
763
764
  fileUrl: string | null;
764
- status?: string | undefined;
765
765
  }[];
766
766
  }[];
767
767
  company: {
@@ -877,6 +877,7 @@ export declare const chatContract: {
877
877
  dateValue: Date | null;
878
878
  uploads: {
879
879
  id: string;
880
+ status: string | null;
880
881
  createdAt: Date;
881
882
  updatedAt: Date;
882
883
  deletedAt: Date | null;
@@ -885,7 +886,6 @@ export declare const chatContract: {
885
886
  bucketName: string;
886
887
  fileSize: number;
887
888
  fileUrl: string | null;
888
- status?: string | undefined;
889
889
  }[];
890
890
  }[];
891
891
  company: {
@@ -1003,6 +1003,7 @@ export declare const chatContract: {
1003
1003
  dateValue: Date | null;
1004
1004
  uploads: {
1005
1005
  id: string;
1006
+ status: string | null;
1006
1007
  createdAt: Date;
1007
1008
  updatedAt: Date;
1008
1009
  deletedAt: Date | null;
@@ -1011,7 +1012,6 @@ export declare const chatContract: {
1011
1012
  bucketName: string;
1012
1013
  fileSize: number;
1013
1014
  fileUrl: string | null;
1014
- status?: string | undefined;
1015
1015
  }[];
1016
1016
  }[];
1017
1017
  company: {
@@ -1508,38 +1508,35 @@ export declare const chatContract: {
1508
1508
  additionalCredentials: z.ZodOptional<z.ZodAny>;
1509
1509
  senderId: z.ZodOptional<z.ZodString>;
1510
1510
  whatsapp: z.ZodOptional<z.ZodObject<{
1511
- wabaBusinessId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1512
- wabaExternalId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1513
- phoneNumberId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1514
- email: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1515
- clientId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1516
- channelId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1511
+ wabaBusinessId: z.ZodOptional<z.ZodString>;
1512
+ wabaExternalId: z.ZodString;
1513
+ phoneNumberId: z.ZodString;
1514
+ email: z.ZodString;
1515
+ clientId: z.ZodOptional<z.ZodString>;
1516
+ channelId: z.ZodOptional<z.ZodString>;
1517
1517
  status: z.ZodOptional<z.ZodEnum<["pending", "active"]>>;
1518
1518
  apiKey: z.ZodOptional<z.ZodString>;
1519
1519
  tier: z.ZodOptional<z.ZodEnum<["basic", "regular", "premium"]>>;
1520
- integrationType: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"meta">, z.ZodLiteral<"360dialog">]>>;
1521
1520
  }, "strip", z.ZodTypeAny, {
1522
- wabaBusinessId?: string | null | undefined;
1523
- wabaExternalId?: string | null | undefined;
1524
- phoneNumberId?: string | null | undefined;
1525
- email?: string | null | undefined;
1526
- clientId?: string | null | undefined;
1527
- channelId?: string | null | undefined;
1521
+ email: string;
1522
+ wabaExternalId: string;
1523
+ phoneNumberId: string;
1524
+ wabaBusinessId?: string | undefined;
1525
+ clientId?: string | undefined;
1526
+ channelId?: string | undefined;
1528
1527
  status?: "active" | "pending" | undefined;
1529
1528
  apiKey?: string | undefined;
1530
1529
  tier?: "basic" | "regular" | "premium" | undefined;
1531
- integrationType?: "meta" | "360dialog" | undefined;
1532
1530
  }, {
1533
- wabaBusinessId?: string | null | undefined;
1534
- wabaExternalId?: string | null | undefined;
1535
- phoneNumberId?: string | null | undefined;
1536
- email?: string | null | undefined;
1537
- clientId?: string | null | undefined;
1538
- channelId?: string | null | undefined;
1531
+ email: string;
1532
+ wabaExternalId: string;
1533
+ phoneNumberId: string;
1534
+ wabaBusinessId?: string | undefined;
1535
+ clientId?: string | undefined;
1536
+ channelId?: string | undefined;
1539
1537
  status?: "active" | "pending" | undefined;
1540
1538
  apiKey?: string | undefined;
1541
1539
  tier?: "basic" | "regular" | "premium" | undefined;
1542
- integrationType?: "meta" | "360dialog" | undefined;
1543
1540
  }>>;
1544
1541
  vonageCredentials: z.ZodOptional<z.ZodObject<{
1545
1542
  mobileNumber: z.ZodString;
@@ -1564,16 +1561,15 @@ export declare const chatContract: {
1564
1561
  additionalCredentials?: any;
1565
1562
  senderId?: string | undefined;
1566
1563
  whatsapp?: {
1567
- wabaBusinessId?: string | null | undefined;
1568
- wabaExternalId?: string | null | undefined;
1569
- phoneNumberId?: string | null | undefined;
1570
- email?: string | null | undefined;
1571
- clientId?: string | null | undefined;
1572
- channelId?: string | null | undefined;
1564
+ email: string;
1565
+ wabaExternalId: string;
1566
+ phoneNumberId: string;
1567
+ wabaBusinessId?: string | undefined;
1568
+ clientId?: string | undefined;
1569
+ channelId?: string | undefined;
1573
1570
  status?: "active" | "pending" | undefined;
1574
1571
  apiKey?: string | undefined;
1575
1572
  tier?: "basic" | "regular" | "premium" | undefined;
1576
- integrationType?: "meta" | "360dialog" | undefined;
1577
1573
  } | undefined;
1578
1574
  vonageCredentials?: {
1579
1575
  apiKey: string;
@@ -1590,16 +1586,15 @@ export declare const chatContract: {
1590
1586
  additionalCredentials?: any;
1591
1587
  senderId?: string | undefined;
1592
1588
  whatsapp?: {
1593
- wabaBusinessId?: string | null | undefined;
1594
- wabaExternalId?: string | null | undefined;
1595
- phoneNumberId?: string | null | undefined;
1596
- email?: string | null | undefined;
1597
- clientId?: string | null | undefined;
1598
- channelId?: string | null | undefined;
1589
+ email: string;
1590
+ wabaExternalId: string;
1591
+ phoneNumberId: string;
1592
+ wabaBusinessId?: string | undefined;
1593
+ clientId?: string | undefined;
1594
+ channelId?: string | undefined;
1599
1595
  status?: "active" | "pending" | undefined;
1600
1596
  apiKey?: string | undefined;
1601
1597
  tier?: "basic" | "regular" | "premium" | undefined;
1602
- integrationType?: "meta" | "360dialog" | undefined;
1603
1598
  } | undefined;
1604
1599
  vonageCredentials?: {
1605
1600
  apiKey: string;
@@ -1850,16 +1845,15 @@ export declare const chatContract: {
1850
1845
  additionalCredentials?: any;
1851
1846
  senderId?: string | undefined;
1852
1847
  whatsapp?: {
1853
- wabaBusinessId?: string | null | undefined;
1854
- wabaExternalId?: string | null | undefined;
1855
- phoneNumberId?: string | null | undefined;
1856
- email?: string | null | undefined;
1857
- clientId?: string | null | undefined;
1858
- channelId?: string | null | undefined;
1848
+ email: string;
1849
+ wabaExternalId: string;
1850
+ phoneNumberId: string;
1851
+ wabaBusinessId?: string | undefined;
1852
+ clientId?: string | undefined;
1853
+ channelId?: string | undefined;
1859
1854
  status?: "active" | "pending" | undefined;
1860
1855
  apiKey?: string | undefined;
1861
1856
  tier?: "basic" | "regular" | "premium" | undefined;
1862
- integrationType?: "meta" | "360dialog" | undefined;
1863
1857
  } | undefined;
1864
1858
  vonageCredentials?: {
1865
1859
  apiKey: string;
@@ -1941,16 +1935,15 @@ export declare const chatContract: {
1941
1935
  additionalCredentials?: any;
1942
1936
  senderId?: string | undefined;
1943
1937
  whatsapp?: {
1944
- wabaBusinessId?: string | null | undefined;
1945
- wabaExternalId?: string | null | undefined;
1946
- phoneNumberId?: string | null | undefined;
1947
- email?: string | null | undefined;
1948
- clientId?: string | null | undefined;
1949
- channelId?: string | null | undefined;
1938
+ email: string;
1939
+ wabaExternalId: string;
1940
+ phoneNumberId: string;
1941
+ wabaBusinessId?: string | undefined;
1942
+ clientId?: string | undefined;
1943
+ channelId?: string | undefined;
1950
1944
  status?: "active" | "pending" | undefined;
1951
1945
  apiKey?: string | undefined;
1952
1946
  tier?: "basic" | "regular" | "premium" | undefined;
1953
- integrationType?: "meta" | "360dialog" | undefined;
1954
1947
  } | undefined;
1955
1948
  vonageCredentials?: {
1956
1949
  apiKey: string;
@@ -2035,8 +2028,12 @@ export declare const chatContract: {
2035
2028
  agentId: z.ZodNullable<z.ZodString>;
2036
2029
  direction: z.ZodNullable<z.ZodString>;
2037
2030
  startedDate: z.ZodNullable<z.ZodDate>;
2031
+ totalHoldDuration: z.ZodNullable<z.ZodNumber>;
2038
2032
  handledTime: z.ZodNullable<z.ZodNumber>;
2033
+ fullHandledTime: z.ZodNullable<z.ZodNumber>;
2039
2034
  firstResponseTime: z.ZodNullable<z.ZodNumber>;
2035
+ resolutionTime: z.ZodNullable<z.ZodNumber>;
2036
+ fullResolutionTime: z.ZodNullable<z.ZodNumber>;
2040
2037
  wrapUpForm: z.ZodNullable<z.ZodObject<{
2041
2038
  id: z.ZodString;
2042
2039
  createdAt: z.ZodDate;
@@ -2303,6 +2300,74 @@ export declare const chatContract: {
2303
2300
  dateValue: Date | null;
2304
2301
  }[] | null | undefined;
2305
2302
  }>>;
2303
+ holdLogs: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
2304
+ id: z.ZodString;
2305
+ createdAt: z.ZodDate;
2306
+ updatedAt: z.ZodDate;
2307
+ deletedAt: z.ZodNullable<z.ZodDate>;
2308
+ startedAt: z.ZodString;
2309
+ endedAt: z.ZodNullable<z.ZodString>;
2310
+ duration: z.ZodNullable<z.ZodNumber>;
2311
+ holdLabel: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2312
+ id: z.ZodString;
2313
+ createdAt: z.ZodDate;
2314
+ updatedAt: z.ZodDate;
2315
+ deletedAt: z.ZodNullable<z.ZodDate>;
2316
+ name: z.ZodString;
2317
+ position: z.ZodNumber;
2318
+ isDefault: z.ZodDefault<z.ZodBoolean>;
2319
+ }, "strip", z.ZodTypeAny, {
2320
+ name: string;
2321
+ id: string;
2322
+ position: number;
2323
+ createdAt: Date;
2324
+ updatedAt: Date;
2325
+ deletedAt: Date | null;
2326
+ isDefault: boolean;
2327
+ }, {
2328
+ name: string;
2329
+ id: string;
2330
+ position: number;
2331
+ createdAt: Date;
2332
+ updatedAt: Date;
2333
+ deletedAt: Date | null;
2334
+ isDefault?: boolean | undefined;
2335
+ }>>>;
2336
+ }, "strip", z.ZodTypeAny, {
2337
+ id: string;
2338
+ createdAt: Date;
2339
+ updatedAt: Date;
2340
+ deletedAt: Date | null;
2341
+ startedAt: string;
2342
+ endedAt: string | null;
2343
+ duration: number | null;
2344
+ holdLabel?: {
2345
+ name: string;
2346
+ id: string;
2347
+ position: number;
2348
+ createdAt: Date;
2349
+ updatedAt: Date;
2350
+ deletedAt: Date | null;
2351
+ isDefault: boolean;
2352
+ } | null | undefined;
2353
+ }, {
2354
+ id: string;
2355
+ createdAt: Date;
2356
+ updatedAt: Date;
2357
+ deletedAt: Date | null;
2358
+ startedAt: string;
2359
+ endedAt: string | null;
2360
+ duration: number | null;
2361
+ holdLabel?: {
2362
+ name: string;
2363
+ id: string;
2364
+ position: number;
2365
+ createdAt: Date;
2366
+ updatedAt: Date;
2367
+ deletedAt: Date | null;
2368
+ isDefault?: boolean | undefined;
2369
+ } | null | undefined;
2370
+ }>, "many">>>;
2306
2371
  }, "strip", z.ZodTypeAny, {
2307
2372
  id: string;
2308
2373
  channel: string | null;
@@ -2317,8 +2382,12 @@ export declare const chatContract: {
2317
2382
  entityName: string;
2318
2383
  agentId: string | null;
2319
2384
  startedDate: Date | null;
2385
+ totalHoldDuration: number | null;
2320
2386
  handledTime: number | null;
2387
+ fullHandledTime: number | null;
2321
2388
  firstResponseTime: number | null;
2389
+ resolutionTime: number | null;
2390
+ fullResolutionTime: number | null;
2322
2391
  wrapUpForm: {
2323
2392
  type: string;
2324
2393
  id: string;
@@ -2371,6 +2440,24 @@ export declare const chatContract: {
2371
2440
  dateValue: Date | null;
2372
2441
  }[] | null | undefined;
2373
2442
  } | null;
2443
+ holdLogs?: {
2444
+ id: string;
2445
+ createdAt: Date;
2446
+ updatedAt: Date;
2447
+ deletedAt: Date | null;
2448
+ startedAt: string;
2449
+ endedAt: string | null;
2450
+ duration: number | null;
2451
+ holdLabel?: {
2452
+ name: string;
2453
+ id: string;
2454
+ position: number;
2455
+ createdAt: Date;
2456
+ updatedAt: Date;
2457
+ deletedAt: Date | null;
2458
+ isDefault: boolean;
2459
+ } | null | undefined;
2460
+ }[] | null | undefined;
2374
2461
  }, {
2375
2462
  id: string;
2376
2463
  channel: string | null;
@@ -2385,8 +2472,12 @@ export declare const chatContract: {
2385
2472
  entityName: string;
2386
2473
  agentId: string | null;
2387
2474
  startedDate: Date | null;
2475
+ totalHoldDuration: number | null;
2388
2476
  handledTime: number | null;
2477
+ fullHandledTime: number | null;
2389
2478
  firstResponseTime: number | null;
2479
+ resolutionTime: number | null;
2480
+ fullResolutionTime: number | null;
2390
2481
  wrapUpForm: {
2391
2482
  type: string;
2392
2483
  id: string;
@@ -2439,6 +2530,24 @@ export declare const chatContract: {
2439
2530
  dateValue: Date | null;
2440
2531
  }[] | null | undefined;
2441
2532
  } | null;
2533
+ holdLogs?: {
2534
+ id: string;
2535
+ createdAt: Date;
2536
+ updatedAt: Date;
2537
+ deletedAt: Date | null;
2538
+ startedAt: string;
2539
+ endedAt: string | null;
2540
+ duration: number | null;
2541
+ holdLabel?: {
2542
+ name: string;
2543
+ id: string;
2544
+ position: number;
2545
+ createdAt: Date;
2546
+ updatedAt: Date;
2547
+ deletedAt: Date | null;
2548
+ isDefault?: boolean | undefined;
2549
+ } | null | undefined;
2550
+ }[] | null | undefined;
2442
2551
  }>;
2443
2552
  workflowRule: z.ZodObject<{
2444
2553
  id: z.ZodString;
@@ -2480,16 +2589,15 @@ export declare const chatContract: {
2480
2589
  additionalCredentials?: any;
2481
2590
  senderId?: string | undefined;
2482
2591
  whatsapp?: {
2483
- wabaBusinessId?: string | null | undefined;
2484
- wabaExternalId?: string | null | undefined;
2485
- phoneNumberId?: string | null | undefined;
2486
- email?: string | null | undefined;
2487
- clientId?: string | null | undefined;
2488
- channelId?: string | null | undefined;
2592
+ email: string;
2593
+ wabaExternalId: string;
2594
+ phoneNumberId: string;
2595
+ wabaBusinessId?: string | undefined;
2596
+ clientId?: string | undefined;
2597
+ channelId?: string | undefined;
2489
2598
  status?: "active" | "pending" | undefined;
2490
2599
  apiKey?: string | undefined;
2491
2600
  tier?: "basic" | "regular" | "premium" | undefined;
2492
- integrationType?: "meta" | "360dialog" | undefined;
2493
2601
  } | undefined;
2494
2602
  vonageCredentials?: {
2495
2603
  apiKey: string;
@@ -2660,6 +2768,7 @@ export declare const chatContract: {
2660
2768
  dateValue: Date | null;
2661
2769
  uploads: {
2662
2770
  id: string;
2771
+ status: string | null;
2663
2772
  createdAt: Date;
2664
2773
  updatedAt: Date;
2665
2774
  deletedAt: Date | null;
@@ -2668,7 +2777,6 @@ export declare const chatContract: {
2668
2777
  bucketName: string;
2669
2778
  fileSize: number;
2670
2779
  fileUrl: string | null;
2671
- status?: string | undefined;
2672
2780
  }[];
2673
2781
  }[];
2674
2782
  company: {
@@ -2803,8 +2911,12 @@ export declare const chatContract: {
2803
2911
  entityName: string;
2804
2912
  agentId: string | null;
2805
2913
  startedDate: Date | null;
2914
+ totalHoldDuration: number | null;
2806
2915
  handledTime: number | null;
2916
+ fullHandledTime: number | null;
2807
2917
  firstResponseTime: number | null;
2918
+ resolutionTime: number | null;
2919
+ fullResolutionTime: number | null;
2808
2920
  wrapUpForm: {
2809
2921
  type: string;
2810
2922
  id: string;
@@ -2857,6 +2969,24 @@ export declare const chatContract: {
2857
2969
  dateValue: Date | null;
2858
2970
  }[] | null | undefined;
2859
2971
  } | null;
2972
+ holdLogs?: {
2973
+ id: string;
2974
+ createdAt: Date;
2975
+ updatedAt: Date;
2976
+ deletedAt: Date | null;
2977
+ startedAt: string;
2978
+ endedAt: string | null;
2979
+ duration: number | null;
2980
+ holdLabel?: {
2981
+ name: string;
2982
+ id: string;
2983
+ position: number;
2984
+ createdAt: Date;
2985
+ updatedAt: Date;
2986
+ deletedAt: Date | null;
2987
+ isDefault: boolean;
2988
+ } | null | undefined;
2989
+ }[] | null | undefined;
2860
2990
  };
2861
2991
  workflowRule: {
2862
2992
  name: string;
@@ -2882,16 +3012,15 @@ export declare const chatContract: {
2882
3012
  additionalCredentials?: any;
2883
3013
  senderId?: string | undefined;
2884
3014
  whatsapp?: {
2885
- wabaBusinessId?: string | null | undefined;
2886
- wabaExternalId?: string | null | undefined;
2887
- phoneNumberId?: string | null | undefined;
2888
- email?: string | null | undefined;
2889
- clientId?: string | null | undefined;
2890
- channelId?: string | null | undefined;
3015
+ email: string;
3016
+ wabaExternalId: string;
3017
+ phoneNumberId: string;
3018
+ wabaBusinessId?: string | undefined;
3019
+ clientId?: string | undefined;
3020
+ channelId?: string | undefined;
2891
3021
  status?: "active" | "pending" | undefined;
2892
3022
  apiKey?: string | undefined;
2893
3023
  tier?: "basic" | "regular" | "premium" | undefined;
2894
- integrationType?: "meta" | "360dialog" | undefined;
2895
3024
  } | undefined;
2896
3025
  vonageCredentials?: {
2897
3026
  apiKey: string;
@@ -3062,6 +3191,7 @@ export declare const chatContract: {
3062
3191
  dateValue: Date | null;
3063
3192
  uploads: {
3064
3193
  id: string;
3194
+ status: string | null;
3065
3195
  createdAt: Date;
3066
3196
  updatedAt: Date;
3067
3197
  deletedAt: Date | null;
@@ -3070,7 +3200,6 @@ export declare const chatContract: {
3070
3200
  bucketName: string;
3071
3201
  fileSize: number;
3072
3202
  fileUrl: string | null;
3073
- status?: string | undefined;
3074
3203
  }[];
3075
3204
  }[];
3076
3205
  company: {
@@ -3205,8 +3334,12 @@ export declare const chatContract: {
3205
3334
  entityName: string;
3206
3335
  agentId: string | null;
3207
3336
  startedDate: Date | null;
3337
+ totalHoldDuration: number | null;
3208
3338
  handledTime: number | null;
3339
+ fullHandledTime: number | null;
3209
3340
  firstResponseTime: number | null;
3341
+ resolutionTime: number | null;
3342
+ fullResolutionTime: number | null;
3210
3343
  wrapUpForm: {
3211
3344
  type: string;
3212
3345
  id: string;
@@ -3259,6 +3392,24 @@ export declare const chatContract: {
3259
3392
  dateValue: Date | null;
3260
3393
  }[] | null | undefined;
3261
3394
  } | null;
3395
+ holdLogs?: {
3396
+ id: string;
3397
+ createdAt: Date;
3398
+ updatedAt: Date;
3399
+ deletedAt: Date | null;
3400
+ startedAt: string;
3401
+ endedAt: string | null;
3402
+ duration: number | null;
3403
+ holdLabel?: {
3404
+ name: string;
3405
+ id: string;
3406
+ position: number;
3407
+ createdAt: Date;
3408
+ updatedAt: Date;
3409
+ deletedAt: Date | null;
3410
+ isDefault?: boolean | undefined;
3411
+ } | null | undefined;
3412
+ }[] | null | undefined;
3262
3413
  };
3263
3414
  workflowRule: {
3264
3415
  name: string;
@@ -3286,16 +3437,15 @@ export declare const chatContract: {
3286
3437
  additionalCredentials?: any;
3287
3438
  senderId?: string | undefined;
3288
3439
  whatsapp?: {
3289
- wabaBusinessId?: string | null | undefined;
3290
- wabaExternalId?: string | null | undefined;
3291
- phoneNumberId?: string | null | undefined;
3292
- email?: string | null | undefined;
3293
- clientId?: string | null | undefined;
3294
- channelId?: string | null | undefined;
3440
+ email: string;
3441
+ wabaExternalId: string;
3442
+ phoneNumberId: string;
3443
+ wabaBusinessId?: string | undefined;
3444
+ clientId?: string | undefined;
3445
+ channelId?: string | undefined;
3295
3446
  status?: "active" | "pending" | undefined;
3296
3447
  apiKey?: string | undefined;
3297
3448
  tier?: "basic" | "regular" | "premium" | undefined;
3298
- integrationType?: "meta" | "360dialog" | undefined;
3299
3449
  } | undefined;
3300
3450
  vonageCredentials?: {
3301
3451
  apiKey: string;
@@ -3466,6 +3616,7 @@ export declare const chatContract: {
3466
3616
  dateValue: Date | null;
3467
3617
  uploads: {
3468
3618
  id: string;
3619
+ status: string | null;
3469
3620
  createdAt: Date;
3470
3621
  updatedAt: Date;
3471
3622
  deletedAt: Date | null;
@@ -3474,7 +3625,6 @@ export declare const chatContract: {
3474
3625
  bucketName: string;
3475
3626
  fileSize: number;
3476
3627
  fileUrl: string | null;
3477
- status?: string | undefined;
3478
3628
  }[];
3479
3629
  }[];
3480
3630
  company: {
@@ -3609,8 +3759,12 @@ export declare const chatContract: {
3609
3759
  entityName: string;
3610
3760
  agentId: string | null;
3611
3761
  startedDate: Date | null;
3762
+ totalHoldDuration: number | null;
3612
3763
  handledTime: number | null;
3764
+ fullHandledTime: number | null;
3613
3765
  firstResponseTime: number | null;
3766
+ resolutionTime: number | null;
3767
+ fullResolutionTime: number | null;
3614
3768
  wrapUpForm: {
3615
3769
  type: string;
3616
3770
  id: string;
@@ -3663,6 +3817,24 @@ export declare const chatContract: {
3663
3817
  dateValue: Date | null;
3664
3818
  }[] | null | undefined;
3665
3819
  } | null;
3820
+ holdLogs?: {
3821
+ id: string;
3822
+ createdAt: Date;
3823
+ updatedAt: Date;
3824
+ deletedAt: Date | null;
3825
+ startedAt: string;
3826
+ endedAt: string | null;
3827
+ duration: number | null;
3828
+ holdLabel?: {
3829
+ name: string;
3830
+ id: string;
3831
+ position: number;
3832
+ createdAt: Date;
3833
+ updatedAt: Date;
3834
+ deletedAt: Date | null;
3835
+ isDefault: boolean;
3836
+ } | null | undefined;
3837
+ }[] | null | undefined;
3666
3838
  };
3667
3839
  workflowRule: {
3668
3840
  name: string;
@@ -3691,16 +3863,15 @@ export declare const chatContract: {
3691
3863
  additionalCredentials?: any;
3692
3864
  senderId?: string | undefined;
3693
3865
  whatsapp?: {
3694
- wabaBusinessId?: string | null | undefined;
3695
- wabaExternalId?: string | null | undefined;
3696
- phoneNumberId?: string | null | undefined;
3697
- email?: string | null | undefined;
3698
- clientId?: string | null | undefined;
3699
- channelId?: string | null | undefined;
3866
+ email: string;
3867
+ wabaExternalId: string;
3868
+ phoneNumberId: string;
3869
+ wabaBusinessId?: string | undefined;
3870
+ clientId?: string | undefined;
3871
+ channelId?: string | undefined;
3700
3872
  status?: "active" | "pending" | undefined;
3701
3873
  apiKey?: string | undefined;
3702
3874
  tier?: "basic" | "regular" | "premium" | undefined;
3703
- integrationType?: "meta" | "360dialog" | undefined;
3704
3875
  } | undefined;
3705
3876
  vonageCredentials?: {
3706
3877
  apiKey: string;
@@ -3871,6 +4042,7 @@ export declare const chatContract: {
3871
4042
  dateValue: Date | null;
3872
4043
  uploads: {
3873
4044
  id: string;
4045
+ status: string | null;
3874
4046
  createdAt: Date;
3875
4047
  updatedAt: Date;
3876
4048
  deletedAt: Date | null;
@@ -3879,7 +4051,6 @@ export declare const chatContract: {
3879
4051
  bucketName: string;
3880
4052
  fileSize: number;
3881
4053
  fileUrl: string | null;
3882
- status?: string | undefined;
3883
4054
  }[];
3884
4055
  }[];
3885
4056
  company: {
@@ -4014,8 +4185,12 @@ export declare const chatContract: {
4014
4185
  entityName: string;
4015
4186
  agentId: string | null;
4016
4187
  startedDate: Date | null;
4188
+ totalHoldDuration: number | null;
4017
4189
  handledTime: number | null;
4190
+ fullHandledTime: number | null;
4018
4191
  firstResponseTime: number | null;
4192
+ resolutionTime: number | null;
4193
+ fullResolutionTime: number | null;
4019
4194
  wrapUpForm: {
4020
4195
  type: string;
4021
4196
  id: string;
@@ -4068,6 +4243,24 @@ export declare const chatContract: {
4068
4243
  dateValue: Date | null;
4069
4244
  }[] | null | undefined;
4070
4245
  } | null;
4246
+ holdLogs?: {
4247
+ id: string;
4248
+ createdAt: Date;
4249
+ updatedAt: Date;
4250
+ deletedAt: Date | null;
4251
+ startedAt: string;
4252
+ endedAt: string | null;
4253
+ duration: number | null;
4254
+ holdLabel?: {
4255
+ name: string;
4256
+ id: string;
4257
+ position: number;
4258
+ createdAt: Date;
4259
+ updatedAt: Date;
4260
+ deletedAt: Date | null;
4261
+ isDefault?: boolean | undefined;
4262
+ } | null | undefined;
4263
+ }[] | null | undefined;
4071
4264
  };
4072
4265
  workflowRule: {
4073
4266
  name: string;
@@ -4141,38 +4334,35 @@ export declare const chatContract: {
4141
4334
  additionalCredentials: z.ZodOptional<z.ZodAny>;
4142
4335
  senderId: z.ZodOptional<z.ZodString>;
4143
4336
  whatsapp: z.ZodOptional<z.ZodObject<{
4144
- wabaBusinessId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
4145
- wabaExternalId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
4146
- phoneNumberId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
4147
- email: z.ZodNullable<z.ZodOptional<z.ZodString>>;
4148
- clientId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
4149
- channelId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
4337
+ wabaBusinessId: z.ZodOptional<z.ZodString>;
4338
+ wabaExternalId: z.ZodString;
4339
+ phoneNumberId: z.ZodString;
4340
+ email: z.ZodString;
4341
+ clientId: z.ZodOptional<z.ZodString>;
4342
+ channelId: z.ZodOptional<z.ZodString>;
4150
4343
  status: z.ZodOptional<z.ZodEnum<["pending", "active"]>>;
4151
4344
  apiKey: z.ZodOptional<z.ZodString>;
4152
4345
  tier: z.ZodOptional<z.ZodEnum<["basic", "regular", "premium"]>>;
4153
- integrationType: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"meta">, z.ZodLiteral<"360dialog">]>>;
4154
4346
  }, "strip", z.ZodTypeAny, {
4155
- wabaBusinessId?: string | null | undefined;
4156
- wabaExternalId?: string | null | undefined;
4157
- phoneNumberId?: string | null | undefined;
4158
- email?: string | null | undefined;
4159
- clientId?: string | null | undefined;
4160
- channelId?: string | null | undefined;
4347
+ email: string;
4348
+ wabaExternalId: string;
4349
+ phoneNumberId: string;
4350
+ wabaBusinessId?: string | undefined;
4351
+ clientId?: string | undefined;
4352
+ channelId?: string | undefined;
4161
4353
  status?: "active" | "pending" | undefined;
4162
4354
  apiKey?: string | undefined;
4163
4355
  tier?: "basic" | "regular" | "premium" | undefined;
4164
- integrationType?: "meta" | "360dialog" | undefined;
4165
4356
  }, {
4166
- wabaBusinessId?: string | null | undefined;
4167
- wabaExternalId?: string | null | undefined;
4168
- phoneNumberId?: string | null | undefined;
4169
- email?: string | null | undefined;
4170
- clientId?: string | null | undefined;
4171
- channelId?: string | null | undefined;
4357
+ email: string;
4358
+ wabaExternalId: string;
4359
+ phoneNumberId: string;
4360
+ wabaBusinessId?: string | undefined;
4361
+ clientId?: string | undefined;
4362
+ channelId?: string | undefined;
4172
4363
  status?: "active" | "pending" | undefined;
4173
4364
  apiKey?: string | undefined;
4174
4365
  tier?: "basic" | "regular" | "premium" | undefined;
4175
- integrationType?: "meta" | "360dialog" | undefined;
4176
4366
  }>>;
4177
4367
  vonageCredentials: z.ZodOptional<z.ZodObject<{
4178
4368
  mobileNumber: z.ZodString;
@@ -4197,16 +4387,15 @@ export declare const chatContract: {
4197
4387
  additionalCredentials?: any;
4198
4388
  senderId?: string | undefined;
4199
4389
  whatsapp?: {
4200
- wabaBusinessId?: string | null | undefined;
4201
- wabaExternalId?: string | null | undefined;
4202
- phoneNumberId?: string | null | undefined;
4203
- email?: string | null | undefined;
4204
- clientId?: string | null | undefined;
4205
- channelId?: string | null | undefined;
4390
+ email: string;
4391
+ wabaExternalId: string;
4392
+ phoneNumberId: string;
4393
+ wabaBusinessId?: string | undefined;
4394
+ clientId?: string | undefined;
4395
+ channelId?: string | undefined;
4206
4396
  status?: "active" | "pending" | undefined;
4207
4397
  apiKey?: string | undefined;
4208
4398
  tier?: "basic" | "regular" | "premium" | undefined;
4209
- integrationType?: "meta" | "360dialog" | undefined;
4210
4399
  } | undefined;
4211
4400
  vonageCredentials?: {
4212
4401
  apiKey: string;
@@ -4223,16 +4412,15 @@ export declare const chatContract: {
4223
4412
  additionalCredentials?: any;
4224
4413
  senderId?: string | undefined;
4225
4414
  whatsapp?: {
4226
- wabaBusinessId?: string | null | undefined;
4227
- wabaExternalId?: string | null | undefined;
4228
- phoneNumberId?: string | null | undefined;
4229
- email?: string | null | undefined;
4230
- clientId?: string | null | undefined;
4231
- channelId?: string | null | undefined;
4415
+ email: string;
4416
+ wabaExternalId: string;
4417
+ phoneNumberId: string;
4418
+ wabaBusinessId?: string | undefined;
4419
+ clientId?: string | undefined;
4420
+ channelId?: string | undefined;
4232
4421
  status?: "active" | "pending" | undefined;
4233
4422
  apiKey?: string | undefined;
4234
4423
  tier?: "basic" | "regular" | "premium" | undefined;
4235
- integrationType?: "meta" | "360dialog" | undefined;
4236
4424
  } | undefined;
4237
4425
  vonageCredentials?: {
4238
4426
  apiKey: string;
@@ -4483,16 +4671,15 @@ export declare const chatContract: {
4483
4671
  additionalCredentials?: any;
4484
4672
  senderId?: string | undefined;
4485
4673
  whatsapp?: {
4486
- wabaBusinessId?: string | null | undefined;
4487
- wabaExternalId?: string | null | undefined;
4488
- phoneNumberId?: string | null | undefined;
4489
- email?: string | null | undefined;
4490
- clientId?: string | null | undefined;
4491
- channelId?: string | null | undefined;
4674
+ email: string;
4675
+ wabaExternalId: string;
4676
+ phoneNumberId: string;
4677
+ wabaBusinessId?: string | undefined;
4678
+ clientId?: string | undefined;
4679
+ channelId?: string | undefined;
4492
4680
  status?: "active" | "pending" | undefined;
4493
4681
  apiKey?: string | undefined;
4494
4682
  tier?: "basic" | "regular" | "premium" | undefined;
4495
- integrationType?: "meta" | "360dialog" | undefined;
4496
4683
  } | undefined;
4497
4684
  vonageCredentials?: {
4498
4685
  apiKey: string;
@@ -4574,16 +4761,15 @@ export declare const chatContract: {
4574
4761
  additionalCredentials?: any;
4575
4762
  senderId?: string | undefined;
4576
4763
  whatsapp?: {
4577
- wabaBusinessId?: string | null | undefined;
4578
- wabaExternalId?: string | null | undefined;
4579
- phoneNumberId?: string | null | undefined;
4580
- email?: string | null | undefined;
4581
- clientId?: string | null | undefined;
4582
- channelId?: string | null | undefined;
4764
+ email: string;
4765
+ wabaExternalId: string;
4766
+ phoneNumberId: string;
4767
+ wabaBusinessId?: string | undefined;
4768
+ clientId?: string | undefined;
4769
+ channelId?: string | undefined;
4583
4770
  status?: "active" | "pending" | undefined;
4584
4771
  apiKey?: string | undefined;
4585
4772
  tier?: "basic" | "regular" | "premium" | undefined;
4586
- integrationType?: "meta" | "360dialog" | undefined;
4587
4773
  } | undefined;
4588
4774
  vonageCredentials?: {
4589
4775
  apiKey: string;
@@ -5241,9 +5427,10 @@ export declare const chatContract: {
5241
5427
  fileSize: z.ZodNumber;
5242
5428
  fileKey: z.ZodString;
5243
5429
  fileUrl: z.ZodNullable<z.ZodString>;
5244
- status: z.ZodOptional<z.ZodString>;
5430
+ status: z.ZodNullable<z.ZodString>;
5245
5431
  }, "strip", z.ZodTypeAny, {
5246
5432
  id: string;
5433
+ status: string | null;
5247
5434
  createdAt: Date;
5248
5435
  updatedAt: Date;
5249
5436
  deletedAt: Date | null;
@@ -5252,9 +5439,9 @@ export declare const chatContract: {
5252
5439
  bucketName: string;
5253
5440
  fileSize: number;
5254
5441
  fileUrl: string | null;
5255
- status?: string | undefined;
5256
5442
  }, {
5257
5443
  id: string;
5444
+ status: string | null;
5258
5445
  createdAt: Date;
5259
5446
  updatedAt: Date;
5260
5447
  deletedAt: Date | null;
@@ -5263,7 +5450,6 @@ export declare const chatContract: {
5263
5450
  bucketName: string;
5264
5451
  fileSize: number;
5265
5452
  fileUrl: string | null;
5266
- status?: string | undefined;
5267
5453
  }>, "many">;
5268
5454
  }, "strip", z.ZodTypeAny, {
5269
5455
  id: string;
@@ -5290,6 +5476,7 @@ export declare const chatContract: {
5290
5476
  dateValue: Date | null;
5291
5477
  uploads: {
5292
5478
  id: string;
5479
+ status: string | null;
5293
5480
  createdAt: Date;
5294
5481
  updatedAt: Date;
5295
5482
  deletedAt: Date | null;
@@ -5298,7 +5485,6 @@ export declare const chatContract: {
5298
5485
  bucketName: string;
5299
5486
  fileSize: number;
5300
5487
  fileUrl: string | null;
5301
- status?: string | undefined;
5302
5488
  }[];
5303
5489
  }, {
5304
5490
  id: string;
@@ -5325,6 +5511,7 @@ export declare const chatContract: {
5325
5511
  dateValue: Date | null;
5326
5512
  uploads: {
5327
5513
  id: string;
5514
+ status: string | null;
5328
5515
  createdAt: Date;
5329
5516
  updatedAt: Date;
5330
5517
  deletedAt: Date | null;
@@ -5333,7 +5520,6 @@ export declare const chatContract: {
5333
5520
  bucketName: string;
5334
5521
  fileSize: number;
5335
5522
  fileUrl: string | null;
5336
- status?: string | undefined;
5337
5523
  }[];
5338
5524
  }>, "many">;
5339
5525
  contactEmails: z.ZodArray<z.ZodObject<{
@@ -5473,6 +5659,7 @@ export declare const chatContract: {
5473
5659
  dateValue: Date | null;
5474
5660
  uploads: {
5475
5661
  id: string;
5662
+ status: string | null;
5476
5663
  createdAt: Date;
5477
5664
  updatedAt: Date;
5478
5665
  deletedAt: Date | null;
@@ -5481,7 +5668,6 @@ export declare const chatContract: {
5481
5668
  bucketName: string;
5482
5669
  fileSize: number;
5483
5670
  fileUrl: string | null;
5484
- status?: string | undefined;
5485
5671
  }[];
5486
5672
  }[];
5487
5673
  company: {
@@ -5584,6 +5770,7 @@ export declare const chatContract: {
5584
5770
  dateValue: Date | null;
5585
5771
  uploads: {
5586
5772
  id: string;
5773
+ status: string | null;
5587
5774
  createdAt: Date;
5588
5775
  updatedAt: Date;
5589
5776
  deletedAt: Date | null;
@@ -5592,7 +5779,6 @@ export declare const chatContract: {
5592
5779
  bucketName: string;
5593
5780
  fileSize: number;
5594
5781
  fileUrl: string | null;
5595
- status?: string | undefined;
5596
5782
  }[];
5597
5783
  }[];
5598
5784
  company: {
@@ -5708,6 +5894,7 @@ export declare const chatContract: {
5708
5894
  dateValue: Date | null;
5709
5895
  uploads: {
5710
5896
  id: string;
5897
+ status: string | null;
5711
5898
  createdAt: Date;
5712
5899
  updatedAt: Date;
5713
5900
  deletedAt: Date | null;
@@ -5716,7 +5903,6 @@ export declare const chatContract: {
5716
5903
  bucketName: string;
5717
5904
  fileSize: number;
5718
5905
  fileUrl: string | null;
5719
- status?: string | undefined;
5720
5906
  }[];
5721
5907
  }[];
5722
5908
  company: {
@@ -5834,6 +6020,7 @@ export declare const chatContract: {
5834
6020
  dateValue: Date | null;
5835
6021
  uploads: {
5836
6022
  id: string;
6023
+ status: string | null;
5837
6024
  createdAt: Date;
5838
6025
  updatedAt: Date;
5839
6026
  deletedAt: Date | null;
@@ -5842,7 +6029,6 @@ export declare const chatContract: {
5842
6029
  bucketName: string;
5843
6030
  fileSize: number;
5844
6031
  fileUrl: string | null;
5845
- status?: string | undefined;
5846
6032
  }[];
5847
6033
  }[];
5848
6034
  company: {
@@ -6137,8 +6323,12 @@ export declare const chatContract: {
6137
6323
  agentId: z.ZodNullable<z.ZodString>;
6138
6324
  direction: z.ZodNullable<z.ZodString>;
6139
6325
  startedDate: z.ZodNullable<z.ZodDate>;
6326
+ totalHoldDuration: z.ZodNullable<z.ZodNumber>;
6140
6327
  handledTime: z.ZodNullable<z.ZodNumber>;
6328
+ fullHandledTime: z.ZodNullable<z.ZodNumber>;
6141
6329
  firstResponseTime: z.ZodNullable<z.ZodNumber>;
6330
+ resolutionTime: z.ZodNullable<z.ZodNumber>;
6331
+ fullResolutionTime: z.ZodNullable<z.ZodNumber>;
6142
6332
  wrapUpForm: z.ZodNullable<z.ZodObject<{
6143
6333
  id: z.ZodString;
6144
6334
  createdAt: z.ZodDate;
@@ -6405,6 +6595,74 @@ export declare const chatContract: {
6405
6595
  dateValue: Date | null;
6406
6596
  }[] | null | undefined;
6407
6597
  }>>;
6598
+ holdLogs: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
6599
+ id: z.ZodString;
6600
+ createdAt: z.ZodDate;
6601
+ updatedAt: z.ZodDate;
6602
+ deletedAt: z.ZodNullable<z.ZodDate>;
6603
+ startedAt: z.ZodString;
6604
+ endedAt: z.ZodNullable<z.ZodString>;
6605
+ duration: z.ZodNullable<z.ZodNumber>;
6606
+ holdLabel: z.ZodOptional<z.ZodNullable<z.ZodObject<{
6607
+ id: z.ZodString;
6608
+ createdAt: z.ZodDate;
6609
+ updatedAt: z.ZodDate;
6610
+ deletedAt: z.ZodNullable<z.ZodDate>;
6611
+ name: z.ZodString;
6612
+ position: z.ZodNumber;
6613
+ isDefault: z.ZodDefault<z.ZodBoolean>;
6614
+ }, "strip", z.ZodTypeAny, {
6615
+ name: string;
6616
+ id: string;
6617
+ position: number;
6618
+ createdAt: Date;
6619
+ updatedAt: Date;
6620
+ deletedAt: Date | null;
6621
+ isDefault: boolean;
6622
+ }, {
6623
+ name: string;
6624
+ id: string;
6625
+ position: number;
6626
+ createdAt: Date;
6627
+ updatedAt: Date;
6628
+ deletedAt: Date | null;
6629
+ isDefault?: boolean | undefined;
6630
+ }>>>;
6631
+ }, "strip", z.ZodTypeAny, {
6632
+ id: string;
6633
+ createdAt: Date;
6634
+ updatedAt: Date;
6635
+ deletedAt: Date | null;
6636
+ startedAt: string;
6637
+ endedAt: string | null;
6638
+ duration: number | null;
6639
+ holdLabel?: {
6640
+ name: string;
6641
+ id: string;
6642
+ position: number;
6643
+ createdAt: Date;
6644
+ updatedAt: Date;
6645
+ deletedAt: Date | null;
6646
+ isDefault: boolean;
6647
+ } | null | undefined;
6648
+ }, {
6649
+ id: string;
6650
+ createdAt: Date;
6651
+ updatedAt: Date;
6652
+ deletedAt: Date | null;
6653
+ startedAt: string;
6654
+ endedAt: string | null;
6655
+ duration: number | null;
6656
+ holdLabel?: {
6657
+ name: string;
6658
+ id: string;
6659
+ position: number;
6660
+ createdAt: Date;
6661
+ updatedAt: Date;
6662
+ deletedAt: Date | null;
6663
+ isDefault?: boolean | undefined;
6664
+ } | null | undefined;
6665
+ }>, "many">>>;
6408
6666
  }, "strip", z.ZodTypeAny, {
6409
6667
  id: string;
6410
6668
  channel: string | null;
@@ -6419,8 +6677,12 @@ export declare const chatContract: {
6419
6677
  entityName: string;
6420
6678
  agentId: string | null;
6421
6679
  startedDate: Date | null;
6680
+ totalHoldDuration: number | null;
6422
6681
  handledTime: number | null;
6682
+ fullHandledTime: number | null;
6423
6683
  firstResponseTime: number | null;
6684
+ resolutionTime: number | null;
6685
+ fullResolutionTime: number | null;
6424
6686
  wrapUpForm: {
6425
6687
  type: string;
6426
6688
  id: string;
@@ -6473,6 +6735,24 @@ export declare const chatContract: {
6473
6735
  dateValue: Date | null;
6474
6736
  }[] | null | undefined;
6475
6737
  } | null;
6738
+ holdLogs?: {
6739
+ id: string;
6740
+ createdAt: Date;
6741
+ updatedAt: Date;
6742
+ deletedAt: Date | null;
6743
+ startedAt: string;
6744
+ endedAt: string | null;
6745
+ duration: number | null;
6746
+ holdLabel?: {
6747
+ name: string;
6748
+ id: string;
6749
+ position: number;
6750
+ createdAt: Date;
6751
+ updatedAt: Date;
6752
+ deletedAt: Date | null;
6753
+ isDefault: boolean;
6754
+ } | null | undefined;
6755
+ }[] | null | undefined;
6476
6756
  }, {
6477
6757
  id: string;
6478
6758
  channel: string | null;
@@ -6487,8 +6767,12 @@ export declare const chatContract: {
6487
6767
  entityName: string;
6488
6768
  agentId: string | null;
6489
6769
  startedDate: Date | null;
6770
+ totalHoldDuration: number | null;
6490
6771
  handledTime: number | null;
6772
+ fullHandledTime: number | null;
6491
6773
  firstResponseTime: number | null;
6774
+ resolutionTime: number | null;
6775
+ fullResolutionTime: number | null;
6492
6776
  wrapUpForm: {
6493
6777
  type: string;
6494
6778
  id: string;
@@ -6541,6 +6825,24 @@ export declare const chatContract: {
6541
6825
  dateValue: Date | null;
6542
6826
  }[] | null | undefined;
6543
6827
  } | null;
6828
+ holdLogs?: {
6829
+ id: string;
6830
+ createdAt: Date;
6831
+ updatedAt: Date;
6832
+ deletedAt: Date | null;
6833
+ startedAt: string;
6834
+ endedAt: string | null;
6835
+ duration: number | null;
6836
+ holdLabel?: {
6837
+ name: string;
6838
+ id: string;
6839
+ position: number;
6840
+ createdAt: Date;
6841
+ updatedAt: Date;
6842
+ deletedAt: Date | null;
6843
+ isDefault?: boolean | undefined;
6844
+ } | null | undefined;
6845
+ }[] | null | undefined;
6544
6846
  }>;
6545
6847
  workflowRule: z.ZodObject<{
6546
6848
  id: z.ZodString;
@@ -6583,16 +6885,15 @@ export declare const chatContract: {
6583
6885
  additionalCredentials?: any;
6584
6886
  senderId?: string | undefined;
6585
6887
  whatsapp?: {
6586
- wabaBusinessId?: string | null | undefined;
6587
- wabaExternalId?: string | null | undefined;
6588
- phoneNumberId?: string | null | undefined;
6589
- email?: string | null | undefined;
6590
- clientId?: string | null | undefined;
6591
- channelId?: string | null | undefined;
6888
+ email: string;
6889
+ wabaExternalId: string;
6890
+ phoneNumberId: string;
6891
+ wabaBusinessId?: string | undefined;
6892
+ clientId?: string | undefined;
6893
+ channelId?: string | undefined;
6592
6894
  status?: "active" | "pending" | undefined;
6593
6895
  apiKey?: string | undefined;
6594
6896
  tier?: "basic" | "regular" | "premium" | undefined;
6595
- integrationType?: "meta" | "360dialog" | undefined;
6596
6897
  } | undefined;
6597
6898
  vonageCredentials?: {
6598
6899
  apiKey: string;
@@ -6763,6 +7064,7 @@ export declare const chatContract: {
6763
7064
  dateValue: Date | null;
6764
7065
  uploads: {
6765
7066
  id: string;
7067
+ status: string | null;
6766
7068
  createdAt: Date;
6767
7069
  updatedAt: Date;
6768
7070
  deletedAt: Date | null;
@@ -6771,7 +7073,6 @@ export declare const chatContract: {
6771
7073
  bucketName: string;
6772
7074
  fileSize: number;
6773
7075
  fileUrl: string | null;
6774
- status?: string | undefined;
6775
7076
  }[];
6776
7077
  }[];
6777
7078
  company: {
@@ -6906,8 +7207,12 @@ export declare const chatContract: {
6906
7207
  entityName: string;
6907
7208
  agentId: string | null;
6908
7209
  startedDate: Date | null;
7210
+ totalHoldDuration: number | null;
6909
7211
  handledTime: number | null;
7212
+ fullHandledTime: number | null;
6910
7213
  firstResponseTime: number | null;
7214
+ resolutionTime: number | null;
7215
+ fullResolutionTime: number | null;
6911
7216
  wrapUpForm: {
6912
7217
  type: string;
6913
7218
  id: string;
@@ -6960,6 +7265,24 @@ export declare const chatContract: {
6960
7265
  dateValue: Date | null;
6961
7266
  }[] | null | undefined;
6962
7267
  } | null;
7268
+ holdLogs?: {
7269
+ id: string;
7270
+ createdAt: Date;
7271
+ updatedAt: Date;
7272
+ deletedAt: Date | null;
7273
+ startedAt: string;
7274
+ endedAt: string | null;
7275
+ duration: number | null;
7276
+ holdLabel?: {
7277
+ name: string;
7278
+ id: string;
7279
+ position: number;
7280
+ createdAt: Date;
7281
+ updatedAt: Date;
7282
+ deletedAt: Date | null;
7283
+ isDefault: boolean;
7284
+ } | null | undefined;
7285
+ }[] | null | undefined;
6963
7286
  };
6964
7287
  workflowRule: {
6965
7288
  name: string;
@@ -6986,16 +7309,15 @@ export declare const chatContract: {
6986
7309
  additionalCredentials?: any;
6987
7310
  senderId?: string | undefined;
6988
7311
  whatsapp?: {
6989
- wabaBusinessId?: string | null | undefined;
6990
- wabaExternalId?: string | null | undefined;
6991
- phoneNumberId?: string | null | undefined;
6992
- email?: string | null | undefined;
6993
- clientId?: string | null | undefined;
6994
- channelId?: string | null | undefined;
7312
+ email: string;
7313
+ wabaExternalId: string;
7314
+ phoneNumberId: string;
7315
+ wabaBusinessId?: string | undefined;
7316
+ clientId?: string | undefined;
7317
+ channelId?: string | undefined;
6995
7318
  status?: "active" | "pending" | undefined;
6996
7319
  apiKey?: string | undefined;
6997
7320
  tier?: "basic" | "regular" | "premium" | undefined;
6998
- integrationType?: "meta" | "360dialog" | undefined;
6999
7321
  } | undefined;
7000
7322
  vonageCredentials?: {
7001
7323
  apiKey: string;
@@ -7166,6 +7488,7 @@ export declare const chatContract: {
7166
7488
  dateValue: Date | null;
7167
7489
  uploads: {
7168
7490
  id: string;
7491
+ status: string | null;
7169
7492
  createdAt: Date;
7170
7493
  updatedAt: Date;
7171
7494
  deletedAt: Date | null;
@@ -7174,7 +7497,6 @@ export declare const chatContract: {
7174
7497
  bucketName: string;
7175
7498
  fileSize: number;
7176
7499
  fileUrl: string | null;
7177
- status?: string | undefined;
7178
7500
  }[];
7179
7501
  }[];
7180
7502
  company: {
@@ -7309,8 +7631,12 @@ export declare const chatContract: {
7309
7631
  entityName: string;
7310
7632
  agentId: string | null;
7311
7633
  startedDate: Date | null;
7634
+ totalHoldDuration: number | null;
7312
7635
  handledTime: number | null;
7636
+ fullHandledTime: number | null;
7313
7637
  firstResponseTime: number | null;
7638
+ resolutionTime: number | null;
7639
+ fullResolutionTime: number | null;
7314
7640
  wrapUpForm: {
7315
7641
  type: string;
7316
7642
  id: string;
@@ -7363,6 +7689,24 @@ export declare const chatContract: {
7363
7689
  dateValue: Date | null;
7364
7690
  }[] | null | undefined;
7365
7691
  } | null;
7692
+ holdLogs?: {
7693
+ id: string;
7694
+ createdAt: Date;
7695
+ updatedAt: Date;
7696
+ deletedAt: Date | null;
7697
+ startedAt: string;
7698
+ endedAt: string | null;
7699
+ duration: number | null;
7700
+ holdLabel?: {
7701
+ name: string;
7702
+ id: string;
7703
+ position: number;
7704
+ createdAt: Date;
7705
+ updatedAt: Date;
7706
+ deletedAt: Date | null;
7707
+ isDefault?: boolean | undefined;
7708
+ } | null | undefined;
7709
+ }[] | null | undefined;
7366
7710
  };
7367
7711
  workflowRule: {
7368
7712
  name: string;
@@ -7391,16 +7735,15 @@ export declare const chatContract: {
7391
7735
  additionalCredentials?: any;
7392
7736
  senderId?: string | undefined;
7393
7737
  whatsapp?: {
7394
- wabaBusinessId?: string | null | undefined;
7395
- wabaExternalId?: string | null | undefined;
7396
- phoneNumberId?: string | null | undefined;
7397
- email?: string | null | undefined;
7398
- clientId?: string | null | undefined;
7399
- channelId?: string | null | undefined;
7738
+ email: string;
7739
+ wabaExternalId: string;
7740
+ phoneNumberId: string;
7741
+ wabaBusinessId?: string | undefined;
7742
+ clientId?: string | undefined;
7743
+ channelId?: string | undefined;
7400
7744
  status?: "active" | "pending" | undefined;
7401
7745
  apiKey?: string | undefined;
7402
7746
  tier?: "basic" | "regular" | "premium" | undefined;
7403
- integrationType?: "meta" | "360dialog" | undefined;
7404
7747
  } | undefined;
7405
7748
  vonageCredentials?: {
7406
7749
  apiKey: string;
@@ -7571,6 +7914,7 @@ export declare const chatContract: {
7571
7914
  dateValue: Date | null;
7572
7915
  uploads: {
7573
7916
  id: string;
7917
+ status: string | null;
7574
7918
  createdAt: Date;
7575
7919
  updatedAt: Date;
7576
7920
  deletedAt: Date | null;
@@ -7579,7 +7923,6 @@ export declare const chatContract: {
7579
7923
  bucketName: string;
7580
7924
  fileSize: number;
7581
7925
  fileUrl: string | null;
7582
- status?: string | undefined;
7583
7926
  }[];
7584
7927
  }[];
7585
7928
  company: {
@@ -7714,8 +8057,12 @@ export declare const chatContract: {
7714
8057
  entityName: string;
7715
8058
  agentId: string | null;
7716
8059
  startedDate: Date | null;
8060
+ totalHoldDuration: number | null;
7717
8061
  handledTime: number | null;
8062
+ fullHandledTime: number | null;
7718
8063
  firstResponseTime: number | null;
8064
+ resolutionTime: number | null;
8065
+ fullResolutionTime: number | null;
7719
8066
  wrapUpForm: {
7720
8067
  type: string;
7721
8068
  id: string;
@@ -7768,6 +8115,24 @@ export declare const chatContract: {
7768
8115
  dateValue: Date | null;
7769
8116
  }[] | null | undefined;
7770
8117
  } | null;
8118
+ holdLogs?: {
8119
+ id: string;
8120
+ createdAt: Date;
8121
+ updatedAt: Date;
8122
+ deletedAt: Date | null;
8123
+ startedAt: string;
8124
+ endedAt: string | null;
8125
+ duration: number | null;
8126
+ holdLabel?: {
8127
+ name: string;
8128
+ id: string;
8129
+ position: number;
8130
+ createdAt: Date;
8131
+ updatedAt: Date;
8132
+ deletedAt: Date | null;
8133
+ isDefault: boolean;
8134
+ } | null | undefined;
8135
+ }[] | null | undefined;
7771
8136
  };
7772
8137
  workflowRule: {
7773
8138
  name: string;
@@ -7797,16 +8162,15 @@ export declare const chatContract: {
7797
8162
  additionalCredentials?: any;
7798
8163
  senderId?: string | undefined;
7799
8164
  whatsapp?: {
7800
- wabaBusinessId?: string | null | undefined;
7801
- wabaExternalId?: string | null | undefined;
7802
- phoneNumberId?: string | null | undefined;
7803
- email?: string | null | undefined;
7804
- clientId?: string | null | undefined;
7805
- channelId?: string | null | undefined;
8165
+ email: string;
8166
+ wabaExternalId: string;
8167
+ phoneNumberId: string;
8168
+ wabaBusinessId?: string | undefined;
8169
+ clientId?: string | undefined;
8170
+ channelId?: string | undefined;
7806
8171
  status?: "active" | "pending" | undefined;
7807
8172
  apiKey?: string | undefined;
7808
8173
  tier?: "basic" | "regular" | "premium" | undefined;
7809
- integrationType?: "meta" | "360dialog" | undefined;
7810
8174
  } | undefined;
7811
8175
  vonageCredentials?: {
7812
8176
  apiKey: string;
@@ -7977,6 +8341,7 @@ export declare const chatContract: {
7977
8341
  dateValue: Date | null;
7978
8342
  uploads: {
7979
8343
  id: string;
8344
+ status: string | null;
7980
8345
  createdAt: Date;
7981
8346
  updatedAt: Date;
7982
8347
  deletedAt: Date | null;
@@ -7985,7 +8350,6 @@ export declare const chatContract: {
7985
8350
  bucketName: string;
7986
8351
  fileSize: number;
7987
8352
  fileUrl: string | null;
7988
- status?: string | undefined;
7989
8353
  }[];
7990
8354
  }[];
7991
8355
  company: {
@@ -8120,8 +8484,12 @@ export declare const chatContract: {
8120
8484
  entityName: string;
8121
8485
  agentId: string | null;
8122
8486
  startedDate: Date | null;
8487
+ totalHoldDuration: number | null;
8123
8488
  handledTime: number | null;
8489
+ fullHandledTime: number | null;
8124
8490
  firstResponseTime: number | null;
8491
+ resolutionTime: number | null;
8492
+ fullResolutionTime: number | null;
8125
8493
  wrapUpForm: {
8126
8494
  type: string;
8127
8495
  id: string;
@@ -8174,6 +8542,24 @@ export declare const chatContract: {
8174
8542
  dateValue: Date | null;
8175
8543
  }[] | null | undefined;
8176
8544
  } | null;
8545
+ holdLogs?: {
8546
+ id: string;
8547
+ createdAt: Date;
8548
+ updatedAt: Date;
8549
+ deletedAt: Date | null;
8550
+ startedAt: string;
8551
+ endedAt: string | null;
8552
+ duration: number | null;
8553
+ holdLabel?: {
8554
+ name: string;
8555
+ id: string;
8556
+ position: number;
8557
+ createdAt: Date;
8558
+ updatedAt: Date;
8559
+ deletedAt: Date | null;
8560
+ isDefault?: boolean | undefined;
8561
+ } | null | undefined;
8562
+ }[] | null | undefined;
8177
8563
  };
8178
8564
  workflowRule: {
8179
8565
  name: string;