@epilot/sdk 2.1.0-rc.1 → 2.1.0

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 (359) hide show
  1. package/definitions/app.json +38 -0
  2. package/definitions/automation.json +2 -37
  3. package/definitions/blueprint-manifest-runtime.json +1 -1
  4. package/definitions/blueprint-manifest.json +115 -1
  5. package/definitions/customer-portal-runtime.json +1 -1
  6. package/definitions/customer-portal.json +279 -42
  7. package/definitions/data-management.json +10 -0
  8. package/definitions/email-template.json +25 -3
  9. package/definitions/entity.json +205 -3
  10. package/definitions/erp-integration-runtime.json +1 -1
  11. package/definitions/erp-integration.json +472 -13
  12. package/definitions/journey.json +257 -12
  13. package/definitions/kanban.json +630 -78
  14. package/definitions/organization-runtime.json +1 -1
  15. package/definitions/organization.json +614 -51
  16. package/definitions/workflow.json +40 -0
  17. package/dist/README-VG67PX4R.js +7 -0
  18. package/dist/README-W4B35MRN.cjs +7 -0
  19. package/dist/_index-AMVZBT2K.cjs +99 -0
  20. package/dist/_index-S6LFD3ER.js +99 -0
  21. package/dist/access-token-6BJDZSFE.cjs +7 -0
  22. package/dist/access-token-GSQZLDXR.js +7 -0
  23. package/dist/address-HA4RMRNQ.cjs +7 -0
  24. package/dist/address-QVJUGMOG.js +7 -0
  25. package/dist/address-suggestions-74244BAJ.js +7 -0
  26. package/dist/address-suggestions-IUQMYF27.cjs +7 -0
  27. package/dist/ai-agents-IZWFEUSH.js +7 -0
  28. package/dist/ai-agents-PWHKNRCX.cjs +7 -0
  29. package/dist/apis/access-token.cjs +10 -8
  30. package/dist/apis/access-token.js +5 -3
  31. package/dist/apis/address-suggestions.cjs +10 -8
  32. package/dist/apis/address-suggestions.js +5 -3
  33. package/dist/apis/address.cjs +10 -8
  34. package/dist/apis/address.js +5 -3
  35. package/dist/apis/ai-agents.cjs +10 -8
  36. package/dist/apis/ai-agents.js +5 -3
  37. package/dist/apis/app.cjs +10 -8
  38. package/dist/apis/app.js +5 -3
  39. package/dist/apis/audit-logs.cjs +10 -8
  40. package/dist/apis/audit-logs.js +5 -3
  41. package/dist/apis/automation.cjs +10 -8
  42. package/dist/apis/automation.js +5 -3
  43. package/dist/apis/billing.cjs +10 -8
  44. package/dist/apis/billing.js +5 -3
  45. package/dist/apis/blueprint-manifest.cjs +10 -8
  46. package/dist/apis/blueprint-manifest.js +5 -3
  47. package/dist/apis/consent.cjs +10 -8
  48. package/dist/apis/consent.js +5 -3
  49. package/dist/apis/customer-portal.cjs +10 -8
  50. package/dist/apis/customer-portal.js +5 -3
  51. package/dist/apis/dashboard.cjs +10 -8
  52. package/dist/apis/dashboard.js +5 -3
  53. package/dist/apis/data-management.cjs +10 -8
  54. package/dist/apis/data-management.js +5 -3
  55. package/dist/apis/deduplication.cjs +10 -8
  56. package/dist/apis/deduplication.js +5 -3
  57. package/dist/apis/design.cjs +10 -8
  58. package/dist/apis/design.js +5 -3
  59. package/dist/apis/document.cjs +10 -8
  60. package/dist/apis/document.js +5 -3
  61. package/dist/apis/email-settings.cjs +10 -8
  62. package/dist/apis/email-settings.js +5 -3
  63. package/dist/apis/email-template.cjs +10 -8
  64. package/dist/apis/email-template.js +5 -3
  65. package/dist/apis/entity-mapping.cjs +10 -8
  66. package/dist/apis/entity-mapping.js +5 -3
  67. package/dist/apis/entity.cjs +10 -8
  68. package/dist/apis/entity.js +5 -3
  69. package/dist/apis/environments.cjs +10 -8
  70. package/dist/apis/environments.js +5 -3
  71. package/dist/apis/erp-integration.cjs +10 -8
  72. package/dist/apis/erp-integration.js +5 -3
  73. package/dist/apis/event-catalog.cjs +10 -8
  74. package/dist/apis/event-catalog.js +5 -3
  75. package/dist/apis/file.cjs +10 -8
  76. package/dist/apis/file.js +5 -3
  77. package/dist/apis/iban.cjs +10 -8
  78. package/dist/apis/iban.js +5 -3
  79. package/dist/apis/journey.cjs +10 -8
  80. package/dist/apis/journey.js +5 -3
  81. package/dist/apis/kanban.cjs +10 -8
  82. package/dist/apis/kanban.js +5 -3
  83. package/dist/apis/message.cjs +10 -8
  84. package/dist/apis/message.js +5 -3
  85. package/dist/apis/metering.cjs +10 -8
  86. package/dist/apis/metering.js +5 -3
  87. package/dist/apis/notes.cjs +10 -8
  88. package/dist/apis/notes.js +5 -3
  89. package/dist/apis/notification.cjs +10 -8
  90. package/dist/apis/notification.js +5 -3
  91. package/dist/apis/organization.cjs +10 -8
  92. package/dist/apis/organization.d.cts +2 -2
  93. package/dist/apis/organization.d.ts +2 -2
  94. package/dist/apis/organization.js +5 -3
  95. package/dist/apis/partner-directory.cjs +10 -8
  96. package/dist/apis/partner-directory.js +5 -3
  97. package/dist/apis/permissions.cjs +10 -8
  98. package/dist/apis/permissions.js +5 -3
  99. package/dist/apis/pricing-tier.cjs +10 -8
  100. package/dist/apis/pricing-tier.js +5 -3
  101. package/dist/apis/pricing.cjs +10 -8
  102. package/dist/apis/pricing.js +5 -3
  103. package/dist/apis/purpose.cjs +10 -8
  104. package/dist/apis/purpose.js +5 -3
  105. package/dist/apis/sandbox.cjs +10 -8
  106. package/dist/apis/sandbox.js +5 -3
  107. package/dist/apis/submission.cjs +10 -8
  108. package/dist/apis/submission.js +5 -3
  109. package/dist/apis/targeting.cjs +10 -8
  110. package/dist/apis/targeting.js +5 -3
  111. package/dist/apis/template-variables.cjs +10 -8
  112. package/dist/apis/template-variables.js +5 -3
  113. package/dist/apis/user.cjs +10 -8
  114. package/dist/apis/user.js +5 -3
  115. package/dist/apis/validation-rules.cjs +10 -8
  116. package/dist/apis/validation-rules.js +5 -3
  117. package/dist/apis/webhooks.cjs +10 -8
  118. package/dist/apis/webhooks.js +5 -3
  119. package/dist/apis/workflow-definition.cjs +10 -8
  120. package/dist/apis/workflow-definition.js +5 -3
  121. package/dist/apis/workflow.cjs +10 -8
  122. package/dist/apis/workflow.js +5 -3
  123. package/dist/app-IKHWU222.cjs +7 -0
  124. package/dist/app-VLM3SWKA.js +7 -0
  125. package/dist/audit-logs-5VXHOQ7S.js +7 -0
  126. package/dist/audit-logs-D2LFUA2R.cjs +7 -0
  127. package/dist/automation-3HGCK725.cjs +7 -0
  128. package/dist/automation-72VGEJCY.js +7 -0
  129. package/dist/billing-DUWDISHP.cjs +7 -0
  130. package/dist/billing-IPALEAG2.js +7 -0
  131. package/dist/blueprint-manifest-CXSCRQ5X.js +7 -0
  132. package/dist/blueprint-manifest-SHNZPK5O.cjs +7 -0
  133. package/dist/{chunk-6J7CIOKR.js → chunk-2HOJWFQ4.js} +1 -1
  134. package/dist/{chunk-BDIJHJOG.js → chunk-372VUPHN.js} +1 -1
  135. package/dist/{chunk-Q5TESEDZ.cjs → chunk-3HJEWWPS.cjs} +2 -2
  136. package/dist/{chunk-ID6BXIOZ.js → chunk-3N67SSL3.js} +1 -1
  137. package/dist/chunk-3XEP56SV.cjs +204 -0
  138. package/dist/{chunk-7KFKA3AH.cjs → chunk-3ZZ57K3S.cjs} +2 -2
  139. package/dist/{chunk-CVSQT5PV.cjs → chunk-4SWC43JO.cjs} +2 -2
  140. package/dist/{chunk-O3R6C3WW.js → chunk-4VFQTSJQ.js} +1 -1
  141. package/dist/{chunk-LXAJ722U.js → chunk-57QIBYDN.js} +1 -1
  142. package/dist/{chunk-SPZSDRM6.cjs → chunk-5SNJAD6F.cjs} +2 -2
  143. package/dist/{chunk-OI2M6FSB.js → chunk-73H6TVKN.js} +1 -1
  144. package/dist/{chunk-BB7WFIE2.cjs → chunk-A6JOROUC.cjs} +2 -2
  145. package/dist/{chunk-SHPXCOTN.cjs → chunk-AJKH25H2.cjs} +3 -3
  146. package/dist/{chunk-DBNEZWK2.cjs → chunk-ARWMTXJV.cjs} +2 -2
  147. package/dist/{chunk-7BPPP4M2.js → chunk-B3ZGAG7B.js} +1 -1
  148. package/dist/{chunk-5WN2YXNU.cjs → chunk-BH5ZXK4J.cjs} +2 -2
  149. package/dist/{chunk-JM6HKPSC.cjs → chunk-BWFXLUK5.cjs} +2 -2
  150. package/dist/{chunk-V56ZCL54.js → chunk-C6UTZEHH.js} +1 -1
  151. package/dist/{chunk-ZPCMZO2O.js → chunk-CPKBR34V.js} +1 -1
  152. package/dist/{chunk-UTQY2DSM.js → chunk-CWSHYFVZ.js} +1 -1
  153. package/dist/{chunk-5YVVQBA2.js → chunk-DJKSULPK.js} +1 -1
  154. package/dist/{chunk-XLOXC52O.js → chunk-DNJ54L2G.js} +1 -1
  155. package/dist/{chunk-YXPUCBVK.cjs → chunk-DY2D2IW5.cjs} +2 -2
  156. package/dist/{chunk-Z5LLUUFD.cjs → chunk-E26ZO7QM.cjs} +2 -2
  157. package/dist/{chunk-RNKZDJOY.js → chunk-EBCHCYUO.js} +1 -1
  158. package/dist/{chunk-4MO4WLKA.cjs → chunk-EPAIOB5U.cjs} +2 -2
  159. package/dist/{chunk-UX2IZQNM.cjs → chunk-EQZMT2HF.cjs} +2 -2
  160. package/dist/{chunk-U52A2DMK.cjs → chunk-F376L6PP.cjs} +2 -2
  161. package/dist/{chunk-TBBLLEB2.cjs → chunk-F472YLJG.cjs} +2 -2
  162. package/dist/{chunk-W3MM2BSK.cjs → chunk-FXOX3X7E.cjs} +2 -2
  163. package/dist/{chunk-E4IFBCNM.cjs → chunk-G2REP2VZ.cjs} +2 -2
  164. package/dist/{chunk-CFGXI3FX.js → chunk-GLO477NZ.js} +1 -1
  165. package/dist/{chunk-PBNPZ7UX.js → chunk-H4VSK4KF.js} +1 -1
  166. package/dist/{chunk-33TQRYMY.js → chunk-HPSGM6QP.js} +1 -1
  167. package/dist/{chunk-RQKN4WTW.cjs → chunk-HPYHWTTA.cjs} +2 -2
  168. package/dist/{chunk-5RXE7X63.js → chunk-IH4CMOML.js} +2 -2
  169. package/dist/{chunk-VD5TBK2T.cjs → chunk-IMT3IE5M.cjs} +2 -2
  170. package/dist/{chunk-DIP442PL.js → chunk-IP2WWEOU.js} +1 -1
  171. package/dist/{chunk-FCLW3FLF.js → chunk-IS2VB342.js} +1 -1
  172. package/dist/{chunk-UNHWLNE4.js → chunk-ITX53XAZ.js} +1 -1
  173. package/dist/{chunk-KU2XF4TS.cjs → chunk-JXBXDTFG.cjs} +2 -2
  174. package/dist/{chunk-Y4YQEDR3.js → chunk-K62XK7KU.js} +1 -1
  175. package/dist/chunk-KA3TGFJP.js +14 -0
  176. package/dist/{chunk-IXRDP4VP.js → chunk-KBOVBUBM.js} +1 -1
  177. package/dist/{chunk-MKZGM4A6.js → chunk-KPGC2D6E.js} +1 -1
  178. package/dist/{chunk-ZAPA4RPI.js → chunk-KSXTBGIV.js} +1 -1
  179. package/dist/{chunk-PLBIQ2Y7.cjs → chunk-LCIJ4TJ4.cjs} +2 -2
  180. package/dist/{chunk-TUAAE3UC.cjs → chunk-LQOLYXGQ.cjs} +2 -2
  181. package/dist/{chunk-6ADJEPMJ.js → chunk-LSIWCIQV.js} +1 -1
  182. package/dist/{chunk-CBRWUULQ.js → chunk-MHNSZ4HE.js} +1 -1
  183. package/dist/{chunk-WOOKHE7Y.cjs → chunk-MKX4CKAB.cjs} +2 -2
  184. package/dist/{chunk-N2P26AAD.js → chunk-MRTAFRO7.js} +1 -1
  185. package/dist/{chunk-YGULLD73.js → chunk-MRZ7LGKZ.js} +1 -1
  186. package/dist/{chunk-CLMZ2EXW.js → chunk-MSASBR2Y.js} +1 -1
  187. package/dist/{chunk-KEJRWMXR.cjs → chunk-NAWLLC3T.cjs} +2 -2
  188. package/dist/chunk-NJK5F5TF.cjs +21 -0
  189. package/dist/{chunk-HBPCJRZX.cjs → chunk-NLSZVGHK.cjs} +2 -2
  190. package/dist/{chunk-CK36RZXR.js → chunk-O4LRVGOY.js} +1 -1
  191. package/dist/chunk-OG2DMGU6.cjs +14 -0
  192. package/dist/{chunk-TIJGLQKO.js → chunk-OGQKJTXF.js} +1 -1
  193. package/dist/{chunk-UE4XPL43.js → chunk-PETLAONH.js} +1 -1
  194. package/dist/{chunk-MK4ZGXVE.cjs → chunk-PVSS2WPM.cjs} +2 -2
  195. package/dist/{chunk-ONN5COYQ.cjs → chunk-PXITFTJA.cjs} +2 -2
  196. package/dist/{chunk-ZAXYMQ2B.cjs → chunk-QDVPPRWI.cjs} +2 -2
  197. package/dist/{chunk-IPFHV2FV.cjs → chunk-QKERXNJJ.cjs} +2 -2
  198. package/dist/{chunk-ZDJ3J6Z6.cjs → chunk-QLML3IP5.cjs} +2 -2
  199. package/dist/{chunk-YFHQYQII.js → chunk-QVAJ5JP4.js} +1 -1
  200. package/dist/{chunk-S2QF6HG2.cjs → chunk-RD7E4OSJ.cjs} +2 -2
  201. package/dist/{chunk-XIB2G42L.cjs → chunk-RWSA3LXE.cjs} +2 -2
  202. package/dist/{chunk-R6WNZVTA.cjs → chunk-RXSS67VI.cjs} +2 -2
  203. package/dist/{chunk-UXVV3BSC.cjs → chunk-S3ZNESMC.cjs} +2 -2
  204. package/dist/{chunk-YNPRF4BX.js → chunk-S7NDMDRX.js} +1 -1
  205. package/dist/{chunk-HO7KACZZ.cjs → chunk-SK3VYIZ6.cjs} +2 -2
  206. package/dist/{chunk-CX3KG7D2.cjs → chunk-SMGHAG5C.cjs} +2 -2
  207. package/dist/{chunk-D5FJ26GG.js → chunk-T46LODOF.js} +1 -1
  208. package/dist/{chunk-Y4ZMNMYI.js → chunk-TIJWJVKZ.js} +1 -1
  209. package/dist/{chunk-EIILOQ6X.js → chunk-TLWCYLNA.js} +1 -1
  210. package/dist/{chunk-JX45ME2Z.js → chunk-TRJLYZHD.js} +1 -1
  211. package/dist/{chunk-RNBO3DEN.js → chunk-UKKJMCNH.js} +1 -1
  212. package/dist/chunk-ULBEEHG4.js +204 -0
  213. package/dist/{chunk-UDO4JYVU.cjs → chunk-VGTUK3QD.cjs} +2 -2
  214. package/dist/{chunk-4JPVFLVU.js → chunk-VQ7R36AC.js} +1 -1
  215. package/dist/{chunk-IPDIEZBN.cjs → chunk-VVQB5W7U.cjs} +2 -2
  216. package/dist/{chunk-HKZQ56AS.cjs → chunk-VVVATFGK.cjs} +2 -2
  217. package/dist/{chunk-URRL33D5.cjs → chunk-WMTYO5OX.cjs} +2 -2
  218. package/dist/{chunk-U4BMKRG6.js → chunk-WOSSSFXB.js} +1 -1
  219. package/dist/{chunk-OBQIS3KU.js → chunk-WOXXNKTE.js} +1 -1
  220. package/dist/{chunk-WAKSLH7V.cjs → chunk-XKI2OAYV.cjs} +2 -2
  221. package/dist/{chunk-5Y2KLUU6.cjs → chunk-XR4QF6KQ.cjs} +2 -2
  222. package/dist/{chunk-6BERHKDQ.cjs → chunk-XYHTQ523.cjs} +2 -2
  223. package/dist/{chunk-XD6XML3Z.cjs → chunk-XZYZLSUO.cjs} +2 -2
  224. package/dist/chunk-YPSWSI3M.js +21 -0
  225. package/dist/{chunk-4K3MX2J6.js → chunk-YYBIU5BQ.js} +1 -1
  226. package/dist/{chunk-HSGQSTVK.js → chunk-YZA5WZUS.js} +1 -1
  227. package/dist/{chunk-GGBSLAVO.cjs → chunk-Z4LUE424.cjs} +2 -2
  228. package/dist/{chunk-NSOHW3R6.js → chunk-ZV6XYUXS.js} +1 -1
  229. package/dist/consent-CS2ZBZX4.cjs +7 -0
  230. package/dist/consent-NNYHF2N4.js +7 -0
  231. package/dist/customer-portal-D3SLPAHZ.js +7 -0
  232. package/dist/customer-portal-UR3GN4VU.cjs +7 -0
  233. package/dist/dashboard-UHYR5RTY.cjs +7 -0
  234. package/dist/dashboard-UTPGXFW5.js +7 -0
  235. package/dist/data-management-QH2IJ5QV.js +7 -0
  236. package/dist/data-management-TEFRLGSU.cjs +7 -0
  237. package/dist/deduplication-ECVAZVVA.cjs +7 -0
  238. package/dist/deduplication-GYIST22B.js +7 -0
  239. package/dist/design-KUVXMFFK.cjs +7 -0
  240. package/dist/design-YKBXRW5C.js +7 -0
  241. package/dist/document-CY2A2OE7.js +7 -0
  242. package/dist/document-RYQ7MF6U.cjs +7 -0
  243. package/dist/email-settings-TQ5GGDYG.js +7 -0
  244. package/dist/email-settings-TQC34GST.cjs +7 -0
  245. package/dist/email-template-M2VVL4TI.cjs +7 -0
  246. package/dist/email-template-WYROV3UG.js +7 -0
  247. package/dist/entity-FA6PZX6S.js +7 -0
  248. package/dist/entity-IX5NSHPX.cjs +7 -0
  249. package/dist/entity-mapping-7J3IAGKQ.js +7 -0
  250. package/dist/entity-mapping-ZNMFCUKK.cjs +7 -0
  251. package/dist/environments-E3X6NYGX.js +7 -0
  252. package/dist/environments-P2JS4F5N.cjs +7 -0
  253. package/dist/erp-integration-EP2XFEH5.js +7 -0
  254. package/dist/erp-integration-NNV72VFI.cjs +7 -0
  255. package/dist/event-catalog-C45ISVMP.cjs +7 -0
  256. package/dist/event-catalog-D7VJ7WRS.js +7 -0
  257. package/dist/file-UOWBTDIU.cjs +7 -0
  258. package/dist/file-XSN3NAVZ.js +7 -0
  259. package/dist/iban-24GHLFDB.cjs +7 -0
  260. package/dist/iban-LDKYDVQV.js +7 -0
  261. package/dist/index.cjs +107 -100
  262. package/dist/index.d.cts +17 -2
  263. package/dist/index.d.ts +17 -2
  264. package/dist/index.js +58 -51
  265. package/dist/journey-7CKX67M7.js +7 -0
  266. package/dist/journey-EUZ6MVHG.cjs +7 -0
  267. package/dist/kanban-CHTH2ZSY.cjs +7 -0
  268. package/dist/kanban-HI6LL5WY.js +7 -0
  269. package/dist/message-3XZLJR6R.cjs +7 -0
  270. package/dist/message-ZNMCS5YH.js +7 -0
  271. package/dist/metering-DZNZPPY6.cjs +7 -0
  272. package/dist/metering-KOSCPPKB.js +7 -0
  273. package/dist/notes-3AO5GXIT.js +7 -0
  274. package/dist/notes-MPWOQC5J.cjs +7 -0
  275. package/dist/notification-PZOCUYD5.cjs +7 -0
  276. package/dist/notification-VWDZRSFZ.js +7 -0
  277. package/dist/organization-RARYYG2E.cjs +7 -0
  278. package/dist/organization-ZERPH2IH.js +7 -0
  279. package/dist/{organization.d-Bd2Hmk8v.d.cts → organization.d-DqwnNxMg.d.cts} +34 -7
  280. package/dist/{organization.d-Bd2Hmk8v.d.ts → organization.d-DqwnNxMg.d.ts} +34 -7
  281. package/dist/partner-directory-2XMPQWWX.js +7 -0
  282. package/dist/partner-directory-WHNTKQ5E.cjs +7 -0
  283. package/dist/permissions-4T3GFNB4.js +7 -0
  284. package/dist/permissions-FGBIJNN7.cjs +7 -0
  285. package/dist/pricing-4Z4TOETA.cjs +7 -0
  286. package/dist/pricing-C65DTZSX.js +7 -0
  287. package/dist/pricing-tier-NI35WOUP.cjs +7 -0
  288. package/dist/pricing-tier-VUOFK5Q7.js +7 -0
  289. package/dist/purpose-AKOEUHZ4.cjs +7 -0
  290. package/dist/purpose-RBRV3AQZ.js +7 -0
  291. package/dist/sandbox-2KN4X66E.cjs +7 -0
  292. package/dist/sandbox-L2SOOGGR.js +7 -0
  293. package/dist/submission-7BISSPO6.js +7 -0
  294. package/dist/submission-Q24BU4GS.cjs +7 -0
  295. package/dist/targeting-EYGYZD6M.cjs +7 -0
  296. package/dist/targeting-GEJTJN5Z.js +7 -0
  297. package/dist/template-variables-OAYS2E3G.cjs +1148 -0
  298. package/dist/template-variables-VKDJJZUT.js +1148 -0
  299. package/dist/user-EIEOI3OG.js +7 -0
  300. package/dist/user-NJJ7XVKB.cjs +7 -0
  301. package/dist/validation-rules-P6F5P73P.js +7 -0
  302. package/dist/validation-rules-VDU3CIZV.cjs +7 -0
  303. package/dist/webhooks-I7JWU34X.cjs +7 -0
  304. package/dist/webhooks-WPLEHVPX.js +7 -0
  305. package/dist/workflow-3LLURW3H.js +7 -0
  306. package/dist/workflow-RAGQDYXT.cjs +7 -0
  307. package/dist/workflow-definition-B6ELOZUR.cjs +7 -0
  308. package/dist/workflow-definition-D24CRCK2.js +7 -0
  309. package/docs/access-token.md +440 -0
  310. package/docs/address-suggestions.md +256 -0
  311. package/docs/address.md +284 -0
  312. package/docs/ai-agents.md +1891 -0
  313. package/docs/app.md +3388 -0
  314. package/docs/audit-logs.md +242 -0
  315. package/docs/automation.md +4044 -0
  316. package/docs/billing.md +783 -0
  317. package/docs/blueprint-manifest.md +3234 -0
  318. package/docs/consent.md +213 -0
  319. package/docs/customer-portal.md +11399 -0
  320. package/docs/dashboard.md +640 -0
  321. package/docs/data-management.md +883 -0
  322. package/docs/deduplication.md +135 -0
  323. package/docs/design.md +1273 -0
  324. package/docs/document.md +590 -0
  325. package/docs/email-settings.md +1544 -0
  326. package/docs/email-template.md +1197 -0
  327. package/docs/entity-mapping.md +2864 -0
  328. package/docs/entity.md +9595 -0
  329. package/docs/environments.md +259 -0
  330. package/docs/erp-integration.md +4572 -0
  331. package/docs/event-catalog.md +835 -0
  332. package/docs/file.md +1453 -0
  333. package/docs/iban.md +61 -0
  334. package/docs/journey.md +2268 -0
  335. package/docs/kanban.md +882 -0
  336. package/docs/message.md +2122 -0
  337. package/docs/metering.md +1431 -0
  338. package/docs/notes.md +670 -0
  339. package/docs/notification.md +1207 -0
  340. package/docs/organization.md +733 -0
  341. package/docs/partner-directory.md +1197 -0
  342. package/docs/permissions.md +1047 -0
  343. package/docs/pricing-tier.md +81 -0
  344. package/docs/pricing.md +5923 -0
  345. package/docs/purpose.md +283 -0
  346. package/docs/sandbox.md +389 -0
  347. package/docs/submission.md +195 -0
  348. package/docs/targeting.md +959 -0
  349. package/docs/template-variables.md +1141 -0
  350. package/docs/user.md +2555 -0
  351. package/docs/validation-rules.md +1597 -0
  352. package/docs/webhooks.md +996 -0
  353. package/docs/workflow-definition.md +3842 -0
  354. package/docs/workflow.md +4465 -0
  355. package/package.json +3 -2
  356. package/dist/chunk-GMBRXWMD.cjs +0 -14
  357. package/dist/chunk-L43U5IO3.js +0 -14
  358. package/dist/chunk-XE25WERA.js +0 -125
  359. package/dist/chunk-XEQMAKGA.cjs +0 -125
