@epilot/sdk 2.1.0-rc.0 → 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 (357) 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 -13
  30. package/dist/apis/access-token.js +7 -10
  31. package/dist/apis/address-suggestions.cjs +10 -13
  32. package/dist/apis/address-suggestions.js +7 -10
  33. package/dist/apis/address.cjs +10 -13
  34. package/dist/apis/address.js +7 -10
  35. package/dist/apis/ai-agents.cjs +10 -13
  36. package/dist/apis/ai-agents.js +7 -10
  37. package/dist/apis/app.cjs +10 -13
  38. package/dist/apis/app.js +7 -10
  39. package/dist/apis/audit-logs.cjs +10 -13
  40. package/dist/apis/audit-logs.js +7 -10
  41. package/dist/apis/automation.cjs +10 -13
  42. package/dist/apis/automation.js +7 -10
  43. package/dist/apis/billing.cjs +10 -13
  44. package/dist/apis/billing.js +7 -10
  45. package/dist/apis/blueprint-manifest.cjs +10 -13
  46. package/dist/apis/blueprint-manifest.js +7 -10
  47. package/dist/apis/consent.cjs +10 -13
  48. package/dist/apis/consent.js +7 -10
  49. package/dist/apis/customer-portal.cjs +10 -13
  50. package/dist/apis/customer-portal.js +7 -10
  51. package/dist/apis/dashboard.cjs +10 -13
  52. package/dist/apis/dashboard.js +7 -10
  53. package/dist/apis/data-management.cjs +10 -13
  54. package/dist/apis/data-management.js +7 -10
  55. package/dist/apis/deduplication.cjs +10 -13
  56. package/dist/apis/deduplication.js +7 -10
  57. package/dist/apis/design.cjs +10 -13
  58. package/dist/apis/design.js +7 -10
  59. package/dist/apis/document.cjs +10 -13
  60. package/dist/apis/document.js +7 -10
  61. package/dist/apis/email-settings.cjs +10 -13
  62. package/dist/apis/email-settings.js +7 -10
  63. package/dist/apis/email-template.cjs +10 -13
  64. package/dist/apis/email-template.js +7 -10
  65. package/dist/apis/entity-mapping.cjs +10 -13
  66. package/dist/apis/entity-mapping.js +7 -10
  67. package/dist/apis/entity.cjs +10 -13
  68. package/dist/apis/entity.js +7 -10
  69. package/dist/apis/environments.cjs +10 -13
  70. package/dist/apis/environments.js +7 -10
  71. package/dist/apis/erp-integration.cjs +10 -13
  72. package/dist/apis/erp-integration.js +7 -10
  73. package/dist/apis/event-catalog.cjs +10 -13
  74. package/dist/apis/event-catalog.js +7 -10
  75. package/dist/apis/file.cjs +10 -13
  76. package/dist/apis/file.js +7 -10
  77. package/dist/apis/iban.cjs +10 -13
  78. package/dist/apis/iban.js +7 -10
  79. package/dist/apis/journey.cjs +10 -13
  80. package/dist/apis/journey.js +7 -10
  81. package/dist/apis/kanban.cjs +10 -13
  82. package/dist/apis/kanban.js +7 -10
  83. package/dist/apis/message.cjs +10 -13
  84. package/dist/apis/message.js +7 -10
  85. package/dist/apis/metering.cjs +10 -13
  86. package/dist/apis/metering.js +7 -10
  87. package/dist/apis/notes.cjs +10 -13
  88. package/dist/apis/notes.js +7 -10
  89. package/dist/apis/notification.cjs +10 -13
  90. package/dist/apis/notification.js +7 -10
  91. package/dist/apis/organization.cjs +10 -13
  92. package/dist/apis/organization.d.cts +2 -2
  93. package/dist/apis/organization.d.ts +2 -2
  94. package/dist/apis/organization.js +7 -10
  95. package/dist/apis/partner-directory.cjs +10 -13
  96. package/dist/apis/partner-directory.js +7 -10
  97. package/dist/apis/permissions.cjs +10 -13
  98. package/dist/apis/permissions.js +7 -10
  99. package/dist/apis/pricing-tier.cjs +10 -13
  100. package/dist/apis/pricing-tier.js +7 -10
  101. package/dist/apis/pricing.cjs +10 -13
  102. package/dist/apis/pricing.js +7 -10
  103. package/dist/apis/purpose.cjs +10 -13
  104. package/dist/apis/purpose.js +7 -10
  105. package/dist/apis/sandbox.cjs +10 -13
  106. package/dist/apis/sandbox.js +7 -10
  107. package/dist/apis/submission.cjs +10 -13
  108. package/dist/apis/submission.js +7 -10
  109. package/dist/apis/targeting.cjs +10 -13
  110. package/dist/apis/targeting.js +7 -10
  111. package/dist/apis/template-variables.cjs +10 -13
  112. package/dist/apis/template-variables.js +7 -10
  113. package/dist/apis/user.cjs +10 -13
  114. package/dist/apis/user.js +7 -10
  115. package/dist/apis/validation-rules.cjs +10 -13
  116. package/dist/apis/validation-rules.js +7 -10
  117. package/dist/apis/webhooks.cjs +10 -13
  118. package/dist/apis/webhooks.js +7 -10
  119. package/dist/apis/workflow-definition.cjs +10 -13
  120. package/dist/apis/workflow-definition.js +7 -10
  121. package/dist/apis/workflow.cjs +10 -13
  122. package/dist/apis/workflow.js +7 -10
  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-2HOJWFQ4.js +14 -0
  134. package/dist/chunk-372VUPHN.js +14 -0
  135. package/dist/chunk-3HJEWWPS.cjs +14 -0
  136. package/dist/chunk-3N67SSL3.js +14 -0
  137. package/dist/chunk-3XEP56SV.cjs +204 -0
  138. package/dist/chunk-3ZZ57K3S.cjs +14 -0
  139. package/dist/chunk-4SWC43JO.cjs +14 -0
  140. package/dist/chunk-4VFQTSJQ.js +14 -0
  141. package/dist/chunk-57QIBYDN.js +14 -0
  142. package/dist/chunk-5SNJAD6F.cjs +14 -0
  143. package/dist/chunk-73H6TVKN.js +14 -0
  144. package/dist/chunk-A6JOROUC.cjs +14 -0
  145. package/dist/chunk-AJKH25H2.cjs +14 -0
  146. package/dist/chunk-ARWMTXJV.cjs +14 -0
  147. package/dist/chunk-B3ZGAG7B.js +14 -0
  148. package/dist/chunk-BH5ZXK4J.cjs +14 -0
  149. package/dist/chunk-BWFXLUK5.cjs +14 -0
  150. package/dist/chunk-C6UTZEHH.js +14 -0
  151. package/dist/chunk-CPKBR34V.js +14 -0
  152. package/dist/chunk-CWSHYFVZ.js +14 -0
  153. package/dist/chunk-DJKSULPK.js +14 -0
  154. package/dist/chunk-DNJ54L2G.js +14 -0
  155. package/dist/chunk-DY2D2IW5.cjs +14 -0
  156. package/dist/chunk-E26ZO7QM.cjs +14 -0
  157. package/dist/chunk-EBCHCYUO.js +14 -0
  158. package/dist/chunk-EPAIOB5U.cjs +14 -0
  159. package/dist/chunk-EQZMT2HF.cjs +14 -0
  160. package/dist/chunk-F376L6PP.cjs +14 -0
  161. package/dist/chunk-F472YLJG.cjs +14 -0
  162. package/dist/chunk-FXOX3X7E.cjs +14 -0
  163. package/dist/chunk-G2REP2VZ.cjs +14 -0
  164. package/dist/chunk-GLO477NZ.js +14 -0
  165. package/dist/chunk-H4VSK4KF.js +14 -0
  166. package/dist/chunk-HPSGM6QP.js +14 -0
  167. package/dist/chunk-HPYHWTTA.cjs +14 -0
  168. package/dist/chunk-IH4CMOML.js +14 -0
  169. package/dist/chunk-IMT3IE5M.cjs +14 -0
  170. package/dist/chunk-IP2WWEOU.js +14 -0
  171. package/dist/chunk-IS2VB342.js +14 -0
  172. package/dist/chunk-ITX53XAZ.js +14 -0
  173. package/dist/chunk-JXBXDTFG.cjs +14 -0
  174. package/dist/chunk-K62XK7KU.js +14 -0
  175. package/dist/chunk-KA3TGFJP.js +14 -0
  176. package/dist/chunk-KBOVBUBM.js +14 -0
  177. package/dist/chunk-KPGC2D6E.js +14 -0
  178. package/dist/chunk-KSXTBGIV.js +14 -0
  179. package/dist/chunk-LCIJ4TJ4.cjs +14 -0
  180. package/dist/chunk-LQOLYXGQ.cjs +14 -0
  181. package/dist/chunk-LSIWCIQV.js +14 -0
  182. package/dist/chunk-MHNSZ4HE.js +14 -0
  183. package/dist/chunk-MKX4CKAB.cjs +14 -0
  184. package/dist/chunk-MRTAFRO7.js +14 -0
  185. package/dist/chunk-MRZ7LGKZ.js +14 -0
  186. package/dist/chunk-MSASBR2Y.js +14 -0
  187. package/dist/chunk-NAWLLC3T.cjs +14 -0
  188. package/dist/chunk-NJK5F5TF.cjs +21 -0
  189. package/dist/chunk-NLSZVGHK.cjs +14 -0
  190. package/dist/chunk-O4LRVGOY.js +14 -0
  191. package/dist/chunk-OG2DMGU6.cjs +14 -0
  192. package/dist/chunk-OGQKJTXF.js +14 -0
  193. package/dist/chunk-PETLAONH.js +14 -0
  194. package/dist/chunk-PVSS2WPM.cjs +14 -0
  195. package/dist/chunk-PXITFTJA.cjs +14 -0
  196. package/dist/chunk-QDVPPRWI.cjs +14 -0
  197. package/dist/chunk-QKERXNJJ.cjs +14 -0
  198. package/dist/chunk-QLML3IP5.cjs +14 -0
  199. package/dist/chunk-QVAJ5JP4.js +14 -0
  200. package/dist/chunk-RD7E4OSJ.cjs +14 -0
  201. package/dist/chunk-RWSA3LXE.cjs +14 -0
  202. package/dist/chunk-RXSS67VI.cjs +14 -0
  203. package/dist/chunk-S3ZNESMC.cjs +14 -0
  204. package/dist/chunk-S7NDMDRX.js +14 -0
  205. package/dist/chunk-SK3VYIZ6.cjs +14 -0
  206. package/dist/chunk-SMGHAG5C.cjs +14 -0
  207. package/dist/chunk-T46LODOF.js +14 -0
  208. package/dist/chunk-TIJWJVKZ.js +14 -0
  209. package/dist/chunk-TLWCYLNA.js +14 -0
  210. package/dist/chunk-TRJLYZHD.js +14 -0
  211. package/dist/chunk-UKKJMCNH.js +14 -0
  212. package/dist/chunk-ULBEEHG4.js +204 -0
  213. package/dist/chunk-VGTUK3QD.cjs +14 -0
  214. package/dist/chunk-VQ7R36AC.js +14 -0
  215. package/dist/chunk-VVQB5W7U.cjs +14 -0
  216. package/dist/chunk-VVVATFGK.cjs +14 -0
  217. package/dist/chunk-WMTYO5OX.cjs +14 -0
  218. package/dist/chunk-WOSSSFXB.js +14 -0
  219. package/dist/chunk-WOXXNKTE.js +14 -0
  220. package/dist/chunk-XKI2OAYV.cjs +14 -0
  221. package/dist/chunk-XR4QF6KQ.cjs +14 -0
  222. package/dist/chunk-XYHTQ523.cjs +14 -0
  223. package/dist/chunk-XZYZLSUO.cjs +14 -0
  224. package/dist/chunk-YPSWSI3M.js +21 -0
  225. package/dist/chunk-YYBIU5BQ.js +14 -0
  226. package/dist/chunk-YZA5WZUS.js +14 -0
  227. package/dist/chunk-Z4LUE424.cjs +14 -0
  228. package/dist/chunk-ZV6XYUXS.js +14 -0
  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 +199 -58
  262. package/dist/index.d.cts +17 -2
  263. package/dist/index.d.ts +17 -2
  264. package/dist/index.js +197 -56
  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-XE25WERA.js +0 -125
  357. package/dist/chunk-XEQMAKGA.cjs +0 -125
