@kl1/contracts 1.4.65 → 1.4.66

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 (265) hide show
  1. package/dist/api-contracts/src/activity-log/index.d.ts +20 -21
  2. package/dist/api-contracts/src/activity-log/index.d.ts.map +1 -1
  3. package/dist/api-contracts/src/activity-log/schema.d.ts +3 -4
  4. package/dist/api-contracts/src/activity-log/schema.d.ts.map +1 -1
  5. package/dist/api-contracts/src/attribute/index.d.ts +116 -132
  6. package/dist/api-contracts/src/attribute/index.d.ts.map +1 -1
  7. package/dist/api-contracts/src/attribute/schema.d.ts +2 -5
  8. package/dist/api-contracts/src/attribute/schema.d.ts.map +1 -1
  9. package/dist/api-contracts/src/attribute-option/schema.d.ts +0 -1
  10. package/dist/api-contracts/src/attribute-option/schema.d.ts.map +1 -1
  11. package/dist/api-contracts/src/auth/index.d.ts +20 -22
  12. package/dist/api-contracts/src/auth/index.d.ts.map +1 -1
  13. package/dist/api-contracts/src/automation-queue/index.d.ts +126 -148
  14. package/dist/api-contracts/src/automation-queue/index.d.ts.map +1 -1
  15. package/dist/api-contracts/src/automation-queue/schema.d.ts +6 -9
  16. package/dist/api-contracts/src/automation-queue/schema.d.ts.map +1 -1
  17. package/dist/api-contracts/src/aws/index.d.ts +2 -4
  18. package/dist/api-contracts/src/aws/index.d.ts.map +1 -1
  19. package/dist/api-contracts/src/botpress/index.d.ts +22 -29
  20. package/dist/api-contracts/src/botpress/index.d.ts.map +1 -1
  21. package/dist/api-contracts/src/botpress/validation.d.ts +17 -20
  22. package/dist/api-contracts/src/botpress/validation.d.ts.map +1 -1
  23. package/dist/api-contracts/src/business-calendar/index.d.ts +4 -16
  24. package/dist/api-contracts/src/business-calendar/index.d.ts.map +1 -1
  25. package/dist/api-contracts/src/business-calendar/schema.d.ts +0 -5
  26. package/dist/api-contracts/src/business-calendar/schema.d.ts.map +1 -1
  27. package/dist/api-contracts/src/call-log/schema.d.ts +2 -3
  28. package/dist/api-contracts/src/call-log/schema.d.ts.map +1 -1
  29. package/dist/api-contracts/src/category/index.d.ts +91 -100
  30. package/dist/api-contracts/src/category/index.d.ts.map +1 -1
  31. package/dist/api-contracts/src/category/schema.d.ts +0 -1
  32. package/dist/api-contracts/src/category/schema.d.ts.map +1 -1
  33. package/dist/api-contracts/src/channel/index.d.ts +2156 -2256
  34. package/dist/api-contracts/src/channel/index.d.ts.map +1 -1
  35. package/dist/api-contracts/src/channel/schema.d.ts +82 -82
  36. package/dist/api-contracts/src/channel/validation.d.ts +104 -168
  37. package/dist/api-contracts/src/channel/validation.d.ts.map +1 -1
  38. package/dist/api-contracts/src/chat/index.d.ts +11622 -12224
  39. package/dist/api-contracts/src/chat/index.d.ts.map +1 -1
  40. package/dist/api-contracts/src/chat/schema.d.ts +2567 -2743
  41. package/dist/api-contracts/src/chat/schema.d.ts.map +1 -1
  42. package/dist/api-contracts/src/chat/validation.d.ts +4875 -4988
  43. package/dist/api-contracts/src/chat/validation.d.ts.map +1 -1
  44. package/dist/api-contracts/src/comment/index.d.ts +155 -227
  45. package/dist/api-contracts/src/comment/index.d.ts.map +1 -1
  46. package/dist/api-contracts/src/comment/schema.d.ts +29 -52
  47. package/dist/api-contracts/src/comment/schema.d.ts.map +1 -1
  48. package/dist/api-contracts/src/company/index.d.ts +55 -162
  49. package/dist/api-contracts/src/company/index.d.ts.map +1 -1
  50. package/dist/api-contracts/src/company/schema.d.ts +6 -15
  51. package/dist/api-contracts/src/company/schema.d.ts.map +1 -1
  52. package/dist/api-contracts/src/company/validation.d.ts +30 -86
  53. package/dist/api-contracts/src/company/validation.d.ts.map +1 -1
  54. package/dist/api-contracts/src/contact/index.d.ts +314 -433
  55. package/dist/api-contracts/src/contact/index.d.ts.map +1 -1
  56. package/dist/api-contracts/src/contact/schema.d.ts +14 -28
  57. package/dist/api-contracts/src/contact/schema.d.ts.map +1 -1
  58. package/dist/api-contracts/src/contact/validation.d.ts +56 -137
  59. package/dist/api-contracts/src/contact/validation.d.ts.map +1 -1
  60. package/dist/api-contracts/src/contact-email/schema.d.ts +0 -1
  61. package/dist/api-contracts/src/contact-email/schema.d.ts.map +1 -1
  62. package/dist/api-contracts/src/contact-phone/schema.d.ts +0 -1
  63. package/dist/api-contracts/src/contact-phone/schema.d.ts.map +1 -1
  64. package/dist/api-contracts/src/contract.d.ts +24290 -30200
  65. package/dist/api-contracts/src/contract.d.ts.map +1 -1
  66. package/dist/api-contracts/src/custom-field/schema.d.ts +0 -1
  67. package/dist/api-contracts/src/custom-field/schema.d.ts.map +1 -1
  68. package/dist/api-contracts/src/custom-field/validation.d.ts +2 -2
  69. package/dist/api-contracts/src/custom-field-upload/schema.d.ts +0 -1
  70. package/dist/api-contracts/src/custom-field-upload/schema.d.ts.map +1 -1
  71. package/dist/api-contracts/src/cx-intelligence/index.d.ts +41 -44
  72. package/dist/api-contracts/src/cx-intelligence/index.d.ts.map +1 -1
  73. package/dist/api-contracts/src/cx-log/index.d.ts +674 -722
  74. package/dist/api-contracts/src/cx-log/index.d.ts.map +1 -1
  75. package/dist/api-contracts/src/cx-log/schema.d.ts +382 -435
  76. package/dist/api-contracts/src/cx-log/schema.d.ts.map +1 -1
  77. package/dist/api-contracts/src/cx-log/validation.d.ts +40 -40
  78. package/dist/api-contracts/src/dashboard/index.d.ts +304 -347
  79. package/dist/api-contracts/src/dashboard/index.d.ts.map +1 -1
  80. package/dist/api-contracts/src/dashboard/schema.d.ts +2 -3
  81. package/dist/api-contracts/src/dashboard/schema.d.ts.map +1 -1
  82. package/dist/api-contracts/src/dashboard/validation.d.ts +10 -14
  83. package/dist/api-contracts/src/dashboard/validation.d.ts.map +1 -1
  84. package/dist/api-contracts/src/evaluate-form/index.d.ts +1 -2
  85. package/dist/api-contracts/src/evaluate-form/index.d.ts.map +1 -1
  86. package/dist/api-contracts/src/evaluate-form/schema.d.ts +0 -1
  87. package/dist/api-contracts/src/evaluate-form/schema.d.ts.map +1 -1
  88. package/dist/api-contracts/src/export/index.d.ts +1 -2
  89. package/dist/api-contracts/src/export/index.d.ts.map +1 -1
  90. package/dist/api-contracts/src/extension/index.d.ts +100 -106
  91. package/dist/api-contracts/src/extension/index.d.ts.map +1 -1
  92. package/dist/api-contracts/src/facebook-feed/index.d.ts +4525 -4615
  93. package/dist/api-contracts/src/facebook-feed/index.d.ts.map +1 -1
  94. package/dist/api-contracts/src/facebook-feed/schema.d.ts +81 -93
  95. package/dist/api-contracts/src/facebook-feed/schema.d.ts.map +1 -1
  96. package/dist/api-contracts/src/facebook-feed/validation.d.ts +83 -94
  97. package/dist/api-contracts/src/facebook-feed/validation.d.ts.map +1 -1
  98. package/dist/api-contracts/src/general-setting/index.d.ts +2 -246
  99. package/dist/api-contracts/src/general-setting/index.d.ts.map +1 -1
  100. package/dist/api-contracts/src/group/schema.d.ts +0 -1
  101. package/dist/api-contracts/src/group/schema.d.ts.map +1 -1
  102. package/dist/api-contracts/src/hold-label/index.d.ts +30 -49
  103. package/dist/api-contracts/src/hold-label/index.d.ts.map +1 -1
  104. package/dist/api-contracts/src/hold-label/schema.d.ts +4 -10
  105. package/dist/api-contracts/src/hold-label/schema.d.ts.map +1 -1
  106. package/dist/api-contracts/src/hold-label/validation.d.ts +2 -2
  107. package/dist/api-contracts/src/index.d.ts +0 -1
  108. package/dist/api-contracts/src/index.d.ts.map +1 -1
  109. package/dist/api-contracts/src/instagram/index.d.ts +2020 -2097
  110. package/dist/api-contracts/src/instagram/index.d.ts.map +1 -1
  111. package/dist/api-contracts/src/instagram/validation.d.ts +6 -6
  112. package/dist/api-contracts/src/invoice/index.d.ts +1 -3
  113. package/dist/api-contracts/src/invoice/index.d.ts.map +1 -1
  114. package/dist/api-contracts/src/invoice/schema.d.ts +0 -1
  115. package/dist/api-contracts/src/invoice/schema.d.ts.map +1 -1
  116. package/dist/api-contracts/src/klink-chat/index.d.ts +2748 -2824
  117. package/dist/api-contracts/src/klink-chat/index.d.ts.map +1 -1
  118. package/dist/api-contracts/src/line/index.d.ts +2257 -2334
  119. package/dist/api-contracts/src/line/index.d.ts.map +1 -1
  120. package/dist/api-contracts/src/line/schema.d.ts +9 -10
  121. package/dist/api-contracts/src/line/schema.d.ts.map +1 -1
  122. package/dist/api-contracts/src/line/validation.d.ts +148 -148
  123. package/dist/api-contracts/src/log-form/schema.d.ts +0 -1
  124. package/dist/api-contracts/src/log-form/schema.d.ts.map +1 -1
  125. package/dist/api-contracts/src/mail/account-contract.d.ts +174 -223
  126. package/dist/api-contracts/src/mail/account-contract.d.ts.map +1 -1
  127. package/dist/api-contracts/src/mail/email-engine-webhooks-events.contract.d.ts +1 -2
  128. package/dist/api-contracts/src/mail/email-engine-webhooks-events.contract.d.ts.map +1 -1
  129. package/dist/api-contracts/src/mail/mail-contract.d.ts +303 -423
  130. package/dist/api-contracts/src/mail/mail-contract.d.ts.map +1 -1
  131. package/dist/api-contracts/src/mail/mail-server-contract.d.ts +6 -12
  132. package/dist/api-contracts/src/mail/mail-server-contract.d.ts.map +1 -1
  133. package/dist/api-contracts/src/mail/message-contract.d.ts +80 -86
  134. package/dist/api-contracts/src/mail/message-contract.d.ts.map +1 -1
  135. package/dist/api-contracts/src/mail/room-contract.d.ts +43 -102
  136. package/dist/api-contracts/src/mail/room-contract.d.ts.map +1 -1
  137. package/dist/api-contracts/src/mail/schemas/account-validation.schema.d.ts +0 -27
  138. package/dist/api-contracts/src/mail/schemas/account-validation.schema.d.ts.map +1 -1
  139. package/dist/api-contracts/src/mail/schemas/account.schema.d.ts +0 -3
  140. package/dist/api-contracts/src/mail/schemas/account.schema.d.ts.map +1 -1
  141. package/dist/api-contracts/src/mail/schemas/message-validation.schema.d.ts +16 -16
  142. package/dist/api-contracts/src/mail/schemas/room-validation.schema.d.ts +18 -31
  143. package/dist/api-contracts/src/mail/schemas/room-validation.schema.d.ts.map +1 -1
  144. package/dist/api-contracts/src/mail/schemas/room.schema.d.ts +6 -18
  145. package/dist/api-contracts/src/mail/schemas/room.schema.d.ts.map +1 -1
  146. package/dist/api-contracts/src/messenger/index.d.ts +2020 -2098
  147. package/dist/api-contracts/src/messenger/index.d.ts.map +1 -1
  148. package/dist/api-contracts/src/messenger/validation.d.ts +83 -94
  149. package/dist/api-contracts/src/messenger/validation.d.ts.map +1 -1
  150. package/dist/api-contracts/src/notification/index.d.ts +13 -20
  151. package/dist/api-contracts/src/notification/index.d.ts.map +1 -1
  152. package/dist/api-contracts/src/notification/schema.d.ts +9 -12
  153. package/dist/api-contracts/src/notification/schema.d.ts.map +1 -1
  154. package/dist/api-contracts/src/notification/validation.d.ts +3 -4
  155. package/dist/api-contracts/src/notification/validation.d.ts.map +1 -1
  156. package/dist/api-contracts/src/permission/index.d.ts +17 -17
  157. package/dist/api-contracts/src/presence-status/index.d.ts +83 -87
  158. package/dist/api-contracts/src/presence-status/index.d.ts.map +1 -1
  159. package/dist/api-contracts/src/presence-status/schema.d.ts +3 -4
  160. package/dist/api-contracts/src/presence-status/schema.d.ts.map +1 -1
  161. package/dist/api-contracts/src/public-api/index.d.ts +194 -4606
  162. package/dist/api-contracts/src/public-api/index.d.ts.map +1 -1
  163. package/dist/api-contracts/src/public-api/schema.d.ts +6 -20
  164. package/dist/api-contracts/src/public-api/schema.d.ts.map +1 -1
  165. package/dist/api-contracts/src/public-api/validation.d.ts +38 -63
  166. package/dist/api-contracts/src/public-api/validation.d.ts.map +1 -1
  167. package/dist/api-contracts/src/role/index.d.ts +75 -80
  168. package/dist/api-contracts/src/role/index.d.ts.map +1 -1
  169. package/dist/api-contracts/src/sms/index.d.ts +540 -549
  170. package/dist/api-contracts/src/sms/index.d.ts.map +1 -1
  171. package/dist/api-contracts/src/snippet/index.d.ts +10 -32
  172. package/dist/api-contracts/src/snippet/index.d.ts.map +1 -1
  173. package/dist/api-contracts/src/snippet/schema.d.ts +0 -7
  174. package/dist/api-contracts/src/snippet/schema.d.ts.map +1 -1
  175. package/dist/api-contracts/src/snippet/validation.d.ts +2 -3
  176. package/dist/api-contracts/src/snippet/validation.d.ts.map +1 -1
  177. package/dist/api-contracts/src/subscription/index.d.ts +6 -474
  178. package/dist/api-contracts/src/subscription/index.d.ts.map +1 -1
  179. package/dist/api-contracts/src/subscription/schema.d.ts +0 -31
  180. package/dist/api-contracts/src/subscription/schema.d.ts.map +1 -1
  181. package/dist/api-contracts/src/tag/index.d.ts +58 -65
  182. package/dist/api-contracts/src/tag/index.d.ts.map +1 -1
  183. package/dist/api-contracts/src/tag/schema.d.ts +0 -1
  184. package/dist/api-contracts/src/tag/schema.d.ts.map +1 -1
  185. package/dist/api-contracts/src/tag-group/schema.d.ts +0 -1
  186. package/dist/api-contracts/src/tag-group/schema.d.ts.map +1 -1
  187. package/dist/api-contracts/src/telegram/index.d.ts +3579 -3654
  188. package/dist/api-contracts/src/telegram/index.d.ts.map +1 -1
  189. package/dist/api-contracts/src/telephony-agent-presence-status/index.d.ts +463 -38
  190. package/dist/api-contracts/src/telephony-agent-presence-status/index.d.ts.map +1 -1
  191. package/dist/api-contracts/src/telephony-agent-presence-status/schema.d.ts +6 -5
  192. package/dist/api-contracts/src/telephony-agent-presence-status/schema.d.ts.map +1 -1
  193. package/dist/api-contracts/src/telephony-agent-presence-status/validation.d.ts +3 -0
  194. package/dist/api-contracts/src/telephony-agent-presence-status/validation.d.ts.map +1 -1
  195. package/dist/api-contracts/src/telephony-cdr/call-report.schema.d.ts +38 -38
  196. package/dist/api-contracts/src/telephony-cdr/index.d.ts +694 -748
  197. package/dist/api-contracts/src/telephony-cdr/index.d.ts.map +1 -1
  198. package/dist/api-contracts/src/telephony-cdr/schema.d.ts +144 -170
  199. package/dist/api-contracts/src/telephony-cdr/schema.d.ts.map +1 -1
  200. package/dist/api-contracts/src/telephony-cdr/validation.d.ts +39 -43
  201. package/dist/api-contracts/src/telephony-cdr/validation.d.ts.map +1 -1
  202. package/dist/api-contracts/src/telephony-extension/index.d.ts +21 -21
  203. package/dist/api-contracts/src/telephony-extension/schema.d.ts +4 -4
  204. package/dist/api-contracts/src/telephony-live-queue-call/schema.d.ts +0 -1
  205. package/dist/api-contracts/src/telephony-live-queue-call/schema.d.ts.map +1 -1
  206. package/dist/api-contracts/src/telephony-queue-call-count/schema.d.ts +0 -1
  207. package/dist/api-contracts/src/telephony-queue-call-count/schema.d.ts.map +1 -1
  208. package/dist/api-contracts/src/tenant/schema.d.ts +0 -1
  209. package/dist/api-contracts/src/tenant/schema.d.ts.map +1 -1
  210. package/dist/api-contracts/src/ticket/index.d.ts +452 -564
  211. package/dist/api-contracts/src/ticket/index.d.ts.map +1 -1
  212. package/dist/api-contracts/src/ticket/schema.d.ts +21 -47
  213. package/dist/api-contracts/src/ticket/schema.d.ts.map +1 -1
  214. package/dist/api-contracts/src/ticket/validation.d.ts +51 -53
  215. package/dist/api-contracts/src/ticket/validation.d.ts.map +1 -1
  216. package/dist/api-contracts/src/upload/index.d.ts +30 -32
  217. package/dist/api-contracts/src/upload/index.d.ts.map +1 -1
  218. package/dist/api-contracts/src/upload/schema.d.ts +0 -1
  219. package/dist/api-contracts/src/upload/schema.d.ts.map +1 -1
  220. package/dist/api-contracts/src/user/index.d.ts +126 -137
  221. package/dist/api-contracts/src/user/index.d.ts.map +1 -1
  222. package/dist/api-contracts/src/user/schema.d.ts +3 -4
  223. package/dist/api-contracts/src/user/schema.d.ts.map +1 -1
  224. package/dist/api-contracts/src/user/validation.d.ts +2 -3
  225. package/dist/api-contracts/src/user/validation.d.ts.map +1 -1
  226. package/dist/api-contracts/src/user-presence-status-log/index.d.ts +32 -34
  227. package/dist/api-contracts/src/user-presence-status-log/index.d.ts.map +1 -1
  228. package/dist/api-contracts/src/user-presence-status-log/schema.d.ts +3 -5
  229. package/dist/api-contracts/src/user-presence-status-log/schema.d.ts.map +1 -1
  230. package/dist/api-contracts/src/viber/index.d.ts +2473 -2548
  231. package/dist/api-contracts/src/viber/index.d.ts.map +1 -1
  232. package/dist/api-contracts/src/webchat/index.d.ts +2569 -2644
  233. package/dist/api-contracts/src/webchat/index.d.ts.map +1 -1
  234. package/dist/api-contracts/src/whatsapp/index.d.ts +1778 -1862
  235. package/dist/api-contracts/src/whatsapp/index.d.ts.map +1 -1
  236. package/dist/api-contracts/src/whatsapp/validation.d.ts +4 -15
  237. package/dist/api-contracts/src/whatsapp/validation.d.ts.map +1 -1
  238. package/dist/api-contracts/src/widget/index.d.ts +132 -145
  239. package/dist/api-contracts/src/widget/index.d.ts.map +1 -1
  240. package/dist/api-contracts/src/widget/schema.d.ts +0 -1
  241. package/dist/api-contracts/src/widget/schema.d.ts.map +1 -1
  242. package/dist/api-contracts/src/widget/validation.d.ts +16 -16
  243. package/dist/api-contracts/src/workflow-rule/index.d.ts +1919 -2050
  244. package/dist/api-contracts/src/workflow-rule/index.d.ts.map +1 -1
  245. package/dist/api-contracts/src/workflow-rule/schema.d.ts +0 -1
  246. package/dist/api-contracts/src/workflow-rule/schema.d.ts.map +1 -1
  247. package/dist/api-contracts/src/wrap-up-form/index.d.ts +109 -128
  248. package/dist/api-contracts/src/wrap-up-form/index.d.ts.map +1 -1
  249. package/dist/api-contracts/src/wrap-up-form/schema.d.ts +0 -3
  250. package/dist/api-contracts/src/wrap-up-form/schema.d.ts.map +1 -1
  251. package/dist/api-contracts/src/wrap-up-form/validation.d.ts +18 -19
  252. package/dist/api-contracts/src/wrap-up-form/validation.d.ts.map +1 -1
  253. package/dist/api-contracts/utils.d.ts +1 -2
  254. package/dist/api-contracts/utils.d.ts.map +1 -1
  255. package/dist/entities/src/enums/chat.d.ts +0 -2
  256. package/dist/entities/src/enums/chat.d.ts.map +1 -1
  257. package/dist/index.js +1683 -1853
  258. package/dist/index.js.map +1 -1
  259. package/dist/index.mjs +1683 -1852
  260. package/dist/index.mjs.map +1 -1
  261. package/package.json +2 -2
  262. package/dist/api-contracts/src/general-setting/schema.d.ts +0 -30
  263. package/dist/api-contracts/src/general-setting/schema.d.ts.map +0 -1
  264. package/dist/api-contracts/src/general-setting/validation.d.ts +0 -30
  265. package/dist/api-contracts/src/general-setting/validation.d.ts.map +0 -1
