@dalmore/api-contracts 0.0.0-dev.73ac636 → 0.0.0-dev.73ad209

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