@@ -0,0 +1,835 @@
1
+ # Event Catalog API
2
+
3
+ - **Base URL:** `https://event-catalog.sls.epilot.io`
4
+ - **Full API Docs:** [https://docs.epilot.io/api/event-catalog](https://docs.epilot.io/api/event-catalog)
5
+
6
+ ## Usage
7
+
8
+ ```ts
9
+ import { epilot } from '@epilot/sdk'
10
+
11
+ epilot.authorize(() => '<token>')
12
+ const { data } = await epilot.eventCatalog.listEvents(...)
13
+ ```
14
+
15
+ ### Tree-shakeable import
16
+
17
+ ```ts
18
+ import { getClient, authorize } from '@epilot/sdk/event-catalog'
19
+
20
+ const eventCatalogClient = getClient()
21
+ authorize(eventCatalogClient, () => '<token>')
22
+ const { data } = await eventCatalogClient.listEvents(...)
23
+ ```
24
+
25
+ ## Operations
26
+
27
+ **Event Catalog**
28
+ - [`listEvents`](#listevents)
29
+ - [`getEvent`](#getevent)
30
+ - [`patchEvent`](#patchevent)
31
+ - [`getEventJSONSchema`](#geteventjsonschema)
32
+ - [`getEventExample`](#geteventexample)
33
+ - [`searchEventHistory`](#searcheventhistory)
34
+ - [`triggerEvent`](#triggerevent)
35
+
36
+ **Schemas**
37
+ - [`EventConfigBase`](#eventconfigbase)
38
+ - [`EventConfig`](#eventconfig)
39
+ - [`UpdateEventPayload`](#updateeventpayload)
40
+ - [`PrimitiveField`](#primitivefield)
41
+ - [`ContextEntity`](#contextentity)
42
+ - [`SchemaField`](#schemafield)
43
+ - [`CommonEventMetadata`](#commoneventmetadata)
44
+ - [`EventJsonSchema`](#eventjsonschema)
45
+ - [`Event`](#event)
46
+ - [`GraphDefinition`](#graphdefinition)
47
+ - [`GraphNode`](#graphnode)
48
+ - [`GraphEdge`](#graphedge)
49
+ - [`EntityOperationTrigger`](#entityoperationtrigger)
50
+ - [`SearchOptions`](#searchoptions)
51
+ - [`FieldsParam`](#fieldsparam)
52
+ - [`TriggerEventPayload`](#triggereventpayload)
53
+ - [`TriggerEventResponse`](#triggereventresponse)
54
+
55
+ ### `listEvents`
56
+
57
+ Retrieve list of available business events
58
+
59
+ `GET /v1/events`
60
+
61
+ ```ts
62
+ const { data } = await client.listEvents()
63
+ ```
64
+
65
+ <details>
66
+ <summary>Response</summary>
67
+
68
+ ```json
69
+ {
70
+ "results": [
71
+ {
72
+ "event_name": "AddMeterReading",
73
+ "event_title": "Add Meter Reading",
74
+ "event_description": "Triggered when a new meter reading is added",
75
+ "event_version": "1.0.0",
76
+ "event_status": "active",
77
+ "event_tags": ["builtin", "metering", "erp"],
78
+ "schema_fields": {},
79
+ "entity_graph": {
80
+ "nodes": [
81
+ {
82
+ "id": "contact",
83
+ "schema": "contact",
84
+ "cardinality": "one",
85
+ "fields": ["_id", "_title", "first_name", "account", "!account.*._files", "**._product"]
86
+ }
87
+ ],
88
+ "edges": [
89
+ {
90
+ "from": "contact",
91
+ "to": "billing_account"
92
+ }
93
+ ]
94
+ },
95
+ "entity_operation": {
96
+ "operation": ["createEntity", "updateEntity"],
97
+ "schema": ["contact", "contract", "order"],
98
+ "attribute": ["email", "phone", "status"],
99
+ "purpose": ["Kündigung", "Umzug/Auszug"]
100
+ },
101
+ "enabled": true,
102
+ "auto_trigger": true,
103
+ "automation_trigger": true
104
+ }
105
+ ]
106
+ }
107
+ ```
108
+
109
+ </details>
110
+
111
+ ---
112
+
113
+ ### `getEvent`
114
+
115
+ Retrieve the configuration of a specific business event
116
+
117
+ `GET /v1/events/{event_name}`
118
+
119
+ ```ts
120
+ const { data } = await client.getEvent({
121
+ event_name: 'example',
122
+ })
123
+ ```
124
+
125
+ <details>
126
+ <summary>Response</summary>
127
+
128
+ ```json
129
+ {
130
+ "event_name": "AddMeterReading",
131
+ "event_title": "Add Meter Reading",
132
+ "event_description": "Triggered when a new meter reading is added",
133
+ "event_version": "1.0.0",
134
+ "event_status": "active",
135
+ "event_tags": ["builtin", "metering", "erp"],
136
+ "schema_fields": {},
137
+ "entity_graph": {
138
+ "nodes": [
139
+ {
140
+ "id": "contact",
141
+ "schema": "contact",
142
+ "cardinality": "one",
143
+ "fields": ["_id", "_title", "first_name", "account", "!account.*._files", "**._product"]
144
+ }
145
+ ],
146
+ "edges": [
147
+ {
148
+ "from": "contact",
149
+ "to": "billing_account"
150
+ }
151
+ ]
152
+ },
153
+ "entity_operation": {
154
+ "operation": ["createEntity", "updateEntity"],
155
+ "schema": ["contact", "contract", "order"],
156
+ "attribute": ["email", "phone", "status"],
157
+ "purpose": ["Kündigung", "Umzug/Auszug"]
158
+ },
159
+ "enabled": true,
160
+ "auto_trigger": true,
161
+ "automation_trigger": true
162
+ }
163
+ ```
164
+
165
+ </details>
166
+
167
+ ---
168
+
169
+ ### `patchEvent`
170
+
171
+ Update the configuration of a specific business event for the organization
172
+
173
+ `PATCH /v1/events/{event_name}`
174
+
175
+ ```ts
176
+ const { data } = await client.patchEvent(
177
+ {
178
+ event_name: 'example',
179
+ },
180
+ {
181
+ event_name: 'AddMeterReading',
182
+ event_title: 'Add Meter Reading',
183
+ event_description: 'Triggered when a new meter reading is added',
184
+ event_version: '1.0.0',
185
+ event_status: 'active',
186
+ event_tags: ['builtin', 'metering', 'erp'],
187
+ schema_fields: {},
188
+ entity_graph: {
189
+ nodes: [
190
+ {
191
+ id: 'contact',
192
+ schema: 'contact',
193
+ cardinality: 'one',
194
+ fields: ['_id', '_title', 'first_name', 'account', '!account.*._files', '**._product']
195
+ }
196
+ ],
197
+ edges: [
198
+ {
199
+ from: 'contact',
200
+ to: 'billing_account'
201
+ }
202
+ ]
203
+ },
204
+ entity_operation: {
205
+ operation: ['createEntity', 'updateEntity'],
206
+ schema: ['contact', 'contract', 'order'],
207
+ attribute: ['email', 'phone', 'status'],
208
+ purpose: ['Kündigung', 'Umzug/Auszug']
209
+ },
210
+ enabled: true,
211
+ auto_trigger: true,
212
+ automation_trigger: true
213
+ },
214
+ )
215
+ ```
216
+
217
+ <details>
218
+ <summary>Response</summary>
219
+
220
+ ```json
221
+ {
222
+ "event_name": "AddMeterReading",
223
+ "event_title": "Add Meter Reading",
224
+ "event_description": "Triggered when a new meter reading is added",
225
+ "event_version": "1.0.0",
226
+ "event_status": "active",
227
+ "event_tags": ["builtin", "metering", "erp"],
228
+ "schema_fields": {},
229
+ "entity_graph": {
230
+ "nodes": [
231
+ {
232
+ "id": "contact",
233
+ "schema": "contact",
234
+ "cardinality": "one",
235
+ "fields": ["_id", "_title", "first_name", "account", "!account.*._files", "**._product"]
236
+ }
237
+ ],
238
+ "edges": [
239
+ {
240
+ "from": "contact",
241
+ "to": "billing_account"
242
+ }
243
+ ]
244
+ },
245
+ "entity_operation": {
246
+ "operation": ["createEntity", "updateEntity"],
247
+ "schema": ["contact", "contract", "order"],
248
+ "attribute": ["email", "phone", "status"],
249
+ "purpose": ["Kündigung", "Umzug/Auszug"]
250
+ },
251
+ "enabled": true,
252
+ "auto_trigger": true,
253
+ "automation_trigger": true
254
+ }
255
+ ```
256
+
257
+ </details>
258
+
259
+ ---
260
+
261
+ ### `getEventJSONSchema`
262
+
263
+ Retrieve the JSON Schema of a specific business event
264
+
265
+ `GET /v1/events/{event_name}/json_schema`
266
+
267
+ ```ts
268
+ const { data } = await client.getEventJSONSchema({
269
+ event_name: 'example',
270
+ })
271
+ ```
272
+
273
+ <details>
274
+ <summary>Response</summary>
275
+
276
+ ```json
277
+ {
278
+ "type": "object",
279
+ "properties": {
280
+ "_org_id": {
281
+ "type": "string",
282
+ "description": "epilot tenant/organization ID"
283
+ },
284
+ "_event_time": {
285
+ "type": "string",
286
+ "format": "date-time",
287
+ "description": "ISO 8601 timestamp when event occurred"
288
+ },
289
+ "_event_id": {
290
+ "type": "string",
291
+ "description": "Unique event identifier (ULID)"
292
+ },
293
+ "_event_name": {
294
+ "type": "string",
295
+ "description": "Event name from catalog"
296
+ },
297
+ "_event_version": {
298
+ "type": "string",
299
+ "description": "Event version (semver)"
300
+ },
301
+ "_event_source": {
302
+ "type": "string",
303
+ "description": "Source that triggered the event"
304
+ },
305
+ "reading_value": {
306
+ "type": "number",
307
+ "description": "The meter reading value"
308
+ },
309
+ "reading_date": {
310
+ "type": "string",
311
+ "format": "date-time",
312
+ "description": "ISO 8601 timestamp when reading was taken"
313
+ },
314
+ "read_by": {
315
+ "type": "string",
316
+ "description": "Name or identifier of who submitted the reading"
317
+ },
318
+ "reason": {
319
+ "type": "string",
320
+ "enum": ["regular", "move-in", "move-out", "supplier-change", "correction", "final"],
321
+ "description": "Reason for the meter reading"
322
+ },
323
+ "direction": {
324
+ "type": "string",
325
+ "enum": ["feed-in", "feed-out"],
326
+ "description": "Direction of energy flow"
327
+ },
328
+ "source": {
329
+ "type": "string",
330
+ "enum": ["portal", "360", "api", "automation"],
331
+ "description": "Source system where reading was submitted"
332
+ },
333
+ "meter_id": {
334
+ "type": "string",
335
+ "format": "uuid",
336
+ "description": "Entity ID of the meter"
337
+ },
338
+ "counter_id": {
339
+ "type": "string",
340
+ "format": "uuid",
341
+ "description": "Entity ID of the meter counter"
342
+ },
343
+ "meter_number": {
344
+ "type": "string",
345
+ "description": "Human-readable meter number"
346
+ },
347
+ "obis_number": {
348
+ "type": "string",
349
+ "description": "OBIS code of the counter"
350
+ },
351
+ "unit": {
352
+ "type": "string",
353
+ "description": "Unit of measurement (e.g., kWh, m3)"
354
+ },
355
+ "customer_id": {
356
+ "type": "string",
357
+ "format": "uuid",
358
+ "description": "Entity ID of the customer"
359
+ },
360
+ "contract_id": {
361
+ "type": "string",
362
+ "format": "uuid",
363
+ "description": "Entity ID of the contract"
364
+ },
365
+ "user_id": {
366
+ "type": "string",
367
+ "description": "ID of the user who submitted the reading"
368
+ },
369
+ "user_email": {
370
+ "type": "string",
371
+ "format": "email",
372
+ "description": "Email of the user who submitted the reading"
373
+ }
374
+ },
375
+ "required": ["_org_id", "_event_time", "_event_id", "_event_name", "_event_version", "_event_source", "reading_value", "reading_date", "read_by", "reason", "direction", "source", "meter_id", "counter_id", "meter_number", "obis_number", "unit", "customer_id", "contract_id"]
376
+ }
377
+ ```
378
+
379
+ </details>
380
+
381
+ ---
382
+
383
+ ### `getEventExample`
384
+
385
+ Generate a sample event payload based on the event's JSON Schema
386
+
387
+ `GET /v1/events/{event_name}/example`
388
+
389
+ ```ts
390
+ const { data } = await client.getEventExample({
391
+ event_name: 'example',
392
+ })
393
+ ```
394
+
395
+ <details>
396
+ <summary>Response</summary>
397
+
398
+ ```json
399
+ {}
400
+ ```
401
+
402
+ </details>
403
+
404
+ ---
405
+
406
+ ### `searchEventHistory`
407
+
408
+ Paginated history of events
409
+
410
+ `POST /v1/events/{event_name}:history`
411
+
412
+ ```ts
413
+ const { data } = await client.searchEventHistory(
414
+ {
415
+ event_name: 'example',
416
+ },
417
+ {
418
+ limit: 10,
419
+ cursor: {
420
+ event_time: '2025-10-31 12:34:56',
421
+ event_id: 'evt_1234567890abcdef'
422
+ },
423
+ timestamp: {
424
+ from: '2025-10-01T00:00:00Z',
425
+ to: '2025-10-31T23:59:59Z'
426
+ },
427
+ event_id: 'evt_1234567890abcdef'
428
+ },
429
+ )
430
+ ```
431
+
432
+ <details>
433
+ <summary>Response</summary>
434
+
435
+ ```json
436
+ {
437
+ "results": [
438
+ {
439
+ "_org_id": "org_123456",
440
+ "_event_time": "2024-01-01T12:00:00Z",
441
+ "_event_id": "01FZ4Z5FZ5FZ5FZ5FZ5FZ5FZ5F",
442
+ "_event_name": "MeterReading",
443
+ "_event_version": "1.0.0",
444
+ "_event_source": "api",
445
+ "_trigger_source_type": "api",
446
+ "_trigger_source": "user_123456",
447
+ "reading_value": 123.45,
448
+ "reading_date": "2024-01-01T11:59:00Z",
449
+ "read_by": "John Doe",
450
+ "reason": "regular",
451
+ "direction": "feed-out",
452
+ "source": "portal",
453
+ "meter_id": "550e8400-e29b-41d4-a716-446655440000",
454
+ "counter_id": "660e8400-e29b-41d4-a716-446655440000",
455
+ "meter_number": "MT123456789",
456
+ "obis_number": "1-0:1.8.0",
457
+ "unit": "kWh",
458
+ "customer_id": "770e8400-e29b-41d4-a716-446655440000",
459
+ "contract_id": "880e8400-e29b-41d4-a716-446655440000"
460
+ }
461
+ ],
462
+ "next_cursor": {
463
+ "event_time": "2025-10-31T12:34:56Z",
464
+ "event_id": "evt_1234567890abcdef"
465
+ }
466
+ }
467
+ ```
468
+
469
+ </details>
470
+
471
+ ---
472
+
473
+ ### `triggerEvent`
474
+
475
+ Explicitly trigger an event by providing input field values and an optional entity seed
476
+ for graph hydration. The event must be enabled for the organization.
477
+
478
+ `POST /v1/events/{event_name}:trigger`
479
+
480
+ ```ts
481
+ const { data } = await client.triggerEvent(
482
+ {
483
+ event_name: 'example',
484
+ },
485
+ {
486
+ seed: {
487
+ entity_id: '3fa85f64-5717-4562-b3fc-2c963f66afa6',
488
+ node_id: 'string'
489
+ },
490
+ fields: {},
491
+ skip_hydration: ['string'],
492
+ _trigger_source_type: 'string',
493
+ _trigger_source: 'string'
494
+ },
495
+ )
496
+ ```
497
+
498
+ <details>
499
+ <summary>Response</summary>
500
+
501
+ ```json
502
+ {
503
+ "success": true,
504
+ "event_id": "string",
505
+ "event_bridge_event_id": "string"
506
+ }
507
+ ```
508
+
509
+ </details>
510
+
511
+ ---
512
+
513
+ ## Schemas
514
+
515
+ ### `EventConfigBase`
516
+
517
+ Base properties shared between EventConfig and UpdateEventPayload
518
+
519
+ ```ts
520
+ type EventConfigBase = {
521
+ event_name?: string
522
+ event_title?: string
523
+ event_description?: string
524
+ event_version?: string
525
+ event_status?: "active" | "deprecated" | "draft" | "disabled"
526
+ event_tags?: string[]
527
+ schema_fields?: Record<string, {
528
+ json_schema: object
529
+ required?: boolean
530
+ graph_source?: string
531
+ } | {
532
+ entity_schema: string
533
+ required?: boolean
534
+ }>
535
+ entity_graph?: {
536
+ nodes: Array<{
537
+ id: { ... }
538
+ schema: { ... }
539
+ cardinality?: { ... }
540
+ fields?: { ... }
541
+ }>
542
+ edges: Array<{
543
+ from: { ... }
544
+ to: { ... }
545
+ }>
546
+ }
547
+ entity_operation?: {
548
+ operation: "createEntity" | "updateEntity" | "deleteEntity"[]
549
+ schema: string[]
550
+ attribute?: string[]
551
+ purpose?: string[]
552
+ }
553
+ enabled?: boolean
554
+ auto_trigger?: boolean
555
+ automation_trigger?: boolean
556
+ }
557
+ ```
558
+
559
+ ### `EventConfig`
560
+
561
+ Event configuration with required fields
562
+
563
+ ```ts
564
+ type EventConfig = {
565
+ event_name: string
566
+ event_title?: string
567
+ event_description?: string
568
+ event_version: string
569
+ event_status?: "active" | "deprecated" | "draft" | "disabled"
570
+ event_tags?: string[]
571
+ schema_fields: Record<string, {
572
+ json_schema: object
573
+ required?: boolean
574
+ graph_source?: string
575
+ } | {
576
+ entity_schema: string
577
+ required?: boolean
578
+ }>
579
+ entity_graph?: {
580
+ nodes: Array<{
581
+ id: { ... }
582
+ schema: { ... }
583
+ cardinality?: { ... }
584
+ fields?: { ... }
585
+ }>
586
+ edges: Array<{
587
+ from: { ... }
588
+ to: { ... }
589
+ }>
590
+ }
591
+ entity_operation?: {
592
+ operation: "createEntity" | "updateEntity" | "deleteEntity"[]
593
+ schema: string[]
594
+ attribute?: string[]
595
+ purpose?: string[]
596
+ }
597
+ enabled?: boolean
598
+ auto_trigger?: boolean
599
+ automation_trigger?: boolean
600
+ }
601
+ ```
602
+
603
+ ### `UpdateEventPayload`
604
+
605
+ Payload for updating an event configuration.
606
+ Accepts the same fields as EventConfig (all optional for PATCH).
607
+ Currently only `enabled` and `auto_trigger` fields are processed, other fields are ignored.
608
+
609
+
610
+ ```ts
611
+ type UpdateEventPayload = {
612
+ event_name?: string
613
+ event_title?: string
614
+ event_description?: string
615
+ event_version?: string
616
+ event_status?: "active" | "deprecated" | "draft" | "disabled"
617
+ event_tags?: string[]
618
+ schema_fields?: Record<string, {
619
+ json_schema: object
620
+ required?: boolean
621
+ graph_source?: string
622
+ } | {
623
+ entity_schema: string
624
+ required?: boolean
625
+ }>
626
+ entity_graph?: {
627
+ nodes: Array<{
628
+ id: { ... }
629
+ schema: { ... }
630
+ cardinality?: { ... }
631
+ fields?: { ... }
632
+ }>
633
+ edges: Array<{
634
+ from: { ... }
635
+ to: { ... }
636
+ }>
637
+ }
638
+ entity_operation?: {
639
+ operation: "createEntity" | "updateEntity" | "deleteEntity"[]
640
+ schema: string[]
641
+ attribute?: string[]
642
+ purpose?: string[]
643
+ }
644
+ enabled?: boolean
645
+ auto_trigger?: boolean
646
+ automation_trigger?: boolean
647
+ }
648
+ ```
649
+
650
+ ### `PrimitiveField`
651
+
652
+ A primitive JSON Schema field definition
653
+
654
+ ```ts
655
+ type PrimitiveField = {
656
+ json_schema: object
657
+ required?: boolean
658
+ graph_source?: string
659
+ }
660
+ ```
661
+
662
+ ### `ContextEntity`
663
+
664
+ ```ts
665
+ type ContextEntity = {
666
+ entity_schema: string
667
+ required?: boolean
668
+ }
669
+ ```
670
+
671
+ ### `SchemaField`
672
+
673
+ ```ts
674
+ type SchemaField = {
675
+ json_schema: object
676
+ required?: boolean
677
+ graph_source?: string
678
+ } | {
679
+ entity_schema: string
680
+ required?: boolean
681
+ }
682
+ ```
683
+
684
+ ### `CommonEventMetadata`
685
+
686
+ Common metadata fields present in all event payloads
687
+
688
+ ```ts
689
+ type CommonEventMetadata = object
690
+ ```
691
+
692
+ ### `EventJsonSchema`
693
+
694
+ JSON Schema declaring the event payload structure
695
+
696
+ ```ts
697
+ type EventJsonSchema = object
698
+ ```
699
+
700
+ ### `Event`
701
+
702
+ An event instance in the event history
703
+
704
+ ```ts
705
+ type Event = {
706
+ _org_id: string
707
+ _event_time: string // date-time
708
+ _event_id: string
709
+ _event_name: string
710
+ _event_version: string
711
+ _event_source: string
712
+ _trigger_source_type?: string
713
+ _trigger_source?: string
714
+ _ack_id?: string
715
+ }
716
+ ```
717
+
718
+ ### `GraphDefinition`
719
+
720
+ Entity graph definition for resolving related entities
721
+
722
+ ```ts
723
+ type GraphDefinition = {
724
+ nodes: Array<{
725
+ id: string
726
+ schema: string
727
+ cardinality?: "one" | "many"
728
+ fields?: object
729
+ }>
730
+ edges: Array<{
731
+ from: string
732
+ to: string
733
+ }>
734
+ }
735
+ ```
736
+
737
+ ### `GraphNode`
738
+
739
+ A node in the entity graph
740
+
741
+ ```ts
742
+ type GraphNode = {
743
+ id: string
744
+ schema: string
745
+ cardinality?: "one" | "many"
746
+ fields?: object
747
+ }
748
+ ```
749
+
750
+ ### `GraphEdge`
751
+
752
+ An edge connecting two nodes in the graph
753
+
754
+ ```ts
755
+ type GraphEdge = {
756
+ from: string
757
+ to: string
758
+ }
759
+ ```
760
+
761
+ ### `EntityOperationTrigger`
762
+
763
+ Configuration for triggering an event based on entity operations.
764
+
765
+ When an entity operation matches the configured criteria, the event will be triggered.
766
+ - On createEntity: the attribute must be present in the entity payload
767
+ - On updateEntity: the attribute must be in diff.added, diff.updated, or di
768
+
769
+ ```ts
770
+ type EntityOperationTrigger = {
771
+ operation: "createEntity" | "updateEntity" | "deleteEntity"[]
772
+ schema: string[]
773
+ attribute?: string[]
774
+ purpose?: string[]
775
+ }
776
+ ```
777
+
778
+ ### `SearchOptions`
779
+
780
+ ```ts
781
+ type SearchOptions = {
782
+ limit?: number
783
+ cursor?: {
784
+ event_time?: string
785
+ event_id?: string
786
+ }
787
+ timestamp?: {
788
+ from?: string // date-time
789
+ to?: string // date-time
790
+ }
791
+ event_id?: string
792
+ }
793
+ ```
794
+
795
+ ### `FieldsParam`
796
+
797
+ List of entity fields to include or exclude in the response
798
+
799
+ Use ! to exclude fields, e.g. `!_id` to exclude the `_id` field.
800
+
801
+ Globbing and globstart (**) is supported for nested fields.
802
+
803
+
804
+ ```ts
805
+ type FieldsParam = string[]
806
+ ```
807
+
808
+ ### `TriggerEventPayload`
809
+
810
+ Payload for explicitly triggering an event via API
811
+
812
+ ```ts
813
+ type TriggerEventPayload = {
814
+ seed?: {
815
+ entity_id: string // uuid
816
+ node_id: string
817
+ }
818
+ fields?: Record<string, unknown>
819
+ skip_hydration?: string[]
820
+ _trigger_source_type?: string
821
+ _trigger_source?: string
822
+ }
823
+ ```
824
+
825
+ ### `TriggerEventResponse`
826
+
827
+ Response from triggering an event
828
+
829
+ ```ts
830
+ type TriggerEventResponse = {
831
+ success: boolean
832
+ event_id: string
833
+ event_bridge_event_id?: string
834
+ }
835
+ ```