@epilot/sdk 2.19.11-alpha.0 → 2.19.12
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/definitions/blueprint-manifest-runtime.json +1 -1
- package/definitions/blueprint-manifest.json +101 -2
- package/definitions/entity-mapping.json +189 -2
- package/definitions/environments.json +7 -7
- 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 +6 -6
- package/dist/apis/automation.js +1 -1
- 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/calendar.cjs +6 -6
- package/dist/apis/calendar.js +1 -1
- package/dist/apis/configuration-hub.cjs +6 -6
- package/dist/apis/configuration-hub.js +1 -1
- 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 +6 -6
- package/dist/apis/data-governance.js +1 -1
- package/dist/apis/deduplication.cjs +6 -6
- package/dist/apis/deduplication.js +1 -1
- package/dist/apis/design.cjs +6 -6
- package/dist/apis/design.js +1 -1
- package/dist/apis/document.cjs +6 -6
- package/dist/apis/document.js +1 -1
- package/dist/apis/email-settings.cjs +6 -6
- package/dist/apis/email-settings.js +1 -1
- 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.d.cts +2 -2
- package/dist/apis/entity-mapping.d.ts +2 -2
- package/dist/apis/entity-mapping.js +1 -1
- package/dist/apis/entity.cjs +14 -6
- package/dist/apis/entity.d.cts +8 -1
- package/dist/apis/entity.d.ts +8 -1
- package/dist/apis/entity.js +9 -1
- package/dist/apis/environments.cjs +6 -6
- package/dist/apis/environments.d.cts +2 -2
- package/dist/apis/environments.d.ts +2 -2
- package/dist/apis/environments.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 +6 -6
- package/dist/apis/integration-toolkit.js +1 -1
- package/dist/apis/journey.cjs +6 -6
- 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 +6 -6
- package/dist/apis/message.js +1 -1
- 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 +33 -6
- package/dist/apis/pricing.d.cts +32 -1
- package/dist/apis/pricing.d.ts +32 -1
- package/dist/apis/pricing.js +28 -1
- package/dist/apis/purpose.cjs +6 -6
- package/dist/apis/purpose.js +1 -1
- package/dist/apis/query.cjs +6 -6
- package/dist/apis/query.js +1 -1
- package/dist/apis/sandbox.cjs +6 -6
- package/dist/apis/sandbox.js +1 -1
- package/dist/apis/sharing.cjs +6 -6
- package/dist/apis/sharing.js +1 -1
- package/dist/apis/snapshot.cjs +6 -6
- package/dist/apis/snapshot.js +1 -1
- package/dist/apis/submission.cjs +6 -6
- package/dist/apis/submission.js +1 -1
- package/dist/apis/target.cjs +6 -6
- package/dist/apis/target.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.js +1 -1
- package/dist/apis/user.cjs +6 -6
- 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.js +1 -1
- package/dist/apis/workflow.cjs +6 -6
- package/dist/apis/workflow.js +1 -1
- package/dist/bin/cli.js +1 -1
- package/dist/blueprint-manifest-SXG3M6B4.cjs +7 -0
- package/dist/blueprint-manifest-YU2UZLHV.js +7 -0
- package/dist/{blueprint-manifest-runtime-W526ROPG.js → blueprint-manifest-runtime-EQX7FPFC.js} +1 -1
- package/dist/{blueprint-manifest-runtime-N5EXZB2K.cjs → blueprint-manifest-runtime-Y63YPBU3.cjs} +2 -2
- package/dist/{blueprint-manifest.d-BVxmCeu7.d.cts → blueprint-manifest.d-B8YKYzSJ.d.cts} +191 -5
- package/dist/{blueprint-manifest.d-BVxmCeu7.d.ts → blueprint-manifest.d-B8YKYzSJ.d.ts} +191 -5
- package/dist/{chunk-3CVNMGIG.cjs → chunk-2AZIGIR2.cjs} +4 -4
- package/dist/{chunk-4Z6GRBDK.js → chunk-JGIBV65B.js} +1 -1
- package/dist/{chunk-Z54CI2VS.cjs → chunk-O2AM3DYP.cjs} +1 -1
- package/dist/{chunk-KSJGHUCG.js → chunk-X3SRAHIZ.js} +4 -4
- package/dist/entity-mapping-D67LJE74.js +7 -0
- package/dist/entity-mapping-WFPSOXRK.cjs +7 -0
- package/dist/{entity-mapping.d-DKSW3sfy.d.ts → entity-mapping.d-CQv75o8M.d.cts} +196 -3
- package/dist/{entity-mapping.d-DKSW3sfy.d.cts → entity-mapping.d-CQv75o8M.d.ts} +196 -3
- package/dist/environments-JP2CPDH2.cjs +7 -0
- package/dist/environments-PGRMZY5G.js +7 -0
- package/dist/{environments.d-CP2gV7vw.d.ts → environments.d-840_mC07.d.cts} +28 -28
- package/dist/{environments.d-CP2gV7vw.d.cts → environments.d-840_mC07.d.ts} +28 -28
- package/dist/index.cjs +10 -10
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +2 -2
- package/dist/{js-yaml-UPZKYVRY.js → js-yaml-DLCVPJ7G.js} +17 -15
- package/docs/blueprint-manifest.md +61 -11
- package/docs/entity-mapping.md +354 -852
- package/docs/environments.md +14 -14
- package/package.json +11 -12
- package/dist/blueprint-manifest-4IAJOK2O.cjs +0 -7
- package/dist/blueprint-manifest-U6SC54EI.js +0 -7
- package/dist/entity-mapping-7J3IAGKQ.js +0 -7
- package/dist/entity-mapping-ZNMFCUKK.cjs +0 -7
- package/dist/environments-3VKW3GPN.cjs +0 -7
- package/dist/environments-SBUZ6QSC.js +0 -7
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
// src/definitions/blueprint-manifest-runtime.json
|
|
6
6
|
var require_blueprint_manifest_runtime = __commonJS({
|
|
7
7
|
"src/definitions/blueprint-manifest-runtime.json"(exports, module) {
|
|
8
|
-
module.exports = { s: "https://blueprint-manifest.sls.epilot.io", o: [["getJob", "get", "/v1/blueprint-manifest/jobs/{job_id}", [["JobID"]]], ["createExport", "post", "/v1/blueprint-manifest/jobs:createExport", null, 1], ["exportManifest", "post", "/v1/blueprint-manifest/jobs/{job_id}:exportManifest", [["JobID"]], 1], ["uploadManifest", "post", "/v1/blueprint-manifest:uploadManifest", null, 1], ["createPlan", "post", "/v1/blueprint-manifest/jobs:createPlan", null, 1], ["applyPlan", "post", "/v1/blueprint-manifest/jobs/{job_id}:applyPlan", [["JobID"]], 1], ["listInstalledManifests", "get", "/v1/blueprint-manifest/manifests"], ["getManifest", "get", "/v1/blueprint-manifest/manifests/{manifest_id}", [["manifest_id", "p", true]]], ["updateManifest", "put", "/v1/blueprint-manifest/manifests/{manifest_id}", [["manifest_id", "p", true]], 1], ["deleteManifest", "delete", "/v1/blueprint-manifest/manifests/{manifest_id}", [["manifest_id", "p", true]]], ["listBlueprints", "get", "/v2/blueprint-manifest/blueprints", [["archived", "q"]]], ["createBlueprint", "post", "/v2/blueprint-manifest/blueprints", null, 1], ["listInstalledMarketplaceBlueprints", "get", "/v2/blueprint-manifest/blueprints:marketplace"], ["preInstallBlueprint", "post", "/v2/blueprint-manifest/blueprints:pre-install", null, 1], ["getBlueprintPreview", "get", "/v2/blueprint-manifest/blueprints:preview/{preview_id}", [["preview_id", "p", true]]], ["installBlueprint", "post", "/v2/blueprint-manifest/blueprint:install", null, 1], ["getBlueprint", "get", "/v2/blueprint-manifest/blueprints/{blueprint_id}", [["blueprint_id", "p", true]]], ["updateBlueprint", "put", "/v2/blueprint-manifest/blueprints/{blueprint_id}", [["blueprint_id", "p", true]], 1], ["deleteBlueprint", "delete", "/v2/blueprint-manifest/blueprints/{blueprint_id}", [["blueprint_id", "p", true]]], ["addBlueprintNote", "post", "/v2/blueprint-manifest/blueprints/{blueprint_id}/notes", [["blueprint_id", "p", true]], 1], ["updateBlueprintNote", "patch", "/v2/blueprint-manifest/blueprints/{blueprint_id}/notes/{note_id}", [["blueprint_id", "p", true], ["note_id", "p", true]], 1], ["deleteBlueprintNote", "delete", "/v2/blueprint-manifest/blueprints/{blueprint_id}/notes/{note_id}", [["blueprint_id", "p", true], ["note_id", "p", true]]], ["validateBlueprint", "post", "/v2/blueprint-manifest/blueprints/{blueprint_id}/validate", [["blueprint_id", "p", true]]], ["verifyBlueprint", "post", "/v2/blueprint-manifest/blueprints/{blueprint_id}:verify", [["blueprint_id", "p", true]], 1], ["detectPatchChanges", "post", "/v2/blueprint-manifest/blueprints/{blueprint_id}/patches:detect", [["blueprint_id", "p", true]], 1], ["createPatch", "post", "/v2/blueprint-manifest/blueprints/{blueprint_id}/patches", [["blueprint_id", "p", true]], 1], ["listPatches", "get", "/v2/blueprint-manifest/blueprints/{blueprint_id}/patches", [["blueprint_id", "p", true]]], ["getPatch", "get", "/v2/blueprint-manifest/blueprints/{blueprint_id}/patches/{patch_id}", [["blueprint_id", "p", true], ["patch_id", "p", true]]], ["applyPatch", "post", "/v2/blueprint-manifest/blueprints/{blueprint_id}/patches/{patch_id}:apply", [["blueprint_id", "p", true], ["patch_id", "p", true]], 1], ["retryPatchOrg", "post", "/v2/blueprint-manifest/blueprints/{blueprint_id}/patches/{patch_id}/orgs/{org_id}:retry", [["blueprint_id", "p", true], ["patch_id", "p", true], ["org_id", "p", true]], 1], ["exportBlueprint", "post", "/v2/blueprint-manifest/blueprints/{blueprint_id}:export", [["blueprint_id", "p", true]], 1], ["listMarketplaceSlugs", "get", "/v2/blueprint-manifest/marketplace/slugs"], ["publishBlueprint", "post", "/v2/blueprint-manifest/blueprints:publish", null, 1], ["formatBlueprintDescription", "post", "/v2/blueprint-manifest/blueprints/{blueprint_id}:format-description", [["blueprint_id", "p", true]], 1], ["suggestBlueprintResources", "post", "/v2/blueprint-manifest/blueprints:suggest-resources", null, 1], ["addBlueprintResource", "post", "/v2/blueprint-manifest/blueprints/{blueprint_id}/resources", [["blueprint_id", "p", true], ["add_dependencies", "q"]], 1], ["syncDependencies", "post", "/v2/blueprint-manifest/blueprints/{blueprint_id}/resources:syncDependencies", [["blueprint_id", "p", true], ["trigger", "q"]]], ["bulkAddBlueprintResources", "post", "/v2/blueprint-manifest/blueprints/{blueprint_id}/resources/bulk", [["blueprint_id", "p", true], ["add_dependencies", "q"]], 1], ["bulkUpdateBlueprintResources", "put", "/v2/blueprint-manifest/blueprints/{blueprint_id}/resources/bulk", [["blueprint_id", "p", true]], 1], ["bulkDeleteBlueprintResources", "delete", "/v2/blueprint-manifest/blueprints/{blueprint_id}/resources/bulk", [["blueprint_id", "p", true]], 1], ["updateBlueprintResource", "put", "/v2/blueprint-manifest/blueprints/{blueprint_id}/resources/{resource_id}", [["blueprint_id", "p", true], ["resource_id", "p", true]], 1], ["deleteBlueprintResource", "delete", "/v2/blueprint-manifest/blueprints/{blueprint_id}/resources/{resource_id}", [["blueprint_id", "p", true], ["resource_id", "p", true]]], ["listBlueprintJobs", "get", "/v2/blueprint-manifest/jobs"], ["getBlueprintJob", "get", "/v2/blueprint-manifest/jobs/{job_id}", [["job_id", "p", true]]], ["continueInstallationJob", "post", "/v2/blueprint-manifest/jobs/{job_id}:continue", [["job_id", "p", true]], 1], ["cancelBlueprintJob", "post", "/v2/blueprint-manifest/jobs/{job_id}:cancel", [["job_id", "p", true]]], ["createMarketplaceListing", "post", "/v1/blueprints/{blueprint_id}/marketplace-listing", [["blueprint_id", "p", true]], 1], ["getMarketplaceListing", "get", "/v1/blueprints/{blueprint_id}/marketplace-listing", [["blueprint_id", "p", true]]], ["listMarketplaceListings", "get", "/v1/marketplace-listings"], ["getMarketplaceListingById", "get", "/v1/marketplace-listings/{listing_id}", [["listing_id", "p", true]]], ["updateMarketplaceListing", "patch", "/v1/marketplace-listings/{listing_id}", [["listing_id", "p", true]], 1], ["deleteMarketplaceListing", "delete", "/v1/marketplace-listings/{listing_id}", [["listing_id", "p", true]]], ["createMarketplaceListingVersion", "post", "/v1/marketplace-listings/{listing_id}/versions", [["listing_id", "p", true]]], ["listMarketplaceListingVersions", "get", "/v1/marketplace-listings/{listing_id}/versions", [["listing_id", "p", true]]], ["updateMarketplaceListingVersion", "patch", "/v1/marketplace-listings/{listing_id}/versions/{version_id}", [["listing_id", "p", true], ["version_id", "p", true]], 1], ["publishMarketplaceListingVersion", "post", "/v1/marketplace-listings/{listing_id}/versions/{version_id}/publish", [["listing_id", "p", true], ["version_id", "p", true]], 1], ["publishBlueprintV3", "post", "/v3/blueprint-manifest/blueprints/{blueprint_id}:publish", [["blueprint_id", "p", true]], 1], ["preInstallBlueprintV3", "post", "/v3/blueprint-manifest/blueprints:pre-install", null, 1], ["installBlueprintV3", "post", "/v3/blueprint-manifest/blueprint:install", null, 1], ["restoreBlueprintDeploymentV3", "post", "/v3/blueprint-manifest/blueprints/{blueprint_id}/deployments/{job_id}:restore", [["blueprint_id", "p", true], ["job_id", "p", true]]], ["getRestorePreview", "get", "/v3/blueprint-manifest/blueprints/{blueprint_id}/deployments/{job_id}/restore-preview", [["blueprint_id", "p", true], ["job_id", "p", true]]], ["triggerDeploymentHealthCheckV3", "post", "/v3/blueprint-manifest/blueprints/{blueprint_id}/deployments/{job_id}:health-check", [["blueprint_id", "p", true], ["job_id", "p", true]], 1], ["getDeploymentHealthReportV3", "get", "/v3/blueprint-manifest/blueprints/{blueprint_id}/deployments/{job_id}/health-report", [["blueprint_id", "p", true], ["job_id", "p", true]]], ["getBlueprintLineageV3", "get", "/v3/blueprint-manifest/blueprints/{blueprint_id}/lineage", [["blueprint_id", "p", true]]], ["createBulkInstallV3", "post", "/v3/blueprint-manifest/bulk-installs", null, 1], ["getBulkInstallV3", "get", "/v3/blueprint-manifest/bulk-installs/{bulk_job_id}", [["bulk_job_id", "p", true]]], ["listBulkInstallTargetsV3", "get", "/v3/blueprint-manifest/bulk-installs/{bulk_job_id}/targets", [["bulk_job_id", "p", true], ["limit", "q"], ["cursor", "q"]]], ["retryBulkInstallTargetV3", "post", "/v3/blueprint-manifest/bulk-installs/{bulk_job_id}/targets/{destination_org_id}:retry", [["bulk_job_id", "p", true], ["destination_org_id", "p", true]], 1], ["listUniquenessCriteria", "get", "/v1/blueprint-manifest/uniqueness-criteria"], ["getUniquenessCriteria", "get", "/v1/blueprint-manifest/uniqueness-criteria/{resource_type}"], ["putUniquenessCriteria", "put", "/v1/blueprint-manifest/uniqueness-criteria/{resource_type}", null, 1], ["deleteUniquenessCriteria", "delete", "/v1/blueprint-manifest/uniqueness-criteria/{resource_type}"]], cp: { JobID: ["job_id", "p", true] }, pp: { "/v1/blueprint-manifest/uniqueness-criteria/{resource_type}": [["resource_type", "p", true]] } };
|
|
8
|
+
module.exports = { s: "https://blueprint-manifest.sls.epilot.io", o: [["getJob", "get", "/v1/blueprint-manifest/jobs/{job_id}", [["JobID"]]], ["createExport", "post", "/v1/blueprint-manifest/jobs:createExport", null, 1], ["exportManifest", "post", "/v1/blueprint-manifest/jobs/{job_id}:exportManifest", [["JobID"]], 1], ["uploadManifest", "post", "/v1/blueprint-manifest:uploadManifest", null, 1], ["createPlan", "post", "/v1/blueprint-manifest/jobs:createPlan", null, 1], ["applyPlan", "post", "/v1/blueprint-manifest/jobs/{job_id}:applyPlan", [["JobID"]], 1], ["listInstalledManifests", "get", "/v1/blueprint-manifest/manifests"], ["getManifest", "get", "/v1/blueprint-manifest/manifests/{manifest_id}", [["manifest_id", "p", true]]], ["updateManifest", "put", "/v1/blueprint-manifest/manifests/{manifest_id}", [["manifest_id", "p", true]], 1], ["deleteManifest", "delete", "/v1/blueprint-manifest/manifests/{manifest_id}", [["manifest_id", "p", true]]], ["listBlueprints", "get", "/v2/blueprint-manifest/blueprints", [["archived", "q"]]], ["createBlueprint", "post", "/v2/blueprint-manifest/blueprints", null, 1], ["listInstalledMarketplaceBlueprints", "get", "/v2/blueprint-manifest/blueprints:marketplace"], ["preInstallBlueprint", "post", "/v2/blueprint-manifest/blueprints:pre-install", null, 1], ["getBlueprintPreview", "get", "/v2/blueprint-manifest/blueprints:preview/{preview_id}", [["preview_id", "p", true]]], ["installBlueprint", "post", "/v2/blueprint-manifest/blueprint:install", null, 1], ["getBlueprint", "get", "/v2/blueprint-manifest/blueprints/{blueprint_id}", [["blueprint_id", "p", true]]], ["updateBlueprint", "put", "/v2/blueprint-manifest/blueprints/{blueprint_id}", [["blueprint_id", "p", true]], 1], ["deleteBlueprint", "delete", "/v2/blueprint-manifest/blueprints/{blueprint_id}", [["blueprint_id", "p", true]]], ["addBlueprintNote", "post", "/v2/blueprint-manifest/blueprints/{blueprint_id}/notes", [["blueprint_id", "p", true]], 1], ["updateBlueprintNote", "patch", "/v2/blueprint-manifest/blueprints/{blueprint_id}/notes/{note_id}", [["blueprint_id", "p", true], ["note_id", "p", true]], 1], ["deleteBlueprintNote", "delete", "/v2/blueprint-manifest/blueprints/{blueprint_id}/notes/{note_id}", [["blueprint_id", "p", true], ["note_id", "p", true]]], ["validateBlueprint", "post", "/v2/blueprint-manifest/blueprints/{blueprint_id}/validate", [["blueprint_id", "p", true]]], ["verifyBlueprint", "post", "/v2/blueprint-manifest/blueprints/{blueprint_id}:verify", [["blueprint_id", "p", true]], 1], ["detectPatchChanges", "post", "/v2/blueprint-manifest/blueprints/{blueprint_id}/patches:detect", [["blueprint_id", "p", true]], 1], ["createPatch", "post", "/v2/blueprint-manifest/blueprints/{blueprint_id}/patches", [["blueprint_id", "p", true]], 1], ["listPatches", "get", "/v2/blueprint-manifest/blueprints/{blueprint_id}/patches", [["blueprint_id", "p", true]]], ["getPatch", "get", "/v2/blueprint-manifest/blueprints/{blueprint_id}/patches/{patch_id}", [["blueprint_id", "p", true], ["patch_id", "p", true]]], ["applyPatch", "post", "/v2/blueprint-manifest/blueprints/{blueprint_id}/patches/{patch_id}:apply", [["blueprint_id", "p", true], ["patch_id", "p", true]], 1], ["retryPatchOrg", "post", "/v2/blueprint-manifest/blueprints/{blueprint_id}/patches/{patch_id}/orgs/{org_id}:retry", [["blueprint_id", "p", true], ["patch_id", "p", true], ["org_id", "p", true]], 1], ["exportBlueprint", "post", "/v2/blueprint-manifest/blueprints/{blueprint_id}:export", [["blueprint_id", "p", true]], 1], ["listMarketplaceSlugs", "get", "/v2/blueprint-manifest/marketplace/slugs"], ["publishBlueprint", "post", "/v2/blueprint-manifest/blueprints:publish", null, 1], ["formatBlueprintDescription", "post", "/v2/blueprint-manifest/blueprints/{blueprint_id}:format-description", [["blueprint_id", "p", true]], 1], ["suggestBlueprintResources", "post", "/v2/blueprint-manifest/blueprints:suggest-resources", null, 1], ["addBlueprintResource", "post", "/v2/blueprint-manifest/blueprints/{blueprint_id}/resources", [["blueprint_id", "p", true], ["add_dependencies", "q"]], 1], ["syncDependencies", "post", "/v2/blueprint-manifest/blueprints/{blueprint_id}/resources:syncDependencies", [["blueprint_id", "p", true], ["trigger", "q"]]], ["bulkAddBlueprintResources", "post", "/v2/blueprint-manifest/blueprints/{blueprint_id}/resources/bulk", [["blueprint_id", "p", true], ["add_dependencies", "q"]], 1], ["bulkUpdateBlueprintResources", "put", "/v2/blueprint-manifest/blueprints/{blueprint_id}/resources/bulk", [["blueprint_id", "p", true]], 1], ["bulkDeleteBlueprintResources", "delete", "/v2/blueprint-manifest/blueprints/{blueprint_id}/resources/bulk", [["blueprint_id", "p", true]], 1], ["updateBlueprintResource", "put", "/v2/blueprint-manifest/blueprints/{blueprint_id}/resources/{resource_id}", [["blueprint_id", "p", true], ["resource_id", "p", true]], 1], ["deleteBlueprintResource", "delete", "/v2/blueprint-manifest/blueprints/{blueprint_id}/resources/{resource_id}", [["blueprint_id", "p", true], ["resource_id", "p", true]]], ["listBlueprintJobs", "get", "/v2/blueprint-manifest/jobs"], ["getBlueprintJob", "get", "/v2/blueprint-manifest/jobs/{job_id}", [["job_id", "p", true]]], ["continueInstallationJob", "post", "/v2/blueprint-manifest/jobs/{job_id}:continue", [["job_id", "p", true]], 1], ["retryInstallationJob", "post", "/v2/blueprint-manifest/jobs/{job_id}:retry", [["job_id", "p", true]]], ["cancelBlueprintJob", "post", "/v2/blueprint-manifest/jobs/{job_id}:cancel", [["job_id", "p", true]]], ["createMarketplaceListing", "post", "/v1/blueprints/{blueprint_id}/marketplace-listing", [["blueprint_id", "p", true]], 1], ["getMarketplaceListing", "get", "/v1/blueprints/{blueprint_id}/marketplace-listing", [["blueprint_id", "p", true]]], ["listMarketplaceListings", "get", "/v1/marketplace-listings"], ["getMarketplaceListingById", "get", "/v1/marketplace-listings/{listing_id}", [["listing_id", "p", true]]], ["updateMarketplaceListing", "patch", "/v1/marketplace-listings/{listing_id}", [["listing_id", "p", true]], 1], ["deleteMarketplaceListing", "delete", "/v1/marketplace-listings/{listing_id}", [["listing_id", "p", true]]], ["createMarketplaceListingVersion", "post", "/v1/marketplace-listings/{listing_id}/versions", [["listing_id", "p", true]]], ["listMarketplaceListingVersions", "get", "/v1/marketplace-listings/{listing_id}/versions", [["listing_id", "p", true]]], ["updateMarketplaceListingVersion", "patch", "/v1/marketplace-listings/{listing_id}/versions/{version_id}", [["listing_id", "p", true], ["version_id", "p", true]], 1], ["publishMarketplaceListingVersion", "post", "/v1/marketplace-listings/{listing_id}/versions/{version_id}/publish", [["listing_id", "p", true], ["version_id", "p", true]], 1], ["publishBlueprintV3", "post", "/v3/blueprint-manifest/blueprints/{blueprint_id}:publish", [["blueprint_id", "p", true]], 1], ["preInstallBlueprintV3", "post", "/v3/blueprint-manifest/blueprints:pre-install", null, 1], ["installBlueprintV3", "post", "/v3/blueprint-manifest/blueprint:install", null, 1], ["restoreBlueprintDeploymentV3", "post", "/v3/blueprint-manifest/blueprints/{blueprint_id}/deployments/{job_id}:restore", [["blueprint_id", "p", true], ["job_id", "p", true]]], ["getRestorePreview", "get", "/v3/blueprint-manifest/blueprints/{blueprint_id}/deployments/{job_id}/restore-preview", [["blueprint_id", "p", true], ["job_id", "p", true]]], ["triggerDeploymentHealthCheckV3", "post", "/v3/blueprint-manifest/blueprints/{blueprint_id}/deployments/{job_id}:health-check", [["blueprint_id", "p", true], ["job_id", "p", true]], 1], ["getDeploymentHealthReportV3", "get", "/v3/blueprint-manifest/blueprints/{blueprint_id}/deployments/{job_id}/health-report", [["blueprint_id", "p", true], ["job_id", "p", true]]], ["getBlueprintLineageV3", "get", "/v3/blueprint-manifest/blueprints/{blueprint_id}/lineage", [["blueprint_id", "p", true]]], ["createBulkInstallV3", "post", "/v3/blueprint-manifest/bulk-installs", null, 1], ["getBulkInstallV3", "get", "/v3/blueprint-manifest/bulk-installs/{bulk_job_id}", [["bulk_job_id", "p", true]]], ["listBulkInstallTargetsV3", "get", "/v3/blueprint-manifest/bulk-installs/{bulk_job_id}/targets", [["bulk_job_id", "p", true], ["limit", "q"], ["cursor", "q"]]], ["retryBulkInstallTargetV3", "post", "/v3/blueprint-manifest/bulk-installs/{bulk_job_id}/targets/{destination_org_id}:retry", [["bulk_job_id", "p", true], ["destination_org_id", "p", true]], 1], ["listUniquenessCriteria", "get", "/v1/blueprint-manifest/uniqueness-criteria"], ["getUniquenessCriteria", "get", "/v1/blueprint-manifest/uniqueness-criteria/{resource_type}"], ["putUniquenessCriteria", "put", "/v1/blueprint-manifest/uniqueness-criteria/{resource_type}", null, 1], ["deleteUniquenessCriteria", "delete", "/v1/blueprint-manifest/uniqueness-criteria/{resource_type}"]], cp: { JobID: ["job_id", "p", true] }, pp: { "/v1/blueprint-manifest/uniqueness-criteria/{resource_type}": [["resource_type", "p", true]] } };
|
|
9
9
|
}
|
|
10
10
|
});
|
|
11
11
|
|
|
@@ -5,7 +5,7 @@ var _chunkNJK5F5TFcjs = require('./chunk-NJK5F5TF.cjs');
|
|
|
5
5
|
// src/definitions/blueprint-manifest-runtime.json
|
|
6
6
|
var require_blueprint_manifest_runtime = _chunkNJK5F5TFcjs.__commonJS.call(void 0, {
|
|
7
7
|
"src/definitions/blueprint-manifest-runtime.json"(exports, module) {
|
|
8
|
-
module.exports = { s: "https://blueprint-manifest.sls.epilot.io", o: [["getJob", "get", "/v1/blueprint-manifest/jobs/{job_id}", [["JobID"]]], ["createExport", "post", "/v1/blueprint-manifest/jobs:createExport", null, 1], ["exportManifest", "post", "/v1/blueprint-manifest/jobs/{job_id}:exportManifest", [["JobID"]], 1], ["uploadManifest", "post", "/v1/blueprint-manifest:uploadManifest", null, 1], ["createPlan", "post", "/v1/blueprint-manifest/jobs:createPlan", null, 1], ["applyPlan", "post", "/v1/blueprint-manifest/jobs/{job_id}:applyPlan", [["JobID"]], 1], ["listInstalledManifests", "get", "/v1/blueprint-manifest/manifests"], ["getManifest", "get", "/v1/blueprint-manifest/manifests/{manifest_id}", [["manifest_id", "p", true]]], ["updateManifest", "put", "/v1/blueprint-manifest/manifests/{manifest_id}", [["manifest_id", "p", true]], 1], ["deleteManifest", "delete", "/v1/blueprint-manifest/manifests/{manifest_id}", [["manifest_id", "p", true]]], ["listBlueprints", "get", "/v2/blueprint-manifest/blueprints", [["archived", "q"]]], ["createBlueprint", "post", "/v2/blueprint-manifest/blueprints", null, 1], ["listInstalledMarketplaceBlueprints", "get", "/v2/blueprint-manifest/blueprints:marketplace"], ["preInstallBlueprint", "post", "/v2/blueprint-manifest/blueprints:pre-install", null, 1], ["getBlueprintPreview", "get", "/v2/blueprint-manifest/blueprints:preview/{preview_id}", [["preview_id", "p", true]]], ["installBlueprint", "post", "/v2/blueprint-manifest/blueprint:install", null, 1], ["getBlueprint", "get", "/v2/blueprint-manifest/blueprints/{blueprint_id}", [["blueprint_id", "p", true]]], ["updateBlueprint", "put", "/v2/blueprint-manifest/blueprints/{blueprint_id}", [["blueprint_id", "p", true]], 1], ["deleteBlueprint", "delete", "/v2/blueprint-manifest/blueprints/{blueprint_id}", [["blueprint_id", "p", true]]], ["addBlueprintNote", "post", "/v2/blueprint-manifest/blueprints/{blueprint_id}/notes", [["blueprint_id", "p", true]], 1], ["updateBlueprintNote", "patch", "/v2/blueprint-manifest/blueprints/{blueprint_id}/notes/{note_id}", [["blueprint_id", "p", true], ["note_id", "p", true]], 1], ["deleteBlueprintNote", "delete", "/v2/blueprint-manifest/blueprints/{blueprint_id}/notes/{note_id}", [["blueprint_id", "p", true], ["note_id", "p", true]]], ["validateBlueprint", "post", "/v2/blueprint-manifest/blueprints/{blueprint_id}/validate", [["blueprint_id", "p", true]]], ["verifyBlueprint", "post", "/v2/blueprint-manifest/blueprints/{blueprint_id}:verify", [["blueprint_id", "p", true]], 1], ["detectPatchChanges", "post", "/v2/blueprint-manifest/blueprints/{blueprint_id}/patches:detect", [["blueprint_id", "p", true]], 1], ["createPatch", "post", "/v2/blueprint-manifest/blueprints/{blueprint_id}/patches", [["blueprint_id", "p", true]], 1], ["listPatches", "get", "/v2/blueprint-manifest/blueprints/{blueprint_id}/patches", [["blueprint_id", "p", true]]], ["getPatch", "get", "/v2/blueprint-manifest/blueprints/{blueprint_id}/patches/{patch_id}", [["blueprint_id", "p", true], ["patch_id", "p", true]]], ["applyPatch", "post", "/v2/blueprint-manifest/blueprints/{blueprint_id}/patches/{patch_id}:apply", [["blueprint_id", "p", true], ["patch_id", "p", true]], 1], ["retryPatchOrg", "post", "/v2/blueprint-manifest/blueprints/{blueprint_id}/patches/{patch_id}/orgs/{org_id}:retry", [["blueprint_id", "p", true], ["patch_id", "p", true], ["org_id", "p", true]], 1], ["exportBlueprint", "post", "/v2/blueprint-manifest/blueprints/{blueprint_id}:export", [["blueprint_id", "p", true]], 1], ["listMarketplaceSlugs", "get", "/v2/blueprint-manifest/marketplace/slugs"], ["publishBlueprint", "post", "/v2/blueprint-manifest/blueprints:publish", null, 1], ["formatBlueprintDescription", "post", "/v2/blueprint-manifest/blueprints/{blueprint_id}:format-description", [["blueprint_id", "p", true]], 1], ["suggestBlueprintResources", "post", "/v2/blueprint-manifest/blueprints:suggest-resources", null, 1], ["addBlueprintResource", "post", "/v2/blueprint-manifest/blueprints/{blueprint_id}/resources", [["blueprint_id", "p", true], ["add_dependencies", "q"]], 1], ["syncDependencies", "post", "/v2/blueprint-manifest/blueprints/{blueprint_id}/resources:syncDependencies", [["blueprint_id", "p", true], ["trigger", "q"]]], ["bulkAddBlueprintResources", "post", "/v2/blueprint-manifest/blueprints/{blueprint_id}/resources/bulk", [["blueprint_id", "p", true], ["add_dependencies", "q"]], 1], ["bulkUpdateBlueprintResources", "put", "/v2/blueprint-manifest/blueprints/{blueprint_id}/resources/bulk", [["blueprint_id", "p", true]], 1], ["bulkDeleteBlueprintResources", "delete", "/v2/blueprint-manifest/blueprints/{blueprint_id}/resources/bulk", [["blueprint_id", "p", true]], 1], ["updateBlueprintResource", "put", "/v2/blueprint-manifest/blueprints/{blueprint_id}/resources/{resource_id}", [["blueprint_id", "p", true], ["resource_id", "p", true]], 1], ["deleteBlueprintResource", "delete", "/v2/blueprint-manifest/blueprints/{blueprint_id}/resources/{resource_id}", [["blueprint_id", "p", true], ["resource_id", "p", true]]], ["listBlueprintJobs", "get", "/v2/blueprint-manifest/jobs"], ["getBlueprintJob", "get", "/v2/blueprint-manifest/jobs/{job_id}", [["job_id", "p", true]]], ["continueInstallationJob", "post", "/v2/blueprint-manifest/jobs/{job_id}:continue", [["job_id", "p", true]], 1], ["cancelBlueprintJob", "post", "/v2/blueprint-manifest/jobs/{job_id}:cancel", [["job_id", "p", true]]], ["createMarketplaceListing", "post", "/v1/blueprints/{blueprint_id}/marketplace-listing", [["blueprint_id", "p", true]], 1], ["getMarketplaceListing", "get", "/v1/blueprints/{blueprint_id}/marketplace-listing", [["blueprint_id", "p", true]]], ["listMarketplaceListings", "get", "/v1/marketplace-listings"], ["getMarketplaceListingById", "get", "/v1/marketplace-listings/{listing_id}", [["listing_id", "p", true]]], ["updateMarketplaceListing", "patch", "/v1/marketplace-listings/{listing_id}", [["listing_id", "p", true]], 1], ["deleteMarketplaceListing", "delete", "/v1/marketplace-listings/{listing_id}", [["listing_id", "p", true]]], ["createMarketplaceListingVersion", "post", "/v1/marketplace-listings/{listing_id}/versions", [["listing_id", "p", true]]], ["listMarketplaceListingVersions", "get", "/v1/marketplace-listings/{listing_id}/versions", [["listing_id", "p", true]]], ["updateMarketplaceListingVersion", "patch", "/v1/marketplace-listings/{listing_id}/versions/{version_id}", [["listing_id", "p", true], ["version_id", "p", true]], 1], ["publishMarketplaceListingVersion", "post", "/v1/marketplace-listings/{listing_id}/versions/{version_id}/publish", [["listing_id", "p", true], ["version_id", "p", true]], 1], ["publishBlueprintV3", "post", "/v3/blueprint-manifest/blueprints/{blueprint_id}:publish", [["blueprint_id", "p", true]], 1], ["preInstallBlueprintV3", "post", "/v3/blueprint-manifest/blueprints:pre-install", null, 1], ["installBlueprintV3", "post", "/v3/blueprint-manifest/blueprint:install", null, 1], ["restoreBlueprintDeploymentV3", "post", "/v3/blueprint-manifest/blueprints/{blueprint_id}/deployments/{job_id}:restore", [["blueprint_id", "p", true], ["job_id", "p", true]]], ["getRestorePreview", "get", "/v3/blueprint-manifest/blueprints/{blueprint_id}/deployments/{job_id}/restore-preview", [["blueprint_id", "p", true], ["job_id", "p", true]]], ["triggerDeploymentHealthCheckV3", "post", "/v3/blueprint-manifest/blueprints/{blueprint_id}/deployments/{job_id}:health-check", [["blueprint_id", "p", true], ["job_id", "p", true]], 1], ["getDeploymentHealthReportV3", "get", "/v3/blueprint-manifest/blueprints/{blueprint_id}/deployments/{job_id}/health-report", [["blueprint_id", "p", true], ["job_id", "p", true]]], ["getBlueprintLineageV3", "get", "/v3/blueprint-manifest/blueprints/{blueprint_id}/lineage", [["blueprint_id", "p", true]]], ["createBulkInstallV3", "post", "/v3/blueprint-manifest/bulk-installs", null, 1], ["getBulkInstallV3", "get", "/v3/blueprint-manifest/bulk-installs/{bulk_job_id}", [["bulk_job_id", "p", true]]], ["listBulkInstallTargetsV3", "get", "/v3/blueprint-manifest/bulk-installs/{bulk_job_id}/targets", [["bulk_job_id", "p", true], ["limit", "q"], ["cursor", "q"]]], ["retryBulkInstallTargetV3", "post", "/v3/blueprint-manifest/bulk-installs/{bulk_job_id}/targets/{destination_org_id}:retry", [["bulk_job_id", "p", true], ["destination_org_id", "p", true]], 1], ["listUniquenessCriteria", "get", "/v1/blueprint-manifest/uniqueness-criteria"], ["getUniquenessCriteria", "get", "/v1/blueprint-manifest/uniqueness-criteria/{resource_type}"], ["putUniquenessCriteria", "put", "/v1/blueprint-manifest/uniqueness-criteria/{resource_type}", null, 1], ["deleteUniquenessCriteria", "delete", "/v1/blueprint-manifest/uniqueness-criteria/{resource_type}"]], cp: { JobID: ["job_id", "p", true] }, pp: { "/v1/blueprint-manifest/uniqueness-criteria/{resource_type}": [["resource_type", "p", true]] } };
|
|
8
|
+
module.exports = { s: "https://blueprint-manifest.sls.epilot.io", o: [["getJob", "get", "/v1/blueprint-manifest/jobs/{job_id}", [["JobID"]]], ["createExport", "post", "/v1/blueprint-manifest/jobs:createExport", null, 1], ["exportManifest", "post", "/v1/blueprint-manifest/jobs/{job_id}:exportManifest", [["JobID"]], 1], ["uploadManifest", "post", "/v1/blueprint-manifest:uploadManifest", null, 1], ["createPlan", "post", "/v1/blueprint-manifest/jobs:createPlan", null, 1], ["applyPlan", "post", "/v1/blueprint-manifest/jobs/{job_id}:applyPlan", [["JobID"]], 1], ["listInstalledManifests", "get", "/v1/blueprint-manifest/manifests"], ["getManifest", "get", "/v1/blueprint-manifest/manifests/{manifest_id}", [["manifest_id", "p", true]]], ["updateManifest", "put", "/v1/blueprint-manifest/manifests/{manifest_id}", [["manifest_id", "p", true]], 1], ["deleteManifest", "delete", "/v1/blueprint-manifest/manifests/{manifest_id}", [["manifest_id", "p", true]]], ["listBlueprints", "get", "/v2/blueprint-manifest/blueprints", [["archived", "q"]]], ["createBlueprint", "post", "/v2/blueprint-manifest/blueprints", null, 1], ["listInstalledMarketplaceBlueprints", "get", "/v2/blueprint-manifest/blueprints:marketplace"], ["preInstallBlueprint", "post", "/v2/blueprint-manifest/blueprints:pre-install", null, 1], ["getBlueprintPreview", "get", "/v2/blueprint-manifest/blueprints:preview/{preview_id}", [["preview_id", "p", true]]], ["installBlueprint", "post", "/v2/blueprint-manifest/blueprint:install", null, 1], ["getBlueprint", "get", "/v2/blueprint-manifest/blueprints/{blueprint_id}", [["blueprint_id", "p", true]]], ["updateBlueprint", "put", "/v2/blueprint-manifest/blueprints/{blueprint_id}", [["blueprint_id", "p", true]], 1], ["deleteBlueprint", "delete", "/v2/blueprint-manifest/blueprints/{blueprint_id}", [["blueprint_id", "p", true]]], ["addBlueprintNote", "post", "/v2/blueprint-manifest/blueprints/{blueprint_id}/notes", [["blueprint_id", "p", true]], 1], ["updateBlueprintNote", "patch", "/v2/blueprint-manifest/blueprints/{blueprint_id}/notes/{note_id}", [["blueprint_id", "p", true], ["note_id", "p", true]], 1], ["deleteBlueprintNote", "delete", "/v2/blueprint-manifest/blueprints/{blueprint_id}/notes/{note_id}", [["blueprint_id", "p", true], ["note_id", "p", true]]], ["validateBlueprint", "post", "/v2/blueprint-manifest/blueprints/{blueprint_id}/validate", [["blueprint_id", "p", true]]], ["verifyBlueprint", "post", "/v2/blueprint-manifest/blueprints/{blueprint_id}:verify", [["blueprint_id", "p", true]], 1], ["detectPatchChanges", "post", "/v2/blueprint-manifest/blueprints/{blueprint_id}/patches:detect", [["blueprint_id", "p", true]], 1], ["createPatch", "post", "/v2/blueprint-manifest/blueprints/{blueprint_id}/patches", [["blueprint_id", "p", true]], 1], ["listPatches", "get", "/v2/blueprint-manifest/blueprints/{blueprint_id}/patches", [["blueprint_id", "p", true]]], ["getPatch", "get", "/v2/blueprint-manifest/blueprints/{blueprint_id}/patches/{patch_id}", [["blueprint_id", "p", true], ["patch_id", "p", true]]], ["applyPatch", "post", "/v2/blueprint-manifest/blueprints/{blueprint_id}/patches/{patch_id}:apply", [["blueprint_id", "p", true], ["patch_id", "p", true]], 1], ["retryPatchOrg", "post", "/v2/blueprint-manifest/blueprints/{blueprint_id}/patches/{patch_id}/orgs/{org_id}:retry", [["blueprint_id", "p", true], ["patch_id", "p", true], ["org_id", "p", true]], 1], ["exportBlueprint", "post", "/v2/blueprint-manifest/blueprints/{blueprint_id}:export", [["blueprint_id", "p", true]], 1], ["listMarketplaceSlugs", "get", "/v2/blueprint-manifest/marketplace/slugs"], ["publishBlueprint", "post", "/v2/blueprint-manifest/blueprints:publish", null, 1], ["formatBlueprintDescription", "post", "/v2/blueprint-manifest/blueprints/{blueprint_id}:format-description", [["blueprint_id", "p", true]], 1], ["suggestBlueprintResources", "post", "/v2/blueprint-manifest/blueprints:suggest-resources", null, 1], ["addBlueprintResource", "post", "/v2/blueprint-manifest/blueprints/{blueprint_id}/resources", [["blueprint_id", "p", true], ["add_dependencies", "q"]], 1], ["syncDependencies", "post", "/v2/blueprint-manifest/blueprints/{blueprint_id}/resources:syncDependencies", [["blueprint_id", "p", true], ["trigger", "q"]]], ["bulkAddBlueprintResources", "post", "/v2/blueprint-manifest/blueprints/{blueprint_id}/resources/bulk", [["blueprint_id", "p", true], ["add_dependencies", "q"]], 1], ["bulkUpdateBlueprintResources", "put", "/v2/blueprint-manifest/blueprints/{blueprint_id}/resources/bulk", [["blueprint_id", "p", true]], 1], ["bulkDeleteBlueprintResources", "delete", "/v2/blueprint-manifest/blueprints/{blueprint_id}/resources/bulk", [["blueprint_id", "p", true]], 1], ["updateBlueprintResource", "put", "/v2/blueprint-manifest/blueprints/{blueprint_id}/resources/{resource_id}", [["blueprint_id", "p", true], ["resource_id", "p", true]], 1], ["deleteBlueprintResource", "delete", "/v2/blueprint-manifest/blueprints/{blueprint_id}/resources/{resource_id}", [["blueprint_id", "p", true], ["resource_id", "p", true]]], ["listBlueprintJobs", "get", "/v2/blueprint-manifest/jobs"], ["getBlueprintJob", "get", "/v2/blueprint-manifest/jobs/{job_id}", [["job_id", "p", true]]], ["continueInstallationJob", "post", "/v2/blueprint-manifest/jobs/{job_id}:continue", [["job_id", "p", true]], 1], ["retryInstallationJob", "post", "/v2/blueprint-manifest/jobs/{job_id}:retry", [["job_id", "p", true]]], ["cancelBlueprintJob", "post", "/v2/blueprint-manifest/jobs/{job_id}:cancel", [["job_id", "p", true]]], ["createMarketplaceListing", "post", "/v1/blueprints/{blueprint_id}/marketplace-listing", [["blueprint_id", "p", true]], 1], ["getMarketplaceListing", "get", "/v1/blueprints/{blueprint_id}/marketplace-listing", [["blueprint_id", "p", true]]], ["listMarketplaceListings", "get", "/v1/marketplace-listings"], ["getMarketplaceListingById", "get", "/v1/marketplace-listings/{listing_id}", [["listing_id", "p", true]]], ["updateMarketplaceListing", "patch", "/v1/marketplace-listings/{listing_id}", [["listing_id", "p", true]], 1], ["deleteMarketplaceListing", "delete", "/v1/marketplace-listings/{listing_id}", [["listing_id", "p", true]]], ["createMarketplaceListingVersion", "post", "/v1/marketplace-listings/{listing_id}/versions", [["listing_id", "p", true]]], ["listMarketplaceListingVersions", "get", "/v1/marketplace-listings/{listing_id}/versions", [["listing_id", "p", true]]], ["updateMarketplaceListingVersion", "patch", "/v1/marketplace-listings/{listing_id}/versions/{version_id}", [["listing_id", "p", true], ["version_id", "p", true]], 1], ["publishMarketplaceListingVersion", "post", "/v1/marketplace-listings/{listing_id}/versions/{version_id}/publish", [["listing_id", "p", true], ["version_id", "p", true]], 1], ["publishBlueprintV3", "post", "/v3/blueprint-manifest/blueprints/{blueprint_id}:publish", [["blueprint_id", "p", true]], 1], ["preInstallBlueprintV3", "post", "/v3/blueprint-manifest/blueprints:pre-install", null, 1], ["installBlueprintV3", "post", "/v3/blueprint-manifest/blueprint:install", null, 1], ["restoreBlueprintDeploymentV3", "post", "/v3/blueprint-manifest/blueprints/{blueprint_id}/deployments/{job_id}:restore", [["blueprint_id", "p", true], ["job_id", "p", true]]], ["getRestorePreview", "get", "/v3/blueprint-manifest/blueprints/{blueprint_id}/deployments/{job_id}/restore-preview", [["blueprint_id", "p", true], ["job_id", "p", true]]], ["triggerDeploymentHealthCheckV3", "post", "/v3/blueprint-manifest/blueprints/{blueprint_id}/deployments/{job_id}:health-check", [["blueprint_id", "p", true], ["job_id", "p", true]], 1], ["getDeploymentHealthReportV3", "get", "/v3/blueprint-manifest/blueprints/{blueprint_id}/deployments/{job_id}/health-report", [["blueprint_id", "p", true], ["job_id", "p", true]]], ["getBlueprintLineageV3", "get", "/v3/blueprint-manifest/blueprints/{blueprint_id}/lineage", [["blueprint_id", "p", true]]], ["createBulkInstallV3", "post", "/v3/blueprint-manifest/bulk-installs", null, 1], ["getBulkInstallV3", "get", "/v3/blueprint-manifest/bulk-installs/{bulk_job_id}", [["bulk_job_id", "p", true]]], ["listBulkInstallTargetsV3", "get", "/v3/blueprint-manifest/bulk-installs/{bulk_job_id}/targets", [["bulk_job_id", "p", true], ["limit", "q"], ["cursor", "q"]]], ["retryBulkInstallTargetV3", "post", "/v3/blueprint-manifest/bulk-installs/{bulk_job_id}/targets/{destination_org_id}:retry", [["bulk_job_id", "p", true], ["destination_org_id", "p", true]], 1], ["listUniquenessCriteria", "get", "/v1/blueprint-manifest/uniqueness-criteria"], ["getUniquenessCriteria", "get", "/v1/blueprint-manifest/uniqueness-criteria/{resource_type}"], ["putUniquenessCriteria", "put", "/v1/blueprint-manifest/uniqueness-criteria/{resource_type}", null, 1], ["deleteUniquenessCriteria", "delete", "/v1/blueprint-manifest/uniqueness-criteria/{resource_type}"]], cp: { JobID: ["job_id", "p", true] }, pp: { "/v1/blueprint-manifest/uniqueness-criteria/{resource_type}": [["resource_type", "p", true]] } };
|
|
9
9
|
}
|
|
10
10
|
});
|
|
11
11
|
|
|
@@ -37,7 +37,7 @@ var globImport_docs = __glob({
|
|
|
37
37
|
"./docs/audit-logs.json": () => import("./audit-logs-5VXHOQ7S.js"),
|
|
38
38
|
"./docs/automation.json": () => import("./automation-GIJB3MOI.js"),
|
|
39
39
|
"./docs/billing.json": () => import("./billing-UJ6I7FPG.js"),
|
|
40
|
-
"./docs/blueprint-manifest.json": () => import("./blueprint-manifest-
|
|
40
|
+
"./docs/blueprint-manifest.json": () => import("./blueprint-manifest-YU2UZLHV.js"),
|
|
41
41
|
"./docs/calendar.json": () => import("./calendar-2H4RGMV3.js"),
|
|
42
42
|
"./docs/configuration-hub.json": () => import("./configuration-hub-ZYOLN7ZX.js"),
|
|
43
43
|
"./docs/consent.json": () => import("./consent-NNYHF2N4.js"),
|
|
@@ -49,9 +49,9 @@ var globImport_docs = __glob({
|
|
|
49
49
|
"./docs/document.json": () => import("./document-CY2A2OE7.js"),
|
|
50
50
|
"./docs/email-settings.json": () => import("./email-settings-U753HXGA.js"),
|
|
51
51
|
"./docs/email-template.json": () => import("./email-template-WYROV3UG.js"),
|
|
52
|
-
"./docs/entity-mapping.json": () => import("./entity-mapping-
|
|
52
|
+
"./docs/entity-mapping.json": () => import("./entity-mapping-D67LJE74.js"),
|
|
53
53
|
"./docs/entity.json": () => import("./entity-MFDARYZT.js"),
|
|
54
|
-
"./docs/environments.json": () => import("./environments-
|
|
54
|
+
"./docs/environments.json": () => import("./environments-PGRMZY5G.js"),
|
|
55
55
|
"./docs/erp-integration.json": () => import("./erp-integration-SBQJ6HEG.js"),
|
|
56
56
|
"./docs/event-catalog.json": () => import("./event-catalog-RS4LJMY2.js"),
|
|
57
57
|
"./docs/file.json": () => import("./file-ZUNCUDBY.js"),
|
|
@@ -116,7 +116,7 @@ var globImport_definitions_json = __glob({
|
|
|
116
116
|
"./definitions/automation.json": () => import("./automation-WEVRW77F.js"),
|
|
117
117
|
"./definitions/billing-runtime.json": () => import("./billing-runtime-OSGDEA63.js"),
|
|
118
118
|
"./definitions/billing.json": () => import("./billing-ASWY7HC3.js"),
|
|
119
|
-
"./definitions/blueprint-manifest-runtime.json": () => import("./blueprint-manifest-runtime-
|
|
119
|
+
"./definitions/blueprint-manifest-runtime.json": () => import("./blueprint-manifest-runtime-EQX7FPFC.js"),
|
|
120
120
|
"./definitions/blueprint-manifest.json": () => import("./blueprint-manifest-UGGYWGRZ.js"),
|
|
121
121
|
"./definitions/calendar-runtime.json": () => import("./calendar-runtime-KZPDEYT7.js"),
|
|
122
122
|
"./definitions/configuration-hub-runtime.json": () => import("./configuration-hub-runtime-EG2OIBXX.js"),
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import "./chunk-YPSWSI3M.js";
|
|
2
|
+
|
|
3
|
+
// src/docs/entity-mapping.json
|
|
4
|
+
var entity_mapping_default = '# Entity Mapping API\n\n- **Base URL:** `https://entity-mapping.sls.epilot.io`\n- **Full API Docs:** [https://docs.epilot.io/api/entity-mapping](https://docs.epilot.io/api/entity-mapping)\n\n## Usage\n\n```ts\nimport { epilot } from \'@epilot/sdk\'\n\nepilot.authorize(() => \'<token>\')\nconst { data } = await epilot.entityMapping.storeConfig(...)\n```\n\n### Tree-shakeable import\n\n```ts\nimport { getClient, authorize } from \'@epilot/sdk/entity-mapping\'\n\nconst entityMappingClient = getClient()\nauthorize(entityMappingClient, () => \'<token>\')\nconst { data } = await entityMappingClient.storeConfig(...)\n```\n\n## Operations\n\n**mappings**\n- [`storeConfig`](#storeconfig)\n- [`getConfig`](#getconfig)\n- [`deleteConfig`](#deleteconfig)\n- [`getAllVersions`](#getallversions)\n- [`storeNewVersion`](#storenewversion)\n- [`getConfigVersion`](#getconfigversion)\n- [`executeMapping`](#executemapping)\n- [`searchConfigs`](#searchconfigs)\n- [`queryMappingHistory`](#querymappinghistory)\n- [`executeRelations`](#executerelations)\n- [`getMappingConfig`](#getmappingconfig)\n- [`putMappingConfig`](#putmappingconfig)\n\n**Schemas**\n- [`SearchMappingReq`](#searchmappingreq)\n- [`MappingConfigsResp`](#mappingconfigsresp)\n- [`MappingConfigs`](#mappingconfigs)\n- [`MappingConfig`](#mappingconfig)\n- [`MappingConfigV2`](#mappingconfigv2)\n- [`MappingConfigCommonFields`](#mappingconfigcommonfields)\n- [`Owner`](#owner)\n- [`ExecuteRelationsReq`](#executerelationsreq)\n- [`ExecuteRelationsResp`](#executerelationsresp)\n- [`NewRelationItem`](#newrelationitem)\n- [`RelationItem`](#relationitem)\n- [`ExecuteMappingReq`](#executemappingreq)\n- [`ExecuteMappingResp`](#executemappingresp)\n- [`MappingFailure`](#mappingfailure)\n- [`MappingWarning`](#mappingwarning)\n- [`Entity`](#entity)\n- [`EntityRef`](#entityref)\n- [`SourceConfig`](#sourceconfig)\n- [`JourneyRef`](#journeyref)\n- [`Loop_Index_String`](#loop_index_string)\n- [`TargetConfig`](#targetconfig)\n- [`MapCondition`](#mapcondition)\n- [`ConditionNode`](#conditionnode)\n- [`RelationAttribute`](#relationattribute)\n- [`GraphContextEntry`](#graphcontextentry)\n- [`GraphSeed`](#graphseed)\n- [`GraphDefinition`](#graphdefinition)\n- [`GraphNode`](#graphnode)\n- [`GraphNodeFilter`](#graphnodefilter)\n- [`GraphEdge`](#graphedge)\n- [`MappingAttributeV2`](#mappingattributev2)\n- [`AttributeOrigin`](#attributeorigin)\n- [`OperationNode`](#operationnode)\n- [`OperationObjectNode`](#operationobjectnode)\n- [`PrimitiveJSONValue`](#primitivejsonvalue)\n- [`RandomOperation`](#randomoperation)\n- [`MappingAttribute`](#mappingattribute)\n- [`MappingAttributeMode`](#mappingattributemode)\n- [`SetValueMapper`](#setvaluemapper)\n- [`CopyValueMapper`](#copyvaluemapper)\n- [`AppendValueMapper`](#appendvaluemapper)\n- [`MappingHistoryResp`](#mappinghistoryresp)\n- [`MappingHistoryEntry`](#mappinghistoryentry)\n- [`MappingSource`](#mappingsource)\n- [`MappingSourceProperty`](#mappingsourceproperty)\n- [`MappingSourceTargetType`](#mappingsourcetargettype)\n\n### `storeConfig`\n\nStore new MappingConfig\n\n`POST /v1/mappings`\n\n```ts\nconst { data } = await client.storeConfig(\n {\n with_id: \'example\',\n },\n {\n id: \'string\',\n source: {\n type: \'journey\',\n config: {\n journey_id: \'string\'\n }\n },\n targets: [\n {\n id: \'string\',\n name: \'string\',\n allow_failure: true,\n target_schema: \'string\',\n target_unique: [\'string\'],\n use_uniqueness_criteria: false,\n loop_config: { /* ... */ },\n conditionMode: \'oneOf\',\n conditions: [ /* ... */ ],\n mapping_attributes: [ /* ... */ ],\n relation_attributes: [ /* ... */ ],\n linkback_relation_attribute: \'mapped_entities\',\n linkback_relation_tags: [\'string\'],\n graph_context: [ /* ... */ ]\n }\n ],\n created_at: \'1970-01-01T00:00:00.000Z\',\n updated_at: \'1970-01-01T00:00:00.000Z\',\n created_by: {\n type: \'user\',\n org_id: \'string\',\n user_id: \'string\'\n },\n last_updated_by: {\n type: \'user\',\n org_id: \'string\',\n user_id: \'string\'\n },\n org_id: \'66\',\n version: 2\n },\n)\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "id": "string",\n "source": {\n "type": "journey",\n "config": {\n "journey_id": "string"\n }\n },\n "targets": [\n {\n "id": "string",\n "name": "string",\n "allow_failure": true,\n "target_schema": "string",\n "target_unique": ["string"],\n "use_uniqueness_criteria": false,\n "loop_config": {},\n "conditionMode": "oneOf",\n "conditions": [],\n "mapping_attributes": [],\n "relation_attributes": [],\n "linkback_relation_attribute": "mapped_entities",\n "linkback_relation_tags": ["string"],\n "graph_context": []\n }\n ],\n "created_at": "1970-01-01T00:00:00.000Z",\n "updated_at": "1970-01-01T00:00:00.000Z",\n "created_by": {\n "type": "user",\n "org_id": "string",\n "user_id": "string"\n },\n "last_updated_by": {\n "type": "user",\n "org_id": "string",\n "user_id": "string"\n },\n "org_id": "66",\n "version": 2\n}\n```\n\n</details>\n\n---\n\n### `getConfig`\n\nGet latest version of a mapping config by id\n\n`GET /v1/mappings/{id}`\n\n```ts\nconst { data } = await client.getConfig({\n id: \'123e4567-e89b-12d3-a456-426614174000\',\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "id": "string",\n "source": {\n "type": "journey",\n "config": {\n "journey_id": "string"\n }\n },\n "targets": [\n {\n "id": "string",\n "name": "string",\n "allow_failure": true,\n "target_schema": "string",\n "target_unique": ["string"],\n "use_uniqueness_criteria": false,\n "loop_config": {},\n "conditionMode": "oneOf",\n "conditions": [],\n "mapping_attributes": [],\n "relation_attributes": [],\n "linkback_relation_attribute": "mapped_entities",\n "linkback_relation_tags": ["string"],\n "graph_context": []\n }\n ],\n "created_at": "1970-01-01T00:00:00.000Z",\n "updated_at": "1970-01-01T00:00:00.000Z",\n "created_by": {\n "type": "user",\n "org_id": "string",\n "user_id": "string"\n },\n "last_updated_by": {\n "type": "user",\n "org_id": "string",\n "user_id": "string"\n },\n "org_id": "66",\n "version": 2\n}\n```\n\n</details>\n\n---\n\n### `deleteConfig`\n\nDelete entity mapping config\n\n`DELETE /v1/mappings/{id}`\n\n```ts\nconst { data } = await client.deleteConfig({\n id: \'123e4567-e89b-12d3-a456-426614174000\',\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "id": "string",\n "source": {\n "type": "journey",\n "config": {\n "journey_id": "string"\n }\n },\n "targets": [\n {\n "id": "string",\n "name": "string",\n "allow_failure": true,\n "target_schema": "string",\n "target_unique": ["string"],\n "use_uniqueness_criteria": false,\n "loop_config": {},\n "conditionMode": "oneOf",\n "conditions": [],\n "mapping_attributes": [],\n "relation_attributes": [],\n "linkback_relation_attribute": "mapped_entities",\n "linkback_relation_tags": ["string"],\n "graph_context": []\n }\n ],\n "created_at": "1970-01-01T00:00:00.000Z",\n "updated_at": "1970-01-01T00:00:00.000Z",\n "created_by": {\n "type": "user",\n "org_id": "string",\n "user_id": "string"\n },\n "last_updated_by": {\n "type": "user",\n "org_id": "string",\n "user_id": "string"\n },\n "org_id": "66",\n "version": 2\n}\n```\n\n</details>\n\n---\n\n### `getAllVersions`\n\nGet all version of MappingConfig\n\n`GET /v1/mappings/{id}/versions`\n\n```ts\nconst { data } = await client.getAllVersions({\n id: \'123e4567-e89b-12d3-a456-426614174000\',\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "configs": [\n {\n "id": "string",\n "source": {},\n "targets": [],\n "created_at": "1970-01-01T00:00:00.000Z",\n "updated_at": "1970-01-01T00:00:00.000Z",\n "created_by": {},\n "last_updated_by": {},\n "org_id": "66",\n "version": 2\n }\n ]\n}\n```\n\n</details>\n\n---\n\n### `storeNewVersion`\n\nStore new version of MappingConfig\n\n`POST /v1/mappings/{id}/versions`\n\n```ts\nconst { data } = await client.storeNewVersion(\n {\n id: \'123e4567-e89b-12d3-a456-426614174000\',\n },\n {\n id: \'string\',\n source: {\n type: \'journey\',\n config: {\n journey_id: \'string\'\n }\n },\n targets: [\n {\n id: \'string\',\n name: \'string\',\n allow_failure: true,\n target_schema: \'string\',\n target_unique: [\'string\'],\n use_uniqueness_criteria: false,\n loop_config: { /* ... */ },\n conditionMode: \'oneOf\',\n conditions: [ /* ... */ ],\n mapping_attributes: [ /* ... */ ],\n relation_attributes: [ /* ... */ ],\n linkback_relation_attribute: \'mapped_entities\',\n linkback_relation_tags: [\'string\'],\n graph_context: [ /* ... */ ]\n }\n ],\n created_at: \'1970-01-01T00:00:00.000Z\',\n updated_at: \'1970-01-01T00:00:00.000Z\',\n created_by: {\n type: \'user\',\n org_id: \'string\',\n user_id: \'string\'\n },\n last_updated_by: {\n type: \'user\',\n org_id: \'string\',\n user_id: \'string\'\n },\n org_id: \'66\',\n version: 2\n },\n)\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "id": "string",\n "source": {\n "type": "journey",\n "config": {\n "journey_id": "string"\n }\n },\n "targets": [\n {\n "id": "string",\n "name": "string",\n "allow_failure": true,\n "target_schema": "string",\n "target_unique": ["string"],\n "use_uniqueness_criteria": false,\n "loop_config": {},\n "conditionMode": "oneOf",\n "conditions": [],\n "mapping_attributes": [],\n "relation_attributes": [],\n "linkback_relation_attribute": "mapped_entities",\n "linkback_relation_tags": ["string"],\n "graph_context": []\n }\n ],\n "created_at": "1970-01-01T00:00:00.000Z",\n "updated_at": "1970-01-01T00:00:00.000Z",\n "created_by": {\n "type": "user",\n "org_id": "string",\n "user_id": "string"\n },\n "last_updated_by": {\n "type": "user",\n "org_id": "string",\n "user_id": "string"\n },\n "org_id": "66",\n "version": 2\n}\n```\n\n</details>\n\n---\n\n### `getConfigVersion`\n\nGet specific version of a mapping config by id & version\n\n`GET /v1/mappings/{id}/versions/{version}`\n\n```ts\nconst { data } = await client.getConfigVersion({\n id: \'123e4567-e89b-12d3-a456-426614174000\',\n version: 1,\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "id": "string",\n "source": {\n "type": "journey",\n "config": {\n "journey_id": "string"\n }\n },\n "targets": [\n {\n "id": "string",\n "name": "string",\n "allow_failure": true,\n "target_schema": "string",\n "target_unique": ["string"],\n "use_uniqueness_criteria": false,\n "loop_config": {},\n "conditionMode": "oneOf",\n "conditions": [],\n "mapping_attributes": [],\n "relation_attributes": [],\n "linkback_relation_attribute": "mapped_entities",\n "linkback_relation_tags": ["string"],\n "graph_context": []\n }\n ],\n "created_at": "1970-01-01T00:00:00.000Z",\n "updated_at": "1970-01-01T00:00:00.000Z",\n "created_by": {\n "type": "user",\n "org_id": "string",\n "user_id": "string"\n },\n "last_updated_by": {\n "type": "user",\n "org_id": "string",\n "user_id": "string"\n },\n "org_id": "66",\n "version": 2\n}\n```\n\n</details>\n\n---\n\n### `executeMapping`\n\nExecute entity mapping based on a config\n\n`POST /v1/mappings:execute`\n\n```ts\nconst { data } = await client.executeMapping(\n {\n preview_mode: true,\n },\n {\n source_ref: {\n entity_id: \'string\',\n entity_schema: \'submission\'\n },\n loop_ref: {\n entity_id: \'string\',\n entity_schema: \'submission\'\n },\n targets: [\n {\n id: \'string\',\n name: \'string\',\n allow_failure: true,\n target_schema: \'string\',\n target_unique: [\'string\'],\n use_uniqueness_criteria: false,\n loop_config: { /* ... */ },\n conditionMode: \'oneOf\',\n conditions: [ /* ... */ ],\n mapping_attributes: [ /* ... */ ],\n relation_attributes: [ /* ... */ ],\n linkback_relation_attribute: \'mapped_entities\',\n linkback_relation_tags: [\'string\'],\n graph_context: [ /* ... */ ]\n }\n ]\n },\n)\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "mapped_entities": [\n {\n "_id": "string",\n "_schema": "string",\n "_title": "string",\n "_org": "string",\n "_tags": ["string"],\n "_created_at": "string",\n "_updated_at": "string",\n "required": {}\n }\n ],\n "failures": [\n {\n "target": {},\n "error": {}\n }\n ],\n "warnings": [\n {\n "explanation": "string",\n "context": "string",\n "id": "string"\n }\n ]\n}\n```\n\n</details>\n\n---\n\n### `searchConfigs`\n\nSearch mapping configs\n\n`POST /v1/mappings:search`\n\n```ts\nconst { data } = await client.searchConfigs(\n null,\n {\n source: {\n type: \'journey\',\n config: {\n journey_id: \'string\'\n }\n }\n },\n)\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "id": "string",\n "source": {\n "type": "journey",\n "config": {\n "journey_id": "string"\n }\n },\n "targets": [\n {\n "id": "string",\n "name": "string",\n "allow_failure": true,\n "target_schema": "string",\n "target_unique": ["string"],\n "use_uniqueness_criteria": false,\n "loop_config": {},\n "conditionMode": "oneOf",\n "conditions": [],\n "mapping_attributes": [],\n "relation_attributes": [],\n "linkback_relation_attribute": "mapped_entities",\n "linkback_relation_tags": ["string"],\n "graph_context": []\n }\n ],\n "created_at": "1970-01-01T00:00:00.000Z",\n "updated_at": "1970-01-01T00:00:00.000Z",\n "created_by": {\n "type": "user",\n "org_id": "string",\n "user_id": "string"\n },\n "last_updated_by": {\n "type": "user",\n "org_id": "string",\n "user_id": "string"\n },\n "org_id": "66",\n "version": 2\n}\n```\n\n</details>\n\n---\n\n### `queryMappingHistory`\n\nGet the Mapping History\n\n`GET /v1/mappings/history`\n\n```ts\nconst { data } = await client.queryMappingHistory({\n from: \'example\',\n to: \'example\',\n targetEntityId: \'example\',\n sourceEntityId: \'example\',\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{}\n```\n\n</details>\n\n---\n\n### `executeRelations`\n\nExecute relation mapping between source entity and target entities\n\n`POST /v1/relations:execute`\n\n```ts\nconst { data } = await client.executeRelations(\n null,\n {\n source_ref: {\n entity_id: \'string\',\n entity_schema: \'submission\'\n },\n target: {\n main_entity_ref: {\n entity_id: \'string\',\n entity_schema: \'submission\'\n },\n relation_attributes: [\n {\n target: \'string\',\n target_tags: [\'string\'],\n target_tags_include_source: false,\n target_entity_tags: [\'string\'],\n override_with_source_filter: false,\n source_filter: {\n limit: 0,\n schema: \'string\',\n attribute: \'string\',\n relation_tag: \'string\',\n tag: \'string\',\n self: false\n },\n related_to: {},\n mode: \'append\',\n origin: \'system_recommendation\'\n }\n ],\n linkback: {\n attribute: \'mapped_entities\',\n relation_tags: [\'string\']\n }\n },\n additional_relations: [\n {\n entity_id: \'string\',\n attribute: \'string\'\n }\n ]\n },\n)\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "relations": [\n {\n "source_entity_id": "string",\n "target_entity_id": "string",\n "relation_attr": "string",\n "tags": ["string"]\n }\n ]\n}\n```\n\n</details>\n\n---\n\n### `getMappingConfig`\n\nGet latest version of a mapping config by id V2\n\n`GET /v2/mappings/{id}`\n\n```ts\nconst { data } = await client.getMappingConfig({\n id: \'123e4567-e89b-12d3-a456-426614174000\',\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "id": "string",\n "source": {\n "type": "journey",\n "config": {\n "journey_id": "string"\n }\n },\n "targets": [\n {\n "id": "string",\n "name": "string",\n "allow_failure": true,\n "target_schema": "string",\n "target_unique": ["string"],\n "use_uniqueness_criteria": false,\n "loop_config": {},\n "conditionMode": "oneOf",\n "conditions": [],\n "mapping_attributes": [],\n "relation_attributes": [],\n "linkback_relation_attribute": "mapped_entities",\n "linkback_relation_tags": ["string"],\n "graph_context": []\n }\n ],\n "created_at": "1970-01-01T00:00:00.000Z",\n "updated_at": "1970-01-01T00:00:00.000Z",\n "created_by": {\n "type": "user",\n "org_id": "string",\n "user_id": "string"\n },\n "last_updated_by": {\n "type": "user",\n "org_id": "string",\n "user_id": "string"\n },\n "org_id": "66",\n "version": 2\n}\n```\n\n</details>\n\n---\n\n### `putMappingConfig`\n\nStores new version of entity mapping config\n\n`PUT /v2/mappings/{id}`\n\n```ts\nconst { data } = await client.putMappingConfig(\n {\n id: \'123e4567-e89b-12d3-a456-426614174000\',\n },\n {\n id: \'string\',\n source: {\n type: \'journey\',\n config: {\n journey_id: \'string\'\n }\n },\n targets: [\n {\n id: \'string\',\n name: \'string\',\n allow_failure: true,\n target_schema: \'string\',\n target_unique: [\'string\'],\n use_uniqueness_criteria: false,\n loop_config: { /* ... */ },\n conditionMode: \'oneOf\',\n conditions: [ /* ... */ ],\n mapping_attributes: [ /* ... */ ],\n relation_attributes: [ /* ... */ ],\n linkback_relation_attribute: \'mapped_entities\',\n linkback_relation_tags: [\'string\'],\n graph_context: [ /* ... */ ]\n }\n ],\n created_at: \'1970-01-01T00:00:00.000Z\',\n updated_at: \'1970-01-01T00:00:00.000Z\',\n created_by: {\n type: \'user\',\n org_id: \'string\',\n user_id: \'string\'\n },\n last_updated_by: {\n type: \'user\',\n org_id: \'string\',\n user_id: \'string\'\n },\n org_id: \'66\',\n version: 2\n },\n)\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "id": "string",\n "source": {\n "type": "journey",\n "config": {\n "journey_id": "string"\n }\n },\n "targets": [\n {\n "id": "string",\n "name": "string",\n "allow_failure": true,\n "target_schema": "string",\n "target_unique": ["string"],\n "use_uniqueness_criteria": false,\n "loop_config": {},\n "conditionMode": "oneOf",\n "conditions": [],\n "mapping_attributes": [],\n "relation_attributes": [],\n "linkback_relation_attribute": "mapped_entities",\n "linkback_relation_tags": ["string"],\n "graph_context": []\n }\n ],\n "created_at": "1970-01-01T00:00:00.000Z",\n "updated_at": "1970-01-01T00:00:00.000Z",\n "created_by": {\n "type": "user",\n "org_id": "string",\n "user_id": "string"\n },\n "last_updated_by": {\n "type": "user",\n "org_id": "string",\n "user_id": "string"\n },\n "org_id": "66",\n "version": 2\n}\n```\n\n</details>\n\n---\n\n## Schemas\n\n### `SearchMappingReq`\n\n```ts\ntype SearchMappingReq = {\n source?: {\n type?: "journey" | "entity"\n config?: {\n journey_id?: { ... }\n } | {\n entity_id: { ... }\n entity_schema?: { ... }\n }\n }\n}\n```\n\n### `MappingConfigsResp`\n\n```ts\ntype MappingConfigsResp = {\n configs: Array<{\n id: string\n source: {\n type?: { ... }\n config?: { ... }\n }\n targets: Array<{\n id?: { ... }\n name?: { ... }\n allow_failure?: { ... }\n target_schema: { ... }\n target_unique?: { ... }\n use_uniqueness_criteria?: { ... }\n loop_config?: { ... }\n conditionMode?: { ... }\n conditions?: { ... }\n mapping_attributes: { ... }\n relation_attributes?: { ... }\n linkback_relation_attribute?: { ... }\n linkback_relation_tags?: { ... }\n graph_context?: { ... }\n }>\n created_at?: string // date-time\n updated_at?: string // date-time\n created_by?: {\n type: { ... }\n org_id?: { ... }\n user_id?: { ... }\n }\n last_updated_by?: {\n type: { ... }\n org_id?: { ... }\n user_id?: { ... }\n }\n org_id?: string\n version?: number\n }>\n}\n```\n\n### `MappingConfigs`\n\n```ts\ntype MappingConfigs = Array<{\n id: string\n source: {\n type?: "journey" | "entity"\n config?: {\n journey_id?: { ... }\n } | {\n entity_id: { ... }\n entity_schema?: { ... }\n }\n }\n targets: Array<{\n id?: string\n name?: string\n allow_failure?: boolean\n target_schema: string\n target_unique?: string[]\n use_uniqueness_criteria?: boolean\n loop_config?: {\n source_path?: { ... }\n length?: { ... }\n }\n conditionMode?: "oneOf" | "anyOf" | "allOf"\n conditions?: Array<{\n _exists?: { ... }\n _equals?: { ... }\n _not_exists?: { ... }\n _any_of?: { ... }\n }>\n mapping_attributes: Array<{\n target: { ... }\n operation: { ... }\n origin?: { ... }\n } | {\n mode: { ... }\n target: { ... }\n value: { ... }\n } | {\n mode: { ... }\n target: { ... }\n source: { ... }\n } | {\n mode: { ... }\n target: { ... }\n source?: { ... }\n value_json: { ... }\n target_unique?: { ... }\n }>\n relation_attributes?: Array<{\n target: { ... }\n target_tags?: { ... }\n target_tags_include_source?: { ... }\n target_entity_tags?: { ... }\n override_with_source_filter?: { ... }\n source_filter?: { ... }\n related_to?: { ... }\n mode: { ... }\n origin?: { ... }\n }>\n linkback_relation_attribute?: string\n linkback_relation_tags?: string[]\n graph_context?: Array<{\n seed: { ... }\n graph: { ... }\n }>\n }>\n created_at?: string // date-time\n updated_at?: string // date-time\n created_by?: {\n type: "user" | "internal_service"\n org_id?: string\n user_id?: string\n }\n last_updated_by?: {\n type: "user" | "internal_service"\n org_id?: string\n user_id?: string\n }\n org_id?: string\n version?: number\n}>\n```\n\n### `MappingConfig`\n\n```ts\ntype MappingConfig = {\n id: string\n source: {\n type?: "journey" | "entity"\n config?: {\n journey_id?: { ... }\n } | {\n entity_id: { ... }\n entity_schema?: { ... }\n }\n }\n targets: Array<{\n id?: string\n name?: string\n allow_failure?: boolean\n target_schema: string\n target_unique?: string[]\n use_uniqueness_criteria?: boolean\n loop_config?: {\n source_path?: { ... }\n length?: { ... }\n }\n conditionMode?: "oneOf" | "anyOf" | "allOf"\n conditions?: Array<{\n _exists?: { ... }\n _equals?: { ... }\n _not_exists?: { ... }\n _any_of?: { ... }\n }>\n mapping_attributes: Array<{\n target: { ... }\n operation: { ... }\n origin?: { ... }\n } | {\n mode: { ... }\n target: { ... }\n value: { ... }\n } | {\n mode: { ... }\n target: { ... }\n source: { ... }\n } | {\n mode: { ... }\n target: { ... }\n source?: { ... }\n value_json: { ... }\n target_unique?: { ... }\n }>\n relation_attributes?: Array<{\n target: { ... }\n target_tags?: { ... }\n target_tags_include_source?: { ... }\n target_entity_tags?: { ... }\n override_with_source_filter?: { ... }\n source_filter?: { ... }\n related_to?: { ... }\n mode: { ... }\n origin?: { ... }\n }>\n linkback_relation_attribute?: string\n linkback_relation_tags?: string[]\n graph_context?: Array<{\n seed: { ... }\n graph: { ... }\n }>\n }>\n created_at?: string // date-time\n updated_at?: string // date-time\n created_by?: {\n type: "user" | "internal_service"\n org_id?: string\n user_id?: string\n }\n last_updated_by?: {\n type: "user" | "internal_service"\n org_id?: string\n user_id?: string\n }\n org_id?: string\n version?: number\n}\n```\n\n### `MappingConfigV2`\n\n```ts\ntype MappingConfigV2 = {\n id: string\n source: {\n type?: "journey" | "entity"\n config?: {\n journey_id?: { ... }\n } | {\n entity_id: { ... }\n entity_schema?: { ... }\n }\n }\n targets: Array<{\n id?: string\n name?: string\n allow_failure?: boolean\n target_schema: string\n target_unique?: string[]\n use_uniqueness_criteria?: boolean\n loop_config?: {\n source_path?: { ... }\n length?: { ... }\n }\n conditionMode?: "oneOf" | "anyOf" | "allOf"\n conditions?: Array<{\n _exists?: { ... }\n _equals?: { ... }\n _not_exists?: { ... }\n _any_of?: { ... }\n }>\n mapping_attributes: Array<{\n target: { ... }\n operation: { ... }\n origin?: { ... }\n } | {\n mode: { ... }\n target: { ... }\n value: { ... }\n } | {\n mode: { ... }\n target: { ... }\n source: { ... }\n } | {\n mode: { ... }\n target: { ... }\n source?: { ... }\n value_json: { ... }\n target_unique?: { ... }\n }>\n relation_attributes?: Array<{\n target: { ... }\n target_tags?: { ... }\n target_tags_include_source?: { ... }\n target_entity_tags?: { ... }\n override_with_source_filter?: { ... }\n source_filter?: { ... }\n related_to?: { ... }\n mode: { ... }\n origin?: { ... }\n }>\n linkback_relation_attribute?: string\n linkback_relation_tags?: string[]\n graph_context?: Array<{\n seed: { ... }\n graph: { ... }\n }>\n }>\n created_at?: string // date-time\n updated_at?: string // date-time\n created_by?: {\n type: "user" | "internal_service"\n org_id?: string\n user_id?: string\n }\n last_updated_by?: {\n type: "user" | "internal_service"\n org_id?: string\n user_id?: string\n }\n org_id?: string\n version?: number\n}\n```\n\n### `MappingConfigCommonFields`\n\n```ts\ntype MappingConfigCommonFields = {\n id: string\n source: {\n type?: "journey" | "entity"\n config?: {\n journey_id?: { ... }\n } | {\n entity_id: { ... }\n entity_schema?: { ... }\n }\n }\n targets: Array<{\n id?: string\n name?: string\n allow_failure?: boolean\n target_schema: string\n target_unique?: string[]\n use_uniqueness_criteria?: boolean\n loop_config?: {\n source_path?: { ... }\n length?: { ... }\n }\n conditionMode?: "oneOf" | "anyOf" | "allOf"\n conditions?: Array<{\n _exists?: { ... }\n _equals?: { ... }\n _not_exists?: { ... }\n _any_of?: { ... }\n }>\n mapping_attributes: Array<{\n target: { ... }\n operation: { ... }\n origin?: { ... }\n } | {\n mode: { ... }\n target: { ... }\n value: { ... }\n } | {\n mode: { ... }\n target: { ... }\n source: { ... }\n } | {\n mode: { ... }\n target: { ... }\n source?: { ... }\n value_json: { ... }\n target_unique?: { ... }\n }>\n relation_attributes?: Array<{\n target: { ... }\n target_tags?: { ... }\n target_tags_include_source?: { ... }\n target_entity_tags?: { ... }\n override_with_source_filter?: { ... }\n source_filter?: { ... }\n related_to?: { ... }\n mode: { ... }\n origin?: { ... }\n }>\n linkback_relation_attribute?: string\n linkback_relation_tags?: string[]\n graph_context?: Array<{\n seed: { ... }\n graph: { ... }\n }>\n }>\n created_at?: string // date-time\n updated_at?: string // date-time\n created_by?: {\n type: "user" | "internal_service"\n org_id?: string\n user_id?: string\n }\n last_updated_by?: {\n type: "user" | "internal_service"\n org_id?: string\n user_id?: string\n }\n}\n```\n\n### `Owner`\n\n```ts\ntype Owner = {\n type: "user" | "internal_service"\n org_id?: string\n user_id?: string\n}\n```\n\n### `ExecuteRelationsReq`\n\nBuild relations between a source entity and one or more target entities, dynamically identified\n\n```ts\ntype ExecuteRelationsReq = {\n source_ref: {\n entity_id: string\n entity_schema?: string\n }\n target?: {\n main_entity_ref: {\n entity_id: { ... }\n entity_schema?: { ... }\n }\n relation_attributes: Array<{\n target: { ... }\n target_tags?: { ... }\n target_tags_include_source?: { ... }\n target_entity_tags?: { ... }\n override_with_source_filter?: { ... }\n source_filter?: { ... }\n related_to?: { ... }\n mode: { ... }\n origin?: { ... }\n }>\n linkback?: {\n attribute: { ... }\n relation_tags: { ... }\n }\n }\n additional_relations?: Array<{\n entity_id: string\n attribute: string\n }>\n}\n```\n\n### `ExecuteRelationsResp`\n\n```ts\ntype ExecuteRelationsResp = {\n relations?: Array<{\n source_entity_id: string\n target_entity_id: string\n relation_attr: string\n tags?: string[]\n }>\n}\n```\n\n### `NewRelationItem`\n\n```ts\ntype NewRelationItem = {\n source_entity_id: string\n target_entity_id: string\n relation_attr: string\n tags?: string[]\n}\n```\n\n### `RelationItem`\n\n```ts\ntype RelationItem = {\n entity_id: string\n attribute: string\n}\n```\n\n### `ExecuteMappingReq`\n\nPass either source or source_entity\n\n```ts\ntype ExecuteMappingReq = {\n source_ref: {\n entity_id: string\n entity_schema?: string\n }\n loop_ref?: {\n entity_id: string\n entity_schema?: string\n }\n targets: Array<{\n id?: string\n name?: string\n allow_failure?: boolean\n target_schema: string\n target_unique?: string[]\n use_uniqueness_criteria?: boolean\n loop_config?: {\n source_path?: { ... }\n length?: { ... }\n }\n conditionMode?: "oneOf" | "anyOf" | "allOf"\n conditions?: Array<{\n _exists?: { ... }\n _equals?: { ... }\n _not_exists?: { ... }\n _any_of?: { ... }\n }>\n mapping_attributes: Array<{\n target: { ... }\n operation: { ... }\n origin?: { ... }\n } | {\n mode: { ... }\n target: { ... }\n value: { ... }\n } | {\n mode: { ... }\n target: { ... }\n source: { ... }\n } | {\n mode: { ... }\n target: { ... }\n source?: { ... }\n value_json: { ... }\n target_unique?: { ... }\n }>\n relation_attributes?: Array<{\n target: { ... }\n target_tags?: { ... }\n target_tags_include_source?: { ... }\n target_entity_tags?: { ... }\n override_with_source_filter?: { ... }\n source_filter?: { ... }\n related_to?: { ... }\n mode: { ... }\n origin?: { ... }\n }>\n linkback_relation_attribute?: string\n linkback_relation_tags?: string[]\n graph_context?: Array<{\n seed: { ... }\n graph: { ... }\n }>\n }>\n}\n```\n\n### `ExecuteMappingResp`\n\n```ts\ntype ExecuteMappingResp = {\n mapped_entities: Array<{\n _id?: string\n _schema?: string\n _title?: string\n _org?: string\n _tags?: string[]\n _created_at?: string\n _updated_at?: string\n required?: unknown\n }>\n failures?: Array<{\n target?: {\n id?: { ... }\n name?: { ... }\n allow_failure?: { ... }\n target_schema: { ... }\n target_unique?: { ... }\n use_uniqueness_criteria?: { ... }\n loop_config?: { ... }\n conditionMode?: { ... }\n conditions?: { ... }\n mapping_attributes: { ... }\n relation_attributes?: { ... }\n linkback_relation_attribute?: { ... }\n linkback_relation_tags?: { ... }\n graph_context?: { ... }\n }\n error?: {\n isSilent?: { ... }\n message?: { ... }\n }\n }>\n warnings?: Array<{\n explanation: string\n context?: string\n id?: string\n }>\n}\n```\n\n### `MappingFailure`\n\n```ts\ntype MappingFailure = {\n target?: {\n id?: string\n name?: string\n allow_failure?: boolean\n target_schema: string\n target_unique?: string[]\n use_uniqueness_criteria?: boolean\n loop_config?: {\n source_path?: { ... }\n length?: { ... }\n }\n conditionMode?: "oneOf" | "anyOf" | "allOf"\n conditions?: Array<{\n _exists?: { ... }\n _equals?: { ... }\n _not_exists?: { ... }\n _any_of?: { ... }\n }>\n mapping_attributes: Array<{\n target: { ... }\n operation: { ... }\n origin?: { ... }\n } | {\n mode: { ... }\n target: { ... }\n value: { ... }\n } | {\n mode: { ... }\n target: { ... }\n source: { ... }\n } | {\n mode: { ... }\n target: { ... }\n source?: { ... }\n value_json: { ... }\n target_unique?: { ... }\n }>\n relation_attributes?: Array<{\n target: { ... }\n target_tags?: { ... }\n target_tags_include_source?: { ... }\n target_entity_tags?: { ... }\n override_with_source_filter?: { ... }\n source_filter?: { ... }\n related_to?: { ... }\n mode: { ... }\n origin?: { ... }\n }>\n linkback_relation_attribute?: string\n linkback_relation_tags?: string[]\n graph_context?: Array<{\n seed: { ... }\n graph: { ... }\n }>\n }\n error?: {\n isSilent?: boolean\n message?: string\n }\n}\n```\n\n### `MappingWarning`\n\n```ts\ntype MappingWarning = {\n explanation: string\n context?: string\n id?: string\n}\n```\n\n### `Entity`\n\n```ts\ntype Entity = {\n _id?: string\n _schema?: string\n _title?: string\n _org?: string\n _tags?: string[]\n _created_at?: string\n _updated_at?: string\n required?: unknown\n}\n```\n\n### `EntityRef`\n\n```ts\ntype EntityRef = {\n entity_id: string\n entity_schema?: string\n}\n```\n\n### `SourceConfig`\n\n```ts\ntype SourceConfig = {\n type?: "journey" | "entity"\n config?: {\n journey_id?: string\n } | {\n entity_id: string\n entity_schema?: string\n }\n}\n```\n\n### `JourneyRef`\n\n```ts\ntype JourneyRef = {\n journey_id?: string\n}\n```\n\n### `Loop_Index_String`\n\nThis string value will be replaced with the value of the loop index, when mapping in loop mode\n\n```ts\ntype Loop_Index_String = "##LOOP_INDEX##"\n```\n\n### `TargetConfig`\n\n```ts\ntype TargetConfig = {\n id?: string\n name?: string\n allow_failure?: boolean\n target_schema: string\n target_unique?: string[]\n use_uniqueness_criteria?: boolean\n loop_config?: {\n source_path?: string\n length?: number\n }\n conditionMode?: "oneOf" | "anyOf" | "allOf"\n conditions?: Array<{\n _exists?: {\n source?: { ... }\n value?: { ... }\n }\n _equals?: {\n source?: { ... }\n value?: { ... }\n }\n _not_exists?: {\n source?: { ... }\n value?: { ... }\n }\n _any_of?: {\n source?: { ... }\n value?: { ... }\n }\n }>\n mapping_attributes: Array<{\n target: string\n operation: {\n _set?: { ... }\n _append?: { ... }\n _prepend?: { ... }\n _uniq?: { ... }\n _retain_old_values?: { ... }\n _copy?: { ... }\n _template?: { ... }\n _random?: { ... }\n _each?: { ... }\n _as?: { ... }\n _map?: { ... }\n } | string | boolean | number | Record<string, unknown> | unknown[]\n origin?: "system_recommendation" | "user_manually" | "entity_updating_system_recommendation"\n } | {\n mode: "copy_if_exists" | "append_if_exists" | "set_value"\n target: string\n value: unknown\n } | {\n mode: "copy_if_exists" | "append_if_exists" | "set_value"\n target: string\n source: string\n } | {\n mode: "copy_if_exists" | "append_if_exists" | "set_value"\n target: string\n source?: string\n value_json: string\n target_unique?: string[]\n }>\n relation_attributes?: Array<{\n target: string\n target_tags?: string[]\n target_tags_include_source?: boolean\n target_entity_tags?: string[]\n override_with_source_filter?: boolean\n source_filter?: {\n limit?: { ... }\n schema?: { ... }\n attribute?: { ... }\n relation_tag?: { ... }\n tag?: { ... }\n self?: { ... }\n }\n related_to?: Record<string, unknown>\n mode: "append" | "prepend" | "set"\n origin?: "system_recommendation" | "user_manually" | "entity_updating_system_recommendation"\n }>\n linkback_relation_attribute?: string\n linkback_relation_tags?: string[]\n graph_context?: Array<{\n seed: {\n entity_id: { ... }\n node_id: { ... }\n }\n graph: {\n nodes: { ... }\n edges: { ... }\n }\n }>\n}\n```\n\n### `MapCondition`\n\n```ts\ntype MapCondition = {\n _exists?: {\n source?: string\n value?: string | number | object | object[]\n }\n _equals?: {\n source?: string\n value?: string | number | object | object[]\n }\n _not_exists?: {\n source?: string\n value?: string | number | object | object[]\n }\n _any_of?: {\n source?: string\n value?: string | number | object | object[]\n }\n}\n```\n\n### `ConditionNode`\n\n```ts\ntype ConditionNode = {\n source?: string\n value?: string | number | object | object[]\n}\n```\n\n### `RelationAttribute`\n\n```ts\ntype RelationAttribute = {\n target: string\n target_tags?: string[]\n target_tags_include_source?: boolean\n target_entity_tags?: string[]\n override_with_source_filter?: boolean\n source_filter?: {\n limit?: number\n schema?: string\n attribute?: string\n relation_tag?: string\n tag?: string\n self?: boolean\n }\n related_to?: Record<string, unknown>\n mode: "append" | "prepend" | "set"\n origin?: "system_recommendation" | "user_manually" | "entity_updating_system_recommendation"\n}\n```\n\n### `GraphContextEntry`\n\nOne multi-hop graph lookup against entity-api\'s `POST /v1/entity:graph`, resolved during\ngraph_context enrichment (before mapping_attributes are evaluated). Every node in `graph.nodes`\nis merged into sourceContext under its own `id`, so listing several nodes here costs one\nentity-api call, not one p\n\n```ts\ntype GraphContextEntry = {\n seed: {\n entity_id: string\n node_id: string\n }\n graph: {\n nodes: Array<{\n id: { ... }\n schema: { ... }\n cardinality?: { ... }\n fields?: { ... }\n filter?: { ... }\n }>\n edges: Array<{\n from: { ... }\n to: { ... }\n }>\n }\n}\n```\n\n### `GraphSeed`\n\nMirrors entity-api\'s GraphSeed (see entity-api openapi.yml) - the entity the graph traversal starts from.\n\n```ts\ntype GraphSeed = {\n entity_id: string\n node_id: string\n}\n```\n\n### `GraphDefinition`\n\nMirrors entity-api\'s GraphDefinition (see entity-api openapi.yml) - the shape of the graph to traverse.\n\n```ts\ntype GraphDefinition = {\n nodes: Array<{\n id: string\n schema: string\n cardinality?: "one" | "many"\n fields?: string[]\n filter?: Array<{\n attribute: { ... }\n value: { ... }\n }>\n }>\n edges: Array<{\n from: string\n to: string\n }>\n}\n```\n\n### `GraphNode`\n\nMirrors entity-api\'s GraphNode (see entity-api openapi.yml).\n\n```ts\ntype GraphNode = {\n id: string\n schema: string\n cardinality?: "one" | "many"\n fields?: string[]\n filter?: Array<{\n attribute: string\n value: string | number | boolean\n }>\n}\n```\n\n### `GraphNodeFilter`\n\nMirrors entity-api\'s GraphNodeFilter (see entity-api openapi.yml).\n\n```ts\ntype GraphNodeFilter = {\n attribute: string\n value: string | number | boolean\n}\n```\n\n### `GraphEdge`\n\nMirrors entity-api\'s GraphEdge (see entity-api openapi.yml).\n\n```ts\ntype GraphEdge = {\n from: string\n to: string\n}\n```\n\n### `MappingAttributeV2`\n\n```ts\ntype MappingAttributeV2 = {\n target: string\n operation: {\n _set?: string | boolean | number | Record<string, unknown> | unknown[]\n _append?: unknown\n _prepend?: unknown\n _uniq?: boolean | string[]\n _retain_old_values?: boolean\n _copy?: string\n _template?: string\n _random?: {\n type: { ... }\n } | {\n type: { ... }\n min?: { ... }\n max?: { ... }\n }\n _each?: string\n _as?: string\n _map?: {\n _set?: { ... }\n _append?: { ... }\n _prepend?: { ... }\n _uniq?: { ... }\n _retain_old_values?: { ... }\n _copy?: { ... }\n _template?: { ... }\n _random?: { ... }\n _each?: { ... }\n _as?: { ... }\n _map?: { ... }\n } | string | boolean | number | Record<string, unknown> | unknown[]\n } | string | boolean | number | Record<string, unknown> | unknown[]\n origin?: "system_recommendation" | "user_manually" | "entity_updating_system_recommendation"\n}\n```\n\n### `AttributeOrigin`\n\nOrigin of an attribute.\n\n```ts\ntype AttributeOrigin = "system_recommendation" | "user_manually" | "entity_updating_system_recommendation"\n```\n\n### `OperationNode`\n\nMapping operation nodes are either primitive values or operation node objects\n\n```ts\ntype OperationNode = {\n _set?: string | boolean | number | Record<string, unknown> | unknown[]\n _append?: unknown\n _prepend?: unknown\n _uniq?: boolean | string[]\n _retain_old_values?: boolean\n _copy?: string\n _template?: string\n _random?: {\n type: "uuid" | "nanoid"\n } | {\n type: "number"\n min?: number\n max?: number\n }\n _each?: string\n _as?: string\n _map?: {\n _set?: string | boolean | number | Record<string, unknown> | unknown[]\n _append?: unknown\n _prepend?: unknown\n _uniq?: boolean | string[]\n _retain_old_values?: boolean\n _copy?: string\n _template?: string\n _random?: {\n type: { ... }\n } | {\n type: { ... }\n min?: { ... }\n max?: { ... }\n }\n _each?: string\n _as?: string\n _map?: {\n _set?: { ... }\n _append?: { ... }\n _prepend?: { ... }\n _uniq?: { ... }\n _retain_old_values?: { ... }\n _copy?: { ... }\n _template?: { ... }\n _random?: { ... }\n _each?: { ... }\n _as?: { ... }\n _map?: { ... }\n } | string | boolean | number | Record<string, unknown> | unknown[]\n } | string | boolean | number | Record<string, unknown> | unknown[]\n} | string | boolean | number | Record<string, unknown> | unknown[]\n```\n\n### `OperationObjectNode`\n\n```ts\ntype OperationObjectNode = {\n _set?: string | boolean | number | Record<string, unknown> | unknown[]\n _append?: unknown\n _prepend?: unknown\n _uniq?: boolean | string[]\n _retain_old_values?: boolean\n _copy?: string\n _template?: string\n _random?: {\n type: "uuid" | "nanoid"\n } | {\n type: "number"\n min?: number\n max?: number\n }\n _each?: string\n _as?: string\n _map?: {\n _set?: string | boolean | number | Record<string, unknown> | unknown[]\n _append?: unknown\n _prepend?: unknown\n _uniq?: boolean | string[]\n _retain_old_values?: boolean\n _copy?: string\n _template?: string\n _random?: {\n type: { ... }\n } | {\n type: { ... }\n min?: { ... }\n max?: { ... }\n }\n _each?: string\n _as?: string\n _map?: {\n _set?: { ... }\n _append?: { ... }\n _prepend?: { ... }\n _uniq?: { ... }\n _retain_old_values?: { ... }\n _copy?: { ... }\n _template?: { ... }\n _random?: { ... }\n _each?: { ... }\n _as?: { ... }\n _map?: { ... }\n } | string | boolean | number | Record<string, unknown> | unknown[]\n } | string | boolean | number | Record<string, unknown> | unknown[]\n}\n```\n\n### `PrimitiveJSONValue`\n\nRepresents any primitive JSON value\n\n```ts\ntype PrimitiveJSONValue = string | boolean | number | Record<string, unknown> | unknown[]\n```\n\n### `RandomOperation`\n\n```ts\ntype RandomOperation = {\n type: "uuid" | "nanoid"\n} | {\n type: "number"\n min?: number\n max?: number\n}\n```\n\n### `MappingAttribute`\n\n```ts\ntype MappingAttribute = {\n mode: "copy_if_exists" | "append_if_exists" | "set_value"\n target: string\n value: unknown\n} | {\n mode: "copy_if_exists" | "append_if_exists" | "set_value"\n target: string\n source: string\n} | {\n mode: "copy_if_exists" | "append_if_exists" | "set_value"\n target: string\n source?: string\n value_json: string\n target_unique?: string[]\n}\n```\n\n### `MappingAttributeMode`\n\n- copy_if_exists - it replaces the target attribute with the source value - append_if_exists - it currently replaces target attribute with array like values. Useful when you have multiple values to be added into one attribute. - set_value - it sets a value to a predefined value. Must be used togethe\n\n```ts\ntype MappingAttributeMode = "copy_if_exists" | "append_if_exists" | "set_value"\n```\n\n### `SetValueMapper`\n\n```ts\ntype SetValueMapper = {\n mode: "copy_if_exists" | "append_if_exists" | "set_value"\n target: string\n value: unknown\n}\n```\n\n### `CopyValueMapper`\n\n```ts\ntype CopyValueMapper = {\n mode: "copy_if_exists" | "append_if_exists" | "set_value"\n target: string\n source: string\n}\n```\n\n### `AppendValueMapper`\n\n```ts\ntype AppendValueMapper = {\n mode: "copy_if_exists" | "append_if_exists" | "set_value"\n target: string\n source?: string\n value_json: string\n target_unique?: string[]\n}\n```\n\n### `MappingHistoryResp`\n\n```ts\ntype MappingHistoryResp = {\n results: Array<{\n id: string\n timestamp: string // ISO datetime\n source_entity_snapshot: {\n _id?: { ... }\n _schema?: { ... }\n _title?: { ... }\n _org?: { ... }\n _tags?: { ... }\n _created_at?: { ... }\n _updated_at?: { ... }\n required?: { ... }\n }\n mapped_entities_snapshot: Array<{\n _id?: { ... }\n _schema?: { ... }\n _title?: { ... }\n _org?: { ... }\n _tags?: { ... }\n _created_at?: { ... }\n _updated_at?: { ... }\n required?: { ... }\n }>\n target_configs_snapshot: Array<{\n id?: { ... }\n name?: { ... }\n allow_failure?: { ... }\n target_schema: { ... }\n target_unique?: { ... }\n use_uniqueness_criteria?: { ... }\n loop_config?: { ... }\n conditionMode?: { ... }\n conditions?: { ... }\n mapping_attributes: { ... }\n relation_attributes?: { ... }\n linkback_relation_attribute?: { ... }\n linkback_relation_tags?: { ... }\n graph_context?: { ... }\n }>\n }>\n}\n```\n\n### `MappingHistoryEntry`\n\n```ts\ntype MappingHistoryEntry = {\n id: string\n timestamp: string // ISO datetime\n source_entity_snapshot: {\n _id?: string\n _schema?: string\n _title?: string\n _org?: string\n _tags?: string[]\n _created_at?: string\n _updated_at?: string\n required?: unknown\n }\n mapped_entities_snapshot: Array<{\n _id?: string\n _schema?: string\n _title?: string\n _org?: string\n _tags?: string[]\n _created_at?: string\n _updated_at?: string\n required?: unknown\n }>\n target_configs_snapshot: Array<{\n id?: string\n name?: string\n allow_failure?: boolean\n target_schema: string\n target_unique?: string[]\n use_uniqueness_criteria?: boolean\n loop_config?: {\n source_path?: { ... }\n length?: { ... }\n }\n conditionMode?: "oneOf" | "anyOf" | "allOf"\n conditions?: Array<{\n _exists?: { ... }\n _equals?: { ... }\n _not_exists?: { ... }\n _any_of?: { ... }\n }>\n mapping_attributes: Array<{\n target: { ... }\n operation: { ... }\n origin?: { ... }\n } | {\n mode: { ... }\n target: { ... }\n value: { ... }\n } | {\n mode: { ... }\n target: { ... }\n source: { ... }\n } | {\n mode: { ... }\n target: { ... }\n source?: { ... }\n value_json: { ... }\n target_unique?: { ... }\n }>\n relation_attributes?: Array<{\n target: { ... }\n target_tags?: { ... }\n target_tags_include_source?: { ... }\n target_entity_tags?: { ... }\n override_with_source_filter?: { ... }\n source_filter?: { ... }\n related_to?: { ... }\n mode: { ... }\n origin?: { ... }\n }>\n linkback_relation_attribute?: string\n linkback_relation_tags?: string[]\n graph_context?: Array<{\n seed: { ... }\n graph: { ... }\n }>\n }>\n}\n```\n\n### `MappingSource`\n\n```ts\ntype MappingSource = {\n key: string\n sub_properties?: Array<{\n value: string\n label: string\n initial_target_value?: string\n possible_target_types?: "string" | "date" | "datetime" | "boolean" | "number" | "image" | "file" | "address" | "email" | "phone" | "select" | "multiselect" | "payment" | "link" | "currency" | "sequence" | "relation" | "array"[]\n raw?: boolean\n }>\n source_type: string\n group?: string\n possible_target_types?: "string" | "date" | "datetime" | "boolean" | "number" | "image" | "file" | "address" | "email" | "phone" | "select" | "multiselect" | "payment" | "link" | "currency" | "sequence" | "relation" | "array"[]\n initial_relation?: {\n target: string\n target_tags?: string[]\n target_tags_include_source?: boolean\n target_entity_tags?: string[]\n override_with_source_filter?: boolean\n source_filter?: {\n limit?: { ... }\n schema?: { ... }\n attribute?: { ... }\n relation_tag?: { ... }\n tag?: { ... }\n self?: { ... }\n }\n related_to?: Record<string, unknown>\n mode: "append" | "prepend" | "set"\n origin?: "system_recommendation" | "user_manually" | "entity_updating_system_recommendation"\n }\n title: string\n sub_title?: string\n repeatable?: boolean\n target_settings?: {\n allowed_ui_actions?: "schema-select" | "attribute-select" | "target-delete" | "target-add" | "target"[]\n locked?: "each" | "first" | "system_recommendation"\n isSingleTarget?: boolean\n visibility?: {\n mode: { ... }\n if: { ... }\n message?: { ... }\n }\n }\n}\n```\n\n### `MappingSourceProperty`\n\n```ts\ntype MappingSourceProperty = {\n value: string\n label: string\n initial_target_value?: string\n possible_target_types?: "string" | "date" | "datetime" | "boolean" | "number" | "image" | "file" | "address" | "email" | "phone" | "select" | "multiselect" | "payment" | "link" | "currency" | "sequence" | "relation" | "array"[]\n raw?: boolean\n}\n```\n\n### `MappingSourceTargetType`\n\n```ts\ntype MappingSourceTargetType = "string" | "date" | "datetime" | "boolean" | "number" | "image" | "file" | "address" | "email" | "phone" | "select" | "multiselect" | "payment" | "link" | "currency" | "sequence" | "relation" | "array"\n```\n';
|
|
5
|
+
export {
|
|
6
|
+
entity_mapping_default as default
|
|
7
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('./chunk-NJK5F5TF.cjs');
|
|
2
|
+
|
|
3
|
+
// src/docs/entity-mapping.json
|
|
4
|
+
var entity_mapping_default = '# Entity Mapping API\n\n- **Base URL:** `https://entity-mapping.sls.epilot.io`\n- **Full API Docs:** [https://docs.epilot.io/api/entity-mapping](https://docs.epilot.io/api/entity-mapping)\n\n## Usage\n\n```ts\nimport { epilot } from \'@epilot/sdk\'\n\nepilot.authorize(() => \'<token>\')\nconst { data } = await epilot.entityMapping.storeConfig(...)\n```\n\n### Tree-shakeable import\n\n```ts\nimport { getClient, authorize } from \'@epilot/sdk/entity-mapping\'\n\nconst entityMappingClient = getClient()\nauthorize(entityMappingClient, () => \'<token>\')\nconst { data } = await entityMappingClient.storeConfig(...)\n```\n\n## Operations\n\n**mappings**\n- [`storeConfig`](#storeconfig)\n- [`getConfig`](#getconfig)\n- [`deleteConfig`](#deleteconfig)\n- [`getAllVersions`](#getallversions)\n- [`storeNewVersion`](#storenewversion)\n- [`getConfigVersion`](#getconfigversion)\n- [`executeMapping`](#executemapping)\n- [`searchConfigs`](#searchconfigs)\n- [`queryMappingHistory`](#querymappinghistory)\n- [`executeRelations`](#executerelations)\n- [`getMappingConfig`](#getmappingconfig)\n- [`putMappingConfig`](#putmappingconfig)\n\n**Schemas**\n- [`SearchMappingReq`](#searchmappingreq)\n- [`MappingConfigsResp`](#mappingconfigsresp)\n- [`MappingConfigs`](#mappingconfigs)\n- [`MappingConfig`](#mappingconfig)\n- [`MappingConfigV2`](#mappingconfigv2)\n- [`MappingConfigCommonFields`](#mappingconfigcommonfields)\n- [`Owner`](#owner)\n- [`ExecuteRelationsReq`](#executerelationsreq)\n- [`ExecuteRelationsResp`](#executerelationsresp)\n- [`NewRelationItem`](#newrelationitem)\n- [`RelationItem`](#relationitem)\n- [`ExecuteMappingReq`](#executemappingreq)\n- [`ExecuteMappingResp`](#executemappingresp)\n- [`MappingFailure`](#mappingfailure)\n- [`MappingWarning`](#mappingwarning)\n- [`Entity`](#entity)\n- [`EntityRef`](#entityref)\n- [`SourceConfig`](#sourceconfig)\n- [`JourneyRef`](#journeyref)\n- [`Loop_Index_String`](#loop_index_string)\n- [`TargetConfig`](#targetconfig)\n- [`MapCondition`](#mapcondition)\n- [`ConditionNode`](#conditionnode)\n- [`RelationAttribute`](#relationattribute)\n- [`GraphContextEntry`](#graphcontextentry)\n- [`GraphSeed`](#graphseed)\n- [`GraphDefinition`](#graphdefinition)\n- [`GraphNode`](#graphnode)\n- [`GraphNodeFilter`](#graphnodefilter)\n- [`GraphEdge`](#graphedge)\n- [`MappingAttributeV2`](#mappingattributev2)\n- [`AttributeOrigin`](#attributeorigin)\n- [`OperationNode`](#operationnode)\n- [`OperationObjectNode`](#operationobjectnode)\n- [`PrimitiveJSONValue`](#primitivejsonvalue)\n- [`RandomOperation`](#randomoperation)\n- [`MappingAttribute`](#mappingattribute)\n- [`MappingAttributeMode`](#mappingattributemode)\n- [`SetValueMapper`](#setvaluemapper)\n- [`CopyValueMapper`](#copyvaluemapper)\n- [`AppendValueMapper`](#appendvaluemapper)\n- [`MappingHistoryResp`](#mappinghistoryresp)\n- [`MappingHistoryEntry`](#mappinghistoryentry)\n- [`MappingSource`](#mappingsource)\n- [`MappingSourceProperty`](#mappingsourceproperty)\n- [`MappingSourceTargetType`](#mappingsourcetargettype)\n\n### `storeConfig`\n\nStore new MappingConfig\n\n`POST /v1/mappings`\n\n```ts\nconst { data } = await client.storeConfig(\n {\n with_id: \'example\',\n },\n {\n id: \'string\',\n source: {\n type: \'journey\',\n config: {\n journey_id: \'string\'\n }\n },\n targets: [\n {\n id: \'string\',\n name: \'string\',\n allow_failure: true,\n target_schema: \'string\',\n target_unique: [\'string\'],\n use_uniqueness_criteria: false,\n loop_config: { /* ... */ },\n conditionMode: \'oneOf\',\n conditions: [ /* ... */ ],\n mapping_attributes: [ /* ... */ ],\n relation_attributes: [ /* ... */ ],\n linkback_relation_attribute: \'mapped_entities\',\n linkback_relation_tags: [\'string\'],\n graph_context: [ /* ... */ ]\n }\n ],\n created_at: \'1970-01-01T00:00:00.000Z\',\n updated_at: \'1970-01-01T00:00:00.000Z\',\n created_by: {\n type: \'user\',\n org_id: \'string\',\n user_id: \'string\'\n },\n last_updated_by: {\n type: \'user\',\n org_id: \'string\',\n user_id: \'string\'\n },\n org_id: \'66\',\n version: 2\n },\n)\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "id": "string",\n "source": {\n "type": "journey",\n "config": {\n "journey_id": "string"\n }\n },\n "targets": [\n {\n "id": "string",\n "name": "string",\n "allow_failure": true,\n "target_schema": "string",\n "target_unique": ["string"],\n "use_uniqueness_criteria": false,\n "loop_config": {},\n "conditionMode": "oneOf",\n "conditions": [],\n "mapping_attributes": [],\n "relation_attributes": [],\n "linkback_relation_attribute": "mapped_entities",\n "linkback_relation_tags": ["string"],\n "graph_context": []\n }\n ],\n "created_at": "1970-01-01T00:00:00.000Z",\n "updated_at": "1970-01-01T00:00:00.000Z",\n "created_by": {\n "type": "user",\n "org_id": "string",\n "user_id": "string"\n },\n "last_updated_by": {\n "type": "user",\n "org_id": "string",\n "user_id": "string"\n },\n "org_id": "66",\n "version": 2\n}\n```\n\n</details>\n\n---\n\n### `getConfig`\n\nGet latest version of a mapping config by id\n\n`GET /v1/mappings/{id}`\n\n```ts\nconst { data } = await client.getConfig({\n id: \'123e4567-e89b-12d3-a456-426614174000\',\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "id": "string",\n "source": {\n "type": "journey",\n "config": {\n "journey_id": "string"\n }\n },\n "targets": [\n {\n "id": "string",\n "name": "string",\n "allow_failure": true,\n "target_schema": "string",\n "target_unique": ["string"],\n "use_uniqueness_criteria": false,\n "loop_config": {},\n "conditionMode": "oneOf",\n "conditions": [],\n "mapping_attributes": [],\n "relation_attributes": [],\n "linkback_relation_attribute": "mapped_entities",\n "linkback_relation_tags": ["string"],\n "graph_context": []\n }\n ],\n "created_at": "1970-01-01T00:00:00.000Z",\n "updated_at": "1970-01-01T00:00:00.000Z",\n "created_by": {\n "type": "user",\n "org_id": "string",\n "user_id": "string"\n },\n "last_updated_by": {\n "type": "user",\n "org_id": "string",\n "user_id": "string"\n },\n "org_id": "66",\n "version": 2\n}\n```\n\n</details>\n\n---\n\n### `deleteConfig`\n\nDelete entity mapping config\n\n`DELETE /v1/mappings/{id}`\n\n```ts\nconst { data } = await client.deleteConfig({\n id: \'123e4567-e89b-12d3-a456-426614174000\',\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "id": "string",\n "source": {\n "type": "journey",\n "config": {\n "journey_id": "string"\n }\n },\n "targets": [\n {\n "id": "string",\n "name": "string",\n "allow_failure": true,\n "target_schema": "string",\n "target_unique": ["string"],\n "use_uniqueness_criteria": false,\n "loop_config": {},\n "conditionMode": "oneOf",\n "conditions": [],\n "mapping_attributes": [],\n "relation_attributes": [],\n "linkback_relation_attribute": "mapped_entities",\n "linkback_relation_tags": ["string"],\n "graph_context": []\n }\n ],\n "created_at": "1970-01-01T00:00:00.000Z",\n "updated_at": "1970-01-01T00:00:00.000Z",\n "created_by": {\n "type": "user",\n "org_id": "string",\n "user_id": "string"\n },\n "last_updated_by": {\n "type": "user",\n "org_id": "string",\n "user_id": "string"\n },\n "org_id": "66",\n "version": 2\n}\n```\n\n</details>\n\n---\n\n### `getAllVersions`\n\nGet all version of MappingConfig\n\n`GET /v1/mappings/{id}/versions`\n\n```ts\nconst { data } = await client.getAllVersions({\n id: \'123e4567-e89b-12d3-a456-426614174000\',\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "configs": [\n {\n "id": "string",\n "source": {},\n "targets": [],\n "created_at": "1970-01-01T00:00:00.000Z",\n "updated_at": "1970-01-01T00:00:00.000Z",\n "created_by": {},\n "last_updated_by": {},\n "org_id": "66",\n "version": 2\n }\n ]\n}\n```\n\n</details>\n\n---\n\n### `storeNewVersion`\n\nStore new version of MappingConfig\n\n`POST /v1/mappings/{id}/versions`\n\n```ts\nconst { data } = await client.storeNewVersion(\n {\n id: \'123e4567-e89b-12d3-a456-426614174000\',\n },\n {\n id: \'string\',\n source: {\n type: \'journey\',\n config: {\n journey_id: \'string\'\n }\n },\n targets: [\n {\n id: \'string\',\n name: \'string\',\n allow_failure: true,\n target_schema: \'string\',\n target_unique: [\'string\'],\n use_uniqueness_criteria: false,\n loop_config: { /* ... */ },\n conditionMode: \'oneOf\',\n conditions: [ /* ... */ ],\n mapping_attributes: [ /* ... */ ],\n relation_attributes: [ /* ... */ ],\n linkback_relation_attribute: \'mapped_entities\',\n linkback_relation_tags: [\'string\'],\n graph_context: [ /* ... */ ]\n }\n ],\n created_at: \'1970-01-01T00:00:00.000Z\',\n updated_at: \'1970-01-01T00:00:00.000Z\',\n created_by: {\n type: \'user\',\n org_id: \'string\',\n user_id: \'string\'\n },\n last_updated_by: {\n type: \'user\',\n org_id: \'string\',\n user_id: \'string\'\n },\n org_id: \'66\',\n version: 2\n },\n)\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "id": "string",\n "source": {\n "type": "journey",\n "config": {\n "journey_id": "string"\n }\n },\n "targets": [\n {\n "id": "string",\n "name": "string",\n "allow_failure": true,\n "target_schema": "string",\n "target_unique": ["string"],\n "use_uniqueness_criteria": false,\n "loop_config": {},\n "conditionMode": "oneOf",\n "conditions": [],\n "mapping_attributes": [],\n "relation_attributes": [],\n "linkback_relation_attribute": "mapped_entities",\n "linkback_relation_tags": ["string"],\n "graph_context": []\n }\n ],\n "created_at": "1970-01-01T00:00:00.000Z",\n "updated_at": "1970-01-01T00:00:00.000Z",\n "created_by": {\n "type": "user",\n "org_id": "string",\n "user_id": "string"\n },\n "last_updated_by": {\n "type": "user",\n "org_id": "string",\n "user_id": "string"\n },\n "org_id": "66",\n "version": 2\n}\n```\n\n</details>\n\n---\n\n### `getConfigVersion`\n\nGet specific version of a mapping config by id & version\n\n`GET /v1/mappings/{id}/versions/{version}`\n\n```ts\nconst { data } = await client.getConfigVersion({\n id: \'123e4567-e89b-12d3-a456-426614174000\',\n version: 1,\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "id": "string",\n "source": {\n "type": "journey",\n "config": {\n "journey_id": "string"\n }\n },\n "targets": [\n {\n "id": "string",\n "name": "string",\n "allow_failure": true,\n "target_schema": "string",\n "target_unique": ["string"],\n "use_uniqueness_criteria": false,\n "loop_config": {},\n "conditionMode": "oneOf",\n "conditions": [],\n "mapping_attributes": [],\n "relation_attributes": [],\n "linkback_relation_attribute": "mapped_entities",\n "linkback_relation_tags": ["string"],\n "graph_context": []\n }\n ],\n "created_at": "1970-01-01T00:00:00.000Z",\n "updated_at": "1970-01-01T00:00:00.000Z",\n "created_by": {\n "type": "user",\n "org_id": "string",\n "user_id": "string"\n },\n "last_updated_by": {\n "type": "user",\n "org_id": "string",\n "user_id": "string"\n },\n "org_id": "66",\n "version": 2\n}\n```\n\n</details>\n\n---\n\n### `executeMapping`\n\nExecute entity mapping based on a config\n\n`POST /v1/mappings:execute`\n\n```ts\nconst { data } = await client.executeMapping(\n {\n preview_mode: true,\n },\n {\n source_ref: {\n entity_id: \'string\',\n entity_schema: \'submission\'\n },\n loop_ref: {\n entity_id: \'string\',\n entity_schema: \'submission\'\n },\n targets: [\n {\n id: \'string\',\n name: \'string\',\n allow_failure: true,\n target_schema: \'string\',\n target_unique: [\'string\'],\n use_uniqueness_criteria: false,\n loop_config: { /* ... */ },\n conditionMode: \'oneOf\',\n conditions: [ /* ... */ ],\n mapping_attributes: [ /* ... */ ],\n relation_attributes: [ /* ... */ ],\n linkback_relation_attribute: \'mapped_entities\',\n linkback_relation_tags: [\'string\'],\n graph_context: [ /* ... */ ]\n }\n ]\n },\n)\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "mapped_entities": [\n {\n "_id": "string",\n "_schema": "string",\n "_title": "string",\n "_org": "string",\n "_tags": ["string"],\n "_created_at": "string",\n "_updated_at": "string",\n "required": {}\n }\n ],\n "failures": [\n {\n "target": {},\n "error": {}\n }\n ],\n "warnings": [\n {\n "explanation": "string",\n "context": "string",\n "id": "string"\n }\n ]\n}\n```\n\n</details>\n\n---\n\n### `searchConfigs`\n\nSearch mapping configs\n\n`POST /v1/mappings:search`\n\n```ts\nconst { data } = await client.searchConfigs(\n null,\n {\n source: {\n type: \'journey\',\n config: {\n journey_id: \'string\'\n }\n }\n },\n)\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "id": "string",\n "source": {\n "type": "journey",\n "config": {\n "journey_id": "string"\n }\n },\n "targets": [\n {\n "id": "string",\n "name": "string",\n "allow_failure": true,\n "target_schema": "string",\n "target_unique": ["string"],\n "use_uniqueness_criteria": false,\n "loop_config": {},\n "conditionMode": "oneOf",\n "conditions": [],\n "mapping_attributes": [],\n "relation_attributes": [],\n "linkback_relation_attribute": "mapped_entities",\n "linkback_relation_tags": ["string"],\n "graph_context": []\n }\n ],\n "created_at": "1970-01-01T00:00:00.000Z",\n "updated_at": "1970-01-01T00:00:00.000Z",\n "created_by": {\n "type": "user",\n "org_id": "string",\n "user_id": "string"\n },\n "last_updated_by": {\n "type": "user",\n "org_id": "string",\n "user_id": "string"\n },\n "org_id": "66",\n "version": 2\n}\n```\n\n</details>\n\n---\n\n### `queryMappingHistory`\n\nGet the Mapping History\n\n`GET /v1/mappings/history`\n\n```ts\nconst { data } = await client.queryMappingHistory({\n from: \'example\',\n to: \'example\',\n targetEntityId: \'example\',\n sourceEntityId: \'example\',\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{}\n```\n\n</details>\n\n---\n\n### `executeRelations`\n\nExecute relation mapping between source entity and target entities\n\n`POST /v1/relations:execute`\n\n```ts\nconst { data } = await client.executeRelations(\n null,\n {\n source_ref: {\n entity_id: \'string\',\n entity_schema: \'submission\'\n },\n target: {\n main_entity_ref: {\n entity_id: \'string\',\n entity_schema: \'submission\'\n },\n relation_attributes: [\n {\n target: \'string\',\n target_tags: [\'string\'],\n target_tags_include_source: false,\n target_entity_tags: [\'string\'],\n override_with_source_filter: false,\n source_filter: {\n limit: 0,\n schema: \'string\',\n attribute: \'string\',\n relation_tag: \'string\',\n tag: \'string\',\n self: false\n },\n related_to: {},\n mode: \'append\',\n origin: \'system_recommendation\'\n }\n ],\n linkback: {\n attribute: \'mapped_entities\',\n relation_tags: [\'string\']\n }\n },\n additional_relations: [\n {\n entity_id: \'string\',\n attribute: \'string\'\n }\n ]\n },\n)\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "relations": [\n {\n "source_entity_id": "string",\n "target_entity_id": "string",\n "relation_attr": "string",\n "tags": ["string"]\n }\n ]\n}\n```\n\n</details>\n\n---\n\n### `getMappingConfig`\n\nGet latest version of a mapping config by id V2\n\n`GET /v2/mappings/{id}`\n\n```ts\nconst { data } = await client.getMappingConfig({\n id: \'123e4567-e89b-12d3-a456-426614174000\',\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "id": "string",\n "source": {\n "type": "journey",\n "config": {\n "journey_id": "string"\n }\n },\n "targets": [\n {\n "id": "string",\n "name": "string",\n "allow_failure": true,\n "target_schema": "string",\n "target_unique": ["string"],\n "use_uniqueness_criteria": false,\n "loop_config": {},\n "conditionMode": "oneOf",\n "conditions": [],\n "mapping_attributes": [],\n "relation_attributes": [],\n "linkback_relation_attribute": "mapped_entities",\n "linkback_relation_tags": ["string"],\n "graph_context": []\n }\n ],\n "created_at": "1970-01-01T00:00:00.000Z",\n "updated_at": "1970-01-01T00:00:00.000Z",\n "created_by": {\n "type": "user",\n "org_id": "string",\n "user_id": "string"\n },\n "last_updated_by": {\n "type": "user",\n "org_id": "string",\n "user_id": "string"\n },\n "org_id": "66",\n "version": 2\n}\n```\n\n</details>\n\n---\n\n### `putMappingConfig`\n\nStores new version of entity mapping config\n\n`PUT /v2/mappings/{id}`\n\n```ts\nconst { data } = await client.putMappingConfig(\n {\n id: \'123e4567-e89b-12d3-a456-426614174000\',\n },\n {\n id: \'string\',\n source: {\n type: \'journey\',\n config: {\n journey_id: \'string\'\n }\n },\n targets: [\n {\n id: \'string\',\n name: \'string\',\n allow_failure: true,\n target_schema: \'string\',\n target_unique: [\'string\'],\n use_uniqueness_criteria: false,\n loop_config: { /* ... */ },\n conditionMode: \'oneOf\',\n conditions: [ /* ... */ ],\n mapping_attributes: [ /* ... */ ],\n relation_attributes: [ /* ... */ ],\n linkback_relation_attribute: \'mapped_entities\',\n linkback_relation_tags: [\'string\'],\n graph_context: [ /* ... */ ]\n }\n ],\n created_at: \'1970-01-01T00:00:00.000Z\',\n updated_at: \'1970-01-01T00:00:00.000Z\',\n created_by: {\n type: \'user\',\n org_id: \'string\',\n user_id: \'string\'\n },\n last_updated_by: {\n type: \'user\',\n org_id: \'string\',\n user_id: \'string\'\n },\n org_id: \'66\',\n version: 2\n },\n)\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "id": "string",\n "source": {\n "type": "journey",\n "config": {\n "journey_id": "string"\n }\n },\n "targets": [\n {\n "id": "string",\n "name": "string",\n "allow_failure": true,\n "target_schema": "string",\n "target_unique": ["string"],\n "use_uniqueness_criteria": false,\n "loop_config": {},\n "conditionMode": "oneOf",\n "conditions": [],\n "mapping_attributes": [],\n "relation_attributes": [],\n "linkback_relation_attribute": "mapped_entities",\n "linkback_relation_tags": ["string"],\n "graph_context": []\n }\n ],\n "created_at": "1970-01-01T00:00:00.000Z",\n "updated_at": "1970-01-01T00:00:00.000Z",\n "created_by": {\n "type": "user",\n "org_id": "string",\n "user_id": "string"\n },\n "last_updated_by": {\n "type": "user",\n "org_id": "string",\n "user_id": "string"\n },\n "org_id": "66",\n "version": 2\n}\n```\n\n</details>\n\n---\n\n## Schemas\n\n### `SearchMappingReq`\n\n```ts\ntype SearchMappingReq = {\n source?: {\n type?: "journey" | "entity"\n config?: {\n journey_id?: { ... }\n } | {\n entity_id: { ... }\n entity_schema?: { ... }\n }\n }\n}\n```\n\n### `MappingConfigsResp`\n\n```ts\ntype MappingConfigsResp = {\n configs: Array<{\n id: string\n source: {\n type?: { ... }\n config?: { ... }\n }\n targets: Array<{\n id?: { ... }\n name?: { ... }\n allow_failure?: { ... }\n target_schema: { ... }\n target_unique?: { ... }\n use_uniqueness_criteria?: { ... }\n loop_config?: { ... }\n conditionMode?: { ... }\n conditions?: { ... }\n mapping_attributes: { ... }\n relation_attributes?: { ... }\n linkback_relation_attribute?: { ... }\n linkback_relation_tags?: { ... }\n graph_context?: { ... }\n }>\n created_at?: string // date-time\n updated_at?: string // date-time\n created_by?: {\n type: { ... }\n org_id?: { ... }\n user_id?: { ... }\n }\n last_updated_by?: {\n type: { ... }\n org_id?: { ... }\n user_id?: { ... }\n }\n org_id?: string\n version?: number\n }>\n}\n```\n\n### `MappingConfigs`\n\n```ts\ntype MappingConfigs = Array<{\n id: string\n source: {\n type?: "journey" | "entity"\n config?: {\n journey_id?: { ... }\n } | {\n entity_id: { ... }\n entity_schema?: { ... }\n }\n }\n targets: Array<{\n id?: string\n name?: string\n allow_failure?: boolean\n target_schema: string\n target_unique?: string[]\n use_uniqueness_criteria?: boolean\n loop_config?: {\n source_path?: { ... }\n length?: { ... }\n }\n conditionMode?: "oneOf" | "anyOf" | "allOf"\n conditions?: Array<{\n _exists?: { ... }\n _equals?: { ... }\n _not_exists?: { ... }\n _any_of?: { ... }\n }>\n mapping_attributes: Array<{\n target: { ... }\n operation: { ... }\n origin?: { ... }\n } | {\n mode: { ... }\n target: { ... }\n value: { ... }\n } | {\n mode: { ... }\n target: { ... }\n source: { ... }\n } | {\n mode: { ... }\n target: { ... }\n source?: { ... }\n value_json: { ... }\n target_unique?: { ... }\n }>\n relation_attributes?: Array<{\n target: { ... }\n target_tags?: { ... }\n target_tags_include_source?: { ... }\n target_entity_tags?: { ... }\n override_with_source_filter?: { ... }\n source_filter?: { ... }\n related_to?: { ... }\n mode: { ... }\n origin?: { ... }\n }>\n linkback_relation_attribute?: string\n linkback_relation_tags?: string[]\n graph_context?: Array<{\n seed: { ... }\n graph: { ... }\n }>\n }>\n created_at?: string // date-time\n updated_at?: string // date-time\n created_by?: {\n type: "user" | "internal_service"\n org_id?: string\n user_id?: string\n }\n last_updated_by?: {\n type: "user" | "internal_service"\n org_id?: string\n user_id?: string\n }\n org_id?: string\n version?: number\n}>\n```\n\n### `MappingConfig`\n\n```ts\ntype MappingConfig = {\n id: string\n source: {\n type?: "journey" | "entity"\n config?: {\n journey_id?: { ... }\n } | {\n entity_id: { ... }\n entity_schema?: { ... }\n }\n }\n targets: Array<{\n id?: string\n name?: string\n allow_failure?: boolean\n target_schema: string\n target_unique?: string[]\n use_uniqueness_criteria?: boolean\n loop_config?: {\n source_path?: { ... }\n length?: { ... }\n }\n conditionMode?: "oneOf" | "anyOf" | "allOf"\n conditions?: Array<{\n _exists?: { ... }\n _equals?: { ... }\n _not_exists?: { ... }\n _any_of?: { ... }\n }>\n mapping_attributes: Array<{\n target: { ... }\n operation: { ... }\n origin?: { ... }\n } | {\n mode: { ... }\n target: { ... }\n value: { ... }\n } | {\n mode: { ... }\n target: { ... }\n source: { ... }\n } | {\n mode: { ... }\n target: { ... }\n source?: { ... }\n value_json: { ... }\n target_unique?: { ... }\n }>\n relation_attributes?: Array<{\n target: { ... }\n target_tags?: { ... }\n target_tags_include_source?: { ... }\n target_entity_tags?: { ... }\n override_with_source_filter?: { ... }\n source_filter?: { ... }\n related_to?: { ... }\n mode: { ... }\n origin?: { ... }\n }>\n linkback_relation_attribute?: string\n linkback_relation_tags?: string[]\n graph_context?: Array<{\n seed: { ... }\n graph: { ... }\n }>\n }>\n created_at?: string // date-time\n updated_at?: string // date-time\n created_by?: {\n type: "user" | "internal_service"\n org_id?: string\n user_id?: string\n }\n last_updated_by?: {\n type: "user" | "internal_service"\n org_id?: string\n user_id?: string\n }\n org_id?: string\n version?: number\n}\n```\n\n### `MappingConfigV2`\n\n```ts\ntype MappingConfigV2 = {\n id: string\n source: {\n type?: "journey" | "entity"\n config?: {\n journey_id?: { ... }\n } | {\n entity_id: { ... }\n entity_schema?: { ... }\n }\n }\n targets: Array<{\n id?: string\n name?: string\n allow_failure?: boolean\n target_schema: string\n target_unique?: string[]\n use_uniqueness_criteria?: boolean\n loop_config?: {\n source_path?: { ... }\n length?: { ... }\n }\n conditionMode?: "oneOf" | "anyOf" | "allOf"\n conditions?: Array<{\n _exists?: { ... }\n _equals?: { ... }\n _not_exists?: { ... }\n _any_of?: { ... }\n }>\n mapping_attributes: Array<{\n target: { ... }\n operation: { ... }\n origin?: { ... }\n } | {\n mode: { ... }\n target: { ... }\n value: { ... }\n } | {\n mode: { ... }\n target: { ... }\n source: { ... }\n } | {\n mode: { ... }\n target: { ... }\n source?: { ... }\n value_json: { ... }\n target_unique?: { ... }\n }>\n relation_attributes?: Array<{\n target: { ... }\n target_tags?: { ... }\n target_tags_include_source?: { ... }\n target_entity_tags?: { ... }\n override_with_source_filter?: { ... }\n source_filter?: { ... }\n related_to?: { ... }\n mode: { ... }\n origin?: { ... }\n }>\n linkback_relation_attribute?: string\n linkback_relation_tags?: string[]\n graph_context?: Array<{\n seed: { ... }\n graph: { ... }\n }>\n }>\n created_at?: string // date-time\n updated_at?: string // date-time\n created_by?: {\n type: "user" | "internal_service"\n org_id?: string\n user_id?: string\n }\n last_updated_by?: {\n type: "user" | "internal_service"\n org_id?: string\n user_id?: string\n }\n org_id?: string\n version?: number\n}\n```\n\n### `MappingConfigCommonFields`\n\n```ts\ntype MappingConfigCommonFields = {\n id: string\n source: {\n type?: "journey" | "entity"\n config?: {\n journey_id?: { ... }\n } | {\n entity_id: { ... }\n entity_schema?: { ... }\n }\n }\n targets: Array<{\n id?: string\n name?: string\n allow_failure?: boolean\n target_schema: string\n target_unique?: string[]\n use_uniqueness_criteria?: boolean\n loop_config?: {\n source_path?: { ... }\n length?: { ... }\n }\n conditionMode?: "oneOf" | "anyOf" | "allOf"\n conditions?: Array<{\n _exists?: { ... }\n _equals?: { ... }\n _not_exists?: { ... }\n _any_of?: { ... }\n }>\n mapping_attributes: Array<{\n target: { ... }\n operation: { ... }\n origin?: { ... }\n } | {\n mode: { ... }\n target: { ... }\n value: { ... }\n } | {\n mode: { ... }\n target: { ... }\n source: { ... }\n } | {\n mode: { ... }\n target: { ... }\n source?: { ... }\n value_json: { ... }\n target_unique?: { ... }\n }>\n relation_attributes?: Array<{\n target: { ... }\n target_tags?: { ... }\n target_tags_include_source?: { ... }\n target_entity_tags?: { ... }\n override_with_source_filter?: { ... }\n source_filter?: { ... }\n related_to?: { ... }\n mode: { ... }\n origin?: { ... }\n }>\n linkback_relation_attribute?: string\n linkback_relation_tags?: string[]\n graph_context?: Array<{\n seed: { ... }\n graph: { ... }\n }>\n }>\n created_at?: string // date-time\n updated_at?: string // date-time\n created_by?: {\n type: "user" | "internal_service"\n org_id?: string\n user_id?: string\n }\n last_updated_by?: {\n type: "user" | "internal_service"\n org_id?: string\n user_id?: string\n }\n}\n```\n\n### `Owner`\n\n```ts\ntype Owner = {\n type: "user" | "internal_service"\n org_id?: string\n user_id?: string\n}\n```\n\n### `ExecuteRelationsReq`\n\nBuild relations between a source entity and one or more target entities, dynamically identified\n\n```ts\ntype ExecuteRelationsReq = {\n source_ref: {\n entity_id: string\n entity_schema?: string\n }\n target?: {\n main_entity_ref: {\n entity_id: { ... }\n entity_schema?: { ... }\n }\n relation_attributes: Array<{\n target: { ... }\n target_tags?: { ... }\n target_tags_include_source?: { ... }\n target_entity_tags?: { ... }\n override_with_source_filter?: { ... }\n source_filter?: { ... }\n related_to?: { ... }\n mode: { ... }\n origin?: { ... }\n }>\n linkback?: {\n attribute: { ... }\n relation_tags: { ... }\n }\n }\n additional_relations?: Array<{\n entity_id: string\n attribute: string\n }>\n}\n```\n\n### `ExecuteRelationsResp`\n\n```ts\ntype ExecuteRelationsResp = {\n relations?: Array<{\n source_entity_id: string\n target_entity_id: string\n relation_attr: string\n tags?: string[]\n }>\n}\n```\n\n### `NewRelationItem`\n\n```ts\ntype NewRelationItem = {\n source_entity_id: string\n target_entity_id: string\n relation_attr: string\n tags?: string[]\n}\n```\n\n### `RelationItem`\n\n```ts\ntype RelationItem = {\n entity_id: string\n attribute: string\n}\n```\n\n### `ExecuteMappingReq`\n\nPass either source or source_entity\n\n```ts\ntype ExecuteMappingReq = {\n source_ref: {\n entity_id: string\n entity_schema?: string\n }\n loop_ref?: {\n entity_id: string\n entity_schema?: string\n }\n targets: Array<{\n id?: string\n name?: string\n allow_failure?: boolean\n target_schema: string\n target_unique?: string[]\n use_uniqueness_criteria?: boolean\n loop_config?: {\n source_path?: { ... }\n length?: { ... }\n }\n conditionMode?: "oneOf" | "anyOf" | "allOf"\n conditions?: Array<{\n _exists?: { ... }\n _equals?: { ... }\n _not_exists?: { ... }\n _any_of?: { ... }\n }>\n mapping_attributes: Array<{\n target: { ... }\n operation: { ... }\n origin?: { ... }\n } | {\n mode: { ... }\n target: { ... }\n value: { ... }\n } | {\n mode: { ... }\n target: { ... }\n source: { ... }\n } | {\n mode: { ... }\n target: { ... }\n source?: { ... }\n value_json: { ... }\n target_unique?: { ... }\n }>\n relation_attributes?: Array<{\n target: { ... }\n target_tags?: { ... }\n target_tags_include_source?: { ... }\n target_entity_tags?: { ... }\n override_with_source_filter?: { ... }\n source_filter?: { ... }\n related_to?: { ... }\n mode: { ... }\n origin?: { ... }\n }>\n linkback_relation_attribute?: string\n linkback_relation_tags?: string[]\n graph_context?: Array<{\n seed: { ... }\n graph: { ... }\n }>\n }>\n}\n```\n\n### `ExecuteMappingResp`\n\n```ts\ntype ExecuteMappingResp = {\n mapped_entities: Array<{\n _id?: string\n _schema?: string\n _title?: string\n _org?: string\n _tags?: string[]\n _created_at?: string\n _updated_at?: string\n required?: unknown\n }>\n failures?: Array<{\n target?: {\n id?: { ... }\n name?: { ... }\n allow_failure?: { ... }\n target_schema: { ... }\n target_unique?: { ... }\n use_uniqueness_criteria?: { ... }\n loop_config?: { ... }\n conditionMode?: { ... }\n conditions?: { ... }\n mapping_attributes: { ... }\n relation_attributes?: { ... }\n linkback_relation_attribute?: { ... }\n linkback_relation_tags?: { ... }\n graph_context?: { ... }\n }\n error?: {\n isSilent?: { ... }\n message?: { ... }\n }\n }>\n warnings?: Array<{\n explanation: string\n context?: string\n id?: string\n }>\n}\n```\n\n### `MappingFailure`\n\n```ts\ntype MappingFailure = {\n target?: {\n id?: string\n name?: string\n allow_failure?: boolean\n target_schema: string\n target_unique?: string[]\n use_uniqueness_criteria?: boolean\n loop_config?: {\n source_path?: { ... }\n length?: { ... }\n }\n conditionMode?: "oneOf" | "anyOf" | "allOf"\n conditions?: Array<{\n _exists?: { ... }\n _equals?: { ... }\n _not_exists?: { ... }\n _any_of?: { ... }\n }>\n mapping_attributes: Array<{\n target: { ... }\n operation: { ... }\n origin?: { ... }\n } | {\n mode: { ... }\n target: { ... }\n value: { ... }\n } | {\n mode: { ... }\n target: { ... }\n source: { ... }\n } | {\n mode: { ... }\n target: { ... }\n source?: { ... }\n value_json: { ... }\n target_unique?: { ... }\n }>\n relation_attributes?: Array<{\n target: { ... }\n target_tags?: { ... }\n target_tags_include_source?: { ... }\n target_entity_tags?: { ... }\n override_with_source_filter?: { ... }\n source_filter?: { ... }\n related_to?: { ... }\n mode: { ... }\n origin?: { ... }\n }>\n linkback_relation_attribute?: string\n linkback_relation_tags?: string[]\n graph_context?: Array<{\n seed: { ... }\n graph: { ... }\n }>\n }\n error?: {\n isSilent?: boolean\n message?: string\n }\n}\n```\n\n### `MappingWarning`\n\n```ts\ntype MappingWarning = {\n explanation: string\n context?: string\n id?: string\n}\n```\n\n### `Entity`\n\n```ts\ntype Entity = {\n _id?: string\n _schema?: string\n _title?: string\n _org?: string\n _tags?: string[]\n _created_at?: string\n _updated_at?: string\n required?: unknown\n}\n```\n\n### `EntityRef`\n\n```ts\ntype EntityRef = {\n entity_id: string\n entity_schema?: string\n}\n```\n\n### `SourceConfig`\n\n```ts\ntype SourceConfig = {\n type?: "journey" | "entity"\n config?: {\n journey_id?: string\n } | {\n entity_id: string\n entity_schema?: string\n }\n}\n```\n\n### `JourneyRef`\n\n```ts\ntype JourneyRef = {\n journey_id?: string\n}\n```\n\n### `Loop_Index_String`\n\nThis string value will be replaced with the value of the loop index, when mapping in loop mode\n\n```ts\ntype Loop_Index_String = "##LOOP_INDEX##"\n```\n\n### `TargetConfig`\n\n```ts\ntype TargetConfig = {\n id?: string\n name?: string\n allow_failure?: boolean\n target_schema: string\n target_unique?: string[]\n use_uniqueness_criteria?: boolean\n loop_config?: {\n source_path?: string\n length?: number\n }\n conditionMode?: "oneOf" | "anyOf" | "allOf"\n conditions?: Array<{\n _exists?: {\n source?: { ... }\n value?: { ... }\n }\n _equals?: {\n source?: { ... }\n value?: { ... }\n }\n _not_exists?: {\n source?: { ... }\n value?: { ... }\n }\n _any_of?: {\n source?: { ... }\n value?: { ... }\n }\n }>\n mapping_attributes: Array<{\n target: string\n operation: {\n _set?: { ... }\n _append?: { ... }\n _prepend?: { ... }\n _uniq?: { ... }\n _retain_old_values?: { ... }\n _copy?: { ... }\n _template?: { ... }\n _random?: { ... }\n _each?: { ... }\n _as?: { ... }\n _map?: { ... }\n } | string | boolean | number | Record<string, unknown> | unknown[]\n origin?: "system_recommendation" | "user_manually" | "entity_updating_system_recommendation"\n } | {\n mode: "copy_if_exists" | "append_if_exists" | "set_value"\n target: string\n value: unknown\n } | {\n mode: "copy_if_exists" | "append_if_exists" | "set_value"\n target: string\n source: string\n } | {\n mode: "copy_if_exists" | "append_if_exists" | "set_value"\n target: string\n source?: string\n value_json: string\n target_unique?: string[]\n }>\n relation_attributes?: Array<{\n target: string\n target_tags?: string[]\n target_tags_include_source?: boolean\n target_entity_tags?: string[]\n override_with_source_filter?: boolean\n source_filter?: {\n limit?: { ... }\n schema?: { ... }\n attribute?: { ... }\n relation_tag?: { ... }\n tag?: { ... }\n self?: { ... }\n }\n related_to?: Record<string, unknown>\n mode: "append" | "prepend" | "set"\n origin?: "system_recommendation" | "user_manually" | "entity_updating_system_recommendation"\n }>\n linkback_relation_attribute?: string\n linkback_relation_tags?: string[]\n graph_context?: Array<{\n seed: {\n entity_id: { ... }\n node_id: { ... }\n }\n graph: {\n nodes: { ... }\n edges: { ... }\n }\n }>\n}\n```\n\n### `MapCondition`\n\n```ts\ntype MapCondition = {\n _exists?: {\n source?: string\n value?: string | number | object | object[]\n }\n _equals?: {\n source?: string\n value?: string | number | object | object[]\n }\n _not_exists?: {\n source?: string\n value?: string | number | object | object[]\n }\n _any_of?: {\n source?: string\n value?: string | number | object | object[]\n }\n}\n```\n\n### `ConditionNode`\n\n```ts\ntype ConditionNode = {\n source?: string\n value?: string | number | object | object[]\n}\n```\n\n### `RelationAttribute`\n\n```ts\ntype RelationAttribute = {\n target: string\n target_tags?: string[]\n target_tags_include_source?: boolean\n target_entity_tags?: string[]\n override_with_source_filter?: boolean\n source_filter?: {\n limit?: number\n schema?: string\n attribute?: string\n relation_tag?: string\n tag?: string\n self?: boolean\n }\n related_to?: Record<string, unknown>\n mode: "append" | "prepend" | "set"\n origin?: "system_recommendation" | "user_manually" | "entity_updating_system_recommendation"\n}\n```\n\n### `GraphContextEntry`\n\nOne multi-hop graph lookup against entity-api\'s `POST /v1/entity:graph`, resolved during\ngraph_context enrichment (before mapping_attributes are evaluated). Every node in `graph.nodes`\nis merged into sourceContext under its own `id`, so listing several nodes here costs one\nentity-api call, not one p\n\n```ts\ntype GraphContextEntry = {\n seed: {\n entity_id: string\n node_id: string\n }\n graph: {\n nodes: Array<{\n id: { ... }\n schema: { ... }\n cardinality?: { ... }\n fields?: { ... }\n filter?: { ... }\n }>\n edges: Array<{\n from: { ... }\n to: { ... }\n }>\n }\n}\n```\n\n### `GraphSeed`\n\nMirrors entity-api\'s GraphSeed (see entity-api openapi.yml) - the entity the graph traversal starts from.\n\n```ts\ntype GraphSeed = {\n entity_id: string\n node_id: string\n}\n```\n\n### `GraphDefinition`\n\nMirrors entity-api\'s GraphDefinition (see entity-api openapi.yml) - the shape of the graph to traverse.\n\n```ts\ntype GraphDefinition = {\n nodes: Array<{\n id: string\n schema: string\n cardinality?: "one" | "many"\n fields?: string[]\n filter?: Array<{\n attribute: { ... }\n value: { ... }\n }>\n }>\n edges: Array<{\n from: string\n to: string\n }>\n}\n```\n\n### `GraphNode`\n\nMirrors entity-api\'s GraphNode (see entity-api openapi.yml).\n\n```ts\ntype GraphNode = {\n id: string\n schema: string\n cardinality?: "one" | "many"\n fields?: string[]\n filter?: Array<{\n attribute: string\n value: string | number | boolean\n }>\n}\n```\n\n### `GraphNodeFilter`\n\nMirrors entity-api\'s GraphNodeFilter (see entity-api openapi.yml).\n\n```ts\ntype GraphNodeFilter = {\n attribute: string\n value: string | number | boolean\n}\n```\n\n### `GraphEdge`\n\nMirrors entity-api\'s GraphEdge (see entity-api openapi.yml).\n\n```ts\ntype GraphEdge = {\n from: string\n to: string\n}\n```\n\n### `MappingAttributeV2`\n\n```ts\ntype MappingAttributeV2 = {\n target: string\n operation: {\n _set?: string | boolean | number | Record<string, unknown> | unknown[]\n _append?: unknown\n _prepend?: unknown\n _uniq?: boolean | string[]\n _retain_old_values?: boolean\n _copy?: string\n _template?: string\n _random?: {\n type: { ... }\n } | {\n type: { ... }\n min?: { ... }\n max?: { ... }\n }\n _each?: string\n _as?: string\n _map?: {\n _set?: { ... }\n _append?: { ... }\n _prepend?: { ... }\n _uniq?: { ... }\n _retain_old_values?: { ... }\n _copy?: { ... }\n _template?: { ... }\n _random?: { ... }\n _each?: { ... }\n _as?: { ... }\n _map?: { ... }\n } | string | boolean | number | Record<string, unknown> | unknown[]\n } | string | boolean | number | Record<string, unknown> | unknown[]\n origin?: "system_recommendation" | "user_manually" | "entity_updating_system_recommendation"\n}\n```\n\n### `AttributeOrigin`\n\nOrigin of an attribute.\n\n```ts\ntype AttributeOrigin = "system_recommendation" | "user_manually" | "entity_updating_system_recommendation"\n```\n\n### `OperationNode`\n\nMapping operation nodes are either primitive values or operation node objects\n\n```ts\ntype OperationNode = {\n _set?: string | boolean | number | Record<string, unknown> | unknown[]\n _append?: unknown\n _prepend?: unknown\n _uniq?: boolean | string[]\n _retain_old_values?: boolean\n _copy?: string\n _template?: string\n _random?: {\n type: "uuid" | "nanoid"\n } | {\n type: "number"\n min?: number\n max?: number\n }\n _each?: string\n _as?: string\n _map?: {\n _set?: string | boolean | number | Record<string, unknown> | unknown[]\n _append?: unknown\n _prepend?: unknown\n _uniq?: boolean | string[]\n _retain_old_values?: boolean\n _copy?: string\n _template?: string\n _random?: {\n type: { ... }\n } | {\n type: { ... }\n min?: { ... }\n max?: { ... }\n }\n _each?: string\n _as?: string\n _map?: {\n _set?: { ... }\n _append?: { ... }\n _prepend?: { ... }\n _uniq?: { ... }\n _retain_old_values?: { ... }\n _copy?: { ... }\n _template?: { ... }\n _random?: { ... }\n _each?: { ... }\n _as?: { ... }\n _map?: { ... }\n } | string | boolean | number | Record<string, unknown> | unknown[]\n } | string | boolean | number | Record<string, unknown> | unknown[]\n} | string | boolean | number | Record<string, unknown> | unknown[]\n```\n\n### `OperationObjectNode`\n\n```ts\ntype OperationObjectNode = {\n _set?: string | boolean | number | Record<string, unknown> | unknown[]\n _append?: unknown\n _prepend?: unknown\n _uniq?: boolean | string[]\n _retain_old_values?: boolean\n _copy?: string\n _template?: string\n _random?: {\n type: "uuid" | "nanoid"\n } | {\n type: "number"\n min?: number\n max?: number\n }\n _each?: string\n _as?: string\n _map?: {\n _set?: string | boolean | number | Record<string, unknown> | unknown[]\n _append?: unknown\n _prepend?: unknown\n _uniq?: boolean | string[]\n _retain_old_values?: boolean\n _copy?: string\n _template?: string\n _random?: {\n type: { ... }\n } | {\n type: { ... }\n min?: { ... }\n max?: { ... }\n }\n _each?: string\n _as?: string\n _map?: {\n _set?: { ... }\n _append?: { ... }\n _prepend?: { ... }\n _uniq?: { ... }\n _retain_old_values?: { ... }\n _copy?: { ... }\n _template?: { ... }\n _random?: { ... }\n _each?: { ... }\n _as?: { ... }\n _map?: { ... }\n } | string | boolean | number | Record<string, unknown> | unknown[]\n } | string | boolean | number | Record<string, unknown> | unknown[]\n}\n```\n\n### `PrimitiveJSONValue`\n\nRepresents any primitive JSON value\n\n```ts\ntype PrimitiveJSONValue = string | boolean | number | Record<string, unknown> | unknown[]\n```\n\n### `RandomOperation`\n\n```ts\ntype RandomOperation = {\n type: "uuid" | "nanoid"\n} | {\n type: "number"\n min?: number\n max?: number\n}\n```\n\n### `MappingAttribute`\n\n```ts\ntype MappingAttribute = {\n mode: "copy_if_exists" | "append_if_exists" | "set_value"\n target: string\n value: unknown\n} | {\n mode: "copy_if_exists" | "append_if_exists" | "set_value"\n target: string\n source: string\n} | {\n mode: "copy_if_exists" | "append_if_exists" | "set_value"\n target: string\n source?: string\n value_json: string\n target_unique?: string[]\n}\n```\n\n### `MappingAttributeMode`\n\n- copy_if_exists - it replaces the target attribute with the source value - append_if_exists - it currently replaces target attribute with array like values. Useful when you have multiple values to be added into one attribute. - set_value - it sets a value to a predefined value. Must be used togethe\n\n```ts\ntype MappingAttributeMode = "copy_if_exists" | "append_if_exists" | "set_value"\n```\n\n### `SetValueMapper`\n\n```ts\ntype SetValueMapper = {\n mode: "copy_if_exists" | "append_if_exists" | "set_value"\n target: string\n value: unknown\n}\n```\n\n### `CopyValueMapper`\n\n```ts\ntype CopyValueMapper = {\n mode: "copy_if_exists" | "append_if_exists" | "set_value"\n target: string\n source: string\n}\n```\n\n### `AppendValueMapper`\n\n```ts\ntype AppendValueMapper = {\n mode: "copy_if_exists" | "append_if_exists" | "set_value"\n target: string\n source?: string\n value_json: string\n target_unique?: string[]\n}\n```\n\n### `MappingHistoryResp`\n\n```ts\ntype MappingHistoryResp = {\n results: Array<{\n id: string\n timestamp: string // ISO datetime\n source_entity_snapshot: {\n _id?: { ... }\n _schema?: { ... }\n _title?: { ... }\n _org?: { ... }\n _tags?: { ... }\n _created_at?: { ... }\n _updated_at?: { ... }\n required?: { ... }\n }\n mapped_entities_snapshot: Array<{\n _id?: { ... }\n _schema?: { ... }\n _title?: { ... }\n _org?: { ... }\n _tags?: { ... }\n _created_at?: { ... }\n _updated_at?: { ... }\n required?: { ... }\n }>\n target_configs_snapshot: Array<{\n id?: { ... }\n name?: { ... }\n allow_failure?: { ... }\n target_schema: { ... }\n target_unique?: { ... }\n use_uniqueness_criteria?: { ... }\n loop_config?: { ... }\n conditionMode?: { ... }\n conditions?: { ... }\n mapping_attributes: { ... }\n relation_attributes?: { ... }\n linkback_relation_attribute?: { ... }\n linkback_relation_tags?: { ... }\n graph_context?: { ... }\n }>\n }>\n}\n```\n\n### `MappingHistoryEntry`\n\n```ts\ntype MappingHistoryEntry = {\n id: string\n timestamp: string // ISO datetime\n source_entity_snapshot: {\n _id?: string\n _schema?: string\n _title?: string\n _org?: string\n _tags?: string[]\n _created_at?: string\n _updated_at?: string\n required?: unknown\n }\n mapped_entities_snapshot: Array<{\n _id?: string\n _schema?: string\n _title?: string\n _org?: string\n _tags?: string[]\n _created_at?: string\n _updated_at?: string\n required?: unknown\n }>\n target_configs_snapshot: Array<{\n id?: string\n name?: string\n allow_failure?: boolean\n target_schema: string\n target_unique?: string[]\n use_uniqueness_criteria?: boolean\n loop_config?: {\n source_path?: { ... }\n length?: { ... }\n }\n conditionMode?: "oneOf" | "anyOf" | "allOf"\n conditions?: Array<{\n _exists?: { ... }\n _equals?: { ... }\n _not_exists?: { ... }\n _any_of?: { ... }\n }>\n mapping_attributes: Array<{\n target: { ... }\n operation: { ... }\n origin?: { ... }\n } | {\n mode: { ... }\n target: { ... }\n value: { ... }\n } | {\n mode: { ... }\n target: { ... }\n source: { ... }\n } | {\n mode: { ... }\n target: { ... }\n source?: { ... }\n value_json: { ... }\n target_unique?: { ... }\n }>\n relation_attributes?: Array<{\n target: { ... }\n target_tags?: { ... }\n target_tags_include_source?: { ... }\n target_entity_tags?: { ... }\n override_with_source_filter?: { ... }\n source_filter?: { ... }\n related_to?: { ... }\n mode: { ... }\n origin?: { ... }\n }>\n linkback_relation_attribute?: string\n linkback_relation_tags?: string[]\n graph_context?: Array<{\n seed: { ... }\n graph: { ... }\n }>\n }>\n}\n```\n\n### `MappingSource`\n\n```ts\ntype MappingSource = {\n key: string\n sub_properties?: Array<{\n value: string\n label: string\n initial_target_value?: string\n possible_target_types?: "string" | "date" | "datetime" | "boolean" | "number" | "image" | "file" | "address" | "email" | "phone" | "select" | "multiselect" | "payment" | "link" | "currency" | "sequence" | "relation" | "array"[]\n raw?: boolean\n }>\n source_type: string\n group?: string\n possible_target_types?: "string" | "date" | "datetime" | "boolean" | "number" | "image" | "file" | "address" | "email" | "phone" | "select" | "multiselect" | "payment" | "link" | "currency" | "sequence" | "relation" | "array"[]\n initial_relation?: {\n target: string\n target_tags?: string[]\n target_tags_include_source?: boolean\n target_entity_tags?: string[]\n override_with_source_filter?: boolean\n source_filter?: {\n limit?: { ... }\n schema?: { ... }\n attribute?: { ... }\n relation_tag?: { ... }\n tag?: { ... }\n self?: { ... }\n }\n related_to?: Record<string, unknown>\n mode: "append" | "prepend" | "set"\n origin?: "system_recommendation" | "user_manually" | "entity_updating_system_recommendation"\n }\n title: string\n sub_title?: string\n repeatable?: boolean\n target_settings?: {\n allowed_ui_actions?: "schema-select" | "attribute-select" | "target-delete" | "target-add" | "target"[]\n locked?: "each" | "first" | "system_recommendation"\n isSingleTarget?: boolean\n visibility?: {\n mode: { ... }\n if: { ... }\n message?: { ... }\n }\n }\n}\n```\n\n### `MappingSourceProperty`\n\n```ts\ntype MappingSourceProperty = {\n value: string\n label: string\n initial_target_value?: string\n possible_target_types?: "string" | "date" | "datetime" | "boolean" | "number" | "image" | "file" | "address" | "email" | "phone" | "select" | "multiselect" | "payment" | "link" | "currency" | "sequence" | "relation" | "array"[]\n raw?: boolean\n}\n```\n\n### `MappingSourceTargetType`\n\n```ts\ntype MappingSourceTargetType = "string" | "date" | "datetime" | "boolean" | "number" | "image" | "file" | "address" | "email" | "phone" | "select" | "multiselect" | "payment" | "link" | "currency" | "sequence" | "relation" | "array"\n```\n';
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
exports.default = entity_mapping_default;
|