@kl1/contracts 1.2.27-uat → 1.2.28-uat

Sign up to get free protection for your applications and to get access to all the features.
Files changed (234) hide show
  1. package/dist/api-contracts/src/activity-log/index.d.ts +17 -17
  2. package/dist/api-contracts/src/attribute/index.d.ts +148 -164
  3. package/dist/api-contracts/src/attribute/index.d.ts.map +1 -1
  4. package/dist/api-contracts/src/attribute/schema.d.ts +8 -11
  5. package/dist/api-contracts/src/attribute/schema.d.ts.map +1 -1
  6. package/dist/api-contracts/src/attribute-option/schema.d.ts +2 -3
  7. package/dist/api-contracts/src/attribute-option/schema.d.ts.map +1 -1
  8. package/dist/api-contracts/src/auth/index.d.ts +47 -51
  9. package/dist/api-contracts/src/auth/index.d.ts.map +1 -1
  10. package/dist/api-contracts/src/automation-queue/index.d.ts +31 -43
  11. package/dist/api-contracts/src/automation-queue/index.d.ts.map +1 -1
  12. package/dist/api-contracts/src/automation-queue/schema.d.ts +2 -3
  13. package/dist/api-contracts/src/automation-queue/schema.d.ts.map +1 -1
  14. package/dist/api-contracts/src/aws/index.d.ts +6 -8
  15. package/dist/api-contracts/src/aws/index.d.ts.map +1 -1
  16. package/dist/api-contracts/src/botpress/index.d.ts +13 -17
  17. package/dist/api-contracts/src/botpress/index.d.ts.map +1 -1
  18. package/dist/api-contracts/src/business-calendar/index.d.ts +28 -40
  19. package/dist/api-contracts/src/business-calendar/index.d.ts.map +1 -1
  20. package/dist/api-contracts/src/business-calendar/schema.d.ts +10 -15
  21. package/dist/api-contracts/src/business-calendar/schema.d.ts.map +1 -1
  22. package/dist/api-contracts/src/call-log/schema.d.ts +4 -5
  23. package/dist/api-contracts/src/call-log/schema.d.ts.map +1 -1
  24. package/dist/api-contracts/src/category/index.d.ts +109 -118
  25. package/dist/api-contracts/src/category/index.d.ts.map +1 -1
  26. package/dist/api-contracts/src/category/schema.d.ts +2 -3
  27. package/dist/api-contracts/src/category/schema.d.ts.map +1 -1
  28. package/dist/api-contracts/src/channel/index.d.ts +1216 -1062
  29. package/dist/api-contracts/src/channel/index.d.ts.map +1 -1
  30. package/dist/api-contracts/src/channel/schema.d.ts +50 -38
  31. package/dist/api-contracts/src/channel/schema.d.ts.map +1 -1
  32. package/dist/api-contracts/src/channel/validation.d.ts +66 -52
  33. package/dist/api-contracts/src/channel/validation.d.ts.map +1 -1
  34. package/dist/api-contracts/src/chat/index.d.ts +14158 -10902
  35. package/dist/api-contracts/src/chat/index.d.ts.map +1 -1
  36. package/dist/api-contracts/src/chat/schema.d.ts +3223 -2468
  37. package/dist/api-contracts/src/chat/schema.d.ts.map +1 -1
  38. package/dist/api-contracts/src/chat/validation.d.ts +3259 -2794
  39. package/dist/api-contracts/src/chat/validation.d.ts.map +1 -1
  40. package/dist/api-contracts/src/comment/index.d.ts +224 -281
  41. package/dist/api-contracts/src/comment/index.d.ts.map +1 -1
  42. package/dist/api-contracts/src/comment/schema.d.ts +50 -68
  43. package/dist/api-contracts/src/comment/schema.d.ts.map +1 -1
  44. package/dist/api-contracts/src/comment/validation.d.ts +1 -1
  45. package/dist/api-contracts/src/company/index.d.ts +109 -136
  46. package/dist/api-contracts/src/company/index.d.ts.map +1 -1
  47. package/dist/api-contracts/src/company/schema.d.ts +24 -33
  48. package/dist/api-contracts/src/company/schema.d.ts.map +1 -1
  49. package/dist/api-contracts/src/company/validation.d.ts +62 -78
  50. package/dist/api-contracts/src/company/validation.d.ts.map +1 -1
  51. package/dist/api-contracts/src/contact/index.d.ts +559 -677
  52. package/dist/api-contracts/src/contact/index.d.ts.map +1 -1
  53. package/dist/api-contracts/src/contact/schema.d.ts +42 -56
  54. package/dist/api-contracts/src/contact/schema.d.ts.map +1 -1
  55. package/dist/api-contracts/src/contact/validation.d.ts +218 -299
  56. package/dist/api-contracts/src/contact/validation.d.ts.map +1 -1
  57. package/dist/api-contracts/src/contact-email/schema.d.ts +2 -3
  58. package/dist/api-contracts/src/contact-email/schema.d.ts.map +1 -1
  59. package/dist/api-contracts/src/contact-phone/schema.d.ts +2 -3
  60. package/dist/api-contracts/src/contact-phone/schema.d.ts.map +1 -1
  61. package/dist/api-contracts/src/contract.d.ts +28558 -25032
  62. package/dist/api-contracts/src/contract.d.ts.map +1 -1
  63. package/dist/api-contracts/src/custom-field/schema.d.ts +2 -3
  64. package/dist/api-contracts/src/custom-field/schema.d.ts.map +1 -1
  65. package/dist/api-contracts/src/custom-field/validation.d.ts +2 -2
  66. package/dist/api-contracts/src/custom-field-upload/schema.d.ts +2 -3
  67. package/dist/api-contracts/src/custom-field-upload/schema.d.ts.map +1 -1
  68. package/dist/api-contracts/src/cx-log/index.d.ts +651 -678
  69. package/dist/api-contracts/src/cx-log/index.d.ts.map +1 -1
  70. package/dist/api-contracts/src/cx-log/schema.d.ts +425 -457
  71. package/dist/api-contracts/src/cx-log/schema.d.ts.map +1 -1
  72. package/dist/api-contracts/src/cx-log/validation.d.ts +39 -39
  73. package/dist/api-contracts/src/dashboard/index.d.ts +333 -374
  74. package/dist/api-contracts/src/dashboard/index.d.ts.map +1 -1
  75. package/dist/api-contracts/src/dashboard/schema.d.ts +4 -5
  76. package/dist/api-contracts/src/dashboard/schema.d.ts.map +1 -1
  77. package/dist/api-contracts/src/dashboard/validation.d.ts +18 -24
  78. package/dist/api-contracts/src/dashboard/validation.d.ts.map +1 -1
  79. package/dist/api-contracts/src/evaluate-form/index.d.ts +3 -4
  80. package/dist/api-contracts/src/evaluate-form/index.d.ts.map +1 -1
  81. package/dist/api-contracts/src/evaluate-form/schema.d.ts +2 -3
  82. package/dist/api-contracts/src/evaluate-form/schema.d.ts.map +1 -1
  83. package/dist/api-contracts/src/export/index.d.ts +3 -4
  84. package/dist/api-contracts/src/export/index.d.ts.map +1 -1
  85. package/dist/api-contracts/src/extension/index.d.ts +112 -118
  86. package/dist/api-contracts/src/extension/index.d.ts.map +1 -1
  87. package/dist/api-contracts/src/facebook-feed/index.d.ts +2367 -1871
  88. package/dist/api-contracts/src/facebook-feed/index.d.ts.map +1 -1
  89. package/dist/api-contracts/src/facebook-feed/schema.d.ts +74 -76
  90. package/dist/api-contracts/src/facebook-feed/schema.d.ts.map +1 -1
  91. package/dist/api-contracts/src/facebook-feed/validation.d.ts +86 -96
  92. package/dist/api-contracts/src/facebook-feed/validation.d.ts.map +1 -1
  93. package/dist/api-contracts/src/general-setting/index.d.ts +2 -2
  94. package/dist/api-contracts/src/group/schema.d.ts +2 -3
  95. package/dist/api-contracts/src/group/schema.d.ts.map +1 -1
  96. package/dist/api-contracts/src/hold-label/index.d.ts +160 -39
  97. package/dist/api-contracts/src/hold-label/index.d.ts.map +1 -1
  98. package/dist/api-contracts/src/hold-label/schema.d.ts +27 -3
  99. package/dist/api-contracts/src/hold-label/schema.d.ts.map +1 -1
  100. package/dist/api-contracts/src/hold-label/validation.d.ts +10 -0
  101. package/dist/api-contracts/src/hold-label/validation.d.ts.map +1 -1
  102. package/dist/api-contracts/src/instagram/index.d.ts +2302 -1815
  103. package/dist/api-contracts/src/instagram/index.d.ts.map +1 -1
  104. package/dist/api-contracts/src/instagram/validation.d.ts +6 -6
  105. package/dist/api-contracts/src/line/index.d.ts +3429 -2954
  106. package/dist/api-contracts/src/line/index.d.ts.map +1 -1
  107. package/dist/api-contracts/src/line/schema.d.ts +11 -12
  108. package/dist/api-contracts/src/line/schema.d.ts.map +1 -1
  109. package/dist/api-contracts/src/line/validation.d.ts +114 -103
  110. package/dist/api-contracts/src/line/validation.d.ts.map +1 -1
  111. package/dist/api-contracts/src/log-form/schema.d.ts +2 -3
  112. package/dist/api-contracts/src/log-form/schema.d.ts.map +1 -1
  113. package/dist/api-contracts/src/mail/account-contract.d.ts +174 -184
  114. package/dist/api-contracts/src/mail/account-contract.d.ts.map +1 -1
  115. package/dist/api-contracts/src/mail/email-engine-webhooks-events.contract.d.ts +3 -4
  116. package/dist/api-contracts/src/mail/email-engine-webhooks-events.contract.d.ts.map +1 -1
  117. package/dist/api-contracts/src/mail/mail-contract.d.ts +416 -461
  118. package/dist/api-contracts/src/mail/mail-contract.d.ts.map +1 -1
  119. package/dist/api-contracts/src/mail/mail-server-contract.d.ts +18 -24
  120. package/dist/api-contracts/src/mail/mail-server-contract.d.ts.map +1 -1
  121. package/dist/api-contracts/src/mail/message-contract.d.ts +107 -113
  122. package/dist/api-contracts/src/mail/message-contract.d.ts.map +1 -1
  123. package/dist/api-contracts/src/mail/room-contract.d.ts +65 -88
  124. package/dist/api-contracts/src/mail/room-contract.d.ts.map +1 -1
  125. package/dist/api-contracts/src/mail/schemas/message-validation.schema.d.ts +16 -16
  126. package/dist/api-contracts/src/mail/schemas/room-validation.schema.d.ts +18 -22
  127. package/dist/api-contracts/src/mail/schemas/room-validation.schema.d.ts.map +1 -1
  128. package/dist/api-contracts/src/mail/schemas/room.schema.d.ts +10 -15
  129. package/dist/api-contracts/src/mail/schemas/room.schema.d.ts.map +1 -1
  130. package/dist/api-contracts/src/messenger/index.d.ts +2060 -1575
  131. package/dist/api-contracts/src/messenger/index.d.ts.map +1 -1
  132. package/dist/api-contracts/src/messenger/validation.d.ts +86 -96
  133. package/dist/api-contracts/src/messenger/validation.d.ts.map +1 -1
  134. package/dist/api-contracts/src/notification/index.d.ts +12 -16
  135. package/dist/api-contracts/src/notification/index.d.ts.map +1 -1
  136. package/dist/api-contracts/src/permission/index.d.ts +17 -17
  137. package/dist/api-contracts/src/presence-status/index.d.ts +81 -84
  138. package/dist/api-contracts/src/presence-status/index.d.ts.map +1 -1
  139. package/dist/api-contracts/src/public-api/index.d.ts +196 -260
  140. package/dist/api-contracts/src/public-api/index.d.ts.map +1 -1
  141. package/dist/api-contracts/src/public-api/schema.d.ts +34 -48
  142. package/dist/api-contracts/src/public-api/schema.d.ts.map +1 -1
  143. package/dist/api-contracts/src/public-api/validation.d.ts +88 -113
  144. package/dist/api-contracts/src/public-api/validation.d.ts.map +1 -1
  145. package/dist/api-contracts/src/role/index.d.ts +83 -88
  146. package/dist/api-contracts/src/role/index.d.ts.map +1 -1
  147. package/dist/api-contracts/src/sms/index.d.ts +174 -155
  148. package/dist/api-contracts/src/sms/index.d.ts.map +1 -1
  149. package/dist/api-contracts/src/snippet/index.d.ts +54 -76
  150. package/dist/api-contracts/src/snippet/index.d.ts.map +1 -1
  151. package/dist/api-contracts/src/snippet/schema.d.ts +14 -21
  152. package/dist/api-contracts/src/snippet/schema.d.ts.map +1 -1
  153. package/dist/api-contracts/src/snippet/validation.d.ts +4 -5
  154. package/dist/api-contracts/src/snippet/validation.d.ts.map +1 -1
  155. package/dist/api-contracts/src/subscription/index.d.ts +49 -71
  156. package/dist/api-contracts/src/subscription/index.d.ts.map +1 -1
  157. package/dist/api-contracts/src/subscription/schema.d.ts +60 -90
  158. package/dist/api-contracts/src/subscription/schema.d.ts.map +1 -1
  159. package/dist/api-contracts/src/tag/index.d.ts +72 -79
  160. package/dist/api-contracts/src/tag/index.d.ts.map +1 -1
  161. package/dist/api-contracts/src/tag/schema.d.ts +2 -3
  162. package/dist/api-contracts/src/tag/schema.d.ts.map +1 -1
  163. package/dist/api-contracts/src/tag-group/schema.d.ts +2 -3
  164. package/dist/api-contracts/src/tag-group/schema.d.ts.map +1 -1
  165. package/dist/api-contracts/src/telegram/index.d.ts +2165 -1706
  166. package/dist/api-contracts/src/telegram/index.d.ts.map +1 -1
  167. package/dist/api-contracts/src/telephony-agent-presence-status/index.d.ts +54 -58
  168. package/dist/api-contracts/src/telephony-agent-presence-status/index.d.ts.map +1 -1
  169. package/dist/api-contracts/src/telephony-agent-presence-status/schema.d.ts +2 -3
  170. package/dist/api-contracts/src/telephony-agent-presence-status/schema.d.ts.map +1 -1
  171. package/dist/api-contracts/src/telephony-cdr/call-report.schema.d.ts +38 -38
  172. package/dist/api-contracts/src/telephony-cdr/index.d.ts +1137 -1202
  173. package/dist/api-contracts/src/telephony-cdr/index.d.ts.map +1 -1
  174. package/dist/api-contracts/src/telephony-cdr/schema.d.ts +166 -186
  175. package/dist/api-contracts/src/telephony-cdr/schema.d.ts.map +1 -1
  176. package/dist/api-contracts/src/telephony-cdr/validation.d.ts +45 -52
  177. package/dist/api-contracts/src/telephony-cdr/validation.d.ts.map +1 -1
  178. package/dist/api-contracts/src/telephony-extension/index.d.ts +21 -21
  179. package/dist/api-contracts/src/telephony-extension/schema.d.ts +4 -4
  180. package/dist/api-contracts/src/telephony-live-queue-call/schema.d.ts +2 -3
  181. package/dist/api-contracts/src/telephony-live-queue-call/schema.d.ts.map +1 -1
  182. package/dist/api-contracts/src/telephony-queue-call-count/schema.d.ts +2 -3
  183. package/dist/api-contracts/src/telephony-queue-call-count/schema.d.ts.map +1 -1
  184. package/dist/api-contracts/src/tenant/schema.d.ts +2 -3
  185. package/dist/api-contracts/src/tenant/schema.d.ts.map +1 -1
  186. package/dist/api-contracts/src/ticket/index.d.ts +626 -725
  187. package/dist/api-contracts/src/ticket/index.d.ts.map +1 -1
  188. package/dist/api-contracts/src/ticket/schema.d.ts +58 -81
  189. package/dist/api-contracts/src/ticket/schema.d.ts.map +1 -1
  190. package/dist/api-contracts/src/ticket/validation.d.ts +55 -57
  191. package/dist/api-contracts/src/ticket/validation.d.ts.map +1 -1
  192. package/dist/api-contracts/src/upload/index.d.ts +34 -36
  193. package/dist/api-contracts/src/upload/index.d.ts.map +1 -1
  194. package/dist/api-contracts/src/upload/schema.d.ts +2 -3
  195. package/dist/api-contracts/src/upload/schema.d.ts.map +1 -1
  196. package/dist/api-contracts/src/user/index.d.ts +108 -114
  197. package/dist/api-contracts/src/user/index.d.ts.map +1 -1
  198. package/dist/api-contracts/src/user/validation.d.ts +4 -5
  199. package/dist/api-contracts/src/user/validation.d.ts.map +1 -1
  200. package/dist/api-contracts/src/user-presence-status-log/index.d.ts +31 -32
  201. package/dist/api-contracts/src/user-presence-status-log/index.d.ts.map +1 -1
  202. package/dist/api-contracts/src/user-presence-status-log/schema.d.ts +2 -3
  203. package/dist/api-contracts/src/user-presence-status-log/schema.d.ts.map +1 -1
  204. package/dist/api-contracts/src/viber/index.d.ts +1799 -1340
  205. package/dist/api-contracts/src/viber/index.d.ts.map +1 -1
  206. package/dist/api-contracts/src/webchat/index.d.ts +8313 -6832
  207. package/dist/api-contracts/src/webchat/index.d.ts.map +1 -1
  208. package/dist/api-contracts/src/whatsapp/index.d.ts +1781 -1309
  209. package/dist/api-contracts/src/whatsapp/index.d.ts.map +1 -1
  210. package/dist/api-contracts/src/whatsapp/validation.d.ts +2 -3
  211. package/dist/api-contracts/src/whatsapp/validation.d.ts.map +1 -1
  212. package/dist/api-contracts/src/widget/index.d.ts +128 -139
  213. package/dist/api-contracts/src/widget/index.d.ts.map +1 -1
  214. package/dist/api-contracts/src/widget/schema.d.ts +2 -3
  215. package/dist/api-contracts/src/widget/schema.d.ts.map +1 -1
  216. package/dist/api-contracts/src/workflow-rule/index.d.ts +2013 -1696
  217. package/dist/api-contracts/src/workflow-rule/index.d.ts.map +1 -1
  218. package/dist/api-contracts/src/workflow-rule/schema.d.ts +2 -3
  219. package/dist/api-contracts/src/workflow-rule/schema.d.ts.map +1 -1
  220. package/dist/api-contracts/src/wrap-up-form/index.d.ts +147 -166
  221. package/dist/api-contracts/src/wrap-up-form/index.d.ts.map +1 -1
  222. package/dist/api-contracts/src/wrap-up-form/schema.d.ts +6 -9
  223. package/dist/api-contracts/src/wrap-up-form/schema.d.ts.map +1 -1
  224. package/dist/api-contracts/src/wrap-up-form/validation.d.ts +20 -21
  225. package/dist/api-contracts/src/wrap-up-form/validation.d.ts.map +1 -1
  226. package/dist/api-contracts/utils.d.ts +3 -4
  227. package/dist/api-contracts/utils.d.ts.map +1 -1
  228. package/dist/entities/src/enums/chat.d.ts +3 -0
  229. package/dist/entities/src/enums/chat.d.ts.map +1 -1
  230. package/dist/index.js +3245 -3172
  231. package/dist/index.js.map +1 -1
  232. package/dist/index.mjs +3245 -3172
  233. package/dist/index.mjs.map +1 -1
  234. package/package.json +1 -1
@@ -9,37 +9,24 @@ export declare const chatContract: {
9
9
  }, "strip", z.ZodTypeAny, {
10
10
  roomId: string;
11
11
  workflowId: string;
12
- queueId?: string | undefined;
13
12
  assigneeId?: string | undefined;
13
+ queueId?: string | undefined;
14
14
  }, {
15
15
  roomId: string;
16
16
  workflowId: string;
17
- queueId?: string | undefined;
18
17
  assigneeId?: string | undefined;
18
+ queueId?: string | undefined;
19
19
  }>;
20
20
  summary: "Update room assignee";
21
21
  method: "POST";
