@epilot/sdk 2.15.11 → 2.15.13
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/app.json +5 -0
- package/definitions/deduplication-runtime.json +1 -1
- package/definitions/deduplication.json +396 -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.d.cts +2 -2
- package/dist/apis/app.d.ts +2 -2
- 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/app-5GFMQJQP.cjs +7 -0
- package/dist/app-YY2NCNQ2.js +7 -0
- package/dist/{app.d-BdFPyoJZ.d.cts → app.d-B5s8GfqF.d.cts} +4 -0
- package/dist/{app.d-BdFPyoJZ.d.ts → app.d-B5s8GfqF.d.ts} +4 -0
- package/dist/{chunk-LNYFU7SV.cjs → chunk-45UKIH2C.cjs} +3 -3
- package/dist/chunk-CKD3HAHW.js +14 -0
- package/dist/{chunk-7NITZ7QR.js → chunk-EPXD4DIT.js} +3 -3
- package/dist/{chunk-IAHSYVYB.cjs → chunk-TWI3P2QA.cjs} +1 -1
- package/dist/deduplication-XYMFEQEE.cjs +7 -0
- package/dist/deduplication-YYNT5C3M.js +7 -0
- package/dist/{deduplication-runtime-VL4R2VIG.js → deduplication-runtime-5TJHUSQN.js} +1 -1
- package/dist/{deduplication-runtime-5QS6I4S7.cjs → deduplication-runtime-ZKX6LN5P.cjs} +2 -2
- package/dist/deduplication.d-DaUo5gZo.d.cts +550 -0
- package/dist/deduplication.d-DaUo5gZo.d.ts +550 -0
- package/dist/index.cjs +10 -10
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/docs/app.md +5 -0
- package/docs/deduplication.md +425 -0
- package/package.json +1 -1
- package/dist/app-4OOR6HHG.js +0 -7
- package/dist/app-KQMSUXFH.cjs +0 -7
- package/dist/chunk-X2SC4GW5.js +0 -14
- package/dist/deduplication-G2ZY4NMX.js +0 -7
- package/dist/deduplication-PKKTZAEA.cjs +0 -7
- package/dist/deduplication.d-D5GYddVu.d.cts +0 -218
- package/dist/deduplication.d-D5GYddVu.d.ts +0 -218
|
@@ -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- [`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- [`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 {\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</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### `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 = 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: string\n user_id: string\n }>\n type?: string\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### `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- [`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- [`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 {\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</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### `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 = 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: string\n user_id: string\n }>\n type?: string\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### `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 _chunkTWI3P2QAcjs = require('./chunk-TWI3P2QA.cjs');
|
|
4
4
|
require('./chunk-NJK5F5TF.cjs');
|
|
5
|
-
exports. default =
|
|
5
|
+
exports. default = _chunkTWI3P2QAcjs.require_deduplication_runtime.call(void 0, );
|
|
@@ -0,0 +1,550 @@
|
|
|
1
|
+
import { OpenAPIClient, Parameters, UnknownParamsObject, AxiosRequestConfig, OperationResponse } from 'openapi-client-axios';
|
|
2
|
+
|
|
3
|
+
/* Auto-copied from deduplication-client */
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
declare namespace Components {
|
|
7
|
+
namespace Schemas {
|
|
8
|
+
/**
|
|
9
|
+
* Response returned immediately when a deduplication job is submitted
|
|
10
|
+
*/
|
|
11
|
+
export interface DeduplicateAsyncResponse {
|
|
12
|
+
/**
|
|
13
|
+
* Job ID to poll for status via GET /v1/deduplicate/jobs/{jobId}
|
|
14
|
+
*/
|
|
15
|
+
jobId: string;
|
|
16
|
+
status: JobStatus;
|
|
17
|
+
/**
|
|
18
|
+
* Initial status message
|
|
19
|
+
*/
|
|
20
|
+
message: string;
|
|
21
|
+
}
|
|
22
|
+
export type DeduplicateRequestBody = [
|
|
23
|
+
{
|
|
24
|
+
/**
|
|
25
|
+
* Entity id to keep and merge the duplicates into
|
|
26
|
+
*/
|
|
27
|
+
toKeep: string;
|
|
28
|
+
/**
|
|
29
|
+
* Non-empty list of duplicate entity ids to merge into toKeep and delete
|
|
30
|
+
*/
|
|
31
|
+
toDelete: [
|
|
32
|
+
string,
|
|
33
|
+
...string[]
|
|
34
|
+
];
|
|
35
|
+
},
|
|
36
|
+
...{
|
|
37
|
+
/**
|
|
38
|
+
* Entity id to keep and merge the duplicates into
|
|
39
|
+
*/
|
|
40
|
+
toKeep: string;
|
|
41
|
+
/**
|
|
42
|
+
* Non-empty list of duplicate entity ids to merge into toKeep and delete
|
|
43
|
+
*/
|
|
44
|
+
toDelete: [
|
|
45
|
+
string,
|
|
46
|
+
...string[]
|
|
47
|
+
];
|
|
48
|
+
}[]
|
|
49
|
+
];
|
|
50
|
+
export type DeduplicateRequestResponse = /* Base Entity schema */ Entity[];
|
|
51
|
+
/**
|
|
52
|
+
* Represents an async deduplication job
|
|
53
|
+
*/
|
|
54
|
+
export interface DeduplicationJob {
|
|
55
|
+
/**
|
|
56
|
+
* Unique identifier for the deduplication job
|
|
57
|
+
*/
|
|
58
|
+
jobId: string;
|
|
59
|
+
status: JobStatus;
|
|
60
|
+
/**
|
|
61
|
+
* Human-readable status message (e.g. progress info or error details)
|
|
62
|
+
*/
|
|
63
|
+
message?: string;
|
|
64
|
+
/**
|
|
65
|
+
* Array of deduplicated entities, present when status is completed
|
|
66
|
+
*/
|
|
67
|
+
result?: /* Base Entity schema */ Entity[];
|
|
68
|
+
/**
|
|
69
|
+
* ISO 8601 timestamp of job creation
|
|
70
|
+
*/
|
|
71
|
+
createdAt: string; // date-time
|
|
72
|
+
/**
|
|
73
|
+
* ISO 8601 timestamp of last update
|
|
74
|
+
*/
|
|
75
|
+
updatedAt: string; // date-time
|
|
76
|
+
}
|
|
77
|
+
export interface DetectDuplicatesRequestBody {
|
|
78
|
+
/**
|
|
79
|
+
* Entity schema to search (e.g. 'contact'). Must have UniquenessCriteria configured for the calling org.
|
|
80
|
+
*/
|
|
81
|
+
schema: string;
|
|
82
|
+
/**
|
|
83
|
+
* The entity to look up potential duplicates for. Attribute values are extracted from this entity per the schema's match rules; system fields such as '_id' are supported. A rule is evaluated when at least one of its attributes resolves to a non-empty value on this entity; attributes without a value require candidates to also lack a value for them.
|
|
84
|
+
*/
|
|
85
|
+
entity: {
|
|
86
|
+
[name: string]: any;
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
export interface DetectDuplicatesResponse {
|
|
90
|
+
matches: DetectedDuplicateMatch[];
|
|
91
|
+
}
|
|
92
|
+
export interface DetectedDuplicateMatch {
|
|
93
|
+
entity: /* Base Entity schema */ Entity;
|
|
94
|
+
/**
|
|
95
|
+
* Confidence score for the match, between 0 and 1.
|
|
96
|
+
*/
|
|
97
|
+
confidence: number;
|
|
98
|
+
/**
|
|
99
|
+
* Names of the attributes that matched on the rule that produced this hit.
|
|
100
|
+
*/
|
|
101
|
+
matched_attributes: [
|
|
102
|
+
string,
|
|
103
|
+
...string[]
|
|
104
|
+
];
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* Base Entity schema
|
|
108
|
+
*/
|
|
109
|
+
export interface Entity {
|
|
110
|
+
/**
|
|
111
|
+
* Entity ID of the Deduplication entry
|
|
112
|
+
*/
|
|
113
|
+
_id: string;
|
|
114
|
+
/**
|
|
115
|
+
* ID of the Organization that owns this Deduplication
|
|
116
|
+
*/
|
|
117
|
+
_org?: string;
|
|
118
|
+
/**
|
|
119
|
+
* The Entity schema of this Deduplication
|
|
120
|
+
*/
|
|
121
|
+
_schema?: string;
|
|
122
|
+
/**
|
|
123
|
+
* The timestamp of when this Deduplication was created
|
|
124
|
+
*/
|
|
125
|
+
_created_at?: string; // date-time
|
|
126
|
+
/**
|
|
127
|
+
* The timestamp of when this Deduplication was last updated
|
|
128
|
+
*/
|
|
129
|
+
_updated_at?: string; // date-time
|
|
130
|
+
/**
|
|
131
|
+
* The Entity ID of the User that created this Deduplication
|
|
132
|
+
*/
|
|
133
|
+
_created_by?: /* The Entity ID of the User that created this Deduplication */ string | number;
|
|
134
|
+
/**
|
|
135
|
+
* The Entity ID of the User that created this Deduplication
|
|
136
|
+
*/
|
|
137
|
+
created_by?: /* The Entity ID of the User that created this Deduplication */ string | number;
|
|
138
|
+
/**
|
|
139
|
+
* Tags associated with this Deduplication
|
|
140
|
+
*/
|
|
141
|
+
_tags?: string[];
|
|
142
|
+
/**
|
|
143
|
+
* Access Control List for this Deduplication entry
|
|
144
|
+
*/
|
|
145
|
+
_acl?: {
|
|
146
|
+
[name: string]: string[];
|
|
147
|
+
};
|
|
148
|
+
_owners?: {
|
|
149
|
+
org_id: string;
|
|
150
|
+
user_id: string;
|
|
151
|
+
}[];
|
|
152
|
+
/**
|
|
153
|
+
* Entity ID of the Deduplication entry
|
|
154
|
+
*/
|
|
155
|
+
type?: string;
|
|
156
|
+
}
|
|
157
|
+
export type JobStatus = "pending" | "processing" | "completed" | "failed";
|
|
158
|
+
/**
|
|
159
|
+
* One attribute participating in a match rule. Wrapped as an object so per-attribute options can be added later.
|
|
160
|
+
*/
|
|
161
|
+
export interface MatchAttribute {
|
|
162
|
+
/**
|
|
163
|
+
* Name of the entity attribute to match on. Its query path is resolved from the entity schema at query time.
|
|
164
|
+
*/
|
|
165
|
+
attribute: string;
|
|
166
|
+
}
|
|
167
|
+
/**
|
|
168
|
+
* One way to identify the same entity. Evaluated in order; first rule whose attributes are all available and that returns hits wins.
|
|
169
|
+
*/
|
|
170
|
+
export interface MatchRule {
|
|
171
|
+
/**
|
|
172
|
+
* Optional human-readable label for the rule. Purely descriptive; not used during matching.
|
|
173
|
+
*/
|
|
174
|
+
name?: string;
|
|
175
|
+
/**
|
|
176
|
+
* Attributes that must all match for this rule to fire. Attributes without a value on the source entity must also have no value on a matching candidate.
|
|
177
|
+
*/
|
|
178
|
+
attributes: [
|
|
179
|
+
/* One attribute participating in a match rule. Wrapped as an object so per-attribute options can be added later. */ MatchAttribute,
|
|
180
|
+
.../* One attribute participating in a match rule. Wrapped as an object so per-attribute options can be added later. */ MatchAttribute[]
|
|
181
|
+
];
|
|
182
|
+
/**
|
|
183
|
+
* Confidence assigned to matches produced by this rule, between 0 and 1.
|
|
184
|
+
*/
|
|
185
|
+
confidence: number;
|
|
186
|
+
}
|
|
187
|
+
/**
|
|
188
|
+
* Defines what makes an entity of a given schema unique within an organization.
|
|
189
|
+
*/
|
|
190
|
+
export interface UniquenessCriteria {
|
|
191
|
+
/**
|
|
192
|
+
* Unique identifier of the criteria record.
|
|
193
|
+
*/
|
|
194
|
+
id: string; // uuid
|
|
195
|
+
/**
|
|
196
|
+
* Organization the criteria belong to.
|
|
197
|
+
*/
|
|
198
|
+
orgId: string;
|
|
199
|
+
/**
|
|
200
|
+
* Entity schema these criteria apply to (e.g. 'contact').
|
|
201
|
+
*/
|
|
202
|
+
schema: string;
|
|
203
|
+
/**
|
|
204
|
+
* Ordered list of match rules. Order is the evaluation priority.
|
|
205
|
+
*/
|
|
206
|
+
matchRules: [
|
|
207
|
+
/* One way to identify the same entity. Evaluated in order; first rule whose attributes are all available and that returns hits wins. */ MatchRule,
|
|
208
|
+
.../* One way to identify the same entity. Evaluated in order; first rule whose attributes are all available and that returns hits wins. */ MatchRule[]
|
|
209
|
+
];
|
|
210
|
+
/**
|
|
211
|
+
* ISO 8601 timestamp of record creation.
|
|
212
|
+
*/
|
|
213
|
+
createdAt: string; // date-time
|
|
214
|
+
/**
|
|
215
|
+
* ISO 8601 timestamp of last update.
|
|
216
|
+
*/
|
|
217
|
+
updatedAt: string; // date-time
|
|
218
|
+
}
|
|
219
|
+
export interface UniquenessCriteriaCreateBody {
|
|
220
|
+
/**
|
|
221
|
+
* Entity schema these criteria apply to.
|
|
222
|
+
*/
|
|
223
|
+
schema: string;
|
|
224
|
+
matchRules: [
|
|
225
|
+
/* One way to identify the same entity. Evaluated in order; first rule whose attributes are all available and that returns hits wins. */ MatchRule,
|
|
226
|
+
.../* One way to identify the same entity. Evaluated in order; first rule whose attributes are all available and that returns hits wins. */ MatchRule[]
|
|
227
|
+
];
|
|
228
|
+
}
|
|
229
|
+
export interface UniquenessCriteriaListResponse {
|
|
230
|
+
items: /* Defines what makes an entity of a given schema unique within an organization. */ UniquenessCriteria[];
|
|
231
|
+
}
|
|
232
|
+
export interface UniquenessCriteriaUpdateBody {
|
|
233
|
+
matchRules: [
|
|
234
|
+
/* One way to identify the same entity. Evaluated in order; first rule whose attributes are all available and that returns hits wins. */ MatchRule,
|
|
235
|
+
.../* One way to identify the same entity. Evaluated in order; first rule whose attributes are all available and that returns hits wins. */ MatchRule[]
|
|
236
|
+
];
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
declare namespace Paths {
|
|
241
|
+
namespace CreateUniquenessCriteria {
|
|
242
|
+
export type RequestBody = Components.Schemas.UniquenessCriteriaCreateBody;
|
|
243
|
+
namespace Responses {
|
|
244
|
+
export type $201 = /* Defines what makes an entity of a given schema unique within an organization. */ Components.Schemas.UniquenessCriteria;
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
namespace Deduplicate {
|
|
248
|
+
export type RequestBody = Components.Schemas.DeduplicateRequestBody;
|
|
249
|
+
namespace Responses {
|
|
250
|
+
export type $200 = Components.Schemas.DeduplicateRequestResponse;
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
namespace DeduplicateAsync {
|
|
254
|
+
export type RequestBody = Components.Schemas.DeduplicateRequestBody;
|
|
255
|
+
namespace Responses {
|
|
256
|
+
export type $202 = /* Response returned immediately when a deduplication job is submitted */ Components.Schemas.DeduplicateAsyncResponse;
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
namespace DeleteUniquenessCriteria {
|
|
260
|
+
namespace Parameters {
|
|
261
|
+
export type Schema = string;
|
|
262
|
+
}
|
|
263
|
+
export interface PathParameters {
|
|
264
|
+
schema: Parameters.Schema;
|
|
265
|
+
}
|
|
266
|
+
namespace Responses {
|
|
267
|
+
export interface $204 {
|
|
268
|
+
}
|
|
269
|
+
export interface $404 {
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
namespace DetectDuplicates {
|
|
274
|
+
export type RequestBody = Components.Schemas.DetectDuplicatesRequestBody;
|
|
275
|
+
namespace Responses {
|
|
276
|
+
export type $200 = Components.Schemas.DetectDuplicatesResponse;
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
namespace GetDeduplicationJob {
|
|
280
|
+
namespace Parameters {
|
|
281
|
+
export type JobId = string;
|
|
282
|
+
}
|
|
283
|
+
export interface PathParameters {
|
|
284
|
+
jobId: Parameters.JobId;
|
|
285
|
+
}
|
|
286
|
+
namespace Responses {
|
|
287
|
+
export type $200 = /* Represents an async deduplication job */ Components.Schemas.DeduplicationJob;
|
|
288
|
+
export interface $404 {
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
namespace GetUniquenessCriteria {
|
|
293
|
+
namespace Parameters {
|
|
294
|
+
export type Schema = string;
|
|
295
|
+
}
|
|
296
|
+
export interface PathParameters {
|
|
297
|
+
schema: Parameters.Schema;
|
|
298
|
+
}
|
|
299
|
+
namespace Responses {
|
|
300
|
+
export type $200 = /* Defines what makes an entity of a given schema unique within an organization. */ Components.Schemas.UniquenessCriteria;
|
|
301
|
+
export interface $404 {
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
namespace ListUniquenessCriteria {
|
|
306
|
+
namespace Parameters {
|
|
307
|
+
export type Schema = string;
|
|
308
|
+
}
|
|
309
|
+
export interface QueryParameters {
|
|
310
|
+
schema?: Parameters.Schema;
|
|
311
|
+
}
|
|
312
|
+
namespace Responses {
|
|
313
|
+
export type $200 = Components.Schemas.UniquenessCriteriaListResponse;
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
namespace UpdateUniquenessCriteria {
|
|
317
|
+
namespace Parameters {
|
|
318
|
+
export type Schema = string;
|
|
319
|
+
}
|
|
320
|
+
export interface PathParameters {
|
|
321
|
+
schema: Parameters.Schema;
|
|
322
|
+
}
|
|
323
|
+
export type RequestBody = Components.Schemas.UniquenessCriteriaUpdateBody;
|
|
324
|
+
namespace Responses {
|
|
325
|
+
export type $200 = /* Defines what makes an entity of a given schema unique within an organization. */ Components.Schemas.UniquenessCriteria;
|
|
326
|
+
export interface $404 {
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
|
|
333
|
+
interface OperationMethods {
|
|
334
|
+
/**
|
|
335
|
+
* deduplicate - deduplicate
|
|
336
|
+
*
|
|
337
|
+
* Deduplicates Entities
|
|
338
|
+
*/
|
|
339
|
+
'deduplicate'(
|
|
340
|
+
parameters?: Parameters<UnknownParamsObject> | null,
|
|
341
|
+
data?: Paths.Deduplicate.RequestBody,
|
|
342
|
+
config?: AxiosRequestConfig
|
|
343
|
+
): OperationResponse<Paths.Deduplicate.Responses.$200>
|
|
344
|
+
/**
|
|
345
|
+
* deduplicateAsync - deduplicateAsync
|
|
346
|
+
*
|
|
347
|
+
* Submits an async deduplication job. Returns a job ID immediately. Poll GET /v1/deduplicate/jobs/{jobId} for status.
|
|
348
|
+
*/
|
|
349
|
+
'deduplicateAsync'(
|
|
350
|
+
parameters?: Parameters<UnknownParamsObject> | null,
|
|
351
|
+
data?: Paths.DeduplicateAsync.RequestBody,
|
|
352
|
+
config?: AxiosRequestConfig
|
|
353
|
+
): OperationResponse<Paths.DeduplicateAsync.Responses.$202>
|
|
354
|
+
/**
|
|
355
|
+
* getDeduplicationJob - getDeduplicationJob
|
|
356
|
+
*
|
|
357
|
+
* Returns the current status of an async deduplication job
|
|
358
|
+
*/
|
|
359
|
+
'getDeduplicationJob'(
|
|
360
|
+
parameters?: Parameters<Paths.GetDeduplicationJob.PathParameters> | null,
|
|
361
|
+
data?: any,
|
|
362
|
+
config?: AxiosRequestConfig
|
|
363
|
+
): OperationResponse<Paths.GetDeduplicationJob.Responses.$200>
|
|
364
|
+
/**
|
|
365
|
+
* detectDuplicates - detectDuplicates
|
|
366
|
+
*
|
|
367
|
+
* Detects potential duplicate entities for the given entity using the schema's prioritized uniqueness rules. Returns matches with a confidence score.
|
|
368
|
+
*/
|
|
369
|
+
'detectDuplicates'(
|
|
370
|
+
parameters?: Parameters<UnknownParamsObject> | null,
|
|
371
|
+
data?: Paths.DetectDuplicates.RequestBody,
|
|
372
|
+
config?: AxiosRequestConfig
|
|
373
|
+
): OperationResponse<Paths.DetectDuplicates.Responses.$200>
|
|
374
|
+
/**
|
|
375
|
+
* listUniquenessCriteria - listUniquenessCriteria
|
|
376
|
+
*
|
|
377
|
+
* Lists UniquenessCriteria for the requesting organization. Optionally filtered by schema.
|
|
378
|
+
*/
|
|
379
|
+
'listUniquenessCriteria'(
|
|
380
|
+
parameters?: Parameters<Paths.ListUniquenessCriteria.QueryParameters> | null,
|
|
381
|
+
data?: any,
|
|
382
|
+
config?: AxiosRequestConfig
|
|
383
|
+
): OperationResponse<Paths.ListUniquenessCriteria.Responses.$200>
|
|
384
|
+
/**
|
|
385
|
+
* createUniquenessCriteria - createUniquenessCriteria
|
|
386
|
+
*
|
|
387
|
+
* Creates a new UniquenessCriteria record.
|
|
388
|
+
*/
|
|
389
|
+
'createUniquenessCriteria'(
|
|
390
|
+
parameters?: Parameters<UnknownParamsObject> | null,
|
|
391
|
+
data?: Paths.CreateUniquenessCriteria.RequestBody,
|
|
392
|
+
config?: AxiosRequestConfig
|
|
393
|
+
): OperationResponse<Paths.CreateUniquenessCriteria.Responses.$201>
|
|
394
|
+
/**
|
|
395
|
+
* getUniquenessCriteria - getUniquenessCriteria
|
|
396
|
+
*
|
|
397
|
+
* Fetch a single UniquenessCriteria record.
|
|
398
|
+
*/
|
|
399
|
+
'getUniquenessCriteria'(
|
|
400
|
+
parameters?: Parameters<Paths.GetUniquenessCriteria.PathParameters> | null,
|
|
401
|
+
data?: any,
|
|
402
|
+
config?: AxiosRequestConfig
|
|
403
|
+
): OperationResponse<Paths.GetUniquenessCriteria.Responses.$200>
|
|
404
|
+
/**
|
|
405
|
+
* updateUniquenessCriteria - updateUniquenessCriteria
|
|
406
|
+
*
|
|
407
|
+
* Replace the matchRules on an existing UniquenessCriteria record.
|
|
408
|
+
*/
|
|
409
|
+
'updateUniquenessCriteria'(
|
|
410
|
+
parameters?: Parameters<Paths.UpdateUniquenessCriteria.PathParameters> | null,
|
|
411
|
+
data?: Paths.UpdateUniquenessCriteria.RequestBody,
|
|
412
|
+
config?: AxiosRequestConfig
|
|
413
|
+
): OperationResponse<Paths.UpdateUniquenessCriteria.Responses.$200>
|
|
414
|
+
/**
|
|
415
|
+
* deleteUniquenessCriteria - deleteUniquenessCriteria
|
|
416
|
+
*
|
|
417
|
+
* Delete a UniquenessCriteria record.
|
|
418
|
+
*/
|
|
419
|
+
'deleteUniquenessCriteria'(
|
|
420
|
+
parameters?: Parameters<Paths.DeleteUniquenessCriteria.PathParameters> | null,
|
|
421
|
+
data?: any,
|
|
422
|
+
config?: AxiosRequestConfig
|
|
423
|
+
): OperationResponse<Paths.DeleteUniquenessCriteria.Responses.$204>
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
interface PathsDictionary {
|
|
427
|
+
['/v1/deduplicate']: {
|
|
428
|
+
/**
|
|
429
|
+
* deduplicate - deduplicate
|
|
430
|
+
*
|
|
431
|
+
* Deduplicates Entities
|
|
432
|
+
*/
|
|
433
|
+
'post'(
|
|
434
|
+
parameters?: Parameters<UnknownParamsObject> | null,
|
|
435
|
+
data?: Paths.Deduplicate.RequestBody,
|
|
436
|
+
config?: AxiosRequestConfig
|
|
437
|
+
): OperationResponse<Paths.Deduplicate.Responses.$200>
|
|
438
|
+
}
|
|
439
|
+
['/v1/deduplicate/job']: {
|
|
440
|
+
/**
|
|
441
|
+
* deduplicateAsync - deduplicateAsync
|
|
442
|
+
*
|
|
443
|
+
* Submits an async deduplication job. Returns a job ID immediately. Poll GET /v1/deduplicate/jobs/{jobId} for status.
|
|
444
|
+
*/
|
|
445
|
+
'post'(
|
|
446
|
+
parameters?: Parameters<UnknownParamsObject> | null,
|
|
447
|
+
data?: Paths.DeduplicateAsync.RequestBody,
|
|
448
|
+
config?: AxiosRequestConfig
|
|
449
|
+
): OperationResponse<Paths.DeduplicateAsync.Responses.$202>
|
|
450
|
+
}
|
|
451
|
+
['/v1/deduplicate/jobs/{jobId}']: {
|
|
452
|
+
/**
|
|
453
|
+
* getDeduplicationJob - getDeduplicationJob
|
|
454
|
+
*
|
|
455
|
+
* Returns the current status of an async deduplication job
|
|
456
|
+
*/
|
|
457
|
+
'get'(
|
|
458
|
+
parameters?: Parameters<Paths.GetDeduplicationJob.PathParameters> | null,
|
|
459
|
+
data?: any,
|
|
460
|
+
config?: AxiosRequestConfig
|
|
461
|
+
): OperationResponse<Paths.GetDeduplicationJob.Responses.$200>
|
|
462
|
+
}
|
|
463
|
+
['/v1/detect-duplicates']: {
|
|
464
|
+
/**
|
|
465
|
+
* detectDuplicates - detectDuplicates
|
|
466
|
+
*
|
|
467
|
+
* Detects potential duplicate entities for the given entity using the schema's prioritized uniqueness rules. Returns matches with a confidence score.
|
|
468
|
+
*/
|
|
469
|
+
'post'(
|
|
470
|
+
parameters?: Parameters<UnknownParamsObject> | null,
|
|
471
|
+
data?: Paths.DetectDuplicates.RequestBody,
|
|
472
|
+
config?: AxiosRequestConfig
|
|
473
|
+
): OperationResponse<Paths.DetectDuplicates.Responses.$200>
|
|
474
|
+
}
|
|
475
|
+
['/v1/uniqueness-criteria']: {
|
|
476
|
+
/**
|
|
477
|
+
* listUniquenessCriteria - listUniquenessCriteria
|
|
478
|
+
*
|
|
479
|
+
* Lists UniquenessCriteria for the requesting organization. Optionally filtered by schema.
|
|
480
|
+
*/
|
|
481
|
+
'get'(
|
|
482
|
+
parameters?: Parameters<Paths.ListUniquenessCriteria.QueryParameters> | null,
|
|
483
|
+
data?: any,
|
|
484
|
+
config?: AxiosRequestConfig
|
|
485
|
+
): OperationResponse<Paths.ListUniquenessCriteria.Responses.$200>
|
|
486
|
+
/**
|
|
487
|
+
* createUniquenessCriteria - createUniquenessCriteria
|
|
488
|
+
*
|
|
489
|
+
* Creates a new UniquenessCriteria record.
|
|
490
|
+
*/
|
|
491
|
+
'post'(
|
|
492
|
+
parameters?: Parameters<UnknownParamsObject> | null,
|
|
493
|
+
data?: Paths.CreateUniquenessCriteria.RequestBody,
|
|
494
|
+
config?: AxiosRequestConfig
|
|
495
|
+
): OperationResponse<Paths.CreateUniquenessCriteria.Responses.$201>
|
|
496
|
+
}
|
|
497
|
+
['/v1/uniqueness-criteria/{schema}']: {
|
|
498
|
+
/**
|
|
499
|
+
* getUniquenessCriteria - getUniquenessCriteria
|
|
500
|
+
*
|
|
501
|
+
* Fetch a single UniquenessCriteria record.
|
|
502
|
+
*/
|
|
503
|
+
'get'(
|
|
504
|
+
parameters?: Parameters<Paths.GetUniquenessCriteria.PathParameters> | null,
|
|
505
|
+
data?: any,
|
|
506
|
+
config?: AxiosRequestConfig
|
|
507
|
+
): OperationResponse<Paths.GetUniquenessCriteria.Responses.$200>
|
|
508
|
+
/**
|
|
509
|
+
* updateUniquenessCriteria - updateUniquenessCriteria
|
|
510
|
+
*
|
|
511
|
+
* Replace the matchRules on an existing UniquenessCriteria record.
|
|
512
|
+
*/
|
|
513
|
+
'put'(
|
|
514
|
+
parameters?: Parameters<Paths.UpdateUniquenessCriteria.PathParameters> | null,
|
|
515
|
+
data?: Paths.UpdateUniquenessCriteria.RequestBody,
|
|
516
|
+
config?: AxiosRequestConfig
|
|
517
|
+
): OperationResponse<Paths.UpdateUniquenessCriteria.Responses.$200>
|
|
518
|
+
/**
|
|
519
|
+
* deleteUniquenessCriteria - deleteUniquenessCriteria
|
|
520
|
+
*
|
|
521
|
+
* Delete a UniquenessCriteria record.
|
|
522
|
+
*/
|
|
523
|
+
'delete'(
|
|
524
|
+
parameters?: Parameters<Paths.DeleteUniquenessCriteria.PathParameters> | null,
|
|
525
|
+
data?: any,
|
|
526
|
+
config?: AxiosRequestConfig
|
|
527
|
+
): OperationResponse<Paths.DeleteUniquenessCriteria.Responses.$204>
|
|
528
|
+
}
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
type Client = OpenAPIClient<OperationMethods, PathsDictionary>
|
|
532
|
+
|
|
533
|
+
|
|
534
|
+
type DeduplicateAsyncResponse = Components.Schemas.DeduplicateAsyncResponse;
|
|
535
|
+
type DeduplicateRequestBody = Components.Schemas.DeduplicateRequestBody;
|
|
536
|
+
type DeduplicateRequestResponse = Components.Schemas.DeduplicateRequestResponse;
|
|
537
|
+
type DeduplicationJob = Components.Schemas.DeduplicationJob;
|
|
538
|
+
type DetectDuplicatesRequestBody = Components.Schemas.DetectDuplicatesRequestBody;
|
|
539
|
+
type DetectDuplicatesResponse = Components.Schemas.DetectDuplicatesResponse;
|
|
540
|
+
type DetectedDuplicateMatch = Components.Schemas.DetectedDuplicateMatch;
|
|
541
|
+
type Entity = Components.Schemas.Entity;
|
|
542
|
+
type JobStatus = Components.Schemas.JobStatus;
|
|
543
|
+
type MatchAttribute = Components.Schemas.MatchAttribute;
|
|
544
|
+
type MatchRule = Components.Schemas.MatchRule;
|
|
545
|
+
type UniquenessCriteria = Components.Schemas.UniquenessCriteria;
|
|
546
|
+
type UniquenessCriteriaCreateBody = Components.Schemas.UniquenessCriteriaCreateBody;
|
|
547
|
+
type UniquenessCriteriaListResponse = Components.Schemas.UniquenessCriteriaListResponse;
|
|
548
|
+
type UniquenessCriteriaUpdateBody = Components.Schemas.UniquenessCriteriaUpdateBody;
|
|
549
|
+
|
|
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 MatchRule as i, type UniquenessCriteriaCreateBody as j, type UniquenessCriteriaListResponse as k, type UniquenessCriteriaUpdateBody as l };
|