@@ -133,27 +133,9 @@ export declare const contactContract: {
133
133
  }>;
134
134
  summary: "Create a new contact";
135
135
  method: "POST";
136
- path: "ccs/api/v1/contact";
137
- headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
138
- 'x-tenant': z.ZodString;
139
- 'x-service-token': z.ZodString;
140
- 'x-code': z.ZodOptional<z.ZodString>;
141
- 'x-client-timezone': z.ZodDefault<z.ZodString>;
142
- }, "strip", z.ZodTypeAny, {
143
- 'x-tenant': string;
144
- 'x-service-token': string;
145
- 'x-client-timezone': string;
146
- 'x-code'?: string | undefined;
147
- }, {
148
- 'x-tenant': string;
149
- 'x-service-token': string;
150
- 'x-code'?: string | undefined;
151
- 'x-client-timezone'?: string | undefined;
152
- }>>>;
153
136
  responses: {
154
137
  201: z.ZodObject<{
155
138
  requestId: z.ZodString;
156
- } & {
157
139
  data: z.ZodObject<{
158
140
  id: z.ZodString;
159
141
  createdAt: z.ZodDate;
@@ -170,7 +152,6 @@ export declare const contactContract: {
170
152
  createdAt: z.ZodDate;
171
153
  updatedAt: z.ZodDate;
172
154
  deletedAt: z.ZodNullable<z.ZodDate>;
173
- } & {
174
155
  name: z.ZodString;
175
156
  }, "strip", z.ZodTypeAny, {
176
157
  name: string;
@@ -190,7 +171,6 @@ export declare const contactContract: {
190
171
  createdAt: z.ZodDate;
191
172
  updatedAt: z.ZodDate;
192
173
  deletedAt: z.ZodNullable<z.ZodDate>;
193
- } & {
194
174
  name: z.ZodOptional<z.ZodString>;
195
175
  phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
196
176
  address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -200,7 +180,6 @@ export declare const contactContract: {
200
180
  createdAt: z.ZodDate;
201
181
  updatedAt: z.ZodDate;
202
182
  deletedAt: z.ZodNullable<z.ZodDate>;
203
- } & {
204
183
  textValue: z.ZodNullable<z.ZodString>;
205
184
  booleanValue: z.ZodNullable<z.ZodBoolean>;
206
185
  numberValue: z.ZodNullable<z.ZodNumber>;
@@ -210,7 +189,6 @@ export declare const contactContract: {
210
189
  createdAt: z.ZodDate;
211
190
  updatedAt: z.ZodDate;
212
191
  deletedAt: z.ZodNullable<z.ZodDate>;
213
- } & {
214
192
  systemName: z.ZodString;
215
193
  displayName: z.ZodString;
216
194
  type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
@@ -220,11 +198,10 @@ export declare const contactContract: {
220
198
  isRequired: z.ZodBoolean;
221
199
  isUnique: z.ZodBoolean;
222
200
  options: z.ZodArray<z.ZodObject<{
223
- label: z.ZodString;
201
+ position: z.ZodNumber;
224
202
  value: z.ZodString;
203
+ label: z.ZodString;
225
204
  isDefault: z.ZodBoolean;
226
- position: z.ZodNumber;
227
- } & {
228
205
  id: z.ZodString;
229
206
  }, "strip", z.ZodTypeAny, {
230
207
  id: string;
@@ -244,7 +221,6 @@ export declare const contactContract: {
244
221
  createdAt: z.ZodDate;
245
222
  updatedAt: z.ZodDate;
246
223
  deletedAt: z.ZodNullable<z.ZodDate>;
247
- } & {
248
224
  systemName: z.ZodString;
249
225
  displayName: z.ZodString;
250
226
  }, "strip", z.ZodTypeAny, {
@@ -422,7 +398,6 @@ export declare const contactContract: {
422
398
  createdAt: z.ZodDate;
423
399
  updatedAt: z.ZodDate;
424
400
  deletedAt: z.ZodNullable<z.ZodDate>;
425
- } & {
426
401
  systemName: z.ZodString;
427
402
  displayName: z.ZodString;
428
403
  type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
@@ -432,11 +407,10 @@ export declare const contactContract: {
432
407
  isRequired: z.ZodBoolean;
433
408
  isUnique: z.ZodBoolean;
434
409
  options: z.ZodArray<z.ZodObject<{
435
- label: z.ZodString;
410
+ position: z.ZodNumber;
436
411
  value: z.ZodString;
412
+ label: z.ZodString;
437
413
  isDefault: z.ZodBoolean;
438
- position: z.ZodNumber;
439
- } & {
440
414
  id: z.ZodString;
441
415
  }, "strip", z.ZodTypeAny, {
442
416
  id: string;
@@ -456,7 +430,6 @@ export declare const contactContract: {
456
430
  createdAt: z.ZodDate;
457
431
  updatedAt: z.ZodDate;
458
432
  deletedAt: z.ZodNullable<z.ZodDate>;
459
- } & {
460
433
  systemName: z.ZodString;
461
434
  displayName: z.ZodString;
462
435
  }, "strip", z.ZodTypeAny, {
@@ -506,7 +479,6 @@ export declare const contactContract: {
506
479
  createdAt: z.ZodDate;
507
480
  updatedAt: z.ZodDate;
508
481
  deletedAt: z.ZodNullable<z.ZodDate>;
509
- } & {
510
482
  bucketName: z.ZodString;
511
483
  fileName: z.ZodString;
512
484
  fileSize: z.ZodNumber;
@@ -1215,6 +1187,23 @@ export declare const contactContract: {
1215
1187
  error?: any;
1216
1188
  }>;
1217
1189
  };
1190
+ path: "ccs/api/v1/contact";
1191
+ headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1192
+ 'x-tenant': z.ZodString;
1193
+ 'x-service-token': z.ZodString;
1194
+ 'x-code': z.ZodOptional<z.ZodString>;
1195
+ 'x-client-timezone': z.ZodDefault<z.ZodString>;
1196
+ }, "strip", z.ZodTypeAny, {
1197
+ 'x-tenant': string;
1198
+ 'x-service-token': string;
1199
+ 'x-client-timezone': string;
1200
+ 'x-code'?: string | undefined;
1201
+ }, {
1202
+ 'x-tenant': string;
1203
+ 'x-service-token': string;
1204
+ 'x-code'?: string | undefined;
1205
+ 'x-client-timezone'?: string | undefined;
1206
+ }>>>;
1218
1207
  };
1219
1208
  getAll: {
1220
1209
  summary: "Get all contacts";
@@ -1234,11 +1223,11 @@ export declare const contactContract: {
1234
1223
  value: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
1235
1224
  }, "strip", z.ZodTypeAny, {
1236
1225
  type: string;
1237
- value: string | string[];
1226
+ value: (string | string[]) & (string | string[] | undefined);
1238
1227
  attributeId: string;
1239
1228
  }, {
1240
1229
  type: string;
1241
- value: string | string[];
1230
+ value: (string | string[]) & (string | string[] | undefined);
1242
1231
  attributeId: string;
1243
1232
  }>, "many">>;
1244
1233
  tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -1246,63 +1235,45 @@ export declare const contactContract: {
1246
1235
  email: z.ZodOptional<z.ZodString>;
1247
1236
  notes: z.ZodOptional<z.ZodString>;
1248
1237
  }, "strip", z.ZodTypeAny, {
1249
- name?: string | undefined;
1250
- channel?: string[] | undefined;
1251
- address?: string | undefined;
1252
1238
  page?: number | undefined;
1253
- email?: string | undefined;
1254
1239
  pageSize?: number | undefined;
1255
- phone?: string | undefined;
1240
+ keyword?: string | undefined;
1241
+ company?: string[] | undefined;
1242
+ name?: string | undefined;
1243
+ address?: string | undefined;
1244
+ channel?: string[] | undefined;
1245
+ selectedDate?: string | undefined;
1256
1246
  customFields?: {
1257
1247
  type: string;
1258
- value: string | string[];
1248
+ value: (string | string[]) & (string | string[] | undefined);
1259
1249
  attributeId: string;
1260
1250
  }[] | undefined;
1261
- company?: string[] | undefined;
1262
- notes?: string | undefined;
1263
1251
  tags?: string[] | undefined;
1264
- keyword?: string | undefined;
1265
- selectedDate?: string | undefined;
1252
+ phone?: string | undefined;
1253
+ email?: string | undefined;
1254
+ notes?: string | undefined;
1266
1255
  }, {
1267
- name?: string | undefined;
1268
- channel?: string[] | undefined;
1269
- address?: string | undefined;
1270
1256
  page?: number | undefined;
1271
- email?: string | undefined;
1272
1257
  pageSize?: number | undefined;
1273
- phone?: string | undefined;
1258
+ keyword?: string | undefined;
1259
+ company?: string[] | undefined;
1260
+ name?: string | undefined;
1261
+ address?: string | undefined;
1262
+ channel?: string[] | undefined;
1263
+ selectedDate?: string | undefined;
1274
1264
  customFields?: {
1275
1265
  type: string;
1276
- value: string | string[];
1266
+ value: (string | string[]) & (string | string[] | undefined);
1277
1267
  attributeId: string;
1278
1268
  }[] | undefined;
1279
- company?: string[] | undefined;
1280
- notes?: string | undefined;
1281
1269
  tags?: string[] | undefined;
1282
- keyword?: string | undefined;
1283
- selectedDate?: string | undefined;
1270
+ phone?: string | undefined;
1271
+ email?: string | undefined;
1272
+ notes?: string | undefined;
1284
1273
  }>;
1285
- path: "ccs/api/v1/contact";
1286
- headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1287
- 'x-tenant': z.ZodString;
1288
- 'x-service-token': z.ZodString;
1289
- 'x-code': z.ZodOptional<z.ZodString>;
1290
- 'x-client-timezone': z.ZodDefault<z.ZodString>;
1291
- }, "strip", z.ZodTypeAny, {
1292
- 'x-tenant': string;
1293
- 'x-service-token': string;
1294
- 'x-client-timezone': string;
1295
- 'x-code'?: string | undefined;
1296
- }, {
1297
- 'x-tenant': string;
1298
- 'x-service-token': string;
1299
- 'x-code'?: string | undefined;
1300
- 'x-client-timezone'?: string | undefined;
1301
- }>>>;
1302
1274
  responses: {
1303
1275
  200: z.ZodObject<{
1304
1276
  requestId: z.ZodString;
1305
- } & {
1306
1277
  page: z.ZodNumber;
1307
1278
  pageSize: z.ZodNumber;
1308
1279
  total: z.ZodNumber;
@@ -1323,7 +1294,6 @@ export declare const contactContract: {
1323
1294
  createdAt: z.ZodDate;
1324
1295
  updatedAt: z.ZodDate;
1325
1296
  deletedAt: z.ZodNullable<z.ZodDate>;
1326
- } & {
1327
1297
  name: z.ZodString;
1328
1298
  }, "strip", z.ZodTypeAny, {
1329
1299
  name: string;
@@ -1343,7 +1313,6 @@ export declare const contactContract: {
1343
1313
  createdAt: z.ZodDate;
1344
1314
  updatedAt: z.ZodDate;
1345
1315
  deletedAt: z.ZodNullable<z.ZodDate>;
1346
- } & {
1347
1316
  name: z.ZodOptional<z.ZodString>;
1348
1317
  phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1349
1318
  address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1353,7 +1322,6 @@ export declare const contactContract: {
1353
1322
  createdAt: z.ZodDate;
1354
1323
  updatedAt: z.ZodDate;
1355
1324
  deletedAt: z.ZodNullable<z.ZodDate>;
1356
- } & {
1357
1325
  textValue: z.ZodNullable<z.ZodString>;
1358
1326
  booleanValue: z.ZodNullable<z.ZodBoolean>;
1359
1327
  numberValue: z.ZodNullable<z.ZodNumber>;
@@ -1363,7 +1331,6 @@ export declare const contactContract: {
1363
1331
  createdAt: z.ZodDate;
1364
1332
  updatedAt: z.ZodDate;
1365
1333
  deletedAt: z.ZodNullable<z.ZodDate>;
1366
- } & {
1367
1334
  systemName: z.ZodString;
1368
1335
  displayName: z.ZodString;
1369
1336
  type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
@@ -1373,11 +1340,10 @@ export declare const contactContract: {
1373
1340
  isRequired: z.ZodBoolean;
1374
1341
  isUnique: z.ZodBoolean;
1375
1342
  options: z.ZodArray<z.ZodObject<{
1376
- label: z.ZodString;
1343
+ position: z.ZodNumber;
1377
1344
  value: z.ZodString;
1345
+ label: z.ZodString;
1378
1346
  isDefault: z.ZodBoolean;
1379
- position: z.ZodNumber;
1380
- } & {
1381
1347
  id: z.ZodString;
1382
1348
  }, "strip", z.ZodTypeAny, {
1383
1349
  id: string;
@@ -1397,7 +1363,6 @@ export declare const contactContract: {
1397
1363
  createdAt: z.ZodDate;
1398
1364
  updatedAt: z.ZodDate;
1399
1365
  deletedAt: z.ZodNullable<z.ZodDate>;
1400
- } & {
1401
1366
  systemName: z.ZodString;
1402
1367
  displayName: z.ZodString;
1403
1368
  }, "strip", z.ZodTypeAny, {
@@ -1575,7 +1540,6 @@ export declare const contactContract: {
1575
1540
  createdAt: z.ZodDate;
1576
1541
  updatedAt: z.ZodDate;
1577
1542
  deletedAt: z.ZodNullable<z.ZodDate>;
1578
- } & {
1579
1543
  systemName: z.ZodString;
1580
1544
  displayName: z.ZodString;
1581
1545
  type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
@@ -1585,11 +1549,10 @@ export declare const contactContract: {
1585
1549
  isRequired: z.ZodBoolean;
1586
1550
  isUnique: z.ZodBoolean;
1587
1551
  options: z.ZodArray<z.ZodObject<{
1588
- label: z.ZodString;
1552
+ position: z.ZodNumber;
1589
1553
  value: z.ZodString;
1554
+ label: z.ZodString;
1590
1555
  isDefault: z.ZodBoolean;
1591
- position: z.ZodNumber;
1592
- } & {
1593
1556
  id: z.ZodString;
1594
1557
  }, "strip", z.ZodTypeAny, {
1595
1558
  id: string;
@@ -1609,7 +1572,6 @@ export declare const contactContract: {
1609
1572
  createdAt: z.ZodDate;
1610
1573
  updatedAt: z.ZodDate;
1611
1574
  deletedAt: z.ZodNullable<z.ZodDate>;
1612
- } & {
1613
1575
  systemName: z.ZodString;
1614
1576
  displayName: z.ZodString;
1615
1577
  }, "strip", z.ZodTypeAny, {
@@ -1659,7 +1621,6 @@ export declare const contactContract: {
1659
1621
  createdAt: z.ZodDate;
1660
1622
  updatedAt: z.ZodDate;
1661
1623
  deletedAt: z.ZodNullable<z.ZodDate>;
1662
- } & {
1663
1624
  bucketName: z.ZodString;
1664
1625
  fileName: z.ZodString;
1665
1626
  fileSize: z.ZodNumber;
@@ -2376,6 +2337,23 @@ export declare const contactContract: {
2376
2337
  error?: any;
2377
2338
  }>;
2378
2339
  };
2340
+ path: "ccs/api/v1/contact";
2341
+ headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
2342
+ 'x-tenant': z.ZodString;
2343
+ 'x-service-token': z.ZodString;
2344
+ 'x-code': z.ZodOptional<z.ZodString>;
2345
+ 'x-client-timezone': z.ZodDefault<z.ZodString>;
2346
+ }, "strip", z.ZodTypeAny, {
2347
+ 'x-tenant': string;
2348
+ 'x-service-token': string;
2349
+ 'x-client-timezone': string;
2350
+ 'x-code'?: string | undefined;
2351
+ }, {
2352
+ 'x-tenant': string;
2353
+ 'x-service-token': string;
2354
+ 'x-code'?: string | undefined;
2355
+ 'x-client-timezone'?: string | undefined;
2356
+ }>>>;
2379
2357
  };
2380
2358
  filterContacts: {
2381
2359
  summary: "Get all contacts by filtering with only keyword";
@@ -2391,41 +2369,23 @@ export declare const contactContract: {
2391
2369
  }, "strip", z.ZodTypeAny, {
2392
2370
  page?: number | undefined;
2393
2371
  pageSize?: number | undefined;
2394
- channelType?: string | undefined;
2395
2372
  keyword?: string | undefined;
2373
+ channelType?: string | undefined;
2396
2374
  channelIds?: string[] | undefined;
2397
2375
  withEmail?: boolean | undefined;
2398
2376
  relations?: ("company" | "platformContacts" | "contactEmails" | "contactPhones")[] | undefined;
2399
2377
  }, {
2400
2378
  page?: number | undefined;
2401
2379
  pageSize?: number | undefined;
2402
- channelType?: string | undefined;
2403
2380
  keyword?: string | undefined;
2381
+ channelType?: string | undefined;
2404
2382
  channelIds?: string[] | undefined;
2405
2383
  withEmail?: boolean | undefined;
2406
2384
  relations?: ("company" | "platformContacts" | "contactEmails" | "contactPhones")[] | undefined;
2407
2385
  }>;
2408
- path: "ccs/api/v1/contact/list";
2409
- headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
2410
- 'x-tenant': z.ZodString;
2411
- 'x-service-token': z.ZodString;
2412
- 'x-code': z.ZodOptional<z.ZodString>;
2413
- 'x-client-timezone': z.ZodDefault<z.ZodString>;
2414
- }, "strip", z.ZodTypeAny, {
2415
- 'x-tenant': string;
2416
- 'x-service-token': string;
2417
- 'x-client-timezone': string;
2418
- 'x-code'?: string | undefined;
2419
- }, {
2420
- 'x-tenant': string;
2421
- 'x-service-token': string;
2422
- 'x-code'?: string | undefined;
2423
- 'x-client-timezone'?: string | undefined;
2424
- }>>>;
2425
2386
  responses: {
2426
2387
  200: z.ZodObject<{
2427
2388
  requestId: z.ZodString;
2428
- } & {
2429
2389
  page: z.ZodNumber;
2430
2390
  pageSize: z.ZodNumber;
2431
2391
  total: z.ZodNumber;
@@ -2446,7 +2406,6 @@ export declare const contactContract: {
2446
2406
  createdAt: z.ZodDate;
2447
2407
  updatedAt: z.ZodDate;
2448
2408
  deletedAt: z.ZodNullable<z.ZodDate>;
2449
- } & {
2450
2409
  name: z.ZodString;
2451
2410
  }, "strip", z.ZodTypeAny, {
2452
2411
  name: string;
@@ -2466,7 +2425,6 @@ export declare const contactContract: {
2466
2425
  createdAt: z.ZodDate;
2467
2426
  updatedAt: z.ZodDate;
2468
2427
  deletedAt: z.ZodNullable<z.ZodDate>;
2469
- } & {
2470
2428
  name: z.ZodOptional<z.ZodString>;
2471
2429
  phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2472
2430
  address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -2476,7 +2434,6 @@ export declare const contactContract: {
2476
2434
  createdAt: z.ZodDate;
2477
2435
  updatedAt: z.ZodDate;
2478
2436
  deletedAt: z.ZodNullable<z.ZodDate>;
2479
- } & {
2480
2437
  textValue: z.ZodNullable<z.ZodString>;
2481
2438
  booleanValue: z.ZodNullable<z.ZodBoolean>;
2482
2439
  numberValue: z.ZodNullable<z.ZodNumber>;
@@ -2486,7 +2443,6 @@ export declare const contactContract: {
2486
2443
  createdAt: z.ZodDate;
2487
2444
  updatedAt: z.ZodDate;
2488
2445
  deletedAt: z.ZodNullable<z.ZodDate>;
2489
- } & {
2490
2446
  systemName: z.ZodString;
2491
2447
  displayName: z.ZodString;
2492
2448
  type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
@@ -2496,11 +2452,10 @@ export declare const contactContract: {
2496
2452
  isRequired: z.ZodBoolean;
2497
2453
  isUnique: z.ZodBoolean;
2498
2454
  options: z.ZodArray<z.ZodObject<{
2499
- label: z.ZodString;
2455
+ position: z.ZodNumber;
2500
2456
  value: z.ZodString;
2457
+ label: z.ZodString;
2501
2458
  isDefault: z.ZodBoolean;
2502
- position: z.ZodNumber;
2503
- } & {
2504
2459
  id: z.ZodString;
2505
2460
  }, "strip", z.ZodTypeAny, {
2506
2461
  id: string;
@@ -2520,7 +2475,6 @@ export declare const contactContract: {
2520
2475
  createdAt: z.ZodDate;
2521
2476
  updatedAt: z.ZodDate;
2522
2477
  deletedAt: z.ZodNullable<z.ZodDate>;
2523
- } & {
2524
2478
  systemName: z.ZodString;
2525
2479
  displayName: z.ZodString;
2526
2480
  }, "strip", z.ZodTypeAny, {
@@ -2698,7 +2652,6 @@ export declare const contactContract: {
2698
2652
  createdAt: z.ZodDate;
2699
2653
  updatedAt: z.ZodDate;
2700
2654
  deletedAt: z.ZodNullable<z.ZodDate>;
2701
- } & {
2702
2655
  systemName: z.ZodString;
2703
2656
  displayName: z.ZodString;
2704
2657
  type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
@@ -2708,11 +2661,10 @@ export declare const contactContract: {
2708
2661
  isRequired: z.ZodBoolean;
2709
2662
  isUnique: z.ZodBoolean;
2710
2663
  options: z.ZodArray<z.ZodObject<{
2711
- label: z.ZodString;
2664
+ position: z.ZodNumber;
2712
2665
  value: z.ZodString;
2666
+ label: z.ZodString;
2713
2667
  isDefault: z.ZodBoolean;
2714
- position: z.ZodNumber;
2715
- } & {
2716
2668
  id: z.ZodString;
2717
2669
  }, "strip", z.ZodTypeAny, {
2718
2670
  id: string;
@@ -2732,7 +2684,6 @@ export declare const contactContract: {
2732
2684
  createdAt: z.ZodDate;
2733
2685
  updatedAt: z.ZodDate;
2734
2686
  deletedAt: z.ZodNullable<z.ZodDate>;
2735
- } & {
2736
2687
  systemName: z.ZodString;
2737
2688
  displayName: z.ZodString;
2738
2689
  }, "strip", z.ZodTypeAny, {
@@ -2782,7 +2733,6 @@ export declare const contactContract: {
2782
2733
  createdAt: z.ZodDate;
2783
2734
  updatedAt: z.ZodDate;
2784
2735
  deletedAt: z.ZodNullable<z.ZodDate>;
2785
- } & {
2786
2736
  bucketName: z.ZodString;
2787
2737
  fileName: z.ZodString;
2788
2738
  fileSize: z.ZodNumber;
@@ -3499,6 +3449,23 @@ export declare const contactContract: {
3499
3449
  error?: any;
3500
3450
  }>;
3501
3451
  };
3452
+ path: "ccs/api/v1/contact/list";
3453
+ headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
3454
+ 'x-tenant': z.ZodString;
3455
+ 'x-service-token': z.ZodString;
3456
+ 'x-code': z.ZodOptional<z.ZodString>;
3457
+ 'x-client-timezone': z.ZodDefault<z.ZodString>;
3458
+ }, "strip", z.ZodTypeAny, {
3459
+ 'x-tenant': string;
3460
+ 'x-service-token': string;
3461
+ 'x-client-timezone': string;
3462
+ 'x-code'?: string | undefined;
3463
+ }, {
3464
+ 'x-tenant': string;
3465
+ 'x-service-token': string;
3466
+ 'x-code'?: string | undefined;
3467
+ 'x-client-timezone'?: string | undefined;
3468
+ }>>>;
3502
3469
  };
3503
3470
  update: {
3504
3471
  body: z.ZodObject<{
@@ -3553,60 +3520,60 @@ export declare const contactContract: {
3553
3520
  name?: {
3554
3521
  [x: string]: any;
3555
3522
  } | undefined;
3556
- channel?: {
3523
+ email?: {
3557
3524
  [x: string]: any;
3558
3525
  } | undefined;
3559
- address?: {
3526
+ channel?: {
3560
3527
  [x: string]: any;
3561
3528
  } | undefined;
3562
- email?: {
3529
+ address?: {
3563
3530
  [x: string]: any;
3564
3531
  } | undefined;
3565
3532
  phone?: {
3566
3533
  [x: string]: any;
3567
3534
  } | undefined;
3568
- customFields?: {
3569
- [x: string]: any;
3570
- }[] | undefined;
3571
- company?: {
3572
- [x: string]: any;
3573
- } | undefined;
3574
3535
  notes?: {
3575
3536
  [x: string]: any;
3576
3537
  } | undefined;
3577
3538
  tags?: {
3578
3539
  [x: string]: any;
3579
3540
  } | undefined;
3541
+ company?: {
3542
+ [x: string]: any;
3543
+ } | undefined;
3544
+ customFields?: {
3545
+ [x: string]: any;
3546
+ }[] | undefined;
3580
3547
  mailRoomId?: string | undefined;
3581
3548
  isTheMailRoomOwner?: boolean | undefined;
3582
3549
  }, {
3583
3550
  name?: {
3584
3551
  [x: string]: any;
3585
3552
  } | undefined;
3586
- channel?: {
3553
+ email?: {
3587
3554
  [x: string]: any;
3588
3555
  } | undefined;
3589
- address?: {
3556
+ channel?: {
3590
3557
  [x: string]: any;
3591
3558
  } | undefined;
3592
- email?: {
3559
+ address?: {
3593
3560
  [x: string]: any;
3594
3561
  } | undefined;
3595
3562
  phone?: {
3596
3563
  [x: string]: any;
3597
3564
  } | undefined;
3598
- customFields?: {
3599
- [x: string]: any;
3600
- }[] | undefined;
3601
- company?: {
3602
- [x: string]: any;
3603
- } | undefined;
3604
3565
  notes?: {
3605
3566
  [x: string]: any;
3606
3567
  } | undefined;
3607
3568
  tags?: {
3608
3569
  [x: string]: any;
3609
3570
  } | undefined;
3571
+ company?: {
3572
+ [x: string]: any;
3573
+ } | undefined;
3574
+ customFields?: {
3575
+ [x: string]: any;
3576
+ }[] | undefined;
3610
3577
  mailRoomId?: string | undefined;
3611
3578
  isTheMailRoomOwner?: boolean | undefined;
3612
3579
  }>;
@@ -3619,27 +3586,9 @@ export declare const contactContract: {
3619
3586
  }, {
3620
3587
  id: string;
3621
3588
  }>;
3622
- path: "ccs/api/v1/contact/:id";
3623
- headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
3624
- 'x-tenant': z.ZodString;
3625
- 'x-service-token': z.ZodString;
3626
- 'x-code': z.ZodOptional<z.ZodString>;
3627
- 'x-client-timezone': z.ZodDefault<z.ZodString>;
3628
- }, "strip", z.ZodTypeAny, {
3629
- 'x-tenant': string;
3630
- 'x-service-token': string;
3631
- 'x-client-timezone': string;
3632
- 'x-code'?: string | undefined;
3633
- }, {
3634
- 'x-tenant': string;
3635
- 'x-service-token': string;
3636
- 'x-code'?: string | undefined;
3637
- 'x-client-timezone'?: string | undefined;
3638
- }>>>;
3639
3589
  responses: {
3640
3590
  200: z.ZodObject<{
3641
3591
  requestId: z.ZodString;
3642
- } & {
3643
3592
  data: z.ZodObject<{
3644
3593
  id: z.ZodString;
3645
3594
  createdAt: z.ZodDate;
@@ -3656,7 +3605,6 @@ export declare const contactContract: {
3656
3605
  createdAt: z.ZodDate;
3657
3606
  updatedAt: z.ZodDate;
3658
3607
  deletedAt: z.ZodNullable<z.ZodDate>;
3659
- } & {
3660
3608
  name: z.ZodString;
3661
3609
  }, "strip", z.ZodTypeAny, {
3662
3610
  name: string;
@@ -3676,7 +3624,6 @@ export declare const contactContract: {
3676
3624
  createdAt: z.ZodDate;
3677
3625
  updatedAt: z.ZodDate;
3678
3626
  deletedAt: z.ZodNullable<z.ZodDate>;
3679
- } & {
3680
3627
  name: z.ZodOptional<z.ZodString>;
3681
3628
  phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3682
3629
  address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -3686,7 +3633,6 @@ export declare const contactContract: {
3686
3633
  createdAt: z.ZodDate;
3687
3634
  updatedAt: z.ZodDate;
3688
3635
  deletedAt: z.ZodNullable<z.ZodDate>;
3689
- } & {
3690
3636
  textValue: z.ZodNullable<z.ZodString>;
3691
3637
  booleanValue: z.ZodNullable<z.ZodBoolean>;
3692
3638
  numberValue: z.ZodNullable<z.ZodNumber>;
@@ -3696,7 +3642,6 @@ export declare const contactContract: {
3696
3642
  createdAt: z.ZodDate;
3697
3643
  updatedAt: z.ZodDate;
3698
3644
  deletedAt: z.ZodNullable<z.ZodDate>;
3699
- } & {
3700
3645
  systemName: z.ZodString;
3701
3646
  displayName: z.ZodString;
3702
3647
  type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
@@ -3706,11 +3651,10 @@ export declare const contactContract: {
3706
3651
  isRequired: z.ZodBoolean;
3707
3652
  isUnique: z.ZodBoolean;
3708
3653
  options: z.ZodArray<z.ZodObject<{
3709
- label: z.ZodString;
3654
+ position: z.ZodNumber;
3710
3655
  value: z.ZodString;
3656
+ label: z.ZodString;
3711
3657
  isDefault: z.ZodBoolean;
3712
- position: z.ZodNumber;
3713
- } & {
3714
3658
  id: z.ZodString;
3715
3659
  }, "strip", z.ZodTypeAny, {
3716
3660
  id: string;
@@ -3730,7 +3674,6 @@ export declare const contactContract: {
3730
3674
  createdAt: z.ZodDate;
3731
3675
  updatedAt: z.ZodDate;
3732
3676
  deletedAt: z.ZodNullable<z.ZodDate>;
3733
- } & {
3734
3677
  systemName: z.ZodString;
3735
3678
  displayName: z.ZodString;
3736
3679
  }, "strip", z.ZodTypeAny, {
@@ -3908,7 +3851,6 @@ export declare const contactContract: {
3908
3851
  createdAt: z.ZodDate;
3909
3852
  updatedAt: z.ZodDate;
3910
3853
  deletedAt: z.ZodNullable<z.ZodDate>;
3911
- } & {
3912
3854
  systemName: z.ZodString;
3913
3855
  displayName: z.ZodString;
3914
3856
  type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
@@ -3918,11 +3860,10 @@ export declare const contactContract: {
3918
3860
  isRequired: z.ZodBoolean;
3919
3861
  isUnique: z.ZodBoolean;
3920
3862
  options: z.ZodArray<z.ZodObject<{
3921
- label: z.ZodString;
3863
+ position: z.ZodNumber;
3922
3864
  value: z.ZodString;
3865
+ label: z.ZodString;
3923
3866
  isDefault: z.ZodBoolean;
3924
- position: z.ZodNumber;
3925
- } & {
3926
3867
  id: z.ZodString;
3927
3868
  }, "strip", z.ZodTypeAny, {
3928
3869
  id: string;
@@ -3942,7 +3883,6 @@ export declare const contactContract: {
3942
3883
  createdAt: z.ZodDate;
3943
3884
  updatedAt: z.ZodDate;
3944
3885
  deletedAt: z.ZodNullable<z.ZodDate>;
3945
- } & {
3946
3886
  systemName: z.ZodString;
3947
3887
  displayName: z.ZodString;
3948
3888
  }, "strip", z.ZodTypeAny, {
@@ -3992,7 +3932,6 @@ export declare const contactContract: {
3992
3932
  createdAt: z.ZodDate;
3993
3933
  updatedAt: z.ZodDate;
3994
3934
  deletedAt: z.ZodNullable<z.ZodDate>;
3995
- } & {
3996
3935
  bucketName: z.ZodString;
3997
3936
  fileName: z.ZodString;
3998
3937
  fileSize: z.ZodNumber;
@@ -4701,18 +4640,6 @@ export declare const contactContract: {
4701
4640
  error?: any;
4702
4641
  }>;
4703
4642
  };
4704
- };
4705
- delete: {
4706
- body: null;
4707
- summary: "Delete a contact";
4708
- method: "DELETE";
4709
- pathParams: z.ZodObject<{
4710
- id: z.ZodString;
4711
- }, "strip", z.ZodTypeAny, {
4712
- id: string;
4713
- }, {
4714
- id: string;
4715
- }>;
4716
4643
  path: "ccs/api/v1/contact/:id";
4717
4644
  headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
4718
4645
  'x-tenant': z.ZodString;
@@ -4730,10 +4657,21 @@ export declare const contactContract: {
4730
4657
  'x-code'?: string | undefined;
4731
4658
  'x-client-timezone'?: string | undefined;
4732
4659
  }>>>;
4660
+ };
4661
+ delete: {
4662
+ body: null;
4663
+ summary: "Delete a contact";
4664
+ method: "DELETE";
4665
+ pathParams: z.ZodObject<{
4666
+ id: z.ZodString;
4667
+ }, "strip", z.ZodTypeAny, {
4668
+ id: string;
4669
+ }, {
4670
+ id: string;
4671
+ }>;
4733
4672
  responses: {
4734
4673
  200: z.ZodObject<{
4735
4674
  requestId: z.ZodString;
4736
- } & {
4737
4675
  message: z.ZodString;
4738
4676
  }, "strip", z.ZodTypeAny, {
4739
4677
  message: string;
@@ -4794,18 +4732,7 @@ export declare const contactContract: {
4794
4732
  error?: any;
4795
4733
  }>;
4796
4734
  };
4797
- };
4798
- createContactByPhone: {
4799
- body: z.ZodObject<{
4800
- phoneNumber: z.ZodEffects<z.ZodString, string, string>;
4801
- }, "strip", z.ZodTypeAny, {
4802
- phoneNumber: string;
4803
- }, {
4804
- phoneNumber: string;
4805
- }>;
4806
- summary: "Create a new contact using phone number";
4807
- method: "POST";
4808
- path: "ccs/api/v1/contact/phone";
4735
+ path: "ccs/api/v1/contact/:id";
4809
4736
  headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
4810
4737
  'x-tenant': z.ZodString;
4811
4738
  'x-service-token': z.ZodString;
@@ -4822,10 +4749,20 @@ export declare const contactContract: {
4822
4749
  'x-code'?: string | undefined;
4823
4750
  'x-client-timezone'?: string | undefined;
4824
4751
  }>>>;
4752
+ };
4753
+ createContactByPhone: {
4754
+ body: z.ZodObject<{
4755
+ phoneNumber: z.ZodEffects<z.ZodString, string, string>;
4756
+ }, "strip", z.ZodTypeAny, {
4757
+ phoneNumber: string;
4758
+ }, {
4759
+ phoneNumber: string;
4760
+ }>;
4761
+ summary: "Create a new contact using phone number";
4762
+ method: "POST";
4825
4763
  responses: {
4826
4764
  201: z.ZodObject<{
4827
4765
  requestId: z.ZodString;
4828
- } & {
4829
4766
  data: z.ZodObject<{
4830
4767
  id: z.ZodString;
4831
4768
  createdAt: z.ZodDate;
@@ -4842,7 +4779,6 @@ export declare const contactContract: {
4842
4779
  createdAt: z.ZodDate;
4843
4780
  updatedAt: z.ZodDate;
4844
4781
  deletedAt: z.ZodNullable<z.ZodDate>;
4845
- } & {
4846
4782
  name: z.ZodString;
4847
4783
  }, "strip", z.ZodTypeAny, {
4848
4784
  name: string;
@@ -4862,7 +4798,6 @@ export declare const contactContract: {
4862
4798
  createdAt: z.ZodDate;
4863
4799
  updatedAt: z.ZodDate;
4864
4800
  deletedAt: z.ZodNullable<z.ZodDate>;
4865
- } & {
4866
4801
  name: z.ZodOptional<z.ZodString>;
4867
4802
  phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4868
4803
  address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -4872,7 +4807,6 @@ export declare const contactContract: {
4872
4807
  createdAt: z.ZodDate;
4873
4808
  updatedAt: z.ZodDate;
4874
4809
  deletedAt: z.ZodNullable<z.ZodDate>;
4875
- } & {
4876
4810
  textValue: z.ZodNullable<z.ZodString>;
4877
4811
  booleanValue: z.ZodNullable<z.ZodBoolean>;
4878
4812
  numberValue: z.ZodNullable<z.ZodNumber>;
@@ -4882,7 +4816,6 @@ export declare const contactContract: {
4882
4816
  createdAt: z.ZodDate;
4883
4817
  updatedAt: z.ZodDate;
4884
4818
  deletedAt: z.ZodNullable<z.ZodDate>;
4885
- } & {
4886
4819
  systemName: z.ZodString;
4887
4820
  displayName: z.ZodString;
4888
4821
  type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
@@ -4892,11 +4825,10 @@ export declare const contactContract: {
4892
4825
  isRequired: z.ZodBoolean;
4893
4826
  isUnique: z.ZodBoolean;
4894
4827
  options: z.ZodArray<z.ZodObject<{
4895
- label: z.ZodString;
4828
+ position: z.ZodNumber;
4896
4829
  value: z.ZodString;
4830
+ label: z.ZodString;
4897
4831
  isDefault: z.ZodBoolean;
4898
- position: z.ZodNumber;
4899
- } & {
4900
4832
  id: z.ZodString;
4901
4833
  }, "strip", z.ZodTypeAny, {
4902
4834
  id: string;
@@ -4916,7 +4848,6 @@ export declare const contactContract: {
4916
4848
  createdAt: z.ZodDate;
4917
4849
  updatedAt: z.ZodDate;
4918
4850
  deletedAt: z.ZodNullable<z.ZodDate>;
4919
- } & {
4920
4851
  systemName: z.ZodString;
4921
4852
  displayName: z.ZodString;
4922
4853
  }, "strip", z.ZodTypeAny, {
@@ -5094,7 +5025,6 @@ export declare const contactContract: {
5094
5025
  createdAt: z.ZodDate;
5095
5026
  updatedAt: z.ZodDate;
5096
5027
  deletedAt: z.ZodNullable<z.ZodDate>;
5097
- } & {
5098
5028
  systemName: z.ZodString;
5099
5029
  displayName: z.ZodString;
5100
5030
  type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
@@ -5104,11 +5034,10 @@ export declare const contactContract: {
5104
5034
  isRequired: z.ZodBoolean;
5105
5035
  isUnique: z.ZodBoolean;
5106
5036
  options: z.ZodArray<z.ZodObject<{
5107
- label: z.ZodString;
5037
+ position: z.ZodNumber;
5108
5038
  value: z.ZodString;
5039
+ label: z.ZodString;
5109
5040
  isDefault: z.ZodBoolean;
5110
- position: z.ZodNumber;
5111
- } & {
5112
5041
  id: z.ZodString;
5113
5042
  }, "strip", z.ZodTypeAny, {
5114
5043
  id: string;
@@ -5128,7 +5057,6 @@ export declare const contactContract: {
5128
5057
  createdAt: z.ZodDate;
5129
5058
  updatedAt: z.ZodDate;
5130
5059
  deletedAt: z.ZodNullable<z.ZodDate>;
5131
- } & {
5132
5060
  systemName: z.ZodString;
5133
5061
  displayName: z.ZodString;
5134
5062
  }, "strip", z.ZodTypeAny, {
@@ -5178,7 +5106,6 @@ export declare const contactContract: {
5178
5106
  createdAt: z.ZodDate;
5179
5107
  updatedAt: z.ZodDate;
5180
5108
  deletedAt: z.ZodNullable<z.ZodDate>;
5181
- } & {
5182
5109
  bucketName: z.ZodString;
5183
5110
  fileName: z.ZodString;
5184
5111
  fileSize: z.ZodNumber;
@@ -5887,6 +5814,23 @@ export declare const contactContract: {
5887
5814
  error?: any;
5888
5815
  }>;
5889
5816
  };
5817
+ path: "ccs/api/v1/contact/phone";
5818
+ headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
5819
+ 'x-tenant': z.ZodString;
5820
+ 'x-service-token': z.ZodString;
5821
+ 'x-code': z.ZodOptional<z.ZodString>;
5822
+ 'x-client-timezone': z.ZodDefault<z.ZodString>;
5823
+ }, "strip", z.ZodTypeAny, {
5824
+ 'x-tenant': string;
5825
+ 'x-service-token': string;
5826
+ 'x-client-timezone': string;
5827
+ 'x-code'?: string | undefined;
5828
+ }, {
5829
+ 'x-tenant': string;
5830
+ 'x-service-token': string;
5831
+ 'x-code'?: string | undefined;
5832
+ 'x-client-timezone'?: string | undefined;
5833
+ }>>>;
5890
5834
  };
5891
5835
  createContactPlatform: {
5892
5836
  body: z.ZodObject<{
@@ -5907,27 +5851,9 @@ export declare const contactContract: {
5907
5851
  }>;
5908
5852
  summary: "Create a new contact and platform contact for sms ";
5909
5853
  method: "POST";
5910
- path: "ccs/api/v1/contact/platform-contact";
5911
- headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
5912
- 'x-tenant': z.ZodString;
5913
- 'x-service-token': z.ZodString;
5914
- 'x-code': z.ZodOptional<z.ZodString>;
5915
- 'x-client-timezone': z.ZodDefault<z.ZodString>;
5916
- }, "strip", z.ZodTypeAny, {
5917
- 'x-tenant': string;
5918
- 'x-service-token': string;
5919
- 'x-client-timezone': string;
5920
- 'x-code'?: string | undefined;
5921
- }, {
5922
- 'x-tenant': string;
5923
- 'x-service-token': string;
5924
- 'x-code'?: string | undefined;
5925
- 'x-client-timezone'?: string | undefined;
5926
- }>>>;
5927
5854
  responses: {
5928
5855
  200: z.ZodObject<{
5929
5856
  requestId: z.ZodString;
5930
- } & {
5931
5857
  data: z.ZodObject<{
5932
5858
  id: z.ZodString;
5933
5859
  createdAt: z.ZodDate;
@@ -5944,7 +5870,6 @@ export declare const contactContract: {
5944
5870
  createdAt: z.ZodDate;
5945
5871
  updatedAt: z.ZodDate;
5946
5872
  deletedAt: z.ZodNullable<z.ZodDate>;
5947
- } & {
5948
5873
  name: z.ZodString;
5949
5874
  }, "strip", z.ZodTypeAny, {
5950
5875
  name: string;
@@ -5964,7 +5889,6 @@ export declare const contactContract: {
5964
5889
  createdAt: z.ZodDate;
5965
5890
  updatedAt: z.ZodDate;
5966
5891
  deletedAt: z.ZodNullable<z.ZodDate>;
5967
- } & {
5968
5892
  name: z.ZodOptional<z.ZodString>;
5969
5893
  phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5970
5894
  address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -5974,7 +5898,6 @@ export declare const contactContract: {
5974
5898
  createdAt: z.ZodDate;
5975
5899
  updatedAt: z.ZodDate;
5976
5900
  deletedAt: z.ZodNullable<z.ZodDate>;
5977
- } & {
5978
5901
  textValue: z.ZodNullable<z.ZodString>;
5979
5902
  booleanValue: z.ZodNullable<z.ZodBoolean>;
5980
5903
  numberValue: z.ZodNullable<z.ZodNumber>;
@@ -5984,7 +5907,6 @@ export declare const contactContract: {
5984
5907
  createdAt: z.ZodDate;
5985
5908
  updatedAt: z.ZodDate;
5986
5909
  deletedAt: z.ZodNullable<z.ZodDate>;
5987
- } & {
5988
5910
  systemName: z.ZodString;
5989
5911
  displayName: z.ZodString;
5990
5912
  type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
@@ -5994,11 +5916,10 @@ export declare const contactContract: {
5994
5916
  isRequired: z.ZodBoolean;
5995
5917
  isUnique: z.ZodBoolean;
5996
5918
  options: z.ZodArray<z.ZodObject<{
5997
- label: z.ZodString;
5919
+ position: z.ZodNumber;
5998
5920
  value: z.ZodString;
5921
+ label: z.ZodString;
5999
5922
  isDefault: z.ZodBoolean;
6000
- position: z.ZodNumber;
6001
- } & {
6002
5923
  id: z.ZodString;
6003
5924
  }, "strip", z.ZodTypeAny, {
6004
5925
  id: string;
@@ -6018,7 +5939,6 @@ export declare const contactContract: {
6018
5939
  createdAt: z.ZodDate;
6019
5940
  updatedAt: z.ZodDate;
6020
5941
  deletedAt: z.ZodNullable<z.ZodDate>;
6021
- } & {
6022
5942
  systemName: z.ZodString;
6023
5943
  displayName: z.ZodString;
6024
5944
  }, "strip", z.ZodTypeAny, {
@@ -6196,7 +6116,6 @@ export declare const contactContract: {
6196
6116
  createdAt: z.ZodDate;
6197
6117
  updatedAt: z.ZodDate;
6198
6118
  deletedAt: z.ZodNullable<z.ZodDate>;
6199
- } & {
6200
6119
  systemName: z.ZodString;
6201
6120
  displayName: z.ZodString;
6202
6121
  type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
@@ -6206,11 +6125,10 @@ export declare const contactContract: {
6206
6125
  isRequired: z.ZodBoolean;
6207
6126
  isUnique: z.ZodBoolean;
6208
6127
  options: z.ZodArray<z.ZodObject<{
6209
- label: z.ZodString;
6128
+ position: z.ZodNumber;
6210
6129
  value: z.ZodString;
6130
+ label: z.ZodString;
6211
6131
  isDefault: z.ZodBoolean;
6212
- position: z.ZodNumber;
6213
- } & {
6214
6132
  id: z.ZodString;
6215
6133
  }, "strip", z.ZodTypeAny, {
6216
6134
  id: string;
@@ -6230,7 +6148,6 @@ export declare const contactContract: {
6230
6148
  createdAt: z.ZodDate;
6231
6149
  updatedAt: z.ZodDate;
6232
6150
  deletedAt: z.ZodNullable<z.ZodDate>;
6233
- } & {
6234
6151
  systemName: z.ZodString;
6235
6152
  displayName: z.ZodString;
6236
6153
  }, "strip", z.ZodTypeAny, {
@@ -6280,7 +6197,6 @@ export declare const contactContract: {
6280
6197
  createdAt: z.ZodDate;
6281
6198
  updatedAt: z.ZodDate;
6282
6199
  deletedAt: z.ZodNullable<z.ZodDate>;
6283
- } & {
6284
6200
  bucketName: z.ZodString;
6285
6201
  fileName: z.ZodString;
6286
6202
  fileSize: z.ZodNumber;
@@ -6939,7 +6855,6 @@ export declare const contactContract: {
6939
6855
  }>;
6940
6856
  201: z.ZodObject<{
6941
6857
  requestId: z.ZodString;
6942
- } & {
6943
6858
  data: z.ZodObject<{
6944
6859
  id: z.ZodString;
6945
6860
  createdAt: z.ZodDate;
@@ -6956,7 +6871,6 @@ export declare const contactContract: {
6956
6871
  createdAt: z.ZodDate;
6957
6872
  updatedAt: z.ZodDate;
6958
6873
  deletedAt: z.ZodNullable<z.ZodDate>;
6959
- } & {
6960
6874
  name: z.ZodString;
6961
6875
  }, "strip", z.ZodTypeAny, {
6962
6876
  name: string;
@@ -6976,7 +6890,6 @@ export declare const contactContract: {
6976
6890
  createdAt: z.ZodDate;
6977
6891
  updatedAt: z.ZodDate;
6978
6892
  deletedAt: z.ZodNullable<z.ZodDate>;
6979
- } & {
6980
6893
  name: z.ZodOptional<z.ZodString>;
6981
6894
  phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6982
6895
  address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -6986,7 +6899,6 @@ export declare const contactContract: {
6986
6899
  createdAt: z.ZodDate;
6987
6900
  updatedAt: z.ZodDate;
6988
6901
  deletedAt: z.ZodNullable<z.ZodDate>;
6989
- } & {
6990
6902
  textValue: z.ZodNullable<z.ZodString>;
6991
6903
  booleanValue: z.ZodNullable<z.ZodBoolean>;
6992
6904
  numberValue: z.ZodNullable<z.ZodNumber>;
@@ -6996,7 +6908,6 @@ export declare const contactContract: {
6996
6908
  createdAt: z.ZodDate;
6997
6909
  updatedAt: z.ZodDate;
6998
6910
  deletedAt: z.ZodNullable<z.ZodDate>;
6999
- } & {
7000
6911
  systemName: z.ZodString;
7001
6912
  displayName: z.ZodString;
7002
6913
  type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
@@ -7006,11 +6917,10 @@ export declare const contactContract: {
7006
6917
  isRequired: z.ZodBoolean;
7007
6918
  isUnique: z.ZodBoolean;
7008
6919
  options: z.ZodArray<z.ZodObject<{
7009
- label: z.ZodString;
6920
+ position: z.ZodNumber;
7010
6921
  value: z.ZodString;
6922
+ label: z.ZodString;
7011
6923
  isDefault: z.ZodBoolean;
7012
- position: z.ZodNumber;
7013
- } & {
7014
6924
  id: z.ZodString;
7015
6925
  }, "strip", z.ZodTypeAny, {
7016
6926
  id: string;
@@ -7030,7 +6940,6 @@ export declare const contactContract: {
7030
6940
  createdAt: z.ZodDate;
7031
6941
  updatedAt: z.ZodDate;
7032
6942
  deletedAt: z.ZodNullable<z.ZodDate>;
7033
- } & {
7034
6943
  systemName: z.ZodString;
7035
6944
  displayName: z.ZodString;
7036
6945
  }, "strip", z.ZodTypeAny, {
@@ -7208,7 +7117,6 @@ export declare const contactContract: {
7208
7117
  createdAt: z.ZodDate;
7209
7118
  updatedAt: z.ZodDate;
7210
7119
  deletedAt: z.ZodNullable<z.ZodDate>;
7211
- } & {
7212
7120
  systemName: z.ZodString;
7213
7121
  displayName: z.ZodString;
7214
7122
  type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
@@ -7218,11 +7126,10 @@ export declare const contactContract: {
7218
7126
  isRequired: z.ZodBoolean;
7219
7127
  isUnique: z.ZodBoolean;
7220
7128
  options: z.ZodArray<z.ZodObject<{
7221
- label: z.ZodString;
7129
+ position: z.ZodNumber;
7222
7130
  value: z.ZodString;
7131
+ label: z.ZodString;
7223
7132
  isDefault: z.ZodBoolean;
7224
- position: z.ZodNumber;
7225
- } & {
7226
7133
  id: z.ZodString;
7227
7134
  }, "strip", z.ZodTypeAny, {
7228
7135
  id: string;
@@ -7242,7 +7149,6 @@ export declare const contactContract: {
7242
7149
  createdAt: z.ZodDate;
7243
7150
  updatedAt: z.ZodDate;
7244
7151
  deletedAt: z.ZodNullable<z.ZodDate>;
7245
- } & {
7246
7152
  systemName: z.ZodString;
7247
7153
  displayName: z.ZodString;
7248
7154
  }, "strip", z.ZodTypeAny, {
@@ -7292,7 +7198,6 @@ export declare const contactContract: {
7292
7198
  createdAt: z.ZodDate;
7293
7199
  updatedAt: z.ZodDate;
7294
7200
  deletedAt: z.ZodNullable<z.ZodDate>;
7295
- } & {
7296
7201
  bucketName: z.ZodString;
7297
7202
  fileName: z.ZodString;
7298
7203
  fileSize: z.ZodNumber;
@@ -8001,21 +7906,7 @@ export declare const contactContract: {
8001
7906
  error?: any;
8002
7907
  }>;
8003
7908
  };
8004
- };
8005
- updateFromOngoingCall: {
8006
- body: z.ZodObject<{
8007
- name: z.ZodOptional<z.ZodString>;
8008
- companyId: z.ZodOptional<z.ZodString>;
8009
- }, "strip", z.ZodTypeAny, {
8010
- name?: string | undefined;
8011
- companyId?: string | undefined;
8012
- }, {
8013
- name?: string | undefined;
8014
- companyId?: string | undefined;
8015
- }>;
8016
- summary: "Update a contact with name and company while making ongoing call";
8017
- method: "PATCH";
8018
- path: "ccs/api/v1/contact/:id/ongoing";
7909
+ path: "ccs/api/v1/contact/platform-contact";
8019
7910
  headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
8020
7911
  'x-tenant': z.ZodString;
8021
7912
  'x-service-token': z.ZodString;
@@ -8032,10 +7923,23 @@ export declare const contactContract: {
8032
7923
  'x-code'?: string | undefined;
8033
7924
  'x-client-timezone'?: string | undefined;
8034
7925
  }>>>;
7926
+ };
7927
+ updateFromOngoingCall: {
7928
+ body: z.ZodObject<{
7929
+ name: z.ZodOptional<z.ZodString>;
7930
+ companyId: z.ZodOptional<z.ZodString>;
7931
+ }, "strip", z.ZodTypeAny, {
7932
+ name?: string | undefined;
7933
+ companyId?: string | undefined;
7934
+ }, {
7935
+ name?: string | undefined;
7936
+ companyId?: string | undefined;
7937
+ }>;
7938
+ summary: "Update a contact with name and company while making ongoing call";
7939
+ method: "PATCH";
8035
7940
  responses: {
8036
7941
  201: z.ZodObject<{
8037
7942
  requestId: z.ZodString;
8038
- } & {
8039
7943
  data: z.ZodObject<{
8040
7944
  id: z.ZodString;
8041
7945
  createdAt: z.ZodDate;
@@ -8052,7 +7956,6 @@ export declare const contactContract: {
8052
7956
  createdAt: z.ZodDate;
8053
7957
  updatedAt: z.ZodDate;
8054
7958
  deletedAt: z.ZodNullable<z.ZodDate>;
8055
- } & {
8056
7959
  name: z.ZodString;
8057
7960
  }, "strip", z.ZodTypeAny, {
8058
7961
  name: string;
@@ -8072,7 +7975,6 @@ export declare const contactContract: {
8072
7975
  createdAt: z.ZodDate;
8073
7976
  updatedAt: z.ZodDate;
8074
7977
  deletedAt: z.ZodNullable<z.ZodDate>;
8075
- } & {
8076
7978
  name: z.ZodOptional<z.ZodString>;
8077
7979
  phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8078
7980
  address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -8082,7 +7984,6 @@ export declare const contactContract: {
8082
7984
  createdAt: z.ZodDate;
8083
7985
  updatedAt: z.ZodDate;
8084
7986
  deletedAt: z.ZodNullable<z.ZodDate>;
8085
- } & {
8086
7987
  textValue: z.ZodNullable<z.ZodString>;
8087
7988
  booleanValue: z.ZodNullable<z.ZodBoolean>;
8088
7989
  numberValue: z.ZodNullable<z.ZodNumber>;
@@ -8092,7 +7993,6 @@ export declare const contactContract: {
8092
7993
  createdAt: z.ZodDate;
8093
7994
  updatedAt: z.ZodDate;
8094
7995
  deletedAt: z.ZodNullable<z.ZodDate>;
8095
- } & {
8096
7996
  systemName: z.ZodString;
8097
7997
  displayName: z.ZodString;
8098
7998
  type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
@@ -8102,11 +8002,10 @@ export declare const contactContract: {
8102
8002
  isRequired: z.ZodBoolean;
8103
8003
  isUnique: z.ZodBoolean;
8104
8004
  options: z.ZodArray<z.ZodObject<{
8105
- label: z.ZodString;
8005
+ position: z.ZodNumber;
8106
8006
  value: z.ZodString;
8007
+ label: z.ZodString;
8107
8008
  isDefault: z.ZodBoolean;
8108
- position: z.ZodNumber;
8109
- } & {
8110
8009
  id: z.ZodString;
8111
8010
  }, "strip", z.ZodTypeAny, {
8112
8011
  id: string;
@@ -8126,7 +8025,6 @@ export declare const contactContract: {
8126
8025
  createdAt: z.ZodDate;
8127
8026
  updatedAt: z.ZodDate;
8128
8027
  deletedAt: z.ZodNullable<z.ZodDate>;
8129
- } & {
8130
8028
  systemName: z.ZodString;
8131
8029
  displayName: z.ZodString;
8132
8030
  }, "strip", z.ZodTypeAny, {
@@ -8304,7 +8202,6 @@ export declare const contactContract: {
8304
8202
  createdAt: z.ZodDate;
8305
8203
  updatedAt: z.ZodDate;
8306
8204
  deletedAt: z.ZodNullable<z.ZodDate>;
8307
- } & {
8308
8205
  systemName: z.ZodString;
8309
8206
  displayName: z.ZodString;
8310
8207
  type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
@@ -8314,11 +8211,10 @@ export declare const contactContract: {
8314
8211
  isRequired: z.ZodBoolean;
8315
8212
  isUnique: z.ZodBoolean;
8316
8213
  options: z.ZodArray<z.ZodObject<{
8317
- label: z.ZodString;
8214
+ position: z.ZodNumber;
8318
8215
  value: z.ZodString;
8216
+ label: z.ZodString;
8319
8217
  isDefault: z.ZodBoolean;
8320
- position: z.ZodNumber;
8321
- } & {
8322
8218
  id: z.ZodString;
8323
8219
  }, "strip", z.ZodTypeAny, {
8324
8220
  id: string;
@@ -8338,7 +8234,6 @@ export declare const contactContract: {
8338
8234
  createdAt: z.ZodDate;
8339
8235
  updatedAt: z.ZodDate;
8340
8236
  deletedAt: z.ZodNullable<z.ZodDate>;
8341
- } & {
8342
8237
  systemName: z.ZodString;
8343
8238
  displayName: z.ZodString;
8344
8239
  }, "strip", z.ZodTypeAny, {
@@ -8388,7 +8283,6 @@ export declare const contactContract: {
8388
8283
  createdAt: z.ZodDate;
8389
8284
  updatedAt: z.ZodDate;
8390
8285
  deletedAt: z.ZodNullable<z.ZodDate>;
8391
- } & {
8392
8286
  bucketName: z.ZodString;
8393
8287
  fileName: z.ZodString;
8394
8288
  fileSize: z.ZodNumber;
@@ -9097,6 +8991,23 @@ export declare const contactContract: {
9097
8991
  error?: any;
9098
8992
  }>;
9099
8993
  };
8994
+ path: "ccs/api/v1/contact/:id/ongoing";
8995
+ headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
8996
+ 'x-tenant': z.ZodString;
8997
+ 'x-service-token': z.ZodString;
8998
+ 'x-code': z.ZodOptional<z.ZodString>;
8999
+ 'x-client-timezone': z.ZodDefault<z.ZodString>;
9000
+ }, "strip", z.ZodTypeAny, {
9001
+ 'x-tenant': string;
9002
+ 'x-service-token': string;
9003
+ 'x-client-timezone': string;
9004
+ 'x-code'?: string | undefined;
9005
+ }, {
9006
+ 'x-tenant': string;
9007
+ 'x-service-token': string;
9008
+ 'x-code'?: string | undefined;
9009
+ 'x-client-timezone'?: string | undefined;
9010
+ }>>>;
9100
9011
  };
9101
9012
  merge: {
9102
9013
  body: z.ZodObject<{
@@ -9173,27 +9084,9 @@ export declare const contactContract: {
9173
9084
  }>;
9174
9085
  summary: "Merge contacts into a single contact.";
9175
9086
  method: "POST";
9176
- path: "ccs/api/v1/contact/merge";
9177
- headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
9178
- 'x-tenant': z.ZodString;
9179
- 'x-service-token': z.ZodString;
9180
- 'x-code': z.ZodOptional<z.ZodString>;
9181
- 'x-client-timezone': z.ZodDefault<z.ZodString>;
9182
- }, "strip", z.ZodTypeAny, {
9183
- 'x-tenant': string;
9184
- 'x-service-token': string;
9185
- 'x-client-timezone': string;
9186
- 'x-code'?: string | undefined;
9187
- }, {
9188
- 'x-tenant': string;
9189
- 'x-service-token': string;
9190
- 'x-code'?: string | undefined;
9191
- 'x-client-timezone'?: string | undefined;
9192
- }>>>;
9193
9087
  responses: {
9194
9088
  200: z.ZodObject<{
9195
9089
  requestId: z.ZodString;
9196
- } & {
9197
9090
  data: z.ZodObject<{
9198
9091
  id: z.ZodString;
9199
9092
  createdAt: z.ZodDate;
@@ -9210,7 +9103,6 @@ export declare const contactContract: {
9210
9103
  createdAt: z.ZodDate;
9211
9104
  updatedAt: z.ZodDate;
9212
9105
  deletedAt: z.ZodNullable<z.ZodDate>;
9213
- } & {
9214
9106
  name: z.ZodString;
9215
9107
  }, "strip", z.ZodTypeAny, {
9216
9108
  name: string;
@@ -9230,7 +9122,6 @@ export declare const contactContract: {
9230
9122
  createdAt: z.ZodDate;
9231
9123
  updatedAt: z.ZodDate;
9232
9124
  deletedAt: z.ZodNullable<z.ZodDate>;
9233
- } & {
9234
9125
  name: z.ZodOptional<z.ZodString>;
9235
9126
  phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9236
9127
  address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -9240,7 +9131,6 @@ export declare const contactContract: {
9240
9131
  createdAt: z.ZodDate;
9241
9132
  updatedAt: z.ZodDate;
9242
9133
  deletedAt: z.ZodNullable<z.ZodDate>;
9243
- } & {
9244
9134
  textValue: z.ZodNullable<z.ZodString>;
9245
9135
  booleanValue: z.ZodNullable<z.ZodBoolean>;
9246
9136
  numberValue: z.ZodNullable<z.ZodNumber>;
@@ -9250,7 +9140,6 @@ export declare const contactContract: {
9250
9140
  createdAt: z.ZodDate;
9251
9141
  updatedAt: z.ZodDate;
9252
9142
  deletedAt: z.ZodNullable<z.ZodDate>;
9253
- } & {
9254
9143
  systemName: z.ZodString;
9255
9144
  displayName: z.ZodString;
9256
9145
  type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
@@ -9260,11 +9149,10 @@ export declare const contactContract: {
9260
9149
  isRequired: z.ZodBoolean;
9261
9150
  isUnique: z.ZodBoolean;
9262
9151
  options: z.ZodArray<z.ZodObject<{
9263
- label: z.ZodString;
9152
+ position: z.ZodNumber;
9264
9153
  value: z.ZodString;
9154
+ label: z.ZodString;
9265
9155
  isDefault: z.ZodBoolean;
9266
- position: z.ZodNumber;
9267
- } & {
9268
9156
  id: z.ZodString;
9269
9157
  }, "strip", z.ZodTypeAny, {
9270
9158
  id: string;
@@ -9284,7 +9172,6 @@ export declare const contactContract: {
9284
9172
  createdAt: z.ZodDate;
9285
9173
  updatedAt: z.ZodDate;
9286
9174
  deletedAt: z.ZodNullable<z.ZodDate>;
9287
- } & {
9288
9175
  systemName: z.ZodString;
9289
9176
  displayName: z.ZodString;
9290
9177
  }, "strip", z.ZodTypeAny, {
@@ -9462,7 +9349,6 @@ export declare const contactContract: {
9462
9349
  createdAt: z.ZodDate;
9463
9350
  updatedAt: z.ZodDate;
9464
9351
  deletedAt: z.ZodNullable<z.ZodDate>;
9465
- } & {
9466
9352
  systemName: z.ZodString;
9467
9353
  displayName: z.ZodString;
9468
9354
  type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
@@ -9472,11 +9358,10 @@ export declare const contactContract: {
9472
9358
  isRequired: z.ZodBoolean;
9473
9359
  isUnique: z.ZodBoolean;
9474
9360
  options: z.ZodArray<z.ZodObject<{
9475
- label: z.ZodString;
9361
+ position: z.ZodNumber;
9476
9362
  value: z.ZodString;
9363
+ label: z.ZodString;
9477
9364
  isDefault: z.ZodBoolean;
9478
- position: z.ZodNumber;
9479
- } & {
9480
9365
  id: z.ZodString;
9481
9366
  }, "strip", z.ZodTypeAny, {
9482
9367
  id: string;
@@ -9496,7 +9381,6 @@ export declare const contactContract: {
9496
9381
  createdAt: z.ZodDate;
9497
9382
  updatedAt: z.ZodDate;
9498
9383
  deletedAt: z.ZodNullable<z.ZodDate>;
9499
- } & {
9500
9384
  systemName: z.ZodString;
9501
9385
  displayName: z.ZodString;
9502
9386
  }, "strip", z.ZodTypeAny, {
@@ -9546,7 +9430,6 @@ export declare const contactContract: {
9546
9430
  createdAt: z.ZodDate;
9547
9431
  updatedAt: z.ZodDate;
9548
9432
  deletedAt: z.ZodNullable<z.ZodDate>;
9549
- } & {
9550
9433
  bucketName: z.ZodString;
9551
9434
  fileName: z.ZodString;
9552
9435
  fileSize: z.ZodNumber;
@@ -10255,21 +10138,7 @@ export declare const contactContract: {
10255
10138
  error?: any;
10256
10139
  }>;
10257
10140
  };
10258
- };
10259
- checkContactPhone: {
10260
- body: z.ZodObject<{
10261
- contactId: z.ZodOptional<z.ZodString>;
10262
- phoneNumber: z.ZodString;
10263
- }, "strip", z.ZodTypeAny, {
10264
- phoneNumber: string;
10265
- contactId?: string | undefined;
10266
- }, {
10267
- phoneNumber: string;
10268
- contactId?: string | undefined;
10269
- }>;
10270
- summary: "Check whether a contact owns a phone number";
10271
- method: "POST";
10272
- path: "ccs/api/v1/contact/check/phone";
10141
+ path: "ccs/api/v1/contact/merge";
10273
10142
  headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
10274
10143
  'x-tenant': z.ZodString;
10275
10144
  'x-service-token': z.ZodString;
@@ -10286,10 +10155,23 @@ export declare const contactContract: {
10286
10155
  'x-code'?: string | undefined;
10287
10156
  'x-client-timezone'?: string | undefined;
10288
10157
  }>>>;
10158
+ };
10159
+ checkContactPhone: {
10160
+ body: z.ZodObject<{
10161
+ contactId: z.ZodOptional<z.ZodString>;
10162
+ phoneNumber: z.ZodString;
10163
+ }, "strip", z.ZodTypeAny, {
10164
+ phoneNumber: string;
10165
+ contactId?: string | undefined;
10166
+ }, {
10167
+ phoneNumber: string;
10168
+ contactId?: string | undefined;
10169
+ }>;
10170
+ summary: "Check whether a contact owns a phone number";
10171
+ method: "POST";
10289
10172
  responses: {
10290
10173
  200: z.ZodObject<{
10291
10174
  requestId: z.ZodString;
10292
- } & {
10293
10175
  existed: z.ZodBoolean;
10294
10176
  }, "strip", z.ZodTypeAny, {
10295
10177
  requestId: string;
@@ -10350,21 +10232,7 @@ export declare const contactContract: {
10350
10232
  error?: any;
10351
10233
  }>;
10352
10234
  };
10353
- };
10354
- checkContactEmail: {
10355
- body: z.ZodObject<{
10356
- contactId: z.ZodOptional<z.ZodString>;
10357
- email: z.ZodString;
10358
- }, "strip", z.ZodTypeAny, {
10359
- email: string;
10360
- contactId?: string | undefined;
10361
- }, {
10362
- email: string;
10363
- contactId?: string | undefined;
10364
- }>;
10365
- summary: "Check whether a contact owns a email";
10366
- method: "POST";
10367
- path: "ccs/api/v1/contact/check/email";
10235
+ path: "ccs/api/v1/contact/check/phone";
10368
10236
  headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
10369
10237
  'x-tenant': z.ZodString;
10370
10238
  'x-service-token': z.ZodString;
@@ -10381,10 +10249,23 @@ export declare const contactContract: {
10381
10249
  'x-code'?: string | undefined;
10382
10250
  'x-client-timezone'?: string | undefined;
10383
10251
  }>>>;
10252
+ };
10253
+ checkContactEmail: {
10254
+ body: z.ZodObject<{
10255
+ contactId: z.ZodOptional<z.ZodString>;
10256
+ email: z.ZodString;
10257
+ }, "strip", z.ZodTypeAny, {
10258
+ email: string;
10259
+ contactId?: string | undefined;
10260
+ }, {
10261
+ email: string;
10262
+ contactId?: string | undefined;
10263
+ }>;
10264
+ summary: "Check whether a contact owns a email";
10265
+ method: "POST";
10384
10266
  responses: {
10385
10267
  200: z.ZodObject<{
10386
10268
  requestId: z.ZodString;
10387
- } & {
10388
10269
  existed: z.ZodBoolean;
10389
10270
  }, "strip", z.ZodTypeAny, {
10390
10271
  requestId: string;
@@ -10445,6 +10326,23 @@ export declare const contactContract: {
10445
10326
  error?: any;
10446
10327
  }>;
10447
10328
  };
10329
+ path: "ccs/api/v1/contact/check/email";
10330
+ headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
10331
+ 'x-tenant': z.ZodString;
10332
+ 'x-service-token': z.ZodString;
10333
+ 'x-code': z.ZodOptional<z.ZodString>;
10334
+ 'x-client-timezone': z.ZodDefault<z.ZodString>;
10335
+ }, "strip", z.ZodTypeAny, {
10336
+ 'x-tenant': string;
10337
+ 'x-service-token': string;
10338
+ 'x-client-timezone': string;
10339
+ 'x-code'?: string | undefined;
10340
+ }, {
10341
+ 'x-tenant': string;
10342
+ 'x-service-token': string;
10343
+ 'x-code'?: string | undefined;
10344
+ 'x-client-timezone'?: string | undefined;
10345
+ }>>>;
10448
10346
  };
10449
10347
  createContactAttachmentRecords: {
10450
10348
  body: z.ZodObject<{
@@ -10492,27 +10390,9 @@ export declare const contactContract: {
10492
10390
  }>;
10493
10391
  summary: "Create a new contact attachment";
10494
10392
  method: "POST";
10495
- path: "ccs/api/v1/contact/attachments";
10496
- headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
10497
- 'x-tenant': z.ZodString;
10498
- 'x-service-token': z.ZodString;
10499
- 'x-code': z.ZodOptional<z.ZodString>;
10500
- 'x-client-timezone': z.ZodDefault<z.ZodString>;
10501
- }, "strip", z.ZodTypeAny, {
10502
- 'x-tenant': string;
10503
- 'x-service-token': string;
10504
- 'x-client-timezone': string;
10505
- 'x-code'?: string | undefined;
10506
- }, {
10507
- 'x-tenant': string;
10508
- 'x-service-token': string;
10509
- 'x-code'?: string | undefined;
10510
- 'x-client-timezone'?: string | undefined;
10511
- }>>>;
10512
10393
  responses: {
10513
10394
  201: z.ZodObject<{
10514
10395
  requestId: z.ZodString;
10515
- } & {
10516
10396
  message: z.ZodObject<{
10517
10397
  id: z.ZodString;
10518
10398
  createdAt: z.ZodDate;
@@ -10527,7 +10407,6 @@ export declare const contactContract: {
10527
10407
  createdAt: z.ZodDate;
10528
10408
  updatedAt: z.ZodDate;
10529
10409
  deletedAt: z.ZodNullable<z.ZodDate>;
10530
- } & {
10531
10410
  systemName: z.ZodString;
10532
10411
  displayName: z.ZodString;
10533
10412
  type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
@@ -10537,11 +10416,10 @@ export declare const contactContract: {
10537
10416
  isRequired: z.ZodBoolean;
10538
10417
  isUnique: z.ZodBoolean;
10539
10418
  options: z.ZodArray<z.ZodObject<{
10540
- label: z.ZodString;
10419
+ position: z.ZodNumber;
10541
10420
  value: z.ZodString;
10421
+ label: z.ZodString;
10542
10422
  isDefault: z.ZodBoolean;
10543
- position: z.ZodNumber;
10544
- } & {
10545
10423
  id: z.ZodString;
10546
10424
  }, "strip", z.ZodTypeAny, {
10547
10425
  id: string;
@@ -10561,7 +10439,6 @@ export declare const contactContract: {
10561
10439
  createdAt: z.ZodDate;
10562
10440
  updatedAt: z.ZodDate;
10563
10441
  deletedAt: z.ZodNullable<z.ZodDate>;
10564
- } & {
10565
10442
  systemName: z.ZodString;
10566
10443
  displayName: z.ZodString;
10567
10444
  }, "strip", z.ZodTypeAny, {
@@ -10611,7 +10488,6 @@ export declare const contactContract: {
10611
10488
  createdAt: z.ZodDate;
10612
10489
  updatedAt: z.ZodDate;
10613
10490
  deletedAt: z.ZodNullable<z.ZodDate>;
10614
- } & {
10615
10491
  bucketName: z.ZodString;
10616
10492
  fileName: z.ZodString;
10617
10493
  fileSize: z.ZodNumber;
@@ -10841,18 +10717,7 @@ export declare const contactContract: {
10841
10717
  error?: any;
10842
10718
  }>;
10843
10719
  };
10844
- };
10845
- getById: {
10846
- summary: "Get a contact by id";
10847
- method: "GET";
10848
- pathParams: z.ZodObject<{
10849
- id: z.ZodString;
10850
- }, "strip", z.ZodTypeAny, {
10851
- id: string;
10852
- }, {
10853
- id: string;
10854
- }>;
10855
- path: "ccs/api/v1/contact/:id";
10720
+ path: "ccs/api/v1/contact/attachments";
10856
10721
  headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
10857
10722
  'x-tenant': z.ZodString;
10858
10723
  'x-service-token': z.ZodString;
@@ -10869,10 +10734,20 @@ export declare const contactContract: {
10869
10734
  'x-code'?: string | undefined;
10870
10735
  'x-client-timezone'?: string | undefined;
10871
10736
  }>>>;
10737
+ };
10738
+ getById: {
10739
+ summary: "Get a contact by id";
10740
+ method: "GET";
10741
+ pathParams: z.ZodObject<{
10742
+ id: z.ZodString;
10743
+ }, "strip", z.ZodTypeAny, {
10744
+ id: string;
10745
+ }, {
10746
+ id: string;
10747
+ }>;
10872
10748
  responses: {
10873
10749
  200: z.ZodObject<{
10874
10750
  requestId: z.ZodString;
10875
- } & {
10876
10751
  data: z.ZodObject<{
10877
10752
  id: z.ZodString;
10878
10753
  createdAt: z.ZodDate;
@@ -10889,7 +10764,6 @@ export declare const contactContract: {
10889
10764
  createdAt: z.ZodDate;
10890
10765
  updatedAt: z.ZodDate;
10891
10766
  deletedAt: z.ZodNullable<z.ZodDate>;
10892
- } & {
10893
10767
  name: z.ZodString;
10894
10768
  }, "strip", z.ZodTypeAny, {
10895
10769
  name: string;
@@ -10909,7 +10783,6 @@ export declare const contactContract: {
10909
10783
  createdAt: z.ZodDate;
10910
10784
  updatedAt: z.ZodDate;
10911
10785
  deletedAt: z.ZodNullable<z.ZodDate>;
10912
- } & {
10913
10786
  name: z.ZodOptional<z.ZodString>;
10914
10787
  phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10915
10788
  address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -10919,7 +10792,6 @@ export declare const contactContract: {
10919
10792
  createdAt: z.ZodDate;
10920
10793
  updatedAt: z.ZodDate;
10921
10794
  deletedAt: z.ZodNullable<z.ZodDate>;
10922
- } & {
10923
10795
  textValue: z.ZodNullable<z.ZodString>;
10924
10796
  booleanValue: z.ZodNullable<z.ZodBoolean>;
10925
10797
  numberValue: z.ZodNullable<z.ZodNumber>;
@@ -10929,7 +10801,6 @@ export declare const contactContract: {
10929
10801
  createdAt: z.ZodDate;
10930
10802
  updatedAt: z.ZodDate;
10931
10803
  deletedAt: z.ZodNullable<z.ZodDate>;
10932
- } & {
10933
10804
  systemName: z.ZodString;
10934
10805
  displayName: z.ZodString;
10935
10806
  type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
@@ -10939,11 +10810,10 @@ export declare const contactContract: {
10939
10810
  isRequired: z.ZodBoolean;
10940
10811
  isUnique: z.ZodBoolean;
10941
10812
  options: z.ZodArray<z.ZodObject<{
10942
- label: z.ZodString;
10813
+ position: z.ZodNumber;
10943
10814
  value: z.ZodString;
10815
+ label: z.ZodString;
10944
10816
  isDefault: z.ZodBoolean;
10945
- position: z.ZodNumber;
10946
- } & {
10947
10817
  id: z.ZodString;
10948
10818
  }, "strip", z.ZodTypeAny, {
10949
10819
  id: string;
@@ -10963,7 +10833,6 @@ export declare const contactContract: {
10963
10833
  createdAt: z.ZodDate;
10964
10834
  updatedAt: z.ZodDate;
10965
10835
  deletedAt: z.ZodNullable<z.ZodDate>;
10966
- } & {
10967
10836
  systemName: z.ZodString;
10968
10837
  displayName: z.ZodString;
10969
10838
  }, "strip", z.ZodTypeAny, {
@@ -11141,7 +11010,6 @@ export declare const contactContract: {
11141
11010
  createdAt: z.ZodDate;
11142
11011
  updatedAt: z.ZodDate;
11143
11012
  deletedAt: z.ZodNullable<z.ZodDate>;
11144
- } & {
11145
11013
  systemName: z.ZodString;
11146
11014
  displayName: z.ZodString;
11147
11015
  type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
@@ -11151,11 +11019,10 @@ export declare const contactContract: {
11151
11019
  isRequired: z.ZodBoolean;
11152
11020
  isUnique: z.ZodBoolean;
11153
11021
  options: z.ZodArray<z.ZodObject<{
11154
- label: z.ZodString;
11022
+ position: z.ZodNumber;
11155
11023
  value: z.ZodString;
11024
+ label: z.ZodString;
11156
11025
  isDefault: z.ZodBoolean;
11157
- position: z.ZodNumber;
11158
- } & {
11159
11026
  id: z.ZodString;
11160
11027
  }, "strip", z.ZodTypeAny, {
11161
11028
  id: string;
@@ -11175,7 +11042,6 @@ export declare const contactContract: {
11175
11042
  createdAt: z.ZodDate;
11176
11043
  updatedAt: z.ZodDate;
11177
11044
  deletedAt: z.ZodNullable<z.ZodDate>;
11178
- } & {
11179
11045
  systemName: z.ZodString;
11180
11046
  displayName: z.ZodString;
11181
11047
  }, "strip", z.ZodTypeAny, {
@@ -11225,7 +11091,6 @@ export declare const contactContract: {
11225
11091
  createdAt: z.ZodDate;
11226
11092
  updatedAt: z.ZodDate;
11227
11093
  deletedAt: z.ZodNullable<z.ZodDate>;
11228
- } & {
11229
11094
  bucketName: z.ZodString;
11230
11095
  fileName: z.ZodString;
11231
11096
  fileSize: z.ZodNumber;
@@ -11934,36 +11799,52 @@ export declare const contactContract: {
11934
11799
  error?: any;
11935
11800
  }>;
11936
11801
  };
11802
+ path: "ccs/api/v1/contact/:id";
11803
+ headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
11804
+ 'x-tenant': z.ZodString;
11805
+ 'x-service-token': z.ZodString;
11806
+ 'x-code': z.ZodOptional<z.ZodString>;
11807
+ 'x-client-timezone': z.ZodDefault<z.ZodString>;
11808
+ }, "strip", z.ZodTypeAny, {
11809
+ 'x-tenant': string;
11810
+ 'x-service-token': string;
11811
+ 'x-client-timezone': string;
11812
+ 'x-code'?: string | undefined;
11813
+ }, {
11814
+ 'x-tenant': string;
11815
+ 'x-service-token': string;
11816
+ 'x-code'?: string | undefined;
11817
+ 'x-client-timezone'?: string | undefined;
11818
+ }>>>;
11937
11819
  };
11938
11820
  getExportContacts: {
11939
11821
  method: "GET";
11940
11822
  query: z.ZodObject<{
11941
- page: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
11942
- pageSize: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
11943
- keyword: z.ZodOptional<z.ZodOptional<z.ZodString>>;
11944
- company: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
11945
11823
  name: z.ZodOptional<z.ZodString>;
11946
- address: z.ZodOptional<z.ZodString>;
11947
11824
  channel: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
11948
- selectedDate: z.ZodOptional<z.ZodString>;
11825
+ address: z.ZodOptional<z.ZodString>;
11826
+ page: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
11827
+ email: z.ZodOptional<z.ZodString>;
11828
+ pageSize: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
11829
+ phone: z.ZodOptional<z.ZodString>;
11949
11830
  customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
11950
11831
  attributeId: z.ZodString;
11951
11832
  type: z.ZodString;
11952
11833
  value: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
11953
11834
  }, "strip", z.ZodTypeAny, {
11954
11835
  type: string;
11955
- value: string | string[];
11836
+ value: (string | string[]) & (string | string[] | undefined);
11956
11837
  attributeId: string;
11957
11838
  }, {
11958
11839
  type: string;
11959
- value: string | string[];
11840
+ value: (string | string[]) & (string | string[] | undefined);
11960
11841
  attributeId: string;
11961
11842
  }>, "many">>;
11962
- tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
11963
- phone: z.ZodOptional<z.ZodString>;
11964
- email: z.ZodOptional<z.ZodString>;
11843
+ company: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
11965
11844
  notes: z.ZodOptional<z.ZodString>;
11966
- } & {
11845
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
11846
+ keyword: z.ZodOptional<z.ZodOptional<z.ZodString>>;
11847
+ selectedDate: z.ZodOptional<z.ZodString>;
11967
11848
  fileExtension: z.ZodOptional<z.ZodDefault<z.ZodUnion<[z.ZodLiteral<"csv">, z.ZodLiteral<"xlsx">]>>>;
11968
11849
  }, "strip", z.ZodTypeAny, {
11969
11850
  name?: string | undefined;
@@ -11975,7 +11856,7 @@ export declare const contactContract: {
11975
11856
  phone?: string | undefined;
11976
11857
  customFields?: {
11977
11858
  type: string;
11978
- value: string | string[];
11859
+ value: (string | string[]) & (string | string[] | undefined);
11979
11860
  attributeId: string;
11980
11861
  }[] | undefined;
11981
11862
  company?: string[] | undefined;
@@ -11994,7 +11875,7 @@ export declare const contactContract: {
11994
11875
  phone?: string | undefined;
11995
11876
  customFields?: {
11996
11877
  type: string;
11997
- value: string | string[];
11878
+ value: (string | string[]) & (string | string[] | undefined);
11998
11879
  attributeId: string;
11999
11880
  }[] | undefined;
12000
11881
  company?: string[] | undefined;
@@ -12004,23 +11885,6 @@ export declare const contactContract: {
12004
11885
  selectedDate?: string | undefined;
12005
11886
  fileExtension?: "csv" | "xlsx" | undefined;
12006
11887
  }>;
12007
- path: "cs/contact/export";
12008
- headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
12009
- 'x-tenant': z.ZodString;
12010
- 'x-service-token': z.ZodString;
12011
- 'x-code': z.ZodOptional<z.ZodString>;
12012
- 'x-client-timezone': z.ZodDefault<z.ZodString>;
12013
- }, "strip", z.ZodTypeAny, {
12014
- 'x-tenant': string;
12015
- 'x-service-token': string;
12016
- 'x-client-timezone': string;
12017
- 'x-code'?: string | undefined;
12018
- }, {
12019
- 'x-tenant': string;
12020
- 'x-service-token': string;
12021
- 'x-code'?: string | undefined;
12022
- 'x-client-timezone'?: string | undefined;
12023
- }>>>;
12024
11888
  responses: {
12025
11889
  200: null;
12026
11890
  400: z.ZodObject<{
@@ -12051,6 +11915,23 @@ export declare const contactContract: {
12051
11915
  error?: any;
12052
11916
  }>;
12053
11917
  };
11918
+ path: "cs/contact/export";
11919
+ headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
11920
+ 'x-tenant': z.ZodString;
11921
+ 'x-service-token': z.ZodString;
11922
+ 'x-code': z.ZodOptional<z.ZodString>;
11923
+ 'x-client-timezone': z.ZodDefault<z.ZodString>;
11924
+ }, "strip", z.ZodTypeAny, {
11925
+ 'x-tenant': string;
11926
+ 'x-service-token': string;
11927
+ 'x-client-timezone': string;
11928
+ 'x-code'?: string | undefined;
11929
+ }, {
11930
+ 'x-tenant': string;
11931
+ 'x-service-token': string;
11932
+ 'x-code'?: string | undefined;
11933
+ 'x-client-timezone'?: string | undefined;
11934
+ }>>>;
12054
11935
  };
12055
11936
  };
12056
11937
  //# sourceMappingURL=index.d.ts.map