@dalmore/api-contracts 0.0.0-dev.fc1b175 → 0.0.0-dev.fef3ec8

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 (721) hide show
  1. package/README.md +23 -19
  2. package/common/constants.d.ts +43 -0
  3. package/common/constants.js +77 -0
  4. package/common/constants.js.map +1 -0
  5. package/common/helpers/index.d.ts +58 -0
  6. package/common/helpers/index.js +151 -0
  7. package/common/helpers/index.js.map +1 -0
  8. package/common/types/account-contact.types.d.ts +485 -0
  9. package/common/types/account-contact.types.js +75 -0
  10. package/common/types/account-contact.types.js.map +1 -0
  11. package/common/types/account-detail.types.d.ts +304 -0
  12. package/common/types/account-detail.types.js +20 -0
  13. package/common/types/account-detail.types.js.map +1 -0
  14. package/common/types/account-integration.types.d.ts +242 -0
  15. package/common/types/account-integration.types.js +121 -0
  16. package/common/types/account-integration.types.js.map +1 -0
  17. package/common/types/account-manager.types.d.ts +917 -0
  18. package/common/types/account-manager.types.js +89 -0
  19. package/common/types/account-manager.types.js.map +1 -0
  20. package/common/types/account-setting.types.d.ts +140 -0
  21. package/common/types/account-setting.types.js +23 -0
  22. package/common/types/account-setting.types.js.map +1 -0
  23. package/common/types/account.types.d.ts +640 -0
  24. package/common/types/account.types.js +218 -0
  25. package/common/types/account.types.js.map +1 -0
  26. package/common/types/activity.types.d.ts +590 -0
  27. package/common/types/activity.types.js +258 -0
  28. package/common/types/activity.types.js.map +1 -0
  29. package/common/types/address.types.d.ts +89 -0
  30. package/common/types/address.types.js +36 -0
  31. package/common/types/address.types.js.map +1 -0
  32. package/common/types/aic.types.d.ts +434 -0
  33. package/common/types/aic.types.js +170 -0
  34. package/common/types/aic.types.js.map +1 -0
  35. package/common/types/aml.types.d.ts +41 -0
  36. package/common/types/aml.types.js +16 -0
  37. package/common/types/aml.types.js.map +1 -0
  38. package/common/types/api-key-logs.types.d.ts +204 -0
  39. package/common/types/api-key-logs.types.js +52 -0
  40. package/common/types/api-key-logs.types.js.map +1 -0
  41. package/common/types/api-keys.types.d.ts +192 -0
  42. package/common/types/api-keys.types.js +57 -0
  43. package/common/types/api-keys.types.js.map +1 -0
  44. package/common/types/asset.types.d.ts +1100 -0
  45. package/common/types/asset.types.js +353 -0
  46. package/common/types/asset.types.js.map +1 -0
  47. package/common/types/auth.types.d.ts +523 -0
  48. package/common/types/auth.types.js +280 -0
  49. package/common/types/auth.types.js.map +1 -0
  50. package/common/types/batch-jobs.types.d.ts +321 -0
  51. package/common/types/batch-jobs.types.js +111 -0
  52. package/common/types/batch-jobs.types.js.map +1 -0
  53. package/common/types/bonus-tier.types.d.ts +991 -0
  54. package/common/types/bonus-tier.types.js +166 -0
  55. package/common/types/bonus-tier.types.js.map +1 -0
  56. package/common/types/cap-table.types.d.ts +1248 -0
  57. package/common/types/cap-table.types.js +437 -0
  58. package/common/types/cap-table.types.js.map +1 -0
  59. package/common/types/cart.types.d.ts +28 -0
  60. package/common/types/cart.types.js +19 -0
  61. package/common/types/cart.types.js.map +1 -0
  62. package/common/types/checklist-items.types.d.ts +195 -0
  63. package/common/types/checklist-items.types.js +54 -0
  64. package/common/types/checklist-items.types.js.map +1 -0
  65. package/common/types/checklist.types.d.ts +140 -0
  66. package/common/types/checklist.types.js +71 -0
  67. package/common/types/checklist.types.js.map +1 -0
  68. package/common/types/common.types.d.ts +1861 -0
  69. package/common/types/common.types.js +1511 -0
  70. package/common/types/common.types.js.map +1 -0
  71. package/common/types/comply-advantage-api.types.d.ts +3626 -0
  72. package/common/types/comply-advantage-api.types.js +291 -0
  73. package/common/types/comply-advantage-api.types.js.map +1 -0
  74. package/common/types/comply-advantage.types.d.ts +48 -0
  75. package/common/types/comply-advantage.types.js +21 -0
  76. package/common/types/comply-advantage.types.js.map +1 -0
  77. package/common/types/contact-us.types.d.ts +126 -0
  78. package/common/types/contact-us.types.js +91 -0
  79. package/common/types/contact-us.types.js.map +1 -0
  80. package/common/types/countries.types.d.ts +77 -0
  81. package/common/types/countries.types.js +349 -0
  82. package/common/types/countries.types.js.map +1 -0
  83. package/common/types/covered-person.types.d.ts +204 -0
  84. package/common/types/covered-person.types.js +234 -0
  85. package/common/types/covered-person.types.js.map +1 -0
  86. package/common/types/csv.types.d.ts +3612 -0
  87. package/common/types/csv.types.js +290 -0
  88. package/common/types/csv.types.js.map +1 -0
  89. package/common/types/dashboard.types.d.ts +2086 -0
  90. package/common/types/dashboard.types.js +690 -0
  91. package/common/types/dashboard.types.js.map +1 -0
  92. package/common/types/data-record.types.d.ts +347 -0
  93. package/common/types/data-record.types.js +261 -0
  94. package/common/types/data-record.types.js.map +1 -0
  95. package/common/types/data-room.types.d.ts +1277 -0
  96. package/common/types/data-room.types.js +167 -0
  97. package/common/types/data-room.types.js.map +1 -0
  98. package/common/types/default-theme-config.types.d.ts +445 -0
  99. package/common/types/default-theme-config.types.js +63 -0
  100. package/common/types/default-theme-config.types.js.map +1 -0
  101. package/common/types/disbursement-adjustment.types.d.ts +21 -0
  102. package/common/types/disbursement-adjustment.types.js +25 -0
  103. package/common/types/disbursement-adjustment.types.js.map +1 -0
  104. package/common/types/disbursement-approval-user.types.d.ts +935 -0
  105. package/common/types/disbursement-approval-user.types.js +68 -0
  106. package/common/types/disbursement-approval-user.types.js.map +1 -0
  107. package/common/types/disbursement-review.types.d.ts +923 -0
  108. package/common/types/disbursement-review.types.js +76 -0
  109. package/common/types/disbursement-review.types.js.map +1 -0
  110. package/common/types/disbursement-transaction.types.d.ts +621 -0
  111. package/common/types/disbursement-transaction.types.js +51 -0
  112. package/common/types/disbursement-transaction.types.js.map +1 -0
  113. package/common/types/disbursements.types.d.ts +3496 -0
  114. package/common/types/disbursements.types.js +435 -0
  115. package/common/types/disbursements.types.js.map +1 -0
  116. package/common/types/domain-filter.types.d.ts +135 -0
  117. package/common/types/domain-filter.types.js +40 -0
  118. package/common/types/domain-filter.types.js.map +1 -0
  119. package/common/types/email-theme.types.d.ts +1359 -0
  120. package/common/types/email-theme.types.js +318 -0
  121. package/common/types/email-theme.types.js.map +1 -0
  122. package/common/types/entity.types.d.ts +21 -0
  123. package/common/types/entity.types.js +14 -0
  124. package/common/types/entity.types.js.map +1 -0
  125. package/common/types/error-responses.types.d.ts +144 -0
  126. package/common/types/error-responses.types.js +125 -0
  127. package/common/types/error-responses.types.js.map +1 -0
  128. package/common/types/escrow-account.types.d.ts +415 -0
  129. package/common/types/escrow-account.types.js +78 -0
  130. package/common/types/escrow-account.types.js.map +1 -0
  131. package/common/types/exchange-api-key.types.d.ts +1010 -0
  132. package/common/types/exchange-api-key.types.js +90 -0
  133. package/common/types/exchange-api-key.types.js.map +1 -0
  134. package/common/types/exchange-import.types.d.ts +23 -0
  135. package/common/types/exchange-import.types.js +23 -0
  136. package/common/types/exchange-import.types.js.map +1 -0
  137. package/common/types/exchange-provider.types.d.ts +1308 -0
  138. package/common/types/exchange-provider.types.js +268 -0
  139. package/common/types/exchange-provider.types.js.map +1 -0
  140. package/common/types/file.types.d.ts +428 -0
  141. package/common/types/file.types.js +392 -0
  142. package/common/types/file.types.js.map +1 -0
  143. package/common/types/health.types.d.ts +112 -0
  144. package/common/types/health.types.js +22 -0
  145. package/common/types/health.types.js.map +1 -0
  146. package/common/types/i-will-do-it-later.types.d.ts +51 -0
  147. package/common/types/i-will-do-it-later.types.js +30 -0
  148. package/common/types/i-will-do-it-later.types.js.map +1 -0
  149. package/common/types/{index.ts → index.d.ts} +7 -5
  150. package/common/types/index.js +54 -0
  151. package/common/types/index.js.map +1 -0
  152. package/common/types/individuals.types.d.ts +2101 -0
  153. package/common/types/individuals.types.js +500 -0
  154. package/common/types/individuals.types.js.map +1 -0
  155. package/common/types/investor-account.types.d.ts +2996 -0
  156. package/common/types/investor-account.types.js +929 -0
  157. package/common/types/investor-account.types.js.map +1 -0
  158. package/common/types/investorAccountIdSchema.type.js +1 -0
  159. package/common/types/investorAccountIdSchema.type.js.map +1 -0
  160. package/common/types/investors-offering.types.d.ts +399 -0
  161. package/common/types/investors-offering.types.js +50 -0
  162. package/common/types/investors-offering.types.js.map +1 -0
  163. package/common/types/invite.types.d.ts +644 -0
  164. package/common/types/invite.types.js +114 -0
  165. package/common/types/invite.types.js.map +1 -0
  166. package/common/types/issuer-bank-account.types.d.ts +113 -0
  167. package/common/types/issuer-bank-account.types.js +81 -0
  168. package/common/types/issuer-bank-account.types.js.map +1 -0
  169. package/common/types/issuer-offering.types.d.ts +2236 -0
  170. package/common/types/issuer-offering.types.js +605 -0
  171. package/common/types/issuer-offering.types.js.map +1 -0
  172. package/common/types/issuer-payment-method.types.d.ts +1100 -0
  173. package/common/types/issuer-payment-method.types.js +311 -0
  174. package/common/types/issuer-payment-method.types.js.map +1 -0
  175. package/common/types/issuer.types.d.ts +539 -0
  176. package/common/types/issuer.types.js +275 -0
  177. package/common/types/issuer.types.js.map +1 -0
  178. package/common/types/job-item.types.d.ts +230 -0
  179. package/common/types/job-item.types.js +89 -0
  180. package/common/types/job-item.types.js.map +1 -0
  181. package/common/types/jobs.types.d.ts +296 -0
  182. package/common/types/jobs.types.js +150 -0
  183. package/common/types/jobs.types.js.map +1 -0
  184. package/common/types/kyb.types.d.ts +167 -0
  185. package/common/types/kyb.types.js +45 -0
  186. package/common/types/kyb.types.js.map +1 -0
  187. package/common/types/kyc.types.d.ts +2197 -0
  188. package/common/types/kyc.types.js +301 -0
  189. package/common/types/kyc.types.js.map +1 -0
  190. package/common/types/legal-entity.types.d.ts +676 -0
  191. package/common/types/legal-entity.types.js +151 -0
  192. package/common/types/legal-entity.types.js.map +1 -0
  193. package/common/types/login-history.types.d.ts +160 -0
  194. package/common/types/login-history.types.js +39 -0
  195. package/common/types/login-history.types.js.map +1 -0
  196. package/common/types/mail-template.types.d.ts +595 -0
  197. package/common/types/mail-template.types.js +401 -0
  198. package/common/types/mail-template.types.js.map +1 -0
  199. package/common/types/north-cap-integration.types.d.ts +1303 -0
  200. package/common/types/north-cap-integration.types.js +145 -0
  201. package/common/types/north-cap-integration.types.js.map +1 -0
  202. package/common/types/note.types.d.ts +216 -0
  203. package/common/types/note.types.js +82 -0
  204. package/common/types/note.types.js.map +1 -0
  205. package/common/types/notification.types.d.ts +2690 -0
  206. package/common/types/notification.types.js +411 -0
  207. package/common/types/notification.types.js.map +1 -0
  208. package/common/types/notion-api.types.d.ts +3626 -0
  209. package/common/types/notion-api.types.js +271 -0
  210. package/common/types/notion-api.types.js.map +1 -0
  211. package/common/types/notion-database.types.d.ts +191 -0
  212. package/common/types/notion-database.types.js +95 -0
  213. package/common/types/notion-database.types.js.map +1 -0
  214. package/common/types/notion-page.types.d.ts +3482 -0
  215. package/common/types/notion-page.types.js +208 -0
  216. package/common/types/notion-page.types.js.map +1 -0
  217. package/common/types/offering-reports.types.d.ts +525 -0
  218. package/common/types/offering-reports.types.js +111 -0
  219. package/common/types/offering-reports.types.js.map +1 -0
  220. package/common/types/offering-submission.types.d.ts +785 -0
  221. package/common/types/offering-submission.types.js +291 -0
  222. package/common/types/offering-submission.types.js.map +1 -0
  223. package/common/types/offering.types.d.ts +2859 -0
  224. package/common/types/offering.types.js +832 -0
  225. package/common/types/offering.types.js.map +1 -0
  226. package/common/types/page-revision.types.d.ts +74 -0
  227. package/common/types/page-revision.types.js +68 -0
  228. package/common/types/page-revision.types.js.map +1 -0
  229. package/common/types/page.types.d.ts +540 -0
  230. package/common/types/page.types.js +361 -0
  231. package/common/types/page.types.js.map +1 -0
  232. package/common/types/password.type.d.ts +2 -0
  233. package/common/types/password.type.js +14 -0
  234. package/common/types/password.type.js.map +1 -0
  235. package/common/types/payment-methods.types.d.ts +1165 -0
  236. package/common/types/payment-methods.types.js +381 -0
  237. package/common/types/payment-methods.types.js.map +1 -0
  238. package/common/types/phone.type.d.ts +12 -0
  239. package/common/types/phone.type.js +29 -0
  240. package/common/types/phone.type.js.map +1 -0
  241. package/common/types/portfolio.types.d.ts +185 -0
  242. package/common/types/portfolio.types.js +36 -0
  243. package/common/types/portfolio.types.js.map +1 -0
  244. package/common/types/privacy-policy-and-tos.types.d.ts +2 -0
  245. package/common/types/{privacy-policy-and-tos.types.ts → privacy-policy-and-tos.types.js} +1 -1
  246. package/common/types/privacy-policy-and-tos.types.js.map +1 -0
  247. package/common/types/queue.types.d.ts +22 -0
  248. package/common/types/queue.types.js +73 -0
  249. package/common/types/queue.types.js.map +1 -0
  250. package/common/types/registered-reps.types.d.ts +6 -0
  251. package/common/types/registered-reps.types.js +21 -0
  252. package/common/types/registered-reps.types.js.map +1 -0
  253. package/common/types/rejection-reasons.types.d.ts +35 -0
  254. package/common/types/rejection-reasons.types.js +49 -0
  255. package/common/types/rejection-reasons.types.js.map +1 -0
  256. package/common/types/reports.types.d.ts +345 -0
  257. package/common/types/reports.types.js +69 -0
  258. package/common/types/reports.types.js.map +1 -0
  259. package/common/types/review.types.d.ts +419 -0
  260. package/common/types/review.types.js +101 -0
  261. package/common/types/review.types.js.map +1 -0
  262. package/common/types/role.types.d.ts +30 -0
  263. package/common/types/role.types.js +21 -0
  264. package/common/types/role.types.js.map +1 -0
  265. package/common/types/secondary-customer.types.d.ts +586 -0
  266. package/common/types/secondary-customer.types.js +39 -0
  267. package/common/types/secondary-customer.types.js.map +1 -0
  268. package/common/types/secondary-issuer.types.d.ts +283 -0
  269. package/common/types/secondary-issuer.types.js +37 -0
  270. package/common/types/secondary-issuer.types.js.map +1 -0
  271. package/common/types/secondary-order.types.d.ts +508 -0
  272. package/common/types/secondary-order.types.js +40 -0
  273. package/common/types/secondary-order.types.js.map +1 -0
  274. package/common/types/secondary-security.types.d.ts +175 -0
  275. package/common/types/secondary-security.types.js +45 -0
  276. package/common/types/secondary-security.types.js.map +1 -0
  277. package/common/types/secondary-trade.entity.d.ts +16 -0
  278. package/common/types/secondary-trade.entity.js +12 -0
  279. package/common/types/secondary-trade.entity.js.map +1 -0
  280. package/common/types/secondary-trade.types.d.ts +465 -0
  281. package/common/types/secondary-trade.types.js +61 -0
  282. package/common/types/secondary-trade.types.js.map +1 -0
  283. package/common/types/secure-request.types.d.ts +171 -0
  284. package/common/types/secure-request.types.js +51 -0
  285. package/common/types/secure-request.types.js.map +1 -0
  286. package/common/types/signer.types.d.ts +3406 -0
  287. package/common/types/signer.types.js +532 -0
  288. package/common/types/signer.types.js.map +1 -0
  289. package/common/types/site-link.types.d.ts +875 -0
  290. package/common/types/site-link.types.js +126 -0
  291. package/common/types/site-link.types.js.map +1 -0
  292. package/common/types/site-settings.types.d.ts +1673 -0
  293. package/common/types/site-settings.types.js +500 -0
  294. package/common/types/site-settings.types.js.map +1 -0
  295. package/common/types/site.types.d.ts +1481 -0
  296. package/common/types/site.types.js +213 -0
  297. package/common/types/site.types.js.map +1 -0
  298. package/common/types/sms.types.d.ts +40 -0
  299. package/common/types/sms.types.js +27 -0
  300. package/common/types/sms.types.js.map +1 -0
  301. package/common/types/state-machine.types.d.ts +591 -0
  302. package/common/types/state-machine.types.js +144 -0
  303. package/common/types/state-machine.types.js.map +1 -0
  304. package/common/types/states.types.d.ts +77 -0
  305. package/common/types/states.types.js +137 -0
  306. package/common/types/states.types.js.map +1 -0
  307. package/common/types/subdoc-preview.types.d.ts +379 -0
  308. package/common/types/subdoc-preview.types.js +24 -0
  309. package/common/types/subdoc-preview.types.js.map +1 -0
  310. package/common/types/task.types.d.ts +545 -0
  311. package/common/types/task.types.js +214 -0
  312. package/common/types/task.types.js.map +1 -0
  313. package/common/types/trade-adjustment.type.d.ts +40 -0
  314. package/common/types/trade-adjustment.type.js +26 -0
  315. package/common/types/trade-adjustment.type.js.map +1 -0
  316. package/common/types/trade-line-item.types.d.ts +353 -0
  317. package/common/types/trade-line-item.types.js +103 -0
  318. package/common/types/trade-line-item.types.js.map +1 -0
  319. package/common/types/trade.types.d.ts +2012 -0
  320. package/common/types/trade.types.js +800 -0
  321. package/common/types/trade.types.js.map +1 -0
  322. package/common/types/transaction.types.d.ts +476 -0
  323. package/common/types/transaction.types.js +199 -0
  324. package/common/types/transaction.types.js.map +1 -0
  325. package/common/types/trusted-contact.types.d.ts +440 -0
  326. package/common/types/trusted-contact.types.js +95 -0
  327. package/common/types/trusted-contact.types.js.map +1 -0
  328. package/common/types/typography.types.d.ts +52 -0
  329. package/common/types/typography.types.js +67 -0
  330. package/common/types/typography.types.js.map +1 -0
  331. package/common/types/user-manual.types.d.ts +287 -0
  332. package/common/types/user-manual.types.js +192 -0
  333. package/common/types/user-manual.types.js.map +1 -0
  334. package/common/types/user-setting.types.d.ts +273 -0
  335. package/common/types/user-setting.types.js +85 -0
  336. package/common/types/user-setting.types.js.map +1 -0
  337. package/common/types/user.types.d.ts +1977 -0
  338. package/common/types/user.types.js +225 -0
  339. package/common/types/user.types.js.map +1 -0
  340. package/common/types/webhook.types.d.ts +10829 -0
  341. package/common/types/webhook.types.js +658 -0
  342. package/common/types/webhook.types.js.map +1 -0
  343. package/common/types/zapier.types.d.ts +126 -0
  344. package/common/types/zapier.types.js +247 -0
  345. package/common/types/zapier.types.js.map +1 -0
  346. package/common/types/zip.type.d.ts +35 -0
  347. package/common/types/zip.type.js +28 -0
  348. package/common/types/zip.type.js.map +1 -0
  349. package/contracts/clients/accounts/index.d.ts +308 -0
  350. package/contracts/clients/accounts/index.js +43 -0
  351. package/contracts/clients/accounts/index.js.map +1 -0
  352. package/contracts/clients/aic/index.d.ts +280 -0
  353. package/contracts/clients/aic/index.js +47 -0
  354. package/contracts/clients/aic/index.js.map +1 -0
  355. package/contracts/clients/api-key-logs/index.d.ts +287 -0
  356. package/contracts/clients/api-key-logs/index.js +37 -0
  357. package/contracts/clients/api-key-logs/index.js.map +1 -0
  358. package/contracts/clients/api-keys/index.d.ts +374 -0
  359. package/contracts/clients/api-keys/index.js +59 -0
  360. package/contracts/clients/api-keys/index.js.map +1 -0
  361. package/contracts/clients/assets/index.d.ts +1050 -0
  362. package/contracts/clients/assets/index.js +80 -0
  363. package/contracts/clients/assets/index.js.map +1 -0
  364. package/contracts/clients/auth/index.d.ts +236 -0
  365. package/contracts/clients/auth/index.js +38 -0
  366. package/contracts/clients/auth/index.js.map +1 -0
  367. package/contracts/clients/cart/index.d.ts +229 -0
  368. package/contracts/clients/cart/index.js +63 -0
  369. package/contracts/clients/cart/index.js.map +1 -0
  370. package/contracts/clients/csv/index.d.ts +1800 -0
  371. package/contracts/clients/csv/index.js +96 -0
  372. package/contracts/clients/csv/index.js.map +1 -0
  373. package/contracts/clients/files/index.d.ts +552 -0
  374. package/contracts/clients/files/index.js +142 -0
  375. package/contracts/clients/files/index.js.map +1 -0
  376. package/contracts/clients/files-public/index.d.ts +552 -0
  377. package/contracts/clients/files-public/index.js +142 -0
  378. package/contracts/clients/files-public/index.js.map +1 -0
  379. package/contracts/clients/index.d.ts +15114 -0
  380. package/contracts/clients/index.js +58 -0
  381. package/contracts/clients/index.js.map +1 -0
  382. package/contracts/clients/individuals/index.d.ts +3199 -0
  383. package/contracts/clients/individuals/index.js +74 -0
  384. package/contracts/clients/individuals/index.js.map +1 -0
  385. package/contracts/clients/investor-accounts/index.d.ts +339 -0
  386. package/contracts/clients/investor-accounts/index.js +73 -0
  387. package/contracts/clients/investor-accounts/index.js.map +1 -0
  388. package/contracts/clients/issuer-payment-methods/index.d.ts +276 -0
  389. package/contracts/clients/issuer-payment-methods/index.js +24 -0
  390. package/contracts/clients/issuer-payment-methods/index.js.map +1 -0
  391. package/contracts/clients/issuers/index.d.ts +449 -0
  392. package/contracts/clients/issuers/index.js +75 -0
  393. package/contracts/clients/issuers/index.js.map +1 -0
  394. package/contracts/clients/kyc/index.d.ts +345 -0
  395. package/contracts/clients/kyc/index.js +49 -0
  396. package/contracts/clients/kyc/index.js.map +1 -0
  397. package/contracts/clients/legal-entities/index.d.ts +887 -0
  398. package/contracts/clients/legal-entities/index.js +74 -0
  399. package/contracts/clients/legal-entities/index.js.map +1 -0
  400. package/contracts/clients/offerings/index.d.ts +1068 -0
  401. package/contracts/clients/offerings/index.js +95 -0
  402. package/contracts/clients/offerings/index.js.map +1 -0
  403. package/contracts/clients/payment-methods/index.d.ts +456 -0
  404. package/contracts/clients/payment-methods/index.js +68 -0
  405. package/contracts/clients/payment-methods/index.js.map +1 -0
  406. package/contracts/clients/review/index.d.ts +85 -0
  407. package/contracts/clients/review/index.js +27 -0
  408. package/contracts/clients/review/index.js.map +1 -0
  409. package/contracts/clients/secure-requests/index.d.ts +100 -0
  410. package/contracts/clients/secure-requests/index.js +22 -0
  411. package/contracts/clients/secure-requests/index.js.map +1 -0
  412. package/contracts/clients/sites/index.d.ts +657 -0
  413. package/contracts/clients/sites/index.js +40 -0
  414. package/contracts/clients/sites/index.js.map +1 -0
  415. package/contracts/clients/trade-line-items/index.d.ts +216 -0
  416. package/contracts/clients/trade-line-items/index.js +47 -0
  417. package/contracts/clients/trade-line-items/index.js.map +1 -0
  418. package/contracts/clients/trades/index.d.ts +871 -0
  419. package/contracts/clients/trades/index.js +156 -0
  420. package/contracts/clients/trades/index.js.map +1 -0
  421. package/contracts/clients/transactions/index.d.ts +88 -0
  422. package/contracts/clients/transactions/index.js +25 -0
  423. package/contracts/clients/transactions/index.js.map +1 -0
  424. package/contracts/clients/webhooks/index.d.ts +506 -0
  425. package/contracts/clients/webhooks/index.js +118 -0
  426. package/contracts/clients/webhooks/index.js.map +1 -0
  427. package/package.json +27 -36
  428. package/common/helpers/index.ts +0 -59
  429. package/common/types/account-contact.types.ts +0 -98
  430. package/common/types/account-detail.types.ts +0 -27
  431. package/common/types/account-integration.types.ts +0 -143
  432. package/common/types/account-manager.types.ts +0 -124
  433. package/common/types/account.types.ts +0 -296
  434. package/common/types/activity.types.ts +0 -274
  435. package/common/types/address.types.ts +0 -41
  436. package/common/types/aic.types.ts +0 -246
  437. package/common/types/aml.types.ts +0 -18
  438. package/common/types/api-key-logs.types.ts +0 -66
  439. package/common/types/api-keys.types.ts +0 -69
  440. package/common/types/asset.types.ts +0 -338
  441. package/common/types/auth.types.ts +0 -370
  442. package/common/types/batch-jobs.types.ts +0 -151
  443. package/common/types/bonus-tier.types.ts +0 -147
  444. package/common/types/cart.types.ts +0 -21
  445. package/common/types/checklist-items.types.ts +0 -70
  446. package/common/types/checklist.types.ts +0 -97
  447. package/common/types/common.types.ts +0 -1520
  448. package/common/types/comply-advantage-api.types.ts +0 -316
  449. package/common/types/comply-advantage.types.ts +0 -25
  450. package/common/types/contact-us.types.ts +0 -107
  451. package/common/types/countries.types.ts +0 -375
  452. package/common/types/covered-person.types.ts +0 -274
  453. package/common/types/dashboard.types.ts +0 -799
  454. package/common/types/data-record.types.ts +0 -325
  455. package/common/types/data-room.types.ts +0 -242
  456. package/common/types/default-theme-config.types.ts +0 -87
  457. package/common/types/disbursement-adjustment.types.ts +0 -32
  458. package/common/types/disbursement-approval-user.types.ts +0 -100
  459. package/common/types/disbursement-review.types.ts +0 -110
  460. package/common/types/disbursement-transaction.types.ts +0 -72
  461. package/common/types/disbursements.types.ts +0 -426
  462. package/common/types/domain-filter.types.ts +0 -55
  463. package/common/types/email-theme.types.ts +0 -442
  464. package/common/types/entity.types.ts +0 -15
  465. package/common/types/error-responses.types.ts +0 -135
  466. package/common/types/escrow-account.types.ts +0 -104
  467. package/common/types/exchange-api-key.types.ts +0 -121
  468. package/common/types/exchange-import.types.ts +0 -36
  469. package/common/types/exchange-provider.types.ts +0 -329
  470. package/common/types/file.types.ts +0 -477
  471. package/common/types/health.types.ts +0 -29
  472. package/common/types/i-will-do-it-later.types.ts +0 -68
  473. package/common/types/individuals.types.ts +0 -541
  474. package/common/types/investor-account.types.ts +0 -1239
  475. package/common/types/investors-offering.types.ts +0 -65
  476. package/common/types/invite.types.ts +0 -133
  477. package/common/types/issuer-bank-account.types.ts +0 -107
  478. package/common/types/issuer-offering.types.ts +0 -395
  479. package/common/types/issuer-payment-method.types.ts +0 -382
  480. package/common/types/issuer.types.ts +0 -321
  481. package/common/types/job-item.types.ts +0 -119
  482. package/common/types/jobs.types.ts +0 -171
  483. package/common/types/kyb.types.ts +0 -53
  484. package/common/types/kyc.types.ts +0 -188
  485. package/common/types/legal-entity.types.ts +0 -185
  486. package/common/types/login-history.types.ts +0 -46
  487. package/common/types/mail-template.types.ts +0 -436
  488. package/common/types/north-cap-integration.types.ts +0 -190
  489. package/common/types/note.types.ts +0 -109
  490. package/common/types/notification.types.ts +0 -58
  491. package/common/types/notion-api.types.ts +0 -374
  492. package/common/types/notion-database.types.ts +0 -125
  493. package/common/types/notion-page.types.ts +0 -267
  494. package/common/types/offering-reports.types.ts +0 -153
  495. package/common/types/offering-submission.types.ts +0 -314
  496. package/common/types/offering.types.ts +0 -683
  497. package/common/types/page-revision.types.ts +0 -86
  498. package/common/types/page.types.ts +0 -436
  499. package/common/types/password.type.ts +0 -15
  500. package/common/types/payment-methods.types.ts +0 -298
  501. package/common/types/phone.type.ts +0 -27
  502. package/common/types/portfolio.types.ts +0 -50
  503. package/common/types/queue.types.ts +0 -112
  504. package/common/types/registered-reps.types.ts +0 -25
  505. package/common/types/rejection-reasons.types.ts +0 -56
  506. package/common/types/reminder-config.types.ts +0 -40
  507. package/common/types/review.types.ts +0 -133
  508. package/common/types/role.types.ts +0 -26
  509. package/common/types/secondary-customer.types.ts +0 -66
  510. package/common/types/secondary-issuer.types.ts +0 -50
  511. package/common/types/secondary-order.types.ts +0 -58
  512. package/common/types/secondary-security.types.ts +0 -60
  513. package/common/types/secondary-trade.entity.ts +0 -16
  514. package/common/types/secondary-trade.types.ts +0 -95
  515. package/common/types/secure-request.types.ts +0 -68
  516. package/common/types/signer.types.ts +0 -651
  517. package/common/types/site-link.types.ts +0 -166
  518. package/common/types/site-settings.types.ts +0 -726
  519. package/common/types/site.types.ts +0 -270
  520. package/common/types/sms.types.ts +0 -30
  521. package/common/types/state-machine.types.ts +0 -177
  522. package/common/types/states.types.ts +0 -163
  523. package/common/types/subdoc-preview.types.ts +0 -35
  524. package/common/types/task.types.ts +0 -258
  525. package/common/types/trade-adjustment.type.ts +0 -33
  526. package/common/types/trade-line-item.type.ts +0 -132
  527. package/common/types/trade.types.ts +0 -999
  528. package/common/types/transaction.types.ts +0 -209
  529. package/common/types/trusted-contact.types.ts +0 -122
  530. package/common/types/typography.types.ts +0 -75
  531. package/common/types/user-manual.types.ts +0 -290
  532. package/common/types/user-setting.types.ts +0 -133
  533. package/common/types/user.types.ts +0 -320
  534. package/common/types/webhook.types.ts +0 -588
  535. package/common/types/zip.type.ts +0 -36
  536. package/contracts/clients/accounts/index.ts +0 -61
  537. package/contracts/clients/aic/index.ts +0 -59
  538. package/contracts/clients/api-key-logs/index.ts +0 -53
  539. package/contracts/clients/api-keys/index.ts +0 -73
  540. package/contracts/clients/assets/index.ts +0 -102
  541. package/contracts/clients/auth/index.ts +0 -50
  542. package/contracts/clients/cart/index.ts +0 -80
  543. package/contracts/clients/files/index.ts +0 -166
  544. package/contracts/clients/files-public/index.ts +0 -166
  545. package/contracts/clients/index.ts +0 -54
  546. package/contracts/clients/individuals/index.ts +0 -93
  547. package/contracts/clients/investor-accounts/index.ts +0 -93
  548. package/contracts/clients/issuer-payment-methods/index.ts +0 -39
  549. package/contracts/clients/issuers/index.ts +0 -94
  550. package/contracts/clients/legal-entities/index.ts +0 -93
  551. package/contracts/clients/offerings/index.ts +0 -117
  552. package/contracts/clients/payment-methods/index.ts +0 -85
  553. package/contracts/clients/secure-requests/index.ts +0 -34
  554. package/contracts/clients/sites/index.ts +0 -56
  555. package/contracts/clients/trade-line-items/index.ts +0 -66
  556. package/contracts/clients/trades/index.ts +0 -186
  557. package/contracts/clients/transactions/index.ts +0 -37
  558. package/contracts/compliance/account-contacts/index.ts +0 -82
  559. package/contracts/compliance/account-managers/index.ts +0 -142
  560. package/contracts/compliance/accounts/index.ts +0 -187
  561. package/contracts/compliance/activities/index.ts +0 -55
  562. package/contracts/compliance/aic/index.ts +0 -60
  563. package/contracts/compliance/api-keys/index.ts +0 -91
  564. package/contracts/compliance/assets/index.ts +0 -122
  565. package/contracts/compliance/auth/index.ts +0 -134
  566. package/contracts/compliance/batch-jobs/index.ts +0 -62
  567. package/contracts/compliance/bonus-tiers/index.ts +0 -55
  568. package/contracts/compliance/checklist/index.ts +0 -87
  569. package/contracts/compliance/checklist-items/index.ts +0 -86
  570. package/contracts/compliance/covered-persons/index.ts +0 -97
  571. package/contracts/compliance/dashboard/index.ts +0 -111
  572. package/contracts/compliance/data-records/index.ts +0 -116
  573. package/contracts/compliance/data-rooms/index.ts +0 -113
  574. package/contracts/compliance/default-theme-configs/index.ts +0 -95
  575. package/contracts/compliance/disbursement/index.ts +0 -165
  576. package/contracts/compliance/disbursement-approval-users/index.ts +0 -84
  577. package/contracts/compliance/disbursement-transactions/index.ts +0 -37
  578. package/contracts/compliance/domain-filters/index.ts +0 -117
  579. package/contracts/compliance/email-themes/index.ts +0 -284
  580. package/contracts/compliance/escrow-accounts/index.ts +0 -85
  581. package/contracts/compliance/exchange-api-keys/index.ts +0 -129
  582. package/contracts/compliance/exchange-imports/index.ts +0 -137
  583. package/contracts/compliance/files/index.ts +0 -267
  584. package/contracts/compliance/files-public/index.ts +0 -188
  585. package/contracts/compliance/health/index.ts +0 -26
  586. package/contracts/compliance/index.ts +0 -147
  587. package/contracts/compliance/individuals/index.ts +0 -57
  588. package/contracts/compliance/investor-accounts/index.ts +0 -141
  589. package/contracts/compliance/invites/index.ts +0 -137
  590. package/contracts/compliance/issuer-bank-accounts/index.ts +0 -81
  591. package/contracts/compliance/issuer-payment-methods/index.ts +0 -81
  592. package/contracts/compliance/issuers/index.ts +0 -97
  593. package/contracts/compliance/job-items/index.ts +0 -58
  594. package/contracts/compliance/jobs/index.ts +0 -59
  595. package/contracts/compliance/kyb/index.ts +0 -54
  596. package/contracts/compliance/kyc/index.ts +0 -77
  597. package/contracts/compliance/legal-entities/index.ts +0 -57
  598. package/contracts/compliance/login-histories/index.ts +0 -37
  599. package/contracts/compliance/notes/index.ts +0 -69
  600. package/contracts/compliance/notion-databases/index.ts +0 -107
  601. package/contracts/compliance/notion-pages/index.ts +0 -105
  602. package/contracts/compliance/offering-reports/index.ts +0 -149
  603. package/contracts/compliance/offerings/index.ts +0 -233
  604. package/contracts/compliance/pages/index.ts +0 -178
  605. package/contracts/compliance/payment-methods/index.ts +0 -57
  606. package/contracts/compliance/rejection-reasons/index.ts +0 -32
  607. package/contracts/compliance/review/index.ts +0 -169
  608. package/contracts/compliance/roles/index.ts +0 -34
  609. package/contracts/compliance/secondary-customers/index.ts +0 -77
  610. package/contracts/compliance/secondary-orders/index.ts +0 -60
  611. package/contracts/compliance/secondary-trades/index.ts +0 -100
  612. package/contracts/compliance/secure-requests/index.ts +0 -54
  613. package/contracts/compliance/signer/index.ts +0 -369
  614. package/contracts/compliance/site-links/index.ts +0 -128
  615. package/contracts/compliance/site-settings/index.ts +0 -669
  616. package/contracts/compliance/sites/index.ts +0 -56
  617. package/contracts/compliance/state-machine/index.ts +0 -94
  618. package/contracts/compliance/tasks/index.ts +0 -91
  619. package/contracts/compliance/third-parties/index.ts +0 -52
  620. package/contracts/compliance/trade-line-items/index.ts +0 -59
  621. package/contracts/compliance/trades/index.ts +0 -230
  622. package/contracts/compliance/transactions/index.ts +0 -161
  623. package/contracts/compliance/user-manuals/index.ts +0 -271
  624. package/contracts/compliance/user-settings/index.ts +0 -189
  625. package/contracts/compliance/users/index.ts +0 -200
  626. package/contracts/compliance/webhooks/index.ts +0 -41
  627. package/contracts/compliance-apikey/accounts/index.ts +0 -58
  628. package/contracts/compliance-apikey/index.ts +0 -14
  629. package/contracts/index.ts +0 -6
  630. package/contracts/investors/account-contacts/index.ts +0 -58
  631. package/contracts/investors/aic/index.ts +0 -59
  632. package/contracts/investors/assets/index.ts +0 -61
  633. package/contracts/investors/auth/index.ts +0 -116
  634. package/contracts/investors/bonus-tiers/index.ts +0 -37
  635. package/contracts/investors/cart/index.ts +0 -75
  636. package/contracts/investors/contact-us/index.ts +0 -48
  637. package/contracts/investors/data-records/index.ts +0 -113
  638. package/contracts/investors/data-rooms/index.ts +0 -96
  639. package/contracts/investors/files/index.ts +0 -167
  640. package/contracts/investors/files-public/index.ts +0 -185
  641. package/contracts/investors/index.ts +0 -72
  642. package/contracts/investors/individuals/index.ts +0 -121
  643. package/contracts/investors/investor-accounts/index.ts +0 -110
  644. package/contracts/investors/issuer-payment-methods/index.ts +0 -36
  645. package/contracts/investors/issuers/index.ts +0 -30
  646. package/contracts/investors/legal-entities/index.ts +0 -93
  647. package/contracts/investors/notes/index.ts +0 -69
  648. package/contracts/investors/offerings/index.ts +0 -93
  649. package/contracts/investors/pages/index.ts +0 -88
  650. package/contracts/investors/payment-methods/index.ts +0 -149
  651. package/contracts/investors/portfolios/index.ts +0 -53
  652. package/contracts/investors/sites/index.ts +0 -96
  653. package/contracts/investors/tasks/index.ts +0 -111
  654. package/contracts/investors/trade-line-items/index.ts +0 -75
  655. package/contracts/investors/trades/index.ts +0 -114
  656. package/contracts/investors/transactions/index.ts +0 -37
  657. package/contracts/investors/trusted-contacts/index.ts +0 -93
  658. package/contracts/investors/user-manuals/index.ts +0 -62
  659. package/contracts/investors/user-settings/index.ts +0 -170
  660. package/contracts/investors/users/index.ts +0 -45
  661. package/contracts/investors/webhooks/index.ts +0 -30
  662. package/contracts/issuers/account-contacts/index.ts +0 -76
  663. package/contracts/issuers/account-integrations/index.ts +0 -97
  664. package/contracts/issuers/accounts/index.ts +0 -97
  665. package/contracts/issuers/activities/index.ts +0 -54
  666. package/contracts/issuers/aic/index.ts +0 -39
  667. package/contracts/issuers/api-key-logs/index.ts +0 -53
  668. package/contracts/issuers/api-keys/index.ts +0 -93
  669. package/contracts/issuers/assets/index.ts +0 -122
  670. package/contracts/issuers/auth/index.ts +0 -152
  671. package/contracts/issuers/bonus-tiers/index.ts +0 -55
  672. package/contracts/issuers/contact-us/index.ts +0 -48
  673. package/contracts/issuers/covered-persons/index.ts +0 -136
  674. package/contracts/issuers/dashboard/index.ts +0 -72
  675. package/contracts/issuers/data-records/index.ts +0 -257
  676. package/contracts/issuers/data-rooms/index.ts +0 -134
  677. package/contracts/issuers/disbursement-approval-users/index.ts +0 -82
  678. package/contracts/issuers/disbursement-transactions/index.ts +0 -53
  679. package/contracts/issuers/disbursements/index.ts +0 -189
  680. package/contracts/issuers/email-themes/index.ts +0 -242
  681. package/contracts/issuers/escrow-accounts/index.ts +0 -81
  682. package/contracts/issuers/exchange-api-keys/index.ts +0 -144
  683. package/contracts/issuers/files/index.ts +0 -166
  684. package/contracts/issuers/files-public/index.ts +0 -166
  685. package/contracts/issuers/health/index.ts +0 -24
  686. package/contracts/issuers/index.ts +0 -112
  687. package/contracts/issuers/investor-accounts/index.ts +0 -148
  688. package/contracts/issuers/invites/index.ts +0 -129
  689. package/contracts/issuers/issuer/index.ts +0 -94
  690. package/contracts/issuers/issuer-bank-accounts/index.ts +0 -81
  691. package/contracts/issuers/issuer-payment-methods/index.ts +0 -136
  692. package/contracts/issuers/kyc/index.ts +0 -38
  693. package/contracts/issuers/login-histories/index.ts +0 -51
  694. package/contracts/issuers/notes/index.ts +0 -69
  695. package/contracts/issuers/offerings/index.ts +0 -206
  696. package/contracts/issuers/pages/index.ts +0 -138
  697. package/contracts/issuers/payment-methods/index.ts +0 -61
  698. package/contracts/issuers/portfolios/index.ts +0 -36
  699. package/contracts/issuers/rejection-reasons/index.ts +0 -32
  700. package/contracts/issuers/review/index.ts +0 -63
  701. package/contracts/issuers/secondary-customers/index.ts +0 -55
  702. package/contracts/issuers/secondary-orders/index.ts +0 -57
  703. package/contracts/issuers/secondary-trades/index.ts +0 -57
  704. package/contracts/issuers/secure-requests/index.ts +0 -34
  705. package/contracts/issuers/site-links/index.ts +0 -116
  706. package/contracts/issuers/site-settings/index.ts +0 -585
  707. package/contracts/issuers/sites/index.ts +0 -32
  708. package/contracts/issuers/tasks/index.ts +0 -111
  709. package/contracts/issuers/trades/index.ts +0 -132
  710. package/contracts/issuers/transactions/index.ts +0 -158
  711. package/contracts/issuers/user-manuals/index.ts +0 -62
  712. package/contracts/issuers/user-settings/index.ts +0 -170
  713. package/contracts/issuers/users/index.ts +0 -126
  714. package/contracts/secondaries/accounts/index.ts +0 -58
  715. package/contracts/secondaries/index.ts +0 -23
  716. package/contracts/secondaries/secondary-customers/index.ts +0 -55
  717. package/contracts/secondaries/secondary-issuers/index.ts +0 -94
  718. package/contracts/secondaries/secondary-orders/index.ts +0 -56
  719. package/contracts/secondaries/secondary-securities/index.ts +0 -95
  720. package/contracts/secondaries/secondary-trades/index.ts +0 -56
  721. /package/common/types/{investorAccountIdSchema.type.ts → investorAccountIdSchema.type.d.ts} +0 -0
