@kl1/contracts 1.2.26-uat → 1.2.27-uat

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (231) 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 +164 -148
  3. package/dist/api-contracts/src/attribute/index.d.ts.map +1 -1
  4. package/dist/api-contracts/src/attribute/schema.d.ts +11 -8
  5. package/dist/api-contracts/src/attribute/schema.d.ts.map +1 -1
  6. package/dist/api-contracts/src/attribute-option/schema.d.ts +3 -2
  7. package/dist/api-contracts/src/attribute-option/schema.d.ts.map +1 -1
  8. package/dist/api-contracts/src/auth/index.d.ts +51 -47
  9. package/dist/api-contracts/src/auth/index.d.ts.map +1 -1
  10. package/dist/api-contracts/src/automation-queue/index.d.ts +43 -31
  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 +3 -2
  13. package/dist/api-contracts/src/automation-queue/schema.d.ts.map +1 -1
  14. package/dist/api-contracts/src/aws/index.d.ts +8 -6
  15. package/dist/api-contracts/src/aws/index.d.ts.map +1 -1
  16. package/dist/api-contracts/src/botpress/index.d.ts +17 -13
  17. package/dist/api-contracts/src/botpress/index.d.ts.map +1 -1
  18. package/dist/api-contracts/src/business-calendar/index.d.ts +40 -28
  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 +15 -10
  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 +5 -4
  23. package/dist/api-contracts/src/call-log/schema.d.ts.map +1 -1
  24. package/dist/api-contracts/src/category/index.d.ts +118 -109
  25. package/dist/api-contracts/src/category/index.d.ts.map +1 -1
  26. package/dist/api-contracts/src/category/schema.d.ts +3 -2
  27. package/dist/api-contracts/src/category/schema.d.ts.map +1 -1
  28. package/dist/api-contracts/src/channel/index.d.ts +1064 -1039
  29. package/dist/api-contracts/src/channel/index.d.ts.map +1 -1
  30. package/dist/api-contracts/src/channel/schema.d.ts +38 -38
  31. package/dist/api-contracts/src/channel/validation.d.ts +52 -52
  32. package/dist/api-contracts/src/chat/index.d.ts +14634 -14201
  33. package/dist/api-contracts/src/chat/index.d.ts.map +1 -1
  34. package/dist/api-contracts/src/chat/schema.d.ts +2120 -1984
  35. package/dist/api-contracts/src/chat/schema.d.ts.map +1 -1
  36. package/dist/api-contracts/src/chat/validation.d.ts +3894 -3827
  37. package/dist/api-contracts/src/chat/validation.d.ts.map +1 -1
  38. package/dist/api-contracts/src/comment/index.d.ts +281 -224
  39. package/dist/api-contracts/src/comment/index.d.ts.map +1 -1
  40. package/dist/api-contracts/src/comment/schema.d.ts +68 -50
  41. package/dist/api-contracts/src/comment/schema.d.ts.map +1 -1
  42. package/dist/api-contracts/src/comment/validation.d.ts +1 -1
  43. package/dist/api-contracts/src/company/index.d.ts +136 -109
  44. package/dist/api-contracts/src/company/index.d.ts.map +1 -1
  45. package/dist/api-contracts/src/company/schema.d.ts +33 -24
  46. package/dist/api-contracts/src/company/schema.d.ts.map +1 -1
  47. package/dist/api-contracts/src/company/validation.d.ts +78 -62
  48. package/dist/api-contracts/src/company/validation.d.ts.map +1 -1
  49. package/dist/api-contracts/src/contact/index.d.ts +686 -568
  50. package/dist/api-contracts/src/contact/index.d.ts.map +1 -1
  51. package/dist/api-contracts/src/contact/schema.d.ts +56 -42
  52. package/dist/api-contracts/src/contact/schema.d.ts.map +1 -1
  53. package/dist/api-contracts/src/contact/validation.d.ts +299 -218
  54. package/dist/api-contracts/src/contact/validation.d.ts.map +1 -1
  55. package/dist/api-contracts/src/contact-email/schema.d.ts +3 -2
  56. package/dist/api-contracts/src/contact-email/schema.d.ts.map +1 -1
  57. package/dist/api-contracts/src/contact-phone/schema.d.ts +3 -2
  58. package/dist/api-contracts/src/contact-phone/schema.d.ts.map +1 -1
  59. package/dist/api-contracts/src/contract.d.ts +23919 -22617
  60. package/dist/api-contracts/src/contract.d.ts.map +1 -1
  61. package/dist/api-contracts/src/custom-field/schema.d.ts +3 -2
  62. package/dist/api-contracts/src/custom-field/schema.d.ts.map +1 -1
  63. package/dist/api-contracts/src/custom-field/validation.d.ts +2 -2
  64. package/dist/api-contracts/src/custom-field-upload/schema.d.ts +3 -2
  65. package/dist/api-contracts/src/custom-field-upload/schema.d.ts.map +1 -1
  66. package/dist/api-contracts/src/cx-log/index.d.ts +684 -644
  67. package/dist/api-contracts/src/cx-log/index.d.ts.map +1 -1
  68. package/dist/api-contracts/src/cx-log/schema.d.ts +448 -405
  69. package/dist/api-contracts/src/cx-log/schema.d.ts.map +1 -1
  70. package/dist/api-contracts/src/cx-log/validation.d.ts +39 -39
  71. package/dist/api-contracts/src/dashboard/index.d.ts +378 -337
  72. package/dist/api-contracts/src/dashboard/index.d.ts.map +1 -1
  73. package/dist/api-contracts/src/dashboard/schema.d.ts +7 -6
  74. package/dist/api-contracts/src/dashboard/schema.d.ts.map +1 -1
  75. package/dist/api-contracts/src/dashboard/validation.d.ts +24 -18
  76. package/dist/api-contracts/src/dashboard/validation.d.ts.map +1 -1
  77. package/dist/api-contracts/src/evaluate-form/index.d.ts +4 -3
  78. package/dist/api-contracts/src/evaluate-form/index.d.ts.map +1 -1
  79. package/dist/api-contracts/src/evaluate-form/schema.d.ts +3 -2
  80. package/dist/api-contracts/src/evaluate-form/schema.d.ts.map +1 -1
  81. package/dist/api-contracts/src/export/index.d.ts +4 -3
  82. package/dist/api-contracts/src/export/index.d.ts.map +1 -1
  83. package/dist/api-contracts/src/extension/index.d.ts +118 -112
  84. package/dist/api-contracts/src/extension/index.d.ts.map +1 -1
  85. package/dist/api-contracts/src/facebook-feed/index.d.ts +1872 -1802
  86. package/dist/api-contracts/src/facebook-feed/index.d.ts.map +1 -1
  87. package/dist/api-contracts/src/facebook-feed/schema.d.ts +73 -62
  88. package/dist/api-contracts/src/facebook-feed/schema.d.ts.map +1 -1
  89. package/dist/api-contracts/src/facebook-feed/validation.d.ts +96 -79
  90. package/dist/api-contracts/src/facebook-feed/validation.d.ts.map +1 -1
  91. package/dist/api-contracts/src/general-setting/index.d.ts +2 -2
  92. package/dist/api-contracts/src/group/schema.d.ts +3 -2
  93. package/dist/api-contracts/src/group/schema.d.ts.map +1 -1
  94. package/dist/api-contracts/src/hold-label/index.d.ts +37 -27
  95. package/dist/api-contracts/src/hold-label/index.d.ts.map +1 -1
  96. package/dist/api-contracts/src/hold-label/schema.d.ts +3 -2
  97. package/dist/api-contracts/src/hold-label/schema.d.ts.map +1 -1
  98. package/dist/api-contracts/src/index.d.ts +1 -0
  99. package/dist/api-contracts/src/index.d.ts.map +1 -1
  100. package/dist/api-contracts/src/instagram/index.d.ts +1366 -1316
  101. package/dist/api-contracts/src/instagram/index.d.ts.map +1 -1
  102. package/dist/api-contracts/src/instagram/validation.d.ts +6 -6
  103. package/dist/api-contracts/src/line/index.d.ts +1469 -1419
  104. package/dist/api-contracts/src/line/index.d.ts.map +1 -1
  105. package/dist/api-contracts/src/line/schema.d.ts +12 -11
  106. package/dist/api-contracts/src/line/schema.d.ts.map +1 -1
  107. package/dist/api-contracts/src/line/validation.d.ts +98 -98
  108. package/dist/api-contracts/src/log-form/schema.d.ts +3 -2
  109. package/dist/api-contracts/src/log-form/schema.d.ts.map +1 -1
  110. package/dist/api-contracts/src/mail/account-contract.d.ts +184 -174
  111. package/dist/api-contracts/src/mail/account-contract.d.ts.map +1 -1
  112. package/dist/api-contracts/src/mail/email-engine-webhooks-events.contract.d.ts +4 -3
  113. package/dist/api-contracts/src/mail/email-engine-webhooks-events.contract.d.ts.map +1 -1
  114. package/dist/api-contracts/src/mail/mail-contract.d.ts +461 -416
  115. package/dist/api-contracts/src/mail/mail-contract.d.ts.map +1 -1
  116. package/dist/api-contracts/src/mail/mail-server-contract.d.ts +24 -18
  117. package/dist/api-contracts/src/mail/mail-server-contract.d.ts.map +1 -1
  118. package/dist/api-contracts/src/mail/message-contract.d.ts +113 -107
  119. package/dist/api-contracts/src/mail/message-contract.d.ts.map +1 -1
  120. package/dist/api-contracts/src/mail/room-contract.d.ts +88 -65
  121. package/dist/api-contracts/src/mail/room-contract.d.ts.map +1 -1
  122. package/dist/api-contracts/src/mail/schemas/message-validation.schema.d.ts +16 -16
  123. package/dist/api-contracts/src/mail/schemas/room-validation.schema.d.ts +22 -18
  124. package/dist/api-contracts/src/mail/schemas/room-validation.schema.d.ts.map +1 -1
  125. package/dist/api-contracts/src/mail/schemas/room.schema.d.ts +15 -10
  126. package/dist/api-contracts/src/mail/schemas/room.schema.d.ts.map +1 -1
  127. package/dist/api-contracts/src/messenger/index.d.ts +1368 -1316
  128. package/dist/api-contracts/src/messenger/index.d.ts.map +1 -1
  129. package/dist/api-contracts/src/messenger/validation.d.ts +96 -79
  130. package/dist/api-contracts/src/messenger/validation.d.ts.map +1 -1
  131. package/dist/api-contracts/src/notification/index.d.ts +16 -12
  132. package/dist/api-contracts/src/notification/index.d.ts.map +1 -1
  133. package/dist/api-contracts/src/permission/index.d.ts +17 -17
  134. package/dist/api-contracts/src/presence-status/index.d.ts +84 -81
  135. package/dist/api-contracts/src/presence-status/index.d.ts.map +1 -1
  136. package/dist/api-contracts/src/public-api/index.d.ts +260 -196
  137. package/dist/api-contracts/src/public-api/index.d.ts.map +1 -1
  138. package/dist/api-contracts/src/public-api/schema.d.ts +48 -34
  139. package/dist/api-contracts/src/public-api/schema.d.ts.map +1 -1
  140. package/dist/api-contracts/src/public-api/validation.d.ts +113 -88
  141. package/dist/api-contracts/src/public-api/validation.d.ts.map +1 -1
  142. package/dist/api-contracts/src/role/index.d.ts +88 -83
  143. package/dist/api-contracts/src/role/index.d.ts.map +1 -1
  144. package/dist/api-contracts/src/sms/index.d.ts +209 -154
  145. package/dist/api-contracts/src/sms/index.d.ts.map +1 -1
  146. package/dist/api-contracts/src/sms/schema.d.ts +22 -0
  147. package/dist/api-contracts/src/sms/schema.d.ts.map +1 -1
  148. package/dist/api-contracts/src/snippet/index.d.ts +76 -54
  149. package/dist/api-contracts/src/snippet/index.d.ts.map +1 -1
  150. package/dist/api-contracts/src/snippet/schema.d.ts +21 -14
  151. package/dist/api-contracts/src/snippet/schema.d.ts.map +1 -1
  152. package/dist/api-contracts/src/snippet/validation.d.ts +5 -4
  153. package/dist/api-contracts/src/snippet/validation.d.ts.map +1 -1
  154. package/dist/api-contracts/src/subscription/index.d.ts +71 -49
  155. package/dist/api-contracts/src/subscription/index.d.ts.map +1 -1
  156. package/dist/api-contracts/src/subscription/schema.d.ts +90 -60
  157. package/dist/api-contracts/src/subscription/schema.d.ts.map +1 -1
  158. package/dist/api-contracts/src/tag/index.d.ts +79 -72
  159. package/dist/api-contracts/src/tag/index.d.ts.map +1 -1
  160. package/dist/api-contracts/src/tag/schema.d.ts +3 -2
  161. package/dist/api-contracts/src/tag/schema.d.ts.map +1 -1
  162. package/dist/api-contracts/src/tag-group/schema.d.ts +3 -2
  163. package/dist/api-contracts/src/tag-group/schema.d.ts.map +1 -1
  164. package/dist/api-contracts/src/telegram/index.d.ts +1214 -1166
  165. package/dist/api-contracts/src/telegram/index.d.ts.map +1 -1
  166. package/dist/api-contracts/src/telephony-agent-presence-status/index.d.ts +58 -54
  167. package/dist/api-contracts/src/telephony-agent-presence-status/index.d.ts.map +1 -1
  168. package/dist/api-contracts/src/telephony-agent-presence-status/schema.d.ts +3 -2
  169. package/dist/api-contracts/src/telephony-agent-presence-status/schema.d.ts.map +1 -1
  170. package/dist/api-contracts/src/telephony-cdr/call-report.schema.d.ts +38 -38
  171. package/dist/api-contracts/src/telephony-cdr/index.d.ts +1214 -1149
  172. package/dist/api-contracts/src/telephony-cdr/index.d.ts.map +1 -1
  173. package/dist/api-contracts/src/telephony-cdr/schema.d.ts +186 -166
  174. package/dist/api-contracts/src/telephony-cdr/schema.d.ts.map +1 -1
  175. package/dist/api-contracts/src/telephony-cdr/validation.d.ts +52 -45
  176. package/dist/api-contracts/src/telephony-cdr/validation.d.ts.map +1 -1
  177. package/dist/api-contracts/src/telephony-extension/index.d.ts +21 -21
  178. package/dist/api-contracts/src/telephony-extension/schema.d.ts +4 -4
  179. package/dist/api-contracts/src/telephony-live-queue-call/schema.d.ts +3 -2
  180. package/dist/api-contracts/src/telephony-live-queue-call/schema.d.ts.map +1 -1
  181. package/dist/api-contracts/src/telephony-queue-call-count/schema.d.ts +3 -2
  182. package/dist/api-contracts/src/telephony-queue-call-count/schema.d.ts.map +1 -1
  183. package/dist/api-contracts/src/tenant/schema.d.ts +3 -2
  184. package/dist/api-contracts/src/tenant/schema.d.ts.map +1 -1
  185. package/dist/api-contracts/src/ticket/index.d.ts +722 -623
  186. package/dist/api-contracts/src/ticket/index.d.ts.map +1 -1
  187. package/dist/api-contracts/src/ticket/schema.d.ts +81 -58
  188. package/dist/api-contracts/src/ticket/schema.d.ts.map +1 -1
  189. package/dist/api-contracts/src/ticket/validation.d.ts +57 -55
  190. package/dist/api-contracts/src/ticket/validation.d.ts.map +1 -1
  191. package/dist/api-contracts/src/upload/index.d.ts +36 -34
  192. package/dist/api-contracts/src/upload/index.d.ts.map +1 -1
  193. package/dist/api-contracts/src/upload/schema.d.ts +3 -2
  194. package/dist/api-contracts/src/upload/schema.d.ts.map +1 -1
  195. package/dist/api-contracts/src/user/index.d.ts +114 -108
  196. package/dist/api-contracts/src/user/index.d.ts.map +1 -1
  197. package/dist/api-contracts/src/user/validation.d.ts +5 -4
  198. package/dist/api-contracts/src/user/validation.d.ts.map +1 -1
  199. package/dist/api-contracts/src/user-presence-status-log/index.d.ts +32 -31
  200. package/dist/api-contracts/src/user-presence-status-log/index.d.ts.map +1 -1
  201. package/dist/api-contracts/src/user-presence-status-log/schema.d.ts +3 -2
  202. package/dist/api-contracts/src/user-presence-status-log/schema.d.ts.map +1 -1
  203. package/dist/api-contracts/src/viber/index.d.ts +1341 -1293
  204. package/dist/api-contracts/src/viber/index.d.ts.map +1 -1
  205. package/dist/api-contracts/src/webchat/index.d.ts +2461 -2416
  206. package/dist/api-contracts/src/webchat/index.d.ts.map +1 -1
  207. package/dist/api-contracts/src/whatsapp/index.d.ts +2715 -2666
  208. package/dist/api-contracts/src/whatsapp/index.d.ts.map +1 -1
  209. package/dist/api-contracts/src/whatsapp/validation.d.ts +3 -2
  210. package/dist/api-contracts/src/whatsapp/validation.d.ts.map +1 -1
  211. package/dist/api-contracts/src/widget/index.d.ts +139 -128
  212. package/dist/api-contracts/src/widget/index.d.ts.map +1 -1
  213. package/dist/api-contracts/src/widget/schema.d.ts +3 -2
  214. package/dist/api-contracts/src/widget/schema.d.ts.map +1 -1
  215. package/dist/api-contracts/src/workflow-rule/index.d.ts +1500 -1465
  216. package/dist/api-contracts/src/workflow-rule/index.d.ts.map +1 -1
  217. package/dist/api-contracts/src/workflow-rule/schema.d.ts +3 -2
  218. package/dist/api-contracts/src/workflow-rule/schema.d.ts.map +1 -1
  219. package/dist/api-contracts/src/wrap-up-form/index.d.ts +166 -147
  220. package/dist/api-contracts/src/wrap-up-form/index.d.ts.map +1 -1
  221. package/dist/api-contracts/src/wrap-up-form/schema.d.ts +9 -6
  222. package/dist/api-contracts/src/wrap-up-form/schema.d.ts.map +1 -1
  223. package/dist/api-contracts/src/wrap-up-form/validation.d.ts +21 -20
  224. package/dist/api-contracts/src/wrap-up-form/validation.d.ts.map +1 -1
  225. package/dist/api-contracts/utils.d.ts +4 -3
  226. package/dist/api-contracts/utils.d.ts.map +1 -1
  227. package/dist/index.js +4242 -4219
  228. package/dist/index.js.map +1 -1
  229. package/dist/index.mjs +4239 -4217
  230. package/dist/index.mjs.map +1 -1
  231. package/package.json +1 -1
