@epilot/sdk 2.0.0-beta.4 → 2.0.3

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 (290) hide show
  1. package/LICENSE +21 -0
  2. package/dist/{access-token.d-BuXO-21p.d.cts → access-token.d-CnmUTOlq.d.cts} +1 -1
  3. package/dist/{access-token.d-BuXO-21p.d.ts → access-token.d-CnmUTOlq.d.ts} +1 -1
  4. package/dist/{address-suggestions.d-Cay0qOfA.d.cts → address-suggestions.d-_YwTOR-9.d.cts} +1 -1
  5. package/dist/{address-suggestions.d-Cay0qOfA.d.ts → address-suggestions.d-_YwTOR-9.d.ts} +1 -1
  6. package/dist/{address.d-D-oZY0rk.d.cts → address.d-CwAPOVxa.d.cts} +1 -1
  7. package/dist/{address.d-D-oZY0rk.d.ts → address.d-CwAPOVxa.d.ts} +1 -1
  8. package/dist/{ai-agents.d-B4_CZTCP.d.cts → ai-agents.d-OkXfr2bz.d.cts} +1 -1
  9. package/dist/{ai-agents.d-B4_CZTCP.d.ts → ai-agents.d-OkXfr2bz.d.ts} +1 -1
  10. package/dist/apis/access-token.d.cts +3 -3
  11. package/dist/apis/access-token.d.ts +3 -3
  12. package/dist/apis/address-suggestions.d.cts +3 -3
  13. package/dist/apis/address-suggestions.d.ts +3 -3
  14. package/dist/apis/address.d.cts +3 -3
  15. package/dist/apis/address.d.ts +3 -3
  16. package/dist/apis/ai-agents.d.cts +3 -3
  17. package/dist/apis/ai-agents.d.ts +3 -3
  18. package/dist/apis/app.d.cts +3 -3
  19. package/dist/apis/app.d.ts +3 -3
  20. package/dist/apis/audit-logs.d.cts +3 -3
  21. package/dist/apis/audit-logs.d.ts +3 -3
  22. package/dist/apis/automation.d.cts +3 -3
  23. package/dist/apis/automation.d.ts +3 -3
  24. package/dist/apis/billing.d.cts +3 -3
  25. package/dist/apis/billing.d.ts +3 -3
  26. package/dist/apis/blueprint-manifest.d.cts +3 -3
  27. package/dist/apis/blueprint-manifest.d.ts +3 -3
  28. package/dist/apis/consent.d.cts +3 -3
  29. package/dist/apis/consent.d.ts +3 -3
  30. package/dist/apis/customer-portal.cjs +1 -1
  31. package/dist/apis/customer-portal.d.cts +3 -3
  32. package/dist/apis/customer-portal.d.ts +3 -3
  33. package/dist/apis/customer-portal.js +1 -1
  34. package/dist/apis/dashboard.d.cts +3 -3
  35. package/dist/apis/dashboard.d.ts +3 -3
  36. package/dist/apis/data-management.d.cts +3 -3
  37. package/dist/apis/data-management.d.ts +3 -3
  38. package/dist/apis/deduplication.d.cts +3 -3
  39. package/dist/apis/deduplication.d.ts +3 -3
  40. package/dist/apis/design.d.cts +3 -3
  41. package/dist/apis/design.d.ts +3 -3
  42. package/dist/apis/document.d.cts +3 -3
  43. package/dist/apis/document.d.ts +3 -3
  44. package/dist/apis/email-settings.d.cts +3 -3
  45. package/dist/apis/email-settings.d.ts +3 -3
  46. package/dist/apis/email-template.d.cts +3 -3
  47. package/dist/apis/email-template.d.ts +3 -3
  48. package/dist/apis/entity-mapping.d.cts +3 -3
  49. package/dist/apis/entity-mapping.d.ts +3 -3
  50. package/dist/apis/entity.d.cts +3 -3
  51. package/dist/apis/entity.d.ts +3 -3
  52. package/dist/apis/environments.d.cts +3 -3
  53. package/dist/apis/environments.d.ts +3 -3
  54. package/dist/apis/erp-integration.cjs +1 -1
  55. package/dist/apis/erp-integration.d.cts +3 -3
  56. package/dist/apis/erp-integration.d.ts +3 -3
  57. package/dist/apis/erp-integration.js +1 -1
  58. package/dist/apis/event-catalog.d.cts +3 -3
  59. package/dist/apis/event-catalog.d.ts +3 -3
  60. package/dist/apis/file.d.cts +3 -3
  61. package/dist/apis/file.d.ts +3 -3
  62. package/dist/apis/iban.d.cts +3 -3
  63. package/dist/apis/iban.d.ts +3 -3
  64. package/dist/apis/journey.d.cts +3 -3
  65. package/dist/apis/journey.d.ts +3 -3
  66. package/dist/apis/kanban.d.cts +3 -3
  67. package/dist/apis/kanban.d.ts +3 -3
  68. package/dist/apis/message.d.cts +3 -3
  69. package/dist/apis/message.d.ts +3 -3
  70. package/dist/apis/metering.d.cts +3 -3
  71. package/dist/apis/metering.d.ts +3 -3
  72. package/dist/apis/notes.d.cts +3 -3
  73. package/dist/apis/notes.d.ts +3 -3
  74. package/dist/apis/notification.d.cts +3 -3
  75. package/dist/apis/notification.d.ts +3 -3
  76. package/dist/apis/organization.cjs +1 -1
  77. package/dist/apis/organization.d.cts +3 -3
  78. package/dist/apis/organization.d.ts +3 -3
  79. package/dist/apis/organization.js +1 -1
  80. package/dist/apis/partner-directory.d.cts +3 -3
  81. package/dist/apis/partner-directory.d.ts +3 -3
  82. package/dist/apis/permissions.d.cts +3 -3
  83. package/dist/apis/permissions.d.ts +3 -3
  84. package/dist/apis/pricing-tier.d.cts +3 -3
  85. package/dist/apis/pricing-tier.d.ts +3 -3
  86. package/dist/apis/pricing.d.cts +3 -3
  87. package/dist/apis/pricing.d.ts +3 -3
  88. package/dist/apis/purpose.d.cts +3 -3
  89. package/dist/apis/purpose.d.ts +3 -3
  90. package/dist/apis/sandbox.d.cts +3 -3
  91. package/dist/apis/sandbox.d.ts +3 -3
  92. package/dist/apis/submission.d.cts +3 -3
  93. package/dist/apis/submission.d.ts +3 -3
  94. package/dist/apis/targeting.d.cts +3 -3
  95. package/dist/apis/targeting.d.ts +3 -3
  96. package/dist/apis/template-variables.d.cts +3 -3
  97. package/dist/apis/template-variables.d.ts +3 -3
  98. package/dist/apis/user.d.cts +3 -3
  99. package/dist/apis/user.d.ts +3 -3
  100. package/dist/apis/validation-rules.d.cts +3 -3
  101. package/dist/apis/validation-rules.d.ts +3 -3
  102. package/dist/apis/webhooks.d.cts +3 -3
  103. package/dist/apis/webhooks.d.ts +3 -3
  104. package/dist/apis/workflow-definition.d.cts +3 -3
  105. package/dist/apis/workflow-definition.d.ts +3 -3
  106. package/dist/apis/workflow.d.cts +3 -3
  107. package/dist/apis/workflow.d.ts +3 -3
  108. package/dist/{app.d-BKyfin-q.d.cts → app.d-Dr03n4J4.d.cts} +1 -1
  109. package/dist/{app.d-BKyfin-q.d.ts → app.d-Dr03n4J4.d.ts} +1 -1
  110. package/dist/{audit-logs.d-19BKb-ur.d.cts → audit-logs.d-BRToFqeX.d.cts} +1 -1
  111. package/dist/{audit-logs.d-19BKb-ur.d.ts → audit-logs.d-BRToFqeX.d.ts} +1 -1
  112. package/dist/{automation.d-DKl2VtnW.d.ts → automation.d-KOiZ6ru5.d.cts} +2 -24
  113. package/dist/{automation.d-DKl2VtnW.d.cts → automation.d-KOiZ6ru5.d.ts} +2 -24
  114. package/dist/{billing.d-58fUMBqj.d.cts → billing.d-Bs8Ku9qE.d.cts} +1 -1
  115. package/dist/{billing.d-58fUMBqj.d.ts → billing.d-Bs8Ku9qE.d.ts} +1 -1
  116. package/dist/{blueprint-manifest.d-Bu1GyXFW.d.cts → blueprint-manifest.d-CEWRdF3i.d.cts} +1 -1
  117. package/dist/{blueprint-manifest.d-Bu1GyXFW.d.ts → blueprint-manifest.d-CEWRdF3i.d.ts} +1 -1
  118. package/dist/{consent.d-CQ88IEj0.d.cts → consent.d-C2PROHhX.d.cts} +1 -1
  119. package/dist/{consent.d-CQ88IEj0.d.ts → consent.d-C2PROHhX.d.ts} +1 -1
  120. package/dist/{customer-portal.d-EyndRWh6.d.ts → customer-portal.d-Bh9NF8cY.d.cts} +598 -99
  121. package/dist/{customer-portal.d-EyndRWh6.d.cts → customer-portal.d-Bh9NF8cY.d.ts} +598 -99
  122. package/dist/{dashboard.d-AE3RQ6zo.d.cts → dashboard.d-CsGcA74I.d.cts} +1 -1
  123. package/dist/{dashboard.d-AE3RQ6zo.d.ts → dashboard.d-CsGcA74I.d.ts} +1 -1
  124. package/dist/{data-management.d-CNExsqJQ.d.cts → data-management.d-pnuiRU2h.d.cts} +1 -1
  125. package/dist/{data-management.d-CNExsqJQ.d.ts → data-management.d-pnuiRU2h.d.ts} +1 -1
  126. package/dist/{deduplication.d-DCeJzdbM.d.ts → deduplication.d-w_2aJD5f.d.cts} +1 -1
  127. package/dist/{deduplication.d-DCeJzdbM.d.cts → deduplication.d-w_2aJD5f.d.ts} +1 -1
  128. package/dist/{design.d-CkwgJ78Z.d.cts → design.d-eA-irKEX.d.cts} +1 -1
  129. package/dist/{design.d-CkwgJ78Z.d.ts → design.d-eA-irKEX.d.ts} +1 -1
  130. package/dist/{document.d-Y8i32qNV.d.cts → document.d-DN37pjdx.d.cts} +1 -1
  131. package/dist/{document.d-Y8i32qNV.d.ts → document.d-DN37pjdx.d.ts} +1 -1
  132. package/dist/{email-settings.d-CPAsRFWN.d.cts → email-settings.d-BXxYjVDr.d.cts} +1 -1
  133. package/dist/{email-settings.d-CPAsRFWN.d.ts → email-settings.d-BXxYjVDr.d.ts} +1 -1
  134. package/dist/{email-template.d-CQqiCN0N.d.cts → email-template.d-BeqkDHtk.d.cts} +1 -1
  135. package/dist/{email-template.d-CQqiCN0N.d.ts → email-template.d-BeqkDHtk.d.ts} +1 -1
  136. package/dist/{entity-mapping.d-DiqXqJWb.d.cts → entity-mapping.d-DKSW3sfy.d.cts} +1 -1
  137. package/dist/{entity-mapping.d-DiqXqJWb.d.ts → entity-mapping.d-DKSW3sfy.d.ts} +1 -1
  138. package/dist/{entity.d-BtT4mdq4.d.ts → entity.d-CrtZaZr8.d.cts} +1 -1
  139. package/dist/{entity.d-BtT4mdq4.d.cts → entity.d-CrtZaZr8.d.ts} +1 -1
  140. package/dist/{environments.d-C1xIs8N2.d.cts → environments.d-H3LK_KuH.d.cts} +1 -1
  141. package/dist/{environments.d-C1xIs8N2.d.ts → environments.d-H3LK_KuH.d.ts} +1 -1
  142. package/dist/{erp-integration.d-CNLzgl4L.d.cts → erp-integration.d-DOhxy4P5.d.cts} +409 -15
  143. package/dist/{erp-integration.d-CNLzgl4L.d.ts → erp-integration.d-DOhxy4P5.d.ts} +409 -15
  144. package/dist/{event-catalog.d-DW1dOyVh.d.cts → event-catalog.d-ENw6HO-w.d.cts} +1 -1
  145. package/dist/{event-catalog.d-DW1dOyVh.d.ts → event-catalog.d-ENw6HO-w.d.ts} +1 -1
  146. package/dist/{file.d-Bpdt2ORN.d.cts → file.d-DcTJxjp7.d.cts} +1 -1
  147. package/dist/{file.d-Bpdt2ORN.d.ts → file.d-DcTJxjp7.d.ts} +1 -1
  148. package/dist/{iban.d-3_7FEsbx.d.ts → iban.d-BwdiGbxi.d.cts} +1 -1
  149. package/dist/{iban.d-3_7FEsbx.d.cts → iban.d-BwdiGbxi.d.ts} +1 -1
  150. package/dist/index.d.cts +46 -46
  151. package/dist/index.d.ts +46 -46
  152. package/dist/{journey.d-C2lgynUF.d.cts → journey.d-C4N4t1Rh.d.cts} +122 -4
  153. package/dist/{journey.d-C2lgynUF.d.ts → journey.d-C4N4t1Rh.d.ts} +122 -4
  154. package/dist/kanban.d-CtSt3uX2.d.cts +745 -0
  155. package/dist/kanban.d-CtSt3uX2.d.ts +745 -0
  156. package/dist/{message.d-TAVDRlDJ.d.cts → message.d-YEv1kmQd.d.cts} +1 -1
  157. package/dist/{message.d-TAVDRlDJ.d.ts → message.d-YEv1kmQd.d.ts} +1 -1
  158. package/dist/{metering.d-qyYaAU-O.d.cts → metering.d-DvtPv7wk.d.cts} +1 -1
  159. package/dist/{metering.d-qyYaAU-O.d.ts → metering.d-DvtPv7wk.d.ts} +1 -1
  160. package/dist/{notes.d-CDyIbegf.d.cts → notes.d-BC-scR42.d.cts} +1 -1
  161. package/dist/{notes.d-CDyIbegf.d.ts → notes.d-BC-scR42.d.ts} +1 -1
  162. package/dist/{notification.d-B7ccbaPr.d.cts → notification.d-BfBL3lga.d.cts} +1 -1
  163. package/dist/{notification.d-B7ccbaPr.d.ts → notification.d-BfBL3lga.d.ts} +1 -1
  164. package/dist/organization.d-Bd2Hmk8v.d.cts +1244 -0
  165. package/dist/organization.d-Bd2Hmk8v.d.ts +1244 -0
  166. package/dist/{partner-directory.d-CzKV3WfP.d.cts → partner-directory.d-CRNkDF8q.d.cts} +1 -1
  167. package/dist/{partner-directory.d-CzKV3WfP.d.ts → partner-directory.d-CRNkDF8q.d.ts} +1 -1
  168. package/dist/{permissions.d-lVoPAfl3.d.cts → permissions.d-BHB1FFS5.d.cts} +1 -1
  169. package/dist/{permissions.d-lVoPAfl3.d.ts → permissions.d-BHB1FFS5.d.ts} +1 -1
  170. package/dist/{pricing-tier.d-BW2cZt1w.d.cts → pricing-tier.d-Cg0jl6n_.d.cts} +1 -1
  171. package/dist/{pricing-tier.d-BW2cZt1w.d.ts → pricing-tier.d-Cg0jl6n_.d.ts} +1 -1
  172. package/dist/{pricing.d-Ehb2JuKY.d.cts → pricing.d-Cv39plGm.d.cts} +1 -1
  173. package/dist/{pricing.d-Ehb2JuKY.d.ts → pricing.d-Cv39plGm.d.ts} +1 -1
  174. package/dist/{purpose.d-BVxst611.d.cts → purpose.d-CbIYfTua.d.cts} +1 -1
  175. package/dist/{purpose.d-BVxst611.d.ts → purpose.d-CbIYfTua.d.ts} +1 -1
  176. package/dist/{sandbox.d-tRO2movo.d.cts → sandbox.d-BdbOFzDu.d.cts} +1 -1
  177. package/dist/{sandbox.d-tRO2movo.d.ts → sandbox.d-BdbOFzDu.d.ts} +1 -1
  178. package/dist/{submission.d-CSll5Km9.d.cts → submission.d-BamwfhXw.d.cts} +1 -1
  179. package/dist/{submission.d-CSll5Km9.d.ts → submission.d-BamwfhXw.d.ts} +1 -1
  180. package/dist/{targeting.d-CDxIsOWy.d.cts → targeting.d-BNmcVsNS.d.cts} +1 -1
  181. package/dist/{targeting.d-CDxIsOWy.d.ts → targeting.d-BNmcVsNS.d.ts} +1 -1
  182. package/dist/{template-variables.d-PwA27Ocv.d.cts → template-variables.d-Ch3H3zYf.d.cts} +1 -1
  183. package/dist/{template-variables.d-PwA27Ocv.d.ts → template-variables.d-Ch3H3zYf.d.ts} +1 -1
  184. package/dist/{user.d-DJBp6aX5.d.cts → user.d-CXqM751M.d.cts} +1 -1
  185. package/dist/{user.d-DJBp6aX5.d.ts → user.d-CXqM751M.d.ts} +1 -1
  186. package/dist/{validation-rules.d-CScjNdxD.d.cts → validation-rules.d-Db5c5zTf.d.cts} +1 -1
  187. package/dist/{validation-rules.d-CScjNdxD.d.ts → validation-rules.d-Db5c5zTf.d.ts} +1 -1
  188. package/dist/{webhooks.d-C_MQSJEB.d.cts → webhooks.d-CUNJrltY.d.cts} +1 -1
  189. package/dist/{webhooks.d-C_MQSJEB.d.ts → webhooks.d-CUNJrltY.d.ts} +1 -1
  190. package/dist/{workflow-definition.d-CFXrp2Hg.d.cts → workflow-definition.d-CE3kk9gl.d.cts} +1 -1
  191. package/dist/{workflow-definition.d-CFXrp2Hg.d.ts → workflow-definition.d-CE3kk9gl.d.ts} +1 -1
  192. package/dist/{workflow.d-BIWtgMyP.d.cts → workflow.d-DvhTpEtU.d.cts} +46 -4
  193. package/dist/{workflow.d-BIWtgMyP.d.ts → workflow.d-DvhTpEtU.d.ts} +46 -4
  194. package/package.json +152 -11
  195. package/definitions/access-token-runtime.json +0 -1
  196. package/definitions/access-token.json +0 -663
  197. package/definitions/address-runtime.json +0 -1
  198. package/definitions/address-suggestions-runtime.json +0 -1
  199. package/definitions/address-suggestions.json +0 -582
  200. package/definitions/address.json +0 -578
  201. package/definitions/ai-agents-runtime.json +0 -1
  202. package/definitions/ai-agents.json +0 -1711
  203. package/definitions/app-runtime.json +0 -1
  204. package/definitions/app.json +0 -4443
  205. package/definitions/audit-logs-runtime.json +0 -1
  206. package/definitions/audit-logs.json +0 -305
  207. package/definitions/automation-runtime.json +0 -1
  208. package/definitions/automation.json +0 -4850
  209. package/definitions/billing-runtime.json +0 -1
  210. package/definitions/billing.json +0 -837
  211. package/definitions/blueprint-manifest-runtime.json +0 -1
  212. package/definitions/blueprint-manifest.json +0 -3376
  213. package/definitions/consent-runtime.json +0 -1
  214. package/definitions/consent.json +0 -344
  215. package/definitions/customer-portal-runtime.json +0 -1
  216. package/definitions/customer-portal.json +0 -15000
  217. package/definitions/dashboard-runtime.json +0 -1
  218. package/definitions/dashboard.json +0 -484
  219. package/definitions/data-management-runtime.json +0 -1
  220. package/definitions/data-management.json +0 -962
  221. package/definitions/deduplication-runtime.json +0 -1
  222. package/definitions/deduplication.json +0 -183
  223. package/definitions/design-runtime.json +0 -1
  224. package/definitions/design.json +0 -1423
  225. package/definitions/document-runtime.json +0 -1
  226. package/definitions/document.json +0 -758
  227. package/definitions/email-settings-runtime.json +0 -1
  228. package/definitions/email-settings.json +0 -2627
  229. package/definitions/email-template-runtime.json +0 -1
  230. package/definitions/email-template.json +0 -1419
  231. package/definitions/entity-mapping-runtime.json +0 -1
  232. package/definitions/entity-mapping.json +0 -1642
  233. package/definitions/entity-runtime.json +0 -1
  234. package/definitions/entity.json +0 -10074
  235. package/definitions/environments-runtime.json +0 -1
  236. package/definitions/environments.json +0 -363
  237. package/definitions/erp-integration-runtime.json +0 -1
  238. package/definitions/erp-integration.json +0 -5845
  239. package/definitions/event-catalog-runtime.json +0 -1
  240. package/definitions/event-catalog.json +0 -1051
  241. package/definitions/file-runtime.json +0 -1
  242. package/definitions/file.json +0 -2842
  243. package/definitions/iban-runtime.json +0 -1
  244. package/definitions/iban.json +0 -132
  245. package/definitions/journey-runtime.json +0 -1
  246. package/definitions/journey.json +0 -2341
  247. package/definitions/kanban-runtime.json +0 -1
  248. package/definitions/kanban.json +0 -929
  249. package/definitions/message-runtime.json +0 -1
  250. package/definitions/message.json +0 -2660
  251. package/definitions/metering-runtime.json +0 -1
  252. package/definitions/metering.json +0 -2321
  253. package/definitions/notes-runtime.json +0 -1
  254. package/definitions/notes.json +0 -1531
  255. package/definitions/notification-runtime.json +0 -1
  256. package/definitions/notification.json +0 -1425
  257. package/definitions/organization-runtime.json +0 -1
  258. package/definitions/organization.json +0 -629
  259. package/definitions/partner-directory-runtime.json +0 -1
  260. package/definitions/partner-directory.json +0 -1718
  261. package/definitions/permissions-runtime.json +0 -1
  262. package/definitions/permissions.json +0 -1480
  263. package/definitions/pricing-runtime.json +0 -1
  264. package/definitions/pricing-tier-runtime.json +0 -1
  265. package/definitions/pricing-tier.json +0 -105
  266. package/definitions/pricing.json +0 -9884
  267. package/definitions/purpose-runtime.json +0 -1
  268. package/definitions/purpose.json +0 -524
  269. package/definitions/sandbox-runtime.json +0 -1
  270. package/definitions/sandbox.json +0 -453
  271. package/definitions/submission-runtime.json +0 -1
  272. package/definitions/submission.json +0 -313
  273. package/definitions/targeting-runtime.json +0 -1
  274. package/definitions/targeting.json +0 -1474
  275. package/definitions/template-variables-runtime.json +0 -1
  276. package/definitions/template-variables.json +0 -1408
  277. package/definitions/user-runtime.json +0 -1
  278. package/definitions/user.json +0 -2408
  279. package/definitions/validation-rules-runtime.json +0 -1
  280. package/definitions/validation-rules.json +0 -1491
  281. package/definitions/webhooks-runtime.json +0 -1
  282. package/definitions/webhooks.json +0 -1525
  283. package/definitions/workflow-definition-runtime.json +0 -1
  284. package/definitions/workflow-definition.json +0 -3417
  285. package/definitions/workflow-runtime.json +0 -1
  286. package/definitions/workflow.json +0 -4106
  287. package/dist/kanban.d-DYVjUQ_S.d.cts +0 -630
  288. package/dist/kanban.d-DYVjUQ_S.d.ts +0 -630
  289. package/dist/organization.d-BxZWnh8L.d.cts +0 -628
  290. package/dist/organization.d-BxZWnh8L.d.ts +0 -628