@@ -0,0 +1,1207 @@
1
+ # Notification API
2
+
3
+ - **Base URL:** `https://notification.sls.epilot.io`
4
+ - **Full API Docs:** [https://docs.epilot.io/api/notification](https://docs.epilot.io/api/notification)
5
+
6
+ ## Usage
7
+
8
+ ```ts
9
+ import { epilot } from '@epilot/sdk'
10
+
11
+ epilot.authorize(() => '<token>')
12
+ const { data } = await epilot.notification.getNotificationsV2(...)
13
+ ```
14
+
15
+ ### Tree-shakeable import
16
+
17
+ ```ts
18
+ import { getClient, authorize } from '@epilot/sdk/notification'
19
+
20
+ const notificationClient = getClient()
21
+ authorize(notificationClient, () => '<token>')
22
+ const { data } = await notificationClient.getNotificationsV2(...)
23
+ ```
24
+
25
+ ## Operations
26
+
27
+ **Notification**
28
+ - [`getNotificationsV2`](#getnotificationsv2)
29
+ - [`createNotification`](#createnotification)
30
+ - [`getNotifications`](#getnotifications)
31
+ - [`getNotification`](#getnotification)
32
+ - [`markAllAsRead`](#markallasread)
33
+ - [`markAsRead`](#markasread)
34
+ - [`getTotalUnread`](#gettotalunread)
35
+
36
+ **Template**
37
+ - [`listNotificationTemplates`](#listnotificationtemplates)
38
+ - [`createNotificationTemplate`](#createnotificationtemplate)
39
+ - [`getNotificationTemplate`](#getnotificationtemplate)
40
+ - [`updateNotificationTemplate`](#updatenotificationtemplate)
41
+ - [`patchNotificationTemplate`](#patchnotificationtemplate)
42
+ - [`deleteNotificationTemplate`](#deletenotificationtemplate)
43
+ - [`sendPreview`](#sendpreview)
44
+
45
+ **Schemas**
46
+ - [`Error`](#error)
47
+ - [`EntityOperation`](#entityoperation)
48
+ - [`NotificationItem`](#notificationitem)
49
+ - [`Notification`](#notification)
50
+ - [`NotificationBase`](#notificationbase)
51
+ - [`EntityId`](#entityid)
52
+ - [`Entity`](#entity)
53
+ - [`Id`](#id)
54
+ - [`NotificationId`](#notificationid)
55
+ - [`NotificationCallerContext`](#notificationcallercontext)
56
+ - [`EntitySlug`](#entityslug)
57
+ - [`EntityOwner`](#entityowner)
58
+ - [`EntityAcl`](#entityacl)
59
+ - [`NotificationTemplate`](#notificationtemplate)
60
+ - [`CreateNotificationTemplateInput`](#createnotificationtemplateinput)
61
+ - [`UpdateNotificationTemplateInput`](#updatenotificationtemplateinput)
62
+ - [`NotificationTemplateListResponse`](#notificationtemplatelistresponse)
63
+ - [`SendPreviewInput`](#sendpreviewinput)
64
+ - [`SendPreviewResponse`](#sendpreviewresponse)
65
+
66
+ ### `getNotificationsV2`
67
+
68
+ Get notifications items. These items may eventually contain entities within their payload, which can be hydrated by the client if desired by calling the Entity API directly.
69
+
70
+ `GET /v2/notification/notifications`
71
+
72
+ ```ts
73
+ const { data } = await client.getNotificationsV2({
74
+ cursor: 'example',
75
+ after_id: 1,
76
+ limit: 1,
77
+ })
78
+ ```
79
+
80
+ <details>
81
+ <summary>Response</summary>
82
+
83
+ ```json
84
+ {
85
+ "cursor": "eyJjcmVhd",
86
+ "total": 1,
87
+ "total_unread": 1,
88
+ "results": [
89
+ {
90
+ "id": 123456789,
91
+ "notification_id": 123456789,
92
+ "timestamp": "1970-01-01T00:00:00.000Z",
93
+ "read_state": false,
94
+ "type": "workflow",
95
+ "redirect_url": "https://epilot.cloud",
96
+ "organization_id": "206801",
97
+ "title": {
98
+ "en": "My custom notification",
99
+ "de": "Meine benutzerdefinierte Aktivität"
100
+ },
101
+ "message": {
102
+ "en": "{{caller}} did something with {{contact.entity.id}} {{branch.name}}.",
103
+ "de": "{{caller}} habe etwas damit gemacht {{contact.entity.id}} {{branch.name}}."
104
+ },
105
+ "payload": {
106
+ "entity": {
107
+ "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
108
+ "schema": "contact"
109
+ }
110
+ },
111
+ "caller": {
112
+ "EpilotAuth": {
113
+ "token": {
114
+ "sub": "476e9b48-42f4-4234-a2b0-4668b34626ce",
115
+ "cognito:groups": ["Administrator"],
116
+ "cognito:preferred_role": "arn:aws:iam::912468240823:role/base-administrator-role",
117
+ "iss": "https://cognito-idp.eu-central-1.amazonaws.com/eu-central-1_6lZSgmU6D",
118
+ "custom:ivy_org_id": "739224",
119
+ "cognito:username": "n.ahmad@epilot.cloud",
120
+ "custom:ivy_user_id": "10006129",
121
+ "cognito:roles": ["arn:aws:iam::912468240823:role/base-administrator-role"],
122
+ "aud": "6e0jbdnger7nmoktaaflarue1l",
123
+ "event_id": "cd5f5583-d90c-4db5-8e99-5f5dd29a4d75",
124
+ "token_use": "id",
125
+ "auth_time": 1614333023,
126
+ "exp": 1614336623,
127
+ "iat": 1614333023,
128
+ "email": "n.ahmad@epilot.cloud"
129
+ }
130
+ }
131
+ },
132
+ "operations": [
133
+ {
134
+ "entity": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
135
+ "operation": "updateEntity",
136
+ "params": {
137
+ "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
138
+ "slug": "contact"
139
+ },
140
+ "payload": {
141
+ "_schema": "contact",
142
+ "_org": "123",
143
+ "status": "Inactive"
144
+ }
145
+ }
146
+ ],
147
+ "force_notify_users": {
148
+ "12345": {
149
+ "email": false,
150
+ "in_app": false
151
+ }
152
+ }
153
+ }
154
+ ]
155
+ }
156
+ ```
157
+
158
+ </details>
159
+
160
+ ---
161
+
162
+ ### `createNotification`
163
+
164
+ Create a message that can be displayed in the notification panel.
165
+
166
+ `POST /v1/notification/notifications`
167
+
168
+ ```ts
169
+ const { data } = await client.createNotification(
170
+ null,
171
+ {
172
+ notification_id: 0,
173
+ timestamp: '1970-01-01T00:00:00.000Z',
174
+ type: 'workflow',
175
+ redirect_url: 'https://epilot.cloud',
176
+ organization_id: '206801',
177
+ title: {
178
+ en: 'My custom notification',
179
+ de: 'Meine benutzerdefinierte Aktivität'
180
+ },
181
+ message: {
182
+ en: '{{caller}} did something with {{contact.entity.id}} {{branch.name}}.',
183
+ de: '{{caller}} habe etwas damit gemacht {{contact.entity.id}} {{branch.name}}.'
184
+ },
185
+ payload: {
186
+ entity: {
187
+ id: '3fa85f64-5717-4562-b3fc-2c963f66afa6',
188
+ schema: 'contact'
189
+ }
190
+ },
191
+ caller: {
192
+ EpilotAuth: {
193
+ token: {
194
+ sub: '476e9b48-42f4-4234-a2b0-4668b34626ce',
195
+ 'cognito:groups': ['Administrator'],
196
+ 'cognito:preferred_role': 'arn:aws:iam::912468240823:role/base-administrator-role',
197
+ iss: 'https://cognito-idp.eu-central-1.amazonaws.com/eu-central-1_6lZSgmU6D',
198
+ 'custom:ivy_org_id': '739224',
199
+ 'cognito:username': 'n.ahmad@epilot.cloud',
200
+ 'custom:ivy_user_id': '10006129',
201
+ 'cognito:roles': ['arn:aws:iam::912468240823:role/base-administrator-role'],
202
+ aud: '6e0jbdnger7nmoktaaflarue1l',
203
+ event_id: 'cd5f5583-d90c-4db5-8e99-5f5dd29a4d75',
204
+ token_use: 'id',
205
+ auth_time: 1614333023,
206
+ exp: 1614336623,
207
+ iat: 1614333023,
208
+ email: 'n.ahmad@epilot.cloud'
209
+ }
210
+ }
211
+ },
212
+ operations: [
213
+ {
214
+ entity: '3fa85f64-5717-4562-b3fc-2c963f66afa6',
215
+ operation: 'updateEntity',
216
+ params: {
217
+ id: '3fa85f64-5717-4562-b3fc-2c963f66afa6',
218
+ slug: 'contact'
219
+ },
220
+ payload: {
221
+ _schema: 'contact',
222
+ _org: '123',
223
+ status: 'Inactive'
224
+ }
225
+ }
226
+ ],
227
+ force_notify_users: {
228
+ '12345': {
229
+ email: false,
230
+ in_app: false
231
+ }
232
+ },
233
+ read_state: false,
234
+ visibility_user_ids: ['1', '2', '3', '4', '5']
235
+ },
236
+ )
237
+ ```
238
+
239
+ ---
240
+
241
+ ### `getNotifications`
242
+
243
+ Get notifications
244
+
245
+ `GET /v1/notification/notifications`
246
+
247
+ ```ts
248
+ const { data } = await client.getNotifications({
249
+ after_id: 1,
250
+ limit: 1,
251
+ no_hydrate: true,
252
+ })
253
+ ```
254
+
255
+ <details>
256
+ <summary>Response</summary>
257
+
258
+ ```json
259
+ {
260
+ "total": 1,
261
+ "total_unread": 1,
262
+ "results": [
263
+ {
264
+ "id": 123456789,
265
+ "notification_id": 123456789,
266
+ "timestamp": "1970-01-01T00:00:00.000Z",
267
+ "read_state": false,
268
+ "type": "workflow",
269
+ "redirect_url": "https://epilot.cloud",
270
+ "organization_id": "206801",
271
+ "title": {
272
+ "en": "My custom notification",
273
+ "de": "Meine benutzerdefinierte Aktivität"
274
+ },
275
+ "message": {
276
+ "en": "{{caller}} did something with {{contact.entity.id}} {{branch.name}}.",
277
+ "de": "{{caller}} habe etwas damit gemacht {{contact.entity.id}} {{branch.name}}."
278
+ },
279
+ "payload": {
280
+ "entity": {
281
+ "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
282
+ "schema": "contact"
283
+ }
284
+ },
285
+ "caller": {
286
+ "EpilotAuth": {
287
+ "token": {
288
+ "sub": "476e9b48-42f4-4234-a2b0-4668b34626ce",
289
+ "cognito:groups": ["Administrator"],
290
+ "cognito:preferred_role": "arn:aws:iam::912468240823:role/base-administrator-role",
291
+ "iss": "https://cognito-idp.eu-central-1.amazonaws.com/eu-central-1_6lZSgmU6D",
292
+ "custom:ivy_org_id": "739224",
293
+ "cognito:username": "n.ahmad@epilot.cloud",
294
+ "custom:ivy_user_id": "10006129",
295
+ "cognito:roles": ["arn:aws:iam::912468240823:role/base-administrator-role"],
296
+ "aud": "6e0jbdnger7nmoktaaflarue1l",
297
+ "event_id": "cd5f5583-d90c-4db5-8e99-5f5dd29a4d75",
298
+ "token_use": "id",
299
+ "auth_time": 1614333023,
300
+ "exp": 1614336623,
301
+ "iat": 1614333023,
302
+ "email": "n.ahmad@epilot.cloud"
303
+ }
304
+ }
305
+ },
306
+ "operations": [
307
+ {
308
+ "entity": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
309
+ "operation": "updateEntity",
310
+ "params": {
311
+ "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
312
+ "slug": "contact"
313
+ },
314
+ "payload": {
315
+ "_schema": "contact",
316
+ "_org": "123",
317
+ "status": "Inactive"
318
+ }
319
+ }
320
+ ],
321
+ "force_notify_users": {
322
+ "12345": {
323
+ "email": false,
324
+ "in_app": false
325
+ }
326
+ }
327
+ }
328
+ ]
329
+ }
330
+ ```
331
+
332
+ </details>
333
+
334
+ ---
335
+
336
+ ### `getNotification`
337
+
338
+ Get the details of a single notification.
339
+
340
+ `GET /v1/notification/notifications/{id}`
341
+
342
+ ```ts
343
+ const { data } = await client.getNotification({
344
+ id: 1,
345
+ })
346
+ ```
347
+
348
+ <details>
349
+ <summary>Response</summary>
350
+
351
+ ```json
352
+ {
353
+ "id": 123456789,
354
+ "notification_id": 123456789,
355
+ "timestamp": "1970-01-01T00:00:00.000Z",
356
+ "read_state": false,
357
+ "type": "workflow",
358
+ "redirect_url": "https://epilot.cloud",
359
+ "organization_id": "206801",
360
+ "title": {
361
+ "en": "My custom notification",
362
+ "de": "Meine benutzerdefinierte Aktivität"
363
+ },
364
+ "message": {
365
+ "en": "{{caller}} did something with {{contact.entity.id}} {{branch.name}}.",
366
+ "de": "{{caller}} habe etwas damit gemacht {{contact.entity.id}} {{branch.name}}."
367
+ },
368
+ "payload": {
369
+ "entity": {
370
+ "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
371
+ "schema": "contact"
372
+ }
373
+ },
374
+ "caller": {
375
+ "EpilotAuth": {
376
+ "token": {
377
+ "sub": "476e9b48-42f4-4234-a2b0-4668b34626ce",
378
+ "cognito:groups": ["Administrator"],
379
+ "cognito:preferred_role": "arn:aws:iam::912468240823:role/base-administrator-role",
380
+ "iss": "https://cognito-idp.eu-central-1.amazonaws.com/eu-central-1_6lZSgmU6D",
381
+ "custom:ivy_org_id": "739224",
382
+ "cognito:username": "n.ahmad@epilot.cloud",
383
+ "custom:ivy_user_id": "10006129",
384
+ "cognito:roles": ["arn:aws:iam::912468240823:role/base-administrator-role"],
385
+ "aud": "6e0jbdnger7nmoktaaflarue1l",
386
+ "event_id": "cd5f5583-d90c-4db5-8e99-5f5dd29a4d75",
387
+ "token_use": "id",
388
+ "auth_time": 1614333023,
389
+ "exp": 1614336623,
390
+ "iat": 1614333023,
391
+ "email": "n.ahmad@epilot.cloud"
392
+ }
393
+ }
394
+ },
395
+ "operations": [
396
+ {
397
+ "entity": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
398
+ "operation": "updateEntity",
399
+ "params": {
400
+ "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
401
+ "slug": "contact"
402
+ },
403
+ "payload": {
404
+ "_schema": "contact",
405
+ "_org": "123",
406
+ "status": "Inactive"
407
+ }
408
+ }
409
+ ],
410
+ "force_notify_users": {
411
+ "12345": {
412
+ "email": false,
413
+ "in_app": false
414
+ }
415
+ }
416
+ }
417
+ ```
418
+
419
+ </details>
420
+
421
+ ---
422
+
423
+ ### `markAllAsRead`
424
+
425
+ Mark all as read
426
+
427
+ `PUT /v1/notification/notifications/mark`
428
+
429
+ ```ts
430
+ const { data } = await client.markAllAsRead()
431
+ ```
432
+
433
+ ---
434
+
435
+ ### `markAsRead`
436
+
437
+ Mark as read
438
+
439
+ `PUT /v1/notification/notifications/{id}/mark`
440
+
441
+ ```ts
442
+ const { data } = await client.markAsRead({
443
+ id: 1,
444
+ })
445
+ ```
446
+
447
+ ---
448
+
449
+ ### `getTotalUnread`
450
+
451
+ Get total unread
452
+
453
+ `GET /v1/notification/unreads`
454
+
455
+ ```ts
456
+ const { data } = await client.getTotalUnread()
457
+ ```
458
+
459
+ ---
460
+
461
+ ### `listNotificationTemplates`
462
+
463
+ List notification templates with optional filtering and pagination
464
+
465
+ `GET /v1/notification/templates`
466
+
467
+ ```ts
468
+ const { data } = await client.listNotificationTemplates({
469
+ q: 'example',
470
+ from: 1,
471
+ size: 1,
472
+ sort: 'example',
473
+ fields: 'example',
474
+ hydrate: true,
475
+ })
476
+ ```
477
+
478
+ <details>
479
+ <summary>Response</summary>
480
+
481
+ ```json
482
+ {
483
+ "results": [
484
+ {
485
+ "_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
486
+ "_schema": "string",
487
+ "_title": "string",
488
+ "_org": "string",
489
+ "_tags": ["string"],
490
+ "_created_at": "1970-01-01T00:00:00.000Z",
491
+ "_updated_at": "1970-01-01T00:00:00.000Z",
492
+ "_manifest": ["123e4567-e89b-12d3-a456-426614174000"],
493
+ "_owners": [
494
+ {
495
+ "org_id": "string",
496
+ "user_id": "string"
497
+ }
498
+ ],
499
+ "_acl": {
500
+ "view": ["string"],
501
+ "edit": ["string"],
502
+ "delete": ["string"]
503
+ },
504
+ "name": "string",
505
+ "type": "string",
506
+ "notification_title": "string",
507
+ "message": "string",
508
+ "action_label": "string",
509
+ "action_url": "string",
510
+ "style": "string",
511
+ "system_template": true,
512
+ "created_by": "string",
513
+ "updated_by": "string"
514
+ }
515
+ ],
516
+ "hits": 0
517
+ }
518
+ ```
519
+
520
+ </details>
521
+
522
+ ---
523
+
524
+ ### `createNotificationTemplate`
525
+
526
+ Create a new notification template
527
+
528
+ `POST /v1/notification/templates`
529
+
530
+ ```ts
531
+ const { data } = await client.createNotificationTemplate(
532
+ null,
533
+ {
534
+ name: 'string',
535
+ type: 'string',
536
+ notification_title: 'string',
537
+ message: 'string',
538
+ action_label: 'string',
539
+ action_url: 'string',
540
+ style: 'string',
541
+ _title: 'string',
542
+ _tags: ['string'],
543
+ _manifest: ['123e4567-e89b-12d3-a456-426614174000']
544
+ },
545
+ )
546
+ ```
547
+
548
+ <details>
549
+ <summary>Response</summary>
550
+
551
+ ```json
552
+ {
553
+ "_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
554
+ "_schema": "string",
555
+ "_title": "string",
556
+ "_org": "string",
557
+ "_tags": ["string"],
558
+ "_created_at": "1970-01-01T00:00:00.000Z",
559
+ "_updated_at": "1970-01-01T00:00:00.000Z",
560
+ "_manifest": ["123e4567-e89b-12d3-a456-426614174000"],
561
+ "_owners": [
562
+ {
563
+ "org_id": "string",
564
+ "user_id": "string"
565
+ }
566
+ ],
567
+ "_acl": {
568
+ "view": ["string"],
569
+ "edit": ["string"],
570
+ "delete": ["string"]
571
+ },
572
+ "name": "string",
573
+ "type": "string",
574
+ "notification_title": "string",
575
+ "message": "string",
576
+ "action_label": "string",
577
+ "action_url": "string",
578
+ "style": "string",
579
+ "system_template": true,
580
+ "created_by": "string",
581
+ "updated_by": "string"
582
+ }
583
+ ```
584
+
585
+ </details>
586
+
587
+ ---
588
+
589
+ ### `getNotificationTemplate`
590
+
591
+ Get a single notification template by ID
592
+
593
+ `GET /v1/notification/templates/{id}`
594
+
595
+ ```ts
596
+ const { data } = await client.getNotificationTemplate({
597
+ id: '123e4567-e89b-12d3-a456-426614174000',
598
+ })
599
+ ```
600
+
601
+ <details>
602
+ <summary>Response</summary>
603
+
604
+ ```json
605
+ {
606
+ "_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
607
+ "_schema": "string",
608
+ "_title": "string",
609
+ "_org": "string",
610
+ "_tags": ["string"],
611
+ "_created_at": "1970-01-01T00:00:00.000Z",
612
+ "_updated_at": "1970-01-01T00:00:00.000Z",
613
+ "_manifest": ["123e4567-e89b-12d3-a456-426614174000"],
614
+ "_owners": [
615
+ {
616
+ "org_id": "string",
617
+ "user_id": "string"
618
+ }
619
+ ],
620
+ "_acl": {
621
+ "view": ["string"],
622
+ "edit": ["string"],
623
+ "delete": ["string"]
624
+ },
625
+ "name": "string",
626
+ "type": "string",
627
+ "notification_title": "string",
628
+ "message": "string",
629
+ "action_label": "string",
630
+ "action_url": "string",
631
+ "style": "string",
632
+ "system_template": true,
633
+ "created_by": "string",
634
+ "updated_by": "string"
635
+ }
636
+ ```
637
+
638
+ </details>
639
+
640
+ ---
641
+
642
+ ### `updateNotificationTemplate`
643
+
644
+ Update a notification template (full replacement)
645
+
646
+ `PUT /v1/notification/templates/{id}`
647
+
648
+ ```ts
649
+ const { data } = await client.updateNotificationTemplate(
650
+ {
651
+ id: '123e4567-e89b-12d3-a456-426614174000',
652
+ },
653
+ {
654
+ name: 'string',
655
+ notification_title: 'string',
656
+ message: 'string',
657
+ action_label: 'string',
658
+ action_url: 'string',
659
+ style: 'string',
660
+ _title: 'string',
661
+ _tags: ['string'],
662
+ _manifest: ['123e4567-e89b-12d3-a456-426614174000']
663
+ },
664
+ )
665
+ ```
666
+
667
+ <details>
668
+ <summary>Response</summary>
669
+
670
+ ```json
671
+ {
672
+ "_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
673
+ "_schema": "string",
674
+ "_title": "string",
675
+ "_org": "string",
676
+ "_tags": ["string"],
677
+ "_created_at": "1970-01-01T00:00:00.000Z",
678
+ "_updated_at": "1970-01-01T00:00:00.000Z",
679
+ "_manifest": ["123e4567-e89b-12d3-a456-426614174000"],
680
+ "_owners": [
681
+ {
682
+ "org_id": "string",
683
+ "user_id": "string"
684
+ }
685
+ ],
686
+ "_acl": {
687
+ "view": ["string"],
688
+ "edit": ["string"],
689
+ "delete": ["string"]
690
+ },
691
+ "name": "string",
692
+ "type": "string",
693
+ "notification_title": "string",
694
+ "message": "string",
695
+ "action_label": "string",
696
+ "action_url": "string",
697
+ "style": "string",
698
+ "system_template": true,
699
+ "created_by": "string",
700
+ "updated_by": "string"
701
+ }
702
+ ```
703
+
704
+ </details>
705
+
706
+ ---
707
+
708
+ ### `patchNotificationTemplate`
709
+
710
+ Partially update a notification template
711
+
712
+ `PATCH /v1/notification/templates/{id}`
713
+
714
+ ```ts
715
+ const { data } = await client.patchNotificationTemplate(
716
+ {
717
+ id: '123e4567-e89b-12d3-a456-426614174000',
718
+ },
719
+ {
720
+ name: 'string',
721
+ notification_title: 'string',
722
+ message: 'string',
723
+ action_label: 'string',
724
+ action_url: 'string',
725
+ style: 'string',
726
+ _title: 'string',
727
+ _tags: ['string'],
728
+ _manifest: ['123e4567-e89b-12d3-a456-426614174000']
729
+ },
730
+ )
731
+ ```
732
+
733
+ <details>
734
+ <summary>Response</summary>
735
+
736
+ ```json
737
+ {
738
+ "_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
739
+ "_schema": "string",
740
+ "_title": "string",
741
+ "_org": "string",
742
+ "_tags": ["string"],
743
+ "_created_at": "1970-01-01T00:00:00.000Z",
744
+ "_updated_at": "1970-01-01T00:00:00.000Z",
745
+ "_manifest": ["123e4567-e89b-12d3-a456-426614174000"],
746
+ "_owners": [
747
+ {
748
+ "org_id": "string",
749
+ "user_id": "string"
750
+ }
751
+ ],
752
+ "_acl": {
753
+ "view": ["string"],
754
+ "edit": ["string"],
755
+ "delete": ["string"]
756
+ },
757
+ "name": "string",
758
+ "type": "string",
759
+ "notification_title": "string",
760
+ "message": "string",
761
+ "action_label": "string",
762
+ "action_url": "string",
763
+ "style": "string",
764
+ "system_template": true,
765
+ "created_by": "string",
766
+ "updated_by": "string"
767
+ }
768
+ ```
769
+
770
+ </details>
771
+
772
+ ---
773
+
774
+ ### `deleteNotificationTemplate`
775
+
776
+ Delete a notification template permanently
777
+
778
+ `DELETE /v1/notification/templates/{id}`
779
+
780
+ ```ts
781
+ const { data } = await client.deleteNotificationTemplate({
782
+ id: '123e4567-e89b-12d3-a456-426614174000',
783
+ })
784
+ ```
785
+
786
+ <details>
787
+ <summary>Response</summary>
788
+
789
+ ```json
790
+ {
791
+ "_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
792
+ "_schema": "string",
793
+ "_title": "string",
794
+ "_org": "string",
795
+ "_tags": ["string"],
796
+ "_created_at": "1970-01-01T00:00:00.000Z",
797
+ "_updated_at": "1970-01-01T00:00:00.000Z",
798
+ "_manifest": ["123e4567-e89b-12d3-a456-426614174000"],
799
+ "_owners": [
800
+ {
801
+ "org_id": "string",
802
+ "user_id": "string"
803
+ }
804
+ ],
805
+ "_acl": {
806
+ "view": ["string"],
807
+ "edit": ["string"],
808
+ "delete": ["string"]
809
+ },
810
+ "name": "string",
811
+ "type": "string",
812
+ "notification_title": "string",
813
+ "message": "string",
814
+ "action_label": "string",
815
+ "action_url": "string",
816
+ "style": "string",
817
+ "system_template": true,
818
+ "created_by": "string",
819
+ "updated_by": "string"
820
+ }
821
+ ```
822
+
823
+ </details>
824
+
825
+ ---
826
+
827
+ ### `sendPreview`
828
+
829
+ Send a preview notification (both email and in-app) to the requesting user.
830
+ Used to test notification templates before saving.
831
+
832
+ `POST /v1/notification/templates/send-preview`
833
+
834
+ ```ts
835
+ const { data } = await client.sendPreview(
836
+ null,
837
+ {
838
+ template: {
839
+ name: 'string',
840
+ notification_title: 'string',
841
+ message: 'string',
842
+ action_label: 'string',
843
+ action_url: 'string',
844
+ style: 'string',
845
+ _title: 'string',
846
+ _tags: ['string'],
847
+ _manifest: ['123e4567-e89b-12d3-a456-426614174000']
848
+ },
849
+ context_ids: {}
850
+ },
851
+ )
852
+ ```
853
+
854
+ <details>
855
+ <summary>Response</summary>
856
+
857
+ ```json
858
+ [
859
+ {
860
+ "success": true,
861
+ "data": {}
862
+ }
863
+ ]
864
+ ```
865
+
866
+ </details>
867
+
868
+ ---
869
+
870
+ ## Schemas
871
+
872
+ ### `Error`
873
+
874
+ ```ts
875
+ type Error = {
876
+ message: string
877
+ code?: string
878
+ }
879
+ ```
880
+
881
+ ### `EntityOperation`
882
+
883
+ ```ts
884
+ type EntityOperation = {
885
+ entity: string // uuid
886
+ operation?: string
887
+ params?: {
888
+ id?: string // uuid
889
+ slug?: string
890
+ }
891
+ payload?: object
892
+ }
893
+ ```
894
+
895
+ ### `NotificationItem`
896
+
897
+ ```ts
898
+ type NotificationItem = {
899
+ id?: number
900
+ notification_id?: number
901
+ timestamp?: string // date-time
902
+ read_state?: boolean
903
+ type: string
904
+ redirect_url?: string
905
+ organization_id?: string
906
+ title: {
907
+ en?: string
908
+ de?: string
909
+ }
910
+ message: {
911
+ en?: string
912
+ de?: string
913
+ }
914
+ payload?: Record<string, unknown>
915
+ caller?: {
916
+ EpilotAuth?: {
917
+ token?: { ... }
918
+ }
919
+ }
920
+ operations?: Array<{
921
+ entity: string // uuid
922
+ operation?: string
923
+ params?: {
924
+ id?: { ... }
925
+ slug?: { ... }
926
+ }
927
+ payload?: object
928
+ }>
929
+ force_notify_users?: Record<string, unknown>
930
+ }
931
+ ```
932
+
933
+ ### `Notification`
934
+
935
+ ```ts
936
+ type Notification = {
937
+ notification_id?: number
938
+ timestamp?: string // date-time
939
+ type: string
940
+ redirect_url?: string
941
+ organization_id?: string
942
+ title: {
943
+ en?: string
944
+ de?: string
945
+ }
946
+ message: {
947
+ en?: string
948
+ de?: string
949
+ }
950
+ payload?: Record<string, unknown>
951
+ caller?: {
952
+ EpilotAuth?: {
953
+ token?: { ... }
954
+ }
955
+ }
956
+ operations?: Array<{
957
+ entity: string // uuid
958
+ operation?: string
959
+ params?: {
960
+ id?: { ... }
961
+ slug?: { ... }
962
+ }
963
+ payload?: object
964
+ }>
965
+ force_notify_users?: Record<string, unknown>
966
+ read_state?: boolean
967
+ visibility_user_ids?: string[]
968
+ }
969
+ ```
970
+
971
+ ### `NotificationBase`
972
+
973
+ ```ts
974
+ type NotificationBase = {
975
+ notification_id?: number
976
+ timestamp?: string // date-time
977
+ type: string
978
+ redirect_url?: string
979
+ organization_id?: string
980
+ title: {
981
+ en?: string
982
+ de?: string
983
+ }
984
+ message: {
985
+ en?: string
986
+ de?: string
987
+ }
988
+ payload?: Record<string, unknown>
989
+ caller?: {
990
+ EpilotAuth?: {
991
+ token?: { ... }
992
+ }
993
+ }
994
+ operations?: Array<{
995
+ entity: string // uuid
996
+ operation?: string
997
+ params?: {
998
+ id?: { ... }
999
+ slug?: { ... }
1000
+ }
1001
+ payload?: object
1002
+ }>
1003
+ force_notify_users?: Record<string, unknown>
1004
+ }
1005
+ ```
1006
+
1007
+ ### `EntityId`
1008
+
1009
+ ```ts
1010
+ type EntityId = string // uuid
1011
+ ```
1012
+
1013
+ ### `Entity`
1014
+
1015
+ ```ts
1016
+ type Entity = Record<string, unknown>
1017
+ ```
1018
+
1019
+ ### `Id`
1020
+
1021
+ ```ts
1022
+ type Id = number
1023
+ ```
1024
+
1025
+ ### `NotificationId`
1026
+
1027
+ ```ts
1028
+ type NotificationId = number
1029
+ ```
1030
+
1031
+ ### `NotificationCallerContext`
1032
+
1033
+ ```ts
1034
+ type NotificationCallerContext = {
1035
+ EpilotAuth?: {
1036
+ token?: {
1037
+ sub?: { ... }
1038
+ email?: { ... }
1039
+ cognito:username?: { ... }
1040
+ custom:ivy_user_id?: { ... }
1041
+ }
1042
+ }
1043
+ }
1044
+ ```
1045
+
1046
+ ### `EntitySlug`
1047
+
1048
+ URL-friendly identifier for the entity schema
1049
+
1050
+ ```ts
1051
+ type EntitySlug = string
1052
+ ```
1053
+
1054
+ ### `EntityOwner`
1055
+
1056
+ ```ts
1057
+ type EntityOwner = {
1058
+ org_id: string
1059
+ user_id: string
1060
+ }
1061
+ ```
1062
+
1063
+ ### `EntityAcl`
1064
+
1065
+ Access control list
1066
+
1067
+ ```ts
1068
+ type EntityAcl = {
1069
+ view?: string[]
1070
+ edit?: string[]
1071
+ delete?: string[]
1072
+ }
1073
+ ```
1074
+
1075
+ ### `NotificationTemplate`
1076
+
1077
+ ```ts
1078
+ type NotificationTemplate = {
1079
+ _id: string // uuid
1080
+ _schema: string
1081
+ _title: string
1082
+ _org: string
1083
+ _tags?: string[]
1084
+ _created_at: string // date-time
1085
+ _updated_at: string // date-time
1086
+ _manifest?: string // uuid[]
1087
+ _owners?: Array<{
1088
+ org_id: string
1089
+ user_id: string
1090
+ }>
1091
+ _acl?: {
1092
+ view?: string[]
1093
+ edit?: string[]
1094
+ delete?: string[]
1095
+ }
1096
+ name?: string
1097
+ type?: string
1098
+ notification_title?: string
1099
+ message?: string
1100
+ action_label?: string
1101
+ action_url?: string
1102
+ style?: string
1103
+ system_template?: boolean
1104
+ created_by?: string
1105
+ updated_by?: string
1106
+ }
1107
+ ```
1108
+
1109
+ ### `CreateNotificationTemplateInput`
1110
+
1111
+ ```ts
1112
+ type CreateNotificationTemplateInput = {
1113
+ name: string
1114
+ type: string
1115
+ notification_title?: string
1116
+ message?: string
1117
+ action_label?: string
1118
+ action_url?: string
1119
+ style?: string
1120
+ _title?: string
1121
+ _tags?: string[]
1122
+ _manifest?: string // uuid[]
1123
+ }
1124
+ ```
1125
+
1126
+ ### `UpdateNotificationTemplateInput`
1127
+
1128
+ ```ts
1129
+ type UpdateNotificationTemplateInput = {
1130
+ name?: string
1131
+ notification_title?: string
1132
+ message?: string
1133
+ action_label?: string
1134
+ action_url?: string
1135
+ style?: string
1136
+ _title?: string
1137
+ _tags?: string[]
1138
+ _manifest?: string // uuid[]
1139
+ }
1140
+ ```
1141
+
1142
+ ### `NotificationTemplateListResponse`
1143
+
1144
+ ```ts
1145
+ type NotificationTemplateListResponse = {
1146
+ results?: Array<{
1147
+ _id: string // uuid
1148
+ _schema: string
1149
+ _title: string
1150
+ _org: string
1151
+ _tags?: string[]
1152
+ _created_at: string // date-time
1153
+ _updated_at: string // date-time
1154
+ _manifest?: string // uuid[]
1155
+ _owners?: Array<{
1156
+ org_id: { ... }
1157
+ user_id: { ... }
1158
+ }>
1159
+ _acl?: {
1160
+ view?: { ... }
1161
+ edit?: { ... }
1162
+ delete?: { ... }
1163
+ }
1164
+ name?: string
1165
+ type?: string
1166
+ notification_title?: string
1167
+ message?: string
1168
+ action_label?: string
1169
+ action_url?: string
1170
+ style?: string
1171
+ system_template?: boolean
1172
+ created_by?: string
1173
+ updated_by?: string
1174
+ }>
1175
+ hits?: number
1176
+ }
1177
+ ```
1178
+
1179
+ ### `SendPreviewInput`
1180
+
1181
+ ```ts
1182
+ type SendPreviewInput = {
1183
+ template: {
1184
+ name?: string
1185
+ notification_title?: string
1186
+ message?: string
1187
+ action_label?: string
1188
+ action_url?: string
1189
+ style?: string
1190
+ _title?: string
1191
+ _tags?: string[]
1192
+ _manifest?: string // uuid[]
1193
+ }
1194
+ context_ids?: Record<string, string>
1195
+ }
1196
+ ```
1197
+
1198
+ ### `SendPreviewResponse`
1199
+
1200
+ Array of results for each notification channel (email, in-app)
1201
+
1202
+ ```ts
1203
+ type SendPreviewResponse = Array<{
1204
+ success: boolean
1205
+ data?: unknown
1206
+ }>
1207
+ ```