22
- path: "chat/room/assignee";
23
- headers: z.ZodObject<{
24
- 'x-tenant': z.ZodString;
25
- 'x-code': z.ZodOptional<z.ZodString>;
26
- }, "strip", z.ZodTypeAny, {
27
- 'x-tenant': string;
28
- 'x-code'?: string | undefined;
29
- }, {
30
- 'x-tenant': string;
31
- 'x-code'?: string | undefined;
32
- }>;
33
22
  responses: {
34
- 200: z.ZodObject<z.objectUtil.extendShape<{
23
+ 200: z.ZodObject<{
35
24
  requestId: z.ZodString;
36
- }, {
37
- data: z.ZodObject<z.objectUtil.extendShape<{
25
+ data: z.ZodObject<{
38
26
  id: z.ZodString;
39
27
  createdAt: z.ZodDate;
40
28
  updatedAt: z.ZodDate;
41
29
  deletedAt: z.ZodNullable<z.ZodDate>;
42
- }, {
43
30
  lastMessage: z.ZodString;
44
31
  handleTime: z.ZodNumber;
45
32
  closedAt: z.ZodDate;
@@ -86,14 +73,13 @@ export declare const chatContract: {
86
73
  notes: z.ZodNullable<z.ZodString>;
87
74
  contactProfile: z.ZodNullable<z.ZodString>;
88
75
  socialProfileUrl: z.ZodNullable<z.ZodString>;
89
- tags: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
76
+ tags: z.ZodArray<z.ZodObject<{
90
77
  id: z.ZodString;
91
78
  createdAt: z.ZodDate;
92
79
  updatedAt: z.ZodDate;
93
80
  deletedAt: z.ZodNullable<z.ZodDate>;
94
- }, {
95
81
  name: z.ZodString;
96
- }>, "strip", z.ZodTypeAny, {
82
+ }, "strip", z.ZodTypeAny, {
97
83
  name: string;
98
84
  id: string;
99
85
  createdAt: Date;
@@ -106,32 +92,29 @@ export declare const chatContract: {
106
92
  updatedAt: Date;
107
93
  deletedAt: Date | null;
108
94
  }>, "many">;
109
- company: z.ZodNullable<z.ZodObject<Omit<z.objectUtil.extendShape<{
95
+ company: z.ZodNullable<z.ZodObject<Omit<{
110
96
  id: z.ZodString;
111
97
  createdAt: z.ZodDate;
112
98
  updatedAt: z.ZodDate;
113
99
  deletedAt: z.ZodNullable<z.ZodDate>;
114
- }, {
115
100
  name: z.ZodOptional<z.ZodString>;
116
101
  phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
117
102
  address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
118
103
  industry: z.ZodOptional<z.ZodNullable<z.ZodString>>;
119
- customFields: z.ZodOptional<z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
104
+ customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
120
105
  id: z.ZodString;
121
106
  createdAt: z.ZodDate;
122
107
  updatedAt: z.ZodDate;
123
108
  deletedAt: z.ZodNullable<z.ZodDate>;
124
- }, {
125
109
  textValue: z.ZodNullable<z.ZodString>;
126
110
  booleanValue: z.ZodNullable<z.ZodBoolean>;
127
111
  numberValue: z.ZodNullable<z.ZodNumber>;
128
112
  dateValue: z.ZodNullable<z.ZodDate>;
129
- attribute: z.ZodObject<Omit<z.objectUtil.extendShape<{
113
+ attribute: z.ZodObject<Omit<{
130
114
  id: z.ZodString;
131
115
  createdAt: z.ZodDate;
132
116
  updatedAt: z.ZodDate;
133
117
  deletedAt: z.ZodNullable<z.ZodDate>;
134
- }, {
135
118
  systemName: z.ZodString;
136
119
  displayName: z.ZodString;
137
120
  type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
@@ -140,14 +123,13 @@ export declare const chatContract: {
140
123
  isArchived: z.ZodBoolean;
141
124
  isRequired: z.ZodBoolean;
142
125
  isUnique: z.ZodBoolean;
143
- options: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
144
- label: z.ZodString;
126
+ options: z.ZodArray<z.ZodObject<{
127
+ position: z.ZodNumber;
145
128
  value: z.ZodString;
129
+ label: z.ZodString;
146
130
  isDefault: z.ZodBoolean;
147
- position: z.ZodNumber;
148
- }, {
149
131
  id: z.ZodString;
150
- }>, "strip", z.ZodTypeAny, {
132
+ }, "strip", z.ZodTypeAny, {
151
133
  id: string;
152
134
  position: number;
153
135
  value: string;
@@ -160,15 +142,14 @@ export declare const chatContract: {
160
142
  label: string;
161
143
  isDefault: boolean;
162
144
  }>, "many">;
163
- group: z.ZodObject<z.objectUtil.extendShape<{
145
+ group: z.ZodObject<{
164
146
  id: z.ZodString;
165
147
  createdAt: z.ZodDate;
166
148
  updatedAt: z.ZodDate;
167
149
  deletedAt: z.ZodNullable<z.ZodDate>;
168
- }, {
169
150
  systemName: z.ZodString;
170
151
  displayName: z.ZodString;
171
- }>, "strip", z.ZodTypeAny, {
152
+ }, "strip", z.ZodTypeAny, {
172
153
  id: string;
173
154
  createdAt: Date;
174
155
  updatedAt: Date;
@@ -183,7 +164,7 @@ export declare const chatContract: {
183
164
  systemName: string;
184
165
  displayName: string;
185
166
  }>;
186
- }>, "options" | "group">, "strip", z.ZodTypeAny, {
167
+ }, "options" | "group">, "strip", z.ZodTypeAny, {
187
168
  type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
188
169
  id: string;
189
170
  position: number;
@@ -210,7 +191,7 @@ export declare const chatContract: {
210
191
  isRequired: boolean;
211
192
  isUnique: boolean;
212
193
  }>;
213
- }>, "strip", z.ZodTypeAny, {
194
+ }, "strip", z.ZodTypeAny, {
214
195
  id: string;
215
196
  createdAt: Date;
216
197
  updatedAt: Date;
@@ -257,7 +238,7 @@ export declare const chatContract: {
257
238
  numberValue: number | null;
258
239
  dateValue: Date | null;
259
240
  }>, "many">>;
260
- }>, "customFields">, "strip", z.ZodTypeAny, {
241
+ }, "customFields">, "strip", z.ZodTypeAny, {
261
242
  id: string;
262
243
  createdAt: Date;
263
244
  updatedAt: Date;
@@ -338,12 +319,11 @@ export declare const chatContract: {
338
319
  booleanValue: z.ZodNullable<z.ZodBoolean>;
339
320
  numberValue: z.ZodNullable<z.ZodNumber>;
340
321
  dateValue: z.ZodNullable<z.ZodDate>;
341
- attribute: z.ZodObject<Omit<z.objectUtil.extendShape<{
322
+ attribute: z.ZodObject<Omit<{
342
323
  id: z.ZodString;
343
324
  createdAt: z.ZodDate;
344
325
  updatedAt: z.ZodDate;
345
326
  deletedAt: z.ZodNullable<z.ZodDate>;
346
- }, {
347
327
  systemName: z.ZodString;
348
328
  displayName: z.ZodString;
349
329
  type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
@@ -352,14 +332,13 @@ export declare const chatContract: {
352
332
  isArchived: z.ZodBoolean;
353
333
  isRequired: z.ZodBoolean;
354
334
  isUnique: z.ZodBoolean;
355
- options: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
356
- label: z.ZodString;
335
+ options: z.ZodArray<z.ZodObject<{
336
+ position: z.ZodNumber;
357
337
  value: z.ZodString;
338
+ label: z.ZodString;
358
339
  isDefault: z.ZodBoolean;
359
- position: z.ZodNumber;
360
- }, {
361
340
  id: z.ZodString;
362
- }>, "strip", z.ZodTypeAny, {
341
+ }, "strip", z.ZodTypeAny, {
363
342
  id: string;
364
343
  position: number;
365
344
  value: string;
@@ -372,15 +351,14 @@ export declare const chatContract: {
372
351
  label: string;
373
352
  isDefault: boolean;
374
353
  }>, "many">;
375
- group: z.ZodObject<z.objectUtil.extendShape<{
354
+ group: z.ZodObject<{
376
355
  id: z.ZodString;
377
356
  createdAt: z.ZodDate;
378
357
  updatedAt: z.ZodDate;
379
358
  deletedAt: z.ZodNullable<z.ZodDate>;
380
- }, {
381
359
  systemName: z.ZodString;
382
360
  displayName: z.ZodString;
383
- }>, "strip", z.ZodTypeAny, {
361
+ }, "strip", z.ZodTypeAny, {
384
362
  id: string;
385
363
  createdAt: Date;
386
364
  updatedAt: Date;
@@ -395,7 +373,7 @@ export declare const chatContract: {
395
373
  systemName: string;
396
374
  displayName: string;
397
375
  }>;
398
- }>, "options" | "group">, "strip", z.ZodTypeAny, {
376
+ }, "options" | "group">, "strip", z.ZodTypeAny, {
399
377
  type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
400
378
  id: string;
401
379
  position: number;
@@ -422,19 +400,18 @@ export declare const chatContract: {
422
400
  isRequired: boolean;
423
401
  isUnique: boolean;
424
402
  }>;
425
- uploads: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
403
+ uploads: z.ZodArray<z.ZodObject<{
426
404
  id: z.ZodString;
427
405
  createdAt: z.ZodDate;
428
406
  updatedAt: z.ZodDate;
429
407
  deletedAt: z.ZodNullable<z.ZodDate>;
430
- }, {
431
408
  bucketName: z.ZodString;
432
409
  fileName: z.ZodString;
433
410
  fileSize: z.ZodNumber;
434
411
  fileKey: z.ZodString;
435
412
  fileUrl: z.ZodNullable<z.ZodString>;
436
413
  status: z.ZodNullable<z.ZodString>;
437
- }>, "strip", z.ZodTypeAny, {
414
+ }, "strip", z.ZodTypeAny, {
438
415
  id: string;
439
416
  status: string | null;
440
417
  createdAt: Date;
@@ -1539,24 +1516,27 @@ export declare const chatContract: {
1539
1516
  channelId: z.ZodOptional<z.ZodString>;
1540
1517
  status: z.ZodOptional<z.ZodEnum<["pending", "active"]>>;
1541
1518
  apiKey: z.ZodOptional<z.ZodString>;
1519
+ tier: z.ZodOptional<z.ZodEnum<["basic", "regular", "premium"]>>;
1542
1520
  }, "strip", z.ZodTypeAny, {
1543
1521
  email: string;
1544
1522
  wabaExternalId: string;
1545
1523
  phoneNumberId: string;
1546
- status?: "active" | "pending" | undefined;
1547
- channelId?: string | undefined;
1548
1524
  wabaBusinessId?: string | undefined;
1549
1525
  clientId?: string | undefined;
1526
+ channelId?: string | undefined;
1527
+ status?: "active" | "pending" | undefined;
1550
1528
  apiKey?: string | undefined;
1529
+ tier?: "basic" | "regular" | "premium" | undefined;
1551
1530
  }, {
1552
1531
  email: string;
1553
1532
  wabaExternalId: string;
1554
1533
  phoneNumberId: string;
1555
- status?: "active" | "pending" | undefined;
1556
- channelId?: string | undefined;
1557
1534
  wabaBusinessId?: string | undefined;
1558
1535
  clientId?: string | undefined;
1536
+ channelId?: string | undefined;
1537
+ status?: "active" | "pending" | undefined;
1559
1538
  apiKey?: string | undefined;
1539
+ tier?: "basic" | "regular" | "premium" | undefined;
1560
1540
  }>>;
1561
1541
  vonageCredentials: z.ZodOptional<z.ZodObject<{
1562
1542
  mobileNumber: z.ZodString;
@@ -1577,19 +1557,20 @@ export declare const chatContract: {
1577
1557
  name: string;
1578
1558
  id: string;
1579
1559
  accessToken?: string | undefined;
1560
+ channelSecret?: string | undefined;
1561
+ additionalCredentials?: any;
1562
+ senderId?: string | undefined;
1580
1563
  whatsapp?: {
1581
1564
  email: string;
1582
1565
  wabaExternalId: string;
1583
1566
  phoneNumberId: string;
1584
- status?: "active" | "pending" | undefined;
1585
- channelId?: string | undefined;
1586
1567
  wabaBusinessId?: string | undefined;
1587
1568
  clientId?: string | undefined;
1569
+ channelId?: string | undefined;
1570
+ status?: "active" | "pending" | undefined;
1588
1571
  apiKey?: string | undefined;
1572
+ tier?: "basic" | "regular" | "premium" | undefined;
1589
1573
  } | undefined;
1590
- additionalCredentials?: any;
1591
- channelSecret?: string | undefined;
1592
- senderId?: string | undefined;
1593
1574
  vonageCredentials?: {
1594
1575
  apiKey: string;
1595
1576
  mobileNumber: string;
@@ -1601,19 +1582,20 @@ export declare const chatContract: {
1601
1582
  name: string;
1602
1583
  id: string;
1603
1584
  accessToken?: string | undefined;
1585
+ channelSecret?: string | undefined;
1586
+ additionalCredentials?: any;
1587
+ senderId?: string | undefined;
1604
1588
  whatsapp?: {
1605
1589
  email: string;
1606
1590
  wabaExternalId: string;
1607
1591
  phoneNumberId: string;
1608
- status?: "active" | "pending" | undefined;
1609
- channelId?: string | undefined;
1610
1592
  wabaBusinessId?: string | undefined;
1611
1593
  clientId?: string | undefined;
1594
+ channelId?: string | undefined;
1595
+ status?: "active" | "pending" | undefined;
1612
1596
  apiKey?: string | undefined;
1597
+ tier?: "basic" | "regular" | "premium" | undefined;
1613
1598
  } | undefined;
1614
- additionalCredentials?: any;
1615
- channelSecret?: string | undefined;
1616
- senderId?: string | undefined;
1617
1599
  vonageCredentials?: {
1618
1600
  apiKey: string;
1619
1601
  mobileNumber: string;
@@ -1859,19 +1841,20 @@ export declare const chatContract: {
1859
1841
  name: string;
1860
1842
  id: string;
1861
1843
  accessToken?: string | undefined;
1844
+ channelSecret?: string | undefined;
1845
+ additionalCredentials?: any;
1846
+ senderId?: string | undefined;
1862
1847
  whatsapp?: {
1863
1848
  email: string;
1864
1849
  wabaExternalId: string;
1865
1850
  phoneNumberId: string;
1866
- status?: "active" | "pending" | undefined;
1867
- channelId?: string | undefined;
1868
1851
  wabaBusinessId?: string | undefined;
1869
1852
  clientId?: string | undefined;
1853
+ channelId?: string | undefined;
1854
+ status?: "active" | "pending" | undefined;
1870
1855
  apiKey?: string | undefined;
1856
+ tier?: "basic" | "regular" | "premium" | undefined;
1871
1857
  } | undefined;
1872
- additionalCredentials?: any;
1873
- channelSecret?: string | undefined;
1874
- senderId?: string | undefined;
1875
1858
  vonageCredentials?: {
1876
1859
  apiKey: string;
1877
1860
  mobileNumber: string;
@@ -1948,19 +1931,20 @@ export declare const chatContract: {
1948
1931
  name: string;
1949
1932
  id: string;
1950
1933
  accessToken?: string | undefined;
1934
+ channelSecret?: string | undefined;
1935
+ additionalCredentials?: any;
1936
+ senderId?: string | undefined;
1951
1937
  whatsapp?: {
1952
1938
  email: string;
1953
1939
  wabaExternalId: string;
1954
1940
  phoneNumberId: string;
1955
- status?: "active" | "pending" | undefined;
1956
- channelId?: string | undefined;
1957
1941
  wabaBusinessId?: string | undefined;
1958
1942
  clientId?: string | undefined;
1943
+ channelId?: string | undefined;
1944
+ status?: "active" | "pending" | undefined;
1959
1945
  apiKey?: string | undefined;
1946
+ tier?: "basic" | "regular" | "premium" | undefined;
1960
1947
  } | undefined;
1961
- additionalCredentials?: any;
1962
- channelSecret?: string | undefined;
1963
- senderId?: string | undefined;
1964
1948
  vonageCredentials?: {
1965
1949
  apiKey: string;
1966
1950
  mobileNumber: string;
@@ -2030,40 +2014,37 @@ export declare const chatContract: {
2030
2014
  integrationId: string;
2031
2015
  } | null;
2032
2016
  }>;
2033
- cxlog: z.ZodObject<z.objectUtil.extendShape<{
2017
+ cxlog: z.ZodObject<{
2034
2018
  id: z.ZodString;
2019
+ channel: z.ZodNullable<z.ZodString>;
2020
+ direction: z.ZodNullable<z.ZodString>;
2035
2021
  createdAt: z.ZodDate;
2036
2022
  updatedAt: z.ZodDate;
2037
2023
  deletedAt: z.ZodNullable<z.ZodDate>;
2038
- }, {
2039
- caseId: z.ZodNumber;
2040
2024
  entityId: z.ZodString;
2041
- entityName: z.ZodString;
2042
- contactId: z.ZodNullable<z.ZodString>;
2043
- channel: z.ZodNullable<z.ZodString>;
2044
2025
  queueId: z.ZodNullable<z.ZodString>;
2026
+ contactId: z.ZodNullable<z.ZodString>;
2027
+ caseId: z.ZodNumber;
2028
+ entityName: z.ZodString;
2045
2029
  agentId: z.ZodNullable<z.ZodString>;
2046
- direction: z.ZodNullable<z.ZodString>;
2047
2030
  startedDate: z.ZodNullable<z.ZodDate>;
2048
2031
  handledTime: z.ZodNullable<z.ZodNumber>;
2049
2032
  firstResponseTime: z.ZodNullable<z.ZodNumber>;
2050
- wrapUpForm: z.ZodNullable<z.ZodObject<z.objectUtil.extendShape<{
2033
+ wrapUpForm: z.ZodNullable<z.ZodObject<{
2051
2034
  id: z.ZodString;
2052
2035
  createdAt: z.ZodDate;
2053
2036
  updatedAt: z.ZodDate;
2054
2037
  deletedAt: z.ZodNullable<z.ZodDate>;
2055
- }, {
2056
2038
  note: z.ZodNullable<z.ZodString>;
2057
2039
  disposition: z.ZodNullable<z.ZodString>;
2058
2040
  type: z.ZodString;
2059
- tags: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
2041
+ tags: z.ZodArray<z.ZodObject<{
2060
2042
  id: z.ZodString;
2061
2043
  createdAt: z.ZodDate;
2062
2044
  updatedAt: z.ZodDate;
2063
2045
  deletedAt: z.ZodNullable<z.ZodDate>;
2064
- }, {
2065
2046
  name: z.ZodString;
2066
- }>, "strip", z.ZodTypeAny, {
2047
+ }, "strip", z.ZodTypeAny, {
2067
2048
  name: string;
2068
2049
  id: string;
2069
2050
  createdAt: Date;
@@ -2076,12 +2057,11 @@ export declare const chatContract: {
2076
2057
  updatedAt: Date;
2077
2058
  deletedAt: Date | null;
2078
2059
  }>, "many">;
2079
- categories: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
2060
+ categories: z.ZodArray<z.ZodObject<{
2080
2061
  id: z.ZodString;
2081
2062
  createdAt: z.ZodDate;
2082
2063
  updatedAt: z.ZodDate;
2083
2064
  deletedAt: z.ZodNullable<z.ZodDate>;
2084
- }, {
2085
2065
  value: z.ZodString;
2086
2066
  level: z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
2087
2067
  parentId: z.ZodNullable<z.ZodString>;
@@ -2134,7 +2114,7 @@ export declare const chatContract: {
2134
2114
  childCategoryList: any[];
2135
2115
  }[];
2136
2116
  }>, "many">;
2137
- }>, "strip", z.ZodTypeAny, {
2117
+ }, "strip", z.ZodTypeAny, {
2138
2118
  id: string;
2139
2119
  value: string;
2140
2120
  createdAt: Date;
@@ -2213,7 +2193,7 @@ export declare const chatContract: {
2213
2193
  numberValue: number | null;
2214
2194
  dateValue: Date | null;
2215
2195
  }>, "many">>>;
2216
- }>, "strip", z.ZodTypeAny, {
2196
+ }, "strip", z.ZodTypeAny, {
2217
2197
  type: string;
2218
2198
  id: string;
2219
2199
  disposition: string | null;
@@ -2316,7 +2296,70 @@ export declare const chatContract: {
2316
2296
  dateValue: Date | null;
2317
2297
  }[] | null | undefined;
2318
2298
  }>>;
2319
- }>, "strip", z.ZodTypeAny, {
2299
+ holdLogs: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
2300
+ id: z.ZodString;
2301
+ createdAt: z.ZodDate;
2302
+ updatedAt: z.ZodDate;
2303
+ deletedAt: z.ZodNullable<z.ZodDate>;
2304
+ startedAt: z.ZodString;
2305
+ endedAt: z.ZodNullable<z.ZodString>;
2306
+ duration: z.ZodNullable<z.ZodNumber>;
2307
+ holdLabel: z.ZodObject<{
2308
+ id: z.ZodString;
2309
+ createdAt: z.ZodDate;
2310
+ updatedAt: z.ZodDate;
2311
+ deletedAt: z.ZodNullable<z.ZodDate>;
2312
+ name: z.ZodString;
2313
+ position: z.ZodNumber;
2314
+ }, "strip", z.ZodTypeAny, {
2315
+ name: string;
2316
+ id: string;
2317
+ position: number;
2318
+ createdAt: Date;
2319
+ updatedAt: Date;
2320
+ deletedAt: Date | null;
2321
+ }, {
2322
+ name: string;
2323
+ id: string;
2324
+ position: number;
2325
+ createdAt: Date;
2326
+ updatedAt: Date;
2327
+ deletedAt: Date | null;
2328
+ }>;
2329
+ }, "strip", z.ZodTypeAny, {
2330
+ id: string;
2331
+ createdAt: Date;
2332
+ updatedAt: Date;
2333
+ deletedAt: Date | null;
2334
+ startedAt: string;
2335
+ endedAt: string | null;
2336
+ duration: number | null;
2337
+ holdLabel: {
2338
+ name: string;
2339
+ id: string;
2340
+ position: number;
2341
+ createdAt: Date;
2342
+ updatedAt: Date;
2343
+ deletedAt: Date | null;
2344
+ };
2345
+ }, {
2346
+ id: string;
2347
+ createdAt: Date;
2348
+ updatedAt: Date;
2349
+ deletedAt: Date | null;
2350
+ startedAt: string;
2351
+ endedAt: string | null;
2352
+ duration: number | null;
2353
+ holdLabel: {
2354
+ name: string;
2355
+ id: string;
2356
+ position: number;
2357
+ createdAt: Date;
2358
+ updatedAt: Date;
2359
+ deletedAt: Date | null;
2360
+ };
2361
+ }>, "many">>>;
2362
+ }, "strip", z.ZodTypeAny, {
2320
2363
  id: string;
2321
2364
  channel: string | null;
2322
2365
  direction: string | null;
@@ -2384,6 +2427,23 @@ export declare const chatContract: {
2384
2427
  dateValue: Date | null;
2385
2428
  }[] | null | undefined;
2386
2429
  } | null;
2430
+ holdLogs?: {
2431
+ id: string;
2432
+ createdAt: Date;
2433
+ updatedAt: Date;
2434
+ deletedAt: Date | null;
2435
+ startedAt: string;
2436
+ endedAt: string | null;
2437
+ duration: number | null;
2438
+ holdLabel: {
2439
+ name: string;
2440
+ id: string;
2441
+ position: number;
2442
+ createdAt: Date;
2443
+ updatedAt: Date;
2444
+ deletedAt: Date | null;
2445
+ };
2446
+ }[] | null | undefined;
2387
2447
  }, {
2388
2448
  id: string;
2389
2449
  channel: string | null;
@@ -2452,17 +2512,33 @@ export declare const chatContract: {
2452
2512
  dateValue: Date | null;
2453
2513
  }[] | null | undefined;
2454
2514
  } | null;
2515
+ holdLogs?: {
2516
+ id: string;
2517
+ createdAt: Date;
2518
+ updatedAt: Date;
2519
+ deletedAt: Date | null;
2520
+ startedAt: string;
2521
+ endedAt: string | null;
2522
+ duration: number | null;
2523
+ holdLabel: {
2524
+ name: string;
2525
+ id: string;
2526
+ position: number;
2527
+ createdAt: Date;
2528
+ updatedAt: Date;
2529
+ deletedAt: Date | null;
2530
+ };
2531
+ }[] | null | undefined;
2455
2532
  }>;
2456
- workflowRule: z.ZodObject<z.objectUtil.extendShape<{
2533
+ workflowRule: z.ZodObject<{
2457
2534
  id: z.ZodString;
2458
2535
  createdAt: z.ZodDate;
2459
2536
  updatedAt: z.ZodDate;
2460
2537
  deletedAt: z.ZodNullable<z.ZodDate>;
2461
- }, {
2462
2538
  name: z.ZodString;
2463
2539
  isActive: z.ZodBoolean;
2464
2540
  type: z.ZodString;
2465
- }>, "strip", z.ZodTypeAny, {
2541
+ }, "strip", z.ZodTypeAny, {
2466
2542
  name: string;
2467
2543
  type: string;
2468
2544
  id: string;
@@ -2480,7 +2556,7 @@ export declare const chatContract: {
2480
2556
  isActive: boolean;
2481
2557
  }>;
2482
2558
  automationQueueId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2483
- }>, "strip", z.ZodTypeAny, {
2559
+ }, "strip", z.ZodTypeAny, {
2484
2560
  id: string;
2485
2561
  channel: {
2486
2562
  name: string;
@@ -2490,19 +2566,20 @@ export declare const chatContract: {
2490
2566
  name: string;
2491
2567
  id: string;
2492
2568
  accessToken?: string | undefined;
2569
+ channelSecret?: string | undefined;
2570
+ additionalCredentials?: any;
2571
+ senderId?: string | undefined;
2493
2572
  whatsapp?: {
2494
2573
  email: string;
2495
2574
  wabaExternalId: string;
2496
2575
  phoneNumberId: string;
2497
- status?: "active" | "pending" | undefined;
2498
- channelId?: string | undefined;
2499
2576
  wabaBusinessId?: string | undefined;
2500
2577
  clientId?: string | undefined;
2578
+ channelId?: string | undefined;
2579
+ status?: "active" | "pending" | undefined;
2501
2580
  apiKey?: string | undefined;
2581
+ tier?: "basic" | "regular" | "premium" | undefined;
2502
2582
  } | undefined;
2503
- additionalCredentials?: any;
2504
- channelSecret?: string | undefined;
2505
- senderId?: string | undefined;
2506
2583
  vonageCredentials?: {
2507
2584
  apiKey: string;
2508
2585
  mobileNumber: string;
@@ -2869,6 +2946,23 @@ export declare const chatContract: {
2869
2946
  dateValue: Date | null;
2870
2947
  }[] | null | undefined;
2871
2948
  } | null;
2949
+ holdLogs?: {
2950
+ id: string;
2951
+ createdAt: Date;
2952
+ updatedAt: Date;
2953
+ deletedAt: Date | null;
2954
+ startedAt: string;
2955
+ endedAt: string | null;
2956
+ duration: number | null;
2957
+ holdLabel: {
2958
+ name: string;
2959
+ id: string;
2960
+ position: number;
2961
+ createdAt: Date;
2962
+ updatedAt: Date;
2963
+ deletedAt: Date | null;
2964
+ };
2965
+ }[] | null | undefined;
2872
2966
  };
2873
2967
  workflowRule: {
2874
2968
  name: string;
@@ -2890,19 +2984,20 @@ export declare const chatContract: {
2890
2984
  name: string;
2891
2985
  id: string;
2892
2986
  accessToken?: string | undefined;
2987
+ channelSecret?: string | undefined;
2988
+ additionalCredentials?: any;
2989
+ senderId?: string | undefined;
2893
2990
  whatsapp?: {
2894
2991
  email: string;
2895
2992
  wabaExternalId: string;
2896
2993
  phoneNumberId: string;
2897
- status?: "active" | "pending" | undefined;
2898
- channelId?: string | undefined;
2899
2994
  wabaBusinessId?: string | undefined;
2900
2995
  clientId?: string | undefined;
2996
+ channelId?: string | undefined;
2997
+ status?: "active" | "pending" | undefined;
2901
2998
  apiKey?: string | undefined;
2999
+ tier?: "basic" | "regular" | "premium" | undefined;
2902
3000
  } | undefined;
2903
- additionalCredentials?: any;
2904
- channelSecret?: string | undefined;
2905
- senderId?: string | undefined;
2906
3001
  vonageCredentials?: {
2907
3002
  apiKey: string;
2908
3003
  mobileNumber: string;
@@ -3269,6 +3364,23 @@ export declare const chatContract: {
3269
3364
  dateValue: Date | null;
3270
3365
  }[] | null | undefined;
3271
3366
  } | null;
3367
+ holdLogs?: {
3368
+ id: string;
3369
+ createdAt: Date;
3370
+ updatedAt: Date;
3371
+ deletedAt: Date | null;
3372
+ startedAt: string;
3373
+ endedAt: string | null;
3374
+ duration: number | null;
3375
+ holdLabel: {
3376
+ name: string;
3377
+ id: string;
3378
+ position: number;
3379
+ createdAt: Date;
3380
+ updatedAt: Date;
3381
+ deletedAt: Date | null;
3382
+ };
3383
+ }[] | null | undefined;
3272
3384
  };
3273
3385
  workflowRule: {
3274
3386
  name: string;
@@ -3281,7 +3393,7 @@ export declare const chatContract: {
3281
3393
  };
3282
3394
  automationQueueId?: string | null | undefined;
3283
3395
  }>;
3284
- }>, "strip", z.ZodTypeAny, {
3396
+ }, "strip", z.ZodTypeAny, {
3285
3397
  data: {
3286
3398
  id: string;
3287
3399
  channel: {
@@ -3292,19 +3404,20 @@ export declare const chatContract: {
3292
3404
  name: string;
3293
3405
  id: string;
3294
3406
  accessToken?: string | undefined;
3407
+ channelSecret?: string | undefined;
3408
+ additionalCredentials?: any;
3409
+ senderId?: string | undefined;
3295
3410
  whatsapp?: {
3296
3411
  email: string;
3297
3412
  wabaExternalId: string;
3298
3413
  phoneNumberId: string;
3299
- status?: "active" | "pending" | undefined;
3300
- channelId?: string | undefined;
3301
3414
  wabaBusinessId?: string | undefined;
3302
3415
  clientId?: string | undefined;
3416
+ channelId?: string | undefined;
3417
+ status?: "active" | "pending" | undefined;
3303
3418
  apiKey?: string | undefined;
3419
+ tier?: "basic" | "regular" | "premium" | undefined;
3304
3420
  } | undefined;
3305
- additionalCredentials?: any;
3306
- channelSecret?: string | undefined;
3307
- senderId?: string | undefined;
3308
3421
  vonageCredentials?: {
3309
3422
  apiKey: string;
3310
3423
  mobileNumber: string;
@@ -3671,6 +3784,23 @@ export declare const chatContract: {
3671
3784
  dateValue: Date | null;
3672
3785
  }[] | null | undefined;
3673
3786
  } | null;
3787
+ holdLogs?: {
3788
+ id: string;
3789
+ createdAt: Date;
3790
+ updatedAt: Date;
3791
+ deletedAt: Date | null;
3792
+ startedAt: string;
3793
+ endedAt: string | null;
3794
+ duration: number | null;
3795
+ holdLabel: {
3796
+ name: string;
3797
+ id: string;
3798
+ position: number;
3799
+ createdAt: Date;
3800
+ updatedAt: Date;
3801
+ deletedAt: Date | null;
3802
+ };
3803
+ }[] | null | undefined;
3674
3804
  };
3675
3805
  workflowRule: {
3676
3806
  name: string;
@@ -3695,19 +3825,20 @@ export declare const chatContract: {
3695
3825
  name: string;
3696
3826
  id: string;
3697
3827
  accessToken?: string | undefined;
3828
+ channelSecret?: string | undefined;
3829
+ additionalCredentials?: any;
3830
+ senderId?: string | undefined;
3698
3831
  whatsapp?: {
3699
3832
  email: string;
3700
3833
  wabaExternalId: string;
3701
3834
  phoneNumberId: string;
3702
- status?: "active" | "pending" | undefined;
3703
- channelId?: string | undefined;
3704
3835
  wabaBusinessId?: string | undefined;
3705
3836
  clientId?: string | undefined;
3837
+ channelId?: string | undefined;
3838
+ status?: "active" | "pending" | undefined;
3706
3839
  apiKey?: string | undefined;
3840
+ tier?: "basic" | "regular" | "premium" | undefined;
3707
3841
  } | undefined;
3708
- additionalCredentials?: any;
3709
- channelSecret?: string | undefined;
3710
- senderId?: string | undefined;
3711
3842
  vonageCredentials?: {
3712
3843
  apiKey: string;
3713
3844
  mobileNumber: string;
@@ -4074,6 +4205,23 @@ export declare const chatContract: {
4074
4205
  dateValue: Date | null;
4075
4206
  }[] | null | undefined;
4076
4207
  } | null;
4208
+ holdLogs?: {
4209
+ id: string;
4210
+ createdAt: Date;
4211
+ updatedAt: Date;
4212
+ deletedAt: Date | null;
4213
+ startedAt: string;
4214
+ endedAt: string | null;
4215
+ duration: number | null;
4216
+ holdLabel: {
4217
+ name: string;
4218
+ id: string;
4219
+ position: number;
4220
+ createdAt: Date;
4221
+ updatedAt: Date;
4222
+ deletedAt: Date | null;
4223
+ };
4224
+ }[] | null | undefined;
4077
4225
  };
4078
4226
  workflowRule: {
4079
4227
  name: string;
@@ -4099,8 +4247,19 @@ export declare const chatContract: {
4099
4247
  error?: any;
4100
4248
  }>;
4101
4249
  };
4102
- };
4103
- solveRoom: {
4250
+ path: "chat/room/assignee";
4251
+ headers: z.ZodObject<{
4252
+ 'x-tenant': z.ZodString;
4253
+ 'x-code': z.ZodOptional<z.ZodString>;
4254
+ }, "strip", z.ZodTypeAny, {
4255
+ 'x-tenant': string;
4256
+ 'x-code'?: string | undefined;
4257
+ }, {
4258
+ 'x-tenant': string;
4259
+ 'x-code'?: string | undefined;
4260
+ }>;
4261
+ };
4262
+ solveRoom: {
4104
4263
  body: z.ZodObject<{
4105
4264
  roomId: z.ZodString;
4106
4265
  disposition: z.ZodString;
@@ -4116,633 +4275,1083 @@ export declare const chatContract: {
4116
4275
  }>;
4117
4276
  summary: "Solve room";
4118
4277
  method: "POST";
4119
- path: "chat/room/solve";
4120
- headers: z.ZodObject<{
4121
- 'x-tenant': z.ZodString;
4122
- 'x-code': z.ZodOptional<z.ZodString>;
4123
- }, "strip", z.ZodTypeAny, {
4124
- 'x-tenant': string;
4125
- 'x-code'?: string | undefined;
4126
- }, {
4127
- 'x-tenant': string;
4128
- 'x-code'?: string | undefined;
4129
- }>;
4130
4278
  responses: {
4131
- 200: z.ZodObject<z.objectUtil.extendShape<{
4279
+ 200: z.ZodObject<{
4132
4280
  requestId: z.ZodString;
4133
- }, {
4134
- data: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
4281
+ data: z.ZodObject<{
4135
4282
  id: z.ZodString;
4136
- createdAt: z.ZodDate;
4137
- updatedAt: z.ZodDate;
4138
- deletedAt: z.ZodNullable<z.ZodDate>;
4139
- }, {
4140
- lastMessage: z.ZodString;
4141
- handleTime: z.ZodNumber;
4142
- closedAt: z.ZodDate;
4143
- lastMessageAt: z.ZodNullable<z.ZodDate>;
4144
- status: z.ZodNumber;
4145
- unreadCount: z.ZodNumber;
4146
- firstResponseAt: z.ZodDate;
4147
- firstResponseTime: z.ZodNumber;
4148
- isLatest: z.ZodBoolean;
4149
- isBotRoom: z.ZodBoolean;
4150
- direction: z.ZodEnum<["incoming", "outgoing", "system"]>;
4151
- platformContact: z.ZodObject<{
4283
+ channel: z.ZodObject<{
4152
4284
  id: z.ZodString;
4153
4285
  createdAt: z.ZodDate;
4154
4286
  updatedAt: z.ZodDate;
4155
4287
  deletedAt: z.ZodNullable<z.ZodDate>;
4156
- channelId: z.ZodString;
4157
- socialPlatformId: z.ZodString;
4288
+ name: z.ZodString;
4158
4289
  type: z.ZodEnum<["whatsapp", "messenger", "telegram", "instagram", "line", "viber", "kakao", "shopee", "lazada", "webchat", "facebook_feed", "sms_vonage"]>;
4159
4290
  metadata: z.ZodObject<{
4160
4291
  id: z.ZodString;
4161
4292
  name: z.ZodString;
4162
- picture: z.ZodOptional<z.ZodString>;
4163
- additionalCredentials: z.ZodAny;
4293
+ accessToken: z.ZodOptional<z.ZodString>;
4294
+ channelSecret: z.ZodOptional<z.ZodString>;
4295
+ additionalCredentials: z.ZodOptional<z.ZodAny>;
4296
+ senderId: z.ZodOptional<z.ZodString>;
4297
+ whatsapp: z.ZodOptional<z.ZodObject<{
4298
+ wabaBusinessId: z.ZodOptional<z.ZodString>;
4299
+ wabaExternalId: z.ZodString;
4300
+ phoneNumberId: z.ZodString;
4301
+ email: z.ZodString;
4302
+ clientId: z.ZodOptional<z.ZodString>;
4303
+ channelId: z.ZodOptional<z.ZodString>;
4304
+ status: z.ZodOptional<z.ZodEnum<["pending", "active"]>>;
4305
+ apiKey: z.ZodOptional<z.ZodString>;
4306
+ tier: z.ZodOptional<z.ZodEnum<["basic", "regular", "premium"]>>;
4307
+ }, "strip", z.ZodTypeAny, {
4308
+ email: string;
4309
+ wabaExternalId: string;
4310
+ phoneNumberId: string;
4311
+ wabaBusinessId?: string | undefined;
4312
+ clientId?: string | undefined;
4313
+ channelId?: string | undefined;
4314
+ status?: "active" | "pending" | undefined;
4315
+ apiKey?: string | undefined;
4316
+ tier?: "basic" | "regular" | "premium" | undefined;
4317
+ }, {
4318
+ email: string;
4319
+ wabaExternalId: string;
4320
+ phoneNumberId: string;
4321
+ wabaBusinessId?: string | undefined;
4322
+ clientId?: string | undefined;
4323
+ channelId?: string | undefined;
4324
+ status?: "active" | "pending" | undefined;
4325
+ apiKey?: string | undefined;
4326
+ tier?: "basic" | "regular" | "premium" | undefined;
4327
+ }>>;
4328
+ vonageCredentials: z.ZodOptional<z.ZodObject<{
4329
+ mobileNumber: z.ZodString;
4330
+ apiKey: z.ZodString;
4331
+ apiSecret: z.ZodString;
4332
+ }, "strip", z.ZodTypeAny, {
4333
+ apiKey: string;
4334
+ mobileNumber: string;
4335
+ apiSecret: string;
4336
+ }, {
4337
+ apiKey: string;
4338
+ mobileNumber: string;
4339
+ apiSecret: string;
4340
+ }>>;
4341
+ lineRichMenuId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
4342
+ messengerIntegrationType: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"own">, z.ZodLiteral<"business">]>>;
4164
4343
  }, "strip", z.ZodTypeAny, {
4165
4344
  name: string;
4166
4345
  id: string;
4167
- picture?: string | undefined;
4346
+ accessToken?: string | undefined;
4347
+ channelSecret?: string | undefined;
4168
4348
  additionalCredentials?: any;
4349
+ senderId?: string | undefined;
4350
+ whatsapp?: {
4351
+ email: string;
4352
+ wabaExternalId: string;
4353
+ phoneNumberId: string;
4354
+ wabaBusinessId?: string | undefined;
4355
+ clientId?: string | undefined;
4356
+ channelId?: string | undefined;
4357
+ status?: "active" | "pending" | undefined;
4358
+ apiKey?: string | undefined;
4359
+ tier?: "basic" | "regular" | "premium" | undefined;
4360
+ } | undefined;
4361
+ vonageCredentials?: {
4362
+ apiKey: string;
4363
+ mobileNumber: string;
4364
+ apiSecret: string;
4365
+ } | undefined;
4366
+ lineRichMenuId?: string | null | undefined;
4367
+ messengerIntegrationType?: "own" | "business" | undefined;
4169
4368
  }, {
4170
4369
  name: string;
4171
4370
  id: string;
4172
- picture?: string | undefined;
4371
+ accessToken?: string | undefined;
4372
+ channelSecret?: string | undefined;
4173
4373
  additionalCredentials?: any;
4374
+ senderId?: string | undefined;
4375
+ whatsapp?: {
4376
+ email: string;
4377
+ wabaExternalId: string;
4378
+ phoneNumberId: string;
4379
+ wabaBusinessId?: string | undefined;
4380
+ clientId?: string | undefined;
4381
+ channelId?: string | undefined;
4382
+ status?: "active" | "pending" | undefined;
4383
+ apiKey?: string | undefined;
4384
+ tier?: "basic" | "regular" | "premium" | undefined;
4385
+ } | undefined;
4386
+ vonageCredentials?: {
4387
+ apiKey: string;
4388
+ mobileNumber: string;
4389
+ apiSecret: string;
4390
+ } | undefined;
4391
+ lineRichMenuId?: string | null | undefined;
4392
+ messengerIntegrationType?: "own" | "business" | undefined;
4174
4393
  }>;
4175
- contact: z.ZodObject<{
4394
+ brandName: z.ZodString;
4395
+ platformId: z.ZodString;
4396
+ status: z.ZodUnion<[z.ZodLiteral<true>, z.ZodLiteral<false>]>;
4397
+ isReloginRequired: z.ZodBoolean;
4398
+ connectedUserName: z.ZodString;
4399
+ connectedUserId: z.ZodString;
4400
+ botpressBot: z.ZodNullable<z.ZodObject<{
4401
+ id: z.ZodString;
4402
+ name: z.ZodString;
4403
+ botId: z.ZodString;
4404
+ integrationId: z.ZodString;
4405
+ accessToken: z.ZodString;
4406
+ }, "strip", z.ZodTypeAny, {
4407
+ name: string;
4408
+ id: string;
4409
+ accessToken: string;
4410
+ botId: string;
4411
+ integrationId: string;
4412
+ }, {
4413
+ name: string;
4414
+ id: string;
4415
+ accessToken: string;
4416
+ botId: string;
4417
+ integrationId: string;
4418
+ }>>;
4419
+ actor: z.ZodObject<{
4176
4420
  id: z.ZodString;
4177
4421
  createdAt: z.ZodDate;
4178
4422
  updatedAt: z.ZodDate;
4179
4423
  deletedAt: z.ZodNullable<z.ZodDate>;
4180
4424
  name: z.ZodString;
4425
+ email: z.ZodString;
4426
+ emailVerifiedAt: z.ZodNullable<z.ZodDate>;
4427
+ password: z.ZodString;
4181
4428
  address: z.ZodNullable<z.ZodString>;
4182
- channel: z.ZodNullable<z.ZodString>;
4183
- notes: z.ZodNullable<z.ZodString>;
4184
- contactProfile: z.ZodNullable<z.ZodString>;
4185
- socialProfileUrl: z.ZodNullable<z.ZodString>;
4186
- tags: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
4429
+ phone: z.ZodNullable<z.ZodString>;
4430
+ notificationCount: z.ZodNullable<z.ZodNumber>;
4431
+ roles: z.ZodArray<z.ZodObject<{
4187
4432
  id: z.ZodString;
4188
4433
  createdAt: z.ZodDate;
4189
4434
  updatedAt: z.ZodDate;
4190
4435
  deletedAt: z.ZodNullable<z.ZodDate>;
4191
- }, {
4192
- name: z.ZodString;
4193
- }>, "strip", z.ZodTypeAny, {
4194
- name: string;
4436
+ systemName: z.ZodString;
4437
+ displayName: z.ZodString;
4438
+ description: z.ZodNullable<z.ZodString>;
4439
+ permissions: z.ZodArray<z.ZodObject<{
4440
+ id: z.ZodString;
4441
+ createdAt: z.ZodDate;
4442
+ updatedAt: z.ZodDate;
4443
+ deletedAt: z.ZodNullable<z.ZodDate>;
4444
+ systemName: z.ZodString;
4445
+ displayName: z.ZodString;
4446
+ description: z.ZodNullable<z.ZodString>;
4447
+ }, "strip", z.ZodTypeAny, {
4448
+ id: string;
4449
+ description: string | null;
4450
+ createdAt: Date;
4451
+ updatedAt: Date;
4452
+ deletedAt: Date | null;
4453
+ systemName: string;
4454
+ displayName: string;
4455
+ }, {
4456
+ id: string;
4457
+ description: string | null;
4458
+ createdAt: Date;
4459
+ updatedAt: Date;
4460
+ deletedAt: Date | null;
4461
+ systemName: string;
4462
+ displayName: string;
4463
+ }>, "many">;
4464
+ }, "strip", z.ZodTypeAny, {
4195
4465
  id: string;
4466
+ description: string | null;
4196
4467
  createdAt: Date;
4197
4468
  updatedAt: Date;
4198
4469
  deletedAt: Date | null;
4470
+ systemName: string;
4471
+ displayName: string;
4472
+ permissions: {
4473
+ id: string;
4474
+ description: string | null;
4475
+ createdAt: Date;
4476
+ updatedAt: Date;
4477
+ deletedAt: Date | null;
4478
+ systemName: string;
4479
+ displayName: string;
4480
+ }[];
4199
4481
  }, {
4200
- name: string;
4201
4482
  id: string;
4483
+ description: string | null;
4202
4484
  createdAt: Date;
4203
4485
  updatedAt: Date;
4204
4486
  deletedAt: Date | null;
4487
+ systemName: string;
4488
+ displayName: string;
4489
+ permissions: {
4490
+ id: string;
4491
+ description: string | null;
4492
+ createdAt: Date;
4493
+ updatedAt: Date;
4494
+ deletedAt: Date | null;
4495
+ systemName: string;
4496
+ displayName: string;
4497
+ }[];
4205
4498
  }>, "many">;
4206
- company: z.ZodNullable<z.ZodObject<Omit<z.objectUtil.extendShape<{
4499
+ extension: z.ZodObject<{
4207
4500
  id: z.ZodString;
4208
4501
  createdAt: z.ZodDate;
4209
4502
  updatedAt: z.ZodDate;
4210
4503
  deletedAt: z.ZodNullable<z.ZodDate>;
4504
+ userId: z.ZodNullable<z.ZodString>;
4505
+ sipServerUrl: z.ZodString;
4506
+ sipUserName: z.ZodString;
4507
+ webphoneLoginUser: z.ZodString;
4508
+ extensionId: z.ZodNullable<z.ZodString>;
4509
+ extensionName: z.ZodString;
4510
+ telephonySignature: z.ZodNullable<z.ZodString>;
4511
+ }, "strip", z.ZodTypeAny, {
4512
+ id: string;
4513
+ createdAt: Date;
4514
+ updatedAt: Date;
4515
+ deletedAt: Date | null;
4516
+ userId: string | null;
4517
+ sipServerUrl: string;
4518
+ sipUserName: string;
4519
+ webphoneLoginUser: string;
4520
+ extensionId: string | null;
4521
+ extensionName: string;
4522
+ telephonySignature: string | null;
4211
4523
  }, {
4212
- name: z.ZodOptional<z.ZodString>;
4213
- phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4214
- address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4215
- industry: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4216
- customFields: z.ZodOptional<z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
4217
- id: z.ZodString;
4218
- createdAt: z.ZodDate;
4219
- updatedAt: z.ZodDate;
4220
- deletedAt: z.ZodNullable<z.ZodDate>;
4221
- }, {
4222
- textValue: z.ZodNullable<z.ZodString>;
4223
- booleanValue: z.ZodNullable<z.ZodBoolean>;
4224
- numberValue: z.ZodNullable<z.ZodNumber>;
4225
- dateValue: z.ZodNullable<z.ZodDate>;
4226
- attribute: z.ZodObject<Omit<z.objectUtil.extendShape<{
4227
- id: z.ZodString;
4228
- createdAt: z.ZodDate;
4229
- updatedAt: z.ZodDate;
4230
- deletedAt: z.ZodNullable<z.ZodDate>;
4231
- }, {
4232
- systemName: z.ZodString;
4233
- displayName: z.ZodString;
4234
- type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
4235
- position: z.ZodNumber;
4236
- isDefault: z.ZodBoolean;
4237
- isArchived: z.ZodBoolean;
4238
- isRequired: z.ZodBoolean;
4239
- isUnique: z.ZodBoolean;
4240
- options: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
4241
- label: z.ZodString;
4242
- value: z.ZodString;
4243
- isDefault: z.ZodBoolean;
4244
- position: z.ZodNumber;
4245
- }, {
4246
- id: z.ZodString;
4247
- }>, "strip", z.ZodTypeAny, {
4248
- id: string;
4249
- position: number;
4250
- value: string;
4251
- label: string;
4252
- isDefault: boolean;
4253
- }, {
4254
- id: string;
4255
- position: number;
4256
- value: string;
4257
- label: string;
4258
- isDefault: boolean;
4259
- }>, "many">;
4260
- group: z.ZodObject<z.objectUtil.extendShape<{
4261
- id: z.ZodString;
4262
- createdAt: z.ZodDate;
4263
- updatedAt: z.ZodDate;
4264
- deletedAt: z.ZodNullable<z.ZodDate>;
4265
- }, {
4266
- systemName: z.ZodString;
4267
- displayName: z.ZodString;
4268
- }>, "strip", z.ZodTypeAny, {
4269
- id: string;
4270
- createdAt: Date;
4271
- updatedAt: Date;
4272
- deletedAt: Date | null;
4273
- systemName: string;
4274
- displayName: string;
4275
- }, {
4276
- id: string;
4277
- createdAt: Date;
4278
- updatedAt: Date;
4279
- deletedAt: Date | null;
4280
- systemName: string;
4281
- displayName: string;
4282
- }>;
4283
- }>, "options" | "group">, "strip", z.ZodTypeAny, {
4284
- type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
4285
- id: string;
4286
- position: number;
4287
- createdAt: Date;
4288
- updatedAt: Date;
4289
- deletedAt: Date | null;
4290
- systemName: string;
4291
- displayName: string;
4292
- isDefault: boolean;
4293
- isArchived: boolean;
4294
- isRequired: boolean;
4295
- isUnique: boolean;
4296
- }, {
4297
- type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
4298
- id: string;
4299
- position: number;
4300
- createdAt: Date;
4301
- updatedAt: Date;
4302
- deletedAt: Date | null;
4303
- systemName: string;
4304
- displayName: string;
4305
- isDefault: boolean;
4306
- isArchived: boolean;
4307
- isRequired: boolean;
4308
- isUnique: boolean;
4309
- }>;
4310
- }>, "strip", z.ZodTypeAny, {
4311
- id: string;
4312
- createdAt: Date;
4313
- updatedAt: Date;
4314
- deletedAt: Date | null;
4315
- attribute: {
4316
- type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
4317
- id: string;
4318
- position: number;
4319
- createdAt: Date;
4320
- updatedAt: Date;
4321
- deletedAt: Date | null;
4322
- systemName: string;
4323
- displayName: string;
4324
- isDefault: boolean;
4325
- isArchived: boolean;
4326
- isRequired: boolean;
4327
- isUnique: boolean;
4328
- };
4329
- textValue: string | null;
4330
- booleanValue: boolean | null;
4331
- numberValue: number | null;
4332
- dateValue: Date | null;
4333
- }, {
4524
+ id: string;
4525
+ createdAt: Date;
4526
+ updatedAt: Date;
4527
+ deletedAt: Date | null;
4528
+ userId: string | null;
4529
+ sipServerUrl: string;
4530
+ sipUserName: string;
4531
+ webphoneLoginUser: string;
4532
+ extensionId: string | null;
4533
+ extensionName: string;
4534
+ telephonySignature: string | null;
4535
+ }>;
4536
+ }, "strip", z.ZodTypeAny, {
4537
+ name: string;
4538
+ id: string;
4539
+ address: string | null;
4540
+ email: string;
4541
+ createdAt: Date;
4542
+ updatedAt: Date;
4543
+ deletedAt: Date | null;
4544
+ emailVerifiedAt: Date | null;
4545
+ password: string;
4546
+ phone: string | null;
4547
+ notificationCount: number | null;
4548
+ roles: {
4549
+ id: string;
4550
+ description: string | null;
4551
+ createdAt: Date;
4552
+ updatedAt: Date;
4553
+ deletedAt: Date | null;
4554
+ systemName: string;
4555
+ displayName: string;
4556
+ permissions: {
4334
4557
  id: string;
4558
+ description: string | null;
4335
4559
  createdAt: Date;
4336
4560
  updatedAt: Date;
4337
4561
  deletedAt: Date | null;
4338
- attribute: {
4339
- type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
4340
- id: string;
4341
- position: number;
4342
- createdAt: Date;
4343
- updatedAt: Date;
4344
- deletedAt: Date | null;
4345
- systemName: string;
4346
- displayName: string;
4347
- isDefault: boolean;
4348
- isArchived: boolean;
4349
- isRequired: boolean;
4350
- isUnique: boolean;
4351
- };
4352
- textValue: string | null;
4353
- booleanValue: boolean | null;
4354
- numberValue: number | null;
4355
- dateValue: Date | null;
4356
- }>, "many">>;
4357
- }>, "customFields">, "strip", z.ZodTypeAny, {
4562
+ systemName: string;
4563
+ displayName: string;
4564
+ }[];
4565
+ }[];
4566
+ extension: {
4358
4567
  id: string;
4359
4568
  createdAt: Date;
4360
4569
  updatedAt: Date;
4361
4570
  deletedAt: Date | null;
4362
- name?: string | undefined;
4363
- address?: string | null | undefined;
4364
- phone?: string | null | undefined;
4365
- industry?: string | null | undefined;
4366
- }, {
4571
+ userId: string | null;
4572
+ sipServerUrl: string;
4573
+ sipUserName: string;
4574
+ webphoneLoginUser: string;
4575
+ extensionId: string | null;
4576
+ extensionName: string;
4577
+ telephonySignature: string | null;
4578
+ };
4579
+ }, {
4580
+ name: string;
4581
+ id: string;
4582
+ address: string | null;
4583
+ email: string;
4584
+ createdAt: Date;
4585
+ updatedAt: Date;
4586
+ deletedAt: Date | null;
4587
+ emailVerifiedAt: Date | null;
4588
+ password: string;
4589
+ phone: string | null;
4590
+ notificationCount: number | null;
4591
+ roles: {
4367
4592
  id: string;
4593
+ description: string | null;
4368
4594
  createdAt: Date;
4369
4595
  updatedAt: Date;
4370
4596
  deletedAt: Date | null;
4371
- name?: string | undefined;
4372
- address?: string | null | undefined;
4373
- phone?: string | null | undefined;
4374
- industry?: string | null | undefined;
4375
- }>>;
4376
- platformContacts: z.ZodOptional<z.ZodArray<z.ZodObject<{
4597
+ systemName: string;
4598
+ displayName: string;
4599
+ permissions: {
4600
+ id: string;
4601
+ description: string | null;
4602
+ createdAt: Date;
4603
+ updatedAt: Date;
4604
+ deletedAt: Date | null;
4605
+ systemName: string;
4606
+ displayName: string;
4607
+ }[];
4608
+ }[];
4609
+ extension: {
4610
+ id: string;
4611
+ createdAt: Date;
4612
+ updatedAt: Date;
4613
+ deletedAt: Date | null;
4614
+ userId: string | null;
4615
+ sipServerUrl: string;
4616
+ sipUserName: string;
4617
+ webphoneLoginUser: string;
4618
+ extensionId: string | null;
4619
+ extensionName: string;
4620
+ telephonySignature: string | null;
4621
+ };
4622
+ }>;
4623
+ }, "strip", z.ZodTypeAny, {
4624
+ name: string;
4625
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
4626
+ id: string;
4627
+ metadata: {
4628
+ name: string;
4629
+ id: string;
4630
+ accessToken?: string | undefined;
4631
+ channelSecret?: string | undefined;
4632
+ additionalCredentials?: any;
4633
+ senderId?: string | undefined;
4634
+ whatsapp?: {
4635
+ email: string;
4636
+ wabaExternalId: string;
4637
+ phoneNumberId: string;
4638
+ wabaBusinessId?: string | undefined;
4639
+ clientId?: string | undefined;
4640
+ channelId?: string | undefined;
4641
+ status?: "active" | "pending" | undefined;
4642
+ apiKey?: string | undefined;
4643
+ tier?: "basic" | "regular" | "premium" | undefined;
4644
+ } | undefined;
4645
+ vonageCredentials?: {
4646
+ apiKey: string;
4647
+ mobileNumber: string;
4648
+ apiSecret: string;
4649
+ } | undefined;
4650
+ lineRichMenuId?: string | null | undefined;
4651
+ messengerIntegrationType?: "own" | "business" | undefined;
4652
+ };
4653
+ status: boolean;
4654
+ createdAt: Date;
4655
+ updatedAt: Date;
4656
+ deletedAt: Date | null;
4657
+ actor: {
4658
+ name: string;
4659
+ id: string;
4660
+ address: string | null;
4661
+ email: string;
4662
+ createdAt: Date;
4663
+ updatedAt: Date;
4664
+ deletedAt: Date | null;
4665
+ emailVerifiedAt: Date | null;
4666
+ password: string;
4667
+ phone: string | null;
4668
+ notificationCount: number | null;
4669
+ roles: {
4670
+ id: string;
4671
+ description: string | null;
4672
+ createdAt: Date;
4673
+ updatedAt: Date;
4674
+ deletedAt: Date | null;
4675
+ systemName: string;
4676
+ displayName: string;
4677
+ permissions: {
4678
+ id: string;
4679
+ description: string | null;
4680
+ createdAt: Date;
4681
+ updatedAt: Date;
4682
+ deletedAt: Date | null;
4683
+ systemName: string;
4684
+ displayName: string;
4685
+ }[];
4686
+ }[];
4687
+ extension: {
4688
+ id: string;
4689
+ createdAt: Date;
4690
+ updatedAt: Date;
4691
+ deletedAt: Date | null;
4692
+ userId: string | null;
4693
+ sipServerUrl: string;
4694
+ sipUserName: string;
4695
+ webphoneLoginUser: string;
4696
+ extensionId: string | null;
4697
+ extensionName: string;
4698
+ telephonySignature: string | null;
4699
+ };
4700
+ };
4701
+ brandName: string;
4702
+ platformId: string;
4703
+ isReloginRequired: boolean;
4704
+ connectedUserName: string;
4705
+ connectedUserId: string;
4706
+ botpressBot: {
4707
+ name: string;
4708
+ id: string;
4709
+ accessToken: string;
4710
+ botId: string;
4711
+ integrationId: string;
4712
+ } | null;
4713
+ }, {
4714
+ name: string;
4715
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
4716
+ id: string;
4717
+ metadata: {
4718
+ name: string;
4719
+ id: string;
4720
+ accessToken?: string | undefined;
4721
+ channelSecret?: string | undefined;
4722
+ additionalCredentials?: any;
4723
+ senderId?: string | undefined;
4724
+ whatsapp?: {
4725
+ email: string;
4726
+ wabaExternalId: string;
4727
+ phoneNumberId: string;
4728
+ wabaBusinessId?: string | undefined;
4729
+ clientId?: string | undefined;
4730
+ channelId?: string | undefined;
4731
+ status?: "active" | "pending" | undefined;
4732
+ apiKey?: string | undefined;
4733
+ tier?: "basic" | "regular" | "premium" | undefined;
4734
+ } | undefined;
4735
+ vonageCredentials?: {
4736
+ apiKey: string;
4737
+ mobileNumber: string;
4738
+ apiSecret: string;
4739
+ } | undefined;
4740
+ lineRichMenuId?: string | null | undefined;
4741
+ messengerIntegrationType?: "own" | "business" | undefined;
4742
+ };
4743
+ status: boolean;
4744
+ createdAt: Date;
4745
+ updatedAt: Date;
4746
+ deletedAt: Date | null;
4747
+ actor: {
4748
+ name: string;
4749
+ id: string;
4750
+ address: string | null;
4751
+ email: string;
4752
+ createdAt: Date;
4753
+ updatedAt: Date;
4754
+ deletedAt: Date | null;
4755
+ emailVerifiedAt: Date | null;
4756
+ password: string;
4757
+ phone: string | null;
4758
+ notificationCount: number | null;
4759
+ roles: {
4760
+ id: string;
4761
+ description: string | null;
4762
+ createdAt: Date;
4763
+ updatedAt: Date;
4764
+ deletedAt: Date | null;
4765
+ systemName: string;
4766
+ displayName: string;
4767
+ permissions: {
4768
+ id: string;
4769
+ description: string | null;
4770
+ createdAt: Date;
4771
+ updatedAt: Date;
4772
+ deletedAt: Date | null;
4773
+ systemName: string;
4774
+ displayName: string;
4775
+ }[];
4776
+ }[];
4777
+ extension: {
4778
+ id: string;
4779
+ createdAt: Date;
4780
+ updatedAt: Date;
4781
+ deletedAt: Date | null;
4782
+ userId: string | null;
4783
+ sipServerUrl: string;
4784
+ sipUserName: string;
4785
+ webphoneLoginUser: string;
4786
+ extensionId: string | null;
4787
+ extensionName: string;
4788
+ telephonySignature: string | null;
4789
+ };
4790
+ };
4791
+ brandName: string;
4792
+ platformId: string;
4793
+ isReloginRequired: boolean;
4794
+ connectedUserName: string;
4795
+ connectedUserId: string;
4796
+ botpressBot: {
4797
+ name: string;
4798
+ id: string;
4799
+ accessToken: string;
4800
+ botId: string;
4801
+ integrationId: string;
4802
+ } | null;
4803
+ }>;
4804
+ direction: z.ZodEnum<["incoming", "outgoing", "system"]>;
4805
+ status: z.ZodNumber;
4806
+ createdAt: z.ZodDate;
4807
+ updatedAt: z.ZodDate;
4808
+ deletedAt: z.ZodNullable<z.ZodDate>;
4809
+ actor: z.ZodObject<{
4810
+ id: z.ZodString;
4811
+ createdAt: z.ZodDate;
4812
+ updatedAt: z.ZodDate;
4813
+ deletedAt: z.ZodNullable<z.ZodDate>;
4814
+ name: z.ZodString;
4815
+ email: z.ZodString;
4816
+ emailVerifiedAt: z.ZodNullable<z.ZodDate>;
4817
+ password: z.ZodString;
4818
+ address: z.ZodNullable<z.ZodString>;
4819
+ phone: z.ZodNullable<z.ZodString>;
4820
+ notificationCount: z.ZodNullable<z.ZodNumber>;
4821
+ roles: z.ZodArray<z.ZodObject<{
4822
+ id: z.ZodString;
4823
+ createdAt: z.ZodDate;
4824
+ updatedAt: z.ZodDate;
4825
+ deletedAt: z.ZodNullable<z.ZodDate>;
4826
+ systemName: z.ZodString;
4827
+ displayName: z.ZodString;
4828
+ description: z.ZodNullable<z.ZodString>;
4829
+ permissions: z.ZodArray<z.ZodObject<{
4830
+ id: z.ZodString;
4831
+ createdAt: z.ZodDate;
4832
+ updatedAt: z.ZodDate;
4833
+ deletedAt: z.ZodNullable<z.ZodDate>;
4834
+ systemName: z.ZodString;
4835
+ displayName: z.ZodString;
4836
+ description: z.ZodNullable<z.ZodString>;
4837
+ }, "strip", z.ZodTypeAny, {
4838
+ id: string;
4839
+ description: string | null;
4840
+ createdAt: Date;
4841
+ updatedAt: Date;
4842
+ deletedAt: Date | null;
4843
+ systemName: string;
4844
+ displayName: string;
4845
+ }, {
4846
+ id: string;
4847
+ description: string | null;
4848
+ createdAt: Date;
4849
+ updatedAt: Date;
4850
+ deletedAt: Date | null;
4851
+ systemName: string;
4852
+ displayName: string;
4853
+ }>, "many">;
4854
+ }, "strip", z.ZodTypeAny, {
4855
+ id: string;
4856
+ description: string | null;
4857
+ createdAt: Date;
4858
+ updatedAt: Date;
4859
+ deletedAt: Date | null;
4860
+ systemName: string;
4861
+ displayName: string;
4862
+ permissions: {
4863
+ id: string;
4864
+ description: string | null;
4865
+ createdAt: Date;
4866
+ updatedAt: Date;
4867
+ deletedAt: Date | null;
4868
+ systemName: string;
4869
+ displayName: string;
4870
+ }[];
4871
+ }, {
4872
+ id: string;
4873
+ description: string | null;
4874
+ createdAt: Date;
4875
+ updatedAt: Date;
4876
+ deletedAt: Date | null;
4877
+ systemName: string;
4878
+ displayName: string;
4879
+ permissions: {
4880
+ id: string;
4881
+ description: string | null;
4882
+ createdAt: Date;
4883
+ updatedAt: Date;
4884
+ deletedAt: Date | null;
4885
+ systemName: string;
4886
+ displayName: string;
4887
+ }[];
4888
+ }>, "many">;
4889
+ extension: z.ZodObject<{
4890
+ id: z.ZodString;
4891
+ createdAt: z.ZodDate;
4892
+ updatedAt: z.ZodDate;
4893
+ deletedAt: z.ZodNullable<z.ZodDate>;
4894
+ userId: z.ZodNullable<z.ZodString>;
4895
+ sipServerUrl: z.ZodString;
4896
+ sipUserName: z.ZodString;
4897
+ webphoneLoginUser: z.ZodString;
4898
+ extensionId: z.ZodNullable<z.ZodString>;
4899
+ extensionName: z.ZodString;
4900
+ telephonySignature: z.ZodNullable<z.ZodString>;
4901
+ }, "strip", z.ZodTypeAny, {
4902
+ id: string;
4903
+ createdAt: Date;
4904
+ updatedAt: Date;
4905
+ deletedAt: Date | null;
4906
+ userId: string | null;
4907
+ sipServerUrl: string;
4908
+ sipUserName: string;
4909
+ webphoneLoginUser: string;
4910
+ extensionId: string | null;
4911
+ extensionName: string;
4912
+ telephonySignature: string | null;
4913
+ }, {
4914
+ id: string;
4915
+ createdAt: Date;
4916
+ updatedAt: Date;
4917
+ deletedAt: Date | null;
4918
+ userId: string | null;
4919
+ sipServerUrl: string;
4920
+ sipUserName: string;
4921
+ webphoneLoginUser: string;
4922
+ extensionId: string | null;
4923
+ extensionName: string;
4924
+ telephonySignature: string | null;
4925
+ }>;
4926
+ }, "strip", z.ZodTypeAny, {
4927
+ name: string;
4928
+ id: string;
4929
+ address: string | null;
4930
+ email: string;
4931
+ createdAt: Date;
4932
+ updatedAt: Date;
4933
+ deletedAt: Date | null;
4934
+ emailVerifiedAt: Date | null;
4935
+ password: string;
4936
+ phone: string | null;
4937
+ notificationCount: number | null;
4938
+ roles: {
4939
+ id: string;
4940
+ description: string | null;
4941
+ createdAt: Date;
4942
+ updatedAt: Date;
4943
+ deletedAt: Date | null;
4944
+ systemName: string;
4945
+ displayName: string;
4946
+ permissions: {
4947
+ id: string;
4948
+ description: string | null;
4949
+ createdAt: Date;
4950
+ updatedAt: Date;
4951
+ deletedAt: Date | null;
4952
+ systemName: string;
4953
+ displayName: string;
4954
+ }[];
4955
+ }[];
4956
+ extension: {
4957
+ id: string;
4958
+ createdAt: Date;
4959
+ updatedAt: Date;
4960
+ deletedAt: Date | null;
4961
+ userId: string | null;
4962
+ sipServerUrl: string;
4963
+ sipUserName: string;
4964
+ webphoneLoginUser: string;
4965
+ extensionId: string | null;
4966
+ extensionName: string;
4967
+ telephonySignature: string | null;
4968
+ };
4969
+ }, {
4970
+ name: string;
4971
+ id: string;
4972
+ address: string | null;
4973
+ email: string;
4974
+ createdAt: Date;
4975
+ updatedAt: Date;
4976
+ deletedAt: Date | null;
4977
+ emailVerifiedAt: Date | null;
4978
+ password: string;
4979
+ phone: string | null;
4980
+ notificationCount: number | null;
4981
+ roles: {
4982
+ id: string;
4983
+ description: string | null;
4984
+ createdAt: Date;
4985
+ updatedAt: Date;
4986
+ deletedAt: Date | null;
4987
+ systemName: string;
4988
+ displayName: string;
4989
+ permissions: {
4990
+ id: string;
4991
+ description: string | null;
4992
+ createdAt: Date;
4993
+ updatedAt: Date;
4994
+ deletedAt: Date | null;
4995
+ systemName: string;
4996
+ displayName: string;
4997
+ }[];
4998
+ }[];
4999
+ extension: {
5000
+ id: string;
5001
+ createdAt: Date;
5002
+ updatedAt: Date;
5003
+ deletedAt: Date | null;
5004
+ userId: string | null;
5005
+ sipServerUrl: string;
5006
+ sipUserName: string;
5007
+ webphoneLoginUser: string;
5008
+ extensionId: string | null;
5009
+ extensionName: string;
5010
+ telephonySignature: string | null;
5011
+ };
5012
+ }>;
5013
+ firstResponseTime: z.ZodNumber;
5014
+ lastMessage: z.ZodString;
5015
+ handleTime: z.ZodNumber;
5016
+ unreadCount: z.ZodNumber;
5017
+ firstResponseAt: z.ZodDate;
5018
+ isLatest: z.ZodBoolean;
5019
+ platformContact: z.ZodObject<{
5020
+ id: z.ZodString;
5021
+ createdAt: z.ZodDate;
5022
+ updatedAt: z.ZodDate;
5023
+ deletedAt: z.ZodNullable<z.ZodDate>;
5024
+ channelId: z.ZodString;
5025
+ socialPlatformId: z.ZodString;
5026
+ type: z.ZodEnum<["whatsapp", "messenger", "telegram", "instagram", "line", "viber", "kakao", "shopee", "lazada", "webchat", "facebook_feed", "sms_vonage"]>;
5027
+ metadata: z.ZodObject<{
5028
+ id: z.ZodString;
5029
+ name: z.ZodString;
5030
+ picture: z.ZodOptional<z.ZodString>;
5031
+ additionalCredentials: z.ZodAny;
5032
+ }, "strip", z.ZodTypeAny, {
5033
+ name: string;
5034
+ id: string;
5035
+ picture?: string | undefined;
5036
+ additionalCredentials?: any;
5037
+ }, {
5038
+ name: string;
5039
+ id: string;
5040
+ picture?: string | undefined;
5041
+ additionalCredentials?: any;
5042
+ }>;
5043
+ contact: z.ZodObject<{
5044
+ id: z.ZodString;
5045
+ createdAt: z.ZodDate;
5046
+ updatedAt: z.ZodDate;
5047
+ deletedAt: z.ZodNullable<z.ZodDate>;
5048
+ name: z.ZodString;
5049
+ address: z.ZodNullable<z.ZodString>;
5050
+ channel: z.ZodNullable<z.ZodString>;
5051
+ notes: z.ZodNullable<z.ZodString>;
5052
+ contactProfile: z.ZodNullable<z.ZodString>;
5053
+ socialProfileUrl: z.ZodNullable<z.ZodString>;
5054
+ tags: z.ZodArray<z.ZodObject<{
4377
5055
  id: z.ZodString;
4378
5056
  createdAt: z.ZodDate;
4379
5057
  updatedAt: z.ZodDate;
4380
5058
  deletedAt: z.ZodNullable<z.ZodDate>;
4381
- channelId: z.ZodString;
4382
- socialPlatformId: z.ZodString;
4383
- type: z.ZodEnum<["whatsapp", "messenger", "telegram", "instagram", "line", "viber", "kakao", "shopee", "lazada", "webchat", "facebook_feed", "sms_vonage"]>;
4384
- metadata: z.ZodObject<{
4385
- id: z.ZodString;
4386
- name: z.ZodString;
4387
- picture: z.ZodOptional<z.ZodString>;
4388
- additionalCredentials: z.ZodAny;
4389
- }, "strip", z.ZodTypeAny, {
4390
- name: string;
4391
- id: string;
4392
- picture?: string | undefined;
4393
- additionalCredentials?: any;
4394
- }, {
4395
- name: string;
4396
- id: string;
4397
- picture?: string | undefined;
4398
- additionalCredentials?: any;
4399
- }>;
5059
+ name: z.ZodString;
4400
5060
  }, "strip", z.ZodTypeAny, {
4401
- type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
5061
+ name: string;
4402
5062
  id: string;
4403
- metadata: {
4404
- name: string;
4405
- id: string;
4406
- picture?: string | undefined;
4407
- additionalCredentials?: any;
4408
- };
4409
5063
  createdAt: Date;
4410
5064
  updatedAt: Date;
4411
5065
  deletedAt: Date | null;
4412
- channelId: string;
4413
- socialPlatformId: string;
4414
5066
  }, {
4415
- type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
5067
+ name: string;
4416
5068
  id: string;
4417
- metadata: {
4418
- name: string;
4419
- id: string;
4420
- picture?: string | undefined;
4421
- additionalCredentials?: any;
4422
- };
4423
5069
  createdAt: Date;
4424
5070
  updatedAt: Date;
4425
5071
  deletedAt: Date | null;
4426
- channelId: string;
4427
- socialPlatformId: string;
4428
- }>, "many">>;
4429
- customFields: z.ZodArray<z.ZodObject<{
5072
+ }>, "many">;
5073
+ company: z.ZodNullable<z.ZodObject<Omit<{
4430
5074
  id: z.ZodString;
4431
5075
  createdAt: z.ZodDate;
4432
5076
  updatedAt: z.ZodDate;
4433
5077
  deletedAt: z.ZodNullable<z.ZodDate>;
4434
- textValue: z.ZodNullable<z.ZodString>;
4435
- booleanValue: z.ZodNullable<z.ZodBoolean>;
4436
- numberValue: z.ZodNullable<z.ZodNumber>;
4437
- dateValue: z.ZodNullable<z.ZodDate>;
4438
- attribute: z.ZodObject<Omit<z.objectUtil.extendShape<{
5078
+ name: z.ZodOptional<z.ZodString>;
5079
+ phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5080
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5081
+ industry: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5082
+ customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
4439
5083
  id: z.ZodString;
4440
5084
  createdAt: z.ZodDate;
4441
5085
  updatedAt: z.ZodDate;
4442
5086
  deletedAt: z.ZodNullable<z.ZodDate>;
4443
- }, {
4444
- systemName: z.ZodString;
4445
- displayName: z.ZodString;
4446
- type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
4447
- position: z.ZodNumber;
4448
- isDefault: z.ZodBoolean;
4449
- isArchived: z.ZodBoolean;
4450
- isRequired: z.ZodBoolean;
4451
- isUnique: z.ZodBoolean;
4452
- options: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
4453
- label: z.ZodString;
4454
- value: z.ZodString;
4455
- isDefault: z.ZodBoolean;
4456
- position: z.ZodNumber;
4457
- }, {
4458
- id: z.ZodString;
4459
- }>, "strip", z.ZodTypeAny, {
4460
- id: string;
4461
- position: number;
4462
- value: string;
4463
- label: string;
4464
- isDefault: boolean;
4465
- }, {
4466
- id: string;
4467
- position: number;
4468
- value: string;
4469
- label: string;
4470
- isDefault: boolean;
4471
- }>, "many">;
4472
- group: z.ZodObject<z.objectUtil.extendShape<{
5087
+ textValue: z.ZodNullable<z.ZodString>;
5088
+ booleanValue: z.ZodNullable<z.ZodBoolean>;
5089
+ numberValue: z.ZodNullable<z.ZodNumber>;
5090
+ dateValue: z.ZodNullable<z.ZodDate>;
5091
+ attribute: z.ZodObject<Omit<{
4473
5092
  id: z.ZodString;
4474
5093
  createdAt: z.ZodDate;
4475
5094
  updatedAt: z.ZodDate;
4476
5095
  deletedAt: z.ZodNullable<z.ZodDate>;
4477
- }, {
4478
5096
  systemName: z.ZodString;
4479
5097
  displayName: z.ZodString;
4480
- }>, "strip", z.ZodTypeAny, {
4481
- id: string;
4482
- createdAt: Date;
4483
- updatedAt: Date;
4484
- deletedAt: Date | null;
4485
- systemName: string;
4486
- displayName: string;
4487
- }, {
5098
+ type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
5099
+ position: z.ZodNumber;
5100
+ isDefault: z.ZodBoolean;
5101
+ isArchived: z.ZodBoolean;
5102
+ isRequired: z.ZodBoolean;
5103
+ isUnique: z.ZodBoolean;
5104
+ options: z.ZodArray<z.ZodObject<{
5105
+ position: z.ZodNumber;
5106
+ value: z.ZodString;
5107
+ label: z.ZodString;
5108
+ isDefault: z.ZodBoolean;
5109
+ id: z.ZodString;
5110
+ }, "strip", z.ZodTypeAny, {
5111
+ id: string;
5112
+ position: number;
5113
+ value: string;
5114
+ label: string;
5115
+ isDefault: boolean;
5116
+ }, {
5117
+ id: string;
5118
+ position: number;
5119
+ value: string;
5120
+ label: string;
5121
+ isDefault: boolean;
5122
+ }>, "many">;
5123
+ group: z.ZodObject<{
5124
+ id: z.ZodString;
5125
+ createdAt: z.ZodDate;
5126
+ updatedAt: z.ZodDate;
5127
+ deletedAt: z.ZodNullable<z.ZodDate>;
5128
+ systemName: z.ZodString;
5129
+ displayName: z.ZodString;
5130
+ }, "strip", z.ZodTypeAny, {
5131
+ id: string;
5132
+ createdAt: Date;
5133
+ updatedAt: Date;
5134
+ deletedAt: Date | null;
5135
+ systemName: string;
5136
+ displayName: string;
5137
+ }, {
5138
+ id: string;
5139
+ createdAt: Date;
5140
+ updatedAt: Date;
5141
+ deletedAt: Date | null;
5142
+ systemName: string;
5143
+ displayName: string;
5144
+ }>;
5145
+ }, "options" | "group">, "strip", z.ZodTypeAny, {
5146
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
4488
5147
  id: string;
5148
+ position: number;
4489
5149
  createdAt: Date;
4490
5150
  updatedAt: Date;
4491
5151
  deletedAt: Date | null;
4492
5152
  systemName: string;
4493
5153
  displayName: string;
4494
- }>;
4495
- }>, "options" | "group">, "strip", z.ZodTypeAny, {
4496
- type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
4497
- id: string;
4498
- position: number;
4499
- createdAt: Date;
4500
- updatedAt: Date;
4501
- deletedAt: Date | null;
4502
- systemName: string;
4503
- displayName: string;
4504
- isDefault: boolean;
4505
- isArchived: boolean;
4506
- isRequired: boolean;
4507
- isUnique: boolean;
4508
- }, {
4509
- type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
4510
- id: string;
4511
- position: number;
4512
- createdAt: Date;
4513
- updatedAt: Date;
4514
- deletedAt: Date | null;
4515
- systemName: string;
4516
- displayName: string;
4517
- isDefault: boolean;
4518
- isArchived: boolean;
4519
- isRequired: boolean;
4520
- isUnique: boolean;
4521
- }>;
4522
- uploads: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
4523
- id: z.ZodString;
4524
- createdAt: z.ZodDate;
4525
- updatedAt: z.ZodDate;
4526
- deletedAt: z.ZodNullable<z.ZodDate>;
4527
- }, {
4528
- bucketName: z.ZodString;
4529
- fileName: z.ZodString;
4530
- fileSize: z.ZodNumber;
4531
- fileKey: z.ZodString;
4532
- fileUrl: z.ZodNullable<z.ZodString>;
4533
- status: z.ZodNullable<z.ZodString>;
4534
- }>, "strip", z.ZodTypeAny, {
4535
- id: string;
4536
- status: string | null;
4537
- createdAt: Date;
4538
- updatedAt: Date;
4539
- deletedAt: Date | null;
4540
- fileName: string;
4541
- fileKey: string;
4542
- bucketName: string;
4543
- fileSize: number;
4544
- fileUrl: string | null;
4545
- }, {
4546
- id: string;
4547
- status: string | null;
4548
- createdAt: Date;
4549
- updatedAt: Date;
4550
- deletedAt: Date | null;
4551
- fileName: string;
4552
- fileKey: string;
4553
- bucketName: string;
4554
- fileSize: number;
4555
- fileUrl: string | null;
4556
- }>, "many">;
4557
- }, "strip", z.ZodTypeAny, {
4558
- id: string;
4559
- createdAt: Date;
4560
- updatedAt: Date;
4561
- deletedAt: Date | null;
4562
- attribute: {
4563
- type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
4564
- id: string;
4565
- position: number;
4566
- createdAt: Date;
4567
- updatedAt: Date;
4568
- deletedAt: Date | null;
4569
- systemName: string;
4570
- displayName: string;
4571
- isDefault: boolean;
4572
- isArchived: boolean;
4573
- isRequired: boolean;
4574
- isUnique: boolean;
4575
- };
4576
- textValue: string | null;
4577
- booleanValue: boolean | null;
4578
- numberValue: number | null;
4579
- dateValue: Date | null;
4580
- uploads: {
4581
- id: string;
4582
- status: string | null;
4583
- createdAt: Date;
4584
- updatedAt: Date;
4585
- deletedAt: Date | null;
4586
- fileName: string;
4587
- fileKey: string;
4588
- bucketName: string;
4589
- fileSize: number;
4590
- fileUrl: string | null;
4591
- }[];
4592
- }, {
4593
- id: string;
4594
- createdAt: Date;
4595
- updatedAt: Date;
4596
- deletedAt: Date | null;
4597
- attribute: {
4598
- type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
5154
+ isDefault: boolean;
5155
+ isArchived: boolean;
5156
+ isRequired: boolean;
5157
+ isUnique: boolean;
5158
+ }, {
5159
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
5160
+ id: string;
5161
+ position: number;
5162
+ createdAt: Date;
5163
+ updatedAt: Date;
5164
+ deletedAt: Date | null;
5165
+ systemName: string;
5166
+ displayName: string;
5167
+ isDefault: boolean;
5168
+ isArchived: boolean;
5169
+ isRequired: boolean;
5170
+ isUnique: boolean;
5171
+ }>;
5172
+ }, "strip", z.ZodTypeAny, {
4599
5173
  id: string;
4600
- position: number;
4601
5174
  createdAt: Date;
4602
5175
  updatedAt: Date;
4603
5176
  deletedAt: Date | null;
4604
- systemName: string;
4605
- displayName: string;
4606
- isDefault: boolean;
4607
- isArchived: boolean;
4608
- isRequired: boolean;
4609
- isUnique: boolean;
4610
- };
4611
- textValue: string | null;
4612
- booleanValue: boolean | null;
4613
- numberValue: number | null;
4614
- dateValue: Date | null;
4615
- uploads: {
5177
+ attribute: {
5178
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
5179
+ id: string;
5180
+ position: number;
5181
+ createdAt: Date;
5182
+ updatedAt: Date;
5183
+ deletedAt: Date | null;
5184
+ systemName: string;
5185
+ displayName: string;
5186
+ isDefault: boolean;
5187
+ isArchived: boolean;
5188
+ isRequired: boolean;
5189
+ isUnique: boolean;
5190
+ };
5191
+ textValue: string | null;
5192
+ booleanValue: boolean | null;
5193
+ numberValue: number | null;
5194
+ dateValue: Date | null;
5195
+ }, {
4616
5196
  id: string;
4617
- status: string | null;
4618
5197
  createdAt: Date;
4619
5198
  updatedAt: Date;
4620
5199
  deletedAt: Date | null;
4621
- fileName: string;
4622
- fileKey: string;
4623
- bucketName: string;
4624
- fileSize: number;
4625
- fileUrl: string | null;
4626
- }[];
4627
- }>, "many">;
4628
- contactEmails: z.ZodArray<z.ZodObject<{
4629
- id: z.ZodString;
4630
- createdAt: z.ZodDate;
4631
- updatedAt: z.ZodDate;
4632
- deletedAt: z.ZodNullable<z.ZodDate>;
4633
- email: z.ZodString;
4634
- isPrimary: z.ZodBoolean;
4635
- }, "strip", z.ZodTypeAny, {
4636
- id: string;
4637
- isPrimary: boolean;
4638
- email: string;
4639
- createdAt: Date;
4640
- updatedAt: Date;
4641
- deletedAt: Date | null;
4642
- }, {
4643
- id: string;
4644
- isPrimary: boolean;
4645
- email: string;
4646
- createdAt: Date;
4647
- updatedAt: Date;
4648
- deletedAt: Date | null;
4649
- }>, "many">;
4650
- contactPhones: z.ZodArray<z.ZodObject<{
4651
- id: z.ZodString;
4652
- createdAt: z.ZodDate;
4653
- updatedAt: z.ZodDate;
4654
- deletedAt: z.ZodNullable<z.ZodDate>;
4655
- phone: z.ZodString;
4656
- isPrimary: z.ZodBoolean;
4657
- }, "strip", z.ZodTypeAny, {
5200
+ attribute: {
5201
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
5202
+ id: string;
5203
+ position: number;
5204
+ createdAt: Date;
5205
+ updatedAt: Date;
5206
+ deletedAt: Date | null;
5207
+ systemName: string;
5208
+ displayName: string;
5209
+ isDefault: boolean;
5210
+ isArchived: boolean;
5211
+ isRequired: boolean;
5212
+ isUnique: boolean;
5213
+ };
5214
+ textValue: string | null;
5215
+ booleanValue: boolean | null;
5216
+ numberValue: number | null;
5217
+ dateValue: Date | null;
5218
+ }>, "many">>;
5219
+ }, "customFields">, "strip", z.ZodTypeAny, {
4658
5220
  id: string;
4659
- isPrimary: boolean;
4660
5221
  createdAt: Date;
4661
5222
  updatedAt: Date;
4662
5223
  deletedAt: Date | null;
4663
- phone: string;
5224
+ name?: string | undefined;
5225
+ address?: string | null | undefined;
5226
+ phone?: string | null | undefined;
5227
+ industry?: string | null | undefined;
4664
5228
  }, {
4665
5229
  id: string;
4666
- isPrimary: boolean;
4667
5230
  createdAt: Date;
4668
5231
  updatedAt: Date;
4669
5232
  deletedAt: Date | null;
4670
- phone: string;
4671
- }>, "many">;
4672
- activityLogs: z.ZodOptional<z.ZodArray<z.ZodObject<{
5233
+ name?: string | undefined;
5234
+ address?: string | null | undefined;
5235
+ phone?: string | null | undefined;
5236
+ industry?: string | null | undefined;
5237
+ }>>;
5238
+ platformContacts: z.ZodOptional<z.ZodArray<z.ZodObject<{
4673
5239
  id: z.ZodString;
4674
5240
  createdAt: z.ZodDate;
4675
5241
  updatedAt: z.ZodDate;
4676
5242
  deletedAt: z.ZodNullable<z.ZodDate>;
4677
- entityId: z.ZodString;
4678
- description: z.ZodString;
4679
- entityType: z.ZodObject<{
5243
+ channelId: z.ZodString;
5244
+ socialPlatformId: z.ZodString;
5245
+ type: z.ZodEnum<["whatsapp", "messenger", "telegram", "instagram", "line", "viber", "kakao", "shopee", "lazada", "webchat", "facebook_feed", "sms_vonage"]>;
5246
+ metadata: z.ZodObject<{
4680
5247
  id: z.ZodString;
4681
- createdAt: z.ZodDate;
4682
- updatedAt: z.ZodDate;
4683
- deletedAt: z.ZodNullable<z.ZodDate>;
4684
- entity: z.ZodString;
4685
- description: z.ZodNullable<z.ZodString>;
5248
+ name: z.ZodString;
5249
+ picture: z.ZodOptional<z.ZodString>;
5250
+ additionalCredentials: z.ZodAny;
4686
5251
  }, "strip", z.ZodTypeAny, {
5252
+ name: string;
4687
5253
  id: string;
4688
- description: string | null;
4689
- createdAt: Date;
4690
- updatedAt: Date;
4691
- deletedAt: Date | null;
4692
- entity: string;
5254
+ picture?: string | undefined;
5255
+ additionalCredentials?: any;
4693
5256
  }, {
5257
+ name: string;
4694
5258
  id: string;
4695
- description: string | null;
4696
- createdAt: Date;
4697
- updatedAt: Date;
4698
- deletedAt: Date | null;
4699
- entity: string;
5259
+ picture?: string | undefined;
5260
+ additionalCredentials?: any;
4700
5261
  }>;
4701
5262
  }, "strip", z.ZodTypeAny, {
5263
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
4702
5264
  id: string;
4703
- description: string;
4704
- createdAt: Date;
4705
- updatedAt: Date;
4706
- deletedAt: Date | null;
4707
- entityId: string;
4708
- entityType: {
5265
+ metadata: {
5266
+ name: string;
4709
5267
  id: string;
4710
- description: string | null;
4711
- createdAt: Date;
4712
- updatedAt: Date;
4713
- deletedAt: Date | null;
4714
- entity: string;
5268
+ picture?: string | undefined;
5269
+ additionalCredentials?: any;
4715
5270
  };
4716
- }, {
4717
- id: string;
4718
- description: string;
4719
5271
  createdAt: Date;
4720
5272
  updatedAt: Date;
4721
5273
  deletedAt: Date | null;
4722
- entityId: string;
4723
- entityType: {
5274
+ channelId: string;
5275
+ socialPlatformId: string;
5276
+ }, {
5277
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
5278
+ id: string;
5279
+ metadata: {
5280
+ name: string;
4724
5281
  id: string;
4725
- description: string | null;
4726
- createdAt: Date;
4727
- updatedAt: Date;
4728
- deletedAt: Date | null;
4729
- entity: string;
5282
+ picture?: string | undefined;
5283
+ additionalCredentials?: any;
4730
5284
  };
4731
- }>, "many">>;
4732
- }, "strip", z.ZodTypeAny, {
4733
- name: string;
4734
- id: string;
4735
- channel: string | null;
4736
- address: string | null;
4737
- createdAt: Date;
4738
- updatedAt: Date;
4739
- deletedAt: Date | null;
4740
- customFields: {
4741
- id: string;
4742
5285
  createdAt: Date;
4743
5286
  updatedAt: Date;
4744
5287
  deletedAt: Date | null;
4745
- attribute: {
5288
+ channelId: string;
5289
+ socialPlatformId: string;
5290
+ }>, "many">>;
5291
+ customFields: z.ZodArray<z.ZodObject<{
5292
+ id: z.ZodString;
5293
+ createdAt: z.ZodDate;
5294
+ updatedAt: z.ZodDate;
5295
+ deletedAt: z.ZodNullable<z.ZodDate>;
5296
+ textValue: z.ZodNullable<z.ZodString>;
5297
+ booleanValue: z.ZodNullable<z.ZodBoolean>;
5298
+ numberValue: z.ZodNullable<z.ZodNumber>;
5299
+ dateValue: z.ZodNullable<z.ZodDate>;
5300
+ attribute: z.ZodObject<Omit<{
5301
+ id: z.ZodString;
5302
+ createdAt: z.ZodDate;
5303
+ updatedAt: z.ZodDate;
5304
+ deletedAt: z.ZodNullable<z.ZodDate>;
5305
+ systemName: z.ZodString;
5306
+ displayName: z.ZodString;
5307
+ type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
5308
+ position: z.ZodNumber;
5309
+ isDefault: z.ZodBoolean;
5310
+ isArchived: z.ZodBoolean;
5311
+ isRequired: z.ZodBoolean;
5312
+ isUnique: z.ZodBoolean;
5313
+ options: z.ZodArray<z.ZodObject<{
5314
+ position: z.ZodNumber;
5315
+ value: z.ZodString;
5316
+ label: z.ZodString;
5317
+ isDefault: z.ZodBoolean;
5318
+ id: z.ZodString;
5319
+ }, "strip", z.ZodTypeAny, {
5320
+ id: string;
5321
+ position: number;
5322
+ value: string;
5323
+ label: string;
5324
+ isDefault: boolean;
5325
+ }, {
5326
+ id: string;
5327
+ position: number;
5328
+ value: string;
5329
+ label: string;
5330
+ isDefault: boolean;
5331
+ }>, "many">;
5332
+ group: z.ZodObject<{
5333
+ id: z.ZodString;
5334
+ createdAt: z.ZodDate;
5335
+ updatedAt: z.ZodDate;
5336
+ deletedAt: z.ZodNullable<z.ZodDate>;
5337
+ systemName: z.ZodString;
5338
+ displayName: z.ZodString;
5339
+ }, "strip", z.ZodTypeAny, {
5340
+ id: string;
5341
+ createdAt: Date;
5342
+ updatedAt: Date;
5343
+ deletedAt: Date | null;
5344
+ systemName: string;
5345
+ displayName: string;
5346
+ }, {
5347
+ id: string;
5348
+ createdAt: Date;
5349
+ updatedAt: Date;
5350
+ deletedAt: Date | null;
5351
+ systemName: string;
5352
+ displayName: string;
5353
+ }>;
5354
+ }, "options" | "group">, "strip", z.ZodTypeAny, {
4746
5355
  type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
4747
5356
  id: string;
4748
5357
  position: number;
@@ -4755,12 +5364,32 @@ export declare const chatContract: {
4755
5364
  isArchived: boolean;
4756
5365
  isRequired: boolean;
4757
5366
  isUnique: boolean;
4758
- };
4759
- textValue: string | null;
4760
- booleanValue: boolean | null;
4761
- numberValue: number | null;
4762
- dateValue: Date | null;
4763
- uploads: {
5367
+ }, {
5368
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
5369
+ id: string;
5370
+ position: number;
5371
+ createdAt: Date;
5372
+ updatedAt: Date;
5373
+ deletedAt: Date | null;
5374
+ systemName: string;
5375
+ displayName: string;
5376
+ isDefault: boolean;
5377
+ isArchived: boolean;
5378
+ isRequired: boolean;
5379
+ isUnique: boolean;
5380
+ }>;
5381
+ uploads: z.ZodArray<z.ZodObject<{
5382
+ id: z.ZodString;
5383
+ createdAt: z.ZodDate;
5384
+ updatedAt: z.ZodDate;
5385
+ deletedAt: z.ZodNullable<z.ZodDate>;
5386
+ bucketName: z.ZodString;
5387
+ fileName: z.ZodString;
5388
+ fileSize: z.ZodNumber;
5389
+ fileKey: z.ZodString;
5390
+ fileUrl: z.ZodNullable<z.ZodString>;
5391
+ status: z.ZodNullable<z.ZodString>;
5392
+ }, "strip", z.ZodTypeAny, {
4764
5393
  id: string;
4765
5394
  status: string | null;
4766
5395
  createdAt: Date;
@@ -4771,84 +5400,19 @@ export declare const chatContract: {
4771
5400
  bucketName: string;
4772
5401
  fileSize: number;
4773
5402
  fileUrl: string | null;
4774
- }[];
4775
- }[];
4776
- company: {
4777
- id: string;
4778
- createdAt: Date;
4779
- updatedAt: Date;
4780
- deletedAt: Date | null;
4781
- name?: string | undefined;
4782
- address?: string | null | undefined;
4783
- phone?: string | null | undefined;
4784
- industry?: string | null | undefined;
4785
- } | null;
4786
- notes: string | null;
4787
- contactProfile: string | null;
4788
- socialProfileUrl: string | null;
4789
- tags: {
4790
- name: string;
4791
- id: string;
4792
- createdAt: Date;
4793
- updatedAt: Date;
4794
- deletedAt: Date | null;
4795
- }[];
4796
- contactEmails: {
4797
- id: string;
4798
- isPrimary: boolean;
4799
- email: string;
4800
- createdAt: Date;
4801
- updatedAt: Date;
4802
- deletedAt: Date | null;
4803
- }[];
4804
- contactPhones: {
4805
- id: string;
4806
- isPrimary: boolean;
4807
- createdAt: Date;
4808
- updatedAt: Date;
4809
- deletedAt: Date | null;
4810
- phone: string;
4811
- }[];
4812
- platformContacts?: {
4813
- type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
4814
- id: string;
4815
- metadata: {
4816
- name: string;
4817
- id: string;
4818
- picture?: string | undefined;
4819
- additionalCredentials?: any;
4820
- };
4821
- createdAt: Date;
4822
- updatedAt: Date;
4823
- deletedAt: Date | null;
4824
- channelId: string;
4825
- socialPlatformId: string;
4826
- }[] | undefined;
4827
- activityLogs?: {
4828
- id: string;
4829
- description: string;
4830
- createdAt: Date;
4831
- updatedAt: Date;
4832
- deletedAt: Date | null;
4833
- entityId: string;
4834
- entityType: {
5403
+ }, {
4835
5404
  id: string;
4836
- description: string | null;
5405
+ status: string | null;
4837
5406
  createdAt: Date;
4838
5407
  updatedAt: Date;
4839
5408
  deletedAt: Date | null;
4840
- entity: string;
4841
- };
4842
- }[] | undefined;
4843
- }, {
4844
- name: string;
4845
- id: string;
4846
- channel: string | null;
4847
- address: string | null;
4848
- createdAt: Date;
4849
- updatedAt: Date;
4850
- deletedAt: Date | null;
4851
- customFields: {
5409
+ fileName: string;
5410
+ fileKey: string;
5411
+ bucketName: string;
5412
+ fileSize: number;
5413
+ fileUrl: string | null;
5414
+ }>, "many">;
5415
+ }, "strip", z.ZodTypeAny, {
4852
5416
  id: string;
4853
5417
  createdAt: Date;
4854
5418
  updatedAt: Date;
@@ -4883,96 +5447,7 @@ export declare const chatContract: {
4883
5447
  fileSize: number;
4884
5448
  fileUrl: string | null;
4885
5449
  }[];
4886
- }[];
4887
- company: {
4888
- id: string;
4889
- createdAt: Date;
4890
- updatedAt: Date;
4891
- deletedAt: Date | null;
4892
- name?: string | undefined;
4893
- address?: string | null | undefined;
4894
- phone?: string | null | undefined;
4895
- industry?: string | null | undefined;
4896
- } | null;
4897
- notes: string | null;
4898
- contactProfile: string | null;
4899
- socialProfileUrl: string | null;
4900
- tags: {
4901
- name: string;
4902
- id: string;
4903
- createdAt: Date;
4904
- updatedAt: Date;
4905
- deletedAt: Date | null;
4906
- }[];
4907
- contactEmails: {
4908
- id: string;
4909
- isPrimary: boolean;
4910
- email: string;
4911
- createdAt: Date;
4912
- updatedAt: Date;
4913
- deletedAt: Date | null;
4914
- }[];
4915
- contactPhones: {
4916
- id: string;
4917
- isPrimary: boolean;
4918
- createdAt: Date;
4919
- updatedAt: Date;
4920
- deletedAt: Date | null;
4921
- phone: string;
4922
- }[];
4923
- platformContacts?: {
4924
- type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
4925
- id: string;
4926
- metadata: {
4927
- name: string;
4928
- id: string;
4929
- picture?: string | undefined;
4930
- additionalCredentials?: any;
4931
- };
4932
- createdAt: Date;
4933
- updatedAt: Date;
4934
- deletedAt: Date | null;
4935
- channelId: string;
4936
- socialPlatformId: string;
4937
- }[] | undefined;
4938
- activityLogs?: {
4939
- id: string;
4940
- description: string;
4941
- createdAt: Date;
4942
- updatedAt: Date;
4943
- deletedAt: Date | null;
4944
- entityId: string;
4945
- entityType: {
4946
- id: string;
4947
- description: string | null;
4948
- createdAt: Date;
4949
- updatedAt: Date;
4950
- deletedAt: Date | null;
4951
- entity: string;
4952
- };
4953
- }[] | undefined;
4954
- }>;
4955
- }, "strip", z.ZodTypeAny, {
4956
- type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
4957
- id: string;
4958
- metadata: {
4959
- name: string;
4960
- id: string;
4961
- picture?: string | undefined;
4962
- additionalCredentials?: any;
4963
- };
4964
- createdAt: Date;
4965
- updatedAt: Date;
4966
- deletedAt: Date | null;
4967
- contact: {
4968
- name: string;
4969
- id: string;
4970
- channel: string | null;
4971
- address: string | null;
4972
- createdAt: Date;
4973
- updatedAt: Date;
4974
- deletedAt: Date | null;
4975
- customFields: {
5450
+ }, {
4976
5451
  id: string;
4977
5452
  createdAt: Date;
4978
5453
  updatedAt: Date;
@@ -5007,59 +5482,96 @@ export declare const chatContract: {
5007
5482
  fileSize: number;
5008
5483
  fileUrl: string | null;
5009
5484
  }[];
5010
- }[];
5011
- company: {
5485
+ }>, "many">;
5486
+ contactEmails: z.ZodArray<z.ZodObject<{
5487
+ id: z.ZodString;
5488
+ createdAt: z.ZodDate;
5489
+ updatedAt: z.ZodDate;
5490
+ deletedAt: z.ZodNullable<z.ZodDate>;
5491
+ email: z.ZodString;
5492
+ isPrimary: z.ZodBoolean;
5493
+ }, "strip", z.ZodTypeAny, {
5012
5494
  id: string;
5495
+ isPrimary: boolean;
5496
+ email: string;
5013
5497
  createdAt: Date;
5014
5498
  updatedAt: Date;
5015
5499
  deletedAt: Date | null;
5016
- name?: string | undefined;
5017
- address?: string | null | undefined;
5018
- phone?: string | null | undefined;
5019
- industry?: string | null | undefined;
5020
- } | null;
5021
- notes: string | null;
5022
- contactProfile: string | null;
5023
- socialProfileUrl: string | null;
5024
- tags: {
5025
- name: string;
5500
+ }, {
5026
5501
  id: string;
5502
+ isPrimary: boolean;
5503
+ email: string;
5027
5504
  createdAt: Date;
5028
5505
  updatedAt: Date;
5029
5506
  deletedAt: Date | null;
5030
- }[];
5031
- contactEmails: {
5507
+ }>, "many">;
5508
+ contactPhones: z.ZodArray<z.ZodObject<{
5509
+ id: z.ZodString;
5510
+ createdAt: z.ZodDate;
5511
+ updatedAt: z.ZodDate;
5512
+ deletedAt: z.ZodNullable<z.ZodDate>;
5513
+ phone: z.ZodString;
5514
+ isPrimary: z.ZodBoolean;
5515
+ }, "strip", z.ZodTypeAny, {
5032
5516
  id: string;
5033
5517
  isPrimary: boolean;
5034
- email: string;
5035
5518
  createdAt: Date;
5036
5519
  updatedAt: Date;
5037
5520
  deletedAt: Date | null;
5038
- }[];
5039
- contactPhones: {
5521
+ phone: string;
5522
+ }, {
5040
5523
  id: string;
5041
5524
  isPrimary: boolean;
5042
5525
  createdAt: Date;
5043
5526
  updatedAt: Date;
5044
5527
  deletedAt: Date | null;
5045
5528
  phone: string;
5046
- }[];
5047
- platformContacts?: {
5048
- type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
5049
- id: string;
5050
- metadata: {
5051
- name: string;
5529
+ }>, "many">;
5530
+ activityLogs: z.ZodOptional<z.ZodArray<z.ZodObject<{
5531
+ id: z.ZodString;
5532
+ createdAt: z.ZodDate;
5533
+ updatedAt: z.ZodDate;
5534
+ deletedAt: z.ZodNullable<z.ZodDate>;
5535
+ entityId: z.ZodString;
5536
+ description: z.ZodString;
5537
+ entityType: z.ZodObject<{
5538
+ id: z.ZodString;
5539
+ createdAt: z.ZodDate;
5540
+ updatedAt: z.ZodDate;
5541
+ deletedAt: z.ZodNullable<z.ZodDate>;
5542
+ entity: z.ZodString;
5543
+ description: z.ZodNullable<z.ZodString>;
5544
+ }, "strip", z.ZodTypeAny, {
5052
5545
  id: string;
5053
- picture?: string | undefined;
5054
- additionalCredentials?: any;
5055
- };
5546
+ description: string | null;
5547
+ createdAt: Date;
5548
+ updatedAt: Date;
5549
+ deletedAt: Date | null;
5550
+ entity: string;
5551
+ }, {
5552
+ id: string;
5553
+ description: string | null;
5554
+ createdAt: Date;
5555
+ updatedAt: Date;
5556
+ deletedAt: Date | null;
5557
+ entity: string;
5558
+ }>;
5559
+ }, "strip", z.ZodTypeAny, {
5560
+ id: string;
5561
+ description: string;
5056
5562
  createdAt: Date;
5057
5563
  updatedAt: Date;
5058
5564
  deletedAt: Date | null;
5059
- channelId: string;
5060
- socialPlatformId: string;
5061
- }[] | undefined;
5062
- activityLogs?: {
5565
+ entityId: string;
5566
+ entityType: {
5567
+ id: string;
5568
+ description: string | null;
5569
+ createdAt: Date;
5570
+ updatedAt: Date;
5571
+ deletedAt: Date | null;
5572
+ entity: string;
5573
+ };
5574
+ }, {
5063
5575
  id: string;
5064
5576
  description: string;
5065
5577
  createdAt: Date;
@@ -5074,23 +5586,8 @@ export declare const chatContract: {
5074
5586
  deletedAt: Date | null;
5075
5587
  entity: string;
5076
5588
  };
5077
- }[] | undefined;
5078
- };
5079
- channelId: string;
5080
- socialPlatformId: string;
5081
- }, {
5082
- type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
5083
- id: string;
5084
- metadata: {
5085
- name: string;
5086
- id: string;
5087
- picture?: string | undefined;
5088
- additionalCredentials?: any;
5089
- };
5090
- createdAt: Date;
5091
- updatedAt: Date;
5092
- deletedAt: Date | null;
5093
- contact: {
5589
+ }>, "many">>;
5590
+ }, "strip", z.ZodTypeAny, {
5094
5591
  name: string;
5095
5592
  id: string;
5096
5593
  channel: string | null;
@@ -5161,719 +5658,465 @@ export declare const chatContract: {
5161
5658
  createdAt: Date;
5162
5659
  updatedAt: Date;
5163
5660
  deletedAt: Date | null;
5164
- }[];
5165
- contactPhones: {
5166
- id: string;
5167
- isPrimary: boolean;
5168
- createdAt: Date;
5169
- updatedAt: Date;
5170
- deletedAt: Date | null;
5171
- phone: string;
5172
- }[];
5173
- platformContacts?: {
5174
- type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
5175
- id: string;
5176
- metadata: {
5177
- name: string;
5178
- id: string;
5179
- picture?: string | undefined;
5180
- additionalCredentials?: any;
5181
- };
5182
- createdAt: Date;
5183
- updatedAt: Date;
5184
- deletedAt: Date | null;
5185
- channelId: string;
5186
- socialPlatformId: string;
5187
- }[] | undefined;
5188
- activityLogs?: {
5189
- id: string;
5190
- description: string;
5191
- createdAt: Date;
5192
- updatedAt: Date;
5193
- deletedAt: Date | null;
5194
- entityId: string;
5195
- entityType: {
5196
- id: string;
5197
- description: string | null;
5198
- createdAt: Date;
5199
- updatedAt: Date;
5200
- deletedAt: Date | null;
5201
- entity: string;
5202
- };
5203
- }[] | undefined;
5204
- };
5205
- channelId: string;
5206
- socialPlatformId: string;
5207
- }>;
5208
- actor: z.ZodObject<{
5209
- id: z.ZodString;
5210
- createdAt: z.ZodDate;
5211
- updatedAt: z.ZodDate;
5212
- deletedAt: z.ZodNullable<z.ZodDate>;
5213
- name: z.ZodString;
5214
- email: z.ZodString;
5215
- emailVerifiedAt: z.ZodNullable<z.ZodDate>;
5216
- password: z.ZodString;
5217
- address: z.ZodNullable<z.ZodString>;
5218
- phone: z.ZodNullable<z.ZodString>;
5219
- notificationCount: z.ZodNullable<z.ZodNumber>;
5220
- roles: z.ZodArray<z.ZodObject<{
5221
- id: z.ZodString;
5222
- createdAt: z.ZodDate;
5223
- updatedAt: z.ZodDate;
5224
- deletedAt: z.ZodNullable<z.ZodDate>;
5225
- systemName: z.ZodString;
5226
- displayName: z.ZodString;
5227
- description: z.ZodNullable<z.ZodString>;
5228
- permissions: z.ZodArray<z.ZodObject<{
5229
- id: z.ZodString;
5230
- createdAt: z.ZodDate;
5231
- updatedAt: z.ZodDate;
5232
- deletedAt: z.ZodNullable<z.ZodDate>;
5233
- systemName: z.ZodString;
5234
- displayName: z.ZodString;
5235
- description: z.ZodNullable<z.ZodString>;
5236
- }, "strip", z.ZodTypeAny, {
5237
- id: string;
5238
- description: string | null;
5239
- createdAt: Date;
5240
- updatedAt: Date;
5241
- deletedAt: Date | null;
5242
- systemName: string;
5243
- displayName: string;
5244
- }, {
5245
- id: string;
5246
- description: string | null;
5247
- createdAt: Date;
5248
- updatedAt: Date;
5249
- deletedAt: Date | null;
5250
- systemName: string;
5251
- displayName: string;
5252
- }>, "many">;
5253
- }, "strip", z.ZodTypeAny, {
5254
- id: string;
5255
- description: string | null;
5256
- createdAt: Date;
5257
- updatedAt: Date;
5258
- deletedAt: Date | null;
5259
- systemName: string;
5260
- displayName: string;
5261
- permissions: {
5262
- id: string;
5263
- description: string | null;
5264
- createdAt: Date;
5265
- updatedAt: Date;
5266
- deletedAt: Date | null;
5267
- systemName: string;
5268
- displayName: string;
5269
- }[];
5270
- }, {
5271
- id: string;
5272
- description: string | null;
5273
- createdAt: Date;
5274
- updatedAt: Date;
5275
- deletedAt: Date | null;
5276
- systemName: string;
5277
- displayName: string;
5278
- permissions: {
5279
- id: string;
5280
- description: string | null;
5281
- createdAt: Date;
5282
- updatedAt: Date;
5283
- deletedAt: Date | null;
5284
- systemName: string;
5285
- displayName: string;
5286
- }[];
5287
- }>, "many">;
5288
- extension: z.ZodObject<{
5289
- id: z.ZodString;
5290
- createdAt: z.ZodDate;
5291
- updatedAt: z.ZodDate;
5292
- deletedAt: z.ZodNullable<z.ZodDate>;
5293
- userId: z.ZodNullable<z.ZodString>;
5294
- sipServerUrl: z.ZodString;
5295
- sipUserName: z.ZodString;
5296
- webphoneLoginUser: z.ZodString;
5297
- extensionId: z.ZodNullable<z.ZodString>;
5298
- extensionName: z.ZodString;
5299
- telephonySignature: z.ZodNullable<z.ZodString>;
5300
- }, "strip", z.ZodTypeAny, {
5301
- id: string;
5302
- createdAt: Date;
5303
- updatedAt: Date;
5304
- deletedAt: Date | null;
5305
- userId: string | null;
5306
- sipServerUrl: string;
5307
- sipUserName: string;
5308
- webphoneLoginUser: string;
5309
- extensionId: string | null;
5310
- extensionName: string;
5311
- telephonySignature: string | null;
5312
- }, {
5313
- id: string;
5314
- createdAt: Date;
5315
- updatedAt: Date;
5316
- deletedAt: Date | null;
5317
- userId: string | null;
5318
- sipServerUrl: string;
5319
- sipUserName: string;
5320
- webphoneLoginUser: string;
5321
- extensionId: string | null;
5322
- extensionName: string;
5323
- telephonySignature: string | null;
5324
- }>;
5325
- }, "strip", z.ZodTypeAny, {
5326
- name: string;
5327
- id: string;
5328
- address: string | null;
5329
- email: string;
5330
- createdAt: Date;
5331
- updatedAt: Date;
5332
- deletedAt: Date | null;
5333
- emailVerifiedAt: Date | null;
5334
- password: string;
5335
- phone: string | null;
5336
- notificationCount: number | null;
5337
- roles: {
5338
- id: string;
5339
- description: string | null;
5340
- createdAt: Date;
5341
- updatedAt: Date;
5342
- deletedAt: Date | null;
5343
- systemName: string;
5344
- displayName: string;
5345
- permissions: {
5661
+ }[];
5662
+ contactPhones: {
5346
5663
  id: string;
5347
- description: string | null;
5664
+ isPrimary: boolean;
5348
5665
  createdAt: Date;
5349
5666
  updatedAt: Date;
5350
5667
  deletedAt: Date | null;
5351
- systemName: string;
5352
- displayName: string;
5668
+ phone: string;
5353
5669
  }[];
5354
- }[];
5355
- extension: {
5356
- id: string;
5357
- createdAt: Date;
5358
- updatedAt: Date;
5359
- deletedAt: Date | null;
5360
- userId: string | null;
5361
- sipServerUrl: string;
5362
- sipUserName: string;
5363
- webphoneLoginUser: string;
5364
- extensionId: string | null;
5365
- extensionName: string;
5366
- telephonySignature: string | null;
5367
- };
5368
- }, {
5369
- name: string;
5370
- id: string;
5371
- address: string | null;
5372
- email: string;
5373
- createdAt: Date;
5374
- updatedAt: Date;
5375
- deletedAt: Date | null;
5376
- emailVerifiedAt: Date | null;
5377
- password: string;
5378
- phone: string | null;
5379
- notificationCount: number | null;
5380
- roles: {
5381
- id: string;
5382
- description: string | null;
5383
- createdAt: Date;
5384
- updatedAt: Date;
5385
- deletedAt: Date | null;
5386
- systemName: string;
5387
- displayName: string;
5388
- permissions: {
5670
+ platformContacts?: {
5671
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
5389
5672
  id: string;
5390
- description: string | null;
5673
+ metadata: {
5674
+ name: string;
5675
+ id: string;
5676
+ picture?: string | undefined;
5677
+ additionalCredentials?: any;
5678
+ };
5391
5679
  createdAt: Date;
5392
5680
  updatedAt: Date;
5393
5681
  deletedAt: Date | null;
5394
- systemName: string;
5395
- displayName: string;
5396
- }[];
5397
- }[];
5398
- extension: {
5682
+ channelId: string;
5683
+ socialPlatformId: string;
5684
+ }[] | undefined;
5685
+ activityLogs?: {
5686
+ id: string;
5687
+ description: string;
5688
+ createdAt: Date;
5689
+ updatedAt: Date;
5690
+ deletedAt: Date | null;
5691
+ entityId: string;
5692
+ entityType: {
5693
+ id: string;
5694
+ description: string | null;
5695
+ createdAt: Date;
5696
+ updatedAt: Date;
5697
+ deletedAt: Date | null;
5698
+ entity: string;
5699
+ };
5700
+ }[] | undefined;
5701
+ }, {
5702
+ name: string;
5399
5703
  id: string;
5704
+ channel: string | null;
5705
+ address: string | null;
5400
5706
  createdAt: Date;
5401
5707
  updatedAt: Date;
5402
5708
  deletedAt: Date | null;
5403
- userId: string | null;
5404
- sipServerUrl: string;
5405
- sipUserName: string;
5406
- webphoneLoginUser: string;
5407
- extensionId: string | null;
5408
- extensionName: string;
5409
- telephonySignature: string | null;
5410
- };
5411
- }>;
5412
- assignee: z.ZodObject<{
5413
- id: z.ZodString;
5414
- createdAt: z.ZodDate;
5415
- updatedAt: z.ZodDate;
5416
- deletedAt: z.ZodNullable<z.ZodDate>;
5417
- name: z.ZodString;
5418
- email: z.ZodString;
5419
- emailVerifiedAt: z.ZodNullable<z.ZodDate>;
5420
- password: z.ZodString;
5421
- address: z.ZodNullable<z.ZodString>;
5422
- phone: z.ZodNullable<z.ZodString>;
5423
- notificationCount: z.ZodNullable<z.ZodNumber>;
5424
- roles: z.ZodArray<z.ZodObject<{
5425
- id: z.ZodString;
5426
- createdAt: z.ZodDate;
5427
- updatedAt: z.ZodDate;
5428
- deletedAt: z.ZodNullable<z.ZodDate>;
5429
- systemName: z.ZodString;
5430
- displayName: z.ZodString;
5431
- description: z.ZodNullable<z.ZodString>;
5432
- permissions: z.ZodArray<z.ZodObject<{
5433
- id: z.ZodString;
5434
- createdAt: z.ZodDate;
5435
- updatedAt: z.ZodDate;
5436
- deletedAt: z.ZodNullable<z.ZodDate>;
5437
- systemName: z.ZodString;
5438
- displayName: z.ZodString;
5439
- description: z.ZodNullable<z.ZodString>;
5440
- }, "strip", z.ZodTypeAny, {
5709
+ customFields: {
5441
5710
  id: string;
5442
- description: string | null;
5443
5711
  createdAt: Date;
5444
5712
  updatedAt: Date;
5445
5713
  deletedAt: Date | null;
5446
- systemName: string;
5447
- displayName: string;
5448
- }, {
5714
+ attribute: {
5715
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
5716
+ id: string;
5717
+ position: number;
5718
+ createdAt: Date;
5719
+ updatedAt: Date;
5720
+ deletedAt: Date | null;
5721
+ systemName: string;
5722
+ displayName: string;
5723
+ isDefault: boolean;
5724
+ isArchived: boolean;
5725
+ isRequired: boolean;
5726
+ isUnique: boolean;
5727
+ };
5728
+ textValue: string | null;
5729
+ booleanValue: boolean | null;
5730
+ numberValue: number | null;
5731
+ dateValue: Date | null;
5732
+ uploads: {
5733
+ id: string;
5734
+ status: string | null;
5735
+ createdAt: Date;
5736
+ updatedAt: Date;
5737
+ deletedAt: Date | null;
5738
+ fileName: string;
5739
+ fileKey: string;
5740
+ bucketName: string;
5741
+ fileSize: number;
5742
+ fileUrl: string | null;
5743
+ }[];
5744
+ }[];
5745
+ company: {
5449
5746
  id: string;
5450
- description: string | null;
5451
5747
  createdAt: Date;
5452
5748
  updatedAt: Date;
5453
5749
  deletedAt: Date | null;
5454
- systemName: string;
5455
- displayName: string;
5456
- }>, "many">;
5457
- }, "strip", z.ZodTypeAny, {
5458
- id: string;
5459
- description: string | null;
5460
- createdAt: Date;
5461
- updatedAt: Date;
5462
- deletedAt: Date | null;
5463
- systemName: string;
5464
- displayName: string;
5465
- permissions: {
5750
+ name?: string | undefined;
5751
+ address?: string | null | undefined;
5752
+ phone?: string | null | undefined;
5753
+ industry?: string | null | undefined;
5754
+ } | null;
5755
+ notes: string | null;
5756
+ contactProfile: string | null;
5757
+ socialProfileUrl: string | null;
5758
+ tags: {
5759
+ name: string;
5466
5760
  id: string;
5467
- description: string | null;
5468
5761
  createdAt: Date;
5469
5762
  updatedAt: Date;
5470
5763
  deletedAt: Date | null;
5471
- systemName: string;
5472
- displayName: string;
5473
5764
  }[];
5474
- }, {
5475
- id: string;
5476
- description: string | null;
5477
- createdAt: Date;
5478
- updatedAt: Date;
5479
- deletedAt: Date | null;
5480
- systemName: string;
5481
- displayName: string;
5482
- permissions: {
5765
+ contactEmails: {
5483
5766
  id: string;
5484
- description: string | null;
5767
+ isPrimary: boolean;
5768
+ email: string;
5485
5769
  createdAt: Date;
5486
5770
  updatedAt: Date;
5487
5771
  deletedAt: Date | null;
5488
- systemName: string;
5489
- displayName: string;
5490
5772
  }[];
5491
- }>, "many">;
5492
- extension: z.ZodObject<{
5493
- id: z.ZodString;
5494
- createdAt: z.ZodDate;
5495
- updatedAt: z.ZodDate;
5496
- deletedAt: z.ZodNullable<z.ZodDate>;
5497
- userId: z.ZodNullable<z.ZodString>;
5498
- sipServerUrl: z.ZodString;
5499
- sipUserName: z.ZodString;
5500
- webphoneLoginUser: z.ZodString;
5501
- extensionId: z.ZodNullable<z.ZodString>;
5502
- extensionName: z.ZodString;
5503
- telephonySignature: z.ZodNullable<z.ZodString>;
5504
- }, "strip", z.ZodTypeAny, {
5505
- id: string;
5506
- createdAt: Date;
5507
- updatedAt: Date;
5508
- deletedAt: Date | null;
5509
- userId: string | null;
5510
- sipServerUrl: string;
5511
- sipUserName: string;
5512
- webphoneLoginUser: string;
5513
- extensionId: string | null;
5514
- extensionName: string;
5515
- telephonySignature: string | null;
5516
- }, {
5517
- id: string;
5518
- createdAt: Date;
5519
- updatedAt: Date;
5520
- deletedAt: Date | null;
5521
- userId: string | null;
5522
- sipServerUrl: string;
5523
- sipUserName: string;
5524
- webphoneLoginUser: string;
5525
- extensionId: string | null;
5526
- extensionName: string;
5527
- telephonySignature: string | null;
5528
- }>;
5529
- }, "strip", z.ZodTypeAny, {
5530
- name: string;
5531
- id: string;
5532
- address: string | null;
5533
- email: string;
5534
- createdAt: Date;
5535
- updatedAt: Date;
5536
- deletedAt: Date | null;
5537
- emailVerifiedAt: Date | null;
5538
- password: string;
5539
- phone: string | null;
5540
- notificationCount: number | null;
5541
- roles: {
5542
- id: string;
5543
- description: string | null;
5544
- createdAt: Date;
5545
- updatedAt: Date;
5546
- deletedAt: Date | null;
5547
- systemName: string;
5548
- displayName: string;
5549
- permissions: {
5773
+ contactPhones: {
5550
5774
  id: string;
5551
- description: string | null;
5775
+ isPrimary: boolean;
5552
5776
  createdAt: Date;
5553
5777
  updatedAt: Date;
5554
5778
  deletedAt: Date | null;
5555
- systemName: string;
5556
- displayName: string;
5779
+ phone: string;
5557
5780
  }[];
5558
- }[];
5559
- extension: {
5781
+ platformContacts?: {
5782
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
5783
+ id: string;
5784
+ metadata: {
5785
+ name: string;
5786
+ id: string;
5787
+ picture?: string | undefined;
5788
+ additionalCredentials?: any;
5789
+ };
5790
+ createdAt: Date;
5791
+ updatedAt: Date;
5792
+ deletedAt: Date | null;
5793
+ channelId: string;
5794
+ socialPlatformId: string;
5795
+ }[] | undefined;
5796
+ activityLogs?: {
5797
+ id: string;
5798
+ description: string;
5799
+ createdAt: Date;
5800
+ updatedAt: Date;
5801
+ deletedAt: Date | null;
5802
+ entityId: string;
5803
+ entityType: {
5804
+ id: string;
5805
+ description: string | null;
5806
+ createdAt: Date;
5807
+ updatedAt: Date;
5808
+ deletedAt: Date | null;
5809
+ entity: string;
5810
+ };
5811
+ }[] | undefined;
5812
+ }>;
5813
+ }, "strip", z.ZodTypeAny, {
5814
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
5815
+ id: string;
5816
+ metadata: {
5817
+ name: string;
5560
5818
  id: string;
5561
- createdAt: Date;
5562
- updatedAt: Date;
5563
- deletedAt: Date | null;
5564
- userId: string | null;
5565
- sipServerUrl: string;
5566
- sipUserName: string;
5567
- webphoneLoginUser: string;
5568
- extensionId: string | null;
5569
- extensionName: string;
5570
- telephonySignature: string | null;
5819
+ picture?: string | undefined;
5820
+ additionalCredentials?: any;
5571
5821
  };
5572
- }, {
5573
- name: string;
5574
- id: string;
5575
- address: string | null;
5576
- email: string;
5577
5822
  createdAt: Date;
5578
5823
  updatedAt: Date;
5579
5824
  deletedAt: Date | null;
5580
- emailVerifiedAt: Date | null;
5581
- password: string;
5582
- phone: string | null;
5583
- notificationCount: number | null;
5584
- roles: {
5825
+ contact: {
5826
+ name: string;
5585
5827
  id: string;
5586
- description: string | null;
5828
+ channel: string | null;
5829
+ address: string | null;
5587
5830
  createdAt: Date;
5588
5831
  updatedAt: Date;
5589
5832
  deletedAt: Date | null;
5590
- systemName: string;
5591
- displayName: string;
5592
- permissions: {
5833
+ customFields: {
5593
5834
  id: string;
5594
- description: string | null;
5595
5835
  createdAt: Date;
5596
5836
  updatedAt: Date;
5597
5837
  deletedAt: Date | null;
5598
- systemName: string;
5599
- displayName: string;
5600
- }[];
5601
- }[];
5602
- extension: {
5603
- id: string;
5604
- createdAt: Date;
5605
- updatedAt: Date;
5606
- deletedAt: Date | null;
5607
- userId: string | null;
5608
- sipServerUrl: string;
5609
- sipUserName: string;
5610
- webphoneLoginUser: string;
5611
- extensionId: string | null;
5612
- extensionName: string;
5613
- telephonySignature: string | null;
5614
- };
5615
- }>;
5616
- channel: z.ZodObject<{
5617
- id: z.ZodString;
5618
- createdAt: z.ZodDate;
5619
- updatedAt: z.ZodDate;
5620
- deletedAt: z.ZodNullable<z.ZodDate>;
5621
- name: z.ZodString;
5622
- type: z.ZodEnum<["whatsapp", "messenger", "telegram", "instagram", "line", "viber", "kakao", "shopee", "lazada", "webchat", "facebook_feed", "sms_vonage"]>;
5623
- metadata: z.ZodObject<{
5624
- id: z.ZodString;
5625
- name: z.ZodString;
5626
- accessToken: z.ZodOptional<z.ZodString>;
5627
- channelSecret: z.ZodOptional<z.ZodString>;
5628
- additionalCredentials: z.ZodOptional<z.ZodAny>;
5629
- senderId: z.ZodOptional<z.ZodString>;
5630
- whatsapp: z.ZodOptional<z.ZodObject<{
5631
- wabaBusinessId: z.ZodOptional<z.ZodString>;
5632
- wabaExternalId: z.ZodString;
5633
- phoneNumberId: z.ZodString;
5634
- email: z.ZodString;
5635
- clientId: z.ZodOptional<z.ZodString>;
5636
- channelId: z.ZodOptional<z.ZodString>;
5637
- status: z.ZodOptional<z.ZodEnum<["pending", "active"]>>;
5638
- apiKey: z.ZodOptional<z.ZodString>;
5639
- }, "strip", z.ZodTypeAny, {
5640
- email: string;
5641
- wabaExternalId: string;
5642
- phoneNumberId: string;
5643
- status?: "active" | "pending" | undefined;
5644
- channelId?: string | undefined;
5645
- wabaBusinessId?: string | undefined;
5646
- clientId?: string | undefined;
5647
- apiKey?: string | undefined;
5648
- }, {
5649
- email: string;
5650
- wabaExternalId: string;
5651
- phoneNumberId: string;
5652
- status?: "active" | "pending" | undefined;
5653
- channelId?: string | undefined;
5654
- wabaBusinessId?: string | undefined;
5655
- clientId?: string | undefined;
5656
- apiKey?: string | undefined;
5657
- }>>;
5658
- vonageCredentials: z.ZodOptional<z.ZodObject<{
5659
- mobileNumber: z.ZodString;
5660
- apiKey: z.ZodString;
5661
- apiSecret: z.ZodString;
5662
- }, "strip", z.ZodTypeAny, {
5663
- apiKey: string;
5664
- mobileNumber: string;
5665
- apiSecret: string;
5666
- }, {
5667
- apiKey: string;
5668
- mobileNumber: string;
5669
- apiSecret: string;
5670
- }>>;
5671
- lineRichMenuId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
5672
- messengerIntegrationType: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"own">, z.ZodLiteral<"business">]>>;
5673
- }, "strip", z.ZodTypeAny, {
5674
- name: string;
5675
- id: string;
5676
- accessToken?: string | undefined;
5677
- whatsapp?: {
5678
- email: string;
5679
- wabaExternalId: string;
5680
- phoneNumberId: string;
5681
- status?: "active" | "pending" | undefined;
5682
- channelId?: string | undefined;
5683
- wabaBusinessId?: string | undefined;
5684
- clientId?: string | undefined;
5685
- apiKey?: string | undefined;
5686
- } | undefined;
5687
- additionalCredentials?: any;
5688
- channelSecret?: string | undefined;
5689
- senderId?: string | undefined;
5690
- vonageCredentials?: {
5691
- apiKey: string;
5692
- mobileNumber: string;
5693
- apiSecret: string;
5694
- } | undefined;
5695
- lineRichMenuId?: string | null | undefined;
5696
- messengerIntegrationType?: "own" | "business" | undefined;
5697
- }, {
5698
- name: string;
5699
- id: string;
5700
- accessToken?: string | undefined;
5701
- whatsapp?: {
5702
- email: string;
5703
- wabaExternalId: string;
5704
- phoneNumberId: string;
5705
- status?: "active" | "pending" | undefined;
5706
- channelId?: string | undefined;
5707
- wabaBusinessId?: string | undefined;
5708
- clientId?: string | undefined;
5709
- apiKey?: string | undefined;
5710
- } | undefined;
5711
- additionalCredentials?: any;
5712
- channelSecret?: string | undefined;
5713
- senderId?: string | undefined;
5714
- vonageCredentials?: {
5715
- apiKey: string;
5716
- mobileNumber: string;
5717
- apiSecret: string;
5718
- } | undefined;
5719
- lineRichMenuId?: string | null | undefined;
5720
- messengerIntegrationType?: "own" | "business" | undefined;
5721
- }>;
5722
- brandName: z.ZodString;
5723
- platformId: z.ZodString;
5724
- status: z.ZodUnion<[z.ZodLiteral<true>, z.ZodLiteral<false>]>;
5725
- isReloginRequired: z.ZodBoolean;
5726
- connectedUserName: z.ZodString;
5727
- connectedUserId: z.ZodString;
5728
- botpressBot: z.ZodNullable<z.ZodObject<{
5729
- id: z.ZodString;
5730
- name: z.ZodString;
5731
- botId: z.ZodString;
5732
- integrationId: z.ZodString;
5733
- accessToken: z.ZodString;
5734
- }, "strip", z.ZodTypeAny, {
5735
- name: string;
5736
- id: string;
5737
- accessToken: string;
5738
- botId: string;
5739
- integrationId: string;
5740
- }, {
5741
- name: string;
5742
- id: string;
5743
- accessToken: string;
5744
- botId: string;
5745
- integrationId: string;
5746
- }>>;
5747
- actor: z.ZodObject<{
5748
- id: z.ZodString;
5749
- createdAt: z.ZodDate;
5750
- updatedAt: z.ZodDate;
5751
- deletedAt: z.ZodNullable<z.ZodDate>;
5752
- name: z.ZodString;
5753
- email: z.ZodString;
5754
- emailVerifiedAt: z.ZodNullable<z.ZodDate>;
5755
- password: z.ZodString;
5756
- address: z.ZodNullable<z.ZodString>;
5757
- phone: z.ZodNullable<z.ZodString>;
5758
- notificationCount: z.ZodNullable<z.ZodNumber>;
5759
- roles: z.ZodArray<z.ZodObject<{
5760
- id: z.ZodString;
5761
- createdAt: z.ZodDate;
5762
- updatedAt: z.ZodDate;
5763
- deletedAt: z.ZodNullable<z.ZodDate>;
5764
- systemName: z.ZodString;
5765
- displayName: z.ZodString;
5766
- description: z.ZodNullable<z.ZodString>;
5767
- permissions: z.ZodArray<z.ZodObject<{
5768
- id: z.ZodString;
5769
- createdAt: z.ZodDate;
5770
- updatedAt: z.ZodDate;
5771
- deletedAt: z.ZodNullable<z.ZodDate>;
5772
- systemName: z.ZodString;
5773
- displayName: z.ZodString;
5774
- description: z.ZodNullable<z.ZodString>;
5775
- }, "strip", z.ZodTypeAny, {
5838
+ attribute: {
5839
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
5776
5840
  id: string;
5777
- description: string | null;
5841
+ position: number;
5778
5842
  createdAt: Date;
5779
5843
  updatedAt: Date;
5780
5844
  deletedAt: Date | null;
5781
5845
  systemName: string;
5782
5846
  displayName: string;
5783
- }, {
5847
+ isDefault: boolean;
5848
+ isArchived: boolean;
5849
+ isRequired: boolean;
5850
+ isUnique: boolean;
5851
+ };
5852
+ textValue: string | null;
5853
+ booleanValue: boolean | null;
5854
+ numberValue: number | null;
5855
+ dateValue: Date | null;
5856
+ uploads: {
5784
5857
  id: string;
5785
- description: string | null;
5858
+ status: string | null;
5786
5859
  createdAt: Date;
5787
5860
  updatedAt: Date;
5788
5861
  deletedAt: Date | null;
5789
- systemName: string;
5790
- displayName: string;
5791
- }>, "many">;
5792
- }, "strip", z.ZodTypeAny, {
5862
+ fileName: string;
5863
+ fileKey: string;
5864
+ bucketName: string;
5865
+ fileSize: number;
5866
+ fileUrl: string | null;
5867
+ }[];
5868
+ }[];
5869
+ company: {
5793
5870
  id: string;
5794
- description: string | null;
5795
5871
  createdAt: Date;
5796
5872
  updatedAt: Date;
5797
5873
  deletedAt: Date | null;
5798
- systemName: string;
5799
- displayName: string;
5800
- permissions: {
5874
+ name?: string | undefined;
5875
+ address?: string | null | undefined;
5876
+ phone?: string | null | undefined;
5877
+ industry?: string | null | undefined;
5878
+ } | null;
5879
+ notes: string | null;
5880
+ contactProfile: string | null;
5881
+ socialProfileUrl: string | null;
5882
+ tags: {
5883
+ name: string;
5884
+ id: string;
5885
+ createdAt: Date;
5886
+ updatedAt: Date;
5887
+ deletedAt: Date | null;
5888
+ }[];
5889
+ contactEmails: {
5890
+ id: string;
5891
+ isPrimary: boolean;
5892
+ email: string;
5893
+ createdAt: Date;
5894
+ updatedAt: Date;
5895
+ deletedAt: Date | null;
5896
+ }[];
5897
+ contactPhones: {
5898
+ id: string;
5899
+ isPrimary: boolean;
5900
+ createdAt: Date;
5901
+ updatedAt: Date;
5902
+ deletedAt: Date | null;
5903
+ phone: string;
5904
+ }[];
5905
+ platformContacts?: {
5906
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
5907
+ id: string;
5908
+ metadata: {
5909
+ name: string;
5910
+ id: string;
5911
+ picture?: string | undefined;
5912
+ additionalCredentials?: any;
5913
+ };
5914
+ createdAt: Date;
5915
+ updatedAt: Date;
5916
+ deletedAt: Date | null;
5917
+ channelId: string;
5918
+ socialPlatformId: string;
5919
+ }[] | undefined;
5920
+ activityLogs?: {
5921
+ id: string;
5922
+ description: string;
5923
+ createdAt: Date;
5924
+ updatedAt: Date;
5925
+ deletedAt: Date | null;
5926
+ entityId: string;
5927
+ entityType: {
5801
5928
  id: string;
5802
5929
  description: string | null;
5803
5930
  createdAt: Date;
5804
5931
  updatedAt: Date;
5805
5932
  deletedAt: Date | null;
5933
+ entity: string;
5934
+ };
5935
+ }[] | undefined;
5936
+ };
5937
+ channelId: string;
5938
+ socialPlatformId: string;
5939
+ }, {
5940
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
5941
+ id: string;
5942
+ metadata: {
5943
+ name: string;
5944
+ id: string;
5945
+ picture?: string | undefined;
5946
+ additionalCredentials?: any;
5947
+ };
5948
+ createdAt: Date;
5949
+ updatedAt: Date;
5950
+ deletedAt: Date | null;
5951
+ contact: {
5952
+ name: string;
5953
+ id: string;
5954
+ channel: string | null;
5955
+ address: string | null;
5956
+ createdAt: Date;
5957
+ updatedAt: Date;
5958
+ deletedAt: Date | null;
5959
+ customFields: {
5960
+ id: string;
5961
+ createdAt: Date;
5962
+ updatedAt: Date;
5963
+ deletedAt: Date | null;
5964
+ attribute: {
5965
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
5966
+ id: string;
5967
+ position: number;
5968
+ createdAt: Date;
5969
+ updatedAt: Date;
5970
+ deletedAt: Date | null;
5806
5971
  systemName: string;
5807
5972
  displayName: string;
5973
+ isDefault: boolean;
5974
+ isArchived: boolean;
5975
+ isRequired: boolean;
5976
+ isUnique: boolean;
5977
+ };
5978
+ textValue: string | null;
5979
+ booleanValue: boolean | null;
5980
+ numberValue: number | null;
5981
+ dateValue: Date | null;
5982
+ uploads: {
5983
+ id: string;
5984
+ status: string | null;
5985
+ createdAt: Date;
5986
+ updatedAt: Date;
5987
+ deletedAt: Date | null;
5988
+ fileName: string;
5989
+ fileKey: string;
5990
+ bucketName: string;
5991
+ fileSize: number;
5992
+ fileUrl: string | null;
5808
5993
  }[];
5809
- }, {
5994
+ }[];
5995
+ company: {
5810
5996
  id: string;
5811
- description: string | null;
5812
5997
  createdAt: Date;
5813
5998
  updatedAt: Date;
5814
5999
  deletedAt: Date | null;
5815
- systemName: string;
5816
- displayName: string;
5817
- permissions: {
6000
+ name?: string | undefined;
6001
+ address?: string | null | undefined;
6002
+ phone?: string | null | undefined;
6003
+ industry?: string | null | undefined;
6004
+ } | null;
6005
+ notes: string | null;
6006
+ contactProfile: string | null;
6007
+ socialProfileUrl: string | null;
6008
+ tags: {
6009
+ name: string;
6010
+ id: string;
6011
+ createdAt: Date;
6012
+ updatedAt: Date;
6013
+ deletedAt: Date | null;
6014
+ }[];
6015
+ contactEmails: {
6016
+ id: string;
6017
+ isPrimary: boolean;
6018
+ email: string;
6019
+ createdAt: Date;
6020
+ updatedAt: Date;
6021
+ deletedAt: Date | null;
6022
+ }[];
6023
+ contactPhones: {
6024
+ id: string;
6025
+ isPrimary: boolean;
6026
+ createdAt: Date;
6027
+ updatedAt: Date;
6028
+ deletedAt: Date | null;
6029
+ phone: string;
6030
+ }[];
6031
+ platformContacts?: {
6032
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
6033
+ id: string;
6034
+ metadata: {
6035
+ name: string;
6036
+ id: string;
6037
+ picture?: string | undefined;
6038
+ additionalCredentials?: any;
6039
+ };
6040
+ createdAt: Date;
6041
+ updatedAt: Date;
6042
+ deletedAt: Date | null;
6043
+ channelId: string;
6044
+ socialPlatformId: string;
6045
+ }[] | undefined;
6046
+ activityLogs?: {
6047
+ id: string;
6048
+ description: string;
6049
+ createdAt: Date;
6050
+ updatedAt: Date;
6051
+ deletedAt: Date | null;
6052
+ entityId: string;
6053
+ entityType: {
5818
6054
  id: string;
5819
6055
  description: string | null;
5820
6056
  createdAt: Date;
5821
6057
  updatedAt: Date;
5822
6058
  deletedAt: Date | null;
5823
- systemName: string;
5824
- displayName: string;
5825
- }[];
5826
- }>, "many">;
5827
- extension: z.ZodObject<{
6059
+ entity: string;
6060
+ };
6061
+ }[] | undefined;
6062
+ };
6063
+ channelId: string;
6064
+ socialPlatformId: string;
6065
+ }>;
6066
+ assignee: z.ZodObject<{
6067
+ id: z.ZodString;
6068
+ createdAt: z.ZodDate;
6069
+ updatedAt: z.ZodDate;
6070
+ deletedAt: z.ZodNullable<z.ZodDate>;
6071
+ name: z.ZodString;
6072
+ email: z.ZodString;
6073
+ emailVerifiedAt: z.ZodNullable<z.ZodDate>;
6074
+ password: z.ZodString;
6075
+ address: z.ZodNullable<z.ZodString>;
6076
+ phone: z.ZodNullable<z.ZodString>;
6077
+ notificationCount: z.ZodNullable<z.ZodNumber>;
6078
+ roles: z.ZodArray<z.ZodObject<{
6079
+ id: z.ZodString;
6080
+ createdAt: z.ZodDate;
6081
+ updatedAt: z.ZodDate;
6082
+ deletedAt: z.ZodNullable<z.ZodDate>;
6083
+ systemName: z.ZodString;
6084
+ displayName: z.ZodString;
6085
+ description: z.ZodNullable<z.ZodString>;
6086
+ permissions: z.ZodArray<z.ZodObject<{
5828
6087
  id: z.ZodString;
5829
6088
  createdAt: z.ZodDate;
5830
6089
  updatedAt: z.ZodDate;
5831
6090
  deletedAt: z.ZodNullable<z.ZodDate>;
5832
- userId: z.ZodNullable<z.ZodString>;
5833
- sipServerUrl: z.ZodString;
5834
- sipUserName: z.ZodString;
5835
- webphoneLoginUser: z.ZodString;
5836
- extensionId: z.ZodNullable<z.ZodString>;
5837
- extensionName: z.ZodString;
5838
- telephonySignature: z.ZodNullable<z.ZodString>;
6091
+ systemName: z.ZodString;
6092
+ displayName: z.ZodString;
6093
+ description: z.ZodNullable<z.ZodString>;
5839
6094
  }, "strip", z.ZodTypeAny, {
5840
6095
  id: string;
5841
- createdAt: Date;
5842
- updatedAt: Date;
5843
- deletedAt: Date | null;
5844
- userId: string | null;
5845
- sipServerUrl: string;
5846
- sipUserName: string;
5847
- webphoneLoginUser: string;
5848
- extensionId: string | null;
5849
- extensionName: string;
5850
- telephonySignature: string | null;
6096
+ description: string | null;
6097
+ createdAt: Date;
6098
+ updatedAt: Date;
6099
+ deletedAt: Date | null;
6100
+ systemName: string;
6101
+ displayName: string;
5851
6102
  }, {
5852
6103
  id: string;
6104
+ description: string | null;
5853
6105
  createdAt: Date;
5854
6106
  updatedAt: Date;
5855
6107
  deletedAt: Date | null;
5856
- userId: string | null;
5857
- sipServerUrl: string;
5858
- sipUserName: string;
5859
- webphoneLoginUser: string;
5860
- extensionId: string | null;
5861
- extensionName: string;
5862
- telephonySignature: string | null;
5863
- }>;
6108
+ systemName: string;
6109
+ displayName: string;
6110
+ }>, "many">;
5864
6111
  }, "strip", z.ZodTypeAny, {
5865
- name: string;
5866
6112
  id: string;
5867
- address: string | null;
5868
- email: string;
6113
+ description: string | null;
5869
6114
  createdAt: Date;
5870
6115
  updatedAt: Date;
5871
6116
  deletedAt: Date | null;
5872
- emailVerifiedAt: Date | null;
5873
- password: string;
5874
- phone: string | null;
5875
- notificationCount: number | null;
5876
- roles: {
6117
+ systemName: string;
6118
+ displayName: string;
6119
+ permissions: {
5877
6120
  id: string;
5878
6121
  description: string | null;
5879
6122
  createdAt: Date;
@@ -5881,42 +6124,16 @@ export declare const chatContract: {
5881
6124
  deletedAt: Date | null;
5882
6125
  systemName: string;
5883
6126
  displayName: string;
5884
- permissions: {
5885
- id: string;
5886
- description: string | null;
5887
- createdAt: Date;
5888
- updatedAt: Date;
5889
- deletedAt: Date | null;
5890
- systemName: string;
5891
- displayName: string;
5892
- }[];
5893
6127
  }[];
5894
- extension: {
5895
- id: string;
5896
- createdAt: Date;
5897
- updatedAt: Date;
5898
- deletedAt: Date | null;
5899
- userId: string | null;
5900
- sipServerUrl: string;
5901
- sipUserName: string;
5902
- webphoneLoginUser: string;
5903
- extensionId: string | null;
5904
- extensionName: string;
5905
- telephonySignature: string | null;
5906
- };
5907
6128
  }, {
5908
- name: string;
5909
6129
  id: string;
5910
- address: string | null;
5911
- email: string;
6130
+ description: string | null;
5912
6131
  createdAt: Date;
5913
6132
  updatedAt: Date;
5914
6133
  deletedAt: Date | null;
5915
- emailVerifiedAt: Date | null;
5916
- password: string;
5917
- phone: string | null;
5918
- notificationCount: number | null;
5919
- roles: {
6134
+ systemName: string;
6135
+ displayName: string;
6136
+ permissions: {
5920
6137
  id: string;
5921
6138
  description: string | null;
5922
6139
  createdAt: Date;
@@ -5924,76 +6141,66 @@ export declare const chatContract: {
5924
6141
  deletedAt: Date | null;
5925
6142
  systemName: string;
5926
6143
  displayName: string;
5927
- permissions: {
5928
- id: string;
5929
- description: string | null;
5930
- createdAt: Date;
5931
- updatedAt: Date;
5932
- deletedAt: Date | null;
5933
- systemName: string;
5934
- displayName: string;
5935
- }[];
5936
6144
  }[];
5937
- extension: {
5938
- id: string;
5939
- createdAt: Date;
5940
- updatedAt: Date;
5941
- deletedAt: Date | null;
5942
- userId: string | null;
5943
- sipServerUrl: string;
5944
- sipUserName: string;
5945
- webphoneLoginUser: string;
5946
- extensionId: string | null;
5947
- extensionName: string;
5948
- telephonySignature: string | null;
5949
- };
6145
+ }>, "many">;
6146
+ extension: z.ZodObject<{
6147
+ id: z.ZodString;
6148
+ createdAt: z.ZodDate;
6149
+ updatedAt: z.ZodDate;
6150
+ deletedAt: z.ZodNullable<z.ZodDate>;
6151
+ userId: z.ZodNullable<z.ZodString>;
6152
+ sipServerUrl: z.ZodString;
6153
+ sipUserName: z.ZodString;
6154
+ webphoneLoginUser: z.ZodString;
6155
+ extensionId: z.ZodNullable<z.ZodString>;
6156
+ extensionName: z.ZodString;
6157
+ telephonySignature: z.ZodNullable<z.ZodString>;
6158
+ }, "strip", z.ZodTypeAny, {
6159
+ id: string;
6160
+ createdAt: Date;
6161
+ updatedAt: Date;
6162
+ deletedAt: Date | null;
6163
+ userId: string | null;
6164
+ sipServerUrl: string;
6165
+ sipUserName: string;
6166
+ webphoneLoginUser: string;
6167
+ extensionId: string | null;
6168
+ extensionName: string;
6169
+ telephonySignature: string | null;
6170
+ }, {
6171
+ id: string;
6172
+ createdAt: Date;
6173
+ updatedAt: Date;
6174
+ deletedAt: Date | null;
6175
+ userId: string | null;
6176
+ sipServerUrl: string;
6177
+ sipUserName: string;
6178
+ webphoneLoginUser: string;
6179
+ extensionId: string | null;
6180
+ extensionName: string;
6181
+ telephonySignature: string | null;
5950
6182
  }>;
5951
6183
  }, "strip", z.ZodTypeAny, {
5952
6184
  name: string;
5953
- type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
5954
6185
  id: string;
5955
- metadata: {
5956
- name: string;
5957
- id: string;
5958
- accessToken?: string | undefined;
5959
- whatsapp?: {
5960
- email: string;
5961
- wabaExternalId: string;
5962
- phoneNumberId: string;
5963
- status?: "active" | "pending" | undefined;
5964
- channelId?: string | undefined;
5965
- wabaBusinessId?: string | undefined;
5966
- clientId?: string | undefined;
5967
- apiKey?: string | undefined;
5968
- } | undefined;
5969
- additionalCredentials?: any;
5970
- channelSecret?: string | undefined;
5971
- senderId?: string | undefined;
5972
- vonageCredentials?: {
5973
- apiKey: string;
5974
- mobileNumber: string;
5975
- apiSecret: string;
5976
- } | undefined;
5977
- lineRichMenuId?: string | null | undefined;
5978
- messengerIntegrationType?: "own" | "business" | undefined;
5979
- };
5980
- status: boolean;
6186
+ address: string | null;
6187
+ email: string;
5981
6188
  createdAt: Date;
5982
6189
  updatedAt: Date;
5983
6190
  deletedAt: Date | null;
5984
- actor: {
5985
- name: string;
6191
+ emailVerifiedAt: Date | null;
6192
+ password: string;
6193
+ phone: string | null;
6194
+ notificationCount: number | null;
6195
+ roles: {
5986
6196
  id: string;
5987
- address: string | null;
5988
- email: string;
6197
+ description: string | null;
5989
6198
  createdAt: Date;
5990
6199
  updatedAt: Date;
5991
6200
  deletedAt: Date | null;
5992
- emailVerifiedAt: Date | null;
5993
- password: string;
5994
- phone: string | null;
5995
- notificationCount: number | null;
5996
- roles: {
6201
+ systemName: string;
6202
+ displayName: string;
6203
+ permissions: {
5997
6204
  id: string;
5998
6205
  description: string | null;
5999
6206
  createdAt: Date;
@@ -6001,88 +6208,42 @@ export declare const chatContract: {
6001
6208
  deletedAt: Date | null;
6002
6209
  systemName: string;
6003
6210
  displayName: string;
6004
- permissions: {
6005
- id: string;
6006
- description: string | null;
6007
- createdAt: Date;
6008
- updatedAt: Date;
6009
- deletedAt: Date | null;
6010
- systemName: string;
6011
- displayName: string;
6012
- }[];
6013
6211
  }[];
6014
- extension: {
6015
- id: string;
6016
- createdAt: Date;
6017
- updatedAt: Date;
6018
- deletedAt: Date | null;
6019
- userId: string | null;
6020
- sipServerUrl: string;
6021
- sipUserName: string;
6022
- webphoneLoginUser: string;
6023
- extensionId: string | null;
6024
- extensionName: string;
6025
- telephonySignature: string | null;
6026
- };
6027
- };
6028
- brandName: string;
6029
- platformId: string;
6030
- isReloginRequired: boolean;
6031
- connectedUserName: string;
6032
- connectedUserId: string;
6033
- botpressBot: {
6034
- name: string;
6212
+ }[];
6213
+ extension: {
6035
6214
  id: string;
6036
- accessToken: string;
6037
- botId: string;
6038
- integrationId: string;
6039
- } | null;
6215
+ createdAt: Date;
6216
+ updatedAt: Date;
6217
+ deletedAt: Date | null;
6218
+ userId: string | null;
6219
+ sipServerUrl: string;
6220
+ sipUserName: string;
6221
+ webphoneLoginUser: string;
6222
+ extensionId: string | null;
6223
+ extensionName: string;
6224
+ telephonySignature: string | null;
6225
+ };
6040
6226
  }, {
6041
6227
  name: string;
6042
- type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
6043
6228
  id: string;
6044
- metadata: {
6045
- name: string;
6046
- id: string;
6047
- accessToken?: string | undefined;
6048
- whatsapp?: {
6049
- email: string;
6050
- wabaExternalId: string;
6051
- phoneNumberId: string;
6052
- status?: "active" | "pending" | undefined;
6053
- channelId?: string | undefined;
6054
- wabaBusinessId?: string | undefined;
6055
- clientId?: string | undefined;
6056
- apiKey?: string | undefined;
6057
- } | undefined;
6058
- additionalCredentials?: any;
6059
- channelSecret?: string | undefined;
6060
- senderId?: string | undefined;
6061
- vonageCredentials?: {
6062
- apiKey: string;
6063
- mobileNumber: string;
6064
- apiSecret: string;
6065
- } | undefined;
6066
- lineRichMenuId?: string | null | undefined;
6067
- messengerIntegrationType?: "own" | "business" | undefined;
6068
- };
6069
- status: boolean;
6229
+ address: string | null;
6230
+ email: string;
6070
6231
  createdAt: Date;
6071
6232
  updatedAt: Date;
6072
6233
  deletedAt: Date | null;
6073
- actor: {
6074
- name: string;
6234
+ emailVerifiedAt: Date | null;
6235
+ password: string;
6236
+ phone: string | null;
6237
+ notificationCount: number | null;
6238
+ roles: {
6075
6239
  id: string;
6076
- address: string | null;
6077
- email: string;
6240
+ description: string | null;
6078
6241
  createdAt: Date;
6079
6242
  updatedAt: Date;
6080
6243
  deletedAt: Date | null;
6081
- emailVerifiedAt: Date | null;
6082
- password: string;
6083
- phone: string | null;
6084
- notificationCount: number | null;
6085
- roles: {
6244
+ systemName: string;
6245
+ displayName: string;
6246
+ permissions: {
6086
6247
  id: string;
6087
6248
  description: string | null;
6088
6249
  createdAt: Date;
@@ -6090,77 +6251,56 @@ export declare const chatContract: {
6090
6251
  deletedAt: Date | null;
6091
6252
  systemName: string;
6092
6253
  displayName: string;
6093
- permissions: {
6094
- id: string;
6095
- description: string | null;
6096
- createdAt: Date;
6097
- updatedAt: Date;
6098
- deletedAt: Date | null;
6099
- systemName: string;
6100
- displayName: string;
6101
- }[];
6102
6254
  }[];
6103
- extension: {
6104
- id: string;
6105
- createdAt: Date;
6106
- updatedAt: Date;
6107
- deletedAt: Date | null;
6108
- userId: string | null;
6109
- sipServerUrl: string;
6110
- sipUserName: string;
6111
- webphoneLoginUser: string;
6112
- extensionId: string | null;
6113
- extensionName: string;
6114
- telephonySignature: string | null;
6115
- };
6116
- };
6117
- brandName: string;
6118
- platformId: string;
6119
- isReloginRequired: boolean;
6120
- connectedUserName: string;
6121
- connectedUserId: string;
6122
- botpressBot: {
6123
- name: string;
6255
+ }[];
6256
+ extension: {
6124
6257
  id: string;
6125
- accessToken: string;
6126
- botId: string;
6127
- integrationId: string;
6128
- } | null;
6258
+ createdAt: Date;
6259
+ updatedAt: Date;
6260
+ deletedAt: Date | null;
6261
+ userId: string | null;
6262
+ sipServerUrl: string;
6263
+ sipUserName: string;
6264
+ webphoneLoginUser: string;
6265
+ extensionId: string | null;
6266
+ extensionName: string;
6267
+ telephonySignature: string | null;
6268
+ };
6129
6269
  }>;
6130
- cxlog: z.ZodObject<z.objectUtil.extendShape<{
6270
+ closedAt: z.ZodDate;
6271
+ lastMessageAt: z.ZodNullable<z.ZodDate>;
6272
+ isBotRoom: z.ZodBoolean;
6273
+ cxlog: z.ZodObject<{
6131
6274
  id: z.ZodString;
6275
+ channel: z.ZodNullable<z.ZodString>;
6276
+ direction: z.ZodNullable<z.ZodString>;
6132
6277
  createdAt: z.ZodDate;
6133
6278
  updatedAt: z.ZodDate;
6134
6279
  deletedAt: z.ZodNullable<z.ZodDate>;
6135
- }, {
6136
- caseId: z.ZodNumber;
6137
6280
  entityId: z.ZodString;
6138
- entityName: z.ZodString;
6139
- contactId: z.ZodNullable<z.ZodString>;
6140
- channel: z.ZodNullable<z.ZodString>;
6141
6281
  queueId: z.ZodNullable<z.ZodString>;
6282
+ contactId: z.ZodNullable<z.ZodString>;
6283
+ caseId: z.ZodNumber;
6284
+ entityName: z.ZodString;
6142
6285
  agentId: z.ZodNullable<z.ZodString>;
6143
- direction: z.ZodNullable<z.ZodString>;
6144
6286
  startedDate: z.ZodNullable<z.ZodDate>;
6145
6287
  handledTime: z.ZodNullable<z.ZodNumber>;
6146
6288
  firstResponseTime: z.ZodNullable<z.ZodNumber>;
6147
- wrapUpForm: z.ZodNullable<z.ZodObject<z.objectUtil.extendShape<{
6289
+ wrapUpForm: z.ZodNullable<z.ZodObject<{
6148
6290
  id: z.ZodString;
6149
6291
  createdAt: z.ZodDate;
6150
6292
  updatedAt: z.ZodDate;
6151
6293
  deletedAt: z.ZodNullable<z.ZodDate>;
6152
- }, {
6153
6294
  note: z.ZodNullable<z.ZodString>;
6154
6295
  disposition: z.ZodNullable<z.ZodString>;
6155
6296
  type: z.ZodString;
6156
- tags: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
6297
+ tags: z.ZodArray<z.ZodObject<{
6157
6298
  id: z.ZodString;
6158
6299
  createdAt: z.ZodDate;
6159
6300
  updatedAt: z.ZodDate;
6160
6301
  deletedAt: z.ZodNullable<z.ZodDate>;
6161
- }, {
6162
6302
  name: z.ZodString;
6163
- }>, "strip", z.ZodTypeAny, {
6303
+ }, "strip", z.ZodTypeAny, {
6164
6304
  name: string;
6165
6305
  id: string;
6166
6306
  createdAt: Date;
@@ -6173,12 +6313,11 @@ export declare const chatContract: {
6173
6313
  updatedAt: Date;
6174
6314
  deletedAt: Date | null;
6175
6315
  }>, "many">;
6176
- categories: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
6316
+ categories: z.ZodArray<z.ZodObject<{
6177
6317
  id: z.ZodString;
6178
6318
  createdAt: z.ZodDate;
6179
6319
  updatedAt: z.ZodDate;
6180
6320
  deletedAt: z.ZodNullable<z.ZodDate>;
6181
- }, {
6182
6321
  value: z.ZodString;
6183
6322
  level: z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
6184
6323
  parentId: z.ZodNullable<z.ZodString>;
@@ -6231,7 +6370,7 @@ export declare const chatContract: {
6231
6370
  childCategoryList: any[];
6232
6371
  }[];
6233
6372
  }>, "many">;
6234
- }>, "strip", z.ZodTypeAny, {
6373
+ }, "strip", z.ZodTypeAny, {
6235
6374
  id: string;
6236
6375
  value: string;
6237
6376
  createdAt: Date;
@@ -6310,7 +6449,7 @@ export declare const chatContract: {
6310
6449
  numberValue: number | null;
6311
6450
  dateValue: Date | null;
6312
6451
  }>, "many">>>;
6313
- }>, "strip", z.ZodTypeAny, {
6452
+ }, "strip", z.ZodTypeAny, {
6314
6453
  type: string;
6315
6454
  id: string;
6316
6455
  disposition: string | null;
@@ -6413,7 +6552,70 @@ export declare const chatContract: {
6413
6552
  dateValue: Date | null;
6414
6553
  }[] | null | undefined;
6415
6554
  }>>;
6416
- }>, "strip", z.ZodTypeAny, {
6555
+ holdLogs: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
6556
+ id: z.ZodString;
6557
+ createdAt: z.ZodDate;
6558
+ updatedAt: z.ZodDate;
6559
+ deletedAt: z.ZodNullable<z.ZodDate>;
6560
+ startedAt: z.ZodString;
6561
+ endedAt: z.ZodNullable<z.ZodString>;
6562
+ duration: z.ZodNullable<z.ZodNumber>;
6563
+ holdLabel: z.ZodObject<{
6564
+ id: z.ZodString;
6565
+ createdAt: z.ZodDate;
6566
+ updatedAt: z.ZodDate;
6567
+ deletedAt: z.ZodNullable<z.ZodDate>;
6568
+ name: z.ZodString;
6569
+ position: z.ZodNumber;
6570
+ }, "strip", z.ZodTypeAny, {
6571
+ name: string;
6572
+ id: string;
6573
+ position: number;
6574
+ createdAt: Date;
6575
+ updatedAt: Date;
6576
+ deletedAt: Date | null;
6577
+ }, {
6578
+ name: string;
6579
+ id: string;
6580
+ position: number;
6581
+ createdAt: Date;
6582
+ updatedAt: Date;
6583
+ deletedAt: Date | null;
6584
+ }>;
6585
+ }, "strip", z.ZodTypeAny, {
6586
+ id: string;
6587
+ createdAt: Date;
6588
+ updatedAt: Date;
6589
+ deletedAt: Date | null;
6590
+ startedAt: string;
6591
+ endedAt: string | null;
6592
+ duration: number | null;
6593
+ holdLabel: {
6594
+ name: string;
6595
+ id: string;
6596
+ position: number;
6597
+ createdAt: Date;
6598
+ updatedAt: Date;
6599
+ deletedAt: Date | null;
6600
+ };
6601
+ }, {
6602
+ id: string;
6603
+ createdAt: Date;
6604
+ updatedAt: Date;
6605
+ deletedAt: Date | null;
6606
+ startedAt: string;
6607
+ endedAt: string | null;
6608
+ duration: number | null;
6609
+ holdLabel: {
6610
+ name: string;
6611
+ id: string;
6612
+ position: number;
6613
+ createdAt: Date;
6614
+ updatedAt: Date;
6615
+ deletedAt: Date | null;
6616
+ };
6617
+ }>, "many">>>;
6618
+ }, "strip", z.ZodTypeAny, {
6417
6619
  id: string;
6418
6620
  channel: string | null;
6419
6621
  direction: string | null;
@@ -6481,6 +6683,23 @@ export declare const chatContract: {
6481
6683
  dateValue: Date | null;
6482
6684
  }[] | null | undefined;
6483
6685
  } | null;
6686
+ holdLogs?: {
6687
+ id: string;
6688
+ createdAt: Date;
6689
+ updatedAt: Date;
6690
+ deletedAt: Date | null;
6691
+ startedAt: string;
6692
+ endedAt: string | null;
6693
+ duration: number | null;
6694
+ holdLabel: {
6695
+ name: string;
6696
+ id: string;
6697
+ position: number;
6698
+ createdAt: Date;
6699
+ updatedAt: Date;
6700
+ deletedAt: Date | null;
6701
+ };
6702
+ }[] | null | undefined;
6484
6703
  }, {
6485
6704
  id: string;
6486
6705
  channel: string | null;
@@ -6549,17 +6768,33 @@ export declare const chatContract: {
6549
6768
  dateValue: Date | null;
6550
6769
  }[] | null | undefined;
6551
6770
  } | null;
6771
+ holdLogs?: {
6772
+ id: string;
6773
+ createdAt: Date;
6774
+ updatedAt: Date;
6775
+ deletedAt: Date | null;
6776
+ startedAt: string;
6777
+ endedAt: string | null;
6778
+ duration: number | null;
6779
+ holdLabel: {
6780
+ name: string;
6781
+ id: string;
6782
+ position: number;
6783
+ createdAt: Date;
6784
+ updatedAt: Date;
6785
+ deletedAt: Date | null;
6786
+ };
6787
+ }[] | null | undefined;
6552
6788
  }>;
6553
- workflowRule: z.ZodObject<z.objectUtil.extendShape<{
6789
+ workflowRule: z.ZodObject<{
6554
6790
  id: z.ZodString;
6555
6791
  createdAt: z.ZodDate;
6556
6792
  updatedAt: z.ZodDate;
6557
6793
  deletedAt: z.ZodNullable<z.ZodDate>;
6558
- }, {
6559
6794
  name: z.ZodString;
6560
6795
  isActive: z.ZodBoolean;
6561
6796
  type: z.ZodString;
6562
- }>, "strip", z.ZodTypeAny, {
6797
+ }, "strip", z.ZodTypeAny, {
6563
6798
  name: string;
6564
6799
  type: string;
6565
6800
  id: string;
@@ -6577,9 +6812,8 @@ export declare const chatContract: {
6577
6812
  isActive: boolean;
6578
6813
  }>;
6579
6814
  automationQueueId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
6580
- }>, {
6581
6815
  solveMessage: z.ZodString;
6582
- }>, "strip", z.ZodTypeAny, {
6816
+ }, "strip", z.ZodTypeAny, {
6583
6817
  id: string;
6584
6818
  channel: {
6585
6819
  name: string;
@@ -6589,19 +6823,20 @@ export declare const chatContract: {
6589
6823
  name: string;
6590
6824
  id: string;
6591
6825
  accessToken?: string | undefined;
6826
+ channelSecret?: string | undefined;
6827
+ additionalCredentials?: any;
6828
+ senderId?: string | undefined;
6592
6829
  whatsapp?: {
6593
6830
  email: string;
6594
6831
  wabaExternalId: string;
6595
6832
  phoneNumberId: string;
6596
- status?: "active" | "pending" | undefined;
6597
- channelId?: string | undefined;
6598
6833
  wabaBusinessId?: string | undefined;
6599
6834
  clientId?: string | undefined;
6835
+ channelId?: string | undefined;
6836
+ status?: "active" | "pending" | undefined;
6600
6837
  apiKey?: string | undefined;
6838
+ tier?: "basic" | "regular" | "premium" | undefined;
6601
6839
  } | undefined;
6602
- additionalCredentials?: any;
6603
- channelSecret?: string | undefined;
6604
- senderId?: string | undefined;
6605
6840
  vonageCredentials?: {
6606
6841
  apiKey: string;
6607
6842
  mobileNumber: string;
@@ -6968,6 +7203,23 @@ export declare const chatContract: {
6968
7203
  dateValue: Date | null;
6969
7204
  }[] | null | undefined;
6970
7205
  } | null;
7206
+ holdLogs?: {
7207
+ id: string;
7208
+ createdAt: Date;
7209
+ updatedAt: Date;
7210
+ deletedAt: Date | null;
7211
+ startedAt: string;
7212
+ endedAt: string | null;
7213
+ duration: number | null;
7214
+ holdLabel: {
7215
+ name: string;
7216
+ id: string;
7217
+ position: number;
7218
+ createdAt: Date;
7219
+ updatedAt: Date;
7220
+ deletedAt: Date | null;
7221
+ };
7222
+ }[] | null | undefined;
6971
7223
  };
6972
7224
  workflowRule: {
6973
7225
  name: string;
@@ -6990,19 +7242,20 @@ export declare const chatContract: {
6990
7242
  name: string;
6991
7243
  id: string;
6992
7244
  accessToken?: string | undefined;
7245
+ channelSecret?: string | undefined;
7246
+ additionalCredentials?: any;
7247
+ senderId?: string | undefined;
6993
7248
  whatsapp?: {
6994
7249
  email: string;
6995
7250
  wabaExternalId: string;
6996
7251
  phoneNumberId: string;
6997
- status?: "active" | "pending" | undefined;
6998
- channelId?: string | undefined;
6999
7252
  wabaBusinessId?: string | undefined;
7000
7253
  clientId?: string | undefined;
7254
+ channelId?: string | undefined;
7255
+ status?: "active" | "pending" | undefined;
7001
7256
  apiKey?: string | undefined;
7257
+ tier?: "basic" | "regular" | "premium" | undefined;
7002
7258
  } | undefined;
7003
- additionalCredentials?: any;
7004
- channelSecret?: string | undefined;
7005
- senderId?: string | undefined;
7006
7259
  vonageCredentials?: {
7007
7260
  apiKey: string;
7008
7261
  mobileNumber: string;
@@ -7369,6 +7622,23 @@ export declare const chatContract: {
7369
7622
  dateValue: Date | null;
7370
7623
  }[] | null | undefined;
7371
7624
  } | null;
7625
+ holdLogs?: {
7626
+ id: string;
7627
+ createdAt: Date;
7628
+ updatedAt: Date;
7629
+ deletedAt: Date | null;
7630
+ startedAt: string;
7631
+ endedAt: string | null;
7632
+ duration: number | null;
7633
+ holdLabel: {
7634
+ name: string;
7635
+ id: string;
7636
+ position: number;
7637
+ createdAt: Date;
7638
+ updatedAt: Date;
7639
+ deletedAt: Date | null;
7640
+ };
7641
+ }[] | null | undefined;
7372
7642
  };
7373
7643
  workflowRule: {
7374
7644
  name: string;
@@ -7382,7 +7652,7 @@ export declare const chatContract: {
7382
7652
  solveMessage: string;
7383
7653
  automationQueueId?: string | null | undefined;
7384
7654
  }>;
7385
- }>, "strip", z.ZodTypeAny, {
7655
+ }, "strip", z.ZodTypeAny, {
7386
7656
  data: {
7387
7657
  id: string;
7388
7658
  channel: {
@@ -7393,19 +7663,20 @@ export declare const chatContract: {
7393
7663
  name: string;
7394
7664
  id: string;
7395
7665
  accessToken?: string | undefined;
7666
+ channelSecret?: string | undefined;
7667
+ additionalCredentials?: any;
7668
+ senderId?: string | undefined;
7396
7669
  whatsapp?: {
7397
7670
  email: string;
7398
7671
  wabaExternalId: string;
7399
7672
  phoneNumberId: string;
7400
- status?: "active" | "pending" | undefined;
7401
- channelId?: string | undefined;
7402
7673
  wabaBusinessId?: string | undefined;
7403
7674
  clientId?: string | undefined;
7675
+ channelId?: string | undefined;
7676
+ status?: "active" | "pending" | undefined;
7404
7677
  apiKey?: string | undefined;
7678
+ tier?: "basic" | "regular" | "premium" | undefined;
7405
7679
  } | undefined;
7406
- additionalCredentials?: any;
7407
- channelSecret?: string | undefined;
7408
- senderId?: string | undefined;
7409
7680
  vonageCredentials?: {
7410
7681
  apiKey: string;
7411
7682
  mobileNumber: string;
@@ -7772,6 +8043,23 @@ export declare const chatContract: {
7772
8043
  dateValue: Date | null;
7773
8044
  }[] | null | undefined;
7774
8045
  } | null;
8046
+ holdLogs?: {
8047
+ id: string;
8048
+ createdAt: Date;
8049
+ updatedAt: Date;
8050
+ deletedAt: Date | null;
8051
+ startedAt: string;
8052
+ endedAt: string | null;
8053
+ duration: number | null;
8054
+ holdLabel: {
8055
+ name: string;
8056
+ id: string;
8057
+ position: number;
8058
+ createdAt: Date;
8059
+ updatedAt: Date;
8060
+ deletedAt: Date | null;
8061
+ };
8062
+ }[] | null | undefined;
7775
8063
  };
7776
8064
  workflowRule: {
7777
8065
  name: string;
@@ -7797,19 +8085,20 @@ export declare const chatContract: {
7797
8085
  name: string;
7798
8086
  id: string;
7799
8087
  accessToken?: string | undefined;
8088
+ channelSecret?: string | undefined;
8089
+ additionalCredentials?: any;
8090
+ senderId?: string | undefined;
7800
8091
  whatsapp?: {
7801
8092
  email: string;
7802
8093
  wabaExternalId: string;
7803
8094
  phoneNumberId: string;
7804
- status?: "active" | "pending" | undefined;
7805
- channelId?: string | undefined;
7806
8095
  wabaBusinessId?: string | undefined;
7807
8096
  clientId?: string | undefined;
8097
+ channelId?: string | undefined;
8098
+ status?: "active" | "pending" | undefined;
7808
8099
  apiKey?: string | undefined;
8100
+ tier?: "basic" | "regular" | "premium" | undefined;
7809
8101
  } | undefined;
7810
- additionalCredentials?: any;
7811
- channelSecret?: string | undefined;
7812
- senderId?: string | undefined;
7813
8102
  vonageCredentials?: {
7814
8103
  apiKey: string;
7815
8104
  mobileNumber: string;
@@ -8176,6 +8465,23 @@ export declare const chatContract: {
8176
8465
  dateValue: Date | null;
8177
8466
  }[] | null | undefined;
8178
8467
  } | null;
8468
+ holdLogs?: {
8469
+ id: string;
8470
+ createdAt: Date;
8471
+ updatedAt: Date;
8472
+ deletedAt: Date | null;
8473
+ startedAt: string;
8474
+ endedAt: string | null;
8475
+ duration: number | null;
8476
+ holdLabel: {
8477
+ name: string;
8478
+ id: string;
8479
+ position: number;
8480
+ createdAt: Date;
8481
+ updatedAt: Date;
8482
+ deletedAt: Date | null;
8483
+ };
8484
+ }[] | null | undefined;
8179
8485
  };
8180
8486
  workflowRule: {
8181
8487
  name: string;
@@ -8202,6 +8508,17 @@ export declare const chatContract: {
8202
8508
  error?: any;
8203
8509
  }>;
8204
8510
  };
8511
+ path: "chat/room/solve";
8512
+ headers: z.ZodObject<{
8513
+ 'x-tenant': z.ZodString;
8514
+ 'x-code': z.ZodOptional<z.ZodString>;
8515
+ }, "strip", z.ZodTypeAny, {
8516
+ 'x-tenant': string;
8517
+ 'x-code'?: string | undefined;
8518
+ }, {
8519
+ 'x-tenant': string;
8520
+ 'x-code'?: string | undefined;
8521
+ }>;
8205
8522
  };
8206
8523
  emitMessage: {
8207
8524
  body: z.ZodObject<{
@@ -8216,17 +8533,6 @@ export declare const chatContract: {
8216
8533
  }>;
8217
8534
  summary: "Get message by ID";
8218
8535
  method: "POST";
8219
- path: "chat/message/emit";
8220
- headers: z.ZodObject<{
8221
- 'x-tenant': z.ZodString;
8222
- 'x-code': z.ZodOptional<z.ZodString>;
8223
- }, "strip", z.ZodTypeAny, {
8224
- 'x-tenant': string;
8225
- 'x-code'?: string | undefined;
8226
- }, {
8227
- 'x-tenant': string;
8228
- 'x-code'?: string | undefined;
8229
- }>;
8230
8536
  responses: {
8231
8537
  200: z.ZodObject<{
8232
8538
  requestId: z.ZodString;
@@ -8256,6 +8562,17 @@ export declare const chatContract: {
8256
8562
  error?: any;
8257
8563
  }>;
8258
8564
  };
8565
+ path: "chat/message/emit";
8566
+ headers: z.ZodObject<{
8567
+ 'x-tenant': z.ZodString;
8568
+ 'x-code': z.ZodOptional<z.ZodString>;
8569
+ }, "strip", z.ZodTypeAny, {
8570
+ 'x-tenant': string;
8571
+ 'x-code'?: string | undefined;
8572
+ }, {
8573
+ 'x-tenant': string;
8574
+ 'x-code'?: string | undefined;
8575
+ }>;
8259
8576
  };
8260
8577
  };
8261
8578
  //# sourceMappingURL=index.d.ts.map