@@ -1,962 +0,0 @@
1
- {
2
- "openapi": "3.0.3",
3
- "info": {
4
- "title": "Data Management API",
5
- "version": "1.2.0"
6
- },
7
- "tags": [
8
- {
9
- "name": "Data Management",
10
- "description": "Data Management endpoints"
11
- }
12
- ],
13
- "security": [
14
- {
15
- "EpilotAuth": []
16
- },
17
- {
18
- "EpilotOrg": []
19
- }
20
- ],
21
- "paths": {
22
- "/data-management/v1/{entity_schema}/query": {
23
- "post": {
24
- "operationId": "queryEntities",
25
- "summary": "Query entities using a saved view with additional data filters",
26
- "description": "Executes a query against the specified entity schema using the saved view definition, optionally combined with additional filters. Returns the entities matching the composed query.\n",
27
- "tags": [
28
- "Data Management"
29
- ],
30
- "parameters": [
31
- {
32
- "name": "entity_schema",
33
- "in": "path",
34
- "required": true,
35
- "description": "Target entity schema to query (for example: \"contact\", \"opportunity\", \"order\").\n",
36
- "schema": {
37
- "type": "string"
38
- }
39
- }
40
- ],
41
- "requestBody": {
42
- "required": true,
43
- "content": {
44
- "application/json": {
45
- "schema": {
46
- "$ref": "#/components/schemas/QueryEntitiesRequest"
47
- }
48
- }
49
- }
50
- },
51
- "responses": {
52
- "200": {
53
- "description": "Query results",
54
- "content": {
55
- "application/json": {
56
- "schema": {
57
- "$ref": "#/components/schemas/QueryEntitiesResult"
58
- }
59
- }
60
- }
61
- }
62
- }
63
- }
64
- },
65
- "/data-management/v1/{entity_schema}/jobs": {
66
- "post": {
67
- "operationId": "createJob",
68
- "summary": "Create a new job run",
69
- "tags": [
70
- "Data Management"
71
- ],
72
- "parameters": [
73
- {
74
- "name": "entity_schema",
75
- "in": "path",
76
- "required": true,
77
- "schema": {
78
- "type": "string"
79
- }
80
- }
81
- ],
82
- "requestBody": {
83
- "required": true,
84
- "content": {
85
- "application/json": {
86
- "schema": {
87
- "$ref": "#/components/schemas/CreateJobRequest"
88
- }
89
- }
90
- }
91
- },
92
- "responses": {
93
- "201": {
94
- "description": "Job created",
95
- "content": {
96
- "application/json": {
97
- "schema": {
98
- "$ref": "#/components/schemas/Job"
99
- }
100
- }
101
- }
102
- }
103
- }
104
- }
105
- },
106
- "/data-management/v1/{entity_schema}/jobs/{job_id}": {
107
- "patch": {
108
- "operationId": "updateJob",
109
- "summary": "Update an existing job run",
110
- "tags": [
111
- "Data Management"
112
- ],
113
- "parameters": [
114
- {
115
- "name": "entity_schema",
116
- "in": "path",
117
- "required": true,
118
- "schema": {
119
- "type": "string"
120
- }
121
- },
122
- {
123
- "name": "job_id",
124
- "in": "path",
125
- "required": true,
126
- "schema": {
127
- "type": "string"
128
- }
129
- }
130
- ],
131
- "requestBody": {
132
- "required": true,
133
- "content": {
134
- "application/json": {
135
- "schema": {
136
- "$ref": "#/components/schemas/UpdateJobRequest"
137
- }
138
- }
139
- }
140
- },
141
- "responses": {
142
- "200": {
143
- "description": "Job updated",
144
- "content": {
145
- "application/json": {
146
- "schema": {
147
- "$ref": "#/components/schemas/Job"
148
- }
149
- }
150
- }
151
- },
152
- "404": {
153
- "description": "Job not found"
154
- }
155
- }
156
- }
157
- },
158
- "/data-management/v1/jobs/{job_id}": {
159
- "get": {
160
- "operationId": "getJob",
161
- "summary": "Get a job by id",
162
- "description": "Returns details of a single job run.\n",
163
- "tags": [
164
- "Data Management"
165
- ],
166
- "parameters": [
167
- {
168
- "name": "job_id",
169
- "in": "path",
170
- "required": true,
171
- "schema": {
172
- "type": "string"
173
- }
174
- }
175
- ],
176
- "responses": {
177
- "200": {
178
- "description": "Job",
179
- "content": {
180
- "application/json": {
181
- "schema": {
182
- "$ref": "#/components/schemas/Job"
183
- }
184
- }
185
- }
186
- },
187
- "404": {
188
- "description": "Job not found"
189
- }
190
- }
191
- }
192
- },
193
- "/data-management/v1/jobs/{job_id}/report-url": {
194
- "get": {
195
- "operationId": "getJobReportUrl",
196
- "summary": "Get report download URL for a job",
197
- "description": "Returns a short-lived, pre-signed URL to download the report file for the given job.\n",
198
- "tags": [
199
- "Data Management"
200
- ],
201
- "parameters": [
202
- {
203
- "name": "job_id",
204
- "in": "path",
205
- "required": true,
206
- "schema": {
207
- "type": "string"
208
- }
209
- }
210
- ],
211
- "responses": {
212
- "200": {
213
- "description": "Pre-signed report download URL",
214
- "content": {
215
- "application/json": {
216
- "schema": {
217
- "$ref": "#/components/schemas/JobReportUrlResponse"
218
- }
219
- }
220
- }
221
- },
222
- "404": {
223
- "description": "Job or report not found"
224
- }
225
- }
226
- }
227
- },
228
- "/data-management/v1/configs/{config_id}": {
229
- "get": {
230
- "operationId": "getConfig",
231
- "summary": "Get a config by id",
232
- "description": "Returns a data management config by its id.\n",
233
- "tags": [
234
- "Data Management"
235
- ],
236
- "parameters": [
237
- {
238
- "name": "config_id",
239
- "in": "path",
240
- "required": true,
241
- "schema": {
242
- "type": "string"
243
- }
244
- }
245
- ],
246
- "responses": {
247
- "200": {
248
- "description": "Config",
249
- "content": {
250
- "application/json": {
251
- "schema": {
252
- "$ref": "#/components/schemas/Config"
253
- }
254
- }
255
- }
256
- },
257
- "404": {
258
- "description": "Config not found"
259
- }
260
- }
261
- }
262
- },
263
- "/data-management/v1/configs/{config_id}/jobs": {
264
- "post": {
265
- "operationId": "createJobForConfig",
266
- "summary": "Trigger a manual job run for a config",
267
- "description": "Creates a job run for the given config and triggers asynchronous execution. Returns a job id which can be used to poll job status.\n",
268
- "tags": [
269
- "Data Management"
270
- ],
271
- "parameters": [
272
- {
273
- "name": "config_id",
274
- "in": "path",
275
- "required": true,
276
- "schema": {
277
- "type": "string"
278
- }
279
- }
280
- ],
281
- "responses": {
282
- "201": {
283
- "description": "Job created and queued",
284
- "content": {
285
- "application/json": {
286
- "schema": {
287
- "$ref": "#/components/schemas/Job"
288
- }
289
- }
290
- }
291
- },
292
- "404": {
293
- "description": "Config not found"
294
- }
295
- }
296
- }
297
- },
298
- "/data-management/v1/{entity_schema}/configs": {
299
- "post": {
300
- "operationId": "upsertConfig",
301
- "summary": "Upsert config",
302
- "description": "Creates or updates a config for the given entity schema. The config is later used by a scheduled background process to periodically query and act on matching entities (for example, deletion).\n",
303
- "tags": [
304
- "Data Management"
305
- ],
306
- "parameters": [
307
- {
308
- "name": "entity_schema",
309
- "in": "path",
310
- "required": true,
311
- "description": "Target entity schema for the config\n",
312
- "schema": {
313
- "type": "string"
314
- }
315
- }
316
- ],
317
- "requestBody": {
318
- "required": true,
319
- "content": {
320
- "application/json": {
321
- "schema": {
322
- "$ref": "#/components/schemas/UpsertConfigRequest"
323
- }
324
- }
325
- }
326
- },
327
- "responses": {
328
- "200": {
329
- "description": "Config updated",
330
- "content": {
331
- "application/json": {
332
- "schema": {
333
- "$ref": "#/components/schemas/Config"
334
- }
335
- }
336
- }
337
- },
338
- "201": {
339
- "description": "Config created",
340
- "content": {
341
- "application/json": {
342
- "schema": {
343
- "$ref": "#/components/schemas/Config"
344
- }
345
- }
346
- }
347
- }
348
- }
349
- }
350
- },
351
- "/data-management/v1/configs": {
352
- "get": {
353
- "operationId": "listConfigs",
354
- "summary": "List configs",
355
- "description": "Returns a paginated list of configs\n",
356
- "tags": [
357
- "Data Management"
358
- ],
359
- "parameters": [
360
- {
361
- "name": "limit",
362
- "in": "query",
363
- "required": false,
364
- "schema": {
365
- "type": "integer",
366
- "default": 25
367
- }
368
- },
369
- {
370
- "name": "cursor",
371
- "in": "query",
372
- "required": false,
373
- "schema": {
374
- "type": "string"
375
- }
376
- },
377
- {
378
- "name": "entity_schema",
379
- "in": "query",
380
- "required": false,
381
- "description": "Optional entity schema to filter configs.",
382
- "schema": {
383
- "type": "string"
384
- }
385
- },
386
- {
387
- "name": "type",
388
- "in": "query",
389
- "required": false,
390
- "description": "Optional config type to filter configs.",
391
- "schema": {
392
- "$ref": "#/components/schemas/ConfigType"
393
- }
394
- },
395
- {
396
- "name": "next_run_at",
397
- "in": "query",
398
- "required": false,
399
- "description": "Optional next run date (YYYY-MM-DD) to filter configs.",
400
- "schema": {
401
- "type": "string",
402
- "format": "date"
403
- }
404
- },
405
- {
406
- "name": "enabled",
407
- "in": "query",
408
- "required": false,
409
- "description": "Optional enabled status to filter configs.",
410
- "schema": {
411
- "type": "boolean"
412
- }
413
- }
414
- ],
415
- "responses": {
416
- "200": {
417
- "description": "List of configs",
418
- "content": {
419
- "application/json": {
420
- "schema": {
421
- "$ref": "#/components/schemas/ListConfigsResponse"
422
- }
423
- }
424
- }
425
- }
426
- }
427
- }
428
- },
429
- "/data-management/v1/jobs": {
430
- "get": {
431
- "operationId": "listJobs",
432
- "summary": "List jobs",
433
- "description": "Returns a paginated list of jobs\n",
434
- "tags": [
435
- "Data Management"
436
- ],
437
- "parameters": [
438
- {
439
- "name": "limit",
440
- "in": "query",
441
- "required": false,
442
- "schema": {
443
- "type": "integer",
444
- "default": 25
445
- }
446
- },
447
- {
448
- "name": "cursor",
449
- "in": "query",
450
- "required": false,
451
- "schema": {
452
- "type": "string"
453
- }
454
- },
455
- {
456
- "name": "entity_schema",
457
- "in": "query",
458
- "required": false,
459
- "description": "Optional entity schema to filter jobs.",
460
- "schema": {
461
- "type": "string"
462
- }
463
- },
464
- {
465
- "name": "type",
466
- "in": "query",
467
- "required": false,
468
- "description": "Optional job type to filter jobs.",
469
- "schema": {
470
- "$ref": "#/components/schemas/ConfigType"
471
- }
472
- },
473
- {
474
- "name": "status",
475
- "in": "query",
476
- "required": false,
477
- "description": "Optional job status to filter jobs.",
478
- "schema": {
479
- "$ref": "#/components/schemas/JobStatus"
480
- }
481
- },
482
- {
483
- "name": "config_id",
484
- "in": "query",
485
- "required": false,
486
- "description": "Optional config id to filter jobs.",
487
- "schema": {
488
- "type": "string"
489
- }
490
- }
491
- ],
492
- "responses": {
493
- "200": {
494
- "description": "List of jobs",
495
- "content": {
496
- "application/json": {
497
- "schema": {
498
- "$ref": "#/components/schemas/ListJobsResponse"
499
- }
500
- }
501
- }
502
- }
503
- }
504
- }
505
- }
506
- },
507
- "components": {
508
- "securitySchemes": {
509
- "EpilotAuth": {
510
- "type": "http",
511
- "scheme": "bearer",
512
- "description": "Authorization header with epilot OAuth2 bearer token",
513
- "bearerFormat": "JWT"
514
- },
515
- "EpilotOrg": {
516
- "description": "Overrides the target organization to allow shared tenantaccess",
517
- "name": "x-epilot-org-id",
518
- "in": "header",
519
- "type": "apiKey"
520
- }
521
- },
522
- "schemas": {
523
- "ConfigType": {
524
- "type": "string",
525
- "description": "Type of configuration (e.g. deletion)",
526
- "enum": [
527
- "deletion"
528
- ]
529
- },
530
- "JobStatus": {
531
- "type": "string",
532
- "enum": [
533
- "in_progress",
534
- "success",
535
- "failed"
536
- ]
537
- },
538
- "JobTrigger": {
539
- "type": "string",
540
- "enum": [
541
- "schedule",
542
- "manual"
543
- ]
544
- },
545
- "JobReportFormat": {
546
- "type": "string",
547
- "enum": [
548
- "csv"
549
- ]
550
- },
551
- "JobReport": {
552
- "type": "object",
553
- "additionalProperties": false,
554
- "properties": {
555
- "bucket": {
556
- "type": "string"
557
- },
558
- "key": {
559
- "type": "string"
560
- },
561
- "format": {
562
- "$ref": "#/components/schemas/JobReportFormat"
563
- }
564
- }
565
- },
566
- "CreateJobRequest": {
567
- "type": "object",
568
- "additionalProperties": false,
569
- "required": [
570
- "type",
571
- "config_id",
572
- "scheduled_for"
573
- ],
574
- "properties": {
575
- "type": {
576
- "$ref": "#/components/schemas/ConfigType"
577
- },
578
- "config_id": {
579
- "type": "string"
580
- },
581
- "scheduled_for": {
582
- "type": "string",
583
- "format": "date"
584
- },
585
- "status": {
586
- "$ref": "#/components/schemas/JobStatus",
587
- "default": "in_progress"
588
- },
589
- "started_at": {
590
- "type": "string",
591
- "format": "date-time"
592
- }
593
- }
594
- },
595
- "JobDetails": {
596
- "type": "object",
597
- "description": "Generic, type-specific job details payload (e.g. matched count, deleted count, failed count, etc.).",
598
- "additionalProperties": true
599
- },
600
- "UpdateJobRequest": {
601
- "type": "object",
602
- "additionalProperties": false,
603
- "properties": {
604
- "status": {
605
- "$ref": "#/components/schemas/JobStatus"
606
- },
607
- "details": {
608
- "$ref": "#/components/schemas/JobDetails"
609
- },
610
- "completed_at": {
611
- "type": "string",
612
- "format": "date-time"
613
- },
614
- "error": {
615
- "type": "string"
616
- },
617
- "report": {
618
- "$ref": "#/components/schemas/JobReport"
619
- }
620
- }
621
- },
622
- "Job": {
623
- "type": "object",
624
- "additionalProperties": false,
625
- "required": [
626
- "id",
627
- "type",
628
- "config_id",
629
- "entity_schema",
630
- "scheduled_for",
631
- "status",
632
- "created_at",
633
- "last_updated_at"
634
- ],
635
- "properties": {
636
- "id": {
637
- "type": "string"
638
- },
639
- "type": {
640
- "$ref": "#/components/schemas/ConfigType"
641
- },
642
- "config_id": {
643
- "type": "string"
644
- },
645
- "entity_schema": {
646
- "type": "string"
647
- },
648
- "scheduled_for": {
649
- "type": "string",
650
- "format": "date"
651
- },
652
- "status": {
653
- "$ref": "#/components/schemas/JobStatus"
654
- },
655
- "details": {
656
- "$ref": "#/components/schemas/JobDetails"
657
- },
658
- "started_at": {
659
- "type": "string",
660
- "format": "date-time"
661
- },
662
- "completed_at": {
663
- "type": "string",
664
- "format": "date-time"
665
- },
666
- "error": {
667
- "type": "string"
668
- },
669
- "report": {
670
- "$ref": "#/components/schemas/JobReport"
671
- },
672
- "created_at": {
673
- "type": "string",
674
- "format": "date-time"
675
- },
676
- "last_updated_at": {
677
- "type": "string",
678
- "format": "date-time"
679
- },
680
- "trigger": {
681
- "$ref": "#/components/schemas/JobTrigger"
682
- },
683
- "triggered_by": {
684
- "type": "string",
685
- "nullable": true
686
- }
687
- }
688
- },
689
- "ListJobsResponse": {
690
- "type": "object",
691
- "properties": {
692
- "jobs": {
693
- "type": "array",
694
- "items": {
695
- "$ref": "#/components/schemas/Job"
696
- }
697
- },
698
- "cursor": {
699
- "type": "string",
700
- "nullable": true
701
- }
702
- }
703
- },
704
- "JobReportUrlResponse": {
705
- "type": "object",
706
- "properties": {
707
- "url": {
708
- "type": "string"
709
- },
710
- "expires_in": {
711
- "type": "integer"
712
- }
713
- }
714
- },
715
- "QueryFilterType": {
716
- "type": "string",
717
- "enum": [
718
- "entity_workflows_only_in_closed_or_cancelled_status",
719
- "no_related_entities",
720
- "related_entities_all_in_closed_or_cancelled_status",
721
- "related_entities_workflows_only_in_closed_or_cancelled_status",
722
- "no_email_communication_since"
723
- ]
724
- },
725
- "QueryFilter": {
726
- "type": "object",
727
- "required": [
728
- "type"
729
- ],
730
- "properties": {
731
- "type": {
732
- "$ref": "#/components/schemas/QueryFilterType"
733
- },
734
- "related_entity_schemas": {
735
- "type": "array",
736
- "items": {
737
- "type": "string"
738
- }
739
- },
740
- "lookback_period_days": {
741
- "type": "integer"
742
- }
743
- }
744
- },
745
- "QueryConfig": {
746
- "type": "object",
747
- "required": [
748
- "saved_view_id"
749
- ],
750
- "properties": {
751
- "saved_view_id": {
752
- "type": "string"
753
- },
754
- "include_deleted": {
755
- "type": "string",
756
- "enum": [
757
- "true",
758
- "false",
759
- "only"
760
- ]
761
- },
762
- "filters": {
763
- "type": "array",
764
- "items": {
765
- "$ref": "#/components/schemas/QueryFilter"
766
- }
767
- }
768
- }
769
- },
770
- "QueryEntitiesRequest": {
771
- "allOf": [
772
- {
773
- "$ref": "#/components/schemas/QueryConfig"
774
- },
775
- {
776
- "type": "object",
777
- "properties": {
778
- "from": {
779
- "type": "integer"
780
- },
781
- "size": {
782
- "type": "integer"
783
- },
784
- "hydrate": {
785
- "type": "boolean"
786
- },
787
- "fields": {
788
- "type": "array",
789
- "items": {
790
- "type": "string"
791
- }
792
- }
793
- }
794
- }
795
- ]
796
- },
797
- "QueryEntitiesResult": {
798
- "type": "object",
799
- "properties": {
800
- "hits": {
801
- "type": "number"
802
- },
803
- "results": {
804
- "type": "array",
805
- "items": {
806
- "type": "object",
807
- "additionalProperties": true
808
- }
809
- }
810
- }
811
- },
812
- "ConfigSchedule": {
813
- "$ref": "#/components/schemas/IntervalConfigSchedule"
814
- },
815
- "IntervalConfigSchedule": {
816
- "type": "object",
817
- "required": [
818
- "frequency",
819
- "interval_days"
820
- ],
821
- "properties": {
822
- "frequency": {
823
- "type": "string",
824
- "enum": [
825
- "interval"
826
- ]
827
- },
828
- "interval_days": {
829
- "type": "integer",
830
- "minimum": 1,
831
- "description": "Interval in days between executions"
832
- },
833
- "start_date": {
834
- "type": "string",
835
- "format": "date"
836
- },
837
- "end_date": {
838
- "type": "string",
839
- "format": "date"
840
- }
841
- }
842
- },
843
- "UpsertConfigRequest": {
844
- "type": "object",
845
- "required": [
846
- "type",
847
- "query",
848
- "schedule"
849
- ],
850
- "properties": {
851
- "type": {
852
- "$ref": "#/components/schemas/ConfigType"
853
- },
854
- "query": {
855
- "$ref": "#/components/schemas/QueryConfig"
856
- },
857
- "schedule": {
858
- "$ref": "#/components/schemas/ConfigSchedule"
859
- },
860
- "relations_for_deletion": {
861
- "type": "array",
862
- "items": {
863
- "$ref": "#/components/schemas/DeletionRelationEntitySchema"
864
- }
865
- },
866
- "enabled": {
867
- "type": "boolean",
868
- "default": true,
869
- "description": "Whether this configuration is active"
870
- }
871
- }
872
- },
873
- "Config": {
874
- "type": "object",
875
- "required": [
876
- "id",
877
- "entity_schema",
878
- "query",
879
- "type"
880
- ],
881
- "properties": {
882
- "id": {
883
- "type": "string"
884
- },
885
- "type": {
886
- "$ref": "#/components/schemas/ConfigType",
887
- "description": "Type of configuration. Currently only 'deletion' is supported."
888
- },
889
- "entity_schema": {
890
- "type": "string"
891
- },
892
- "query": {
893
- "$ref": "#/components/schemas/QueryConfig"
894
- },
895
- "schedule": {
896
- "$ref": "#/components/schemas/ConfigSchedule"
897
- },
898
- "enabled": {
899
- "type": "boolean"
900
- },
901
- "created_at": {
902
- "type": "string",
903
- "format": "date-time"
904
- },
905
- "last_updated_at": {
906
- "type": "string",
907
- "format": "date-time"
908
- },
909
- "next_run_at": {
910
- "type": "string",
911
- "format": "date"
912
- },
913
- "relations_for_deletion": {
914
- "type": "array",
915
- "items": {
916
- "$ref": "#/components/schemas/DeletionRelationEntitySchema"
917
- }
918
- },
919
- "last_run_at": {
920
- "type": "string",
921
- "format": "date-time"
922
- }
923
- }
924
- },
925
- "DeletionRelationEntitySchema": {
926
- "type": "string",
927
- "enum": [
928
- "contact",
929
- "file",
930
- "opportunity",
931
- "order",
932
- "meter",
933
- "ticket",
934
- "message",
935
- "account",
936
- "submission",
937
- "contract"
938
- ]
939
- },
940
- "ListConfigsResponse": {
941
- "type": "object",
942
- "properties": {
943
- "configs": {
944
- "type": "array",
945
- "items": {
946
- "$ref": "#/components/schemas/Config"
947
- }
948
- },
949
- "cursor": {
950
- "type": "string",
951
- "nullable": true
952
- }
953
- }
954
- }
955
- }
956
- },
957
- "servers": [
958
- {
959
- "url": "https://data-management.sls.epilot.io"
960
- }
961
- ]
962
- }