@@ -9,24 +9,37 @@ export declare const chatContract: {
9
9
  }, "strip", z.ZodTypeAny, {
10
10
  roomId: string;
11
11
  workflowId: string;
12
- assigneeId?: string | undefined;
13
12
  queueId?: string | undefined;
13
+ assigneeId?: string | undefined;
14
14
  }, {
15
15
  roomId: string;
16
16
  workflowId: string;
17
- assigneeId?: string | undefined;
18
17
  queueId?: string | undefined;
18
+ assigneeId?: 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
+ }>;
22
33
  responses: {
23
- 200: z.ZodObject<{
34
+ 200: z.ZodObject<z.objectUtil.extendShape<{
24
35
  requestId: z.ZodString;
25
- data: z.ZodObject<{
36
+ }, {
37
+ data: z.ZodObject<z.objectUtil.extendShape<{
26
38
  id: z.ZodString;
27
39
  createdAt: z.ZodDate;
28
40
  updatedAt: z.ZodDate;
29
41
  deletedAt: z.ZodNullable<z.ZodDate>;
42
+ }, {
30
43
  lastMessage: z.ZodString;
31
44
  handleTime: z.ZodNumber;
32
45
  closedAt: z.ZodDate;
@@ -73,13 +86,14 @@ export declare const chatContract: {
73
86
  notes: z.ZodNullable<z.ZodString>;
74
87
  contactProfile: z.ZodNullable<z.ZodString>;
75
88
  socialProfileUrl: z.ZodNullable<z.ZodString>;
76
- tags: z.ZodArray<z.ZodObject<{
89
+ tags: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
77
90
  id: z.ZodString;
78
91
  createdAt: z.ZodDate;
79
92
  updatedAt: z.ZodDate;
80
93
  deletedAt: z.ZodNullable<z.ZodDate>;
94
+ }, {
81
95
  name: z.ZodString;
82
- }, "strip", z.ZodTypeAny, {
96
+ }>, "strip", z.ZodTypeAny, {
83
97
  name: string;
84
98
  id: string;
85
99
  createdAt: Date;
@@ -92,29 +106,32 @@ export declare const chatContract: {
92
106
  updatedAt: Date;
93
107
  deletedAt: Date | null;
94
108
  }>, "many">;
95
- company: z.ZodNullable<z.ZodObject<Omit<{
109
+ company: z.ZodNullable<z.ZodObject<Omit<z.objectUtil.extendShape<{
96
110
  id: z.ZodString;
97
111
  createdAt: z.ZodDate;
98
112
  updatedAt: z.ZodDate;
99
113
  deletedAt: z.ZodNullable<z.ZodDate>;
114
+ }, {
100
115
  name: z.ZodOptional<z.ZodString>;
101
116
  phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
102
117
  address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
103
118
  industry: z.ZodOptional<z.ZodNullable<z.ZodString>>;
104
- customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
119
+ customFields: z.ZodOptional<z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
105
120
  id: z.ZodString;
106
121
  createdAt: z.ZodDate;
107
122
  updatedAt: z.ZodDate;
108
123
  deletedAt: z.ZodNullable<z.ZodDate>;
124
+ }, {
109
125
  textValue: z.ZodNullable<z.ZodString>;
110
126
  booleanValue: z.ZodNullable<z.ZodBoolean>;
111
127
  numberValue: z.ZodNullable<z.ZodNumber>;
112
128
  dateValue: z.ZodNullable<z.ZodDate>;
113
- attribute: z.ZodObject<Omit<{
129
+ attribute: z.ZodObject<Omit<z.objectUtil.extendShape<{
114
130
  id: z.ZodString;
115
131
  createdAt: z.ZodDate;
116
132
  updatedAt: z.ZodDate;
117
133
  deletedAt: z.ZodNullable<z.ZodDate>;
134
+ }, {
118
135
  systemName: z.ZodString;
119
136
  displayName: z.ZodString;
120
137
  type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
@@ -123,13 +140,14 @@ export declare const chatContract: {
123
140
  isArchived: z.ZodBoolean;
124
141
  isRequired: z.ZodBoolean;
125
142
  isUnique: z.ZodBoolean;
126
- options: z.ZodArray<z.ZodObject<{
127
- position: z.ZodNumber;
128
- value: z.ZodString;
143
+ options: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
129
144
  label: z.ZodString;
145
+ value: z.ZodString;
130
146
  isDefault: z.ZodBoolean;
147
+ position: z.ZodNumber;
148
+ }, {
131
149
  id: z.ZodString;
132
- }, "strip", z.ZodTypeAny, {
150
+ }>, "strip", z.ZodTypeAny, {
133
151
  id: string;
134
152
  position: number;
135
153
  value: string;
@@ -142,14 +160,15 @@ export declare const chatContract: {
142
160
  label: string;
143
161
  isDefault: boolean;
144
162
  }>, "many">;
145
- group: z.ZodObject<{
163
+ group: z.ZodObject<z.objectUtil.extendShape<{
146
164
  id: z.ZodString;
147
165
  createdAt: z.ZodDate;
148
166
  updatedAt: z.ZodDate;
149
167
  deletedAt: z.ZodNullable<z.ZodDate>;
168
+ }, {
150
169
  systemName: z.ZodString;
151
170
  displayName: z.ZodString;
152
- }, "strip", z.ZodTypeAny, {
171
+ }>, "strip", z.ZodTypeAny, {
153
172
  id: string;
154
173
  createdAt: Date;
155
174
  updatedAt: Date;
@@ -164,7 +183,7 @@ export declare const chatContract: {
164
183
  systemName: string;
165
184
  displayName: string;
166
185
  }>;
167
- }, "options" | "group">, "strip", z.ZodTypeAny, {
186
+ }>, "options" | "group">, "strip", z.ZodTypeAny, {
168
187
  type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
169
188
  id: string;
170
189
  position: number;
@@ -191,7 +210,7 @@ export declare const chatContract: {
191
210
  isRequired: boolean;
192
211
  isUnique: boolean;
193
212
  }>;
194
- }, "strip", z.ZodTypeAny, {
213
+ }>, "strip", z.ZodTypeAny, {
195
214
  id: string;
196
215
  createdAt: Date;
197
216
  updatedAt: Date;
@@ -238,7 +257,7 @@ export declare const chatContract: {
238
257
  numberValue: number | null;
239
258
  dateValue: Date | null;
240
259
  }>, "many">>;
241
- }, "customFields">, "strip", z.ZodTypeAny, {
260
+ }>, "customFields">, "strip", z.ZodTypeAny, {
242
261
  id: string;
243
262
  createdAt: Date;
244
263
  updatedAt: Date;
@@ -319,11 +338,12 @@ export declare const chatContract: {
319
338
  booleanValue: z.ZodNullable<z.ZodBoolean>;
320
339
  numberValue: z.ZodNullable<z.ZodNumber>;
321
340
  dateValue: z.ZodNullable<z.ZodDate>;
322
- attribute: z.ZodObject<Omit<{
341
+ attribute: z.ZodObject<Omit<z.objectUtil.extendShape<{
323
342
  id: z.ZodString;
324
343
  createdAt: z.ZodDate;
325
344
  updatedAt: z.ZodDate;
326
345
  deletedAt: z.ZodNullable<z.ZodDate>;
346
+ }, {
327
347
  systemName: z.ZodString;
328
348
  displayName: z.ZodString;
329
349
  type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
@@ -332,13 +352,14 @@ export declare const chatContract: {
332
352
  isArchived: z.ZodBoolean;
333
353
  isRequired: z.ZodBoolean;
334
354
  isUnique: z.ZodBoolean;
335
- options: z.ZodArray<z.ZodObject<{
336
- position: z.ZodNumber;
337
- value: z.ZodString;
355
+ options: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
338
356
  label: z.ZodString;
357
+ value: z.ZodString;
339
358
  isDefault: z.ZodBoolean;
359
+ position: z.ZodNumber;
360
+ }, {
340
361
  id: z.ZodString;
341
- }, "strip", z.ZodTypeAny, {
362
+ }>, "strip", z.ZodTypeAny, {
342
363
  id: string;
343
364
  position: number;
344
365
  value: string;
@@ -351,14 +372,15 @@ export declare const chatContract: {
351
372
  label: string;
352
373
  isDefault: boolean;
353
374
  }>, "many">;
354
- group: z.ZodObject<{
375
+ group: z.ZodObject<z.objectUtil.extendShape<{
355
376
  id: z.ZodString;
356
377
  createdAt: z.ZodDate;
357
378
  updatedAt: z.ZodDate;
358
379
  deletedAt: z.ZodNullable<z.ZodDate>;
380
+ }, {
359
381
  systemName: z.ZodString;
360
382
  displayName: z.ZodString;
361
- }, "strip", z.ZodTypeAny, {
383
+ }>, "strip", z.ZodTypeAny, {
362
384
  id: string;
363
385
  createdAt: Date;
364
386
  updatedAt: Date;
@@ -373,7 +395,7 @@ export declare const chatContract: {
373
395
  systemName: string;
374
396
  displayName: string;
375
397
  }>;
376
- }, "options" | "group">, "strip", z.ZodTypeAny, {
398
+ }>, "options" | "group">, "strip", z.ZodTypeAny, {
377
399
  type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
378
400
  id: string;
379
401
  position: number;
@@ -400,18 +422,19 @@ export declare const chatContract: {
400
422
  isRequired: boolean;
401
423
  isUnique: boolean;
402
424
  }>;
403
- uploads: z.ZodArray<z.ZodObject<{
425
+ uploads: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
404
426
  id: z.ZodString;
405
427
  createdAt: z.ZodDate;
406
428
  updatedAt: z.ZodDate;
407
429
  deletedAt: z.ZodNullable<z.ZodDate>;
430
+ }, {
408
431
  bucketName: z.ZodString;
409
432
  fileName: z.ZodString;
410
433
  fileSize: z.ZodNumber;
411
434
  fileKey: z.ZodString;
412
435
  fileUrl: z.ZodNullable<z.ZodString>;
413
436
  status: z.ZodNullable<z.ZodString>;
414
- }, "strip", z.ZodTypeAny, {
437
+ }>, "strip", z.ZodTypeAny, {
415
438
  id: string;
416
439
  status: string | null;
417
440
  createdAt: Date;
@@ -1520,19 +1543,19 @@ export declare const chatContract: {
1520
1543
  email: string;
1521
1544
  wabaExternalId: string;
1522
1545
  phoneNumberId: string;
1546
+ status?: "active" | "pending" | undefined;
1547
+ channelId?: string | undefined;
1523
1548
  wabaBusinessId?: string | undefined;
1524
1549
  clientId?: string | undefined;
1525
- channelId?: string | undefined;
1526
- status?: "active" | "pending" | undefined;
1527
1550
  apiKey?: string | undefined;
1528
1551
  }, {
1529
1552
  email: string;
1530
1553
  wabaExternalId: string;
1531
1554
  phoneNumberId: string;
1555
+ status?: "active" | "pending" | undefined;
1556
+ channelId?: string | undefined;
1532
1557
  wabaBusinessId?: string | undefined;
1533
1558
  clientId?: string | undefined;
1534
- channelId?: string | undefined;
1535
- status?: "active" | "pending" | undefined;
1536
1559
  apiKey?: string | undefined;
1537
1560
  }>>;
1538
1561
  vonageCredentials: z.ZodOptional<z.ZodObject<{
@@ -1554,19 +1577,19 @@ export declare const chatContract: {
1554
1577
  name: string;
1555
1578
  id: string;
1556
1579
  accessToken?: string | undefined;
1557
- channelSecret?: string | undefined;
1558
- additionalCredentials?: any;
1559
- senderId?: string | undefined;
1560
1580
  whatsapp?: {
1561
1581
  email: string;
1562
1582
  wabaExternalId: string;
1563
1583
  phoneNumberId: string;
1584
+ status?: "active" | "pending" | undefined;
1585
+ channelId?: string | undefined;
1564
1586
  wabaBusinessId?: string | undefined;
1565
1587
  clientId?: string | undefined;
1566
- channelId?: string | undefined;
1567
- status?: "active" | "pending" | undefined;
1568
1588
  apiKey?: string | undefined;
1569
1589
  } | undefined;
1590
+ additionalCredentials?: any;
1591
+ channelSecret?: string | undefined;
1592
+ senderId?: string | undefined;
1570
1593
  vonageCredentials?: {
1571
1594
  apiKey: string;
1572
1595
  mobileNumber: string;
@@ -1578,19 +1601,19 @@ export declare const chatContract: {
1578
1601
  name: string;
1579
1602
  id: string;
1580
1603
  accessToken?: string | undefined;
1581
- channelSecret?: string | undefined;
1582
- additionalCredentials?: any;
1583
- senderId?: string | undefined;
1584
1604
  whatsapp?: {
1585
1605
  email: string;
1586
1606
  wabaExternalId: string;
1587
1607
  phoneNumberId: string;
1608
+ status?: "active" | "pending" | undefined;
1609
+ channelId?: string | undefined;
1588
1610
  wabaBusinessId?: string | undefined;
1589
1611
  clientId?: string | undefined;
1590
- channelId?: string | undefined;
1591
- status?: "active" | "pending" | undefined;
1592
1612
  apiKey?: string | undefined;
1593
1613
  } | undefined;
1614
+ additionalCredentials?: any;
1615
+ channelSecret?: string | undefined;
1616
+ senderId?: string | undefined;
1594
1617
  vonageCredentials?: {
1595
1618
  apiKey: string;
1596
1619
  mobileNumber: string;
@@ -1836,19 +1859,19 @@ export declare const chatContract: {
1836
1859
  name: string;
1837
1860
  id: string;
1838
1861
  accessToken?: string | undefined;
1839
- channelSecret?: string | undefined;
1840
- additionalCredentials?: any;
1841
- senderId?: string | undefined;
1842
1862
  whatsapp?: {
1843
1863
  email: string;
1844
1864
  wabaExternalId: string;
1845
1865
  phoneNumberId: string;
1866
+ status?: "active" | "pending" | undefined;
1867
+ channelId?: string | undefined;
1846
1868
  wabaBusinessId?: string | undefined;
1847
1869
  clientId?: string | undefined;
1848
- channelId?: string | undefined;
1849
- status?: "active" | "pending" | undefined;
1850
1870
  apiKey?: string | undefined;
1851
1871
  } | undefined;
1872
+ additionalCredentials?: any;
1873
+ channelSecret?: string | undefined;
1874
+ senderId?: string | undefined;
1852
1875
  vonageCredentials?: {
1853
1876
  apiKey: string;
1854
1877
  mobileNumber: string;
@@ -1925,19 +1948,19 @@ export declare const chatContract: {
1925
1948
  name: string;
1926
1949
  id: string;
1927
1950
  accessToken?: string | undefined;
1928
- channelSecret?: string | undefined;
1929
- additionalCredentials?: any;
1930
- senderId?: string | undefined;
1931
1951
  whatsapp?: {
1932
1952
  email: string;
1933
1953
  wabaExternalId: string;
1934
1954
  phoneNumberId: string;
1955
+ status?: "active" | "pending" | undefined;
1956
+ channelId?: string | undefined;
1935
1957
  wabaBusinessId?: string | undefined;
1936
1958
  clientId?: string | undefined;
1937
- channelId?: string | undefined;
1938
- status?: "active" | "pending" | undefined;
1939
1959
  apiKey?: string | undefined;
1940
1960
  } | undefined;
1961
+ additionalCredentials?: any;
1962
+ channelSecret?: string | undefined;
1963
+ senderId?: string | undefined;
1941
1964
  vonageCredentials?: {
1942
1965
  apiKey: string;
1943
1966
  mobileNumber: string;
@@ -2007,11 +2030,12 @@ export declare const chatContract: {
2007
2030
  integrationId: string;
2008
2031
  } | null;
2009
2032
  }>;
2010
- cxlog: z.ZodObject<{
2033
+ cxlog: z.ZodObject<z.objectUtil.extendShape<{
2011
2034
  id: z.ZodString;
2012
2035
  createdAt: z.ZodDate;
2013
2036
  updatedAt: z.ZodDate;
2014
2037
  deletedAt: z.ZodNullable<z.ZodDate>;
2038
+ }, {
2015
2039
  caseId: z.ZodNumber;
2016
2040
  entityId: z.ZodString;
2017
2041
  entityName: z.ZodString;
@@ -2023,21 +2047,23 @@ export declare const chatContract: {
2023
2047
  startedDate: z.ZodNullable<z.ZodDate>;
2024
2048
  handledTime: z.ZodNullable<z.ZodNumber>;
2025
2049
  firstResponseTime: z.ZodNullable<z.ZodNumber>;
2026
- wrapUpForm: z.ZodNullable<z.ZodObject<{
2050
+ wrapUpForm: z.ZodNullable<z.ZodObject<z.objectUtil.extendShape<{
2027
2051
  id: z.ZodString;
2028
2052
  createdAt: z.ZodDate;
2029
2053
  updatedAt: z.ZodDate;
2030
2054
  deletedAt: z.ZodNullable<z.ZodDate>;
2055
+ }, {
2031
2056
  note: z.ZodNullable<z.ZodString>;
2032
2057
  disposition: z.ZodNullable<z.ZodString>;
2033
2058
  type: z.ZodString;
2034
- tags: z.ZodArray<z.ZodObject<{
2059
+ tags: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
2035
2060
  id: z.ZodString;
2036
2061
  createdAt: z.ZodDate;
2037
2062
  updatedAt: z.ZodDate;
2038
2063
  deletedAt: z.ZodNullable<z.ZodDate>;
2064
+ }, {
2039
2065
  name: z.ZodString;
2040
- }, "strip", z.ZodTypeAny, {
2066
+ }>, "strip", z.ZodTypeAny, {
2041
2067
  name: string;
2042
2068
  id: string;
2043
2069
  createdAt: Date;
@@ -2050,11 +2076,12 @@ export declare const chatContract: {
2050
2076
  updatedAt: Date;
2051
2077
  deletedAt: Date | null;
2052
2078
  }>, "many">;
2053
- categories: z.ZodArray<z.ZodObject<{
2079
+ categories: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
2054
2080
  id: z.ZodString;
2055
2081
  createdAt: z.ZodDate;
2056
2082
  updatedAt: z.ZodDate;
2057
2083
  deletedAt: z.ZodNullable<z.ZodDate>;
2084
+ }, {
2058
2085
  value: z.ZodString;
2059
2086
  level: z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
2060
2087
  parentId: z.ZodNullable<z.ZodString>;
@@ -2107,7 +2134,7 @@ export declare const chatContract: {
2107
2134
  childCategoryList: any[];
2108
2135
  }[];
2109
2136
  }>, "many">;
2110
- }, "strip", z.ZodTypeAny, {
2137
+ }>, "strip", z.ZodTypeAny, {
2111
2138
  id: string;
2112
2139
  value: string;
2113
2140
  createdAt: Date;
@@ -2186,7 +2213,7 @@ export declare const chatContract: {
2186
2213
  numberValue: number | null;
2187
2214
  dateValue: Date | null;
2188
2215
  }>, "many">>>;
2189
- }, "strip", z.ZodTypeAny, {
2216
+ }>, "strip", z.ZodTypeAny, {
2190
2217
  type: string;
2191
2218
  id: string;
2192
2219
  disposition: string | null;
@@ -2289,7 +2316,7 @@ export declare const chatContract: {
2289
2316
  dateValue: Date | null;
2290
2317
  }[] | null | undefined;
2291
2318
  }>>;
2292
- }, "strip", z.ZodTypeAny, {
2319
+ }>, "strip", z.ZodTypeAny, {
2293
2320
  id: string;
2294
2321
  channel: string | null;
2295
2322
  direction: string | null;
@@ -2426,15 +2453,16 @@ export declare const chatContract: {
2426
2453
  }[] | null | undefined;
2427
2454
  } | null;
2428
2455
  }>;
2429
- workflowRule: z.ZodObject<{
2456
+ workflowRule: z.ZodObject<z.objectUtil.extendShape<{
2430
2457
  id: z.ZodString;
2431
2458
  createdAt: z.ZodDate;
2432
2459
  updatedAt: z.ZodDate;
2433
2460
  deletedAt: z.ZodNullable<z.ZodDate>;
2461
+ }, {
2434
2462
  name: z.ZodString;
2435
2463
  isActive: z.ZodBoolean;
2436
2464
  type: z.ZodString;
2437
- }, "strip", z.ZodTypeAny, {
2465
+ }>, "strip", z.ZodTypeAny, {
2438
2466
  name: string;
2439
2467
  type: string;
2440
2468
  id: string;
@@ -2452,7 +2480,7 @@ export declare const chatContract: {
2452
2480
  isActive: boolean;
2453
2481
  }>;
2454
2482
  automationQueueId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2455
- }, "strip", z.ZodTypeAny, {
2483
+ }>, "strip", z.ZodTypeAny, {
2456
2484
  id: string;
2457
2485
  channel: {
2458
2486
  name: string;
@@ -2462,19 +2490,19 @@ export declare const chatContract: {
2462
2490
  name: string;
2463
2491
  id: string;
2464
2492
  accessToken?: string | undefined;
2465
- channelSecret?: string | undefined;
2466
- additionalCredentials?: any;
2467
- senderId?: string | undefined;
2468
2493
  whatsapp?: {
2469
2494
  email: string;
2470
2495
  wabaExternalId: string;
2471
2496
  phoneNumberId: string;
2497
+ status?: "active" | "pending" | undefined;
2498
+ channelId?: string | undefined;
2472
2499
  wabaBusinessId?: string | undefined;
2473
2500
  clientId?: string | undefined;
2474
- channelId?: string | undefined;
2475
- status?: "active" | "pending" | undefined;
2476
2501
  apiKey?: string | undefined;
2477
2502
  } | undefined;
2503
+ additionalCredentials?: any;
2504
+ channelSecret?: string | undefined;
2505
+ senderId?: string | undefined;
2478
2506
  vonageCredentials?: {
2479
2507
  apiKey: string;
2480
2508
  mobileNumber: string;
@@ -2862,19 +2890,19 @@ export declare const chatContract: {
2862
2890
  name: string;
2863
2891
  id: string;
2864
2892
  accessToken?: string | undefined;
2865
- channelSecret?: string | undefined;
2866
- additionalCredentials?: any;
2867
- senderId?: string | undefined;
2868
2893
  whatsapp?: {
2869
2894
  email: string;
2870
2895
  wabaExternalId: string;
2871
2896
  phoneNumberId: string;
2897
+ status?: "active" | "pending" | undefined;
2898
+ channelId?: string | undefined;
2872
2899
  wabaBusinessId?: string | undefined;
2873
2900
  clientId?: string | undefined;
2874
- channelId?: string | undefined;
2875
- status?: "active" | "pending" | undefined;
2876
2901
  apiKey?: string | undefined;
2877
2902
  } | undefined;
2903
+ additionalCredentials?: any;
2904
+ channelSecret?: string | undefined;
2905
+ senderId?: string | undefined;
2878
2906
  vonageCredentials?: {
2879
2907
  apiKey: string;
2880
2908
  mobileNumber: string;
@@ -3253,7 +3281,7 @@ export declare const chatContract: {
3253
3281
  };
3254
3282
  automationQueueId?: string | null | undefined;
3255
3283
  }>;
3256
- }, "strip", z.ZodTypeAny, {
3284
+ }>, "strip", z.ZodTypeAny, {
3257
3285
  data: {
3258
3286
  id: string;
3259
3287
  channel: {
@@ -3264,19 +3292,19 @@ export declare const chatContract: {
3264
3292
  name: string;
3265
3293
  id: string;
3266
3294
  accessToken?: string | undefined;
3267
- channelSecret?: string | undefined;
3268
- additionalCredentials?: any;
3269
- senderId?: string | undefined;
3270
3295
  whatsapp?: {
3271
3296
  email: string;
3272
3297
  wabaExternalId: string;
3273
3298
  phoneNumberId: string;
3299
+ status?: "active" | "pending" | undefined;
3300
+ channelId?: string | undefined;
3274
3301
  wabaBusinessId?: string | undefined;
3275
3302
  clientId?: string | undefined;
3276
- channelId?: string | undefined;
3277
- status?: "active" | "pending" | undefined;
3278
3303
  apiKey?: string | undefined;
3279
3304
  } | undefined;
3305
+ additionalCredentials?: any;
3306
+ channelSecret?: string | undefined;
3307
+ senderId?: string | undefined;
3280
3308
  vonageCredentials?: {
3281
3309
  apiKey: string;
3282
3310
  mobileNumber: string;
@@ -3667,19 +3695,19 @@ export declare const chatContract: {
3667
3695
  name: string;
3668
3696
  id: string;
3669
3697
  accessToken?: string | undefined;
3670
- channelSecret?: string | undefined;
3671
- additionalCredentials?: any;
3672
- senderId?: string | undefined;
3673
3698
  whatsapp?: {
3674
3699
  email: string;
3675
3700
  wabaExternalId: string;
3676
3701
  phoneNumberId: string;
3702
+ status?: "active" | "pending" | undefined;
3703
+ channelId?: string | undefined;
3677
3704
  wabaBusinessId?: string | undefined;
3678
3705
  clientId?: string | undefined;
3679
- channelId?: string | undefined;
3680
- status?: "active" | "pending" | undefined;
3681
3706
  apiKey?: string | undefined;
3682
3707
  } | undefined;
3708
+ additionalCredentials?: any;
3709
+ channelSecret?: string | undefined;
3710
+ senderId?: string | undefined;
3683
3711
  vonageCredentials?: {
3684
3712
  apiKey: string;
3685
3713
  mobileNumber: string;
@@ -4071,17 +4099,6 @@ export declare const chatContract: {
4071
4099
  error?: any;
4072
4100
  }>;
4073
4101
  };
4074
- path: "chat/room/assignee";
4075
- headers: z.ZodObject<{
4076
- 'x-tenant': z.ZodString;
4077
- 'x-code': z.ZodOptional<z.ZodString>;
4078
- }, "strip", z.ZodTypeAny, {
4079
- 'x-tenant': string;
4080
- 'x-code'?: string | undefined;
4081
- }, {
4082
- 'x-tenant': string;
4083
- 'x-code'?: string | undefined;
4084
- }>;
4085
4102
  };
4086
4103
  solveRoom: {
4087
4104
  body: z.ZodObject<{
@@ -4099,1172 +4116,628 @@ export declare const chatContract: {
4099
4116
  }>;
4100
4117
  summary: "Solve room";
4101
4118
  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
+ }>;
4102
4130
  responses: {
4103
- 200: z.ZodObject<{
4131
+ 200: z.ZodObject<z.objectUtil.extendShape<{
4104
4132
  requestId: z.ZodString;
4105
- data: z.ZodObject<{
4133
+ }, {
4134
+ data: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
4106
4135
  id: z.ZodString;
4107
- channel: z.ZodObject<{
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<{
4108
4152
  id: z.ZodString;
4109
4153
  createdAt: z.ZodDate;
4110
4154
  updatedAt: z.ZodDate;
4111
4155
  deletedAt: z.ZodNullable<z.ZodDate>;
4112
- name: z.ZodString;
4156
+ channelId: z.ZodString;
4157
+ socialPlatformId: z.ZodString;
4113
4158
  type: z.ZodEnum<["whatsapp", "messenger", "telegram", "instagram", "line", "viber", "kakao", "shopee", "lazada", "webchat", "facebook_feed", "sms_vonage"]>;
4114
4159
  metadata: z.ZodObject<{
4115
4160
  id: z.ZodString;
4116
4161
  name: z.ZodString;
4117
- accessToken: z.ZodOptional<z.ZodString>;
4118
- channelSecret: z.ZodOptional<z.ZodString>;
4119
- additionalCredentials: z.ZodOptional<z.ZodAny>;
4120
- senderId: z.ZodOptional<z.ZodString>;
4121
- whatsapp: z.ZodOptional<z.ZodObject<{
4122
- wabaBusinessId: z.ZodOptional<z.ZodString>;
4123
- wabaExternalId: z.ZodString;
4124
- phoneNumberId: z.ZodString;
4125
- email: z.ZodString;
4126
- clientId: z.ZodOptional<z.ZodString>;
4127
- channelId: z.ZodOptional<z.ZodString>;
4128
- status: z.ZodOptional<z.ZodEnum<["pending", "active"]>>;
4129
- apiKey: z.ZodOptional<z.ZodString>;
4130
- }, "strip", z.ZodTypeAny, {
4131
- email: string;
4132
- wabaExternalId: string;
4133
- phoneNumberId: string;
4134
- wabaBusinessId?: string | undefined;
4135
- clientId?: string | undefined;
4136
- channelId?: string | undefined;
4137
- status?: "active" | "pending" | undefined;
4138
- apiKey?: string | undefined;
4139
- }, {
4140
- email: string;
4141
- wabaExternalId: string;
4142
- phoneNumberId: string;
4143
- wabaBusinessId?: string | undefined;
4144
- clientId?: string | undefined;
4145
- channelId?: string | undefined;
4146
- status?: "active" | "pending" | undefined;
4147
- apiKey?: string | undefined;
4148
- }>>;
4149
- vonageCredentials: z.ZodOptional<z.ZodObject<{
4150
- mobileNumber: z.ZodString;
4151
- apiKey: z.ZodString;
4152
- apiSecret: z.ZodString;
4153
- }, "strip", z.ZodTypeAny, {
4154
- apiKey: string;
4155
- mobileNumber: string;
4156
- apiSecret: string;
4157
- }, {
4158
- apiKey: string;
4159
- mobileNumber: string;
4160
- apiSecret: string;
4161
- }>>;
4162
- lineRichMenuId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
4163
- messengerIntegrationType: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"own">, z.ZodLiteral<"business">]>>;
4162
+ picture: z.ZodOptional<z.ZodString>;
4163
+ additionalCredentials: z.ZodAny;
4164
4164
  }, "strip", z.ZodTypeAny, {
4165
4165
  name: string;
4166
4166
  id: string;
4167
- accessToken?: string | undefined;
4168
- channelSecret?: string | undefined;
4167
+ picture?: string | undefined;
4169
4168
  additionalCredentials?: any;
4170
- senderId?: string | undefined;
4171
- whatsapp?: {
4172
- email: string;
4173
- wabaExternalId: string;
4174
- phoneNumberId: string;
4175
- wabaBusinessId?: string | undefined;
4176
- clientId?: string | undefined;
4177
- channelId?: string | undefined;
4178
- status?: "active" | "pending" | undefined;
4179
- apiKey?: string | undefined;
4180
- } | undefined;
4181
- vonageCredentials?: {
4182
- apiKey: string;
4183
- mobileNumber: string;
4184
- apiSecret: string;
4185
- } | undefined;
4186
- lineRichMenuId?: string | null | undefined;
4187
- messengerIntegrationType?: "own" | "business" | undefined;
4188
4169
  }, {
4189
4170
  name: string;
4190
4171
  id: string;
4191
- accessToken?: string | undefined;
4192
- channelSecret?: string | undefined;
4172
+ picture?: string | undefined;
4193
4173
  additionalCredentials?: any;
4194
- senderId?: string | undefined;
4195
- whatsapp?: {
4196
- email: string;
4197
- wabaExternalId: string;
4198
- phoneNumberId: string;
4199
- wabaBusinessId?: string | undefined;
4200
- clientId?: string | undefined;
4201
- channelId?: string | undefined;
4202
- status?: "active" | "pending" | undefined;
4203
- apiKey?: string | undefined;
4204
- } | undefined;
4205
- vonageCredentials?: {
4206
- apiKey: string;
4207
- mobileNumber: string;
4208
- apiSecret: string;
4209
- } | undefined;
4210
- lineRichMenuId?: string | null | undefined;
4211
- messengerIntegrationType?: "own" | "business" | undefined;
4212
4174
  }>;
4213
- brandName: z.ZodString;
4214
- platformId: z.ZodString;
4215
- status: z.ZodUnion<[z.ZodLiteral<true>, z.ZodLiteral<false>]>;
4216
- isReloginRequired: z.ZodBoolean;
4217
- connectedUserName: z.ZodString;
4218
- connectedUserId: z.ZodString;
4219
- botpressBot: z.ZodNullable<z.ZodObject<{
4220
- id: z.ZodString;
4221
- name: z.ZodString;
4222
- botId: z.ZodString;
4223
- integrationId: z.ZodString;
4224
- accessToken: z.ZodString;
4225
- }, "strip", z.ZodTypeAny, {
4226
- name: string;
4227
- id: string;
4228
- accessToken: string;
4229
- botId: string;
4230
- integrationId: string;
4231
- }, {
4232
- name: string;
4233
- id: string;
4234
- accessToken: string;
4235
- botId: string;
4236
- integrationId: string;
4237
- }>>;
4238
- actor: z.ZodObject<{
4175
+ contact: z.ZodObject<{
4239
4176
  id: z.ZodString;
4240
4177
  createdAt: z.ZodDate;
4241
4178
  updatedAt: z.ZodDate;
4242
4179
  deletedAt: z.ZodNullable<z.ZodDate>;
4243
4180
  name: z.ZodString;
4244
- email: z.ZodString;
4245
- emailVerifiedAt: z.ZodNullable<z.ZodDate>;
4246
- password: z.ZodString;
4247
4181
  address: z.ZodNullable<z.ZodString>;
4248
- phone: z.ZodNullable<z.ZodString>;
4249
- notificationCount: z.ZodNullable<z.ZodNumber>;
4250
- roles: z.ZodArray<z.ZodObject<{
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<{
4251
4187
  id: z.ZodString;
4252
4188
  createdAt: z.ZodDate;
4253
4189
  updatedAt: z.ZodDate;
4254
4190
  deletedAt: z.ZodNullable<z.ZodDate>;
4255
- systemName: z.ZodString;
4256
- displayName: z.ZodString;
4257
- description: z.ZodNullable<z.ZodString>;
4258
- permissions: z.ZodArray<z.ZodObject<{
4191
+ }, {
4192
+ name: z.ZodString;
4193
+ }>, "strip", z.ZodTypeAny, {
4194
+ name: string;
4195
+ id: string;
4196
+ createdAt: Date;
4197
+ updatedAt: Date;
4198
+ deletedAt: Date | null;
4199
+ }, {
4200
+ name: string;
4201
+ id: string;
4202
+ createdAt: Date;
4203
+ updatedAt: Date;
4204
+ deletedAt: Date | null;
4205
+ }>, "many">;
4206
+ company: z.ZodNullable<z.ZodObject<Omit<z.objectUtil.extendShape<{
4207
+ id: z.ZodString;
4208
+ createdAt: z.ZodDate;
4209
+ updatedAt: z.ZodDate;
4210
+ deletedAt: z.ZodNullable<z.ZodDate>;
4211
+ }, {
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<{
4259
4217
  id: z.ZodString;
4260
4218
  createdAt: z.ZodDate;
4261
4219
  updatedAt: z.ZodDate;
4262
4220
  deletedAt: z.ZodNullable<z.ZodDate>;
4263
- systemName: z.ZodString;
4264
- displayName: z.ZodString;
4265
- description: z.ZodNullable<z.ZodString>;
4266
- }, "strip", z.ZodTypeAny, {
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, {
4267
4311
  id: string;
4268
- description: string | null;
4269
4312
  createdAt: Date;
4270
4313
  updatedAt: Date;
4271
4314
  deletedAt: Date | null;
4272
- systemName: string;
4273
- displayName: string;
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;
4274
4333
  }, {
4275
4334
  id: string;
4276
- description: string | null;
4277
4335
  createdAt: Date;
4278
4336
  updatedAt: Date;
4279
4337
  deletedAt: Date | null;
4280
- systemName: string;
4281
- displayName: string;
4282
- }>, "many">;
4283
- }, "strip", z.ZodTypeAny, {
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, {
4284
4358
  id: string;
4285
- description: string | null;
4286
4359
  createdAt: Date;
4287
4360
  updatedAt: Date;
4288
4361
  deletedAt: Date | null;
4289
- systemName: string;
4290
- displayName: string;
4291
- permissions: {
4292
- id: string;
4293
- description: string | null;
4294
- createdAt: Date;
4295
- updatedAt: Date;
4296
- deletedAt: Date | null;
4297
- systemName: string;
4298
- displayName: string;
4299
- }[];
4362
+ name?: string | undefined;
4363
+ address?: string | null | undefined;
4364
+ phone?: string | null | undefined;
4365
+ industry?: string | null | undefined;
4300
4366
  }, {
4301
4367
  id: string;
4302
- description: string | null;
4303
4368
  createdAt: Date;
4304
4369
  updatedAt: Date;
4305
4370
  deletedAt: Date | null;
4306
- systemName: string;
4307
- displayName: string;
4308
- permissions: {
4309
- id: string;
4310
- description: string | null;
4311
- createdAt: Date;
4312
- updatedAt: Date;
4313
- deletedAt: Date | null;
4314
- systemName: string;
4315
- displayName: string;
4316
- }[];
4317
- }>, "many">;
4318
- extension: z.ZodObject<{
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<{
4319
4377
  id: z.ZodString;
4320
4378
  createdAt: z.ZodDate;
4321
4379
  updatedAt: z.ZodDate;
4322
4380
  deletedAt: z.ZodNullable<z.ZodDate>;
4323
- userId: z.ZodNullable<z.ZodString>;
4324
- sipServerUrl: z.ZodString;
4325
- sipUserName: z.ZodString;
4326
- webphoneLoginUser: z.ZodString;
4327
- extensionId: z.ZodNullable<z.ZodString>;
4328
- extensionName: z.ZodString;
4329
- telephonySignature: z.ZodNullable<z.ZodString>;
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
+ }>;
4330
4400
  }, "strip", z.ZodTypeAny, {
4401
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
4331
4402
  id: string;
4403
+ metadata: {
4404
+ name: string;
4405
+ id: string;
4406
+ picture?: string | undefined;
4407
+ additionalCredentials?: any;
4408
+ };
4332
4409
  createdAt: Date;
4333
4410
  updatedAt: Date;
4334
4411
  deletedAt: Date | null;
4335
- userId: string | null;
4336
- sipServerUrl: string;
4337
- sipUserName: string;
4338
- webphoneLoginUser: string;
4339
- extensionId: string | null;
4340
- extensionName: string;
4341
- telephonySignature: string | null;
4412
+ channelId: string;
4413
+ socialPlatformId: string;
4342
4414
  }, {
4415
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
4343
4416
  id: string;
4417
+ metadata: {
4418
+ name: string;
4419
+ id: string;
4420
+ picture?: string | undefined;
4421
+ additionalCredentials?: any;
4422
+ };
4344
4423
  createdAt: Date;
4345
4424
  updatedAt: Date;
4346
4425
  deletedAt: Date | null;
4347
- userId: string | null;
4348
- sipServerUrl: string;
4349
- sipUserName: string;
4350
- webphoneLoginUser: string;
4351
- extensionId: string | null;
4352
- extensionName: string;
4353
- telephonySignature: string | null;
4354
- }>;
4355
- }, "strip", z.ZodTypeAny, {
4356
- name: string;
4357
- id: string;
4358
- address: string | null;
4359
- email: string;
4360
- createdAt: Date;
4361
- updatedAt: Date;
4362
- deletedAt: Date | null;
4363
- emailVerifiedAt: Date | null;
4364
- password: string;
4365
- phone: string | null;
4366
- notificationCount: number | null;
4367
- roles: {
4368
- id: string;
4369
- description: string | null;
4370
- createdAt: Date;
4371
- updatedAt: Date;
4372
- deletedAt: Date | null;
4373
- systemName: string;
4374
- displayName: string;
4375
- permissions: {
4426
+ channelId: string;
4427
+ socialPlatformId: string;
4428
+ }>, "many">>;
4429
+ customFields: z.ZodArray<z.ZodObject<{
4430
+ id: z.ZodString;
4431
+ createdAt: z.ZodDate;
4432
+ updatedAt: z.ZodDate;
4433
+ 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<{
4439
+ id: z.ZodString;
4440
+ createdAt: z.ZodDate;
4441
+ updatedAt: z.ZodDate;
4442
+ 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<{
4473
+ id: z.ZodString;
4474
+ createdAt: z.ZodDate;
4475
+ updatedAt: z.ZodDate;
4476
+ deletedAt: z.ZodNullable<z.ZodDate>;
4477
+ }, {
4478
+ systemName: z.ZodString;
4479
+ 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
+ }, {
4488
+ id: string;
4489
+ createdAt: Date;
4490
+ updatedAt: Date;
4491
+ deletedAt: Date | null;
4492
+ systemName: string;
4493
+ displayName: string;
4494
+ }>;
4495
+ }>, "options" | "group">, "strip", z.ZodTypeAny, {
4496
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
4376
4497
  id: string;
4377
- description: string | null;
4498
+ position: number;
4378
4499
  createdAt: Date;
4379
4500
  updatedAt: Date;
4380
4501
  deletedAt: Date | null;
4381
4502
  systemName: string;
4382
4503
  displayName: string;
4383
- }[];
4384
- }[];
4385
- extension: {
4386
- id: string;
4387
- createdAt: Date;
4388
- updatedAt: Date;
4389
- deletedAt: Date | null;
4390
- userId: string | null;
4391
- sipServerUrl: string;
4392
- sipUserName: string;
4393
- webphoneLoginUser: string;
4394
- extensionId: string | null;
4395
- extensionName: string;
4396
- telephonySignature: string | null;
4397
- };
4398
- }, {
4399
- name: string;
4400
- id: string;
4401
- address: string | null;
4402
- email: string;
4403
- createdAt: Date;
4404
- updatedAt: Date;
4405
- deletedAt: Date | null;
4406
- emailVerifiedAt: Date | null;
4407
- password: string;
4408
- phone: string | null;
4409
- notificationCount: number | null;
4410
- roles: {
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, {
4411
4558
  id: string;
4412
- description: string | null;
4413
4559
  createdAt: Date;
4414
4560
  updatedAt: Date;
4415
4561
  deletedAt: Date | null;
4416
- systemName: string;
4417
- displayName: string;
4418
- permissions: {
4562
+ attribute: {
4563
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
4419
4564
  id: string;
4420
- description: string | null;
4565
+ position: number;
4421
4566
  createdAt: Date;
4422
4567
  updatedAt: Date;
4423
4568
  deletedAt: Date | null;
4424
4569
  systemName: string;
4425
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;
4426
4591
  }[];
4427
- }[];
4428
- extension: {
4592
+ }, {
4429
4593
  id: string;
4430
4594
  createdAt: Date;
4431
4595
  updatedAt: Date;
4432
4596
  deletedAt: Date | null;
4433
- userId: string | null;
4434
- sipServerUrl: string;
4435
- sipUserName: string;
4436
- webphoneLoginUser: string;
4437
- extensionId: string | null;
4438
- extensionName: string;
4439
- telephonySignature: string | null;
4440
- };
4441
- }>;
4442
- }, "strip", z.ZodTypeAny, {
4443
- name: string;
4444
- type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
4445
- id: string;
4446
- metadata: {
4447
- name: string;
4448
- id: string;
4449
- accessToken?: string | undefined;
4450
- channelSecret?: string | undefined;
4451
- additionalCredentials?: any;
4452
- senderId?: string | undefined;
4453
- whatsapp?: {
4454
- email: string;
4455
- wabaExternalId: string;
4456
- phoneNumberId: string;
4457
- wabaBusinessId?: string | undefined;
4458
- clientId?: string | undefined;
4459
- channelId?: string | undefined;
4460
- status?: "active" | "pending" | undefined;
4461
- apiKey?: string | undefined;
4462
- } | undefined;
4463
- vonageCredentials?: {
4464
- apiKey: string;
4465
- mobileNumber: string;
4466
- apiSecret: string;
4467
- } | undefined;
4468
- lineRichMenuId?: string | null | undefined;
4469
- messengerIntegrationType?: "own" | "business" | undefined;
4470
- };
4471
- status: boolean;
4472
- createdAt: Date;
4473
- updatedAt: Date;
4474
- deletedAt: Date | null;
4475
- actor: {
4476
- name: string;
4477
- id: string;
4478
- address: string | null;
4479
- email: string;
4480
- createdAt: Date;
4481
- updatedAt: Date;
4482
- deletedAt: Date | null;
4483
- emailVerifiedAt: Date | null;
4484
- password: string;
4485
- phone: string | null;
4486
- notificationCount: number | null;
4487
- roles: {
4488
- id: string;
4489
- description: string | null;
4490
- createdAt: Date;
4491
- updatedAt: Date;
4492
- deletedAt: Date | null;
4493
- systemName: string;
4494
- displayName: string;
4495
- permissions: {
4597
+ attribute: {
4598
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
4496
4599
  id: string;
4497
- description: string | null;
4600
+ position: number;
4498
4601
  createdAt: Date;
4499
4602
  updatedAt: Date;
4500
4603
  deletedAt: Date | null;
4501
4604
  systemName: string;
4502
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: {
4616
+ id: string;
4617
+ status: string | null;
4618
+ createdAt: Date;
4619
+ updatedAt: Date;
4620
+ deletedAt: Date | null;
4621
+ fileName: string;
4622
+ fileKey: string;
4623
+ bucketName: string;
4624
+ fileSize: number;
4625
+ fileUrl: string | null;
4503
4626
  }[];
4504
- }[];
4505
- extension: {
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, {
4506
4636
  id: string;
4507
- createdAt: Date;
4508
- updatedAt: Date;
4509
- deletedAt: Date | null;
4510
- userId: string | null;
4511
- sipServerUrl: string;
4512
- sipUserName: string;
4513
- webphoneLoginUser: string;
4514
- extensionId: string | null;
4515
- extensionName: string;
4516
- telephonySignature: string | null;
4517
- };
4518
- };
4519
- brandName: string;
4520
- platformId: string;
4521
- isReloginRequired: boolean;
4522
- connectedUserName: string;
4523
- connectedUserId: string;
4524
- botpressBot: {
4525
- name: string;
4526
- id: string;
4527
- accessToken: string;
4528
- botId: string;
4529
- integrationId: string;
4530
- } | null;
4531
- }, {
4532
- name: string;
4533
- type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
4534
- id: string;
4535
- metadata: {
4536
- name: string;
4537
- id: string;
4538
- accessToken?: string | undefined;
4539
- channelSecret?: string | undefined;
4540
- additionalCredentials?: any;
4541
- senderId?: string | undefined;
4542
- whatsapp?: {
4637
+ isPrimary: boolean;
4543
4638
  email: string;
4544
- wabaExternalId: string;
4545
- phoneNumberId: string;
4546
- wabaBusinessId?: string | undefined;
4547
- clientId?: string | undefined;
4548
- channelId?: string | undefined;
4549
- status?: "active" | "pending" | undefined;
4550
- apiKey?: string | undefined;
4551
- } | undefined;
4552
- vonageCredentials?: {
4553
- apiKey: string;
4554
- mobileNumber: string;
4555
- apiSecret: string;
4556
- } | undefined;
4557
- lineRichMenuId?: string | null | undefined;
4558
- messengerIntegrationType?: "own" | "business" | undefined;
4559
- };
4560
- status: boolean;
4561
- createdAt: Date;
4562
- updatedAt: Date;
4563
- deletedAt: Date | null;
4564
- actor: {
4565
- name: string;
4566
- id: string;
4567
- address: string | null;
4568
- email: string;
4569
- createdAt: Date;
4570
- updatedAt: Date;
4571
- deletedAt: Date | null;
4572
- emailVerifiedAt: Date | null;
4573
- password: string;
4574
- phone: string | null;
4575
- notificationCount: number | null;
4576
- roles: {
4577
- id: string;
4578
- description: string | null;
4579
4639
  createdAt: Date;
4580
4640
  updatedAt: Date;
4581
4641
  deletedAt: Date | null;
4582
- systemName: string;
4583
- displayName: string;
4584
- permissions: {
4585
- id: string;
4586
- description: string | null;
4587
- createdAt: Date;
4588
- updatedAt: Date;
4589
- deletedAt: Date | null;
4590
- systemName: string;
4591
- displayName: string;
4592
- }[];
4593
- }[];
4594
- extension: {
4642
+ }, {
4595
4643
  id: string;
4644
+ isPrimary: boolean;
4645
+ email: string;
4596
4646
  createdAt: Date;
4597
4647
  updatedAt: Date;
4598
4648
  deletedAt: Date | null;
4599
- userId: string | null;
4600
- sipServerUrl: string;
4601
- sipUserName: string;
4602
- webphoneLoginUser: string;
4603
- extensionId: string | null;
4604
- extensionName: string;
4605
- telephonySignature: string | null;
4606
- };
4607
- };
4608
- brandName: string;
4609
- platformId: string;
4610
- isReloginRequired: boolean;
4611
- connectedUserName: string;
4612
- connectedUserId: string;
4613
- botpressBot: {
4614
- name: string;
4615
- id: string;
4616
- accessToken: string;
4617
- botId: string;
4618
- integrationId: string;
4619
- } | null;
4620
- }>;
4621
- direction: z.ZodEnum<["incoming", "outgoing", "system"]>;
4622
- status: z.ZodNumber;
4623
- createdAt: z.ZodDate;
4624
- updatedAt: z.ZodDate;
4625
- deletedAt: z.ZodNullable<z.ZodDate>;
4626
- actor: z.ZodObject<{
4627
- id: z.ZodString;
4628
- createdAt: z.ZodDate;
4629
- updatedAt: z.ZodDate;
4630
- deletedAt: z.ZodNullable<z.ZodDate>;
4631
- name: z.ZodString;
4632
- email: z.ZodString;
4633
- emailVerifiedAt: z.ZodNullable<z.ZodDate>;
4634
- password: z.ZodString;
4635
- address: z.ZodNullable<z.ZodString>;
4636
- phone: z.ZodNullable<z.ZodString>;
4637
- notificationCount: z.ZodNullable<z.ZodNumber>;
4638
- roles: z.ZodArray<z.ZodObject<{
4639
- id: z.ZodString;
4640
- createdAt: z.ZodDate;
4641
- updatedAt: z.ZodDate;
4642
- deletedAt: z.ZodNullable<z.ZodDate>;
4643
- systemName: z.ZodString;
4644
- displayName: z.ZodString;
4645
- description: z.ZodNullable<z.ZodString>;
4646
- permissions: z.ZodArray<z.ZodObject<{
4649
+ }>, "many">;
4650
+ contactPhones: z.ZodArray<z.ZodObject<{
4647
4651
  id: z.ZodString;
4648
4652
  createdAt: z.ZodDate;
4649
4653
  updatedAt: z.ZodDate;
4650
4654
  deletedAt: z.ZodNullable<z.ZodDate>;
4651
- systemName: z.ZodString;
4652
- displayName: z.ZodString;
4653
- description: z.ZodNullable<z.ZodString>;
4655
+ phone: z.ZodString;
4656
+ isPrimary: z.ZodBoolean;
4654
4657
  }, "strip", z.ZodTypeAny, {
4655
4658
  id: string;
4656
- description: string | null;
4659
+ isPrimary: boolean;
4657
4660
  createdAt: Date;
4658
4661
  updatedAt: Date;
4659
4662
  deletedAt: Date | null;
4660
- systemName: string;
4661
- displayName: string;
4663
+ phone: string;
4662
4664
  }, {
4663
4665
  id: string;
4664
- description: string | null;
4666
+ isPrimary: boolean;
4665
4667
  createdAt: Date;
4666
4668
  updatedAt: Date;
4667
4669
  deletedAt: Date | null;
4668
- systemName: string;
4669
- displayName: string;
4670
+ phone: string;
4670
4671
  }>, "many">;
4671
- }, "strip", z.ZodTypeAny, {
4672
- id: string;
4673
- description: string | null;
4674
- createdAt: Date;
4675
- updatedAt: Date;
4676
- deletedAt: Date | null;
4677
- systemName: string;
4678
- displayName: string;
4679
- permissions: {
4680
- id: string;
4681
- description: string | null;
4682
- createdAt: Date;
4683
- updatedAt: Date;
4684
- deletedAt: Date | null;
4685
- systemName: string;
4686
- displayName: string;
4687
- }[];
4688
- }, {
4689
- id: string;
4690
- description: string | null;
4691
- createdAt: Date;
4692
- updatedAt: Date;
4693
- deletedAt: Date | null;
4694
- systemName: string;
4695
- displayName: string;
4696
- permissions: {
4697
- id: string;
4698
- description: string | null;
4699
- createdAt: Date;
4700
- updatedAt: Date;
4701
- deletedAt: Date | null;
4702
- systemName: string;
4703
- displayName: string;
4704
- }[];
4705
- }>, "many">;
4706
- extension: z.ZodObject<{
4707
- id: z.ZodString;
4708
- createdAt: z.ZodDate;
4709
- updatedAt: z.ZodDate;
4710
- deletedAt: z.ZodNullable<z.ZodDate>;
4711
- userId: z.ZodNullable<z.ZodString>;
4712
- sipServerUrl: z.ZodString;
4713
- sipUserName: z.ZodString;
4714
- webphoneLoginUser: z.ZodString;
4715
- extensionId: z.ZodNullable<z.ZodString>;
4716
- extensionName: z.ZodString;
4717
- telephonySignature: z.ZodNullable<z.ZodString>;
4718
- }, "strip", z.ZodTypeAny, {
4719
- id: string;
4720
- createdAt: Date;
4721
- updatedAt: Date;
4722
- deletedAt: Date | null;
4723
- userId: string | null;
4724
- sipServerUrl: string;
4725
- sipUserName: string;
4726
- webphoneLoginUser: string;
4727
- extensionId: string | null;
4728
- extensionName: string;
4729
- telephonySignature: string | null;
4730
- }, {
4731
- id: string;
4732
- createdAt: Date;
4733
- updatedAt: Date;
4734
- deletedAt: Date | null;
4735
- userId: string | null;
4736
- sipServerUrl: string;
4737
- sipUserName: string;
4738
- webphoneLoginUser: string;
4739
- extensionId: string | null;
4740
- extensionName: string;
4741
- telephonySignature: string | null;
4742
- }>;
4743
- }, "strip", z.ZodTypeAny, {
4744
- name: string;
4745
- id: string;
4746
- address: string | null;
4747
- email: string;
4748
- createdAt: Date;
4749
- updatedAt: Date;
4750
- deletedAt: Date | null;
4751
- emailVerifiedAt: Date | null;
4752
- password: string;
4753
- phone: string | null;
4754
- notificationCount: number | null;
4755
- roles: {
4756
- id: string;
4757
- description: string | null;
4758
- createdAt: Date;
4759
- updatedAt: Date;
4760
- deletedAt: Date | null;
4761
- systemName: string;
4762
- displayName: string;
4763
- permissions: {
4764
- id: string;
4765
- description: string | null;
4766
- createdAt: Date;
4767
- updatedAt: Date;
4768
- deletedAt: Date | null;
4769
- systemName: string;
4770
- displayName: string;
4771
- }[];
4772
- }[];
4773
- extension: {
4774
- id: string;
4775
- createdAt: Date;
4776
- updatedAt: Date;
4777
- deletedAt: Date | null;
4778
- userId: string | null;
4779
- sipServerUrl: string;
4780
- sipUserName: string;
4781
- webphoneLoginUser: string;
4782
- extensionId: string | null;
4783
- extensionName: string;
4784
- telephonySignature: string | null;
4785
- };
4786
- }, {
4787
- name: string;
4788
- id: string;
4789
- address: string | null;
4790
- email: string;
4791
- createdAt: Date;
4792
- updatedAt: Date;
4793
- deletedAt: Date | null;
4794
- emailVerifiedAt: Date | null;
4795
- password: string;
4796
- phone: string | null;
4797
- notificationCount: number | null;
4798
- roles: {
4799
- id: string;
4800
- description: string | null;
4801
- createdAt: Date;
4802
- updatedAt: Date;
4803
- deletedAt: Date | null;
4804
- systemName: string;
4805
- displayName: string;
4806
- permissions: {
4807
- id: string;
4808
- description: string | null;
4809
- createdAt: Date;
4810
- updatedAt: Date;
4811
- deletedAt: Date | null;
4812
- systemName: string;
4813
- displayName: string;
4814
- }[];
4815
- }[];
4816
- extension: {
4817
- id: string;
4818
- createdAt: Date;
4819
- updatedAt: Date;
4820
- deletedAt: Date | null;
4821
- userId: string | null;
4822
- sipServerUrl: string;
4823
- sipUserName: string;
4824
- webphoneLoginUser: string;
4825
- extensionId: string | null;
4826
- extensionName: string;
4827
- telephonySignature: string | null;
4828
- };
4829
- }>;
4830
- firstResponseTime: z.ZodNumber;
4831
- lastMessage: z.ZodString;
4832
- handleTime: z.ZodNumber;
4833
- unreadCount: z.ZodNumber;
4834
- firstResponseAt: z.ZodDate;
4835
- isLatest: z.ZodBoolean;
4836
- platformContact: z.ZodObject<{
4837
- id: z.ZodString;
4838
- createdAt: z.ZodDate;
4839
- updatedAt: z.ZodDate;
4840
- deletedAt: z.ZodNullable<z.ZodDate>;
4841
- channelId: z.ZodString;
4842
- socialPlatformId: z.ZodString;
4843
- type: z.ZodEnum<["whatsapp", "messenger", "telegram", "instagram", "line", "viber", "kakao", "shopee", "lazada", "webchat", "facebook_feed", "sms_vonage"]>;
4844
- metadata: z.ZodObject<{
4845
- id: z.ZodString;
4846
- name: z.ZodString;
4847
- picture: z.ZodOptional<z.ZodString>;
4848
- additionalCredentials: z.ZodAny;
4849
- }, "strip", z.ZodTypeAny, {
4850
- name: string;
4851
- id: string;
4852
- picture?: string | undefined;
4853
- additionalCredentials?: any;
4854
- }, {
4855
- name: string;
4856
- id: string;
4857
- picture?: string | undefined;
4858
- additionalCredentials?: any;
4859
- }>;
4860
- contact: z.ZodObject<{
4861
- id: z.ZodString;
4862
- createdAt: z.ZodDate;
4863
- updatedAt: z.ZodDate;
4864
- deletedAt: z.ZodNullable<z.ZodDate>;
4865
- name: z.ZodString;
4866
- address: z.ZodNullable<z.ZodString>;
4867
- channel: z.ZodNullable<z.ZodString>;
4868
- notes: z.ZodNullable<z.ZodString>;
4869
- contactProfile: z.ZodNullable<z.ZodString>;
4870
- socialProfileUrl: z.ZodNullable<z.ZodString>;
4871
- tags: z.ZodArray<z.ZodObject<{
4872
- id: z.ZodString;
4873
- createdAt: z.ZodDate;
4874
- updatedAt: z.ZodDate;
4875
- deletedAt: z.ZodNullable<z.ZodDate>;
4876
- name: z.ZodString;
4877
- }, "strip", z.ZodTypeAny, {
4878
- name: string;
4879
- id: string;
4880
- createdAt: Date;
4881
- updatedAt: Date;
4882
- deletedAt: Date | null;
4883
- }, {
4884
- name: string;
4885
- id: string;
4886
- createdAt: Date;
4887
- updatedAt: Date;
4888
- deletedAt: Date | null;
4889
- }>, "many">;
4890
- company: z.ZodNullable<z.ZodObject<Omit<{
4891
- id: z.ZodString;
4892
- createdAt: z.ZodDate;
4893
- updatedAt: z.ZodDate;
4894
- deletedAt: z.ZodNullable<z.ZodDate>;
4895
- name: z.ZodOptional<z.ZodString>;
4896
- phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4897
- address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4898
- industry: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4899
- customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
4900
- id: z.ZodString;
4901
- createdAt: z.ZodDate;
4902
- updatedAt: z.ZodDate;
4903
- deletedAt: z.ZodNullable<z.ZodDate>;
4904
- textValue: z.ZodNullable<z.ZodString>;
4905
- booleanValue: z.ZodNullable<z.ZodBoolean>;
4906
- numberValue: z.ZodNullable<z.ZodNumber>;
4907
- dateValue: z.ZodNullable<z.ZodDate>;
4908
- attribute: z.ZodObject<Omit<{
4909
- id: z.ZodString;
4910
- createdAt: z.ZodDate;
4911
- updatedAt: z.ZodDate;
4912
- deletedAt: z.ZodNullable<z.ZodDate>;
4913
- systemName: z.ZodString;
4914
- displayName: z.ZodString;
4915
- type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
4916
- position: z.ZodNumber;
4917
- isDefault: z.ZodBoolean;
4918
- isArchived: z.ZodBoolean;
4919
- isRequired: z.ZodBoolean;
4920
- isUnique: z.ZodBoolean;
4921
- options: z.ZodArray<z.ZodObject<{
4922
- position: z.ZodNumber;
4923
- value: z.ZodString;
4924
- label: z.ZodString;
4925
- isDefault: z.ZodBoolean;
4926
- id: z.ZodString;
4927
- }, "strip", z.ZodTypeAny, {
4928
- id: string;
4929
- position: number;
4930
- value: string;
4931
- label: string;
4932
- isDefault: boolean;
4933
- }, {
4934
- id: string;
4935
- position: number;
4936
- value: string;
4937
- label: string;
4938
- isDefault: boolean;
4939
- }>, "many">;
4940
- group: z.ZodObject<{
4941
- id: z.ZodString;
4942
- createdAt: z.ZodDate;
4943
- updatedAt: z.ZodDate;
4944
- deletedAt: z.ZodNullable<z.ZodDate>;
4945
- systemName: z.ZodString;
4946
- displayName: z.ZodString;
4947
- }, "strip", z.ZodTypeAny, {
4948
- id: string;
4949
- createdAt: Date;
4950
- updatedAt: Date;
4951
- deletedAt: Date | null;
4952
- systemName: string;
4953
- displayName: string;
4954
- }, {
4955
- id: string;
4956
- createdAt: Date;
4957
- updatedAt: Date;
4958
- deletedAt: Date | null;
4959
- systemName: string;
4960
- displayName: string;
4961
- }>;
4962
- }, "options" | "group">, "strip", z.ZodTypeAny, {
4963
- type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
4964
- id: string;
4965
- position: number;
4966
- createdAt: Date;
4967
- updatedAt: Date;
4968
- deletedAt: Date | null;
4969
- systemName: string;
4970
- displayName: string;
4971
- isDefault: boolean;
4972
- isArchived: boolean;
4973
- isRequired: boolean;
4974
- isUnique: boolean;
4975
- }, {
4976
- type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
4977
- id: string;
4978
- position: number;
4979
- createdAt: Date;
4980
- updatedAt: Date;
4981
- deletedAt: Date | null;
4982
- systemName: string;
4983
- displayName: string;
4984
- isDefault: boolean;
4985
- isArchived: boolean;
4986
- isRequired: boolean;
4987
- isUnique: boolean;
4988
- }>;
4989
- }, "strip", z.ZodTypeAny, {
4990
- id: string;
4991
- createdAt: Date;
4992
- updatedAt: Date;
4993
- deletedAt: Date | null;
4994
- attribute: {
4995
- type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
4996
- id: string;
4997
- position: number;
4998
- createdAt: Date;
4999
- updatedAt: Date;
5000
- deletedAt: Date | null;
5001
- systemName: string;
5002
- displayName: string;
5003
- isDefault: boolean;
5004
- isArchived: boolean;
5005
- isRequired: boolean;
5006
- isUnique: boolean;
5007
- };
5008
- textValue: string | null;
5009
- booleanValue: boolean | null;
5010
- numberValue: number | null;
5011
- dateValue: Date | null;
5012
- }, {
5013
- id: string;
5014
- createdAt: Date;
5015
- updatedAt: Date;
5016
- deletedAt: Date | null;
5017
- attribute: {
5018
- type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
5019
- id: string;
5020
- position: number;
5021
- createdAt: Date;
5022
- updatedAt: Date;
5023
- deletedAt: Date | null;
5024
- systemName: string;
5025
- displayName: string;
5026
- isDefault: boolean;
5027
- isArchived: boolean;
5028
- isRequired: boolean;
5029
- isUnique: boolean;
5030
- };
5031
- textValue: string | null;
5032
- booleanValue: boolean | null;
5033
- numberValue: number | null;
5034
- dateValue: Date | null;
5035
- }>, "many">>;
5036
- }, "customFields">, "strip", z.ZodTypeAny, {
5037
- id: string;
5038
- createdAt: Date;
5039
- updatedAt: Date;
5040
- deletedAt: Date | null;
5041
- name?: string | undefined;
5042
- address?: string | null | undefined;
5043
- phone?: string | null | undefined;
5044
- industry?: string | null | undefined;
5045
- }, {
5046
- id: string;
5047
- createdAt: Date;
5048
- updatedAt: Date;
5049
- deletedAt: Date | null;
5050
- name?: string | undefined;
5051
- address?: string | null | undefined;
5052
- phone?: string | null | undefined;
5053
- industry?: string | null | undefined;
5054
- }>>;
5055
- platformContacts: z.ZodOptional<z.ZodArray<z.ZodObject<{
5056
- id: z.ZodString;
5057
- createdAt: z.ZodDate;
5058
- updatedAt: z.ZodDate;
5059
- deletedAt: z.ZodNullable<z.ZodDate>;
5060
- channelId: z.ZodString;
5061
- socialPlatformId: z.ZodString;
5062
- type: z.ZodEnum<["whatsapp", "messenger", "telegram", "instagram", "line", "viber", "kakao", "shopee", "lazada", "webchat", "facebook_feed", "sms_vonage"]>;
5063
- metadata: z.ZodObject<{
5064
- id: z.ZodString;
5065
- name: z.ZodString;
5066
- picture: z.ZodOptional<z.ZodString>;
5067
- additionalCredentials: z.ZodAny;
5068
- }, "strip", z.ZodTypeAny, {
5069
- name: string;
5070
- id: string;
5071
- picture?: string | undefined;
5072
- additionalCredentials?: any;
5073
- }, {
5074
- name: string;
5075
- id: string;
5076
- picture?: string | undefined;
5077
- additionalCredentials?: any;
5078
- }>;
5079
- }, "strip", z.ZodTypeAny, {
5080
- type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
5081
- id: string;
5082
- metadata: {
5083
- name: string;
5084
- id: string;
5085
- picture?: string | undefined;
5086
- additionalCredentials?: any;
5087
- };
5088
- createdAt: Date;
5089
- updatedAt: Date;
5090
- deletedAt: Date | null;
5091
- channelId: string;
5092
- socialPlatformId: string;
5093
- }, {
5094
- type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
5095
- id: string;
5096
- metadata: {
5097
- name: string;
5098
- id: string;
5099
- picture?: string | undefined;
5100
- additionalCredentials?: any;
5101
- };
5102
- createdAt: Date;
5103
- updatedAt: Date;
5104
- deletedAt: Date | null;
5105
- channelId: string;
5106
- socialPlatformId: string;
5107
- }>, "many">>;
5108
- customFields: z.ZodArray<z.ZodObject<{
4672
+ activityLogs: z.ZodOptional<z.ZodArray<z.ZodObject<{
5109
4673
  id: z.ZodString;
5110
4674
  createdAt: z.ZodDate;
5111
4675
  updatedAt: z.ZodDate;
5112
4676
  deletedAt: z.ZodNullable<z.ZodDate>;
5113
- textValue: z.ZodNullable<z.ZodString>;
5114
- booleanValue: z.ZodNullable<z.ZodBoolean>;
5115
- numberValue: z.ZodNullable<z.ZodNumber>;
5116
- dateValue: z.ZodNullable<z.ZodDate>;
5117
- attribute: z.ZodObject<Omit<{
5118
- id: z.ZodString;
5119
- createdAt: z.ZodDate;
5120
- updatedAt: z.ZodDate;
5121
- deletedAt: z.ZodNullable<z.ZodDate>;
5122
- systemName: z.ZodString;
5123
- displayName: z.ZodString;
5124
- type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
5125
- position: z.ZodNumber;
5126
- isDefault: z.ZodBoolean;
5127
- isArchived: z.ZodBoolean;
5128
- isRequired: z.ZodBoolean;
5129
- isUnique: z.ZodBoolean;
5130
- options: z.ZodArray<z.ZodObject<{
5131
- position: z.ZodNumber;
5132
- value: z.ZodString;
5133
- label: z.ZodString;
5134
- isDefault: z.ZodBoolean;
5135
- id: z.ZodString;
5136
- }, "strip", z.ZodTypeAny, {
5137
- id: string;
5138
- position: number;
5139
- value: string;
5140
- label: string;
5141
- isDefault: boolean;
5142
- }, {
5143
- id: string;
5144
- position: number;
5145
- value: string;
5146
- label: string;
5147
- isDefault: boolean;
5148
- }>, "many">;
5149
- group: z.ZodObject<{
5150
- id: z.ZodString;
5151
- createdAt: z.ZodDate;
5152
- updatedAt: z.ZodDate;
5153
- deletedAt: z.ZodNullable<z.ZodDate>;
5154
- systemName: z.ZodString;
5155
- displayName: z.ZodString;
5156
- }, "strip", z.ZodTypeAny, {
5157
- id: string;
5158
- createdAt: Date;
5159
- updatedAt: Date;
5160
- deletedAt: Date | null;
5161
- systemName: string;
5162
- displayName: string;
5163
- }, {
5164
- id: string;
5165
- createdAt: Date;
5166
- updatedAt: Date;
5167
- deletedAt: Date | null;
5168
- systemName: string;
5169
- displayName: string;
5170
- }>;
5171
- }, "options" | "group">, "strip", z.ZodTypeAny, {
5172
- type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
5173
- id: string;
5174
- position: number;
5175
- createdAt: Date;
5176
- updatedAt: Date;
5177
- deletedAt: Date | null;
5178
- systemName: string;
5179
- displayName: string;
5180
- isDefault: boolean;
5181
- isArchived: boolean;
5182
- isRequired: boolean;
5183
- isUnique: boolean;
5184
- }, {
5185
- type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
5186
- id: string;
5187
- position: number;
5188
- createdAt: Date;
5189
- updatedAt: Date;
5190
- deletedAt: Date | null;
5191
- systemName: string;
5192
- displayName: string;
5193
- isDefault: boolean;
5194
- isArchived: boolean;
5195
- isRequired: boolean;
5196
- isUnique: boolean;
5197
- }>;
5198
- uploads: z.ZodArray<z.ZodObject<{
4677
+ entityId: z.ZodString;
4678
+ description: z.ZodString;
4679
+ entityType: z.ZodObject<{
5199
4680
  id: z.ZodString;
5200
4681
  createdAt: z.ZodDate;
5201
4682
  updatedAt: z.ZodDate;
5202
4683
  deletedAt: z.ZodNullable<z.ZodDate>;
5203
- bucketName: z.ZodString;
5204
- fileName: z.ZodString;
5205
- fileSize: z.ZodNumber;
5206
- fileKey: z.ZodString;
5207
- fileUrl: z.ZodNullable<z.ZodString>;
5208
- status: z.ZodNullable<z.ZodString>;
4684
+ entity: z.ZodString;
4685
+ description: z.ZodNullable<z.ZodString>;
5209
4686
  }, "strip", z.ZodTypeAny, {
5210
4687
  id: string;
5211
- status: string | null;
4688
+ description: string | null;
5212
4689
  createdAt: Date;
5213
4690
  updatedAt: Date;
5214
4691
  deletedAt: Date | null;
5215
- fileName: string;
5216
- fileKey: string;
5217
- bucketName: string;
5218
- fileSize: number;
5219
- fileUrl: string | null;
4692
+ entity: string;
5220
4693
  }, {
5221
4694
  id: string;
5222
- status: string | null;
4695
+ description: string | null;
5223
4696
  createdAt: Date;
5224
4697
  updatedAt: Date;
5225
4698
  deletedAt: Date | null;
5226
- fileName: string;
5227
- fileKey: string;
5228
- bucketName: string;
5229
- fileSize: number;
5230
- fileUrl: string | null;
5231
- }>, "many">;
4699
+ entity: string;
4700
+ }>;
5232
4701
  }, "strip", z.ZodTypeAny, {
5233
4702
  id: string;
4703
+ description: string;
5234
4704
  createdAt: Date;
5235
4705
  updatedAt: Date;
5236
4706
  deletedAt: Date | null;
5237
- attribute: {
5238
- type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
4707
+ entityId: string;
4708
+ entityType: {
5239
4709
  id: string;
5240
- position: number;
4710
+ description: string | null;
5241
4711
  createdAt: Date;
5242
4712
  updatedAt: Date;
5243
4713
  deletedAt: Date | null;
5244
- systemName: string;
5245
- displayName: string;
5246
- isDefault: boolean;
5247
- isArchived: boolean;
5248
- isRequired: boolean;
5249
- isUnique: boolean;
5250
- };
5251
- textValue: string | null;
5252
- booleanValue: boolean | null;
5253
- numberValue: number | null;
5254
- dateValue: Date | null;
5255
- uploads: {
4714
+ entity: string;
4715
+ };
4716
+ }, {
4717
+ id: string;
4718
+ description: string;
4719
+ createdAt: Date;
4720
+ updatedAt: Date;
4721
+ deletedAt: Date | null;
4722
+ entityId: string;
4723
+ entityType: {
5256
4724
  id: string;
5257
- status: string | null;
4725
+ description: string | null;
5258
4726
  createdAt: Date;
5259
4727
  updatedAt: Date;
5260
4728
  deletedAt: Date | null;
5261
- fileName: string;
5262
- fileKey: string;
5263
- bucketName: string;
5264
- fileSize: number;
5265
- fileUrl: string | null;
5266
- }[];
5267
- }, {
4729
+ entity: string;
4730
+ };
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: {
5268
4741
  id: string;
5269
4742
  createdAt: Date;
5270
4743
  updatedAt: Date;
@@ -5299,96 +4772,59 @@ export declare const chatContract: {
5299
4772
  fileSize: number;
5300
4773
  fileUrl: string | null;
5301
4774
  }[];
5302
- }>, "many">;
5303
- contactEmails: z.ZodArray<z.ZodObject<{
5304
- id: z.ZodString;
5305
- createdAt: z.ZodDate;
5306
- updatedAt: z.ZodDate;
5307
- deletedAt: z.ZodNullable<z.ZodDate>;
5308
- email: z.ZodString;
5309
- isPrimary: z.ZodBoolean;
5310
- }, "strip", z.ZodTypeAny, {
4775
+ }[];
4776
+ company: {
5311
4777
  id: string;
5312
- isPrimary: boolean;
5313
- email: string;
5314
4778
  createdAt: Date;
5315
4779
  updatedAt: Date;
5316
4780
  deletedAt: Date | null;
5317
- }, {
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;
5318
4791
  id: string;
5319
- isPrimary: boolean;
5320
- email: string;
5321
4792
  createdAt: Date;
5322
4793
  updatedAt: Date;
5323
4794
  deletedAt: Date | null;
5324
- }>, "many">;
5325
- contactPhones: z.ZodArray<z.ZodObject<{
5326
- id: z.ZodString;
5327
- createdAt: z.ZodDate;
5328
- updatedAt: z.ZodDate;
5329
- deletedAt: z.ZodNullable<z.ZodDate>;
5330
- phone: z.ZodString;
5331
- isPrimary: z.ZodBoolean;
5332
- }, "strip", z.ZodTypeAny, {
4795
+ }[];
4796
+ contactEmails: {
5333
4797
  id: string;
5334
4798
  isPrimary: boolean;
4799
+ email: string;
5335
4800
  createdAt: Date;
5336
4801
  updatedAt: Date;
5337
4802
  deletedAt: Date | null;
5338
- phone: string;
5339
- }, {
4803
+ }[];
4804
+ contactPhones: {
5340
4805
  id: string;
5341
4806
  isPrimary: boolean;
5342
4807
  createdAt: Date;
5343
4808
  updatedAt: Date;
5344
4809
  deletedAt: Date | null;
5345
4810
  phone: string;
5346
- }>, "many">;
5347
- activityLogs: z.ZodOptional<z.ZodArray<z.ZodObject<{
5348
- id: z.ZodString;
5349
- createdAt: z.ZodDate;
5350
- updatedAt: z.ZodDate;
5351
- deletedAt: z.ZodNullable<z.ZodDate>;
5352
- entityId: z.ZodString;
5353
- description: z.ZodString;
5354
- entityType: z.ZodObject<{
5355
- id: z.ZodString;
5356
- createdAt: z.ZodDate;
5357
- updatedAt: z.ZodDate;
5358
- deletedAt: z.ZodNullable<z.ZodDate>;
5359
- entity: z.ZodString;
5360
- description: z.ZodNullable<z.ZodString>;
5361
- }, "strip", z.ZodTypeAny, {
5362
- id: string;
5363
- description: string | null;
5364
- createdAt: Date;
5365
- updatedAt: Date;
5366
- deletedAt: Date | null;
5367
- entity: string;
5368
- }, {
5369
- id: string;
5370
- description: string | null;
5371
- createdAt: Date;
5372
- updatedAt: Date;
5373
- deletedAt: Date | null;
5374
- entity: string;
5375
- }>;
5376
- }, "strip", z.ZodTypeAny, {
4811
+ }[];
4812
+ platformContacts?: {
4813
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
5377
4814
  id: string;
5378
- description: string;
4815
+ metadata: {
4816
+ name: string;
4817
+ id: string;
4818
+ picture?: string | undefined;
4819
+ additionalCredentials?: any;
4820
+ };
5379
4821
  createdAt: Date;
5380
4822
  updatedAt: Date;
5381
4823
  deletedAt: Date | null;
5382
- entityId: string;
5383
- entityType: {
5384
- id: string;
5385
- description: string | null;
5386
- createdAt: Date;
5387
- updatedAt: Date;
5388
- deletedAt: Date | null;
5389
- entity: string;
5390
- };
5391
- }, {
4824
+ channelId: string;
4825
+ socialPlatformId: string;
4826
+ }[] | undefined;
4827
+ activityLogs?: {
5392
4828
  id: string;
5393
4829
  description: string;
5394
4830
  createdAt: Date;
@@ -5403,8 +4839,8 @@ export declare const chatContract: {
5403
4839
  deletedAt: Date | null;
5404
4840
  entity: string;
5405
4841
  };
5406
- }>, "many">>;
5407
- }, "strip", z.ZodTypeAny, {
4842
+ }[] | undefined;
4843
+ }, {
5408
4844
  name: string;
5409
4845
  id: string;
5410
4846
  channel: string | null;
@@ -5515,7 +4951,20 @@ export declare const chatContract: {
5515
4951
  entity: string;
5516
4952
  };
5517
4953
  }[] | undefined;
5518
- }, {
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: {
5519
4968
  name: string;
5520
4969
  id: string;
5521
4970
  channel: string | null;
@@ -5626,8 +5075,10 @@ export declare const chatContract: {
5626
5075
  entity: string;
5627
5076
  };
5628
5077
  }[] | undefined;
5629
- }>;
5630
- }, "strip", z.ZodTypeAny, {
5078
+ };
5079
+ channelId: string;
5080
+ socialPlatformId: string;
5081
+ }, {
5631
5082
  type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
5632
5083
  id: string;
5633
5084
  metadata: {
@@ -5705,202 +5156,607 @@ export declare const chatContract: {
5705
5156
  }[];
5706
5157
  contactEmails: {
5707
5158
  id: string;
5708
- isPrimary: boolean;
5709
- email: string;
5159
+ isPrimary: boolean;
5160
+ email: string;
5161
+ createdAt: Date;
5162
+ updatedAt: Date;
5163
+ 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;
5710
5264
  createdAt: Date;
5711
5265
  updatedAt: Date;
5712
5266
  deletedAt: Date | null;
5267
+ systemName: string;
5268
+ displayName: string;
5713
5269
  }[];
5714
- contactPhones: {
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: {
5715
5279
  id: string;
5716
- isPrimary: boolean;
5280
+ description: string | null;
5717
5281
  createdAt: Date;
5718
5282
  updatedAt: Date;
5719
5283
  deletedAt: Date | null;
5720
- phone: string;
5284
+ systemName: string;
5285
+ displayName: string;
5721
5286
  }[];
5722
- platformContacts?: {
5723
- type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
5724
- id: string;
5725
- metadata: {
5726
- name: string;
5727
- id: string;
5728
- picture?: string | undefined;
5729
- additionalCredentials?: any;
5730
- };
5731
- createdAt: Date;
5732
- updatedAt: Date;
5733
- deletedAt: Date | null;
5734
- channelId: string;
5735
- socialPlatformId: string;
5736
- }[] | undefined;
5737
- activityLogs?: {
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: {
5738
5346
  id: string;
5739
- description: string;
5347
+ description: string | null;
5740
5348
  createdAt: Date;
5741
5349
  updatedAt: Date;
5742
5350
  deletedAt: Date | null;
5743
- entityId: string;
5744
- entityType: {
5745
- id: string;
5746
- description: string | null;
5747
- createdAt: Date;
5748
- updatedAt: Date;
5749
- deletedAt: Date | null;
5750
- entity: string;
5751
- };
5752
- }[] | undefined;
5351
+ systemName: string;
5352
+ displayName: string;
5353
+ }[];
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;
5753
5367
  };
5754
- channelId: string;
5755
- socialPlatformId: string;
5756
5368
  }, {
5757
- type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
5369
+ name: string;
5758
5370
  id: string;
5759
- metadata: {
5760
- name: string;
5761
- id: string;
5762
- picture?: string | undefined;
5763
- additionalCredentials?: any;
5764
- };
5371
+ address: string | null;
5372
+ email: string;
5765
5373
  createdAt: Date;
5766
5374
  updatedAt: Date;
5767
5375
  deletedAt: Date | null;
5768
- contact: {
5769
- name: string;
5376
+ emailVerifiedAt: Date | null;
5377
+ password: string;
5378
+ phone: string | null;
5379
+ notificationCount: number | null;
5380
+ roles: {
5770
5381
  id: string;
5771
- channel: string | null;
5772
- address: string | null;
5382
+ description: string | null;
5773
5383
  createdAt: Date;
5774
5384
  updatedAt: Date;
5775
5385
  deletedAt: Date | null;
5776
- customFields: {
5386
+ systemName: string;
5387
+ displayName: string;
5388
+ permissions: {
5777
5389
  id: string;
5390
+ description: string | null;
5778
5391
  createdAt: Date;
5779
5392
  updatedAt: Date;
5780
5393
  deletedAt: Date | null;
5781
- attribute: {
5782
- type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
5783
- id: string;
5784
- position: number;
5785
- createdAt: Date;
5786
- updatedAt: Date;
5787
- deletedAt: Date | null;
5788
- systemName: string;
5789
- displayName: string;
5790
- isDefault: boolean;
5791
- isArchived: boolean;
5792
- isRequired: boolean;
5793
- isUnique: boolean;
5794
- };
5795
- textValue: string | null;
5796
- booleanValue: boolean | null;
5797
- numberValue: number | null;
5798
- dateValue: Date | null;
5799
- uploads: {
5800
- id: string;
5801
- status: string | null;
5802
- createdAt: Date;
5803
- updatedAt: Date;
5804
- deletedAt: Date | null;
5805
- fileName: string;
5806
- fileKey: string;
5807
- bucketName: string;
5808
- fileSize: number;
5809
- fileUrl: string | null;
5810
- }[];
5394
+ systemName: string;
5395
+ displayName: string;
5811
5396
  }[];
5812
- company: {
5397
+ }[];
5398
+ extension: {
5399
+ id: string;
5400
+ createdAt: Date;
5401
+ updatedAt: Date;
5402
+ 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, {
5813
5441
  id: string;
5442
+ description: string | null;
5814
5443
  createdAt: Date;
5815
5444
  updatedAt: Date;
5816
5445
  deletedAt: Date | null;
5817
- name?: string | undefined;
5818
- address?: string | null | undefined;
5819
- phone?: string | null | undefined;
5820
- industry?: string | null | undefined;
5821
- } | null;
5822
- notes: string | null;
5823
- contactProfile: string | null;
5824
- socialProfileUrl: string | null;
5825
- tags: {
5826
- name: string;
5446
+ systemName: string;
5447
+ displayName: string;
5448
+ }, {
5827
5449
  id: string;
5450
+ description: string | null;
5828
5451
  createdAt: Date;
5829
5452
  updatedAt: Date;
5830
5453
  deletedAt: Date | null;
5831
- }[];
5832
- contactEmails: {
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: {
5833
5466
  id: string;
5834
- isPrimary: boolean;
5835
- email: string;
5467
+ description: string | null;
5836
5468
  createdAt: Date;
5837
5469
  updatedAt: Date;
5838
5470
  deletedAt: Date | null;
5471
+ systemName: string;
5472
+ displayName: string;
5839
5473
  }[];
5840
- contactPhones: {
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: {
5841
5483
  id: string;
5842
- isPrimary: boolean;
5484
+ description: string | null;
5843
5485
  createdAt: Date;
5844
5486
  updatedAt: Date;
5845
5487
  deletedAt: Date | null;
5846
- phone: string;
5488
+ systemName: string;
5489
+ displayName: string;
5847
5490
  }[];
5848
- platformContacts?: {
5849
- type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
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: {
5850
5550
  id: string;
5851
- metadata: {
5852
- name: string;
5853
- id: string;
5854
- picture?: string | undefined;
5855
- additionalCredentials?: any;
5856
- };
5551
+ description: string | null;
5857
5552
  createdAt: Date;
5858
5553
  updatedAt: Date;
5859
5554
  deletedAt: Date | null;
5860
- channelId: string;
5861
- socialPlatformId: string;
5862
- }[] | undefined;
5863
- activityLogs?: {
5555
+ systemName: string;
5556
+ displayName: string;
5557
+ }[];
5558
+ }[];
5559
+ extension: {
5560
+ 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;
5571
+ };
5572
+ }, {
5573
+ name: string;
5574
+ id: string;
5575
+ address: string | null;
5576
+ email: string;
5577
+ createdAt: Date;
5578
+ updatedAt: Date;
5579
+ deletedAt: Date | null;
5580
+ emailVerifiedAt: Date | null;
5581
+ password: string;
5582
+ phone: string | null;
5583
+ notificationCount: number | null;
5584
+ roles: {
5585
+ id: string;
5586
+ description: string | null;
5587
+ createdAt: Date;
5588
+ updatedAt: Date;
5589
+ deletedAt: Date | null;
5590
+ systemName: string;
5591
+ displayName: string;
5592
+ permissions: {
5864
5593
  id: string;
5865
- description: string;
5594
+ description: string | null;
5866
5595
  createdAt: Date;
5867
5596
  updatedAt: Date;
5868
5597
  deletedAt: Date | null;
5869
- entityId: string;
5870
- entityType: {
5871
- id: string;
5872
- description: string | null;
5873
- createdAt: Date;
5874
- updatedAt: Date;
5875
- deletedAt: Date | null;
5876
- entity: string;
5877
- };
5878
- }[] | undefined;
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;
5879
5614
  };
5880
- channelId: string;
5881
- socialPlatformId: string;
5882
5615
  }>;
5883
- assignee: z.ZodObject<{
5616
+ channel: z.ZodObject<{
5884
5617
  id: z.ZodString;
5885
5618
  createdAt: z.ZodDate;
5886
5619
  updatedAt: z.ZodDate;
5887
5620
  deletedAt: z.ZodNullable<z.ZodDate>;
5888
5621
  name: z.ZodString;
5889
- email: z.ZodString;
5890
- emailVerifiedAt: z.ZodNullable<z.ZodDate>;
5891
- password: z.ZodString;
5892
- address: z.ZodNullable<z.ZodString>;
5893
- phone: z.ZodNullable<z.ZodString>;
5894
- notificationCount: z.ZodNullable<z.ZodNumber>;
5895
- roles: z.ZodArray<z.ZodObject<{
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<{
5896
5748
  id: z.ZodString;
5897
5749
  createdAt: z.ZodDate;
5898
5750
  updatedAt: z.ZodDate;
5899
5751
  deletedAt: z.ZodNullable<z.ZodDate>;
5900
- systemName: z.ZodString;
5901
- displayName: z.ZodString;
5902
- description: z.ZodNullable<z.ZodString>;
5903
- permissions: z.ZodArray<z.ZodObject<{
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<{
5904
5760
  id: z.ZodString;
5905
5761
  createdAt: z.ZodDate;
5906
5762
  updatedAt: z.ZodDate;
@@ -5908,6 +5764,31 @@ export declare const chatContract: {
5908
5764
  systemName: z.ZodString;
5909
5765
  displayName: z.ZodString;
5910
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, {
5776
+ id: string;
5777
+ description: string | null;
5778
+ createdAt: Date;
5779
+ updatedAt: Date;
5780
+ deletedAt: Date | null;
5781
+ systemName: string;
5782
+ displayName: string;
5783
+ }, {
5784
+ id: string;
5785
+ description: string | null;
5786
+ createdAt: Date;
5787
+ updatedAt: Date;
5788
+ deletedAt: Date | null;
5789
+ systemName: string;
5790
+ displayName: string;
5791
+ }>, "many">;
5911
5792
  }, "strip", z.ZodTypeAny, {
5912
5793
  id: string;
5913
5794
  description: string | null;
@@ -5916,6 +5797,15 @@ export declare const chatContract: {
5916
5797
  deletedAt: Date | null;
5917
5798
  systemName: string;
5918
5799
  displayName: string;
5800
+ permissions: {
5801
+ id: string;
5802
+ description: string | null;
5803
+ createdAt: Date;
5804
+ updatedAt: Date;
5805
+ deletedAt: Date | null;
5806
+ systemName: string;
5807
+ displayName: string;
5808
+ }[];
5919
5809
  }, {
5920
5810
  id: string;
5921
5811
  description: string | null;
@@ -5924,16 +5814,66 @@ export declare const chatContract: {
5924
5814
  deletedAt: Date | null;
5925
5815
  systemName: string;
5926
5816
  displayName: string;
5817
+ permissions: {
5818
+ id: string;
5819
+ description: string | null;
5820
+ createdAt: Date;
5821
+ updatedAt: Date;
5822
+ deletedAt: Date | null;
5823
+ systemName: string;
5824
+ displayName: string;
5825
+ }[];
5927
5826
  }>, "many">;
5827
+ extension: z.ZodObject<{
5828
+ id: z.ZodString;
5829
+ createdAt: z.ZodDate;
5830
+ updatedAt: z.ZodDate;
5831
+ 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>;
5839
+ }, "strip", z.ZodTypeAny, {
5840
+ 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;
5851
+ }, {
5852
+ id: string;
5853
+ createdAt: Date;
5854
+ updatedAt: Date;
5855
+ 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
+ }>;
5928
5864
  }, "strip", z.ZodTypeAny, {
5865
+ name: string;
5929
5866
  id: string;
5930
- description: string | null;
5867
+ address: string | null;
5868
+ email: string;
5931
5869
  createdAt: Date;
5932
5870
  updatedAt: Date;
5933
5871
  deletedAt: Date | null;
5934
- systemName: string;
5935
- displayName: string;
5936
- permissions: {
5872
+ emailVerifiedAt: Date | null;
5873
+ password: string;
5874
+ phone: string | null;
5875
+ notificationCount: number | null;
5876
+ roles: {
5937
5877
  id: string;
5938
5878
  description: string | null;
5939
5879
  createdAt: Date;
@@ -5941,16 +5881,42 @@ export declare const chatContract: {
5941
5881
  deletedAt: Date | null;
5942
5882
  systemName: string;
5943
5883
  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
+ }[];
5944
5893
  }[];
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
+ };
5945
5907
  }, {
5908
+ name: string;
5946
5909
  id: string;
5947
- description: string | null;
5910
+ address: string | null;
5911
+ email: string;
5948
5912
  createdAt: Date;
5949
5913
  updatedAt: Date;
5950
5914
  deletedAt: Date | null;
5951
- systemName: string;
5952
- displayName: string;
5953
- permissions: {
5915
+ emailVerifiedAt: Date | null;
5916
+ password: string;
5917
+ phone: string | null;
5918
+ notificationCount: number | null;
5919
+ roles: {
5954
5920
  id: string;
5955
5921
  description: string | null;
5956
5922
  createdAt: Date;
@@ -5958,66 +5924,76 @@ export declare const chatContract: {
5958
5924
  deletedAt: Date | null;
5959
5925
  systemName: string;
5960
5926
  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
+ }[];
5961
5936
  }[];
5962
- }>, "many">;
5963
- extension: z.ZodObject<{
5964
- id: z.ZodString;
5965
- createdAt: z.ZodDate;
5966
- updatedAt: z.ZodDate;
5967
- deletedAt: z.ZodNullable<z.ZodDate>;
5968
- userId: z.ZodNullable<z.ZodString>;
5969
- sipServerUrl: z.ZodString;
5970
- sipUserName: z.ZodString;
5971
- webphoneLoginUser: z.ZodString;
5972
- extensionId: z.ZodNullable<z.ZodString>;
5973
- extensionName: z.ZodString;
5974
- telephonySignature: z.ZodNullable<z.ZodString>;
5975
- }, "strip", z.ZodTypeAny, {
5976
- id: string;
5977
- createdAt: Date;
5978
- updatedAt: Date;
5979
- deletedAt: Date | null;
5980
- userId: string | null;
5981
- sipServerUrl: string;
5982
- sipUserName: string;
5983
- webphoneLoginUser: string;
5984
- extensionId: string | null;
5985
- extensionName: string;
5986
- telephonySignature: string | null;
5987
- }, {
5988
- id: string;
5989
- createdAt: Date;
5990
- updatedAt: Date;
5991
- deletedAt: Date | null;
5992
- userId: string | null;
5993
- sipServerUrl: string;
5994
- sipUserName: string;
5995
- webphoneLoginUser: string;
5996
- extensionId: string | null;
5997
- extensionName: string;
5998
- telephonySignature: string | null;
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
+ };
5999
5950
  }>;
6000
5951
  }, "strip", z.ZodTypeAny, {
6001
5952
  name: string;
5953
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
6002
5954
  id: string;
6003
- address: string | null;
6004
- email: 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;
6005
5981
  createdAt: Date;
6006
5982
  updatedAt: Date;
6007
5983
  deletedAt: Date | null;
6008
- emailVerifiedAt: Date | null;
6009
- password: string;
6010
- phone: string | null;
6011
- notificationCount: number | null;
6012
- roles: {
5984
+ actor: {
5985
+ name: string;
6013
5986
  id: string;
6014
- description: string | null;
5987
+ address: string | null;
5988
+ email: string;
6015
5989
  createdAt: Date;
6016
5990
  updatedAt: Date;
6017
5991
  deletedAt: Date | null;
6018
- systemName: string;
6019
- displayName: string;
6020
- permissions: {
5992
+ emailVerifiedAt: Date | null;
5993
+ password: string;
5994
+ phone: string | null;
5995
+ notificationCount: number | null;
5996
+ roles: {
6021
5997
  id: string;
6022
5998
  description: string | null;
6023
5999
  createdAt: Date;
@@ -6025,42 +6001,88 @@ export declare const chatContract: {
6025
6001
  deletedAt: Date | null;
6026
6002
  systemName: string;
6027
6003
  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
+ }[];
6028
6013
  }[];
6029
- }[];
6030
- extension: {
6031
- id: string;
6032
- createdAt: Date;
6033
- updatedAt: Date;
6034
- deletedAt: Date | null;
6035
- userId: string | null;
6036
- sipServerUrl: string;
6037
- sipUserName: string;
6038
- webphoneLoginUser: string;
6039
- extensionId: string | null;
6040
- extensionName: string;
6041
- telephonySignature: string | null;
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
+ };
6042
6027
  };
6028
+ brandName: string;
6029
+ platformId: string;
6030
+ isReloginRequired: boolean;
6031
+ connectedUserName: string;
6032
+ connectedUserId: string;
6033
+ botpressBot: {
6034
+ name: string;
6035
+ id: string;
6036
+ accessToken: string;
6037
+ botId: string;
6038
+ integrationId: string;
6039
+ } | null;
6043
6040
  }, {
6044
6041
  name: string;
6042
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
6045
6043
  id: string;
6046
- address: string | null;
6047
- email: 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;
6048
6070
  createdAt: Date;
6049
6071
  updatedAt: Date;
6050
6072
  deletedAt: Date | null;
6051
- emailVerifiedAt: Date | null;
6052
- password: string;
6053
- phone: string | null;
6054
- notificationCount: number | null;
6055
- roles: {
6073
+ actor: {
6074
+ name: string;
6056
6075
  id: string;
6057
- description: string | null;
6076
+ address: string | null;
6077
+ email: string;
6058
6078
  createdAt: Date;
6059
6079
  updatedAt: Date;
6060
6080
  deletedAt: Date | null;
6061
- systemName: string;
6062
- displayName: string;
6063
- permissions: {
6081
+ emailVerifiedAt: Date | null;
6082
+ password: string;
6083
+ phone: string | null;
6084
+ notificationCount: number | null;
6085
+ roles: {
6064
6086
  id: string;
6065
6087
  description: string | null;
6066
6088
  createdAt: Date;
@@ -6068,30 +6090,49 @@ export declare const chatContract: {
6068
6090
  deletedAt: Date | null;
6069
6091
  systemName: string;
6070
6092
  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
+ }[];
6071
6102
  }[];
6072
- }[];
6073
- extension: {
6074
- id: string;
6075
- createdAt: Date;
6076
- updatedAt: Date;
6077
- deletedAt: Date | null;
6078
- userId: string | null;
6079
- sipServerUrl: string;
6080
- sipUserName: string;
6081
- webphoneLoginUser: string;
6082
- extensionId: string | null;
6083
- extensionName: string;
6084
- telephonySignature: string | null;
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
+ };
6085
6116
  };
6117
+ brandName: string;
6118
+ platformId: string;
6119
+ isReloginRequired: boolean;
6120
+ connectedUserName: string;
6121
+ connectedUserId: string;
6122
+ botpressBot: {
6123
+ name: string;
6124
+ id: string;
6125
+ accessToken: string;
6126
+ botId: string;
6127
+ integrationId: string;
6128
+ } | null;
6086
6129
  }>;
6087
- closedAt: z.ZodDate;
6088
- lastMessageAt: z.ZodNullable<z.ZodDate>;
6089
- isBotRoom: z.ZodBoolean;
6090
- cxlog: z.ZodObject<{
6130
+ cxlog: z.ZodObject<z.objectUtil.extendShape<{
6091
6131
  id: z.ZodString;
6092
6132
  createdAt: z.ZodDate;
6093
6133
  updatedAt: z.ZodDate;
6094
6134
  deletedAt: z.ZodNullable<z.ZodDate>;
6135
+ }, {
6095
6136
  caseId: z.ZodNumber;
6096
6137
  entityId: z.ZodString;
6097
6138
  entityName: z.ZodString;
@@ -6103,21 +6144,23 @@ export declare const chatContract: {
6103
6144
  startedDate: z.ZodNullable<z.ZodDate>;
6104
6145
  handledTime: z.ZodNullable<z.ZodNumber>;
6105
6146
  firstResponseTime: z.ZodNullable<z.ZodNumber>;
6106
- wrapUpForm: z.ZodNullable<z.ZodObject<{
6147
+ wrapUpForm: z.ZodNullable<z.ZodObject<z.objectUtil.extendShape<{
6107
6148
  id: z.ZodString;
6108
6149
  createdAt: z.ZodDate;
6109
6150
  updatedAt: z.ZodDate;
6110
6151
  deletedAt: z.ZodNullable<z.ZodDate>;
6152
+ }, {
6111
6153
  note: z.ZodNullable<z.ZodString>;
6112
6154
  disposition: z.ZodNullable<z.ZodString>;
6113
6155
  type: z.ZodString;
6114
- tags: z.ZodArray<z.ZodObject<{
6156
+ tags: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
6115
6157
  id: z.ZodString;
6116
6158
  createdAt: z.ZodDate;
6117
6159
  updatedAt: z.ZodDate;
6118
6160
  deletedAt: z.ZodNullable<z.ZodDate>;
6161
+ }, {
6119
6162
  name: z.ZodString;
6120
- }, "strip", z.ZodTypeAny, {
6163
+ }>, "strip", z.ZodTypeAny, {
6121
6164
  name: string;
6122
6165
  id: string;
6123
6166
  createdAt: Date;
@@ -6130,11 +6173,12 @@ export declare const chatContract: {
6130
6173
  updatedAt: Date;
6131
6174
  deletedAt: Date | null;
6132
6175
  }>, "many">;
6133
- categories: z.ZodArray<z.ZodObject<{
6176
+ categories: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
6134
6177
  id: z.ZodString;
6135
6178
  createdAt: z.ZodDate;
6136
6179
  updatedAt: z.ZodDate;
6137
6180
  deletedAt: z.ZodNullable<z.ZodDate>;
6181
+ }, {
6138
6182
  value: z.ZodString;
6139
6183
  level: z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
6140
6184
  parentId: z.ZodNullable<z.ZodString>;
@@ -6187,7 +6231,7 @@ export declare const chatContract: {
6187
6231
  childCategoryList: any[];
6188
6232
  }[];
6189
6233
  }>, "many">;
6190
- }, "strip", z.ZodTypeAny, {
6234
+ }>, "strip", z.ZodTypeAny, {
6191
6235
  id: string;
6192
6236
  value: string;
6193
6237
  createdAt: Date;
@@ -6266,7 +6310,7 @@ export declare const chatContract: {
6266
6310
  numberValue: number | null;
6267
6311
  dateValue: Date | null;
6268
6312
  }>, "many">>>;
6269
- }, "strip", z.ZodTypeAny, {
6313
+ }>, "strip", z.ZodTypeAny, {
6270
6314
  type: string;
6271
6315
  id: string;
6272
6316
  disposition: string | null;
@@ -6369,7 +6413,7 @@ export declare const chatContract: {
6369
6413
  dateValue: Date | null;
6370
6414
  }[] | null | undefined;
6371
6415
  }>>;
6372
- }, "strip", z.ZodTypeAny, {
6416
+ }>, "strip", z.ZodTypeAny, {
6373
6417
  id: string;
6374
6418
  channel: string | null;
6375
6419
  direction: string | null;
@@ -6506,15 +6550,16 @@ export declare const chatContract: {
6506
6550
  }[] | null | undefined;
6507
6551
  } | null;
6508
6552
  }>;
6509
- workflowRule: z.ZodObject<{
6553
+ workflowRule: z.ZodObject<z.objectUtil.extendShape<{
6510
6554
  id: z.ZodString;
6511
6555
  createdAt: z.ZodDate;
6512
6556
  updatedAt: z.ZodDate;
6513
6557
  deletedAt: z.ZodNullable<z.ZodDate>;
6558
+ }, {
6514
6559
  name: z.ZodString;
6515
6560
  isActive: z.ZodBoolean;
6516
6561
  type: z.ZodString;
6517
- }, "strip", z.ZodTypeAny, {
6562
+ }>, "strip", z.ZodTypeAny, {
6518
6563
  name: string;
6519
6564
  type: string;
6520
6565
  id: string;
@@ -6532,8 +6577,9 @@ export declare const chatContract: {
6532
6577
  isActive: boolean;
6533
6578
  }>;
6534
6579
  automationQueueId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
6580
+ }>, {
6535
6581
  solveMessage: z.ZodString;
6536
- }, "strip", z.ZodTypeAny, {
6582
+ }>, "strip", z.ZodTypeAny, {
6537
6583
  id: string;
6538
6584
  channel: {
6539
6585
  name: string;
@@ -6543,19 +6589,19 @@ export declare const chatContract: {
6543
6589
  name: string;
6544
6590
  id: string;
6545
6591
  accessToken?: string | undefined;
6546
- channelSecret?: string | undefined;
6547
- additionalCredentials?: any;
6548
- senderId?: string | undefined;
6549
6592
  whatsapp?: {
6550
6593
  email: string;
6551
6594
  wabaExternalId: string;
6552
6595
  phoneNumberId: string;
6596
+ status?: "active" | "pending" | undefined;
6597
+ channelId?: string | undefined;
6553
6598
  wabaBusinessId?: string | undefined;
6554
6599
  clientId?: string | undefined;
6555
- channelId?: string | undefined;
6556
- status?: "active" | "pending" | undefined;
6557
6600
  apiKey?: string | undefined;
6558
6601
  } | undefined;
6602
+ additionalCredentials?: any;
6603
+ channelSecret?: string | undefined;
6604
+ senderId?: string | undefined;
6559
6605
  vonageCredentials?: {
6560
6606
  apiKey: string;
6561
6607
  mobileNumber: string;
@@ -6944,19 +6990,19 @@ export declare const chatContract: {
6944
6990
  name: string;
6945
6991
  id: string;
6946
6992
  accessToken?: string | undefined;
6947
- channelSecret?: string | undefined;
6948
- additionalCredentials?: any;
6949
- senderId?: string | undefined;
6950
6993
  whatsapp?: {
6951
6994
  email: string;
6952
6995
  wabaExternalId: string;
6953
6996
  phoneNumberId: string;
6997
+ status?: "active" | "pending" | undefined;
6998
+ channelId?: string | undefined;
6954
6999
  wabaBusinessId?: string | undefined;
6955
7000
  clientId?: string | undefined;
6956
- channelId?: string | undefined;
6957
- status?: "active" | "pending" | undefined;
6958
7001
  apiKey?: string | undefined;
6959
7002
  } | undefined;
7003
+ additionalCredentials?: any;
7004
+ channelSecret?: string | undefined;
7005
+ senderId?: string | undefined;
6960
7006
  vonageCredentials?: {
6961
7007
  apiKey: string;
6962
7008
  mobileNumber: string;
@@ -7336,7 +7382,7 @@ export declare const chatContract: {
7336
7382
  solveMessage: string;
7337
7383
  automationQueueId?: string | null | undefined;
7338
7384
  }>;
7339
- }, "strip", z.ZodTypeAny, {
7385
+ }>, "strip", z.ZodTypeAny, {
7340
7386
  data: {
7341
7387
  id: string;
7342
7388
  channel: {
@@ -7347,19 +7393,19 @@ export declare const chatContract: {
7347
7393
  name: string;
7348
7394
  id: string;
7349
7395
  accessToken?: string | undefined;
7350
- channelSecret?: string | undefined;
7351
- additionalCredentials?: any;
7352
- senderId?: string | undefined;
7353
7396
  whatsapp?: {
7354
7397
  email: string;
7355
7398
  wabaExternalId: string;
7356
7399
  phoneNumberId: string;
7400
+ status?: "active" | "pending" | undefined;
7401
+ channelId?: string | undefined;
7357
7402
  wabaBusinessId?: string | undefined;
7358
7403
  clientId?: string | undefined;
7359
- channelId?: string | undefined;
7360
- status?: "active" | "pending" | undefined;
7361
7404
  apiKey?: string | undefined;
7362
7405
  } | undefined;
7406
+ additionalCredentials?: any;
7407
+ channelSecret?: string | undefined;
7408
+ senderId?: string | undefined;
7363
7409
  vonageCredentials?: {
7364
7410
  apiKey: string;
7365
7411
  mobileNumber: string;
@@ -7751,19 +7797,19 @@ export declare const chatContract: {
7751
7797
  name: string;
7752
7798
  id: string;
7753
7799
  accessToken?: string | undefined;
7754
- channelSecret?: string | undefined;
7755
- additionalCredentials?: any;
7756
- senderId?: string | undefined;
7757
7800
  whatsapp?: {
7758
7801
  email: string;
7759
7802
  wabaExternalId: string;
7760
7803
  phoneNumberId: string;
7804
+ status?: "active" | "pending" | undefined;
7805
+ channelId?: string | undefined;
7761
7806
  wabaBusinessId?: string | undefined;
7762
7807
  clientId?: string | undefined;
7763
- channelId?: string | undefined;
7764
- status?: "active" | "pending" | undefined;
7765
7808
  apiKey?: string | undefined;
7766
7809
  } | undefined;
7810
+ additionalCredentials?: any;
7811
+ channelSecret?: string | undefined;
7812
+ senderId?: string | undefined;
7767
7813
  vonageCredentials?: {
7768
7814
  apiKey: string;
7769
7815
  mobileNumber: string;
@@ -8156,17 +8202,6 @@ export declare const chatContract: {
8156
8202
  error?: any;
8157
8203
  }>;
8158
8204
  };
8159
- path: "chat/room/solve";
8160
- headers: z.ZodObject<{
8161
- 'x-tenant': z.ZodString;
8162
- 'x-code': z.ZodOptional<z.ZodString>;
8163
- }, "strip", z.ZodTypeAny, {
8164
- 'x-tenant': string;
8165
- 'x-code'?: string | undefined;
8166
- }, {
8167
- 'x-tenant': string;
8168
- 'x-code'?: string | undefined;
8169
- }>;
8170
8205
  };
8171
8206
  emitMessage: {
8172
8207
  body: z.ZodObject<{
@@ -8181,6 +8216,17 @@ export declare const chatContract: {
8181
8216
  }>;
8182
8217
  summary: "Get message by ID";
8183
8218
  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
+ }>;
8184
8230
  responses: {
8185
8231
  200: z.ZodObject<{
8186
8232
  requestId: z.ZodString;
@@ -8210,17 +8256,6 @@ export declare const chatContract: {
8210
8256
  error?: any;
8211
8257
  }>;
8212
8258
  };
8213
- path: "chat/message/emit";
8214
- headers: z.ZodObject<{
8215
- 'x-tenant': z.ZodString;
8216
- 'x-code': z.ZodOptional<z.ZodString>;
8217
- }, "strip", z.ZodTypeAny, {
8218
- 'x-tenant': string;
8219
- 'x-code'?: string | undefined;
8220
- }, {
8221
- 'x-tenant': string;
8222
- 'x-code'?: string | undefined;
8223
- }>;
8224
8259
  };
8225
8260
  };
8226
8261
  //# sourceMappingURL=index.d.ts.map