@kl1/contracts 1.2.36-uat → 1.2.38-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 +2971 -2760
  2. package/dist/api-contracts/src/channel/index.d.ts.map +1 -1
  3. package/dist/api-contracts/src/channel/schema.d.ts +87 -75
  4. package/dist/api-contracts/src/channel/schema.d.ts.map +1 -1
  5. package/dist/api-contracts/src/channel/validation.d.ts +98 -84
  6. package/dist/api-contracts/src/channel/validation.d.ts.map +1 -1
  7. package/dist/api-contracts/src/chat/index.d.ts +2629 -6954
  8. package/dist/api-contracts/src/chat/index.d.ts.map +1 -1
  9. package/dist/api-contracts/src/chat/schema.d.ts +721 -1675
  10. package/dist/api-contracts/src/chat/schema.d.ts.map +1 -1
  11. package/dist/api-contracts/src/chat/validation.d.ts +818 -1512
  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 +11876 -13847
  19. package/dist/api-contracts/src/contract.d.ts.map +1 -1
  20. package/dist/api-contracts/src/cx-intelligence/index.d.ts +115 -0
  21. package/dist/api-contracts/src/cx-intelligence/index.d.ts.map +1 -0
  22. package/dist/api-contracts/src/cx-log/index.d.ts +143 -190
  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 +119 -233
  25. package/dist/api-contracts/src/cx-log/schema.d.ts.map +1 -1
  26. package/dist/api-contracts/src/dashboard/index.d.ts +99 -77
  27. package/dist/api-contracts/src/dashboard/index.d.ts.map +1 -1
  28. package/dist/api-contracts/src/dashboard/schema.d.ts +55 -12
  29. package/dist/api-contracts/src/dashboard/schema.d.ts.map +1 -1
  30. package/dist/api-contracts/src/dashboard/validation.d.ts +0 -26
  31. package/dist/api-contracts/src/dashboard/validation.d.ts.map +1 -1
  32. package/dist/api-contracts/src/extension/index.d.ts +0 -81
  33. package/dist/api-contracts/src/extension/index.d.ts.map +1 -1
  34. package/dist/api-contracts/src/facebook-feed/index.d.ts +1060 -1466
  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 +77 -68
  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 +60 -53
  39. package/dist/api-contracts/src/facebook-feed/validation.d.ts.map +1 -1
  40. package/dist/api-contracts/src/index.d.ts +0 -4
  41. package/dist/api-contracts/src/index.d.ts.map +1 -1
  42. package/dist/api-contracts/src/instagram/index.d.ts +836 -1271
  43. package/dist/api-contracts/src/instagram/index.d.ts.map +1 -1
  44. package/dist/api-contracts/src/line/index.d.ts +757 -1204
  45. package/dist/api-contracts/src/line/index.d.ts.map +1 -1
  46. package/dist/api-contracts/src/line/validation.d.ts +82 -71
  47. package/dist/api-contracts/src/line/validation.d.ts.map +1 -1
  48. package/dist/api-contracts/src/mail/mail-contract.d.ts +7 -619
  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 +7 -619
  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 +0 -204
  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 +5 -165
  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 +836 -1271
  57. package/dist/api-contracts/src/messenger/index.d.ts.map +1 -1
  58. package/dist/api-contracts/src/messenger/validation.d.ts +60 -53
  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 +146 -180
  64. package/dist/api-contracts/src/sms/index.d.ts.map +1 -1
  65. package/dist/api-contracts/src/sms/schema.d.ts +0 -22
  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 +626 -1091
  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 +89 -34
  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 +27 -10
  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 +8 -16
  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 +10 -20
  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 +626 -1091
  86. package/dist/api-contracts/src/viber/index.d.ts.map +1 -1
  87. package/dist/api-contracts/src/webchat/index.d.ts +626 -1091
  88. package/dist/api-contracts/src/webchat/index.d.ts.map +1 -1
  89. package/dist/api-contracts/src/whatsapp/index.d.ts +724 -1175
  90. package/dist/api-contracts/src/whatsapp/index.d.ts.map +1 -1
  91. package/dist/api-contracts/src/workflow-rule/index.d.ts +183 -569
  92. package/dist/api-contracts/src/workflow-rule/index.d.ts.map +1 -1
  93. package/dist/entities/src/enums/chat.d.ts +0 -3
  94. package/dist/entities/src/enums/chat.d.ts.map +1 -1
  95. package/dist/index.js +4369 -4862
  96. package/dist/index.js.map +1 -1
  97. package/dist/index.mjs +4339 -4827
  98. package/dist/index.mjs.map +1 -1
  99. package/package.json +3 -7
@@ -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.ZodOptional<z.ZodString>;
5
+ assigneeId: 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;
10
11
  roomId: string;
11
12
  workflowId: string;
12
- assigneeId?: string | undefined;
13
13
  queueId?: string | undefined;
14
14
  }, {
15
+ assigneeId: string;
15
16
  roomId: string;
16
17
  workflowId: string;
17
- assigneeId?: string | undefined;
18
18
  queueId?: string | undefined;
19
19
  }>;
20
20
  summary: "Update room assignee";
