@epilot/sdk 2.17.0 → 2.17.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/definitions/deduplication-runtime.json +1 -1
- package/definitions/deduplication.json +80 -4
- 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 +6 -6
- package/dist/apis/blueprint-manifest.js +1 -1
- 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 +8 -8
- package/dist/apis/deduplication.d.cts +2 -2
- package/dist/apis/deduplication.d.ts +2 -2
- package/dist/apis/deduplication.js +2 -2
- package/dist/apis/design.cjs +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.js +1 -1
- package/dist/apis/entity.cjs +6 -6
- package/dist/apis/entity.js +1 -1
- package/dist/apis/environments.cjs +6 -6
- 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 +6 -6
- package/dist/apis/pricing.js +1 -1
- package/dist/apis/purpose.cjs +6 -6
- package/dist/apis/purpose.js +1 -1
- package/dist/apis/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/{chunk-TNIQ67SK.cjs → chunk-56SO5YDQ.cjs} +2 -2
- package/dist/{chunk-CKD3HAHW.js → chunk-5B7KMWW3.js} +1 -1
- package/dist/{chunk-TWI3P2QA.cjs → chunk-BEJ5NIRC.cjs} +1 -1
- package/dist/{chunk-VJKGGDHF.js → chunk-OGOMIUCZ.js} +2 -2
- package/dist/deduplication-FFW7L6P5.cjs +7 -0
- package/dist/deduplication-JNS7SSUR.js +7 -0
- package/dist/{deduplication-runtime-5TJHUSQN.js → deduplication-runtime-52CD6PA3.js} +1 -1
- package/dist/{deduplication-runtime-ZKX6LN5P.cjs → deduplication-runtime-FU24WISY.cjs} +2 -2
- package/dist/{deduplication.d-DaUo5gZo.d.ts → deduplication.d-Cueh8bDD.d.cts} +151 -2
- package/dist/{deduplication.d-DaUo5gZo.d.cts → deduplication.d-Cueh8bDD.d.ts} +151 -2
- package/dist/index.cjs +10 -10
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/dist/js-yaml-DLCVPJ7G.js +0 -0
- package/docs/deduplication.md +88 -35
- package/package.json +11 -12
- package/definitions/focus-pocus-runtime.json +0 -1
- package/definitions/focus-pocus.json +0 -757
- package/dist/deduplication-XYMFEQEE.cjs +0 -7
- package/dist/deduplication-YYNT5C3M.js +0 -7
package/dist/apis/webhooks.cjs
CHANGED
|
@@ -6,25 +6,25 @@ var _chunkNGGI52NVcjs = require('../chunk-NGGI52NV.cjs');
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunk56SO5YDQcjs = require('../chunk-56SO5YDQ.cjs');
|
|
10
10
|
require('../chunk-NJK5F5TF.cjs');
|
|
11
11
|
|
|
12
12
|
// src/apis/webhooks.ts
|
|
13
13
|
var loadDefinition = () => {
|
|
14
14
|
const mod = _chunkNGGI52NVcjs.require_webhooks_runtime.call(void 0, );
|
|
15
|
-
return
|
|
15
|
+
return _chunk56SO5YDQcjs.expand.call(void 0, _nullishCoalesce(mod.default, () => ( mod)));
|
|
16
16
|
};
|
|
17
17
|
var _instance = null;
|
|
18
18
|
var resolve = () => {
|
|
19
19
|
if (!_instance) {
|
|
20
20
|
const def = loadDefinition();
|
|
21
|
-
_instance =
|
|
21
|
+
_instance = _chunk56SO5YDQcjs.createApiClient.call(void 0, { definition: def, apiName: "webhooks" });
|
|
22
22
|
}
|
|
23
23
|
return _instance;
|
|
24
24
|
};
|
|
25
|
-
var _handle =
|
|
25
|
+
var _handle = _chunk56SO5YDQcjs.createApiHandle.call(void 0, {
|
|
26
26
|
resolveClient: resolve,
|
|
27
|
-
createClient: () =>
|
|
27
|
+
createClient: () => _chunk56SO5YDQcjs.createApiClient.call(void 0, { definition: loadDefinition(), apiName: "webhooks" }),
|
|
28
28
|
apiName: "webhooks"
|
|
29
29
|
});
|
|
30
30
|
var getClient = _handle.getClient;
|
|
@@ -35,4 +35,4 @@ var webhooks = _handle;
|
|
|
35
35
|
|
|
36
36
|
|
|
37
37
|
|
|
38
|
-
exports.authorize =
|
|
38
|
+
exports.authorize = _chunk56SO5YDQcjs.authorize; exports.createClient = createClient; exports.getClient = getClient; exports.webhooks = webhooks;
|
package/dist/apis/webhooks.js
CHANGED
|
@@ -6,25 +6,25 @@ var _chunkADX7IYB3cjs = require('../chunk-ADX7IYB3.cjs');
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunk56SO5YDQcjs = require('../chunk-56SO5YDQ.cjs');
|
|
10
10
|
require('../chunk-NJK5F5TF.cjs');
|
|
11
11
|
|
|
12
12
|
// src/apis/workflow-definition.ts
|
|
13
13
|
var loadDefinition = () => {
|
|
14
14
|
const mod = _chunkADX7IYB3cjs.require_workflow_definition_runtime.call(void 0, );
|
|
15
|
-
return
|
|
15
|
+
return _chunk56SO5YDQcjs.expand.call(void 0, _nullishCoalesce(mod.default, () => ( mod)));
|
|
16
16
|
};
|
|
17
17
|
var _instance = null;
|
|
18
18
|
var resolve = () => {
|
|
19
19
|
if (!_instance) {
|
|
20
20
|
const def = loadDefinition();
|
|
21
|
-
_instance =
|
|
21
|
+
_instance = _chunk56SO5YDQcjs.createApiClient.call(void 0, { definition: def, apiName: "workflowDefinition" });
|
|
22
22
|
}
|
|
23
23
|
return _instance;
|
|
24
24
|
};
|
|
25
|
-
var _handle =
|
|
25
|
+
var _handle = _chunk56SO5YDQcjs.createApiHandle.call(void 0, {
|
|
26
26
|
resolveClient: resolve,
|
|
27
|
-
createClient: () =>
|
|
27
|
+
createClient: () => _chunk56SO5YDQcjs.createApiClient.call(void 0, { definition: loadDefinition(), apiName: "workflowDefinition" }),
|
|
28
28
|
apiName: "workflowDefinition"
|
|
29
29
|
});
|
|
30
30
|
var getClient = _handle.getClient;
|
|
@@ -35,4 +35,4 @@ var workflowDefinition = _handle;
|
|
|
35
35
|
|
|
36
36
|
|
|
37
37
|
|
|
38
|
-
exports.authorize =
|
|
38
|
+
exports.authorize = _chunk56SO5YDQcjs.authorize; exports.createClient = createClient; exports.getClient = getClient; exports.workflowDefinition = workflowDefinition;
|
package/dist/apis/workflow.cjs
CHANGED
|
@@ -6,25 +6,25 @@ var _chunkPM25LLETcjs = require('../chunk-PM25LLET.cjs');
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunk56SO5YDQcjs = require('../chunk-56SO5YDQ.cjs');
|
|
10
10
|
require('../chunk-NJK5F5TF.cjs');
|
|
11
11
|
|
|
12
12
|
// src/apis/workflow.ts
|
|
13
13
|
var loadDefinition = () => {
|
|
14
14
|
const mod = _chunkPM25LLETcjs.require_workflow_runtime.call(void 0, );
|
|
15
|
-
return
|
|
15
|
+
return _chunk56SO5YDQcjs.expand.call(void 0, _nullishCoalesce(mod.default, () => ( mod)));
|
|
16
16
|
};
|
|
17
17
|
var _instance = null;
|
|
18
18
|
var resolve = () => {
|
|
19
19
|
if (!_instance) {
|
|
20
20
|
const def = loadDefinition();
|
|
21
|
-
_instance =
|
|
21
|
+
_instance = _chunk56SO5YDQcjs.createApiClient.call(void 0, { definition: def, apiName: "workflow" });
|
|
22
22
|
}
|
|
23
23
|
return _instance;
|
|
24
24
|
};
|
|
25
|
-
var _handle =
|
|
25
|
+
var _handle = _chunk56SO5YDQcjs.createApiHandle.call(void 0, {
|
|
26
26
|
resolveClient: resolve,
|
|
27
|
-
createClient: () =>
|
|
27
|
+
createClient: () => _chunk56SO5YDQcjs.createApiClient.call(void 0, { definition: loadDefinition(), apiName: "workflow" }),
|
|
28
28
|
apiName: "workflow"
|
|
29
29
|
});
|
|
30
30
|
var getClient = _handle.getClient;
|
|
@@ -35,4 +35,4 @@ var workflow = _handle;
|
|
|
35
35
|
|
|
36
36
|
|
|
37
37
|
|
|
38
|
-
exports.authorize =
|
|
38
|
+
exports.authorize = _chunk56SO5YDQcjs.authorize; exports.createClient = createClient; exports.getClient = getClient; exports.workflow = workflow;
|
package/dist/apis/workflow.js
CHANGED
|
@@ -44,7 +44,7 @@ var globImport_docs = _chunkNJK5F5TFcjs.__glob.call(void 0, {
|
|
|
44
44
|
"./docs/customer-portal.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./customer-portal-JDIXJD6C.cjs"))),
|
|
45
45
|
"./docs/dashboard.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./dashboard-UHYR5RTY.cjs"))),
|
|
46
46
|
"./docs/data-governance.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./data-governance-2U5UU4GM.cjs"))),
|
|
47
|
-
"./docs/deduplication.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./deduplication-
|
|
47
|
+
"./docs/deduplication.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./deduplication-FFW7L6P5.cjs"))),
|
|
48
48
|
"./docs/design.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./design-W3D3UPGB.cjs"))),
|
|
49
49
|
"./docs/document.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./document-RYQ7MF6U.cjs"))),
|
|
50
50
|
"./docs/email-settings.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./email-settings-RHMYC2KT.cjs"))),
|
|
@@ -128,7 +128,7 @@ var globImport_definitions_json = _chunkNJK5F5TFcjs.__glob.call(void 0, {
|
|
|
128
128
|
"./definitions/dashboard.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./dashboard-RKUQLIME.cjs"))),
|
|
129
129
|
"./definitions/data-governance-runtime.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./data-governance-runtime-TDGFG67G.cjs"))),
|
|
130
130
|
"./definitions/data-governance.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./data-governance-ZJ2K4ZWX.cjs"))),
|
|
131
|
-
"./definitions/deduplication-runtime.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./deduplication-runtime-
|
|
131
|
+
"./definitions/deduplication-runtime.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./deduplication-runtime-FU24WISY.cjs"))),
|
|
132
132
|
"./definitions/deduplication.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./deduplication-7RTGTLN5.cjs"))),
|
|
133
133
|
"./definitions/design-runtime.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./design-runtime-3RHYNHUV.cjs"))),
|
|
134
134
|
"./definitions/design.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./design-AO6EGLHD.cjs"))),
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
// src/definitions/deduplication-runtime.json
|
|
6
6
|
var require_deduplication_runtime = __commonJS({
|
|
7
7
|
"src/definitions/deduplication-runtime.json"(exports, module) {
|
|
8
|
-
module.exports = { s: "https://deduplication.sls.epilot.io", o: [["deduplicate", "post", "/v1/deduplicate", null, 1], ["deduplicateAsync", "post", "/v1/deduplicate/job", null, 1], ["getDeduplicationJob", "get", "/v1/deduplicate/jobs/{jobId}", [["jobId", "p", true]]], ["detectDuplicates", "post", "/v1/detect-duplicates", null, 1], ["listUniquenessCriteria", "get", "/v1/uniqueness-criteria", [["schema", "q"]]], ["createUniquenessCriteria", "post", "/v1/uniqueness-criteria", null, 1], ["getUniquenessCriteria", "get", "/v1/uniqueness-criteria/{schema}", [["schema", "p", true]]], ["updateUniquenessCriteria", "put", "/v1/uniqueness-criteria/{schema}", [["schema", "p", true]], 1], ["deleteUniquenessCriteria", "delete", "/v1/uniqueness-criteria/{schema}", [["schema", "p", true]]]] };
|
|
8
|
+
module.exports = { s: "https://deduplication.sls.epilot.io", o: [["deduplicate", "post", "/v1/deduplicate", null, 1], ["deduplicateAsync", "post", "/v1/deduplicate/job", null, 1], ["getDeduplicationJob", "get", "/v1/deduplicate/jobs/{jobId}", [["jobId", "p", true]]], ["detectDuplicates", "post", "/v1/detect-duplicates", null, 1], ["dismissDuplicates", "post", "/v1/duplicates/dismiss", null, 1], ["listUniquenessCriteria", "get", "/v1/uniqueness-criteria", [["schema", "q"]]], ["createUniquenessCriteria", "post", "/v1/uniqueness-criteria", null, 1], ["getUniquenessCriteria", "get", "/v1/uniqueness-criteria/{schema}", [["schema", "p", true]]], ["updateUniquenessCriteria", "put", "/v1/uniqueness-criteria/{schema}", [["schema", "p", true]], 1], ["deleteUniquenessCriteria", "delete", "/v1/uniqueness-criteria/{schema}", [["schema", "p", true]]]] };
|
|
9
9
|
}
|
|
10
10
|
});
|
|
11
11
|
|
|
@@ -5,7 +5,7 @@ var _chunkNJK5F5TFcjs = require('./chunk-NJK5F5TF.cjs');
|
|
|
5
5
|
// src/definitions/deduplication-runtime.json
|
|
6
6
|
var require_deduplication_runtime = _chunkNJK5F5TFcjs.__commonJS.call(void 0, {
|
|
7
7
|
"src/definitions/deduplication-runtime.json"(exports, module) {
|
|
8
|
-
module.exports = { s: "https://deduplication.sls.epilot.io", o: [["deduplicate", "post", "/v1/deduplicate", null, 1], ["deduplicateAsync", "post", "/v1/deduplicate/job", null, 1], ["getDeduplicationJob", "get", "/v1/deduplicate/jobs/{jobId}", [["jobId", "p", true]]], ["detectDuplicates", "post", "/v1/detect-duplicates", null, 1], ["listUniquenessCriteria", "get", "/v1/uniqueness-criteria", [["schema", "q"]]], ["createUniquenessCriteria", "post", "/v1/uniqueness-criteria", null, 1], ["getUniquenessCriteria", "get", "/v1/uniqueness-criteria/{schema}", [["schema", "p", true]]], ["updateUniquenessCriteria", "put", "/v1/uniqueness-criteria/{schema}", [["schema", "p", true]], 1], ["deleteUniquenessCriteria", "delete", "/v1/uniqueness-criteria/{schema}", [["schema", "p", true]]]] };
|
|
8
|
+
module.exports = { s: "https://deduplication.sls.epilot.io", o: [["deduplicate", "post", "/v1/deduplicate", null, 1], ["deduplicateAsync", "post", "/v1/deduplicate/job", null, 1], ["getDeduplicationJob", "get", "/v1/deduplicate/jobs/{jobId}", [["jobId", "p", true]]], ["detectDuplicates", "post", "/v1/detect-duplicates", null, 1], ["dismissDuplicates", "post", "/v1/duplicates/dismiss", null, 1], ["listUniquenessCriteria", "get", "/v1/uniqueness-criteria", [["schema", "q"]]], ["createUniquenessCriteria", "post", "/v1/uniqueness-criteria", null, 1], ["getUniquenessCriteria", "get", "/v1/uniqueness-criteria/{schema}", [["schema", "p", true]]], ["updateUniquenessCriteria", "put", "/v1/uniqueness-criteria/{schema}", [["schema", "p", true]], 1], ["deleteUniquenessCriteria", "delete", "/v1/uniqueness-criteria/{schema}", [["schema", "p", true]]]] };
|
|
9
9
|
}
|
|
10
10
|
});
|
|
11
11
|
|
|
@@ -44,7 +44,7 @@ var globImport_docs = __glob({
|
|
|
44
44
|
"./docs/customer-portal.json": () => import("./customer-portal-WIRQ7UCN.js"),
|
|
45
45
|
"./docs/dashboard.json": () => import("./dashboard-UTPGXFW5.js"),
|
|
46
46
|
"./docs/data-governance.json": () => import("./data-governance-36Y33JVG.js"),
|
|
47
|
-
"./docs/deduplication.json": () => import("./deduplication-
|
|
47
|
+
"./docs/deduplication.json": () => import("./deduplication-JNS7SSUR.js"),
|
|
48
48
|
"./docs/design.json": () => import("./design-DUFBH5ZB.js"),
|
|
49
49
|
"./docs/document.json": () => import("./document-CY2A2OE7.js"),
|
|
50
50
|
"./docs/email-settings.json": () => import("./email-settings-ECSU7KWC.js"),
|
|
@@ -128,7 +128,7 @@ var globImport_definitions_json = __glob({
|
|
|
128
128
|
"./definitions/dashboard.json": () => import("./dashboard-UDL26RGG.js"),
|
|
129
129
|
"./definitions/data-governance-runtime.json": () => import("./data-governance-runtime-LITKCNSG.js"),
|
|
130
130
|
"./definitions/data-governance.json": () => import("./data-governance-PLS5TJ7Z.js"),
|
|
131
|
-
"./definitions/deduplication-runtime.json": () => import("./deduplication-runtime-
|
|
131
|
+
"./definitions/deduplication-runtime.json": () => import("./deduplication-runtime-52CD6PA3.js"),
|
|
132
132
|
"./definitions/deduplication.json": () => import("./deduplication-RKLRTNZU.js"),
|
|
133
133
|
"./definitions/design-runtime.json": () => import("./design-runtime-DLMA4EHQ.js"),
|
|
134
134
|
"./definitions/design.json": () => import("./design-VLRA2WGV.js"),
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('./chunk-NJK5F5TF.cjs');
|
|
2
|
+
|
|
3
|
+
// src/docs/deduplication.json
|
|
4
|
+
var deduplication_default = '# Deduplication API\n\n- **Base URL:** `https://deduplication.sls.epilot.io`\n- **Full API Docs:** [https://docs.epilot.io/api/deduplication](https://docs.epilot.io/api/deduplication)\n\n## Usage\n\n```ts\nimport { epilot } from \'@epilot/sdk\'\n\nepilot.authorize(() => \'<token>\')\nconst { data } = await epilot.deduplication.deduplicate(...)\n```\n\n### Tree-shakeable import\n\n```ts\nimport { getClient, authorize } from \'@epilot/sdk/deduplication\'\n\nconst deduplicationClient = getClient()\nauthorize(deduplicationClient, () => \'<token>\')\nconst { data } = await deduplicationClient.deduplicate(...)\n```\n\n## Operations\n\n- [`deduplicate`](#deduplicate)\n- [`deduplicateAsync`](#deduplicateasync)\n- [`getDeduplicationJob`](#getdeduplicationjob)\n- [`detectDuplicates`](#detectduplicates)\n- [`dismissDuplicates`](#dismissduplicates)\n- [`listUniquenessCriteria`](#listuniquenesscriteria)\n- [`createUniquenessCriteria`](#createuniquenesscriteria)\n- [`getUniquenessCriteria`](#getuniquenesscriteria)\n- [`updateUniquenessCriteria`](#updateuniquenesscriteria)\n- [`deleteUniquenessCriteria`](#deleteuniquenesscriteria)\n\n**Schemas**\n- [`DeduplicateRequestBody`](#deduplicaterequestbody)\n- [`DeduplicateRequestResponse`](#deduplicaterequestresponse)\n- [`Entity`](#entity)\n- [`DeduplicateAsyncResponse`](#deduplicateasyncresponse)\n- [`JobStatus`](#jobstatus)\n- [`DeduplicationJob`](#deduplicationjob)\n- [`DetectDuplicatesRequestBody`](#detectduplicatesrequestbody)\n- [`DetectDuplicatesResponse`](#detectduplicatesresponse)\n- [`DetectedDuplicateMatch`](#detectedduplicatematch)\n- [`DismissDuplicatesRequestBody`](#dismissduplicatesrequestbody)\n- [`DismissDuplicatesResponse`](#dismissduplicatesresponse)\n- [`UniquenessCriteriaListResponse`](#uniquenesscriterialistresponse)\n- [`UniquenessCriteria`](#uniquenesscriteria)\n- [`MatchRule`](#matchrule)\n- [`MatchAttribute`](#matchattribute)\n- [`UniquenessCriteriaCreateBody`](#uniquenesscriteriacreatebody)\n- [`UniquenessCriteriaUpdateBody`](#uniquenesscriteriaupdatebody)\n\n### `deduplicate`\n\nDeduplicates Entities\n\n`POST /v1/deduplicate`\n\n```ts\nconst { data } = await client.deduplicate(\n null,\n [\n {\n toKeep: \'string\',\n toDelete: [\'string\']\n }\n ],\n)\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "deduplicatedEntities": [\n {\n "_id": "string",\n "_org": "string",\n "_schema": "string",\n "_created_at": "1970-01-01T00:00:00.000Z",\n "_updated_at": "1970-01-01T00:00:00.000Z",\n "_created_by": "string",\n "created_by": "string",\n "_tags": ["string"],\n "_acl": {},\n "_owners": [\n {\n "org_id": "string",\n "user_id": "string"\n }\n ],\n "type": "string"\n }\n ]\n}\n```\n\n</details>\n\n---\n\n### `deduplicateAsync`\n\nSubmits an async deduplication job. Returns a job ID immediately. Poll GET /v1/deduplicate/jobs/{jobId} for status.\n\n`POST /v1/deduplicate/job`\n\n```ts\nconst { data } = await client.deduplicateAsync(\n null,\n [\n {\n toKeep: \'string\',\n toDelete: [\'string\']\n }\n ],\n)\n```\n\n---\n\n### `getDeduplicationJob`\n\nReturns the current status of an async deduplication job\n\n`GET /v1/deduplicate/jobs/{jobId}`\n\n```ts\nconst { data } = await client.getDeduplicationJob({\n jobId: \'example\',\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "jobId": "string",\n "status": "pending",\n "message": "string",\n "result": [\n {\n "_id": "string",\n "_org": "string",\n "_schema": "string",\n "_created_at": "1970-01-01T00:00:00.000Z",\n "_updated_at": "1970-01-01T00:00:00.000Z",\n "_created_by": "string",\n "created_by": "string",\n "_tags": ["string"],\n "_acl": {},\n "_owners": [\n {\n "org_id": "string",\n "user_id": "string"\n }\n ],\n "type": "string"\n }\n ],\n "createdAt": "1970-01-01T00:00:00.000Z",\n "updatedAt": "1970-01-01T00:00:00.000Z"\n}\n```\n\n</details>\n\n---\n\n### `detectDuplicates`\n\nDetects potential duplicate entities for the given entity using the schema\'s prioritized uniqueness rules. Returns matches with a confidence score.\n\n`POST /v1/detect-duplicates`\n\n```ts\nconst { data } = await client.detectDuplicates(\n null,\n {\n schema: \'string\',\n entity: {}\n },\n)\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "matches": [\n {\n "entity": {\n "_id": "string",\n "_org": "string",\n "_schema": "string",\n "_created_at": "1970-01-01T00:00:00.000Z",\n "_updated_at": "1970-01-01T00:00:00.000Z",\n "_created_by": "string",\n "created_by": "string",\n "_tags": ["string"],\n "_acl": {},\n "_owners": [\n {\n "org_id": "string",\n "user_id": "string"\n }\n ],\n "type": "string"\n },\n "confidence": 0,\n "matched_attributes": ["string"]\n }\n ]\n}\n```\n\n</details>\n\n---\n\n### `dismissDuplicates`\n\nConfirms entities as NOT duplicates: clears the internal duplicate-detection flags (_matching_entities) on each given entity, so they stop appearing as open duplicate sets. The records themselves are \n\n`POST /v1/duplicates/dismiss`\n\n```ts\nconst { data } = await client.dismissDuplicates(\n null,\n {\n schema: \'string\',\n entityIds: [\'string\']\n },\n)\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "dismissed": ["string"]\n}\n```\n\n</details>\n\n---\n\n### `listUniquenessCriteria`\n\nLists UniquenessCriteria for the requesting organization. Optionally filtered by schema.\n\n`GET /v1/uniqueness-criteria`\n\n```ts\nconst { data } = await client.listUniquenessCriteria({\n schema: \'example\',\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "items": [\n {\n "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",\n "orgId": "string",\n "schema": "string",\n "matchRules": [\n {\n "name": "string",\n "attributes": [\n {\n "attribute": "string"\n }\n ],\n "confidence": 0\n }\n ],\n "createdAt": "1970-01-01T00:00:00.000Z",\n "updatedAt": "1970-01-01T00:00:00.000Z"\n }\n ]\n}\n```\n\n</details>\n\n---\n\n### `createUniquenessCriteria`\n\nCreates a new UniquenessCriteria record.\n\n`POST /v1/uniqueness-criteria`\n\n```ts\nconst { data } = await client.createUniquenessCriteria(\n null,\n {\n schema: \'string\',\n matchRules: [\n {\n name: \'string\',\n attributes: [\n {\n attribute: \'string\'\n }\n ],\n confidence: 0\n }\n ]\n },\n)\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",\n "orgId": "string",\n "schema": "string",\n "matchRules": [\n {\n "name": "string",\n "attributes": [\n {\n "attribute": "string"\n }\n ],\n "confidence": 0\n }\n ],\n "createdAt": "1970-01-01T00:00:00.000Z",\n "updatedAt": "1970-01-01T00:00:00.000Z"\n}\n```\n\n</details>\n\n---\n\n### `getUniquenessCriteria`\n\nFetch a single UniquenessCriteria record.\n\n`GET /v1/uniqueness-criteria/{schema}`\n\n```ts\nconst { data } = await client.getUniquenessCriteria({\n schema: \'example\',\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",\n "orgId": "string",\n "schema": "string",\n "matchRules": [\n {\n "name": "string",\n "attributes": [\n {\n "attribute": "string"\n }\n ],\n "confidence": 0\n }\n ],\n "createdAt": "1970-01-01T00:00:00.000Z",\n "updatedAt": "1970-01-01T00:00:00.000Z"\n}\n```\n\n</details>\n\n---\n\n### `updateUniquenessCriteria`\n\nReplace the matchRules on an existing UniquenessCriteria record.\n\n`PUT /v1/uniqueness-criteria/{schema}`\n\n```ts\nconst { data } = await client.updateUniquenessCriteria(\n {\n schema: \'example\',\n },\n {\n matchRules: [\n {\n name: \'string\',\n attributes: [\n {\n attribute: \'string\'\n }\n ],\n confidence: 0\n }\n ]\n },\n)\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",\n "orgId": "string",\n "schema": "string",\n "matchRules": [\n {\n "name": "string",\n "attributes": [\n {\n "attribute": "string"\n }\n ],\n "confidence": 0\n }\n ],\n "createdAt": "1970-01-01T00:00:00.000Z",\n "updatedAt": "1970-01-01T00:00:00.000Z"\n}\n```\n\n</details>\n\n---\n\n### `deleteUniquenessCriteria`\n\nDelete a UniquenessCriteria record.\n\n`DELETE /v1/uniqueness-criteria/{schema}`\n\n```ts\nconst { data } = await client.deleteUniquenessCriteria({\n schema: \'example\',\n})\n```\n\n---\n\n## Schemas\n\n### `DeduplicateRequestBody`\n\n```ts\ntype DeduplicateRequestBody = Array<{\n toKeep: string\n toDelete: string[]\n}>\n```\n\n### `DeduplicateRequestResponse`\n\n```ts\ntype DeduplicateRequestResponse = {\n deduplicatedEntities: Array<{\n _id: string\n _org?: string\n _schema?: string\n _created_at?: string // date-time\n _updated_at?: string // date-time\n _created_by?: string | number\n created_by?: string | number\n _tags?: string[]\n _acl?: Record<string, string[]>\n _owners?: Array<{\n org_id: { ... }\n user_id: { ... }\n }>\n type?: string\n }>\n}\n```\n\n### `Entity`\n\nBase Entity schema\n\n```ts\ntype Entity = {\n _id: string\n _org?: string\n _schema?: string\n _created_at?: string // date-time\n _updated_at?: string // date-time\n _created_by?: string | number\n created_by?: string | number\n _tags?: string[]\n _acl?: Record<string, string[]>\n _owners?: Array<{\n org_id: string\n user_id: string\n }>\n type?: string\n}\n```\n\n### `DeduplicateAsyncResponse`\n\nResponse returned immediately when a deduplication job is submitted\n\n```ts\ntype DeduplicateAsyncResponse = {\n jobId: string\n status: "pending" | "processing" | "completed" | "failed"\n message: string\n}\n```\n\n### `JobStatus`\n\n```ts\ntype JobStatus = "pending" | "processing" | "completed" | "failed"\n```\n\n### `DeduplicationJob`\n\nRepresents an async deduplication job\n\n```ts\ntype DeduplicationJob = {\n jobId: string\n status: "pending" | "processing" | "completed" | "failed"\n message?: string\n result?: Array<{\n _id: string\n _org?: string\n _schema?: string\n _created_at?: string // date-time\n _updated_at?: string // date-time\n _created_by?: string | number\n created_by?: string | number\n _tags?: string[]\n _acl?: Record<string, string[]>\n _owners?: Array<{\n org_id: { ... }\n user_id: { ... }\n }>\n type?: string\n }>\n createdAt: string // date-time\n updatedAt: string // date-time\n}\n```\n\n### `DetectDuplicatesRequestBody`\n\n```ts\ntype DetectDuplicatesRequestBody = {\n schema: string\n entity: Record<string, unknown>\n}\n```\n\n### `DetectDuplicatesResponse`\n\n```ts\ntype DetectDuplicatesResponse = {\n matches: Array<{\n entity: {\n _id: { ... }\n _org?: { ... }\n _schema?: { ... }\n _created_at?: { ... }\n _updated_at?: { ... }\n _created_by?: { ... }\n created_by?: { ... }\n _tags?: { ... }\n _acl?: { ... }\n _owners?: { ... }\n type?: { ... }\n }\n confidence: number\n matched_attributes: string[]\n }>\n}\n```\n\n### `DetectedDuplicateMatch`\n\n```ts\ntype DetectedDuplicateMatch = {\n entity: {\n _id: string\n _org?: string\n _schema?: string\n _created_at?: string // date-time\n _updated_at?: string // date-time\n _created_by?: string | number\n created_by?: string | number\n _tags?: string[]\n _acl?: Record<string, string[]>\n _owners?: Array<{\n org_id: { ... }\n user_id: { ... }\n }>\n type?: string\n }\n confidence: number\n matched_attributes: string[]\n}\n```\n\n### `DismissDuplicatesRequestBody`\n\n```ts\ntype DismissDuplicatesRequestBody = {\n schema: string\n entityIds: string[]\n}\n```\n\n### `DismissDuplicatesResponse`\n\n```ts\ntype DismissDuplicatesResponse = {\n dismissed: string[]\n}\n```\n\n### `UniquenessCriteriaListResponse`\n\n```ts\ntype UniquenessCriteriaListResponse = {\n items: Array<{\n id: string // uuid\n orgId: string\n schema: string\n matchRules: Array<{\n name?: { ... }\n attributes: { ... }\n confidence: { ... }\n }>\n createdAt: string // date-time\n updatedAt: string // date-time\n }>\n}\n```\n\n### `UniquenessCriteria`\n\nDefines what makes an entity of a given schema unique within an organization.\n\n```ts\ntype UniquenessCriteria = {\n id: string // uuid\n orgId: string\n schema: string\n matchRules: Array<{\n name?: string\n attributes: Array<{\n attribute: { ... }\n }>\n confidence: number\n }>\n createdAt: string // date-time\n updatedAt: string // date-time\n}\n```\n\n### `MatchRule`\n\nOne way to identify the same entity. Evaluated in order; first rule whose attributes are all available and that returns hits wins.\n\n```ts\ntype MatchRule = {\n name?: string\n attributes: Array<{\n attribute: string\n }>\n confidence: number\n}\n```\n\n### `MatchAttribute`\n\nOne attribute participating in a match rule. Wrapped as an object so per-attribute options can be added later.\n\n```ts\ntype MatchAttribute = {\n attribute: string\n}\n```\n\n### `UniquenessCriteriaCreateBody`\n\n```ts\ntype UniquenessCriteriaCreateBody = {\n schema: string\n matchRules: Array<{\n name?: string\n attributes: Array<{\n attribute: { ... }\n }>\n confidence: number\n }>\n}\n```\n\n### `UniquenessCriteriaUpdateBody`\n\n```ts\ntype UniquenessCriteriaUpdateBody = {\n matchRules: Array<{\n name?: string\n attributes: Array<{\n attribute: { ... }\n }>\n confidence: number\n }>\n}\n```\n';
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
exports.default = deduplication_default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import "./chunk-YPSWSI3M.js";
|
|
2
|
+
|
|
3
|
+
// src/docs/deduplication.json
|
|
4
|
+
var deduplication_default = '# Deduplication API\n\n- **Base URL:** `https://deduplication.sls.epilot.io`\n- **Full API Docs:** [https://docs.epilot.io/api/deduplication](https://docs.epilot.io/api/deduplication)\n\n## Usage\n\n```ts\nimport { epilot } from \'@epilot/sdk\'\n\nepilot.authorize(() => \'<token>\')\nconst { data } = await epilot.deduplication.deduplicate(...)\n```\n\n### Tree-shakeable import\n\n```ts\nimport { getClient, authorize } from \'@epilot/sdk/deduplication\'\n\nconst deduplicationClient = getClient()\nauthorize(deduplicationClient, () => \'<token>\')\nconst { data } = await deduplicationClient.deduplicate(...)\n```\n\n## Operations\n\n- [`deduplicate`](#deduplicate)\n- [`deduplicateAsync`](#deduplicateasync)\n- [`getDeduplicationJob`](#getdeduplicationjob)\n- [`detectDuplicates`](#detectduplicates)\n- [`dismissDuplicates`](#dismissduplicates)\n- [`listUniquenessCriteria`](#listuniquenesscriteria)\n- [`createUniquenessCriteria`](#createuniquenesscriteria)\n- [`getUniquenessCriteria`](#getuniquenesscriteria)\n- [`updateUniquenessCriteria`](#updateuniquenesscriteria)\n- [`deleteUniquenessCriteria`](#deleteuniquenesscriteria)\n\n**Schemas**\n- [`DeduplicateRequestBody`](#deduplicaterequestbody)\n- [`DeduplicateRequestResponse`](#deduplicaterequestresponse)\n- [`Entity`](#entity)\n- [`DeduplicateAsyncResponse`](#deduplicateasyncresponse)\n- [`JobStatus`](#jobstatus)\n- [`DeduplicationJob`](#deduplicationjob)\n- [`DetectDuplicatesRequestBody`](#detectduplicatesrequestbody)\n- [`DetectDuplicatesResponse`](#detectduplicatesresponse)\n- [`DetectedDuplicateMatch`](#detectedduplicatematch)\n- [`DismissDuplicatesRequestBody`](#dismissduplicatesrequestbody)\n- [`DismissDuplicatesResponse`](#dismissduplicatesresponse)\n- [`UniquenessCriteriaListResponse`](#uniquenesscriterialistresponse)\n- [`UniquenessCriteria`](#uniquenesscriteria)\n- [`MatchRule`](#matchrule)\n- [`MatchAttribute`](#matchattribute)\n- [`UniquenessCriteriaCreateBody`](#uniquenesscriteriacreatebody)\n- [`UniquenessCriteriaUpdateBody`](#uniquenesscriteriaupdatebody)\n\n### `deduplicate`\n\nDeduplicates Entities\n\n`POST /v1/deduplicate`\n\n```ts\nconst { data } = await client.deduplicate(\n null,\n [\n {\n toKeep: \'string\',\n toDelete: [\'string\']\n }\n ],\n)\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "deduplicatedEntities": [\n {\n "_id": "string",\n "_org": "string",\n "_schema": "string",\n "_created_at": "1970-01-01T00:00:00.000Z",\n "_updated_at": "1970-01-01T00:00:00.000Z",\n "_created_by": "string",\n "created_by": "string",\n "_tags": ["string"],\n "_acl": {},\n "_owners": [\n {\n "org_id": "string",\n "user_id": "string"\n }\n ],\n "type": "string"\n }\n ]\n}\n```\n\n</details>\n\n---\n\n### `deduplicateAsync`\n\nSubmits an async deduplication job. Returns a job ID immediately. Poll GET /v1/deduplicate/jobs/{jobId} for status.\n\n`POST /v1/deduplicate/job`\n\n```ts\nconst { data } = await client.deduplicateAsync(\n null,\n [\n {\n toKeep: \'string\',\n toDelete: [\'string\']\n }\n ],\n)\n```\n\n---\n\n### `getDeduplicationJob`\n\nReturns the current status of an async deduplication job\n\n`GET /v1/deduplicate/jobs/{jobId}`\n\n```ts\nconst { data } = await client.getDeduplicationJob({\n jobId: \'example\',\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "jobId": "string",\n "status": "pending",\n "message": "string",\n "result": [\n {\n "_id": "string",\n "_org": "string",\n "_schema": "string",\n "_created_at": "1970-01-01T00:00:00.000Z",\n "_updated_at": "1970-01-01T00:00:00.000Z",\n "_created_by": "string",\n "created_by": "string",\n "_tags": ["string"],\n "_acl": {},\n "_owners": [\n {\n "org_id": "string",\n "user_id": "string"\n }\n ],\n "type": "string"\n }\n ],\n "createdAt": "1970-01-01T00:00:00.000Z",\n "updatedAt": "1970-01-01T00:00:00.000Z"\n}\n```\n\n</details>\n\n---\n\n### `detectDuplicates`\n\nDetects potential duplicate entities for the given entity using the schema\'s prioritized uniqueness rules. Returns matches with a confidence score.\n\n`POST /v1/detect-duplicates`\n\n```ts\nconst { data } = await client.detectDuplicates(\n null,\n {\n schema: \'string\',\n entity: {}\n },\n)\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "matches": [\n {\n "entity": {\n "_id": "string",\n "_org": "string",\n "_schema": "string",\n "_created_at": "1970-01-01T00:00:00.000Z",\n "_updated_at": "1970-01-01T00:00:00.000Z",\n "_created_by": "string",\n "created_by": "string",\n "_tags": ["string"],\n "_acl": {},\n "_owners": [\n {\n "org_id": "string",\n "user_id": "string"\n }\n ],\n "type": "string"\n },\n "confidence": 0,\n "matched_attributes": ["string"]\n }\n ]\n}\n```\n\n</details>\n\n---\n\n### `dismissDuplicates`\n\nConfirms entities as NOT duplicates: clears the internal duplicate-detection flags (_matching_entities) on each given entity, so they stop appearing as open duplicate sets. The records themselves are \n\n`POST /v1/duplicates/dismiss`\n\n```ts\nconst { data } = await client.dismissDuplicates(\n null,\n {\n schema: \'string\',\n entityIds: [\'string\']\n },\n)\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "dismissed": ["string"]\n}\n```\n\n</details>\n\n---\n\n### `listUniquenessCriteria`\n\nLists UniquenessCriteria for the requesting organization. Optionally filtered by schema.\n\n`GET /v1/uniqueness-criteria`\n\n```ts\nconst { data } = await client.listUniquenessCriteria({\n schema: \'example\',\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "items": [\n {\n "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",\n "orgId": "string",\n "schema": "string",\n "matchRules": [\n {\n "name": "string",\n "attributes": [\n {\n "attribute": "string"\n }\n ],\n "confidence": 0\n }\n ],\n "createdAt": "1970-01-01T00:00:00.000Z",\n "updatedAt": "1970-01-01T00:00:00.000Z"\n }\n ]\n}\n```\n\n</details>\n\n---\n\n### `createUniquenessCriteria`\n\nCreates a new UniquenessCriteria record.\n\n`POST /v1/uniqueness-criteria`\n\n```ts\nconst { data } = await client.createUniquenessCriteria(\n null,\n {\n schema: \'string\',\n matchRules: [\n {\n name: \'string\',\n attributes: [\n {\n attribute: \'string\'\n }\n ],\n confidence: 0\n }\n ]\n },\n)\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",\n "orgId": "string",\n "schema": "string",\n "matchRules": [\n {\n "name": "string",\n "attributes": [\n {\n "attribute": "string"\n }\n ],\n "confidence": 0\n }\n ],\n "createdAt": "1970-01-01T00:00:00.000Z",\n "updatedAt": "1970-01-01T00:00:00.000Z"\n}\n```\n\n</details>\n\n---\n\n### `getUniquenessCriteria`\n\nFetch a single UniquenessCriteria record.\n\n`GET /v1/uniqueness-criteria/{schema}`\n\n```ts\nconst { data } = await client.getUniquenessCriteria({\n schema: \'example\',\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",\n "orgId": "string",\n "schema": "string",\n "matchRules": [\n {\n "name": "string",\n "attributes": [\n {\n "attribute": "string"\n }\n ],\n "confidence": 0\n }\n ],\n "createdAt": "1970-01-01T00:00:00.000Z",\n "updatedAt": "1970-01-01T00:00:00.000Z"\n}\n```\n\n</details>\n\n---\n\n### `updateUniquenessCriteria`\n\nReplace the matchRules on an existing UniquenessCriteria record.\n\n`PUT /v1/uniqueness-criteria/{schema}`\n\n```ts\nconst { data } = await client.updateUniquenessCriteria(\n {\n schema: \'example\',\n },\n {\n matchRules: [\n {\n name: \'string\',\n attributes: [\n {\n attribute: \'string\'\n }\n ],\n confidence: 0\n }\n ]\n },\n)\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",\n "orgId": "string",\n "schema": "string",\n "matchRules": [\n {\n "name": "string",\n "attributes": [\n {\n "attribute": "string"\n }\n ],\n "confidence": 0\n }\n ],\n "createdAt": "1970-01-01T00:00:00.000Z",\n "updatedAt": "1970-01-01T00:00:00.000Z"\n}\n```\n\n</details>\n\n---\n\n### `deleteUniquenessCriteria`\n\nDelete a UniquenessCriteria record.\n\n`DELETE /v1/uniqueness-criteria/{schema}`\n\n```ts\nconst { data } = await client.deleteUniquenessCriteria({\n schema: \'example\',\n})\n```\n\n---\n\n## Schemas\n\n### `DeduplicateRequestBody`\n\n```ts\ntype DeduplicateRequestBody = Array<{\n toKeep: string\n toDelete: string[]\n}>\n```\n\n### `DeduplicateRequestResponse`\n\n```ts\ntype DeduplicateRequestResponse = {\n deduplicatedEntities: Array<{\n _id: string\n _org?: string\n _schema?: string\n _created_at?: string // date-time\n _updated_at?: string // date-time\n _created_by?: string | number\n created_by?: string | number\n _tags?: string[]\n _acl?: Record<string, string[]>\n _owners?: Array<{\n org_id: { ... }\n user_id: { ... }\n }>\n type?: string\n }>\n}\n```\n\n### `Entity`\n\nBase Entity schema\n\n```ts\ntype Entity = {\n _id: string\n _org?: string\n _schema?: string\n _created_at?: string // date-time\n _updated_at?: string // date-time\n _created_by?: string | number\n created_by?: string | number\n _tags?: string[]\n _acl?: Record<string, string[]>\n _owners?: Array<{\n org_id: string\n user_id: string\n }>\n type?: string\n}\n```\n\n### `DeduplicateAsyncResponse`\n\nResponse returned immediately when a deduplication job is submitted\n\n```ts\ntype DeduplicateAsyncResponse = {\n jobId: string\n status: "pending" | "processing" | "completed" | "failed"\n message: string\n}\n```\n\n### `JobStatus`\n\n```ts\ntype JobStatus = "pending" | "processing" | "completed" | "failed"\n```\n\n### `DeduplicationJob`\n\nRepresents an async deduplication job\n\n```ts\ntype DeduplicationJob = {\n jobId: string\n status: "pending" | "processing" | "completed" | "failed"\n message?: string\n result?: Array<{\n _id: string\n _org?: string\n _schema?: string\n _created_at?: string // date-time\n _updated_at?: string // date-time\n _created_by?: string | number\n created_by?: string | number\n _tags?: string[]\n _acl?: Record<string, string[]>\n _owners?: Array<{\n org_id: { ... }\n user_id: { ... }\n }>\n type?: string\n }>\n createdAt: string // date-time\n updatedAt: string // date-time\n}\n```\n\n### `DetectDuplicatesRequestBody`\n\n```ts\ntype DetectDuplicatesRequestBody = {\n schema: string\n entity: Record<string, unknown>\n}\n```\n\n### `DetectDuplicatesResponse`\n\n```ts\ntype DetectDuplicatesResponse = {\n matches: Array<{\n entity: {\n _id: { ... }\n _org?: { ... }\n _schema?: { ... }\n _created_at?: { ... }\n _updated_at?: { ... }\n _created_by?: { ... }\n created_by?: { ... }\n _tags?: { ... }\n _acl?: { ... }\n _owners?: { ... }\n type?: { ... }\n }\n confidence: number\n matched_attributes: string[]\n }>\n}\n```\n\n### `DetectedDuplicateMatch`\n\n```ts\ntype DetectedDuplicateMatch = {\n entity: {\n _id: string\n _org?: string\n _schema?: string\n _created_at?: string // date-time\n _updated_at?: string // date-time\n _created_by?: string | number\n created_by?: string | number\n _tags?: string[]\n _acl?: Record<string, string[]>\n _owners?: Array<{\n org_id: { ... }\n user_id: { ... }\n }>\n type?: string\n }\n confidence: number\n matched_attributes: string[]\n}\n```\n\n### `DismissDuplicatesRequestBody`\n\n```ts\ntype DismissDuplicatesRequestBody = {\n schema: string\n entityIds: string[]\n}\n```\n\n### `DismissDuplicatesResponse`\n\n```ts\ntype DismissDuplicatesResponse = {\n dismissed: string[]\n}\n```\n\n### `UniquenessCriteriaListResponse`\n\n```ts\ntype UniquenessCriteriaListResponse = {\n items: Array<{\n id: string // uuid\n orgId: string\n schema: string\n matchRules: Array<{\n name?: { ... }\n attributes: { ... }\n confidence: { ... }\n }>\n createdAt: string // date-time\n updatedAt: string // date-time\n }>\n}\n```\n\n### `UniquenessCriteria`\n\nDefines what makes an entity of a given schema unique within an organization.\n\n```ts\ntype UniquenessCriteria = {\n id: string // uuid\n orgId: string\n schema: string\n matchRules: Array<{\n name?: string\n attributes: Array<{\n attribute: { ... }\n }>\n confidence: number\n }>\n createdAt: string // date-time\n updatedAt: string // date-time\n}\n```\n\n### `MatchRule`\n\nOne way to identify the same entity. Evaluated in order; first rule whose attributes are all available and that returns hits wins.\n\n```ts\ntype MatchRule = {\n name?: string\n attributes: Array<{\n attribute: string\n }>\n confidence: number\n}\n```\n\n### `MatchAttribute`\n\nOne attribute participating in a match rule. Wrapped as an object so per-attribute options can be added later.\n\n```ts\ntype MatchAttribute = {\n attribute: string\n}\n```\n\n### `UniquenessCriteriaCreateBody`\n\n```ts\ntype UniquenessCriteriaCreateBody = {\n schema: string\n matchRules: Array<{\n name?: string\n attributes: Array<{\n attribute: { ... }\n }>\n confidence: number\n }>\n}\n```\n\n### `UniquenessCriteriaUpdateBody`\n\n```ts\ntype UniquenessCriteriaUpdateBody = {\n matchRules: Array<{\n name?: string\n attributes: Array<{\n attribute: { ... }\n }>\n confidence: number\n }>\n}\n```\n';
|
|
5
|
+
export {
|
|
6
|
+
deduplication_default as default
|
|
7
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkBEJ5NIRCcjs = require('./chunk-BEJ5NIRC.cjs');
|
|
4
4
|
require('./chunk-NJK5F5TF.cjs');
|
|
5
|
-
exports. default =
|
|
5
|
+
exports. default = _chunkBEJ5NIRCcjs.require_deduplication_runtime.call(void 0, );
|
|
@@ -47,7 +47,12 @@ declare namespace Components {
|
|
|
47
47
|
];
|
|
48
48
|
}[]
|
|
49
49
|
];
|
|
50
|
-
export
|
|
50
|
+
export interface DeduplicateRequestResponse {
|
|
51
|
+
/**
|
|
52
|
+
* The merged survivor entity of each processed set
|
|
53
|
+
*/
|
|
54
|
+
deduplicatedEntities: /* Base Entity schema */ Entity[];
|
|
55
|
+
}
|
|
51
56
|
/**
|
|
52
57
|
* Represents an async deduplication job
|
|
53
58
|
*/
|
|
@@ -103,6 +108,120 @@ declare namespace Components {
|
|
|
103
108
|
...string[]
|
|
104
109
|
];
|
|
105
110
|
}
|
|
111
|
+
export interface DismissDuplicatesRequestBody {
|
|
112
|
+
schema: string;
|
|
113
|
+
/**
|
|
114
|
+
* Entities whose duplicate flags (_matching_entities) are cleared — the records are confirmed as NOT duplicates and stay separate
|
|
115
|
+
*/
|
|
116
|
+
entityIds: [
|
|
117
|
+
string,
|
|
118
|
+
string?,
|
|
119
|
+
string?,
|
|
120
|
+
string?,
|
|
121
|
+
string?,
|
|
122
|
+
string?,
|
|
123
|
+
string?,
|
|
124
|
+
string?,
|
|
125
|
+
string?,
|
|
126
|
+
string?,
|
|
127
|
+
string?,
|
|
128
|
+
string?,
|
|
129
|
+
string?,
|
|
130
|
+
string?,
|
|
131
|
+
string?,
|
|
132
|
+
string?,
|
|
133
|
+
string?,
|
|
134
|
+
string?,
|
|
135
|
+
string?,
|
|
136
|
+
string?,
|
|
137
|
+
string?,
|
|
138
|
+
string?,
|
|
139
|
+
string?,
|
|
140
|
+
string?,
|
|
141
|
+
string?,
|
|
142
|
+
string?,
|
|
143
|
+
string?,
|
|
144
|
+
string?,
|
|
145
|
+
string?,
|
|
146
|
+
string?,
|
|
147
|
+
string?,
|
|
148
|
+
string?,
|
|
149
|
+
string?,
|
|
150
|
+
string?,
|
|
151
|
+
string?,
|
|
152
|
+
string?,
|
|
153
|
+
string?,
|
|
154
|
+
string?,
|
|
155
|
+
string?,
|
|
156
|
+
string?,
|
|
157
|
+
string?,
|
|
158
|
+
string?,
|
|
159
|
+
string?,
|
|
160
|
+
string?,
|
|
161
|
+
string?,
|
|
162
|
+
string?,
|
|
163
|
+
string?,
|
|
164
|
+
string?,
|
|
165
|
+
string?,
|
|
166
|
+
string?,
|
|
167
|
+
string?,
|
|
168
|
+
string?,
|
|
169
|
+
string?,
|
|
170
|
+
string?,
|
|
171
|
+
string?,
|
|
172
|
+
string?,
|
|
173
|
+
string?,
|
|
174
|
+
string?,
|
|
175
|
+
string?,
|
|
176
|
+
string?,
|
|
177
|
+
string?,
|
|
178
|
+
string?,
|
|
179
|
+
string?,
|
|
180
|
+
string?,
|
|
181
|
+
string?,
|
|
182
|
+
string?,
|
|
183
|
+
string?,
|
|
184
|
+
string?,
|
|
185
|
+
string?,
|
|
186
|
+
string?,
|
|
187
|
+
string?,
|
|
188
|
+
string?,
|
|
189
|
+
string?,
|
|
190
|
+
string?,
|
|
191
|
+
string?,
|
|
192
|
+
string?,
|
|
193
|
+
string?,
|
|
194
|
+
string?,
|
|
195
|
+
string?,
|
|
196
|
+
string?,
|
|
197
|
+
string?,
|
|
198
|
+
string?,
|
|
199
|
+
string?,
|
|
200
|
+
string?,
|
|
201
|
+
string?,
|
|
202
|
+
string?,
|
|
203
|
+
string?,
|
|
204
|
+
string?,
|
|
205
|
+
string?,
|
|
206
|
+
string?,
|
|
207
|
+
string?,
|
|
208
|
+
string?,
|
|
209
|
+
string?,
|
|
210
|
+
string?,
|
|
211
|
+
string?,
|
|
212
|
+
string?,
|
|
213
|
+
string?,
|
|
214
|
+
string?,
|
|
215
|
+
string?,
|
|
216
|
+
string?
|
|
217
|
+
];
|
|
218
|
+
}
|
|
219
|
+
export interface DismissDuplicatesResponse {
|
|
220
|
+
/**
|
|
221
|
+
* Entity ids whose duplicate flags were cleared
|
|
222
|
+
*/
|
|
223
|
+
dismissed: string[];
|
|
224
|
+
}
|
|
106
225
|
/**
|
|
107
226
|
* Base Entity schema
|
|
108
227
|
*/
|
|
@@ -276,6 +395,12 @@ declare namespace Paths {
|
|
|
276
395
|
export type $200 = Components.Schemas.DetectDuplicatesResponse;
|
|
277
396
|
}
|
|
278
397
|
}
|
|
398
|
+
namespace DismissDuplicates {
|
|
399
|
+
export type RequestBody = Components.Schemas.DismissDuplicatesRequestBody;
|
|
400
|
+
namespace Responses {
|
|
401
|
+
export type $200 = Components.Schemas.DismissDuplicatesResponse;
|
|
402
|
+
}
|
|
403
|
+
}
|
|
279
404
|
namespace GetDeduplicationJob {
|
|
280
405
|
namespace Parameters {
|
|
281
406
|
export type JobId = string;
|
|
@@ -371,6 +496,16 @@ interface OperationMethods {
|
|
|
371
496
|
data?: Paths.DetectDuplicates.RequestBody,
|
|
372
497
|
config?: AxiosRequestConfig
|
|
373
498
|
): OperationResponse<Paths.DetectDuplicates.Responses.$200>
|
|
499
|
+
/**
|
|
500
|
+
* dismissDuplicates - dismissDuplicates
|
|
501
|
+
*
|
|
502
|
+
* Confirms entities as NOT duplicates: clears the internal duplicate-detection flags (_matching_entities) on each given entity, so they stop appearing as open duplicate sets. The records themselves are not modified otherwise.
|
|
503
|
+
*/
|
|
504
|
+
'dismissDuplicates'(
|
|
505
|
+
parameters?: Parameters<UnknownParamsObject> | null,
|
|
506
|
+
data?: Paths.DismissDuplicates.RequestBody,
|
|
507
|
+
config?: AxiosRequestConfig
|
|
508
|
+
): OperationResponse<Paths.DismissDuplicates.Responses.$200>
|
|
374
509
|
/**
|
|
375
510
|
* listUniquenessCriteria - listUniquenessCriteria
|
|
376
511
|
*
|
|
@@ -472,6 +607,18 @@ interface PathsDictionary {
|
|
|
472
607
|
config?: AxiosRequestConfig
|
|
473
608
|
): OperationResponse<Paths.DetectDuplicates.Responses.$200>
|
|
474
609
|
}
|
|
610
|
+
['/v1/duplicates/dismiss']: {
|
|
611
|
+
/**
|
|
612
|
+
* dismissDuplicates - dismissDuplicates
|
|
613
|
+
*
|
|
614
|
+
* Confirms entities as NOT duplicates: clears the internal duplicate-detection flags (_matching_entities) on each given entity, so they stop appearing as open duplicate sets. The records themselves are not modified otherwise.
|
|
615
|
+
*/
|
|
616
|
+
'post'(
|
|
617
|
+
parameters?: Parameters<UnknownParamsObject> | null,
|
|
618
|
+
data?: Paths.DismissDuplicates.RequestBody,
|
|
619
|
+
config?: AxiosRequestConfig
|
|
620
|
+
): OperationResponse<Paths.DismissDuplicates.Responses.$200>
|
|
621
|
+
}
|
|
475
622
|
['/v1/uniqueness-criteria']: {
|
|
476
623
|
/**
|
|
477
624
|
* listUniquenessCriteria - listUniquenessCriteria
|
|
@@ -538,6 +685,8 @@ type DeduplicationJob = Components.Schemas.DeduplicationJob;
|
|
|
538
685
|
type DetectDuplicatesRequestBody = Components.Schemas.DetectDuplicatesRequestBody;
|
|
539
686
|
type DetectDuplicatesResponse = Components.Schemas.DetectDuplicatesResponse;
|
|
540
687
|
type DetectedDuplicateMatch = Components.Schemas.DetectedDuplicateMatch;
|
|
688
|
+
type DismissDuplicatesRequestBody = Components.Schemas.DismissDuplicatesRequestBody;
|
|
689
|
+
type DismissDuplicatesResponse = Components.Schemas.DismissDuplicatesResponse;
|
|
541
690
|
type Entity = Components.Schemas.Entity;
|
|
542
691
|
type JobStatus = Components.Schemas.JobStatus;
|
|
543
692
|
type MatchAttribute = Components.Schemas.MatchAttribute;
|
|
@@ -547,4 +696,4 @@ type UniquenessCriteriaCreateBody = Components.Schemas.UniquenessCriteriaCreateB
|
|
|
547
696
|
type UniquenessCriteriaListResponse = Components.Schemas.UniquenessCriteriaListResponse;
|
|
548
697
|
type UniquenessCriteriaUpdateBody = Components.Schemas.UniquenessCriteriaUpdateBody;
|
|
549
698
|
|
|
550
|
-
export { type Client as C, type DeduplicateAsyncResponse as D, type Entity as E, type JobStatus as J, type MatchAttribute as M, type OperationMethods as O, Paths as P, type UniquenessCriteria as U, Components as a, type PathsDictionary as b, type DeduplicateRequestBody as c, type DeduplicateRequestResponse as d, type DeduplicationJob as e, type DetectDuplicatesRequestBody as f, type DetectDuplicatesResponse as g, type DetectedDuplicateMatch as h, type
|
|
699
|
+
export { type Client as C, type DeduplicateAsyncResponse as D, type Entity as E, type JobStatus as J, type MatchAttribute as M, type OperationMethods as O, Paths as P, type UniquenessCriteria as U, Components as a, type PathsDictionary as b, type DeduplicateRequestBody as c, type DeduplicateRequestResponse as d, type DeduplicationJob as e, type DetectDuplicatesRequestBody as f, type DetectDuplicatesResponse as g, type DetectedDuplicateMatch as h, type DismissDuplicatesRequestBody as i, type DismissDuplicatesResponse as j, type MatchRule as k, type UniquenessCriteriaCreateBody as l, type UniquenessCriteriaListResponse as m, type UniquenessCriteriaUpdateBody as n };
|