@@ -0,0 +1,2690 @@
1
+ import { z } from 'zod';
2
+ import { ActivityTypeAction, ActivityTypeCategory, ActivityTypeResource } from './activity.types';
3
+ export declare enum NotificationChannelType {
4
+ EMAIL = "EMAIL",
5
+ SLACK = "SLACK",
6
+ WEBHOOK = "WEBHOOK"
7
+ }
8
+ export declare enum NotificationRecordStatus {
9
+ PENDING = "PENDING",
10
+ SENT = "SENT",
11
+ FAILED = "FAILED"
12
+ }
13
+ export type TriggerExclusion = {
14
+ category?: ActivityTypeCategory;
15
+ resource?: ActivityTypeResource;
16
+ action?: ActivityTypeAction;
17
+ };
18
+ export declare const EXCLUDED_NOTIFICATION_TRIGGERS: TriggerExclusion[];
19
+ export declare const ISSUER_ALLOWED_CATEGORIES: ActivityTypeCategory[];
20
+ export declare const CLIENT_ALLOWED_CATEGORIES: ActivityTypeCategory[];
21
+ /**
22
+ * Checks if an activity type should be excluded from notifications.
23
+ *
24
+ * Each exclusion pattern can specify any combination of category, resource, and action.
25
+ * Omitted fields act as wildcards (match any value).
26
+ *
27
+ * @example
28
+ * // Excludes ALL activities with action RE_SIGN (any category, any resource)
29
+ * { action: ActivityTypeAction.RE_SIGN }
30
+ *
31
+ * @example
32
+ * // Excludes ALL USERS activities (any category, any action)
33
+ * { resource: ActivityTypeResource.USERS }
34
+ *
35
+ * @example
36
+ * // Excludes only COMPLIANCE + TRADES + CREATE (all three must match)
37
+ * { category: ActivityTypeCategory.COMPLIANCE, resource: ActivityTypeResource.TRADES, action: ActivityTypeAction.CREATE }
38
+ *
39
+ * @param category - The activity type category to check
40
+ * @param resource - The activity type resource to check
41
+ * @param action - The activity type action to check
42
+ * @param exclusions - Array of exclusion patterns (defaults to EXCLUDED_NOTIFICATION_TRIGGERS)
43
+ * @returns true if the activity type matches any exclusion pattern
44
+ */
45
+ export declare function isTriggerExcluded(category: string, resource: string, action: string, exclusions?: TriggerExclusion[]): boolean;
46
+ /**
47
+ * Checks if a category is allowed for notification triggers.
48
+ *
49
+ * Used to restrict which activity type categories a user can subscribe to.
50
+ * For example, issuers can only subscribe to ISSUER category triggers.
51
+ *
52
+ * @param category - The activity type category to check
53
+ * @param allowedCategories - Optional array of allowed categories. If empty or undefined, all categories are allowed.
54
+ * @returns true if the category is allowed (or if no restrictions are set)
55
+ */
56
+ export declare function isCategoryAllowed(category: string, allowedCategories?: ActivityTypeCategory[]): boolean;
57
+ export declare const notificationChannelIdSchema: z.ZodEffects<z.ZodString, string, string>;
58
+ export declare const notificationChannelTriggerIdSchema: z.ZodEffects<z.ZodString, string, string>;
59
+ export declare const notificationRecordIdSchema: z.ZodEffects<z.ZodString, string, string>;
60
+ export declare const EmailChannelSettingsSchema: z.ZodObject<{
61
+ recipients: z.ZodArray<z.ZodString, "many">;
62
+ subjectTemplate: z.ZodOptional<z.ZodString>;
63
+ }, "strip", z.ZodTypeAny, {
64
+ recipients: string[];
65
+ subjectTemplate?: string | undefined;
66
+ }, {
67
+ recipients: string[];
68
+ subjectTemplate?: string | undefined;
69
+ }>;
70
+ export type EmailChannelSettings = z.infer<typeof EmailChannelSettingsSchema>;
71
+ export declare const SlackChannelSettingsSchema: z.ZodEffects<z.ZodObject<{
72
+ webhookUrl: z.ZodOptional<z.ZodString>;
73
+ channelEmail: z.ZodOptional<z.ZodString>;
74
+ }, "strip", z.ZodTypeAny, {
75
+ webhookUrl?: string | undefined;
76
+ channelEmail?: string | undefined;
77
+ }, {
78
+ webhookUrl?: string | undefined;
79
+ channelEmail?: string | undefined;
80
+ }>, {
81
+ webhookUrl?: string | undefined;
82
+ channelEmail?: string | undefined;
83
+ }, {
84
+ webhookUrl?: string | undefined;
85
+ channelEmail?: string | undefined;
86
+ }>;
87
+ export type SlackChannelSettings = z.infer<typeof SlackChannelSettingsSchema>;
88
+ export declare const WebhookChannelSettingsSchema: z.ZodObject<{
89
+ url: z.ZodString;
90
+ method: z.ZodEnum<["POST", "PUT"]>;
91
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
92
+ authType: z.ZodDefault<z.ZodEnum<["none", "bearer", "basic", "api_key"]>>;
93
+ authValue: z.ZodOptional<z.ZodString>;
94
+ }, "strip", z.ZodTypeAny, {
95
+ url: string;
96
+ method: "POST" | "PUT";
97
+ authType: "api_key" | "none" | "bearer" | "basic";
98
+ headers?: Record<string, string> | undefined;
99
+ authValue?: string | undefined;
100
+ }, {
101
+ url: string;
102
+ method: "POST" | "PUT";
103
+ headers?: Record<string, string> | undefined;
104
+ authType?: "api_key" | "none" | "bearer" | "basic" | undefined;
105
+ authValue?: string | undefined;
106
+ }>;
107
+ export type WebhookChannelSettings = z.infer<typeof WebhookChannelSettingsSchema>;
108
+ export declare const NotificationChannelSettingsSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
109
+ type: z.ZodLiteral<NotificationChannelType.EMAIL>;
110
+ config: z.ZodObject<{
111
+ recipients: z.ZodArray<z.ZodString, "many">;
112
+ subjectTemplate: z.ZodOptional<z.ZodString>;
113
+ }, "strip", z.ZodTypeAny, {
114
+ recipients: string[];
115
+ subjectTemplate?: string | undefined;
116
+ }, {
117
+ recipients: string[];
118
+ subjectTemplate?: string | undefined;
119
+ }>;
120
+ }, "strip", z.ZodTypeAny, {
121
+ type: NotificationChannelType.EMAIL;
122
+ config: {
123
+ recipients: string[];
124
+ subjectTemplate?: string | undefined;
125
+ };
126
+ }, {
127
+ type: NotificationChannelType.EMAIL;
128
+ config: {
129
+ recipients: string[];
130
+ subjectTemplate?: string | undefined;
131
+ };
132
+ }>, z.ZodObject<{
133
+ type: z.ZodLiteral<NotificationChannelType.SLACK>;
134
+ config: z.ZodEffects<z.ZodObject<{
135
+ webhookUrl: z.ZodOptional<z.ZodString>;
136
+ channelEmail: z.ZodOptional<z.ZodString>;
137
+ }, "strip", z.ZodTypeAny, {
138
+ webhookUrl?: string | undefined;
139
+ channelEmail?: string | undefined;
140
+ }, {
141
+ webhookUrl?: string | undefined;
142
+ channelEmail?: string | undefined;
143
+ }>, {
144
+ webhookUrl?: string | undefined;
145
+ channelEmail?: string | undefined;
146
+ }, {
147
+ webhookUrl?: string | undefined;
148
+ channelEmail?: string | undefined;
149
+ }>;
150
+ }, "strip", z.ZodTypeAny, {
151
+ type: NotificationChannelType.SLACK;
152
+ config: {
153
+ webhookUrl?: string | undefined;
154
+ channelEmail?: string | undefined;
155
+ };
156
+ }, {
157
+ type: NotificationChannelType.SLACK;
158
+ config: {
159
+ webhookUrl?: string | undefined;
160
+ channelEmail?: string | undefined;
161
+ };
162
+ }>, z.ZodObject<{
163
+ type: z.ZodLiteral<NotificationChannelType.WEBHOOK>;
164
+ config: z.ZodObject<{
165
+ url: z.ZodString;
166
+ method: z.ZodEnum<["POST", "PUT"]>;
167
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
168
+ authType: z.ZodDefault<z.ZodEnum<["none", "bearer", "basic", "api_key"]>>;
169
+ authValue: z.ZodOptional<z.ZodString>;
170
+ }, "strip", z.ZodTypeAny, {
171
+ url: string;
172
+ method: "POST" | "PUT";
173
+ authType: "api_key" | "none" | "bearer" | "basic";
174
+ headers?: Record<string, string> | undefined;
175
+ authValue?: string | undefined;
176
+ }, {
177
+ url: string;
178
+ method: "POST" | "PUT";
179
+ headers?: Record<string, string> | undefined;
180
+ authType?: "api_key" | "none" | "bearer" | "basic" | undefined;
181
+ authValue?: string | undefined;
182
+ }>;
183
+ }, "strip", z.ZodTypeAny, {
184
+ type: NotificationChannelType.WEBHOOK;
185
+ config: {
186
+ url: string;
187
+ method: "POST" | "PUT";
188
+ authType: "api_key" | "none" | "bearer" | "basic";
189
+ headers?: Record<string, string> | undefined;
190
+ authValue?: string | undefined;
191
+ };
192
+ }, {
193
+ type: NotificationChannelType.WEBHOOK;
194
+ config: {
195
+ url: string;
196
+ method: "POST" | "PUT";
197
+ headers?: Record<string, string> | undefined;
198
+ authType?: "api_key" | "none" | "bearer" | "basic" | undefined;
199
+ authValue?: string | undefined;
200
+ };
201
+ }>]>;
202
+ export type NotificationChannelSettings = z.infer<typeof NotificationChannelSettingsSchema>;
203
+ export declare const EmailNotificationPayloadSchema: z.ZodObject<{
204
+ to: z.ZodArray<z.ZodString, "many">;
205
+ subject: z.ZodString;
206
+ body: z.ZodString;
207
+ html: z.ZodOptional<z.ZodString>;
208
+ }, "strip", z.ZodTypeAny, {
209
+ to: string[];
210
+ body: string;
211
+ subject: string;
212
+ html?: string | undefined;
213
+ }, {
214
+ to: string[];
215
+ body: string;
216
+ subject: string;
217
+ html?: string | undefined;
218
+ }>;
219
+ export type EmailNotificationPayload = z.infer<typeof EmailNotificationPayloadSchema>;
220
+ /**
221
+ * Payload for Slack notifications sent via Incoming Webhooks.
222
+ *
223
+ * @property webhookUrl - Slack Incoming Webhook URL
224
+ * @property channelEmail - Slack channel email integration (alternative delivery method)
225
+ * @property message - Plain text message (also serves as fallback for notifications)
226
+ * @property blocks - Optional Slack Block Kit elements for rich message formatting.
227
+ * Blocks allow structured layouts with headers, sections, images, buttons, etc.
228
+ * @see https://docs.slack.dev/messaging/creating-interactive-messages
229
+ */
230
+ export declare const SlackNotificationPayloadSchema: z.ZodObject<{
231
+ webhookUrl: z.ZodOptional<z.ZodString>;
232
+ channelEmail: z.ZodOptional<z.ZodString>;
233
+ message: z.ZodString;
234
+ blocks: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
235
+ }, "strip", z.ZodTypeAny, {
236
+ message: string;
237
+ webhookUrl?: string | undefined;
238
+ channelEmail?: string | undefined;
239
+ blocks?: Record<string, unknown>[] | undefined;
240
+ }, {
241
+ message: string;
242
+ webhookUrl?: string | undefined;
243
+ channelEmail?: string | undefined;
244
+ blocks?: Record<string, unknown>[] | undefined;
245
+ }>;
246
+ export type SlackNotificationPayload = z.infer<typeof SlackNotificationPayloadSchema>;
247
+ export declare const WebhookNotificationPayloadSchema: z.ZodObject<{
248
+ url: z.ZodString;
249
+ method: z.ZodEnum<["POST", "PUT"]>;
250
+ headers: z.ZodRecord<z.ZodString, z.ZodString>;
251
+ body: z.ZodRecord<z.ZodString, z.ZodUnknown>;
252
+ }, "strip", z.ZodTypeAny, {
253
+ headers: Record<string, string>;
254
+ url: string;
255
+ method: "POST" | "PUT";
256
+ body: Record<string, unknown>;
257
+ }, {
258
+ headers: Record<string, string>;
259
+ url: string;
260
+ method: "POST" | "PUT";
261
+ body: Record<string, unknown>;
262
+ }>;
263
+ export type WebhookNotificationPayload = z.infer<typeof WebhookNotificationPayloadSchema>;
264
+ export declare const NotificationPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
265
+ type: z.ZodLiteral<NotificationChannelType.EMAIL>;
266
+ data: z.ZodObject<{
267
+ to: z.ZodArray<z.ZodString, "many">;
268
+ subject: z.ZodString;
269
+ body: z.ZodString;
270
+ html: z.ZodOptional<z.ZodString>;
271
+ }, "strip", z.ZodTypeAny, {
272
+ to: string[];
273
+ body: string;
274
+ subject: string;
275
+ html?: string | undefined;
276
+ }, {
277
+ to: string[];
278
+ body: string;
279
+ subject: string;
280
+ html?: string | undefined;
281
+ }>;
282
+ }, "strip", z.ZodTypeAny, {
283
+ type: NotificationChannelType.EMAIL;
284
+ data: {
285
+ to: string[];
286
+ body: string;
287
+ subject: string;
288
+ html?: string | undefined;
289
+ };
290
+ }, {
291
+ type: NotificationChannelType.EMAIL;
292
+ data: {
293
+ to: string[];
294
+ body: string;
295
+ subject: string;
296
+ html?: string | undefined;
297
+ };
298
+ }>, z.ZodObject<{
299
+ type: z.ZodLiteral<NotificationChannelType.SLACK>;
300
+ data: z.ZodObject<{
301
+ webhookUrl: z.ZodOptional<z.ZodString>;
302
+ channelEmail: z.ZodOptional<z.ZodString>;
303
+ message: z.ZodString;
304
+ blocks: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
305
+ }, "strip", z.ZodTypeAny, {
306
+ message: string;
307
+ webhookUrl?: string | undefined;
308
+ channelEmail?: string | undefined;
309
+ blocks?: Record<string, unknown>[] | undefined;
310
+ }, {
311
+ message: string;
312
+ webhookUrl?: string | undefined;
313
+ channelEmail?: string | undefined;
314
+ blocks?: Record<string, unknown>[] | undefined;
315
+ }>;
316
+ }, "strip", z.ZodTypeAny, {
317
+ type: NotificationChannelType.SLACK;
318
+ data: {
319
+ message: string;
320
+ webhookUrl?: string | undefined;
321
+ channelEmail?: string | undefined;
322
+ blocks?: Record<string, unknown>[] | undefined;
323
+ };
324
+ }, {
325
+ type: NotificationChannelType.SLACK;
326
+ data: {
327
+ message: string;
328
+ webhookUrl?: string | undefined;
329
+ channelEmail?: string | undefined;
330
+ blocks?: Record<string, unknown>[] | undefined;
331
+ };
332
+ }>, z.ZodObject<{
333
+ type: z.ZodLiteral<NotificationChannelType.WEBHOOK>;
334
+ data: z.ZodObject<{
335
+ url: z.ZodString;
336
+ method: z.ZodEnum<["POST", "PUT"]>;
337
+ headers: z.ZodRecord<z.ZodString, z.ZodString>;
338
+ body: z.ZodRecord<z.ZodString, z.ZodUnknown>;
339
+ }, "strip", z.ZodTypeAny, {
340
+ headers: Record<string, string>;
341
+ url: string;
342
+ method: "POST" | "PUT";
343
+ body: Record<string, unknown>;
344
+ }, {
345
+ headers: Record<string, string>;
346
+ url: string;
347
+ method: "POST" | "PUT";
348
+ body: Record<string, unknown>;
349
+ }>;
350
+ }, "strip", z.ZodTypeAny, {
351
+ type: NotificationChannelType.WEBHOOK;
352
+ data: {
353
+ headers: Record<string, string>;
354
+ url: string;
355
+ method: "POST" | "PUT";
356
+ body: Record<string, unknown>;
357
+ };
358
+ }, {
359
+ type: NotificationChannelType.WEBHOOK;
360
+ data: {
361
+ headers: Record<string, string>;
362
+ url: string;
363
+ method: "POST" | "PUT";
364
+ body: Record<string, unknown>;
365
+ };
366
+ }>]>;
367
+ export type NotificationPayload = z.infer<typeof NotificationPayloadSchema>;
368
+ export declare const EmailNotificationResponseSchema: z.ZodObject<{
369
+ messageId: z.ZodOptional<z.ZodString>;
370
+ accepted: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
371
+ rejected: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
372
+ }, "strip", z.ZodTypeAny, {
373
+ rejected?: string[] | undefined;
374
+ messageId?: string | undefined;
375
+ accepted?: string[] | undefined;
376
+ }, {
377
+ rejected?: string[] | undefined;
378
+ messageId?: string | undefined;
379
+ accepted?: string[] | undefined;
380
+ }>;
381
+ export type EmailNotificationResponse = z.infer<typeof EmailNotificationResponseSchema>;
382
+ export declare const SlackNotificationResponseSchema: z.ZodObject<{
383
+ ok: z.ZodOptional<z.ZodBoolean>;
384
+ error: z.ZodOptional<z.ZodString>;
385
+ responseBody: z.ZodOptional<z.ZodString>;
386
+ }, "strip", z.ZodTypeAny, {
387
+ error?: string | undefined;
388
+ responseBody?: string | undefined;
389
+ ok?: boolean | undefined;
390
+ }, {
391
+ error?: string | undefined;
392
+ responseBody?: string | undefined;
393
+ ok?: boolean | undefined;
394
+ }>;
395
+ export type SlackNotificationResponse = z.infer<typeof SlackNotificationResponseSchema>;
396
+ export declare const WebhookNotificationResponseSchema: z.ZodObject<{
397
+ statusCode: z.ZodNumber;
398
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
399
+ body: z.ZodOptional<z.ZodUnknown>;
400
+ }, "strip", z.ZodTypeAny, {
401
+ statusCode: number;
402
+ headers?: Record<string, string> | undefined;
403
+ body?: unknown;
404
+ }, {
405
+ statusCode: number;
406
+ headers?: Record<string, string> | undefined;
407
+ body?: unknown;
408
+ }>;
409
+ export type WebhookNotificationResponse = z.infer<typeof WebhookNotificationResponseSchema>;
410
+ export declare const NotificationResponseSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
411
+ type: z.ZodLiteral<NotificationChannelType.EMAIL>;
412
+ data: z.ZodObject<{
413
+ messageId: z.ZodOptional<z.ZodString>;
414
+ accepted: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
415
+ rejected: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
416
+ }, "strip", z.ZodTypeAny, {
417
+ rejected?: string[] | undefined;
418
+ messageId?: string | undefined;
419
+ accepted?: string[] | undefined;
420
+ }, {
421
+ rejected?: string[] | undefined;
422
+ messageId?: string | undefined;
423
+ accepted?: string[] | undefined;
424
+ }>;
425
+ }, "strip", z.ZodTypeAny, {
426
+ type: NotificationChannelType.EMAIL;
427
+ data: {
428
+ rejected?: string[] | undefined;
429
+ messageId?: string | undefined;
430
+ accepted?: string[] | undefined;
431
+ };
432
+ }, {
433
+ type: NotificationChannelType.EMAIL;
434
+ data: {
435
+ rejected?: string[] | undefined;
436
+ messageId?: string | undefined;
437
+ accepted?: string[] | undefined;
438
+ };
439
+ }>, z.ZodObject<{
440
+ type: z.ZodLiteral<NotificationChannelType.SLACK>;
441
+ data: z.ZodObject<{
442
+ ok: z.ZodOptional<z.ZodBoolean>;
443
+ error: z.ZodOptional<z.ZodString>;
444
+ responseBody: z.ZodOptional<z.ZodString>;
445
+ }, "strip", z.ZodTypeAny, {
446
+ error?: string | undefined;
447
+ responseBody?: string | undefined;
448
+ ok?: boolean | undefined;
449
+ }, {
450
+ error?: string | undefined;
451
+ responseBody?: string | undefined;
452
+ ok?: boolean | undefined;
453
+ }>;
454
+ }, "strip", z.ZodTypeAny, {
455
+ type: NotificationChannelType.SLACK;
456
+ data: {
457
+ error?: string | undefined;
458
+ responseBody?: string | undefined;
459
+ ok?: boolean | undefined;
460
+ };
461
+ }, {
462
+ type: NotificationChannelType.SLACK;
463
+ data: {
464
+ error?: string | undefined;
465
+ responseBody?: string | undefined;
466
+ ok?: boolean | undefined;
467
+ };
468
+ }>, z.ZodObject<{
469
+ type: z.ZodLiteral<NotificationChannelType.WEBHOOK>;
470
+ data: z.ZodObject<{
471
+ statusCode: z.ZodNumber;
472
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
473
+ body: z.ZodOptional<z.ZodUnknown>;
474
+ }, "strip", z.ZodTypeAny, {
475
+ statusCode: number;
476
+ headers?: Record<string, string> | undefined;
477
+ body?: unknown;
478
+ }, {
479
+ statusCode: number;
480
+ headers?: Record<string, string> | undefined;
481
+ body?: unknown;
482
+ }>;
483
+ }, "strip", z.ZodTypeAny, {
484
+ type: NotificationChannelType.WEBHOOK;
485
+ data: {
486
+ statusCode: number;
487
+ headers?: Record<string, string> | undefined;
488
+ body?: unknown;
489
+ };
490
+ }, {
491
+ type: NotificationChannelType.WEBHOOK;
492
+ data: {
493
+ statusCode: number;
494
+ headers?: Record<string, string> | undefined;
495
+ body?: unknown;
496
+ };
497
+ }>]>;
498
+ export type NotificationResponse = z.infer<typeof NotificationResponseSchema>;
499
+ export declare const INotificationChannelZod: z.ZodObject<{
500
+ __entity: z.ZodOptional<z.ZodString>;
501
+ createdAt: z.ZodUnion<[z.ZodString, z.ZodDate]>;
502
+ updatedAt: z.ZodUnion<[z.ZodString, z.ZodDate]>;
503
+ deletedAt: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodDate]>>;
504
+ } & {
505
+ id: z.ZodEffects<z.ZodString, string, string>;
506
+ accountSettingsId: z.ZodString;
507
+ channelType: z.ZodNativeEnum<typeof NotificationChannelType>;
508
+ name: z.ZodString;
509
+ enabled: z.ZodBoolean;
510
+ settings: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
511
+ type: z.ZodLiteral<NotificationChannelType.EMAIL>;
512
+ config: z.ZodObject<{
513
+ recipients: z.ZodArray<z.ZodString, "many">;
514
+ subjectTemplate: z.ZodOptional<z.ZodString>;
515
+ }, "strip", z.ZodTypeAny, {
516
+ recipients: string[];
517
+ subjectTemplate?: string | undefined;
518
+ }, {
519
+ recipients: string[];
520
+ subjectTemplate?: string | undefined;
521
+ }>;
522
+ }, "strip", z.ZodTypeAny, {
523
+ type: NotificationChannelType.EMAIL;
524
+ config: {
525
+ recipients: string[];
526
+ subjectTemplate?: string | undefined;
527
+ };
528
+ }, {
529
+ type: NotificationChannelType.EMAIL;
530
+ config: {
531
+ recipients: string[];
532
+ subjectTemplate?: string | undefined;
533
+ };
534
+ }>, z.ZodObject<{
535
+ type: z.ZodLiteral<NotificationChannelType.SLACK>;
536
+ config: z.ZodEffects<z.ZodObject<{
537
+ webhookUrl: z.ZodOptional<z.ZodString>;
538
+ channelEmail: z.ZodOptional<z.ZodString>;
539
+ }, "strip", z.ZodTypeAny, {
540
+ webhookUrl?: string | undefined;
541
+ channelEmail?: string | undefined;
542
+ }, {
543
+ webhookUrl?: string | undefined;
544
+ channelEmail?: string | undefined;
545
+ }>, {
546
+ webhookUrl?: string | undefined;
547
+ channelEmail?: string | undefined;
548
+ }, {
549
+ webhookUrl?: string | undefined;
550
+ channelEmail?: string | undefined;
551
+ }>;
552
+ }, "strip", z.ZodTypeAny, {
553
+ type: NotificationChannelType.SLACK;
554
+ config: {
555
+ webhookUrl?: string | undefined;
556
+ channelEmail?: string | undefined;
557
+ };
558
+ }, {
559
+ type: NotificationChannelType.SLACK;
560
+ config: {
561
+ webhookUrl?: string | undefined;
562
+ channelEmail?: string | undefined;
563
+ };
564
+ }>, z.ZodObject<{
565
+ type: z.ZodLiteral<NotificationChannelType.WEBHOOK>;
566
+ config: z.ZodObject<{
567
+ url: z.ZodString;
568
+ method: z.ZodEnum<["POST", "PUT"]>;
569
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
570
+ authType: z.ZodDefault<z.ZodEnum<["none", "bearer", "basic", "api_key"]>>;
571
+ authValue: z.ZodOptional<z.ZodString>;
572
+ }, "strip", z.ZodTypeAny, {
573
+ url: string;
574
+ method: "POST" | "PUT";
575
+ authType: "api_key" | "none" | "bearer" | "basic";
576
+ headers?: Record<string, string> | undefined;
577
+ authValue?: string | undefined;
578
+ }, {
579
+ url: string;
580
+ method: "POST" | "PUT";
581
+ headers?: Record<string, string> | undefined;
582
+ authType?: "api_key" | "none" | "bearer" | "basic" | undefined;
583
+ authValue?: string | undefined;
584
+ }>;
585
+ }, "strip", z.ZodTypeAny, {
586
+ type: NotificationChannelType.WEBHOOK;
587
+ config: {
588
+ url: string;
589
+ method: "POST" | "PUT";
590
+ authType: "api_key" | "none" | "bearer" | "basic";
591
+ headers?: Record<string, string> | undefined;
592
+ authValue?: string | undefined;
593
+ };
594
+ }, {
595
+ type: NotificationChannelType.WEBHOOK;
596
+ config: {
597
+ url: string;
598
+ method: "POST" | "PUT";
599
+ headers?: Record<string, string> | undefined;
600
+ authType?: "api_key" | "none" | "bearer" | "basic" | undefined;
601
+ authValue?: string | undefined;
602
+ };
603
+ }>]>;
604
+ }, "strip", z.ZodTypeAny, {
605
+ id: string;
606
+ createdAt: string | Date;
607
+ updatedAt: string | Date;
608
+ deletedAt: string | Date | null;
609
+ name: string;
610
+ enabled: boolean;
611
+ settings: {
612
+ type: NotificationChannelType.EMAIL;
613
+ config: {
614
+ recipients: string[];
615
+ subjectTemplate?: string | undefined;
616
+ };
617
+ } | {
618
+ type: NotificationChannelType.SLACK;
619
+ config: {
620
+ webhookUrl?: string | undefined;
621
+ channelEmail?: string | undefined;
622
+ };
623
+ } | {
624
+ type: NotificationChannelType.WEBHOOK;
625
+ config: {
626
+ url: string;
627
+ method: "POST" | "PUT";
628
+ authType: "api_key" | "none" | "bearer" | "basic";
629
+ headers?: Record<string, string> | undefined;
630
+ authValue?: string | undefined;
631
+ };
632
+ };
633
+ accountSettingsId: string;
634
+ channelType: NotificationChannelType;
635
+ __entity?: string | undefined;
636
+ }, {
637
+ id: string;
638
+ createdAt: string | Date;
639
+ updatedAt: string | Date;
640
+ deletedAt: string | Date | null;
641
+ name: string;
642
+ enabled: boolean;
643
+ settings: {
644
+ type: NotificationChannelType.EMAIL;
645
+ config: {
646
+ recipients: string[];
647
+ subjectTemplate?: string | undefined;
648
+ };
649
+ } | {
650
+ type: NotificationChannelType.SLACK;
651
+ config: {
652
+ webhookUrl?: string | undefined;
653
+ channelEmail?: string | undefined;
654
+ };
655
+ } | {
656
+ type: NotificationChannelType.WEBHOOK;
657
+ config: {
658
+ url: string;
659
+ method: "POST" | "PUT";
660
+ headers?: Record<string, string> | undefined;
661
+ authType?: "api_key" | "none" | "bearer" | "basic" | undefined;
662
+ authValue?: string | undefined;
663
+ };
664
+ };
665
+ accountSettingsId: string;
666
+ channelType: NotificationChannelType;
667
+ __entity?: string | undefined;
668
+ }>;
669
+ export type INotificationChannelZod = z.infer<typeof INotificationChannelZod>;
670
+ export declare const INotificationChannelTriggerZod: z.ZodObject<{
671
+ __entity: z.ZodOptional<z.ZodString>;
672
+ createdAt: z.ZodUnion<[z.ZodString, z.ZodDate]>;
673
+ updatedAt: z.ZodUnion<[z.ZodString, z.ZodDate]>;
674
+ deletedAt: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodDate]>>;
675
+ } & {
676
+ id: z.ZodEffects<z.ZodString, string, string>;
677
+ notificationChannelId: z.ZodEffects<z.ZodString, string, string>;
678
+ activityTypeId: z.ZodString;
679
+ enabled: z.ZodBoolean;
680
+ }, "strip", z.ZodTypeAny, {
681
+ id: string;
682
+ createdAt: string | Date;
683
+ updatedAt: string | Date;
684
+ deletedAt: string | Date | null;
685
+ enabled: boolean;
686
+ activityTypeId: string;
687
+ notificationChannelId: string;
688
+ __entity?: string | undefined;
689
+ }, {
690
+ id: string;
691
+ createdAt: string | Date;
692
+ updatedAt: string | Date;
693
+ deletedAt: string | Date | null;
694
+ enabled: boolean;
695
+ activityTypeId: string;
696
+ notificationChannelId: string;
697
+ __entity?: string | undefined;
698
+ }>;
699
+ export type INotificationChannelTriggerZod = z.infer<typeof INotificationChannelTriggerZod>;
700
+ export declare const IAvailableTriggerZod: z.ZodObject<{
701
+ activityTypeId: z.ZodString;
702
+ category: z.ZodString;
703
+ resource: z.ZodString;
704
+ action: z.ZodString;
705
+ enabled: z.ZodBoolean;
706
+ trigger: z.ZodNullable<z.ZodObject<{
707
+ __entity: z.ZodOptional<z.ZodString>;
708
+ createdAt: z.ZodUnion<[z.ZodString, z.ZodDate]>;
709
+ updatedAt: z.ZodUnion<[z.ZodString, z.ZodDate]>;
710
+ deletedAt: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodDate]>>;
711
+ } & {
712
+ id: z.ZodEffects<z.ZodString, string, string>;
713
+ notificationChannelId: z.ZodEffects<z.ZodString, string, string>;
714
+ activityTypeId: z.ZodString;
715
+ enabled: z.ZodBoolean;
716
+ }, "strip", z.ZodTypeAny, {
717
+ id: string;
718
+ createdAt: string | Date;
719
+ updatedAt: string | Date;
720
+ deletedAt: string | Date | null;
721
+ enabled: boolean;
722
+ activityTypeId: string;
723
+ notificationChannelId: string;
724
+ __entity?: string | undefined;
725
+ }, {
726
+ id: string;
727
+ createdAt: string | Date;
728
+ updatedAt: string | Date;
729
+ deletedAt: string | Date | null;
730
+ enabled: boolean;
731
+ activityTypeId: string;
732
+ notificationChannelId: string;
733
+ __entity?: string | undefined;
734
+ }>>;
735
+ }, "strip", z.ZodTypeAny, {
736
+ enabled: boolean;
737
+ category: string;
738
+ action: string;
739
+ resource: string;
740
+ activityTypeId: string;
741
+ trigger: {
742
+ id: string;
743
+ createdAt: string | Date;
744
+ updatedAt: string | Date;
745
+ deletedAt: string | Date | null;
746
+ enabled: boolean;
747
+ activityTypeId: string;
748
+ notificationChannelId: string;
749
+ __entity?: string | undefined;
750
+ } | null;
751
+ }, {
752
+ enabled: boolean;
753
+ category: string;
754
+ action: string;
755
+ resource: string;
756
+ activityTypeId: string;
757
+ trigger: {
758
+ id: string;
759
+ createdAt: string | Date;
760
+ updatedAt: string | Date;
761
+ deletedAt: string | Date | null;
762
+ enabled: boolean;
763
+ activityTypeId: string;
764
+ notificationChannelId: string;
765
+ __entity?: string | undefined;
766
+ } | null;
767
+ }>;
768
+ export type IAvailableTriggerZod = z.infer<typeof IAvailableTriggerZod>;
769
+ export declare const IAvailableTriggersResponse: z.ZodObject<{
770
+ items: z.ZodArray<z.ZodObject<{
771
+ activityTypeId: z.ZodString;
772
+ category: z.ZodString;
773
+ resource: z.ZodString;
774
+ action: z.ZodString;
775
+ enabled: z.ZodBoolean;
776
+ trigger: z.ZodNullable<z.ZodObject<{
777
+ __entity: z.ZodOptional<z.ZodString>;
778
+ createdAt: z.ZodUnion<[z.ZodString, z.ZodDate]>;
779
+ updatedAt: z.ZodUnion<[z.ZodString, z.ZodDate]>;
780
+ deletedAt: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodDate]>>;
781
+ } & {
782
+ id: z.ZodEffects<z.ZodString, string, string>;
783
+ notificationChannelId: z.ZodEffects<z.ZodString, string, string>;
784
+ activityTypeId: z.ZodString;
785
+ enabled: z.ZodBoolean;
786
+ }, "strip", z.ZodTypeAny, {
787
+ id: string;
788
+ createdAt: string | Date;
789
+ updatedAt: string | Date;
790
+ deletedAt: string | Date | null;
791
+ enabled: boolean;
792
+ activityTypeId: string;
793
+ notificationChannelId: string;
794
+ __entity?: string | undefined;
795
+ }, {
796
+ id: string;
797
+ createdAt: string | Date;
798
+ updatedAt: string | Date;
799
+ deletedAt: string | Date | null;
800
+ enabled: boolean;
801
+ activityTypeId: string;
802
+ notificationChannelId: string;
803
+ __entity?: string | undefined;
804
+ }>>;
805
+ }, "strip", z.ZodTypeAny, {
806
+ enabled: boolean;
807
+ category: string;
808
+ action: string;
809
+ resource: string;
810
+ activityTypeId: string;
811
+ trigger: {
812
+ id: string;
813
+ createdAt: string | Date;
814
+ updatedAt: string | Date;
815
+ deletedAt: string | Date | null;
816
+ enabled: boolean;
817
+ activityTypeId: string;
818
+ notificationChannelId: string;
819
+ __entity?: string | undefined;
820
+ } | null;
821
+ }, {
822
+ enabled: boolean;
823
+ category: string;
824
+ action: string;
825
+ resource: string;
826
+ activityTypeId: string;
827
+ trigger: {
828
+ id: string;
829
+ createdAt: string | Date;
830
+ updatedAt: string | Date;
831
+ deletedAt: string | Date | null;
832
+ enabled: boolean;
833
+ activityTypeId: string;
834
+ notificationChannelId: string;
835
+ __entity?: string | undefined;
836
+ } | null;
837
+ }>, "many">;
838
+ }, "strip", z.ZodTypeAny, {
839
+ items: {
840
+ enabled: boolean;
841
+ category: string;
842
+ action: string;
843
+ resource: string;
844
+ activityTypeId: string;
845
+ trigger: {
846
+ id: string;
847
+ createdAt: string | Date;
848
+ updatedAt: string | Date;
849
+ deletedAt: string | Date | null;
850
+ enabled: boolean;
851
+ activityTypeId: string;
852
+ notificationChannelId: string;
853
+ __entity?: string | undefined;
854
+ } | null;
855
+ }[];
856
+ }, {
857
+ items: {
858
+ enabled: boolean;
859
+ category: string;
860
+ action: string;
861
+ resource: string;
862
+ activityTypeId: string;
863
+ trigger: {
864
+ id: string;
865
+ createdAt: string | Date;
866
+ updatedAt: string | Date;
867
+ deletedAt: string | Date | null;
868
+ enabled: boolean;
869
+ activityTypeId: string;
870
+ notificationChannelId: string;
871
+ __entity?: string | undefined;
872
+ } | null;
873
+ }[];
874
+ }>;
875
+ export type IAvailableTriggersResponse = z.infer<typeof IAvailableTriggersResponse>;
876
+ export declare const INotificationRecordZod: z.ZodObject<{
877
+ __entity: z.ZodOptional<z.ZodString>;
878
+ createdAt: z.ZodUnion<[z.ZodString, z.ZodDate]>;
879
+ updatedAt: z.ZodUnion<[z.ZodString, z.ZodDate]>;
880
+ deletedAt: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodDate]>>;
881
+ } & {
882
+ id: z.ZodEffects<z.ZodString, string, string>;
883
+ notificationChannelId: z.ZodEffects<z.ZodString, string, string>;
884
+ activityId: z.ZodNullable<z.ZodString>;
885
+ targetTable: z.ZodString;
886
+ targetId: z.ZodString;
887
+ status: z.ZodNativeEnum<typeof NotificationRecordStatus>;
888
+ payload: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
889
+ type: z.ZodLiteral<NotificationChannelType.EMAIL>;
890
+ data: z.ZodObject<{
891
+ to: z.ZodArray<z.ZodString, "many">;
892
+ subject: z.ZodString;
893
+ body: z.ZodString;
894
+ html: z.ZodOptional<z.ZodString>;
895
+ }, "strip", z.ZodTypeAny, {
896
+ to: string[];
897
+ body: string;
898
+ subject: string;
899
+ html?: string | undefined;
900
+ }, {
901
+ to: string[];
902
+ body: string;
903
+ subject: string;
904
+ html?: string | undefined;
905
+ }>;
906
+ }, "strip", z.ZodTypeAny, {
907
+ type: NotificationChannelType.EMAIL;
908
+ data: {
909
+ to: string[];
910
+ body: string;
911
+ subject: string;
912
+ html?: string | undefined;
913
+ };
914
+ }, {
915
+ type: NotificationChannelType.EMAIL;
916
+ data: {
917
+ to: string[];
918
+ body: string;
919
+ subject: string;
920
+ html?: string | undefined;
921
+ };
922
+ }>, z.ZodObject<{
923
+ type: z.ZodLiteral<NotificationChannelType.SLACK>;
924
+ data: z.ZodObject<{
925
+ webhookUrl: z.ZodOptional<z.ZodString>;
926
+ channelEmail: z.ZodOptional<z.ZodString>;
927
+ message: z.ZodString;
928
+ blocks: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
929
+ }, "strip", z.ZodTypeAny, {
930
+ message: string;
931
+ webhookUrl?: string | undefined;
932
+ channelEmail?: string | undefined;
933
+ blocks?: Record<string, unknown>[] | undefined;
934
+ }, {
935
+ message: string;
936
+ webhookUrl?: string | undefined;
937
+ channelEmail?: string | undefined;
938
+ blocks?: Record<string, unknown>[] | undefined;
939
+ }>;
940
+ }, "strip", z.ZodTypeAny, {
941
+ type: NotificationChannelType.SLACK;
942
+ data: {
943
+ message: string;
944
+ webhookUrl?: string | undefined;
945
+ channelEmail?: string | undefined;
946
+ blocks?: Record<string, unknown>[] | undefined;
947
+ };
948
+ }, {
949
+ type: NotificationChannelType.SLACK;
950
+ data: {
951
+ message: string;
952
+ webhookUrl?: string | undefined;
953
+ channelEmail?: string | undefined;
954
+ blocks?: Record<string, unknown>[] | undefined;
955
+ };
956
+ }>, z.ZodObject<{
957
+ type: z.ZodLiteral<NotificationChannelType.WEBHOOK>;
958
+ data: z.ZodObject<{
959
+ url: z.ZodString;
960
+ method: z.ZodEnum<["POST", "PUT"]>;
961
+ headers: z.ZodRecord<z.ZodString, z.ZodString>;
962
+ body: z.ZodRecord<z.ZodString, z.ZodUnknown>;
963
+ }, "strip", z.ZodTypeAny, {
964
+ headers: Record<string, string>;
965
+ url: string;
966
+ method: "POST" | "PUT";
967
+ body: Record<string, unknown>;
968
+ }, {
969
+ headers: Record<string, string>;
970
+ url: string;
971
+ method: "POST" | "PUT";
972
+ body: Record<string, unknown>;
973
+ }>;
974
+ }, "strip", z.ZodTypeAny, {
975
+ type: NotificationChannelType.WEBHOOK;
976
+ data: {
977
+ headers: Record<string, string>;
978
+ url: string;
979
+ method: "POST" | "PUT";
980
+ body: Record<string, unknown>;
981
+ };
982
+ }, {
983
+ type: NotificationChannelType.WEBHOOK;
984
+ data: {
985
+ headers: Record<string, string>;
986
+ url: string;
987
+ method: "POST" | "PUT";
988
+ body: Record<string, unknown>;
989
+ };
990
+ }>]>;
991
+ response: z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
992
+ type: z.ZodLiteral<NotificationChannelType.EMAIL>;
993
+ data: z.ZodObject<{
994
+ messageId: z.ZodOptional<z.ZodString>;
995
+ accepted: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
996
+ rejected: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
997
+ }, "strip", z.ZodTypeAny, {
998
+ rejected?: string[] | undefined;
999
+ messageId?: string | undefined;
1000
+ accepted?: string[] | undefined;
1001
+ }, {
1002
+ rejected?: string[] | undefined;
1003
+ messageId?: string | undefined;
1004
+ accepted?: string[] | undefined;
1005
+ }>;
1006
+ }, "strip", z.ZodTypeAny, {
1007
+ type: NotificationChannelType.EMAIL;
1008
+ data: {
1009
+ rejected?: string[] | undefined;
1010
+ messageId?: string | undefined;
1011
+ accepted?: string[] | undefined;
1012
+ };
1013
+ }, {
1014
+ type: NotificationChannelType.EMAIL;
1015
+ data: {
1016
+ rejected?: string[] | undefined;
1017
+ messageId?: string | undefined;
1018
+ accepted?: string[] | undefined;
1019
+ };
1020
+ }>, z.ZodObject<{
1021
+ type: z.ZodLiteral<NotificationChannelType.SLACK>;
1022
+ data: z.ZodObject<{
1023
+ ok: z.ZodOptional<z.ZodBoolean>;
1024
+ error: z.ZodOptional<z.ZodString>;
1025
+ responseBody: z.ZodOptional<z.ZodString>;
1026
+ }, "strip", z.ZodTypeAny, {
1027
+ error?: string | undefined;
1028
+ responseBody?: string | undefined;
1029
+ ok?: boolean | undefined;
1030
+ }, {
1031
+ error?: string | undefined;
1032
+ responseBody?: string | undefined;
1033
+ ok?: boolean | undefined;
1034
+ }>;
1035
+ }, "strip", z.ZodTypeAny, {
1036
+ type: NotificationChannelType.SLACK;
1037
+ data: {
1038
+ error?: string | undefined;
1039
+ responseBody?: string | undefined;
1040
+ ok?: boolean | undefined;
1041
+ };
1042
+ }, {
1043
+ type: NotificationChannelType.SLACK;
1044
+ data: {
1045
+ error?: string | undefined;
1046
+ responseBody?: string | undefined;
1047
+ ok?: boolean | undefined;
1048
+ };
1049
+ }>, z.ZodObject<{
1050
+ type: z.ZodLiteral<NotificationChannelType.WEBHOOK>;
1051
+ data: z.ZodObject<{
1052
+ statusCode: z.ZodNumber;
1053
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1054
+ body: z.ZodOptional<z.ZodUnknown>;
1055
+ }, "strip", z.ZodTypeAny, {
1056
+ statusCode: number;
1057
+ headers?: Record<string, string> | undefined;
1058
+ body?: unknown;
1059
+ }, {
1060
+ statusCode: number;
1061
+ headers?: Record<string, string> | undefined;
1062
+ body?: unknown;
1063
+ }>;
1064
+ }, "strip", z.ZodTypeAny, {
1065
+ type: NotificationChannelType.WEBHOOK;
1066
+ data: {
1067
+ statusCode: number;
1068
+ headers?: Record<string, string> | undefined;
1069
+ body?: unknown;
1070
+ };
1071
+ }, {
1072
+ type: NotificationChannelType.WEBHOOK;
1073
+ data: {
1074
+ statusCode: number;
1075
+ headers?: Record<string, string> | undefined;
1076
+ body?: unknown;
1077
+ };
1078
+ }>]>>;
1079
+ errorMessage: z.ZodNullable<z.ZodString>;
1080
+ retryCount: z.ZodNumber;
1081
+ sentAt: z.ZodNullable<z.ZodDate>;
1082
+ }, "strip", z.ZodTypeAny, {
1083
+ status: NotificationRecordStatus;
1084
+ id: string;
1085
+ createdAt: string | Date;
1086
+ updatedAt: string | Date;
1087
+ deletedAt: string | Date | null;
1088
+ activityId: string | null;
1089
+ targetId: string;
1090
+ targetTable: string;
1091
+ payload: {
1092
+ type: NotificationChannelType.EMAIL;
1093
+ data: {
1094
+ to: string[];
1095
+ body: string;
1096
+ subject: string;
1097
+ html?: string | undefined;
1098
+ };
1099
+ } | {
1100
+ type: NotificationChannelType.SLACK;
1101
+ data: {
1102
+ message: string;
1103
+ webhookUrl?: string | undefined;
1104
+ channelEmail?: string | undefined;
1105
+ blocks?: Record<string, unknown>[] | undefined;
1106
+ };
1107
+ } | {
1108
+ type: NotificationChannelType.WEBHOOK;
1109
+ data: {
1110
+ headers: Record<string, string>;
1111
+ url: string;
1112
+ method: "POST" | "PUT";
1113
+ body: Record<string, unknown>;
1114
+ };
1115
+ };
1116
+ response: {
1117
+ type: NotificationChannelType.EMAIL;
1118
+ data: {
1119
+ rejected?: string[] | undefined;
1120
+ messageId?: string | undefined;
1121
+ accepted?: string[] | undefined;
1122
+ };
1123
+ } | {
1124
+ type: NotificationChannelType.SLACK;
1125
+ data: {
1126
+ error?: string | undefined;
1127
+ responseBody?: string | undefined;
1128
+ ok?: boolean | undefined;
1129
+ };
1130
+ } | {
1131
+ type: NotificationChannelType.WEBHOOK;
1132
+ data: {
1133
+ statusCode: number;
1134
+ headers?: Record<string, string> | undefined;
1135
+ body?: unknown;
1136
+ };
1137
+ } | null;
1138
+ errorMessage: string | null;
1139
+ notificationChannelId: string;
1140
+ retryCount: number;
1141
+ sentAt: Date | null;
1142
+ __entity?: string | undefined;
1143
+ }, {
1144
+ status: NotificationRecordStatus;
1145
+ id: string;
1146
+ createdAt: string | Date;
1147
+ updatedAt: string | Date;
1148
+ deletedAt: string | Date | null;
1149
+ activityId: string | null;
1150
+ targetId: string;
1151
+ targetTable: string;
1152
+ payload: {
1153
+ type: NotificationChannelType.EMAIL;
1154
+ data: {
1155
+ to: string[];
1156
+ body: string;
1157
+ subject: string;
1158
+ html?: string | undefined;
1159
+ };
1160
+ } | {
1161
+ type: NotificationChannelType.SLACK;
1162
+ data: {
1163
+ message: string;
1164
+ webhookUrl?: string | undefined;
1165
+ channelEmail?: string | undefined;
1166
+ blocks?: Record<string, unknown>[] | undefined;
1167
+ };
1168
+ } | {
1169
+ type: NotificationChannelType.WEBHOOK;
1170
+ data: {
1171
+ headers: Record<string, string>;
1172
+ url: string;
1173
+ method: "POST" | "PUT";
1174
+ body: Record<string, unknown>;
1175
+ };
1176
+ };
1177
+ response: {
1178
+ type: NotificationChannelType.EMAIL;
1179
+ data: {
1180
+ rejected?: string[] | undefined;
1181
+ messageId?: string | undefined;
1182
+ accepted?: string[] | undefined;
1183
+ };
1184
+ } | {
1185
+ type: NotificationChannelType.SLACK;
1186
+ data: {
1187
+ error?: string | undefined;
1188
+ responseBody?: string | undefined;
1189
+ ok?: boolean | undefined;
1190
+ };
1191
+ } | {
1192
+ type: NotificationChannelType.WEBHOOK;
1193
+ data: {
1194
+ statusCode: number;
1195
+ headers?: Record<string, string> | undefined;
1196
+ body?: unknown;
1197
+ };
1198
+ } | null;
1199
+ errorMessage: string | null;
1200
+ notificationChannelId: string;
1201
+ retryCount: number;
1202
+ sentAt: Date | null;
1203
+ __entity?: string | undefined;
1204
+ }>;
1205
+ export type INotificationRecordZod = z.infer<typeof INotificationRecordZod>;
1206
+ export declare const CreateChannelInputSchema: z.ZodEffects<z.ZodObject<{
1207
+ accountSettingsId: z.ZodString;
1208
+ channelType: z.ZodNativeEnum<typeof NotificationChannelType>;
1209
+ name: z.ZodString;
1210
+ enabled: z.ZodOptional<z.ZodBoolean>;
1211
+ settings: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1212
+ type: z.ZodLiteral<NotificationChannelType.EMAIL>;
1213
+ config: z.ZodObject<{
1214
+ recipients: z.ZodArray<z.ZodString, "many">;
1215
+ subjectTemplate: z.ZodOptional<z.ZodString>;
1216
+ }, "strip", z.ZodTypeAny, {
1217
+ recipients: string[];
1218
+ subjectTemplate?: string | undefined;
1219
+ }, {
1220
+ recipients: string[];
1221
+ subjectTemplate?: string | undefined;
1222
+ }>;
1223
+ }, "strip", z.ZodTypeAny, {
1224
+ type: NotificationChannelType.EMAIL;
1225
+ config: {
1226
+ recipients: string[];
1227
+ subjectTemplate?: string | undefined;
1228
+ };
1229
+ }, {
1230
+ type: NotificationChannelType.EMAIL;
1231
+ config: {
1232
+ recipients: string[];
1233
+ subjectTemplate?: string | undefined;
1234
+ };
1235
+ }>, z.ZodObject<{
1236
+ type: z.ZodLiteral<NotificationChannelType.SLACK>;
1237
+ config: z.ZodEffects<z.ZodObject<{
1238
+ webhookUrl: z.ZodOptional<z.ZodString>;
1239
+ channelEmail: z.ZodOptional<z.ZodString>;
1240
+ }, "strip", z.ZodTypeAny, {
1241
+ webhookUrl?: string | undefined;
1242
+ channelEmail?: string | undefined;
1243
+ }, {
1244
+ webhookUrl?: string | undefined;
1245
+ channelEmail?: string | undefined;
1246
+ }>, {
1247
+ webhookUrl?: string | undefined;
1248
+ channelEmail?: string | undefined;
1249
+ }, {
1250
+ webhookUrl?: string | undefined;
1251
+ channelEmail?: string | undefined;
1252
+ }>;
1253
+ }, "strip", z.ZodTypeAny, {
1254
+ type: NotificationChannelType.SLACK;
1255
+ config: {
1256
+ webhookUrl?: string | undefined;
1257
+ channelEmail?: string | undefined;
1258
+ };
1259
+ }, {
1260
+ type: NotificationChannelType.SLACK;
1261
+ config: {
1262
+ webhookUrl?: string | undefined;
1263
+ channelEmail?: string | undefined;
1264
+ };
1265
+ }>, z.ZodObject<{
1266
+ type: z.ZodLiteral<NotificationChannelType.WEBHOOK>;
1267
+ config: z.ZodObject<{
1268
+ url: z.ZodString;
1269
+ method: z.ZodEnum<["POST", "PUT"]>;
1270
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1271
+ authType: z.ZodDefault<z.ZodEnum<["none", "bearer", "basic", "api_key"]>>;
1272
+ authValue: z.ZodOptional<z.ZodString>;
1273
+ }, "strip", z.ZodTypeAny, {
1274
+ url: string;
1275
+ method: "POST" | "PUT";
1276
+ authType: "api_key" | "none" | "bearer" | "basic";
1277
+ headers?: Record<string, string> | undefined;
1278
+ authValue?: string | undefined;
1279
+ }, {
1280
+ url: string;
1281
+ method: "POST" | "PUT";
1282
+ headers?: Record<string, string> | undefined;
1283
+ authType?: "api_key" | "none" | "bearer" | "basic" | undefined;
1284
+ authValue?: string | undefined;
1285
+ }>;
1286
+ }, "strip", z.ZodTypeAny, {
1287
+ type: NotificationChannelType.WEBHOOK;
1288
+ config: {
1289
+ url: string;
1290
+ method: "POST" | "PUT";
1291
+ authType: "api_key" | "none" | "bearer" | "basic";
1292
+ headers?: Record<string, string> | undefined;
1293
+ authValue?: string | undefined;
1294
+ };
1295
+ }, {
1296
+ type: NotificationChannelType.WEBHOOK;
1297
+ config: {
1298
+ url: string;
1299
+ method: "POST" | "PUT";
1300
+ headers?: Record<string, string> | undefined;
1301
+ authType?: "api_key" | "none" | "bearer" | "basic" | undefined;
1302
+ authValue?: string | undefined;
1303
+ };
1304
+ }>]>;
1305
+ }, "strip", z.ZodTypeAny, {
1306
+ name: string;
1307
+ settings: {
1308
+ type: NotificationChannelType.EMAIL;
1309
+ config: {
1310
+ recipients: string[];
1311
+ subjectTemplate?: string | undefined;
1312
+ };
1313
+ } | {
1314
+ type: NotificationChannelType.SLACK;
1315
+ config: {
1316
+ webhookUrl?: string | undefined;
1317
+ channelEmail?: string | undefined;
1318
+ };
1319
+ } | {
1320
+ type: NotificationChannelType.WEBHOOK;
1321
+ config: {
1322
+ url: string;
1323
+ method: "POST" | "PUT";
1324
+ authType: "api_key" | "none" | "bearer" | "basic";
1325
+ headers?: Record<string, string> | undefined;
1326
+ authValue?: string | undefined;
1327
+ };
1328
+ };
1329
+ accountSettingsId: string;
1330
+ channelType: NotificationChannelType;
1331
+ enabled?: boolean | undefined;
1332
+ }, {
1333
+ name: string;
1334
+ settings: {
1335
+ type: NotificationChannelType.EMAIL;
1336
+ config: {
1337
+ recipients: string[];
1338
+ subjectTemplate?: string | undefined;
1339
+ };
1340
+ } | {
1341
+ type: NotificationChannelType.SLACK;
1342
+ config: {
1343
+ webhookUrl?: string | undefined;
1344
+ channelEmail?: string | undefined;
1345
+ };
1346
+ } | {
1347
+ type: NotificationChannelType.WEBHOOK;
1348
+ config: {
1349
+ url: string;
1350
+ method: "POST" | "PUT";
1351
+ headers?: Record<string, string> | undefined;
1352
+ authType?: "api_key" | "none" | "bearer" | "basic" | undefined;
1353
+ authValue?: string | undefined;
1354
+ };
1355
+ };
1356
+ accountSettingsId: string;
1357
+ channelType: NotificationChannelType;
1358
+ enabled?: boolean | undefined;
1359
+ }>, {
1360
+ name: string;
1361
+ settings: {
1362
+ type: NotificationChannelType.EMAIL;
1363
+ config: {
1364
+ recipients: string[];
1365
+ subjectTemplate?: string | undefined;
1366
+ };
1367
+ } | {
1368
+ type: NotificationChannelType.SLACK;
1369
+ config: {
1370
+ webhookUrl?: string | undefined;
1371
+ channelEmail?: string | undefined;
1372
+ };
1373
+ } | {
1374
+ type: NotificationChannelType.WEBHOOK;
1375
+ config: {
1376
+ url: string;
1377
+ method: "POST" | "PUT";
1378
+ authType: "api_key" | "none" | "bearer" | "basic";
1379
+ headers?: Record<string, string> | undefined;
1380
+ authValue?: string | undefined;
1381
+ };
1382
+ };
1383
+ accountSettingsId: string;
1384
+ channelType: NotificationChannelType;
1385
+ enabled?: boolean | undefined;
1386
+ }, {
1387
+ name: string;
1388
+ settings: {
1389
+ type: NotificationChannelType.EMAIL;
1390
+ config: {
1391
+ recipients: string[];
1392
+ subjectTemplate?: string | undefined;
1393
+ };
1394
+ } | {
1395
+ type: NotificationChannelType.SLACK;
1396
+ config: {
1397
+ webhookUrl?: string | undefined;
1398
+ channelEmail?: string | undefined;
1399
+ };
1400
+ } | {
1401
+ type: NotificationChannelType.WEBHOOK;
1402
+ config: {
1403
+ url: string;
1404
+ method: "POST" | "PUT";
1405
+ headers?: Record<string, string> | undefined;
1406
+ authType?: "api_key" | "none" | "bearer" | "basic" | undefined;
1407
+ authValue?: string | undefined;
1408
+ };
1409
+ };
1410
+ accountSettingsId: string;
1411
+ channelType: NotificationChannelType;
1412
+ enabled?: boolean | undefined;
1413
+ }>;
1414
+ export type CreateChannelInput = z.infer<typeof CreateChannelInputSchema>;
1415
+ export declare const IssuerCreateChannelInputSchema: z.ZodEffects<z.ZodObject<{
1416
+ channelType: z.ZodNativeEnum<typeof NotificationChannelType>;
1417
+ name: z.ZodString;
1418
+ enabled: z.ZodOptional<z.ZodBoolean>;
1419
+ settings: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1420
+ type: z.ZodLiteral<NotificationChannelType.EMAIL>;
1421
+ config: z.ZodObject<{
1422
+ recipients: z.ZodArray<z.ZodString, "many">;
1423
+ subjectTemplate: z.ZodOptional<z.ZodString>;
1424
+ }, "strip", z.ZodTypeAny, {
1425
+ recipients: string[];
1426
+ subjectTemplate?: string | undefined;
1427
+ }, {
1428
+ recipients: string[];
1429
+ subjectTemplate?: string | undefined;
1430
+ }>;
1431
+ }, "strip", z.ZodTypeAny, {
1432
+ type: NotificationChannelType.EMAIL;
1433
+ config: {
1434
+ recipients: string[];
1435
+ subjectTemplate?: string | undefined;
1436
+ };
1437
+ }, {
1438
+ type: NotificationChannelType.EMAIL;
1439
+ config: {
1440
+ recipients: string[];
1441
+ subjectTemplate?: string | undefined;
1442
+ };
1443
+ }>, z.ZodObject<{
1444
+ type: z.ZodLiteral<NotificationChannelType.SLACK>;
1445
+ config: z.ZodEffects<z.ZodObject<{
1446
+ webhookUrl: z.ZodOptional<z.ZodString>;
1447
+ channelEmail: z.ZodOptional<z.ZodString>;
1448
+ }, "strip", z.ZodTypeAny, {
1449
+ webhookUrl?: string | undefined;
1450
+ channelEmail?: string | undefined;
1451
+ }, {
1452
+ webhookUrl?: string | undefined;
1453
+ channelEmail?: string | undefined;
1454
+ }>, {
1455
+ webhookUrl?: string | undefined;
1456
+ channelEmail?: string | undefined;
1457
+ }, {
1458
+ webhookUrl?: string | undefined;
1459
+ channelEmail?: string | undefined;
1460
+ }>;
1461
+ }, "strip", z.ZodTypeAny, {
1462
+ type: NotificationChannelType.SLACK;
1463
+ config: {
1464
+ webhookUrl?: string | undefined;
1465
+ channelEmail?: string | undefined;
1466
+ };
1467
+ }, {
1468
+ type: NotificationChannelType.SLACK;
1469
+ config: {
1470
+ webhookUrl?: string | undefined;
1471
+ channelEmail?: string | undefined;
1472
+ };
1473
+ }>, z.ZodObject<{
1474
+ type: z.ZodLiteral<NotificationChannelType.WEBHOOK>;
1475
+ config: z.ZodObject<{
1476
+ url: z.ZodString;
1477
+ method: z.ZodEnum<["POST", "PUT"]>;
1478
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1479
+ authType: z.ZodDefault<z.ZodEnum<["none", "bearer", "basic", "api_key"]>>;
1480
+ authValue: z.ZodOptional<z.ZodString>;
1481
+ }, "strip", z.ZodTypeAny, {
1482
+ url: string;
1483
+ method: "POST" | "PUT";
1484
+ authType: "api_key" | "none" | "bearer" | "basic";
1485
+ headers?: Record<string, string> | undefined;
1486
+ authValue?: string | undefined;
1487
+ }, {
1488
+ url: string;
1489
+ method: "POST" | "PUT";
1490
+ headers?: Record<string, string> | undefined;
1491
+ authType?: "api_key" | "none" | "bearer" | "basic" | undefined;
1492
+ authValue?: string | undefined;
1493
+ }>;
1494
+ }, "strip", z.ZodTypeAny, {
1495
+ type: NotificationChannelType.WEBHOOK;
1496
+ config: {
1497
+ url: string;
1498
+ method: "POST" | "PUT";
1499
+ authType: "api_key" | "none" | "bearer" | "basic";
1500
+ headers?: Record<string, string> | undefined;
1501
+ authValue?: string | undefined;
1502
+ };
1503
+ }, {
1504
+ type: NotificationChannelType.WEBHOOK;
1505
+ config: {
1506
+ url: string;
1507
+ method: "POST" | "PUT";
1508
+ headers?: Record<string, string> | undefined;
1509
+ authType?: "api_key" | "none" | "bearer" | "basic" | undefined;
1510
+ authValue?: string | undefined;
1511
+ };
1512
+ }>]>;
1513
+ }, "strip", z.ZodTypeAny, {
1514
+ name: string;
1515
+ settings: {
1516
+ type: NotificationChannelType.EMAIL;
1517
+ config: {
1518
+ recipients: string[];
1519
+ subjectTemplate?: string | undefined;
1520
+ };
1521
+ } | {
1522
+ type: NotificationChannelType.SLACK;
1523
+ config: {
1524
+ webhookUrl?: string | undefined;
1525
+ channelEmail?: string | undefined;
1526
+ };
1527
+ } | {
1528
+ type: NotificationChannelType.WEBHOOK;
1529
+ config: {
1530
+ url: string;
1531
+ method: "POST" | "PUT";
1532
+ authType: "api_key" | "none" | "bearer" | "basic";
1533
+ headers?: Record<string, string> | undefined;
1534
+ authValue?: string | undefined;
1535
+ };
1536
+ };
1537
+ channelType: NotificationChannelType;
1538
+ enabled?: boolean | undefined;
1539
+ }, {
1540
+ name: string;
1541
+ settings: {
1542
+ type: NotificationChannelType.EMAIL;
1543
+ config: {
1544
+ recipients: string[];
1545
+ subjectTemplate?: string | undefined;
1546
+ };
1547
+ } | {
1548
+ type: NotificationChannelType.SLACK;
1549
+ config: {
1550
+ webhookUrl?: string | undefined;
1551
+ channelEmail?: string | undefined;
1552
+ };
1553
+ } | {
1554
+ type: NotificationChannelType.WEBHOOK;
1555
+ config: {
1556
+ url: string;
1557
+ method: "POST" | "PUT";
1558
+ headers?: Record<string, string> | undefined;
1559
+ authType?: "api_key" | "none" | "bearer" | "basic" | undefined;
1560
+ authValue?: string | undefined;
1561
+ };
1562
+ };
1563
+ channelType: NotificationChannelType;
1564
+ enabled?: boolean | undefined;
1565
+ }>, {
1566
+ name: string;
1567
+ settings: {
1568
+ type: NotificationChannelType.EMAIL;
1569
+ config: {
1570
+ recipients: string[];
1571
+ subjectTemplate?: string | undefined;
1572
+ };
1573
+ } | {
1574
+ type: NotificationChannelType.SLACK;
1575
+ config: {
1576
+ webhookUrl?: string | undefined;
1577
+ channelEmail?: string | undefined;
1578
+ };
1579
+ } | {
1580
+ type: NotificationChannelType.WEBHOOK;
1581
+ config: {
1582
+ url: string;
1583
+ method: "POST" | "PUT";
1584
+ authType: "api_key" | "none" | "bearer" | "basic";
1585
+ headers?: Record<string, string> | undefined;
1586
+ authValue?: string | undefined;
1587
+ };
1588
+ };
1589
+ channelType: NotificationChannelType;
1590
+ enabled?: boolean | undefined;
1591
+ }, {
1592
+ name: string;
1593
+ settings: {
1594
+ type: NotificationChannelType.EMAIL;
1595
+ config: {
1596
+ recipients: string[];
1597
+ subjectTemplate?: string | undefined;
1598
+ };
1599
+ } | {
1600
+ type: NotificationChannelType.SLACK;
1601
+ config: {
1602
+ webhookUrl?: string | undefined;
1603
+ channelEmail?: string | undefined;
1604
+ };
1605
+ } | {
1606
+ type: NotificationChannelType.WEBHOOK;
1607
+ config: {
1608
+ url: string;
1609
+ method: "POST" | "PUT";
1610
+ headers?: Record<string, string> | undefined;
1611
+ authType?: "api_key" | "none" | "bearer" | "basic" | undefined;
1612
+ authValue?: string | undefined;
1613
+ };
1614
+ };
1615
+ channelType: NotificationChannelType;
1616
+ enabled?: boolean | undefined;
1617
+ }>;
1618
+ export type IssuerCreateChannelInput = z.infer<typeof IssuerCreateChannelInputSchema>;
1619
+ export declare const UpdateChannelInputSchema: z.ZodObject<{
1620
+ name: z.ZodOptional<z.ZodString>;
1621
+ enabled: z.ZodOptional<z.ZodBoolean>;
1622
+ settings: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1623
+ type: z.ZodLiteral<NotificationChannelType.EMAIL>;
1624
+ config: z.ZodObject<{
1625
+ recipients: z.ZodArray<z.ZodString, "many">;
1626
+ subjectTemplate: z.ZodOptional<z.ZodString>;
1627
+ }, "strip", z.ZodTypeAny, {
1628
+ recipients: string[];
1629
+ subjectTemplate?: string | undefined;
1630
+ }, {
1631
+ recipients: string[];
1632
+ subjectTemplate?: string | undefined;
1633
+ }>;
1634
+ }, "strip", z.ZodTypeAny, {
1635
+ type: NotificationChannelType.EMAIL;
1636
+ config: {
1637
+ recipients: string[];
1638
+ subjectTemplate?: string | undefined;
1639
+ };
1640
+ }, {
1641
+ type: NotificationChannelType.EMAIL;
1642
+ config: {
1643
+ recipients: string[];
1644
+ subjectTemplate?: string | undefined;
1645
+ };
1646
+ }>, z.ZodObject<{
1647
+ type: z.ZodLiteral<NotificationChannelType.SLACK>;
1648
+ config: z.ZodEffects<z.ZodObject<{
1649
+ webhookUrl: z.ZodOptional<z.ZodString>;
1650
+ channelEmail: z.ZodOptional<z.ZodString>;
1651
+ }, "strip", z.ZodTypeAny, {
1652
+ webhookUrl?: string | undefined;
1653
+ channelEmail?: string | undefined;
1654
+ }, {
1655
+ webhookUrl?: string | undefined;
1656
+ channelEmail?: string | undefined;
1657
+ }>, {
1658
+ webhookUrl?: string | undefined;
1659
+ channelEmail?: string | undefined;
1660
+ }, {
1661
+ webhookUrl?: string | undefined;
1662
+ channelEmail?: string | undefined;
1663
+ }>;
1664
+ }, "strip", z.ZodTypeAny, {
1665
+ type: NotificationChannelType.SLACK;
1666
+ config: {
1667
+ webhookUrl?: string | undefined;
1668
+ channelEmail?: string | undefined;
1669
+ };
1670
+ }, {
1671
+ type: NotificationChannelType.SLACK;
1672
+ config: {
1673
+ webhookUrl?: string | undefined;
1674
+ channelEmail?: string | undefined;
1675
+ };
1676
+ }>, z.ZodObject<{
1677
+ type: z.ZodLiteral<NotificationChannelType.WEBHOOK>;
1678
+ config: z.ZodObject<{
1679
+ url: z.ZodString;
1680
+ method: z.ZodEnum<["POST", "PUT"]>;
1681
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1682
+ authType: z.ZodDefault<z.ZodEnum<["none", "bearer", "basic", "api_key"]>>;
1683
+ authValue: z.ZodOptional<z.ZodString>;
1684
+ }, "strip", z.ZodTypeAny, {
1685
+ url: string;
1686
+ method: "POST" | "PUT";
1687
+ authType: "api_key" | "none" | "bearer" | "basic";
1688
+ headers?: Record<string, string> | undefined;
1689
+ authValue?: string | undefined;
1690
+ }, {
1691
+ url: string;
1692
+ method: "POST" | "PUT";
1693
+ headers?: Record<string, string> | undefined;
1694
+ authType?: "api_key" | "none" | "bearer" | "basic" | undefined;
1695
+ authValue?: string | undefined;
1696
+ }>;
1697
+ }, "strip", z.ZodTypeAny, {
1698
+ type: NotificationChannelType.WEBHOOK;
1699
+ config: {
1700
+ url: string;
1701
+ method: "POST" | "PUT";
1702
+ authType: "api_key" | "none" | "bearer" | "basic";
1703
+ headers?: Record<string, string> | undefined;
1704
+ authValue?: string | undefined;
1705
+ };
1706
+ }, {
1707
+ type: NotificationChannelType.WEBHOOK;
1708
+ config: {
1709
+ url: string;
1710
+ method: "POST" | "PUT";
1711
+ headers?: Record<string, string> | undefined;
1712
+ authType?: "api_key" | "none" | "bearer" | "basic" | undefined;
1713
+ authValue?: string | undefined;
1714
+ };
1715
+ }>]>>;
1716
+ }, "strip", z.ZodTypeAny, {
1717
+ name?: string | undefined;
1718
+ enabled?: boolean | undefined;
1719
+ settings?: {
1720
+ type: NotificationChannelType.EMAIL;
1721
+ config: {
1722
+ recipients: string[];
1723
+ subjectTemplate?: string | undefined;
1724
+ };
1725
+ } | {
1726
+ type: NotificationChannelType.SLACK;
1727
+ config: {
1728
+ webhookUrl?: string | undefined;
1729
+ channelEmail?: string | undefined;
1730
+ };
1731
+ } | {
1732
+ type: NotificationChannelType.WEBHOOK;
1733
+ config: {
1734
+ url: string;
1735
+ method: "POST" | "PUT";
1736
+ authType: "api_key" | "none" | "bearer" | "basic";
1737
+ headers?: Record<string, string> | undefined;
1738
+ authValue?: string | undefined;
1739
+ };
1740
+ } | undefined;
1741
+ }, {
1742
+ name?: string | undefined;
1743
+ enabled?: boolean | undefined;
1744
+ settings?: {
1745
+ type: NotificationChannelType.EMAIL;
1746
+ config: {
1747
+ recipients: string[];
1748
+ subjectTemplate?: string | undefined;
1749
+ };
1750
+ } | {
1751
+ type: NotificationChannelType.SLACK;
1752
+ config: {
1753
+ webhookUrl?: string | undefined;
1754
+ channelEmail?: string | undefined;
1755
+ };
1756
+ } | {
1757
+ type: NotificationChannelType.WEBHOOK;
1758
+ config: {
1759
+ url: string;
1760
+ method: "POST" | "PUT";
1761
+ headers?: Record<string, string> | undefined;
1762
+ authType?: "api_key" | "none" | "bearer" | "basic" | undefined;
1763
+ authValue?: string | undefined;
1764
+ };
1765
+ } | undefined;
1766
+ }>;
1767
+ export type UpdateChannelInput = z.infer<typeof UpdateChannelInputSchema>;
1768
+ export declare const CreateTriggerInputSchema: z.ZodObject<{
1769
+ notificationChannelId: z.ZodEffects<z.ZodString, string, string>;
1770
+ activityTypeId: z.ZodString;
1771
+ enabled: z.ZodOptional<z.ZodBoolean>;
1772
+ }, "strip", z.ZodTypeAny, {
1773
+ activityTypeId: string;
1774
+ notificationChannelId: string;
1775
+ enabled?: boolean | undefined;
1776
+ }, {
1777
+ activityTypeId: string;
1778
+ notificationChannelId: string;
1779
+ enabled?: boolean | undefined;
1780
+ }>;
1781
+ export type CreateTriggerInput = z.infer<typeof CreateTriggerInputSchema>;
1782
+ export declare const IPaginatedNotificationChannel: z.ZodObject<{
1783
+ items: z.ZodArray<z.ZodObject<{
1784
+ __entity: z.ZodOptional<z.ZodString>;
1785
+ createdAt: z.ZodUnion<[z.ZodString, z.ZodDate]>;
1786
+ updatedAt: z.ZodUnion<[z.ZodString, z.ZodDate]>;
1787
+ deletedAt: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodDate]>>;
1788
+ } & {
1789
+ id: z.ZodEffects<z.ZodString, string, string>;
1790
+ accountSettingsId: z.ZodString;
1791
+ channelType: z.ZodNativeEnum<typeof NotificationChannelType>;
1792
+ name: z.ZodString;
1793
+ enabled: z.ZodBoolean;
1794
+ settings: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1795
+ type: z.ZodLiteral<NotificationChannelType.EMAIL>;
1796
+ config: z.ZodObject<{
1797
+ recipients: z.ZodArray<z.ZodString, "many">;
1798
+ subjectTemplate: z.ZodOptional<z.ZodString>;
1799
+ }, "strip", z.ZodTypeAny, {
1800
+ recipients: string[];
1801
+ subjectTemplate?: string | undefined;
1802
+ }, {
1803
+ recipients: string[];
1804
+ subjectTemplate?: string | undefined;
1805
+ }>;
1806
+ }, "strip", z.ZodTypeAny, {
1807
+ type: NotificationChannelType.EMAIL;
1808
+ config: {
1809
+ recipients: string[];
1810
+ subjectTemplate?: string | undefined;
1811
+ };
1812
+ }, {
1813
+ type: NotificationChannelType.EMAIL;
1814
+ config: {
1815
+ recipients: string[];
1816
+ subjectTemplate?: string | undefined;
1817
+ };
1818
+ }>, z.ZodObject<{
1819
+ type: z.ZodLiteral<NotificationChannelType.SLACK>;
1820
+ config: z.ZodEffects<z.ZodObject<{
1821
+ webhookUrl: z.ZodOptional<z.ZodString>;
1822
+ channelEmail: z.ZodOptional<z.ZodString>;
1823
+ }, "strip", z.ZodTypeAny, {
1824
+ webhookUrl?: string | undefined;
1825
+ channelEmail?: string | undefined;
1826
+ }, {
1827
+ webhookUrl?: string | undefined;
1828
+ channelEmail?: string | undefined;
1829
+ }>, {
1830
+ webhookUrl?: string | undefined;
1831
+ channelEmail?: string | undefined;
1832
+ }, {
1833
+ webhookUrl?: string | undefined;
1834
+ channelEmail?: string | undefined;
1835
+ }>;
1836
+ }, "strip", z.ZodTypeAny, {
1837
+ type: NotificationChannelType.SLACK;
1838
+ config: {
1839
+ webhookUrl?: string | undefined;
1840
+ channelEmail?: string | undefined;
1841
+ };
1842
+ }, {
1843
+ type: NotificationChannelType.SLACK;
1844
+ config: {
1845
+ webhookUrl?: string | undefined;
1846
+ channelEmail?: string | undefined;
1847
+ };
1848
+ }>, z.ZodObject<{
1849
+ type: z.ZodLiteral<NotificationChannelType.WEBHOOK>;
1850
+ config: z.ZodObject<{
1851
+ url: z.ZodString;
1852
+ method: z.ZodEnum<["POST", "PUT"]>;
1853
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1854
+ authType: z.ZodDefault<z.ZodEnum<["none", "bearer", "basic", "api_key"]>>;
1855
+ authValue: z.ZodOptional<z.ZodString>;
1856
+ }, "strip", z.ZodTypeAny, {
1857
+ url: string;
1858
+ method: "POST" | "PUT";
1859
+ authType: "api_key" | "none" | "bearer" | "basic";
1860
+ headers?: Record<string, string> | undefined;
1861
+ authValue?: string | undefined;
1862
+ }, {
1863
+ url: string;
1864
+ method: "POST" | "PUT";
1865
+ headers?: Record<string, string> | undefined;
1866
+ authType?: "api_key" | "none" | "bearer" | "basic" | undefined;
1867
+ authValue?: string | undefined;
1868
+ }>;
1869
+ }, "strip", z.ZodTypeAny, {
1870
+ type: NotificationChannelType.WEBHOOK;
1871
+ config: {
1872
+ url: string;
1873
+ method: "POST" | "PUT";
1874
+ authType: "api_key" | "none" | "bearer" | "basic";
1875
+ headers?: Record<string, string> | undefined;
1876
+ authValue?: string | undefined;
1877
+ };
1878
+ }, {
1879
+ type: NotificationChannelType.WEBHOOK;
1880
+ config: {
1881
+ url: string;
1882
+ method: "POST" | "PUT";
1883
+ headers?: Record<string, string> | undefined;
1884
+ authType?: "api_key" | "none" | "bearer" | "basic" | undefined;
1885
+ authValue?: string | undefined;
1886
+ };
1887
+ }>]>;
1888
+ }, "strip", z.ZodTypeAny, {
1889
+ id: string;
1890
+ createdAt: string | Date;
1891
+ updatedAt: string | Date;
1892
+ deletedAt: string | Date | null;
1893
+ name: string;
1894
+ enabled: boolean;
1895
+ settings: {
1896
+ type: NotificationChannelType.EMAIL;
1897
+ config: {
1898
+ recipients: string[];
1899
+ subjectTemplate?: string | undefined;
1900
+ };
1901
+ } | {
1902
+ type: NotificationChannelType.SLACK;
1903
+ config: {
1904
+ webhookUrl?: string | undefined;
1905
+ channelEmail?: string | undefined;
1906
+ };
1907
+ } | {
1908
+ type: NotificationChannelType.WEBHOOK;
1909
+ config: {
1910
+ url: string;
1911
+ method: "POST" | "PUT";
1912
+ authType: "api_key" | "none" | "bearer" | "basic";
1913
+ headers?: Record<string, string> | undefined;
1914
+ authValue?: string | undefined;
1915
+ };
1916
+ };
1917
+ accountSettingsId: string;
1918
+ channelType: NotificationChannelType;
1919
+ __entity?: string | undefined;
1920
+ }, {
1921
+ id: string;
1922
+ createdAt: string | Date;
1923
+ updatedAt: string | Date;
1924
+ deletedAt: string | Date | null;
1925
+ name: string;
1926
+ enabled: boolean;
1927
+ settings: {
1928
+ type: NotificationChannelType.EMAIL;
1929
+ config: {
1930
+ recipients: string[];
1931
+ subjectTemplate?: string | undefined;
1932
+ };
1933
+ } | {
1934
+ type: NotificationChannelType.SLACK;
1935
+ config: {
1936
+ webhookUrl?: string | undefined;
1937
+ channelEmail?: string | undefined;
1938
+ };
1939
+ } | {
1940
+ type: NotificationChannelType.WEBHOOK;
1941
+ config: {
1942
+ url: string;
1943
+ method: "POST" | "PUT";
1944
+ headers?: Record<string, string> | undefined;
1945
+ authType?: "api_key" | "none" | "bearer" | "basic" | undefined;
1946
+ authValue?: string | undefined;
1947
+ };
1948
+ };
1949
+ accountSettingsId: string;
1950
+ channelType: NotificationChannelType;
1951
+ __entity?: string | undefined;
1952
+ }>, "many">;
1953
+ meta: z.ZodObject<{
1954
+ itemCount: z.ZodNumber;
1955
+ totalItems: z.ZodOptional<z.ZodNumber>;
1956
+ itemsPerPage: z.ZodNumber;
1957
+ totalPages: z.ZodOptional<z.ZodNumber>;
1958
+ currentPage: z.ZodNumber;
1959
+ }, "strip", z.ZodTypeAny, {
1960
+ itemCount: number;
1961
+ itemsPerPage: number;
1962
+ currentPage: number;
1963
+ totalItems?: number | undefined;
1964
+ totalPages?: number | undefined;
1965
+ }, {
1966
+ itemCount: number;
1967
+ itemsPerPage: number;
1968
+ currentPage: number;
1969
+ totalItems?: number | undefined;
1970
+ totalPages?: number | undefined;
1971
+ }>;
1972
+ }, "strip", z.ZodTypeAny, {
1973
+ items: {
1974
+ id: string;
1975
+ createdAt: string | Date;
1976
+ updatedAt: string | Date;
1977
+ deletedAt: string | Date | null;
1978
+ name: string;
1979
+ enabled: boolean;
1980
+ settings: {
1981
+ type: NotificationChannelType.EMAIL;
1982
+ config: {
1983
+ recipients: string[];
1984
+ subjectTemplate?: string | undefined;
1985
+ };
1986
+ } | {
1987
+ type: NotificationChannelType.SLACK;
1988
+ config: {
1989
+ webhookUrl?: string | undefined;
1990
+ channelEmail?: string | undefined;
1991
+ };
1992
+ } | {
1993
+ type: NotificationChannelType.WEBHOOK;
1994
+ config: {
1995
+ url: string;
1996
+ method: "POST" | "PUT";
1997
+ authType: "api_key" | "none" | "bearer" | "basic";
1998
+ headers?: Record<string, string> | undefined;
1999
+ authValue?: string | undefined;
2000
+ };
2001
+ };
2002
+ accountSettingsId: string;
2003
+ channelType: NotificationChannelType;
2004
+ __entity?: string | undefined;
2005
+ }[];
2006
+ meta: {
2007
+ itemCount: number;
2008
+ itemsPerPage: number;
2009
+ currentPage: number;
2010
+ totalItems?: number | undefined;
2011
+ totalPages?: number | undefined;
2012
+ };
2013
+ }, {
2014
+ items: {
2015
+ id: string;
2016
+ createdAt: string | Date;
2017
+ updatedAt: string | Date;
2018
+ deletedAt: string | Date | null;
2019
+ name: string;
2020
+ enabled: boolean;
2021
+ settings: {
2022
+ type: NotificationChannelType.EMAIL;
2023
+ config: {
2024
+ recipients: string[];
2025
+ subjectTemplate?: string | undefined;
2026
+ };
2027
+ } | {
2028
+ type: NotificationChannelType.SLACK;
2029
+ config: {
2030
+ webhookUrl?: string | undefined;
2031
+ channelEmail?: string | undefined;
2032
+ };
2033
+ } | {
2034
+ type: NotificationChannelType.WEBHOOK;
2035
+ config: {
2036
+ url: string;
2037
+ method: "POST" | "PUT";
2038
+ headers?: Record<string, string> | undefined;
2039
+ authType?: "api_key" | "none" | "bearer" | "basic" | undefined;
2040
+ authValue?: string | undefined;
2041
+ };
2042
+ };
2043
+ accountSettingsId: string;
2044
+ channelType: NotificationChannelType;
2045
+ __entity?: string | undefined;
2046
+ }[];
2047
+ meta: {
2048
+ itemCount: number;
2049
+ itemsPerPage: number;
2050
+ currentPage: number;
2051
+ totalItems?: number | undefined;
2052
+ totalPages?: number | undefined;
2053
+ };
2054
+ }>;
2055
+ export type IPaginatedNotificationChannel = z.infer<typeof IPaginatedNotificationChannel>;
2056
+ export declare const IPaginatedNotificationChannelTrigger: z.ZodObject<{
2057
+ items: z.ZodArray<z.ZodObject<{
2058
+ __entity: z.ZodOptional<z.ZodString>;
2059
+ createdAt: z.ZodUnion<[z.ZodString, z.ZodDate]>;
2060
+ updatedAt: z.ZodUnion<[z.ZodString, z.ZodDate]>;
2061
+ deletedAt: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodDate]>>;
2062
+ } & {
2063
+ id: z.ZodEffects<z.ZodString, string, string>;
2064
+ notificationChannelId: z.ZodEffects<z.ZodString, string, string>;
2065
+ activityTypeId: z.ZodString;
2066
+ enabled: z.ZodBoolean;
2067
+ }, "strip", z.ZodTypeAny, {
2068
+ id: string;
2069
+ createdAt: string | Date;
2070
+ updatedAt: string | Date;
2071
+ deletedAt: string | Date | null;
2072
+ enabled: boolean;
2073
+ activityTypeId: string;
2074
+ notificationChannelId: string;
2075
+ __entity?: string | undefined;
2076
+ }, {
2077
+ id: string;
2078
+ createdAt: string | Date;
2079
+ updatedAt: string | Date;
2080
+ deletedAt: string | Date | null;
2081
+ enabled: boolean;
2082
+ activityTypeId: string;
2083
+ notificationChannelId: string;
2084
+ __entity?: string | undefined;
2085
+ }>, "many">;
2086
+ meta: z.ZodObject<{
2087
+ itemCount: z.ZodNumber;
2088
+ totalItems: z.ZodOptional<z.ZodNumber>;
2089
+ itemsPerPage: z.ZodNumber;
2090
+ totalPages: z.ZodOptional<z.ZodNumber>;
2091
+ currentPage: z.ZodNumber;
2092
+ }, "strip", z.ZodTypeAny, {
2093
+ itemCount: number;
2094
+ itemsPerPage: number;
2095
+ currentPage: number;
2096
+ totalItems?: number | undefined;
2097
+ totalPages?: number | undefined;
2098
+ }, {
2099
+ itemCount: number;
2100
+ itemsPerPage: number;
2101
+ currentPage: number;
2102
+ totalItems?: number | undefined;
2103
+ totalPages?: number | undefined;
2104
+ }>;
2105
+ }, "strip", z.ZodTypeAny, {
2106
+ items: {
2107
+ id: string;
2108
+ createdAt: string | Date;
2109
+ updatedAt: string | Date;
2110
+ deletedAt: string | Date | null;
2111
+ enabled: boolean;
2112
+ activityTypeId: string;
2113
+ notificationChannelId: string;
2114
+ __entity?: string | undefined;
2115
+ }[];
2116
+ meta: {
2117
+ itemCount: number;
2118
+ itemsPerPage: number;
2119
+ currentPage: number;
2120
+ totalItems?: number | undefined;
2121
+ totalPages?: number | undefined;
2122
+ };
2123
+ }, {
2124
+ items: {
2125
+ id: string;
2126
+ createdAt: string | Date;
2127
+ updatedAt: string | Date;
2128
+ deletedAt: string | Date | null;
2129
+ enabled: boolean;
2130
+ activityTypeId: string;
2131
+ notificationChannelId: string;
2132
+ __entity?: string | undefined;
2133
+ }[];
2134
+ meta: {
2135
+ itemCount: number;
2136
+ itemsPerPage: number;
2137
+ currentPage: number;
2138
+ totalItems?: number | undefined;
2139
+ totalPages?: number | undefined;
2140
+ };
2141
+ }>;
2142
+ export type IPaginatedNotificationChannelTrigger = z.infer<typeof IPaginatedNotificationChannelTrigger>;
2143
+ export declare const IPaginatedNotificationRecord: z.ZodObject<{
2144
+ items: z.ZodArray<z.ZodObject<{
2145
+ __entity: z.ZodOptional<z.ZodString>;
2146
+ createdAt: z.ZodUnion<[z.ZodString, z.ZodDate]>;
2147
+ updatedAt: z.ZodUnion<[z.ZodString, z.ZodDate]>;
2148
+ deletedAt: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodDate]>>;
2149
+ } & {
2150
+ id: z.ZodEffects<z.ZodString, string, string>;
2151
+ notificationChannelId: z.ZodEffects<z.ZodString, string, string>;
2152
+ activityId: z.ZodNullable<z.ZodString>;
2153
+ targetTable: z.ZodString;
2154
+ targetId: z.ZodString;
2155
+ status: z.ZodNativeEnum<typeof NotificationRecordStatus>;
2156
+ payload: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2157
+ type: z.ZodLiteral<NotificationChannelType.EMAIL>;
2158
+ data: z.ZodObject<{
2159
+ to: z.ZodArray<z.ZodString, "many">;
2160
+ subject: z.ZodString;
2161
+ body: z.ZodString;
2162
+ html: z.ZodOptional<z.ZodString>;
2163
+ }, "strip", z.ZodTypeAny, {
2164
+ to: string[];
2165
+ body: string;
2166
+ subject: string;
2167
+ html?: string | undefined;
2168
+ }, {
2169
+ to: string[];
2170
+ body: string;
2171
+ subject: string;
2172
+ html?: string | undefined;
2173
+ }>;
2174
+ }, "strip", z.ZodTypeAny, {
2175
+ type: NotificationChannelType.EMAIL;
2176
+ data: {
2177
+ to: string[];
2178
+ body: string;
2179
+ subject: string;
2180
+ html?: string | undefined;
2181
+ };
2182
+ }, {
2183
+ type: NotificationChannelType.EMAIL;
2184
+ data: {
2185
+ to: string[];
2186
+ body: string;
2187
+ subject: string;
2188
+ html?: string | undefined;
2189
+ };
2190
+ }>, z.ZodObject<{
2191
+ type: z.ZodLiteral<NotificationChannelType.SLACK>;
2192
+ data: z.ZodObject<{
2193
+ webhookUrl: z.ZodOptional<z.ZodString>;
2194
+ channelEmail: z.ZodOptional<z.ZodString>;
2195
+ message: z.ZodString;
2196
+ blocks: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
2197
+ }, "strip", z.ZodTypeAny, {
2198
+ message: string;
2199
+ webhookUrl?: string | undefined;
2200
+ channelEmail?: string | undefined;
2201
+ blocks?: Record<string, unknown>[] | undefined;
2202
+ }, {
2203
+ message: string;
2204
+ webhookUrl?: string | undefined;
2205
+ channelEmail?: string | undefined;
2206
+ blocks?: Record<string, unknown>[] | undefined;
2207
+ }>;
2208
+ }, "strip", z.ZodTypeAny, {
2209
+ type: NotificationChannelType.SLACK;
2210
+ data: {
2211
+ message: string;
2212
+ webhookUrl?: string | undefined;
2213
+ channelEmail?: string | undefined;
2214
+ blocks?: Record<string, unknown>[] | undefined;
2215
+ };
2216
+ }, {
2217
+ type: NotificationChannelType.SLACK;
2218
+ data: {
2219
+ message: string;
2220
+ webhookUrl?: string | undefined;
2221
+ channelEmail?: string | undefined;
2222
+ blocks?: Record<string, unknown>[] | undefined;
2223
+ };
2224
+ }>, z.ZodObject<{
2225
+ type: z.ZodLiteral<NotificationChannelType.WEBHOOK>;
2226
+ data: z.ZodObject<{
2227
+ url: z.ZodString;
2228
+ method: z.ZodEnum<["POST", "PUT"]>;
2229
+ headers: z.ZodRecord<z.ZodString, z.ZodString>;
2230
+ body: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2231
+ }, "strip", z.ZodTypeAny, {
2232
+ headers: Record<string, string>;
2233
+ url: string;
2234
+ method: "POST" | "PUT";
2235
+ body: Record<string, unknown>;
2236
+ }, {
2237
+ headers: Record<string, string>;
2238
+ url: string;
2239
+ method: "POST" | "PUT";
2240
+ body: Record<string, unknown>;
2241
+ }>;
2242
+ }, "strip", z.ZodTypeAny, {
2243
+ type: NotificationChannelType.WEBHOOK;
2244
+ data: {
2245
+ headers: Record<string, string>;
2246
+ url: string;
2247
+ method: "POST" | "PUT";
2248
+ body: Record<string, unknown>;
2249
+ };
2250
+ }, {
2251
+ type: NotificationChannelType.WEBHOOK;
2252
+ data: {
2253
+ headers: Record<string, string>;
2254
+ url: string;
2255
+ method: "POST" | "PUT";
2256
+ body: Record<string, unknown>;
2257
+ };
2258
+ }>]>;
2259
+ response: z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2260
+ type: z.ZodLiteral<NotificationChannelType.EMAIL>;
2261
+ data: z.ZodObject<{
2262
+ messageId: z.ZodOptional<z.ZodString>;
2263
+ accepted: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2264
+ rejected: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2265
+ }, "strip", z.ZodTypeAny, {
2266
+ rejected?: string[] | undefined;
2267
+ messageId?: string | undefined;
2268
+ accepted?: string[] | undefined;
2269
+ }, {
2270
+ rejected?: string[] | undefined;
2271
+ messageId?: string | undefined;
2272
+ accepted?: string[] | undefined;
2273
+ }>;
2274
+ }, "strip", z.ZodTypeAny, {
2275
+ type: NotificationChannelType.EMAIL;
2276
+ data: {
2277
+ rejected?: string[] | undefined;
2278
+ messageId?: string | undefined;
2279
+ accepted?: string[] | undefined;
2280
+ };
2281
+ }, {
2282
+ type: NotificationChannelType.EMAIL;
2283
+ data: {
2284
+ rejected?: string[] | undefined;
2285
+ messageId?: string | undefined;
2286
+ accepted?: string[] | undefined;
2287
+ };
2288
+ }>, z.ZodObject<{
2289
+ type: z.ZodLiteral<NotificationChannelType.SLACK>;
2290
+ data: z.ZodObject<{
2291
+ ok: z.ZodOptional<z.ZodBoolean>;
2292
+ error: z.ZodOptional<z.ZodString>;
2293
+ responseBody: z.ZodOptional<z.ZodString>;
2294
+ }, "strip", z.ZodTypeAny, {
2295
+ error?: string | undefined;
2296
+ responseBody?: string | undefined;
2297
+ ok?: boolean | undefined;
2298
+ }, {
2299
+ error?: string | undefined;
2300
+ responseBody?: string | undefined;
2301
+ ok?: boolean | undefined;
2302
+ }>;
2303
+ }, "strip", z.ZodTypeAny, {
2304
+ type: NotificationChannelType.SLACK;
2305
+ data: {
2306
+ error?: string | undefined;
2307
+ responseBody?: string | undefined;
2308
+ ok?: boolean | undefined;
2309
+ };
2310
+ }, {
2311
+ type: NotificationChannelType.SLACK;
2312
+ data: {
2313
+ error?: string | undefined;
2314
+ responseBody?: string | undefined;
2315
+ ok?: boolean | undefined;
2316
+ };
2317
+ }>, z.ZodObject<{
2318
+ type: z.ZodLiteral<NotificationChannelType.WEBHOOK>;
2319
+ data: z.ZodObject<{
2320
+ statusCode: z.ZodNumber;
2321
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2322
+ body: z.ZodOptional<z.ZodUnknown>;
2323
+ }, "strip", z.ZodTypeAny, {
2324
+ statusCode: number;
2325
+ headers?: Record<string, string> | undefined;
2326
+ body?: unknown;
2327
+ }, {
2328
+ statusCode: number;
2329
+ headers?: Record<string, string> | undefined;
2330
+ body?: unknown;
2331
+ }>;
2332
+ }, "strip", z.ZodTypeAny, {
2333
+ type: NotificationChannelType.WEBHOOK;
2334
+ data: {
2335
+ statusCode: number;
2336
+ headers?: Record<string, string> | undefined;
2337
+ body?: unknown;
2338
+ };
2339
+ }, {
2340
+ type: NotificationChannelType.WEBHOOK;
2341
+ data: {
2342
+ statusCode: number;
2343
+ headers?: Record<string, string> | undefined;
2344
+ body?: unknown;
2345
+ };
2346
+ }>]>>;
2347
+ errorMessage: z.ZodNullable<z.ZodString>;
2348
+ retryCount: z.ZodNumber;
2349
+ sentAt: z.ZodNullable<z.ZodDate>;
2350
+ }, "strip", z.ZodTypeAny, {
2351
+ status: NotificationRecordStatus;
2352
+ id: string;
2353
+ createdAt: string | Date;
2354
+ updatedAt: string | Date;
2355
+ deletedAt: string | Date | null;
2356
+ activityId: string | null;
2357
+ targetId: string;
2358
+ targetTable: string;
2359
+ payload: {
2360
+ type: NotificationChannelType.EMAIL;
2361
+ data: {
2362
+ to: string[];
2363
+ body: string;
2364
+ subject: string;
2365
+ html?: string | undefined;
2366
+ };
2367
+ } | {
2368
+ type: NotificationChannelType.SLACK;
2369
+ data: {
2370
+ message: string;
2371
+ webhookUrl?: string | undefined;
2372
+ channelEmail?: string | undefined;
2373
+ blocks?: Record<string, unknown>[] | undefined;
2374
+ };
2375
+ } | {
2376
+ type: NotificationChannelType.WEBHOOK;
2377
+ data: {
2378
+ headers: Record<string, string>;
2379
+ url: string;
2380
+ method: "POST" | "PUT";
2381
+ body: Record<string, unknown>;
2382
+ };
2383
+ };
2384
+ response: {
2385
+ type: NotificationChannelType.EMAIL;
2386
+ data: {
2387
+ rejected?: string[] | undefined;
2388
+ messageId?: string | undefined;
2389
+ accepted?: string[] | undefined;
2390
+ };
2391
+ } | {
2392
+ type: NotificationChannelType.SLACK;
2393
+ data: {
2394
+ error?: string | undefined;
2395
+ responseBody?: string | undefined;
2396
+ ok?: boolean | undefined;
2397
+ };
2398
+ } | {
2399
+ type: NotificationChannelType.WEBHOOK;
2400
+ data: {
2401
+ statusCode: number;
2402
+ headers?: Record<string, string> | undefined;
2403
+ body?: unknown;
2404
+ };
2405
+ } | null;
2406
+ errorMessage: string | null;
2407
+ notificationChannelId: string;
2408
+ retryCount: number;
2409
+ sentAt: Date | null;
2410
+ __entity?: string | undefined;
2411
+ }, {
2412
+ status: NotificationRecordStatus;
2413
+ id: string;
2414
+ createdAt: string | Date;
2415
+ updatedAt: string | Date;
2416
+ deletedAt: string | Date | null;
2417
+ activityId: string | null;
2418
+ targetId: string;
2419
+ targetTable: string;
2420
+ payload: {
2421
+ type: NotificationChannelType.EMAIL;
2422
+ data: {
2423
+ to: string[];
2424
+ body: string;
2425
+ subject: string;
2426
+ html?: string | undefined;
2427
+ };
2428
+ } | {
2429
+ type: NotificationChannelType.SLACK;
2430
+ data: {
2431
+ message: string;
2432
+ webhookUrl?: string | undefined;
2433
+ channelEmail?: string | undefined;
2434
+ blocks?: Record<string, unknown>[] | undefined;
2435
+ };
2436
+ } | {
2437
+ type: NotificationChannelType.WEBHOOK;
2438
+ data: {
2439
+ headers: Record<string, string>;
2440
+ url: string;
2441
+ method: "POST" | "PUT";
2442
+ body: Record<string, unknown>;
2443
+ };
2444
+ };
2445
+ response: {
2446
+ type: NotificationChannelType.EMAIL;
2447
+ data: {
2448
+ rejected?: string[] | undefined;
2449
+ messageId?: string | undefined;
2450
+ accepted?: string[] | undefined;
2451
+ };
2452
+ } | {
2453
+ type: NotificationChannelType.SLACK;
2454
+ data: {
2455
+ error?: string | undefined;
2456
+ responseBody?: string | undefined;
2457
+ ok?: boolean | undefined;
2458
+ };
2459
+ } | {
2460
+ type: NotificationChannelType.WEBHOOK;
2461
+ data: {
2462
+ statusCode: number;
2463
+ headers?: Record<string, string> | undefined;
2464
+ body?: unknown;
2465
+ };
2466
+ } | null;
2467
+ errorMessage: string | null;
2468
+ notificationChannelId: string;
2469
+ retryCount: number;
2470
+ sentAt: Date | null;
2471
+ __entity?: string | undefined;
2472
+ }>, "many">;
2473
+ meta: z.ZodObject<{
2474
+ itemCount: z.ZodNumber;
2475
+ totalItems: z.ZodOptional<z.ZodNumber>;
2476
+ itemsPerPage: z.ZodNumber;
2477
+ totalPages: z.ZodOptional<z.ZodNumber>;
2478
+ currentPage: z.ZodNumber;
2479
+ }, "strip", z.ZodTypeAny, {
2480
+ itemCount: number;
2481
+ itemsPerPage: number;
2482
+ currentPage: number;
2483
+ totalItems?: number | undefined;
2484
+ totalPages?: number | undefined;
2485
+ }, {
2486
+ itemCount: number;
2487
+ itemsPerPage: number;
2488
+ currentPage: number;
2489
+ totalItems?: number | undefined;
2490
+ totalPages?: number | undefined;
2491
+ }>;
2492
+ }, "strip", z.ZodTypeAny, {
2493
+ items: {
2494
+ status: NotificationRecordStatus;
2495
+ id: string;
2496
+ createdAt: string | Date;
2497
+ updatedAt: string | Date;
2498
+ deletedAt: string | Date | null;
2499
+ activityId: string | null;
2500
+ targetId: string;
2501
+ targetTable: string;
2502
+ payload: {
2503
+ type: NotificationChannelType.EMAIL;
2504
+ data: {
2505
+ to: string[];
2506
+ body: string;
2507
+ subject: string;
2508
+ html?: string | undefined;
2509
+ };
2510
+ } | {
2511
+ type: NotificationChannelType.SLACK;
2512
+ data: {
2513
+ message: string;
2514
+ webhookUrl?: string | undefined;
2515
+ channelEmail?: string | undefined;
2516
+ blocks?: Record<string, unknown>[] | undefined;
2517
+ };
2518
+ } | {
2519
+ type: NotificationChannelType.WEBHOOK;
2520
+ data: {
2521
+ headers: Record<string, string>;
2522
+ url: string;
2523
+ method: "POST" | "PUT";
2524
+ body: Record<string, unknown>;
2525
+ };
2526
+ };
2527
+ response: {
2528
+ type: NotificationChannelType.EMAIL;
2529
+ data: {
2530
+ rejected?: string[] | undefined;
2531
+ messageId?: string | undefined;
2532
+ accepted?: string[] | undefined;
2533
+ };
2534
+ } | {
2535
+ type: NotificationChannelType.SLACK;
2536
+ data: {
2537
+ error?: string | undefined;
2538
+ responseBody?: string | undefined;
2539
+ ok?: boolean | undefined;
2540
+ };
2541
+ } | {
2542
+ type: NotificationChannelType.WEBHOOK;
2543
+ data: {
2544
+ statusCode: number;
2545
+ headers?: Record<string, string> | undefined;
2546
+ body?: unknown;
2547
+ };
2548
+ } | null;
2549
+ errorMessage: string | null;
2550
+ notificationChannelId: string;
2551
+ retryCount: number;
2552
+ sentAt: Date | null;
2553
+ __entity?: string | undefined;
2554
+ }[];
2555
+ meta: {
2556
+ itemCount: number;
2557
+ itemsPerPage: number;
2558
+ currentPage: number;
2559
+ totalItems?: number | undefined;
2560
+ totalPages?: number | undefined;
2561
+ };
2562
+ }, {
2563
+ items: {
2564
+ status: NotificationRecordStatus;
2565
+ id: string;
2566
+ createdAt: string | Date;
2567
+ updatedAt: string | Date;
2568
+ deletedAt: string | Date | null;
2569
+ activityId: string | null;
2570
+ targetId: string;
2571
+ targetTable: string;
2572
+ payload: {
2573
+ type: NotificationChannelType.EMAIL;
2574
+ data: {
2575
+ to: string[];
2576
+ body: string;
2577
+ subject: string;
2578
+ html?: string | undefined;
2579
+ };
2580
+ } | {
2581
+ type: NotificationChannelType.SLACK;
2582
+ data: {
2583
+ message: string;
2584
+ webhookUrl?: string | undefined;
2585
+ channelEmail?: string | undefined;
2586
+ blocks?: Record<string, unknown>[] | undefined;
2587
+ };
2588
+ } | {
2589
+ type: NotificationChannelType.WEBHOOK;
2590
+ data: {
2591
+ headers: Record<string, string>;
2592
+ url: string;
2593
+ method: "POST" | "PUT";
2594
+ body: Record<string, unknown>;
2595
+ };
2596
+ };
2597
+ response: {
2598
+ type: NotificationChannelType.EMAIL;
2599
+ data: {
2600
+ rejected?: string[] | undefined;
2601
+ messageId?: string | undefined;
2602
+ accepted?: string[] | undefined;
2603
+ };
2604
+ } | {
2605
+ type: NotificationChannelType.SLACK;
2606
+ data: {
2607
+ error?: string | undefined;
2608
+ responseBody?: string | undefined;
2609
+ ok?: boolean | undefined;
2610
+ };
2611
+ } | {
2612
+ type: NotificationChannelType.WEBHOOK;
2613
+ data: {
2614
+ statusCode: number;
2615
+ headers?: Record<string, string> | undefined;
2616
+ body?: unknown;
2617
+ };
2618
+ } | null;
2619
+ errorMessage: string | null;
2620
+ notificationChannelId: string;
2621
+ retryCount: number;
2622
+ sentAt: Date | null;
2623
+ __entity?: string | undefined;
2624
+ }[];
2625
+ meta: {
2626
+ itemCount: number;
2627
+ itemsPerPage: number;
2628
+ currentPage: number;
2629
+ totalItems?: number | undefined;
2630
+ totalPages?: number | undefined;
2631
+ };
2632
+ }>;
2633
+ export type IPaginatedNotificationRecord = z.infer<typeof IPaginatedNotificationRecord>;
2634
+ export declare const NotificationChannelFilters: z.ZodObject<{
2635
+ accountSettingsId: z.ZodOptional<z.ZodString>;
2636
+ channelType: z.ZodOptional<z.ZodNativeEnum<typeof NotificationChannelType>>;
2637
+ enabled: z.ZodOptional<z.ZodEffects<z.ZodBoolean, boolean, unknown>>;
2638
+ }, "strip", z.ZodTypeAny, {
2639
+ enabled?: boolean | undefined;
2640
+ accountSettingsId?: string | undefined;
2641
+ channelType?: NotificationChannelType | undefined;
2642
+ }, {
2643
+ enabled?: unknown;
2644
+ accountSettingsId?: string | undefined;
2645
+ channelType?: NotificationChannelType | undefined;
2646
+ }>;
2647
+ export type NotificationChannelFilters = z.infer<typeof NotificationChannelFilters>;
2648
+ export declare const NotificationChannelTriggerFilters: z.ZodObject<{
2649
+ notificationChannelId: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
2650
+ activityTypeId: z.ZodOptional<z.ZodString>;
2651
+ enabled: z.ZodOptional<z.ZodEffects<z.ZodBoolean, boolean, unknown>>;
2652
+ }, "strip", z.ZodTypeAny, {
2653
+ enabled?: boolean | undefined;
2654
+ activityTypeId?: string | undefined;
2655
+ notificationChannelId?: string | undefined;
2656
+ }, {
2657
+ enabled?: unknown;
2658
+ activityTypeId?: string | undefined;
2659
+ notificationChannelId?: string | undefined;
2660
+ }>;
2661
+ export type NotificationChannelTriggerFilters = z.infer<typeof NotificationChannelTriggerFilters>;
2662
+ export declare const NotificationRecordFilters: z.ZodObject<{
2663
+ notificationChannelId: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
2664
+ status: z.ZodOptional<z.ZodNativeEnum<typeof NotificationRecordStatus>>;
2665
+ }, "strip", z.ZodTypeAny, {
2666
+ status?: NotificationRecordStatus | undefined;
2667
+ notificationChannelId?: string | undefined;
2668
+ }, {
2669
+ status?: NotificationRecordStatus | undefined;
2670
+ notificationChannelId?: string | undefined;
2671
+ }>;
2672
+ export type NotificationRecordFilters = z.infer<typeof NotificationRecordFilters>;
2673
+ export declare const notificationChannelsInclude: z.ZodEnum<["triggers", "accountSettings", "notificationRecords"]>;
2674
+ export declare const NotificationChannelsIncludeQuery: z.ZodObject<{
2675
+ include: z.ZodEffects<z.ZodEffects<z.ZodOptional<z.ZodString>, string[], string | undefined>, string[], string | undefined>;
2676
+ }, "strip", z.ZodTypeAny, {
2677
+ include: string[];
2678
+ }, {
2679
+ include?: string | undefined;
2680
+ }>;
2681
+ export type NotificationChannelsIncludeQuery = z.infer<typeof NotificationChannelsIncludeQuery>;
2682
+ export declare const notificationRecordsInclude: z.ZodEnum<["notificationChannel", "activity"]>;
2683
+ export declare const NotificationRecordsIncludeQuery: z.ZodObject<{
2684
+ include: z.ZodEffects<z.ZodEffects<z.ZodOptional<z.ZodString>, string[], string | undefined>, string[], string | undefined>;
2685
+ }, "strip", z.ZodTypeAny, {
2686
+ include: string[];
2687
+ }, {
2688
+ include?: string | undefined;
2689
+ }>;
2690
+ export type NotificationRecordsIncludeQuery = z.infer<typeof NotificationRecordsIncludeQuery>;