@@ -410,10 +410,9 @@ export declare const chatContract: {
410
410
  fileSize: z.ZodNumber;
411
411
  fileKey: z.ZodString;
412
412
  fileUrl: z.ZodNullable<z.ZodString>;
413
- status: z.ZodNullable<z.ZodString>;
413
+ status: z.ZodOptional<z.ZodString>;
414
414
  }, "strip", z.ZodTypeAny, {
415
415
  id: string;
416
- status: string | null;
417
416
  createdAt: Date;
418
417
  updatedAt: Date;
419
418
  deletedAt: Date | null;
@@ -422,9 +421,9 @@ export declare const chatContract: {
422
421
  bucketName: string;
423
422
  fileSize: number;
424
423
  fileUrl: string | null;
424
+ status?: string | undefined;
425
425
  }, {
426
426
  id: string;
427
- status: string | null;
428
427
  createdAt: Date;
429
428
  updatedAt: Date;
430
429
  deletedAt: Date | null;
@@ -433,6 +432,7 @@ export declare const chatContract: {
433
432
  bucketName: string;
434
433
  fileSize: number;
435
434
  fileUrl: string | null;
435
+ status?: string | undefined;
436
436
  }>, "many">;
437
437
  }, "strip", z.ZodTypeAny, {
438
438
  id: string;
@@ -459,7 +459,6 @@ export declare const chatContract: {
459
459
  dateValue: Date | null;
460
460
  uploads: {
461
461
  id: string;
462
- status: string | null;
463
462
  createdAt: Date;
464
463
  updatedAt: Date;
465
464
  deletedAt: Date | null;
@@ -468,6 +467,7 @@ export declare const chatContract: {
468
467
  bucketName: string;
469
468
  fileSize: number;
470
469
  fileUrl: string | null;
470
+ status?: string | undefined;
471
471
  }[];
472
472
  }, {
473
473
  id: string;
@@ -494,7 +494,6 @@ export declare const chatContract: {
494
494
  dateValue: Date | null;
495
495
  uploads: {
496
496
  id: string;
497
- status: string | null;
498
497
  createdAt: Date;
499
498
  updatedAt: Date;
500
499
  deletedAt: Date | null;
@@ -503,6 +502,7 @@ export declare const chatContract: {
503
502
  bucketName: string;
504
503
  fileSize: number;
505
504
  fileUrl: string | null;
505
+ status?: string | undefined;
506
506
  }[];
507
507
  }>, "many">;
508
508
  contactEmails: z.ZodArray<z.ZodObject<{
@@ -642,7 +642,6 @@ export declare const chatContract: {
642
642
  dateValue: Date | null;
643
643
  uploads: {
644
644
  id: string;
645
- status: string | null;
646
645
  createdAt: Date;
647
646
  updatedAt: Date;
648
647
  deletedAt: Date | null;
@@ -651,6 +650,7 @@ export declare const chatContract: {
651
650
  bucketName: string;
652
651
  fileSize: number;
653
652
  fileUrl: string | null;
653
+ status?: string | undefined;
654
654
  }[];
655
655
  }[];
656
656
  company: {
@@ -753,7 +753,6 @@ export declare const chatContract: {
753
753
  dateValue: Date | null;
754
754
  uploads: {
755
755
  id: string;
756
- status: string | null;
757
756
  createdAt: Date;
758
757
  updatedAt: Date;
759
758
  deletedAt: Date | null;
@@ -762,6 +761,7 @@ export declare const chatContract: {
762
761
  bucketName: string;
763
762
  fileSize: number;
764
763
  fileUrl: string | null;
764
+ status?: string | undefined;
765
765
  }[];
766
766
  }[];
767
767
  company: {
@@ -877,7 +877,6 @@ export declare const chatContract: {
877
877
  dateValue: Date | null;
878
878
  uploads: {
879
879
  id: string;
880
- status: string | null;
881
880
  createdAt: Date;
882
881
  updatedAt: Date;
883
882
  deletedAt: Date | null;
@@ -886,6 +885,7 @@ export declare const chatContract: {
886
885
  bucketName: string;
887
886
  fileSize: number;
888
887
  fileUrl: string | null;
888
+ status?: string | undefined;
889
889
  }[];
890
890
  }[];
891
891
  company: {
@@ -1003,7 +1003,6 @@ export declare const chatContract: {
1003
1003
  dateValue: Date | null;
1004
1004
  uploads: {
1005
1005
  id: string;
1006
- status: string | null;
1007
1006
  createdAt: Date;
1008
1007
  updatedAt: Date;
1009
1008
  deletedAt: Date | null;
@@ -1012,6 +1011,7 @@ export declare const chatContract: {
1012
1011
  bucketName: string;
1013
1012
  fileSize: number;
1014
1013
  fileUrl: string | null;
1014
+ status?: string | undefined;
1015
1015
  }[];
1016
1016
  }[];
1017
1017
  company: {
@@ -1508,35 +1508,38 @@ 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.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>;
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>>;
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">]>>;
1520
1521
  }, "strip", z.ZodTypeAny, {
1521
- email: string;
1522
- wabaExternalId: string;
1523
- phoneNumberId: string;
1524
- wabaBusinessId?: string | undefined;
1525
- clientId?: string | undefined;
1526
- channelId?: string | undefined;
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;
1527
1528
  status?: "active" | "pending" | undefined;
1528
1529
  apiKey?: string | undefined;
1529
1530
  tier?: "basic" | "regular" | "premium" | undefined;
1531
+ integrationType?: "meta" | "360dialog" | undefined;
1530
1532
  }, {
1531
- email: string;
1532
- wabaExternalId: string;
1533
- phoneNumberId: string;
1534
- wabaBusinessId?: string | undefined;
1535
- clientId?: string | undefined;
1536
- channelId?: string | undefined;
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;
1537
1539
  status?: "active" | "pending" | undefined;
1538
1540
  apiKey?: string | undefined;
1539
1541
  tier?: "basic" | "regular" | "premium" | undefined;
1542
+ integrationType?: "meta" | "360dialog" | undefined;
1540
1543
  }>>;
1541
1544
  vonageCredentials: z.ZodOptional<z.ZodObject<{
1542
1545
  mobileNumber: z.ZodString;
@@ -1561,15 +1564,16 @@ export declare const chatContract: {
1561
1564
  additionalCredentials?: any;
1562
1565
  senderId?: string | undefined;
1563
1566
  whatsapp?: {
1564
- email: string;
1565
- wabaExternalId: string;
1566
- phoneNumberId: string;
1567
- wabaBusinessId?: string | undefined;
1568
- clientId?: string | undefined;
1569
- channelId?: string | undefined;
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;
1570
1573
  status?: "active" | "pending" | undefined;
1571
1574
  apiKey?: string | undefined;
1572
1575
  tier?: "basic" | "regular" | "premium" | undefined;
1576
+ integrationType?: "meta" | "360dialog" | undefined;
1573
1577
  } | undefined;
1574
1578
  vonageCredentials?: {
1575
1579
  apiKey: string;
@@ -1586,15 +1590,16 @@ export declare const chatContract: {
1586
1590
  additionalCredentials?: any;
1587
1591
  senderId?: string | undefined;
1588
1592
  whatsapp?: {
1589
- email: string;
1590
- wabaExternalId: string;
1591
- phoneNumberId: string;
1592
- wabaBusinessId?: string | undefined;
1593
- clientId?: string | undefined;
1594
- channelId?: string | undefined;
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;
1595
1599
  status?: "active" | "pending" | undefined;
1596
1600
  apiKey?: string | undefined;
1597
1601
  tier?: "basic" | "regular" | "premium" | undefined;
1602
+ integrationType?: "meta" | "360dialog" | undefined;
1598
1603
  } | undefined;
1599
1604
  vonageCredentials?: {
1600
1605
  apiKey: string;
@@ -1845,15 +1850,16 @@ export declare const chatContract: {
1845
1850
  additionalCredentials?: any;
1846
1851
  senderId?: string | undefined;
1847
1852
  whatsapp?: {
1848
- email: string;
1849
- wabaExternalId: string;
1850
- phoneNumberId: string;
1851
- wabaBusinessId?: string | undefined;
1852
- clientId?: string | undefined;
1853
- channelId?: string | undefined;
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;
1854
1859
  status?: "active" | "pending" | undefined;
1855
1860
  apiKey?: string | undefined;
1856
1861
  tier?: "basic" | "regular" | "premium" | undefined;
1862
+ integrationType?: "meta" | "360dialog" | undefined;
1857
1863
  } | undefined;
1858
1864
  vonageCredentials?: {
1859
1865
  apiKey: string;
@@ -1935,15 +1941,16 @@ export declare const chatContract: {
1935
1941
  additionalCredentials?: any;
1936
1942
  senderId?: string | undefined;
1937
1943
  whatsapp?: {
1938
- email: string;
1939
- wabaExternalId: string;
1940
- phoneNumberId: string;
1941
- wabaBusinessId?: string | undefined;
1942
- clientId?: string | undefined;
1943
- channelId?: string | undefined;
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;
1944
1950
  status?: "active" | "pending" | undefined;
1945
1951
  apiKey?: string | undefined;
1946
1952
  tier?: "basic" | "regular" | "premium" | undefined;
1953
+ integrationType?: "meta" | "360dialog" | undefined;
1947
1954
  } | undefined;
1948
1955
  vonageCredentials?: {
1949
1956
  apiKey: string;
@@ -2028,12 +2035,8 @@ export declare const chatContract: {
2028
2035
  agentId: z.ZodNullable<z.ZodString>;
2029
2036
  direction: z.ZodNullable<z.ZodString>;
2030
2037
  startedDate: z.ZodNullable<z.ZodDate>;
2031
- totalHoldDuration: z.ZodNullable<z.ZodNumber>;
2032
2038
  handledTime: z.ZodNullable<z.ZodNumber>;
2033
- fullHandledTime: z.ZodNullable<z.ZodNumber>;
2034
2039
  firstResponseTime: z.ZodNullable<z.ZodNumber>;
2035
- resolutionTime: z.ZodNullable<z.ZodNumber>;
2036
- fullResolutionTime: z.ZodNullable<z.ZodNumber>;
2037
2040
  wrapUpForm: z.ZodNullable<z.ZodObject<{
2038
2041
  id: z.ZodString;
2039
2042
  createdAt: z.ZodDate;
@@ -2300,74 +2303,6 @@ export declare const chatContract: {
2300
2303
  dateValue: Date | null;
2301
2304
  }[] | null | undefined;
2302
2305
  }>>;
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">>>;
2371
2306
  }, "strip", z.ZodTypeAny, {
2372
2307
  id: string;
2373
2308
  channel: string | null;
@@ -2382,12 +2317,8 @@ export declare const chatContract: {
2382
2317
  entityName: string;
2383
2318
  agentId: string | null;
2384
2319
  startedDate: Date | null;
2385
- totalHoldDuration: number | null;
2386
2320
  handledTime: number | null;
2387
- fullHandledTime: number | null;
2388
2321
  firstResponseTime: number | null;
2389
- resolutionTime: number | null;
2390
- fullResolutionTime: number | null;
2391
2322
  wrapUpForm: {
2392
2323
  type: string;
2393
2324
  id: string;
@@ -2440,24 +2371,6 @@ export declare const chatContract: {
2440
2371
  dateValue: Date | null;
2441
2372
  }[] | null | undefined;
2442
2373
  } | 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;
2461
2374
  }, {
2462
2375
  id: string;
2463
2376
  channel: string | null;
@@ -2472,12 +2385,8 @@ export declare const chatContract: {
2472
2385
  entityName: string;
2473
2386
  agentId: string | null;
2474
2387
  startedDate: Date | null;
2475
- totalHoldDuration: number | null;
2476
2388
  handledTime: number | null;
2477
- fullHandledTime: number | null;
2478
2389
  firstResponseTime: number | null;
2479
- resolutionTime: number | null;
2480
- fullResolutionTime: number | null;
2481
2390
  wrapUpForm: {
2482
2391
  type: string;
2483
2392
  id: string;
@@ -2530,24 +2439,6 @@ export declare const chatContract: {
2530
2439
  dateValue: Date | null;
2531
2440
  }[] | null | undefined;
2532
2441
  } | 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;
2551
2442
  }>;
2552
2443
  workflowRule: z.ZodObject<{
2553
2444
  id: z.ZodString;
@@ -2589,15 +2480,16 @@ export declare const chatContract: {
2589
2480
  additionalCredentials?: any;
2590
2481
  senderId?: string | undefined;
2591
2482
  whatsapp?: {
2592
- email: string;
2593
- wabaExternalId: string;
2594
- phoneNumberId: string;
2595
- wabaBusinessId?: string | undefined;
2596
- clientId?: string | undefined;
2597
- channelId?: string | undefined;
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;
2598
2489
  status?: "active" | "pending" | undefined;
2599
2490
  apiKey?: string | undefined;
2600
2491
  tier?: "basic" | "regular" | "premium" | undefined;
2492
+ integrationType?: "meta" | "360dialog" | undefined;
2601
2493
  } | undefined;
2602
2494
  vonageCredentials?: {
2603
2495
  apiKey: string;
@@ -2768,7 +2660,6 @@ export declare const chatContract: {
2768
2660
  dateValue: Date | null;
2769
2661
  uploads: {
2770
2662
  id: string;
2771
- status: string | null;
2772
2663
  createdAt: Date;
2773
2664
  updatedAt: Date;
2774
2665
  deletedAt: Date | null;
@@ -2777,6 +2668,7 @@ export declare const chatContract: {
2777
2668
  bucketName: string;
2778
2669
  fileSize: number;
2779
2670
  fileUrl: string | null;
2671
+ status?: string | undefined;
2780
2672
  }[];
2781
2673
  }[];
2782
2674
  company: {
@@ -2911,12 +2803,8 @@ export declare const chatContract: {
2911
2803
  entityName: string;
2912
2804
  agentId: string | null;
2913
2805
  startedDate: Date | null;
2914
- totalHoldDuration: number | null;
2915
2806
  handledTime: number | null;
2916
- fullHandledTime: number | null;
2917
2807
  firstResponseTime: number | null;
2918
- resolutionTime: number | null;
2919
- fullResolutionTime: number | null;
2920
2808
  wrapUpForm: {
2921
2809
  type: string;
2922
2810
  id: string;
@@ -2969,24 +2857,6 @@ export declare const chatContract: {
2969
2857
  dateValue: Date | null;
2970
2858
  }[] | null | undefined;
2971
2859
  } | 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;
2990
2860
  };
2991
2861
  workflowRule: {
2992
2862
  name: string;
@@ -3012,15 +2882,16 @@ export declare const chatContract: {
3012
2882
  additionalCredentials?: any;
3013
2883
  senderId?: string | undefined;
3014
2884
  whatsapp?: {
3015
- email: string;
3016
- wabaExternalId: string;
3017
- phoneNumberId: string;
3018
- wabaBusinessId?: string | undefined;
3019
- clientId?: string | undefined;
3020
- channelId?: string | undefined;
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;
3021
2891
  status?: "active" | "pending" | undefined;
3022
2892
  apiKey?: string | undefined;
3023
2893
  tier?: "basic" | "regular" | "premium" | undefined;
2894
+ integrationType?: "meta" | "360dialog" | undefined;
3024
2895
  } | undefined;
3025
2896
  vonageCredentials?: {
3026
2897
  apiKey: string;
@@ -3191,7 +3062,6 @@ export declare const chatContract: {
3191
3062
  dateValue: Date | null;
3192
3063
  uploads: {
3193
3064
  id: string;
3194
- status: string | null;
3195
3065
  createdAt: Date;
3196
3066
  updatedAt: Date;
3197
3067
  deletedAt: Date | null;
@@ -3200,6 +3070,7 @@ export declare const chatContract: {
3200
3070
  bucketName: string;
3201
3071
  fileSize: number;
3202
3072
  fileUrl: string | null;
3073
+ status?: string | undefined;
3203
3074
  }[];
3204
3075
  }[];
3205
3076
  company: {
@@ -3334,12 +3205,8 @@ export declare const chatContract: {
3334
3205
  entityName: string;
3335
3206
  agentId: string | null;
3336
3207
  startedDate: Date | null;
3337
- totalHoldDuration: number | null;
3338
3208
  handledTime: number | null;
3339
- fullHandledTime: number | null;
3340
3209
  firstResponseTime: number | null;
3341
- resolutionTime: number | null;
3342
- fullResolutionTime: number | null;
3343
3210
  wrapUpForm: {
3344
3211
  type: string;
3345
3212
  id: string;
@@ -3392,24 +3259,6 @@ export declare const chatContract: {
3392
3259
  dateValue: Date | null;
3393
3260
  }[] | null | undefined;
3394
3261
  } | 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;
3413
3262
  };
3414
3263
  workflowRule: {
3415
3264
  name: string;
@@ -3437,15 +3286,16 @@ export declare const chatContract: {
3437
3286
  additionalCredentials?: any;
3438
3287
  senderId?: string | undefined;
3439
3288
  whatsapp?: {
3440
- email: string;
3441
- wabaExternalId: string;
3442
- phoneNumberId: string;
3443
- wabaBusinessId?: string | undefined;
3444
- clientId?: string | undefined;
3445
- channelId?: string | undefined;
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;
3446
3295
  status?: "active" | "pending" | undefined;
3447
3296
  apiKey?: string | undefined;
3448
3297
  tier?: "basic" | "regular" | "premium" | undefined;
3298
+ integrationType?: "meta" | "360dialog" | undefined;
3449
3299
  } | undefined;
3450
3300
  vonageCredentials?: {
3451
3301
  apiKey: string;
@@ -3616,7 +3466,6 @@ export declare const chatContract: {
3616
3466
  dateValue: Date | null;
3617
3467
  uploads: {
3618
3468
  id: string;
3619
- status: string | null;
3620
3469
  createdAt: Date;
3621
3470
  updatedAt: Date;
3622
3471
  deletedAt: Date | null;
@@ -3625,6 +3474,7 @@ export declare const chatContract: {
3625
3474
  bucketName: string;
3626
3475
  fileSize: number;
3627
3476
  fileUrl: string | null;
3477
+ status?: string | undefined;
3628
3478
  }[];
3629
3479
  }[];
3630
3480
  company: {
@@ -3759,12 +3609,8 @@ export declare const chatContract: {
3759
3609
  entityName: string;
3760
3610
  agentId: string | null;
3761
3611
  startedDate: Date | null;
3762
- totalHoldDuration: number | null;
3763
3612
  handledTime: number | null;
3764
- fullHandledTime: number | null;
3765
3613
  firstResponseTime: number | null;
3766
- resolutionTime: number | null;
3767
- fullResolutionTime: number | null;
3768
3614
  wrapUpForm: {
3769
3615
  type: string;
3770
3616
  id: string;
@@ -3817,24 +3663,6 @@ export declare const chatContract: {
3817
3663
  dateValue: Date | null;
3818
3664
  }[] | null | undefined;
3819
3665
  } | 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;
3838
3666
  };
3839
3667
  workflowRule: {
3840
3668
  name: string;
@@ -3863,15 +3691,16 @@ export declare const chatContract: {
3863
3691
  additionalCredentials?: any;
3864
3692
  senderId?: string | undefined;
3865
3693
  whatsapp?: {
3866
- email: string;
3867
- wabaExternalId: string;
3868
- phoneNumberId: string;
3869
- wabaBusinessId?: string | undefined;
3870
- clientId?: string | undefined;
3871
- channelId?: string | undefined;
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;
3872
3700
  status?: "active" | "pending" | undefined;
3873
3701
  apiKey?: string | undefined;
3874
3702
  tier?: "basic" | "regular" | "premium" | undefined;
3703
+ integrationType?: "meta" | "360dialog" | undefined;
3875
3704
  } | undefined;
3876
3705
  vonageCredentials?: {
3877
3706
  apiKey: string;
@@ -4042,7 +3871,6 @@ export declare const chatContract: {
4042
3871
  dateValue: Date | null;
4043
3872
  uploads: {
4044
3873
  id: string;
4045
- status: string | null;
4046
3874
  createdAt: Date;
4047
3875
  updatedAt: Date;
4048
3876
  deletedAt: Date | null;
@@ -4051,6 +3879,7 @@ export declare const chatContract: {
4051
3879
  bucketName: string;
4052
3880
  fileSize: number;
4053
3881
  fileUrl: string | null;
3882
+ status?: string | undefined;
4054
3883
  }[];
4055
3884
  }[];
4056
3885
  company: {
@@ -4185,12 +4014,8 @@ export declare const chatContract: {
4185
4014
  entityName: string;
4186
4015
  agentId: string | null;
4187
4016
  startedDate: Date | null;
4188
- totalHoldDuration: number | null;
4189
4017
  handledTime: number | null;
4190
- fullHandledTime: number | null;
4191
4018
  firstResponseTime: number | null;
4192
- resolutionTime: number | null;
4193
- fullResolutionTime: number | null;
4194
4019
  wrapUpForm: {
4195
4020
  type: string;
4196
4021
  id: string;
@@ -4243,24 +4068,6 @@ export declare const chatContract: {
4243
4068
  dateValue: Date | null;
4244
4069
  }[] | null | undefined;
4245
4070
  } | 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;
4264
4071
  };
4265
4072
  workflowRule: {
4266
4073
  name: string;
@@ -4334,35 +4141,38 @@ export declare const chatContract: {
4334
4141
  additionalCredentials: z.ZodOptional<z.ZodAny>;
4335
4142
  senderId: z.ZodOptional<z.ZodString>;
4336
4143
  whatsapp: z.ZodOptional<z.ZodObject<{
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>;
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>>;
4343
4150
  status: z.ZodOptional<z.ZodEnum<["pending", "active"]>>;
4344
4151
  apiKey: z.ZodOptional<z.ZodString>;
4345
4152
  tier: z.ZodOptional<z.ZodEnum<["basic", "regular", "premium"]>>;
4153
+ integrationType: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"meta">, z.ZodLiteral<"360dialog">]>>;
4346
4154
  }, "strip", z.ZodTypeAny, {
4347
- email: string;
4348
- wabaExternalId: string;
4349
- phoneNumberId: string;
4350
- wabaBusinessId?: string | undefined;
4351
- clientId?: string | undefined;
4352
- channelId?: string | undefined;
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;
4353
4161
  status?: "active" | "pending" | undefined;
4354
4162
  apiKey?: string | undefined;
4355
4163
  tier?: "basic" | "regular" | "premium" | undefined;
4164
+ integrationType?: "meta" | "360dialog" | undefined;
4356
4165
  }, {
4357
- email: string;
4358
- wabaExternalId: string;
4359
- phoneNumberId: string;
4360
- wabaBusinessId?: string | undefined;
4361
- clientId?: string | undefined;
4362
- channelId?: string | undefined;
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;
4363
4172
  status?: "active" | "pending" | undefined;
4364
4173
  apiKey?: string | undefined;
4365
4174
  tier?: "basic" | "regular" | "premium" | undefined;
4175
+ integrationType?: "meta" | "360dialog" | undefined;
4366
4176
  }>>;
4367
4177
  vonageCredentials: z.ZodOptional<z.ZodObject<{
4368
4178
  mobileNumber: z.ZodString;
@@ -4387,15 +4197,16 @@ export declare const chatContract: {
4387
4197
  additionalCredentials?: any;
4388
4198
  senderId?: string | undefined;
4389
4199
  whatsapp?: {
4390
- email: string;
4391
- wabaExternalId: string;
4392
- phoneNumberId: string;
4393
- wabaBusinessId?: string | undefined;
4394
- clientId?: string | undefined;
4395
- channelId?: string | undefined;
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;
4396
4206
  status?: "active" | "pending" | undefined;
4397
4207
  apiKey?: string | undefined;
4398
4208
  tier?: "basic" | "regular" | "premium" | undefined;
4209
+ integrationType?: "meta" | "360dialog" | undefined;
4399
4210
  } | undefined;
4400
4211
  vonageCredentials?: {
4401
4212
  apiKey: string;
@@ -4412,15 +4223,16 @@ export declare const chatContract: {
4412
4223
  additionalCredentials?: any;
4413
4224
  senderId?: string | undefined;
4414
4225
  whatsapp?: {
4415
- email: string;
4416
- wabaExternalId: string;
4417
- phoneNumberId: string;
4418
- wabaBusinessId?: string | undefined;
4419
- clientId?: string | undefined;
4420
- channelId?: string | undefined;
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;
4421
4232
  status?: "active" | "pending" | undefined;
4422
4233
  apiKey?: string | undefined;
4423
4234
  tier?: "basic" | "regular" | "premium" | undefined;
4235
+ integrationType?: "meta" | "360dialog" | undefined;
4424
4236
  } | undefined;
4425
4237
  vonageCredentials?: {
4426
4238
  apiKey: string;
@@ -4671,15 +4483,16 @@ export declare const chatContract: {
4671
4483
  additionalCredentials?: any;
4672
4484
  senderId?: string | undefined;
4673
4485
  whatsapp?: {
4674
- email: string;
4675
- wabaExternalId: string;
4676
- phoneNumberId: string;
4677
- wabaBusinessId?: string | undefined;
4678
- clientId?: string | undefined;
4679
- channelId?: string | undefined;
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;
4680
4492
  status?: "active" | "pending" | undefined;
4681
4493
  apiKey?: string | undefined;
4682
4494
  tier?: "basic" | "regular" | "premium" | undefined;
4495
+ integrationType?: "meta" | "360dialog" | undefined;
4683
4496
  } | undefined;
4684
4497
  vonageCredentials?: {
4685
4498
  apiKey: string;
@@ -4761,15 +4574,16 @@ export declare const chatContract: {
4761
4574
  additionalCredentials?: any;
4762
4575
  senderId?: string | undefined;
4763
4576
  whatsapp?: {
4764
- email: string;
4765
- wabaExternalId: string;
4766
- phoneNumberId: string;
4767
- wabaBusinessId?: string | undefined;
4768
- clientId?: string | undefined;
4769
- channelId?: string | undefined;
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;
4770
4583
  status?: "active" | "pending" | undefined;
4771
4584
  apiKey?: string | undefined;
4772
4585
  tier?: "basic" | "regular" | "premium" | undefined;
4586
+ integrationType?: "meta" | "360dialog" | undefined;
4773
4587
  } | undefined;
4774
4588
  vonageCredentials?: {
4775
4589
  apiKey: string;
@@ -5427,10 +5241,9 @@ export declare const chatContract: {
5427
5241
  fileSize: z.ZodNumber;
5428
5242
  fileKey: z.ZodString;
5429
5243
  fileUrl: z.ZodNullable<z.ZodString>;
5430
- status: z.ZodNullable<z.ZodString>;
5244
+ status: z.ZodOptional<z.ZodString>;
5431
5245
  }, "strip", z.ZodTypeAny, {
5432
5246
  id: string;
5433
- status: string | null;
5434
5247
  createdAt: Date;
5435
5248
  updatedAt: Date;
5436
5249
  deletedAt: Date | null;
@@ -5439,9 +5252,9 @@ export declare const chatContract: {
5439
5252
  bucketName: string;
5440
5253
  fileSize: number;
5441
5254
  fileUrl: string | null;
5255
+ status?: string | undefined;
5442
5256
  }, {
5443
5257
  id: string;
5444
- status: string | null;
5445
5258
  createdAt: Date;
5446
5259
  updatedAt: Date;
5447
5260
  deletedAt: Date | null;
@@ -5450,6 +5263,7 @@ export declare const chatContract: {
5450
5263
  bucketName: string;
5451
5264
  fileSize: number;
5452
5265
  fileUrl: string | null;
5266
+ status?: string | undefined;
5453
5267
  }>, "many">;
5454
5268
  }, "strip", z.ZodTypeAny, {
5455
5269
  id: string;
@@ -5476,7 +5290,6 @@ export declare const chatContract: {
5476
5290
  dateValue: Date | null;
5477
5291
  uploads: {
5478
5292
  id: string;
5479
- status: string | null;
5480
5293
  createdAt: Date;
5481
5294
  updatedAt: Date;
5482
5295
  deletedAt: Date | null;
@@ -5485,6 +5298,7 @@ export declare const chatContract: {
5485
5298
  bucketName: string;
5486
5299
  fileSize: number;
5487
5300
  fileUrl: string | null;
5301
+ status?: string | undefined;
5488
5302
  }[];
5489
5303
  }, {
5490
5304
  id: string;
@@ -5511,7 +5325,6 @@ export declare const chatContract: {
5511
5325
  dateValue: Date | null;
5512
5326
  uploads: {
5513
5327
  id: string;
5514
- status: string | null;
5515
5328
  createdAt: Date;
5516
5329
  updatedAt: Date;
5517
5330
  deletedAt: Date | null;
@@ -5520,6 +5333,7 @@ export declare const chatContract: {
5520
5333
  bucketName: string;
5521
5334
  fileSize: number;
5522
5335
  fileUrl: string | null;
5336
+ status?: string | undefined;
5523
5337
  }[];
5524
5338
  }>, "many">;
5525
5339
  contactEmails: z.ZodArray<z.ZodObject<{
@@ -5659,7 +5473,6 @@ export declare const chatContract: {
5659
5473
  dateValue: Date | null;
5660
5474
  uploads: {
5661
5475
  id: string;
5662
- status: string | null;
5663
5476
  createdAt: Date;
5664
5477
  updatedAt: Date;
5665
5478
  deletedAt: Date | null;
@@ -5668,6 +5481,7 @@ export declare const chatContract: {
5668
5481
  bucketName: string;
5669
5482
  fileSize: number;
5670
5483
  fileUrl: string | null;
5484
+ status?: string | undefined;
5671
5485
  }[];
5672
5486
  }[];
5673
5487
  company: {
@@ -5770,7 +5584,6 @@ export declare const chatContract: {
5770
5584
  dateValue: Date | null;
5771
5585
  uploads: {
5772
5586
  id: string;
5773
- status: string | null;
5774
5587
  createdAt: Date;
5775
5588
  updatedAt: Date;
5776
5589
  deletedAt: Date | null;
@@ -5779,6 +5592,7 @@ export declare const chatContract: {
5779
5592
  bucketName: string;
5780
5593
  fileSize: number;
5781
5594
  fileUrl: string | null;
5595
+ status?: string | undefined;
5782
5596
  }[];
5783
5597
  }[];
5784
5598
  company: {
@@ -5894,7 +5708,6 @@ export declare const chatContract: {
5894
5708
  dateValue: Date | null;
5895
5709
  uploads: {
5896
5710
  id: string;
5897
- status: string | null;
5898
5711
  createdAt: Date;
5899
5712
  updatedAt: Date;
5900
5713
  deletedAt: Date | null;
@@ -5903,6 +5716,7 @@ export declare const chatContract: {
5903
5716
  bucketName: string;
5904
5717
  fileSize: number;
5905
5718
  fileUrl: string | null;
5719
+ status?: string | undefined;
5906
5720
  }[];
5907
5721
  }[];
5908
5722
  company: {
@@ -6020,7 +5834,6 @@ export declare const chatContract: {
6020
5834
  dateValue: Date | null;
6021
5835
  uploads: {
6022
5836
  id: string;
6023
- status: string | null;
6024
5837
  createdAt: Date;
6025
5838
  updatedAt: Date;
6026
5839
  deletedAt: Date | null;
@@ -6029,6 +5842,7 @@ export declare const chatContract: {
6029
5842
  bucketName: string;
6030
5843
  fileSize: number;
6031
5844
  fileUrl: string | null;
5845
+ status?: string | undefined;
6032
5846
  }[];
6033
5847
  }[];
6034
5848
  company: {
@@ -6323,12 +6137,8 @@ export declare const chatContract: {
6323
6137
  agentId: z.ZodNullable<z.ZodString>;
6324
6138
  direction: z.ZodNullable<z.ZodString>;
6325
6139
  startedDate: z.ZodNullable<z.ZodDate>;
6326
- totalHoldDuration: z.ZodNullable<z.ZodNumber>;
6327
6140
  handledTime: z.ZodNullable<z.ZodNumber>;
6328
- fullHandledTime: z.ZodNullable<z.ZodNumber>;
6329
6141
  firstResponseTime: z.ZodNullable<z.ZodNumber>;
6330
- resolutionTime: z.ZodNullable<z.ZodNumber>;
6331
- fullResolutionTime: z.ZodNullable<z.ZodNumber>;
6332
6142
  wrapUpForm: z.ZodNullable<z.ZodObject<{
6333
6143
  id: z.ZodString;
6334
6144
  createdAt: z.ZodDate;
@@ -6595,74 +6405,6 @@ export declare const chatContract: {
6595
6405
  dateValue: Date | null;
6596
6406
  }[] | null | undefined;
6597
6407
  }>>;
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">>>;
6666
6408
  }, "strip", z.ZodTypeAny, {
6667
6409
  id: string;
6668
6410
  channel: string | null;
@@ -6677,12 +6419,8 @@ export declare const chatContract: {
6677
6419
  entityName: string;
6678
6420
  agentId: string | null;
6679
6421
  startedDate: Date | null;
6680
- totalHoldDuration: number | null;
6681
6422
  handledTime: number | null;
6682
- fullHandledTime: number | null;
6683
6423
  firstResponseTime: number | null;
6684
- resolutionTime: number | null;
6685
- fullResolutionTime: number | null;
6686
6424
  wrapUpForm: {
6687
6425
  type: string;
6688
6426
  id: string;
@@ -6735,24 +6473,6 @@ export declare const chatContract: {
6735
6473
  dateValue: Date | null;
6736
6474
  }[] | null | undefined;
6737
6475
  } | 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;
6756
6476
  }, {
6757
6477
  id: string;
6758
6478
  channel: string | null;
@@ -6767,12 +6487,8 @@ export declare const chatContract: {
6767
6487
  entityName: string;
6768
6488
  agentId: string | null;
6769
6489
  startedDate: Date | null;
6770
- totalHoldDuration: number | null;
6771
6490
  handledTime: number | null;
6772
- fullHandledTime: number | null;
6773
6491
  firstResponseTime: number | null;
6774
- resolutionTime: number | null;
6775
- fullResolutionTime: number | null;
6776
6492
  wrapUpForm: {
6777
6493
  type: string;
6778
6494
  id: string;
@@ -6825,24 +6541,6 @@ export declare const chatContract: {
6825
6541
  dateValue: Date | null;
6826
6542
  }[] | null | undefined;
6827
6543
  } | 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;
6846
6544
  }>;
6847
6545
  workflowRule: z.ZodObject<{
6848
6546
  id: z.ZodString;
@@ -6885,15 +6583,16 @@ export declare const chatContract: {
6885
6583
  additionalCredentials?: any;
6886
6584
  senderId?: string | undefined;
6887
6585
  whatsapp?: {
6888
- email: string;
6889
- wabaExternalId: string;
6890
- phoneNumberId: string;
6891
- wabaBusinessId?: string | undefined;
6892
- clientId?: string | undefined;
6893
- channelId?: string | undefined;
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;
6894
6592
  status?: "active" | "pending" | undefined;
6895
6593
  apiKey?: string | undefined;
6896
6594
  tier?: "basic" | "regular" | "premium" | undefined;
6595
+ integrationType?: "meta" | "360dialog" | undefined;
6897
6596
  } | undefined;
6898
6597
  vonageCredentials?: {
6899
6598
  apiKey: string;
@@ -7064,7 +6763,6 @@ export declare const chatContract: {
7064
6763
  dateValue: Date | null;
7065
6764
  uploads: {
7066
6765
  id: string;
7067
- status: string | null;
7068
6766
  createdAt: Date;
7069
6767
  updatedAt: Date;
7070
6768
  deletedAt: Date | null;
@@ -7073,6 +6771,7 @@ export declare const chatContract: {
7073
6771
  bucketName: string;
7074
6772
  fileSize: number;
7075
6773
  fileUrl: string | null;
6774
+ status?: string | undefined;
7076
6775
  }[];
7077
6776
  }[];
7078
6777
  company: {
@@ -7207,12 +6906,8 @@ export declare const chatContract: {
7207
6906
  entityName: string;
7208
6907
  agentId: string | null;
7209
6908
  startedDate: Date | null;
7210
- totalHoldDuration: number | null;
7211
6909
  handledTime: number | null;
7212
- fullHandledTime: number | null;
7213
6910
  firstResponseTime: number | null;
7214
- resolutionTime: number | null;
7215
- fullResolutionTime: number | null;
7216
6911
  wrapUpForm: {
7217
6912
  type: string;
7218
6913
  id: string;
@@ -7265,24 +6960,6 @@ export declare const chatContract: {
7265
6960
  dateValue: Date | null;
7266
6961
  }[] | null | undefined;
7267
6962
  } | 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;
7286
6963
  };
7287
6964
  workflowRule: {
7288
6965
  name: string;
@@ -7309,15 +6986,16 @@ export declare const chatContract: {
7309
6986
  additionalCredentials?: any;
7310
6987
  senderId?: string | undefined;
7311
6988
  whatsapp?: {
7312
- email: string;
7313
- wabaExternalId: string;
7314
- phoneNumberId: string;
7315
- wabaBusinessId?: string | undefined;
7316
- clientId?: string | undefined;
7317
- channelId?: string | undefined;
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;
7318
6995
  status?: "active" | "pending" | undefined;
7319
6996
  apiKey?: string | undefined;
7320
6997
  tier?: "basic" | "regular" | "premium" | undefined;
6998
+ integrationType?: "meta" | "360dialog" | undefined;
7321
6999
  } | undefined;
7322
7000
  vonageCredentials?: {
7323
7001
  apiKey: string;
@@ -7488,7 +7166,6 @@ export declare const chatContract: {
7488
7166
  dateValue: Date | null;
7489
7167
  uploads: {
7490
7168
  id: string;
7491
- status: string | null;
7492
7169
  createdAt: Date;
7493
7170
  updatedAt: Date;
7494
7171
  deletedAt: Date | null;
@@ -7497,6 +7174,7 @@ export declare const chatContract: {
7497
7174
  bucketName: string;
7498
7175
  fileSize: number;
7499
7176
  fileUrl: string | null;
7177
+ status?: string | undefined;
7500
7178
  }[];
7501
7179
  }[];
7502
7180
  company: {
@@ -7631,12 +7309,8 @@ export declare const chatContract: {
7631
7309
  entityName: string;
7632
7310
  agentId: string | null;
7633
7311
  startedDate: Date | null;
7634
- totalHoldDuration: number | null;
7635
7312
  handledTime: number | null;
7636
- fullHandledTime: number | null;
7637
7313
  firstResponseTime: number | null;
7638
- resolutionTime: number | null;
7639
- fullResolutionTime: number | null;
7640
7314
  wrapUpForm: {
7641
7315
  type: string;
7642
7316
  id: string;
@@ -7689,24 +7363,6 @@ export declare const chatContract: {
7689
7363
  dateValue: Date | null;
7690
7364
  }[] | null | undefined;
7691
7365
  } | 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;
7710
7366
  };
7711
7367
  workflowRule: {
7712
7368
  name: string;
@@ -7735,15 +7391,16 @@ export declare const chatContract: {
7735
7391
  additionalCredentials?: any;
7736
7392
  senderId?: string | undefined;
7737
7393
  whatsapp?: {
7738
- email: string;
7739
- wabaExternalId: string;
7740
- phoneNumberId: string;
7741
- wabaBusinessId?: string | undefined;
7742
- clientId?: string | undefined;
7743
- channelId?: string | undefined;
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;
7744
7400
  status?: "active" | "pending" | undefined;
7745
7401
  apiKey?: string | undefined;
7746
7402
  tier?: "basic" | "regular" | "premium" | undefined;
7403
+ integrationType?: "meta" | "360dialog" | undefined;
7747
7404
  } | undefined;
7748
7405
  vonageCredentials?: {
7749
7406
  apiKey: string;
@@ -7914,7 +7571,6 @@ export declare const chatContract: {
7914
7571
  dateValue: Date | null;
7915
7572
  uploads: {
7916
7573
  id: string;
7917
- status: string | null;
7918
7574
  createdAt: Date;
7919
7575
  updatedAt: Date;
7920
7576
  deletedAt: Date | null;
@@ -7923,6 +7579,7 @@ export declare const chatContract: {
7923
7579
  bucketName: string;
7924
7580
  fileSize: number;
7925
7581
  fileUrl: string | null;
7582
+ status?: string | undefined;
7926
7583
  }[];
7927
7584
  }[];
7928
7585
  company: {
@@ -8057,12 +7714,8 @@ export declare const chatContract: {
8057
7714
  entityName: string;
8058
7715
  agentId: string | null;
8059
7716
  startedDate: Date | null;
8060
- totalHoldDuration: number | null;
8061
7717
  handledTime: number | null;
8062
- fullHandledTime: number | null;
8063
7718
  firstResponseTime: number | null;
8064
- resolutionTime: number | null;
8065
- fullResolutionTime: number | null;
8066
7719
  wrapUpForm: {
8067
7720
  type: string;
8068
7721
  id: string;
@@ -8115,24 +7768,6 @@ export declare const chatContract: {
8115
7768
  dateValue: Date | null;
8116
7769
  }[] | null | undefined;
8117
7770
  } | 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;
8136
7771
  };
8137
7772
  workflowRule: {
8138
7773
  name: string;
@@ -8162,15 +7797,16 @@ export declare const chatContract: {
8162
7797
  additionalCredentials?: any;
8163
7798
  senderId?: string | undefined;
8164
7799
  whatsapp?: {
8165
- email: string;
8166
- wabaExternalId: string;
8167
- phoneNumberId: string;
8168
- wabaBusinessId?: string | undefined;
8169
- clientId?: string | undefined;
8170
- channelId?: string | undefined;
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;
8171
7806
  status?: "active" | "pending" | undefined;
8172
7807
  apiKey?: string | undefined;
8173
7808
  tier?: "basic" | "regular" | "premium" | undefined;
7809
+ integrationType?: "meta" | "360dialog" | undefined;
8174
7810
  } | undefined;
8175
7811
  vonageCredentials?: {
8176
7812
  apiKey: string;
@@ -8341,7 +7977,6 @@ export declare const chatContract: {
8341
7977
  dateValue: Date | null;
8342
7978
  uploads: {
8343
7979
  id: string;
8344
- status: string | null;
8345
7980
  createdAt: Date;
8346
7981
  updatedAt: Date;
8347
7982
  deletedAt: Date | null;
@@ -8350,6 +7985,7 @@ export declare const chatContract: {
8350
7985
  bucketName: string;
8351
7986
  fileSize: number;
8352
7987
  fileUrl: string | null;
7988
+ status?: string | undefined;
8353
7989
  }[];
8354
7990
  }[];
8355
7991
  company: {
@@ -8484,12 +8120,8 @@ export declare const chatContract: {
8484
8120
  entityName: string;
8485
8121
  agentId: string | null;
8486
8122
  startedDate: Date | null;
8487
- totalHoldDuration: number | null;
8488
8123
  handledTime: number | null;
8489
- fullHandledTime: number | null;
8490
8124
  firstResponseTime: number | null;
8491
- resolutionTime: number | null;
8492
- fullResolutionTime: number | null;
8493
8125
  wrapUpForm: {
8494
8126
  type: string;
8495
8127
  id: string;
@@ -8542,24 +8174,6 @@ export declare const chatContract: {
8542
8174
  dateValue: Date | null;
8543
8175
  }[] | null | undefined;
8544
8176
  } | 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;
8563
8177
  };
8564
8178
  workflowRule: {
8565
8179
  name: string;