@epilot/sdk 2.2.7 → 2.3.1
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.
- package/README.md +3 -2
- package/definitions/automation-runtime.json +1 -1
- package/definitions/automation.json +209 -0
- package/definitions/blueprint-manifest-runtime.json +1 -1
- package/definitions/blueprint-manifest.json +1279 -150
- package/definitions/data-governance-runtime.json +1 -0
- package/definitions/data-governance.json +1126 -0
- package/definitions/deduplication-runtime.json +1 -1
- package/definitions/deduplication.json +135 -4
- package/definitions/design-runtime.json +1 -1
- package/definitions/design.json +103 -57
- package/definitions/email-settings-runtime.json +1 -1
- package/definitions/email-settings.json +29 -0
- package/definitions/entity.json +44 -2
- package/definitions/{erp-integration-runtime.json → integration-toolkit-runtime.json} +1 -1
- package/definitions/{erp-integration.json → integration-toolkit.json} +76 -5
- package/definitions/journey.json +9 -0
- package/definitions/message-runtime.json +1 -1
- package/definitions/message.json +202 -0
- package/definitions/sharing-runtime.json +1 -0
- package/definitions/sharing.json +956 -0
- package/definitions/template-variables.json +12 -4
- package/definitions/user.json +52 -0
- package/definitions/workflow-definition.json +15 -1
- package/definitions/workflow-runtime.json +1 -1
- package/definitions/workflow.json +102 -0
- package/dist/README-KX4XC2HB.js +7 -0
- package/dist/README-PTYV6PQI.cjs +7 -0
- package/dist/{_index-NWNYWBIF.js → _index-CLT2KTVS.js} +9 -6
- package/dist/{_index-ONGE545F.cjs → _index-O7JDGRSE.cjs} +8 -5
- package/dist/apis/access-token.cjs +6 -6
- package/dist/apis/access-token.js +1 -1
- package/dist/apis/address-suggestions.cjs +6 -6
- package/dist/apis/address-suggestions.js +1 -1
- package/dist/apis/address.cjs +6 -6
- package/dist/apis/address.js +1 -1
- package/dist/apis/ai-agents.cjs +6 -6
- package/dist/apis/ai-agents.js +1 -1
- package/dist/apis/app.cjs +6 -6
- package/dist/apis/app.js +1 -1
- package/dist/apis/audit-logs.cjs +6 -6
- package/dist/apis/audit-logs.js +1 -1
- package/dist/apis/automation.cjs +8 -8
- package/dist/apis/automation.d.cts +2 -2
- package/dist/apis/automation.d.ts +2 -2
- package/dist/apis/automation.js +2 -2
- package/dist/apis/billing.cjs +6 -6
- package/dist/apis/billing.js +1 -1
- package/dist/apis/blueprint-manifest.cjs +8 -8
- package/dist/apis/blueprint-manifest.d.cts +2 -2
- package/dist/apis/blueprint-manifest.d.ts +2 -2
- package/dist/apis/blueprint-manifest.js +2 -2
- package/dist/apis/consent.cjs +6 -6
- package/dist/apis/consent.js +1 -1
- package/dist/apis/customer-portal.cjs +6 -6
- package/dist/apis/customer-portal.js +1 -1
- package/dist/apis/dashboard.cjs +6 -6
- package/dist/apis/dashboard.js +1 -1
- package/dist/apis/data-governance.cjs +38 -0
- package/dist/apis/{data-management.d.cts → data-governance.d.cts} +5 -5
- package/dist/apis/{data-management.d.ts → data-governance.d.ts} +5 -5
- package/dist/apis/{data-management.js → data-governance.js} +10 -10
- package/dist/apis/deduplication.cjs +8 -8
- package/dist/apis/deduplication.d.cts +2 -2
- package/dist/apis/deduplication.d.ts +2 -2
- package/dist/apis/deduplication.js +2 -2
- package/dist/apis/design.cjs +8 -8
- package/dist/apis/design.d.cts +2 -2
- package/dist/apis/design.d.ts +2 -2
- package/dist/apis/design.js +2 -2
- package/dist/apis/document.cjs +6 -6
- package/dist/apis/document.js +1 -1
- package/dist/apis/email-settings.cjs +8 -8
- package/dist/apis/email-settings.d.cts +2 -2
- package/dist/apis/email-settings.d.ts +2 -2
- package/dist/apis/email-settings.js +2 -2
- package/dist/apis/email-template.cjs +6 -6
- package/dist/apis/email-template.js +1 -1
- package/dist/apis/entity-mapping.cjs +6 -6
- package/dist/apis/entity-mapping.js +1 -1
- package/dist/apis/entity.cjs +6 -6
- package/dist/apis/entity.d.cts +2 -2
- package/dist/apis/entity.d.ts +2 -2
- package/dist/apis/entity.js +1 -1
- package/dist/apis/environments.cjs +6 -6
- package/dist/apis/environments.js +1 -1
- package/dist/apis/erp-integration.cjs +6 -6
- package/dist/apis/erp-integration.d.cts +5755 -3
- package/dist/apis/erp-integration.d.ts +5755 -3
- package/dist/apis/erp-integration.js +1 -1
- package/dist/apis/event-catalog.cjs +6 -6
- package/dist/apis/event-catalog.js +1 -1
- package/dist/apis/file.cjs +6 -6
- package/dist/apis/file.js +1 -1
- package/dist/apis/iban.cjs +6 -6
- package/dist/apis/iban.js +1 -1
- package/dist/apis/integration-toolkit.cjs +38 -0
- package/dist/apis/integration-toolkit.d.cts +18 -0
- package/dist/apis/integration-toolkit.d.ts +18 -0
- package/dist/apis/integration-toolkit.js +38 -0
- package/dist/apis/journey.cjs +6 -6
- package/dist/apis/journey.d.cts +2 -2
- package/dist/apis/journey.d.ts +2 -2
- package/dist/apis/journey.js +1 -1
- package/dist/apis/kanban.cjs +6 -6
- package/dist/apis/kanban.js +1 -1
- package/dist/apis/message.cjs +8 -8
- package/dist/apis/message.d.cts +2 -2
- package/dist/apis/message.d.ts +2 -2
- package/dist/apis/message.js +2 -2
- package/dist/apis/metering.cjs +6 -6
- package/dist/apis/metering.js +1 -1
- package/dist/apis/notes.cjs +6 -6
- package/dist/apis/notes.js +1 -1
- package/dist/apis/notification.cjs +6 -6
- package/dist/apis/notification.js +1 -1
- package/dist/apis/organization.cjs +6 -6
- package/dist/apis/organization.js +1 -1
- package/dist/apis/partner-directory.cjs +6 -6
- package/dist/apis/partner-directory.js +1 -1
- package/dist/apis/permissions.cjs +6 -6
- package/dist/apis/permissions.js +1 -1
- package/dist/apis/pricing-tier.cjs +6 -6
- package/dist/apis/pricing-tier.js +1 -1
- package/dist/apis/pricing.cjs +6 -6
- package/dist/apis/pricing.js +1 -1
- package/dist/apis/purpose.cjs +6 -6
- package/dist/apis/purpose.js +1 -1
- package/dist/apis/sandbox.cjs +6 -6
- package/dist/apis/sandbox.js +1 -1
- package/dist/apis/sharing.cjs +38 -0
- package/dist/apis/sharing.d.cts +18 -0
- package/dist/apis/sharing.d.ts +18 -0
- package/dist/apis/sharing.js +38 -0
- package/dist/apis/submission.cjs +6 -6
- package/dist/apis/submission.js +1 -1
- package/dist/apis/targeting.cjs +6 -6
- package/dist/apis/targeting.js +1 -1
- package/dist/apis/template-variables.cjs +6 -6
- package/dist/apis/template-variables.d.cts +2 -2
- package/dist/apis/template-variables.d.ts +2 -2
- package/dist/apis/template-variables.js +1 -1
- package/dist/apis/user.cjs +6 -6
- package/dist/apis/user.d.cts +2 -2
- package/dist/apis/user.d.ts +2 -2
- package/dist/apis/user.js +1 -1
- package/dist/apis/validation-rules.cjs +6 -6
- package/dist/apis/validation-rules.js +1 -1
- package/dist/apis/webhooks.cjs +6 -6
- package/dist/apis/webhooks.js +1 -1
- package/dist/apis/workflow-definition.cjs +6 -6
- package/dist/apis/workflow-definition.d.cts +2 -2
- package/dist/apis/workflow-definition.d.ts +2 -2
- package/dist/apis/workflow-definition.js +1 -1
- package/dist/apis/workflow.cjs +8 -8
- package/dist/apis/workflow.d.cts +2 -2
- package/dist/apis/workflow.d.ts +2 -2
- package/dist/apis/workflow.js +2 -2
- package/dist/automation-GFNNLSIN.js +7 -0
- package/dist/automation-IOCVCTKR.cjs +7 -0
- package/dist/{automation-runtime-YBGGE5PL.cjs → automation-runtime-DO5QSGJJ.cjs} +2 -2
- package/dist/{automation-runtime-L5UKEFLA.js → automation-runtime-VP4M7Z4R.js} +1 -1
- package/dist/{automation.d-D7BzN7Gq.d.cts → automation.d-CzhG2m4L.d.cts} +353 -3
- package/dist/{automation.d-D7BzN7Gq.d.ts → automation.d-CzhG2m4L.d.ts} +353 -3
- package/dist/blueprint-manifest-ELK4SGN7.js +7 -0
- package/dist/blueprint-manifest-VBOWPK52.cjs +7 -0
- package/dist/{blueprint-manifest-runtime-2RTW5C52.js → blueprint-manifest-runtime-E2FN43TB.js} +1 -1
- package/dist/{blueprint-manifest-runtime-AF3FIDVX.cjs → blueprint-manifest-runtime-G4UK5VEX.cjs} +2 -2
- package/dist/{blueprint-manifest.d-DECw6HdM.d.cts → blueprint-manifest.d-BGrGU787.d.cts} +712 -22
- package/dist/{blueprint-manifest.d-DECw6HdM.d.ts → blueprint-manifest.d-BGrGU787.d.ts} +712 -22
- package/dist/chunk-5APJZUIH.cjs +14 -0
- package/dist/chunk-5ED7FB3Q.js +14 -0
- package/dist/{chunk-UNCVJH6J.cjs → chunk-77JS7NDM.cjs} +1 -1
- package/dist/{chunk-6UAS2VVG.js → chunk-DLYPVF4U.js} +1 -1
- package/dist/chunk-DVM27A7E.cjs +14 -0
- package/dist/{chunk-3NLMZLCD.js → chunk-EFWPEVXI.js} +1 -1
- package/dist/chunk-EIIIKDOJ.cjs +14 -0
- package/dist/{chunk-HAZ3WP7V.cjs → chunk-IAHSYVYB.cjs} +1 -1
- package/dist/chunk-JTFWOEZF.cjs +14 -0
- package/dist/{chunk-A67W5WAP.cjs → chunk-KEI3GHDY.cjs} +1 -1
- package/dist/chunk-KIWRGUKM.js +14 -0
- package/dist/{chunk-PSQMDY3B.js → chunk-KQKBSWGI.js} +1 -1
- package/dist/chunk-NPDSA7T2.js +14 -0
- package/dist/{chunk-ZI33AJQ5.cjs → chunk-QNZPOA54.cjs} +1 -1
- package/dist/{chunk-BN6EJPDC.js → chunk-QSEIJWJW.js} +31 -26
- package/dist/{chunk-VUVWHQMP.cjs → chunk-TKTSGA7G.cjs} +31 -26
- package/dist/chunk-TZQFJ5GX.cjs +14 -0
- package/dist/chunk-U4PUHKZC.js +14 -0
- package/dist/chunk-VPDA5SAH.js +14 -0
- package/dist/chunk-WT26LFC2.js +14 -0
- package/dist/{chunk-3YSEO476.js → chunk-X2SC4GW5.js} +1 -1
- package/dist/chunk-ZL6KDJFT.cjs +14 -0
- package/dist/data-governance-2U5UU4GM.cjs +7 -0
- package/dist/data-governance-36Y33JVG.js +7 -0
- package/dist/{data-management-W5JQGGGH.js → data-governance-PLS5TJ7Z.js} +3 -3
- package/dist/{data-management-XFSRLFYA.cjs → data-governance-ZJ2K4ZWX.cjs} +3 -3
- package/dist/data-governance-runtime-LITKCNSG.js +5 -0
- package/dist/{data-management-runtime-J5IS7T47.cjs → data-governance-runtime-TDGFG67G.cjs} +2 -2
- package/dist/data-governance.d-BbZ466j5.d.cts +1178 -0
- package/dist/data-governance.d-BbZ466j5.d.ts +1178 -0
- package/dist/deduplication-G2ZY4NMX.js +7 -0
- package/dist/deduplication-PKKTZAEA.cjs +7 -0
- package/dist/{deduplication-runtime-BBHG7MJW.cjs → deduplication-runtime-5QS6I4S7.cjs} +2 -2
- package/dist/{deduplication-runtime-DLGBF4RN.js → deduplication-runtime-VL4R2VIG.js} +1 -1
- package/dist/deduplication.d-D5GYddVu.d.cts +218 -0
- package/dist/deduplication.d-D5GYddVu.d.ts +218 -0
- package/dist/design-NISDHPFD.cjs +7 -0
- package/dist/design-WL4AZIGX.js +7 -0
- package/dist/design-runtime-OXEXKZVG.cjs +5 -0
- package/dist/{design-runtime-3SKJA7QH.js → design-runtime-QMJM4FAF.js} +1 -1
- package/dist/{design.d-eA-irKEX.d.ts → design.d-DTo29S0F.d.cts} +142 -15
- package/dist/{design.d-eA-irKEX.d.cts → design.d-DTo29S0F.d.ts} +142 -15
- package/dist/email-settings-CKFJU4WZ.js +7 -0
- package/dist/email-settings-NQJJKS2P.cjs +7 -0
- package/dist/{email-settings-runtime-Q2HVKJDS.js → email-settings-runtime-EGIJ2AVQ.js} +1 -1
- package/dist/{email-settings-runtime-3NJIAWWI.cjs → email-settings-runtime-WGVLI7N6.cjs} +2 -2
- package/dist/{email-settings.d-DUvmLZMN.d.ts → email-settings.d-B7Q_xT25.d.cts} +29 -2
- package/dist/{email-settings.d-DUvmLZMN.d.cts → email-settings.d-B7Q_xT25.d.ts} +29 -2
- package/dist/entity-CK76MXVN.js +7 -0
- package/dist/entity-TFMH5VTZ.cjs +7 -0
- package/dist/{entity.d-__Tx1Y0J.d.cts → entity.d-ByufVI16.d.cts} +40 -1
- package/dist/{entity.d-__Tx1Y0J.d.ts → entity.d-ByufVI16.d.ts} +40 -1
- package/dist/erp-integration-PAVHSUDM.cjs +7 -0
- package/dist/erp-integration-SBQJ6HEG.js +7 -0
- package/dist/index.cjs +67 -40
- package/dist/index.d.cts +36 -34
- package/dist/index.d.ts +36 -34
- package/dist/index.js +54 -27
- package/dist/integration-toolkit-FRPFOYT2.js +7 -0
- package/dist/integration-toolkit-VNMDI55O.cjs +7 -0
- package/dist/integration-toolkit-runtime-5KG3LGXF.cjs +5 -0
- package/dist/integration-toolkit-runtime-LYHFVIRW.js +5 -0
- package/dist/{erp-integration.d-B4XPU_j-.d.cts → integration-toolkit.d-Ry-KC9ow.d.cts} +69 -3
- package/dist/{erp-integration.d-B4XPU_j-.d.ts → integration-toolkit.d-Ry-KC9ow.d.ts} +69 -3
- package/dist/journey-KDR5EU3W.js +7 -0
- package/dist/journey-REBN4TGQ.cjs +7 -0
- package/dist/{journey.d-BguKXj73.d.cts → journey.d-ClXO0xK8.d.cts} +8 -0
- package/dist/{journey.d-BguKXj73.d.ts → journey.d-ClXO0xK8.d.ts} +8 -0
- package/dist/message-HCA2KSH6.js +7 -0
- package/dist/message-J2SFQJNB.cjs +7 -0
- package/dist/{message-runtime-ITR7MPKT.cjs → message-runtime-CGFCT6FU.cjs} +2 -2
- package/dist/{message-runtime-YMKW2N3R.js → message-runtime-XDCFFLYK.js} +1 -1
- package/dist/{message.d-YEv1kmQd.d.cts → message.d-D3QUkBjg.d.cts} +230 -4
- package/dist/{message.d-YEv1kmQd.d.ts → message.d-D3QUkBjg.d.ts} +230 -4
- package/dist/sharing-KEWK5LNG.js +976 -0
- package/dist/sharing-MNDABPL7.js +7 -0
- package/dist/sharing-MR7ANOST.cjs +7 -0
- package/dist/sharing-WG4L7LH2.cjs +976 -0
- package/dist/sharing-runtime-OZGIZWL3.js +5 -0
- package/dist/sharing-runtime-VOFLBIFW.cjs +5 -0
- package/dist/sharing.d-sOXq-gtz.d.cts +571 -0
- package/dist/sharing.d-sOXq-gtz.d.ts +571 -0
- package/dist/{template-variables-VKDJJZUT.js → template-variables-6CLOG67C.js} +13 -0
- package/dist/{template-variables-OAYS2E3G.cjs → template-variables-I72B5WS6.cjs} +13 -0
- package/dist/{template-variables.d-Ch3H3zYf.d.cts → template-variables.d-Ble9TSBa.d.cts} +8 -2
- package/dist/{template-variables.d-Ch3H3zYf.d.ts → template-variables.d-Ble9TSBa.d.ts} +8 -2
- package/dist/user-7ZN2XO7G.cjs +7 -0
- package/dist/user-ZK7BK6VY.js +7 -0
- package/dist/{user.d-CXqM751M.d.cts → user.d-D18fe97W.d.cts} +75 -3
- package/dist/{user.d-CXqM751M.d.ts → user.d-D18fe97W.d.ts} +75 -3
- package/dist/workflow-CQOBZ25C.cjs +7 -0
- package/dist/workflow-G7VFCXY7.js +7 -0
- package/dist/workflow-definition-CVBYKAUY.cjs +7 -0
- package/dist/workflow-definition-GNAKDNG7.js +7 -0
- package/dist/{workflow-definition.d-CtmE-ymB.d.cts → workflow-definition.d-ByCJK9_x.d.cts} +16 -0
- package/dist/{workflow-definition.d-CtmE-ymB.d.ts → workflow-definition.d-ByCJK9_x.d.ts} +16 -0
- package/dist/{workflow-runtime-RLZO2OQB.js → workflow-runtime-DNTQDYPQ.js} +1 -1
- package/dist/{workflow-runtime-WCJ7NRTH.cjs → workflow-runtime-VKFESVFX.cjs} +2 -2
- package/dist/{workflow.d-DvhTpEtU.d.cts → workflow.d-pD8ISOg-.d.cts} +73 -1
- package/dist/{workflow.d-DvhTpEtU.d.ts → workflow.d-pD8ISOg-.d.ts} +73 -1
- package/docs/automation.md +141 -15
- package/docs/blueprint-manifest.md +854 -55
- package/docs/{data-management.md → data-governance.md} +113 -28
- package/docs/deduplication.md +122 -0
- package/docs/design.md +140 -82
- package/docs/email-settings.md +22 -0
- package/docs/entity.md +17 -0
- package/docs/erp-integration.md +21 -6
- package/docs/integration-toolkit.md +6048 -0
- package/docs/journey.md +6 -0
- package/docs/message.md +110 -1
- package/docs/sharing.md +1181 -0
- package/docs/template-variables.md +13 -0
- package/docs/user.md +62 -8
- package/docs/workflow-definition.md +28 -14
- package/docs/workflow.md +231 -30
- package/package.json +29 -17
- package/definitions/data-management-runtime.json +0 -1
- package/definitions/data-management.json +0 -978
- package/dist/README-6OOYWQYJ.cjs +0 -7
- package/dist/README-JUWX7KNV.js +0 -7
- package/dist/apis/data-management.cjs +0 -38
- package/dist/automation-3HGCK725.cjs +0 -7
- package/dist/automation-72VGEJCY.js +0 -7
- package/dist/blueprint-manifest-CXSCRQ5X.js +0 -7
- package/dist/blueprint-manifest-SHNZPK5O.cjs +0 -7
- package/dist/chunk-4BCQGZJB.cjs +0 -14
- package/dist/chunk-4G6LO3JY.cjs +0 -14
- package/dist/chunk-6GC363VV.js +0 -14
- package/dist/chunk-75ZWZM3L.js +0 -14
- package/dist/chunk-D32L2HMX.cjs +0 -14
- package/dist/chunk-O4JDWMYD.js +0 -14
- package/dist/chunk-RXMOHUBP.cjs +0 -14
- package/dist/chunk-ZKQ573B7.js +0 -14
- package/dist/data-management-3N3A3XBM.js +0 -7
- package/dist/data-management-YXFLQWLV.cjs +0 -7
- package/dist/data-management-runtime-DN7FGK7G.js +0 -5
- package/dist/data-management.d-BXS5jbJY.d.cts +0 -547
- package/dist/data-management.d-BXS5jbJY.d.ts +0 -547
- package/dist/deduplication-ECVAZVVA.cjs +0 -7
- package/dist/deduplication-GYIST22B.js +0 -7
- package/dist/deduplication.d-w_2aJD5f.d.cts +0 -113
- package/dist/deduplication.d-w_2aJD5f.d.ts +0 -113
- package/dist/design-KUVXMFFK.cjs +0 -7
- package/dist/design-YKBXRW5C.js +0 -7
- package/dist/design-runtime-Y3VGTQLP.cjs +0 -5
- package/dist/email-settings-EJ3DCPPN.js +0 -7
- package/dist/email-settings-TALOPLBC.cjs +0 -7
- package/dist/entity-M5F22DSS.cjs +0 -7
- package/dist/entity-RT4YRZDG.js +0 -7
- package/dist/erp-integration-76K5HOGL.js +0 -7
- package/dist/erp-integration-A33WOGPF.cjs +0 -7
- package/dist/journey-HKN7QXCZ.cjs +0 -7
- package/dist/journey-UBZCOJNW.js +0 -7
- package/dist/message-3XZLJR6R.cjs +0 -7
- package/dist/message-ZNMCS5YH.js +0 -7
- package/dist/user-EIEOI3OG.js +0 -7
- package/dist/user-NJJ7XVKB.cjs +0 -7
- package/dist/workflow-3LLURW3H.js +0 -7
- package/dist/workflow-RAGQDYXT.cjs +0 -7
- package/dist/workflow-definition-MBOMPMCG.js +0 -7
- package/dist/workflow-definition-SPAHD3HS.cjs +0 -7
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
# Data
|
|
1
|
+
# Data Governance API
|
|
2
2
|
|
|
3
|
-
- **
|
|
3
|
+
- **Base URL:** `https://data-governance.sls.epilot.io`
|
|
4
|
+
- **Full API Docs:** [https://docs.epilot.io/api/data-governance](https://docs.epilot.io/api/data-governance)
|
|
4
5
|
|
|
5
6
|
## Usage
|
|
6
7
|
|
|
@@ -8,32 +9,36 @@
|
|
|
8
9
|
import { epilot } from '@epilot/sdk'
|
|
9
10
|
|
|
10
11
|
epilot.authorize(() => '<token>')
|
|
11
|
-
const { data } = await epilot.
|
|
12
|
+
const { data } = await epilot.dataGovernance.queryEntities(...)
|
|
12
13
|
```
|
|
13
14
|
|
|
14
15
|
### Tree-shakeable import
|
|
15
16
|
|
|
16
17
|
```ts
|
|
17
|
-
import { getClient, authorize } from '@epilot/sdk/data-
|
|
18
|
+
import { getClient, authorize } from '@epilot/sdk/data-governance'
|
|
18
19
|
|
|
19
|
-
const
|
|
20
|
-
authorize(
|
|
21
|
-
const { data } = await
|
|
20
|
+
const dataGovernanceClient = getClient()
|
|
21
|
+
authorize(dataGovernanceClient, () => '<token>')
|
|
22
|
+
const { data } = await dataGovernanceClient.queryEntities(...)
|
|
22
23
|
```
|
|
23
24
|
|
|
24
25
|
## Operations
|
|
25
26
|
|
|
26
|
-
**
|
|
27
|
+
**Query**
|
|
27
28
|
- [`queryEntities`](#queryentities)
|
|
29
|
+
|
|
30
|
+
**Auditable Jobs**
|
|
28
31
|
- [`createJob`](#createjob)
|
|
29
32
|
- [`updateJob`](#updatejob)
|
|
30
33
|
- [`getJob`](#getjob)
|
|
31
34
|
- [`getJobReportUrl`](#getjobreporturl)
|
|
32
|
-
- [`getConfig`](#getconfig)
|
|
33
35
|
- [`createJobForConfig`](#createjobforconfig)
|
|
36
|
+
- [`listJobs`](#listjobs)
|
|
37
|
+
|
|
38
|
+
**Data Lifecycle Configs**
|
|
39
|
+
- [`getConfig`](#getconfig)
|
|
34
40
|
- [`upsertConfig`](#upsertconfig)
|
|
35
41
|
- [`listConfigs`](#listconfigs)
|
|
36
|
-
- [`listJobs`](#listjobs)
|
|
37
42
|
|
|
38
43
|
**Schemas**
|
|
39
44
|
- [`ConfigType`](#configtype)
|
|
@@ -61,9 +66,9 @@ const { data } = await dataManagementClient.queryEntities(...)
|
|
|
61
66
|
|
|
62
67
|
### `queryEntities`
|
|
63
68
|
|
|
64
|
-
Query entities
|
|
69
|
+
Query entities matching a data lifecycle config
|
|
65
70
|
|
|
66
|
-
`POST /data-
|
|
71
|
+
`POST /data-governance/v1/{entity_schema}/query`
|
|
67
72
|
|
|
68
73
|
```ts
|
|
69
74
|
const { data } = await client.queryEntities(
|
|
@@ -110,7 +115,7 @@ const { data } = await client.queryEntities(
|
|
|
110
115
|
|
|
111
116
|
Create a new job run
|
|
112
117
|
|
|
113
|
-
`POST /data-
|
|
118
|
+
`POST /data-governance/v1/{entity_schema}/jobs`
|
|
114
119
|
|
|
115
120
|
```ts
|
|
116
121
|
const { data } = await client.createJob(
|
|
@@ -162,7 +167,7 @@ const { data } = await client.createJob(
|
|
|
162
167
|
|
|
163
168
|
Update an existing job run
|
|
164
169
|
|
|
165
|
-
`PATCH /data-
|
|
170
|
+
`PATCH /data-governance/v1/{entity_schema}/jobs/{job_id}`
|
|
166
171
|
|
|
167
172
|
```ts
|
|
168
173
|
const { data } = await client.updateJob(
|
|
@@ -217,9 +222,9 @@ const { data } = await client.updateJob(
|
|
|
217
222
|
|
|
218
223
|
### `getJob`
|
|
219
224
|
|
|
220
|
-
Get a job by
|
|
225
|
+
Get a job by ID
|
|
221
226
|
|
|
222
|
-
`GET /data-
|
|
227
|
+
`GET /data-governance/v1/jobs/{job_id}`
|
|
223
228
|
|
|
224
229
|
```ts
|
|
225
230
|
const { data } = await client.getJob({
|
|
@@ -262,7 +267,7 @@ const { data } = await client.getJob({
|
|
|
262
267
|
|
|
263
268
|
Get report download URL for a job
|
|
264
269
|
|
|
265
|
-
`GET /data-
|
|
270
|
+
`GET /data-governance/v1/jobs/{job_id}/report-url`
|
|
266
271
|
|
|
267
272
|
```ts
|
|
268
273
|
const { data } = await client.getJobReportUrl({
|
|
@@ -286,9 +291,9 @@ const { data } = await client.getJobReportUrl({
|
|
|
286
291
|
|
|
287
292
|
### `getConfig`
|
|
288
293
|
|
|
289
|
-
Get a config by
|
|
294
|
+
Get a config by ID
|
|
290
295
|
|
|
291
|
-
`GET /data-
|
|
296
|
+
`GET /data-governance/v1/configs/{config_id}`
|
|
292
297
|
|
|
293
298
|
```ts
|
|
294
299
|
const { data } = await client.getConfig({
|
|
@@ -340,7 +345,7 @@ const { data } = await client.getConfig({
|
|
|
340
345
|
|
|
341
346
|
Trigger a manual job run for a config
|
|
342
347
|
|
|
343
|
-
`POST /data-
|
|
348
|
+
`POST /data-governance/v1/configs/{config_id}/jobs`
|
|
344
349
|
|
|
345
350
|
```ts
|
|
346
351
|
const { data } = await client.createJobForConfig({
|
|
@@ -381,9 +386,9 @@ const { data } = await client.createJobForConfig({
|
|
|
381
386
|
|
|
382
387
|
### `upsertConfig`
|
|
383
388
|
|
|
384
|
-
|
|
389
|
+
Create or update a data lifecycle config
|
|
385
390
|
|
|
386
|
-
`POST /data-
|
|
391
|
+
`POST /data-governance/v1/{entity_schema}/configs`
|
|
387
392
|
|
|
388
393
|
```ts
|
|
389
394
|
const { data } = await client.upsertConfig(
|
|
@@ -459,9 +464,9 @@ const { data } = await client.upsertConfig(
|
|
|
459
464
|
|
|
460
465
|
### `listConfigs`
|
|
461
466
|
|
|
462
|
-
List configs
|
|
467
|
+
List data lifecycle configs
|
|
463
468
|
|
|
464
|
-
`GET /data-
|
|
469
|
+
`GET /data-governance/v1/configs`
|
|
465
470
|
|
|
466
471
|
```ts
|
|
467
472
|
const { data } = await client.listConfigs({
|
|
@@ -521,9 +526,9 @@ const { data } = await client.listConfigs({
|
|
|
521
526
|
|
|
522
527
|
### `listJobs`
|
|
523
528
|
|
|
524
|
-
List
|
|
529
|
+
List job runs
|
|
525
530
|
|
|
526
|
-
`GET /data-
|
|
531
|
+
`GET /data-governance/v1/jobs`
|
|
527
532
|
|
|
528
533
|
```ts
|
|
529
534
|
const { data } = await client.listJobs({
|
|
@@ -576,7 +581,9 @@ const { data } = await client.listJobs({
|
|
|
576
581
|
|
|
577
582
|
### `ConfigType`
|
|
578
583
|
|
|
579
|
-
|
|
584
|
+
The governance action type. Determines what operation is performed on
|
|
585
|
+
matched entities when a job runs. Currently only `deletion` is supported.
|
|
586
|
+
|
|
580
587
|
|
|
581
588
|
```ts
|
|
582
589
|
type ConfigType = "deletion"
|
|
@@ -584,24 +591,41 @@ type ConfigType = "deletion"
|
|
|
584
591
|
|
|
585
592
|
### `JobStatus`
|
|
586
593
|
|
|
594
|
+
Current execution status of a job run.
|
|
595
|
+
- `in_progress` — the job is actively processing entities.
|
|
596
|
+
- `success` — the job completed without critical errors.
|
|
597
|
+
- `failed` — the job terminated due to an error.
|
|
598
|
+
|
|
599
|
+
|
|
587
600
|
```ts
|
|
588
601
|
type JobStatus = "in_progress" | "success" | "failed"
|
|
589
602
|
```
|
|
590
603
|
|
|
591
604
|
### `JobTrigger`
|
|
592
605
|
|
|
606
|
+
Indicates how the job was initiated.
|
|
607
|
+
- `schedule` — automatically created by the background scheduler.
|
|
608
|
+
- `manual` — explicitly triggered by a user via the API.
|
|
609
|
+
|
|
610
|
+
|
|
593
611
|
```ts
|
|
594
612
|
type JobTrigger = "schedule" | "manual"
|
|
595
613
|
```
|
|
596
614
|
|
|
597
615
|
### `JobReportFormat`
|
|
598
616
|
|
|
617
|
+
File format of the job report. Currently only CSV is supported.
|
|
618
|
+
|
|
599
619
|
```ts
|
|
600
620
|
type JobReportFormat = "csv"
|
|
601
621
|
```
|
|
602
622
|
|
|
603
623
|
### `JobReport`
|
|
604
624
|
|
|
625
|
+
Reference to a report file stored in S3 that details the outcome of a
|
|
626
|
+
job run (e.g., which entities were deleted or failed).
|
|
627
|
+
|
|
628
|
+
|
|
605
629
|
```ts
|
|
606
630
|
type JobReport = {
|
|
607
631
|
bucket?: string
|
|
@@ -612,6 +636,8 @@ type JobReport = {
|
|
|
612
636
|
|
|
613
637
|
### `CreateJobRequest`
|
|
614
638
|
|
|
639
|
+
Request payload for creating a new job run.
|
|
640
|
+
|
|
615
641
|
```ts
|
|
616
642
|
type CreateJobRequest = {
|
|
617
643
|
type: "deletion"
|
|
@@ -624,7 +650,12 @@ type CreateJobRequest = {
|
|
|
624
650
|
|
|
625
651
|
### `JobDetails`
|
|
626
652
|
|
|
627
|
-
|
|
653
|
+
Type-specific job outcome payload. The shape depends on the config type.
|
|
654
|
+
For `deletion` jobs, typical fields include:
|
|
655
|
+
- `matched_count` — total entities matched by the query
|
|
656
|
+
- `deleted_count` — entities successfully deleted
|
|
657
|
+
- `failed_count` — entities that could not be deleted
|
|
658
|
+
|
|
628
659
|
|
|
629
660
|
```ts
|
|
630
661
|
type JobDetails = Record<string, unknown>
|
|
@@ -632,6 +663,10 @@ type JobDetails = Record<string, unknown>
|
|
|
632
663
|
|
|
633
664
|
### `UpdateJobRequest`
|
|
634
665
|
|
|
666
|
+
Partial update payload for an existing job. Only the fields provided
|
|
667
|
+
will be merged into the job record.
|
|
668
|
+
|
|
669
|
+
|
|
635
670
|
```ts
|
|
636
671
|
type UpdateJobRequest = {
|
|
637
672
|
status?: "in_progress" | "success" | "failed"
|
|
@@ -648,6 +683,11 @@ type UpdateJobRequest = {
|
|
|
648
683
|
|
|
649
684
|
### `Job`
|
|
650
685
|
|
|
686
|
+
Represents a single execution run of a data lifecycle config. Tracks the
|
|
687
|
+
full lifecycle from creation through completion, including outcome
|
|
688
|
+
details and an optional downloadable report.
|
|
689
|
+
|
|
690
|
+
|
|
651
691
|
```ts
|
|
652
692
|
type Job = {
|
|
653
693
|
id: string
|
|
@@ -674,6 +714,8 @@ type Job = {
|
|
|
674
714
|
|
|
675
715
|
### `ListJobsResponse`
|
|
676
716
|
|
|
717
|
+
Paginated response containing a list of job runs.
|
|
718
|
+
|
|
677
719
|
```ts
|
|
678
720
|
type ListJobsResponse = {
|
|
679
721
|
jobs?: Array<{
|
|
@@ -703,6 +745,8 @@ type ListJobsResponse = {
|
|
|
703
745
|
|
|
704
746
|
### `JobReportUrlResponse`
|
|
705
747
|
|
|
748
|
+
Contains a time-limited pre-signed URL to download a job report.
|
|
749
|
+
|
|
706
750
|
```ts
|
|
707
751
|
type JobReportUrlResponse = {
|
|
708
752
|
url?: string
|
|
@@ -712,12 +756,22 @@ type JobReportUrlResponse = {
|
|
|
712
756
|
|
|
713
757
|
### `QueryFilterType`
|
|
714
758
|
|
|
759
|
+
Predefined data governance filter types that can be layered on top of
|
|
760
|
+
a saved view to narrow down target entities:
|
|
761
|
+
- `entity_workflows_only_in_closed_or_cancelled_status` — include only
|
|
762
|
+
entities whose own workflows are all in a closed/cancelled state.
|
|
763
|
+
- `no_related_entities` — include only entitie
|
|
764
|
+
|
|
715
765
|
```ts
|
|
716
766
|
type QueryFilterType = "entity_workflows_only_in_closed_or_cancelled_status" | "no_related_entities" | "related_entities_all_in_closed_or_cancelled_status" | "related_entities_workflows_only_in_closed_or_cancelled_status" | "no_email_communication_since"
|
|
717
767
|
```
|
|
718
768
|
|
|
719
769
|
### `QueryFilter`
|
|
720
770
|
|
|
771
|
+
A single governance filter condition applied during entity querying.
|
|
772
|
+
The required and optional fields depend on the `type`.
|
|
773
|
+
|
|
774
|
+
|
|
721
775
|
```ts
|
|
722
776
|
type QueryFilter = {
|
|
723
777
|
type: "entity_workflows_only_in_closed_or_cancelled_status" | "no_related_entities" | "related_entities_all_in_closed_or_cancelled_status" | "related_entities_workflows_only_in_closed_or_cancelled_status" | "no_email_communication_since"
|
|
@@ -730,6 +784,10 @@ type QueryFilter = {
|
|
|
730
784
|
|
|
731
785
|
### `QueryConfig`
|
|
732
786
|
|
|
787
|
+
Defines the query used by a data lifecycle config to identify target
|
|
788
|
+
entities. Combines a saved view with optional governance filters.
|
|
789
|
+
|
|
790
|
+
|
|
733
791
|
```ts
|
|
734
792
|
type QueryConfig = {
|
|
735
793
|
saved_view_id: string
|
|
@@ -746,6 +804,10 @@ type QueryConfig = {
|
|
|
746
804
|
|
|
747
805
|
### `QueryEntitiesRequest`
|
|
748
806
|
|
|
807
|
+
Request body for the query endpoint. Extends `QueryConfig` with
|
|
808
|
+
pagination and projection options.
|
|
809
|
+
|
|
810
|
+
|
|
749
811
|
```ts
|
|
750
812
|
type QueryEntitiesRequest = {
|
|
751
813
|
saved_view_id: string
|
|
@@ -766,6 +828,8 @@ type QueryEntitiesRequest = {
|
|
|
766
828
|
|
|
767
829
|
### `QueryEntitiesResult`
|
|
768
830
|
|
|
831
|
+
Response from the entity query endpoint.
|
|
832
|
+
|
|
769
833
|
```ts
|
|
770
834
|
type QueryEntitiesResult = {
|
|
771
835
|
hits?: number
|
|
@@ -775,6 +839,10 @@ type QueryEntitiesResult = {
|
|
|
775
839
|
|
|
776
840
|
### `ConfigSchedule`
|
|
777
841
|
|
|
842
|
+
Interval-based schedule. The governance engine will create a job every
|
|
843
|
+
`interval_days` days, optionally bounded by start and end dates.
|
|
844
|
+
|
|
845
|
+
|
|
778
846
|
```ts
|
|
779
847
|
type ConfigSchedule = {
|
|
780
848
|
frequency: "interval"
|
|
@@ -786,6 +854,10 @@ type ConfigSchedule = {
|
|
|
786
854
|
|
|
787
855
|
### `IntervalConfigSchedule`
|
|
788
856
|
|
|
857
|
+
Interval-based schedule. The governance engine will create a job every
|
|
858
|
+
`interval_days` days, optionally bounded by start and end dates.
|
|
859
|
+
|
|
860
|
+
|
|
789
861
|
```ts
|
|
790
862
|
type IntervalConfigSchedule = {
|
|
791
863
|
frequency: "interval"
|
|
@@ -797,6 +869,8 @@ type IntervalConfigSchedule = {
|
|
|
797
869
|
|
|
798
870
|
### `UpsertConfigRequest`
|
|
799
871
|
|
|
872
|
+
Request payload for creating or updating a data lifecycle config.
|
|
873
|
+
|
|
800
874
|
```ts
|
|
801
875
|
type UpsertConfigRequest = {
|
|
802
876
|
type: "deletion"
|
|
@@ -824,6 +898,10 @@ type UpsertConfigRequest = {
|
|
|
824
898
|
|
|
825
899
|
### `Config`
|
|
826
900
|
|
|
901
|
+
A data lifecycle config defining an automated policy (e.g., scheduled
|
|
902
|
+
entity deletion) for a specific entity schema.
|
|
903
|
+
|
|
904
|
+
|
|
827
905
|
```ts
|
|
828
906
|
type Config = {
|
|
829
907
|
id: string
|
|
@@ -857,12 +935,19 @@ type Config = {
|
|
|
857
935
|
|
|
858
936
|
### `DeletionRelationEntitySchema`
|
|
859
937
|
|
|
938
|
+
Entity schema slug that can be specified as a cascading deletion
|
|
939
|
+
target. When a primary entity is deleted, related entities of these
|
|
940
|
+
schemas are also removed.
|
|
941
|
+
|
|
942
|
+
|
|
860
943
|
```ts
|
|
861
944
|
type DeletionRelationEntitySchema = "contact" | "file" | "opportunity" | "order" | "meter" | "ticket" | "message" | "account" | "submission" | "contract"
|
|
862
945
|
```
|
|
863
946
|
|
|
864
947
|
### `ListConfigsResponse`
|
|
865
948
|
|
|
949
|
+
Paginated response containing a list of data lifecycle configs.
|
|
950
|
+
|
|
866
951
|
```ts
|
|
867
952
|
type ListConfigsResponse = {
|
|
868
953
|
configs?: Array<{
|
package/docs/deduplication.md
CHANGED
|
@@ -25,11 +25,16 @@ const { data } = await deduplicationClient.deduplicate(...)
|
|
|
25
25
|
## Operations
|
|
26
26
|
|
|
27
27
|
- [`deduplicate`](#deduplicate)
|
|
28
|
+
- [`deduplicateAsync`](#deduplicateasync)
|
|
29
|
+
- [`getDeduplicationJob`](#getdeduplicationjob)
|
|
28
30
|
|
|
29
31
|
**Schemas**
|
|
30
32
|
- [`DeduplicateRequestBody`](#deduplicaterequestbody)
|
|
31
33
|
- [`DeduplicateRequestResponse`](#deduplicaterequestresponse)
|
|
32
34
|
- [`Entity`](#entity)
|
|
35
|
+
- [`DeduplicateAsyncResponse`](#deduplicateasyncresponse)
|
|
36
|
+
- [`JobStatus`](#jobstatus)
|
|
37
|
+
- [`DeduplicationJob`](#deduplicationjob)
|
|
33
38
|
|
|
34
39
|
### `deduplicate`
|
|
35
40
|
|
|
@@ -79,6 +84,75 @@ const { data } = await client.deduplicate(
|
|
|
79
84
|
|
|
80
85
|
---
|
|
81
86
|
|
|
87
|
+
### `deduplicateAsync`
|
|
88
|
+
|
|
89
|
+
Submits an async deduplication job. Returns a job ID immediately. Poll GET /v1/deduplicate/jobs/{jobId} for status.
|
|
90
|
+
|
|
91
|
+
`POST /v1/deduplicate/job`
|
|
92
|
+
|
|
93
|
+
```ts
|
|
94
|
+
const { data } = await client.deduplicateAsync(
|
|
95
|
+
null,
|
|
96
|
+
[
|
|
97
|
+
{
|
|
98
|
+
toKeep: 'string',
|
|
99
|
+
toDelete: ['string']
|
|
100
|
+
}
|
|
101
|
+
],
|
|
102
|
+
)
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
---
|
|
106
|
+
|
|
107
|
+
### `getDeduplicationJob`
|
|
108
|
+
|
|
109
|
+
Returns the current status of an async deduplication job
|
|
110
|
+
|
|
111
|
+
`GET /v1/deduplicate/jobs/{jobId}`
|
|
112
|
+
|
|
113
|
+
```ts
|
|
114
|
+
const { data } = await client.getDeduplicationJob({
|
|
115
|
+
jobId: 'example',
|
|
116
|
+
})
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
<details>
|
|
120
|
+
<summary>Response</summary>
|
|
121
|
+
|
|
122
|
+
```json
|
|
123
|
+
{
|
|
124
|
+
"jobId": "string",
|
|
125
|
+
"status": "pending",
|
|
126
|
+
"message": "string",
|
|
127
|
+
"result": [
|
|
128
|
+
{
|
|
129
|
+
"_id": "string",
|
|
130
|
+
"_org": "string",
|
|
131
|
+
"_schema": "string",
|
|
132
|
+
"_created_at": "1970-01-01T00:00:00.000Z",
|
|
133
|
+
"_updated_at": "1970-01-01T00:00:00.000Z",
|
|
134
|
+
"_created_by": "string",
|
|
135
|
+
"created_by": "string",
|
|
136
|
+
"_tags": ["string"],
|
|
137
|
+
"_acl": {},
|
|
138
|
+
"_owners": [
|
|
139
|
+
{
|
|
140
|
+
"org_id": "string",
|
|
141
|
+
"user_id": "string"
|
|
142
|
+
}
|
|
143
|
+
],
|
|
144
|
+
"type": "string"
|
|
145
|
+
}
|
|
146
|
+
],
|
|
147
|
+
"createdAt": "1970-01-01T00:00:00.000Z",
|
|
148
|
+
"updatedAt": "1970-01-01T00:00:00.000Z"
|
|
149
|
+
}
|
|
150
|
+
```
|
|
151
|
+
|
|
152
|
+
</details>
|
|
153
|
+
|
|
154
|
+
---
|
|
155
|
+
|
|
82
156
|
## Schemas
|
|
83
157
|
|
|
84
158
|
### `DeduplicateRequestBody`
|
|
@@ -133,3 +207,51 @@ type Entity = {
|
|
|
133
207
|
type?: string
|
|
134
208
|
}
|
|
135
209
|
```
|
|
210
|
+
|
|
211
|
+
### `DeduplicateAsyncResponse`
|
|
212
|
+
|
|
213
|
+
Response returned immediately when a deduplication job is submitted
|
|
214
|
+
|
|
215
|
+
```ts
|
|
216
|
+
type DeduplicateAsyncResponse = {
|
|
217
|
+
jobId: string
|
|
218
|
+
status: "pending" | "processing" | "completed" | "failed"
|
|
219
|
+
message: string
|
|
220
|
+
}
|
|
221
|
+
```
|
|
222
|
+
|
|
223
|
+
### `JobStatus`
|
|
224
|
+
|
|
225
|
+
```ts
|
|
226
|
+
type JobStatus = "pending" | "processing" | "completed" | "failed"
|
|
227
|
+
```
|
|
228
|
+
|
|
229
|
+
### `DeduplicationJob`
|
|
230
|
+
|
|
231
|
+
Represents an async deduplication job
|
|
232
|
+
|
|
233
|
+
```ts
|
|
234
|
+
type DeduplicationJob = {
|
|
235
|
+
jobId: string
|
|
236
|
+
status: "pending" | "processing" | "completed" | "failed"
|
|
237
|
+
message?: string
|
|
238
|
+
result?: Array<{
|
|
239
|
+
_id: string
|
|
240
|
+
_org?: string
|
|
241
|
+
_schema?: string
|
|
242
|
+
_created_at?: string // date-time
|
|
243
|
+
_updated_at?: string // date-time
|
|
244
|
+
_created_by?: string | number
|
|
245
|
+
created_by?: string | number
|
|
246
|
+
_tags?: string[]
|
|
247
|
+
_acl?: Record<string, string[]>
|
|
248
|
+
_owners?: Array<{
|
|
249
|
+
org_id: { ... }
|
|
250
|
+
user_id: { ... }
|
|
251
|
+
}>
|
|
252
|
+
type?: string
|
|
253
|
+
}>
|
|
254
|
+
createdAt: string // date-time
|
|
255
|
+
updatedAt: string // date-time
|
|
256
|
+
}
|
|
257
|
+
```
|