@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.
Files changed (129) hide show
  1. package/definitions/deduplication-runtime.json +1 -1
  2. package/definitions/deduplication.json +80 -4
  3. package/dist/apis/access-token.cjs +6 -6
  4. package/dist/apis/access-token.js +1 -1
  5. package/dist/apis/address-suggestions.cjs +6 -6
  6. package/dist/apis/address-suggestions.js +1 -1
  7. package/dist/apis/address.cjs +6 -6
  8. package/dist/apis/address.js +1 -1
  9. package/dist/apis/ai-agents.cjs +6 -6
  10. package/dist/apis/ai-agents.js +1 -1
  11. package/dist/apis/app.cjs +6 -6
  12. package/dist/apis/app.js +1 -1
  13. package/dist/apis/audit-logs.cjs +6 -6
  14. package/dist/apis/audit-logs.js +1 -1
  15. package/dist/apis/automation.cjs +6 -6
  16. package/dist/apis/automation.js +1 -1
  17. package/dist/apis/billing.cjs +6 -6
  18. package/dist/apis/billing.js +1 -1
  19. package/dist/apis/blueprint-manifest.cjs +6 -6
  20. package/dist/apis/blueprint-manifest.js +1 -1
  21. package/dist/apis/calendar.cjs +6 -6
  22. package/dist/apis/calendar.js +1 -1
  23. package/dist/apis/configuration-hub.cjs +6 -6
  24. package/dist/apis/configuration-hub.js +1 -1
  25. package/dist/apis/consent.cjs +6 -6
  26. package/dist/apis/consent.js +1 -1
  27. package/dist/apis/customer-portal.cjs +6 -6
  28. package/dist/apis/customer-portal.js +1 -1
  29. package/dist/apis/dashboard.cjs +6 -6
  30. package/dist/apis/dashboard.js +1 -1
  31. package/dist/apis/data-governance.cjs +6 -6
  32. package/dist/apis/data-governance.js +1 -1
  33. package/dist/apis/deduplication.cjs +8 -8
  34. package/dist/apis/deduplication.d.cts +2 -2
  35. package/dist/apis/deduplication.d.ts +2 -2
  36. package/dist/apis/deduplication.js +2 -2
  37. package/dist/apis/design.cjs +6 -6
  38. package/dist/apis/design.js +1 -1
  39. package/dist/apis/document.cjs +6 -6
  40. package/dist/apis/document.js +1 -1
  41. package/dist/apis/email-settings.cjs +6 -6
  42. package/dist/apis/email-settings.js +1 -1
  43. package/dist/apis/email-template.cjs +6 -6
  44. package/dist/apis/email-template.js +1 -1
  45. package/dist/apis/entity-mapping.cjs +6 -6
  46. package/dist/apis/entity-mapping.js +1 -1
  47. package/dist/apis/entity.cjs +6 -6
  48. package/dist/apis/entity.js +1 -1
  49. package/dist/apis/environments.cjs +6 -6
  50. package/dist/apis/environments.js +1 -1
  51. package/dist/apis/event-catalog.cjs +6 -6
  52. package/dist/apis/event-catalog.js +1 -1
  53. package/dist/apis/file.cjs +6 -6
  54. package/dist/apis/file.js +1 -1
  55. package/dist/apis/iban.cjs +6 -6
  56. package/dist/apis/iban.js +1 -1
  57. package/dist/apis/integration-toolkit.cjs +6 -6
  58. package/dist/apis/integration-toolkit.js +1 -1
  59. package/dist/apis/journey.cjs +6 -6
  60. package/dist/apis/journey.js +1 -1
  61. package/dist/apis/kanban.cjs +6 -6
  62. package/dist/apis/kanban.js +1 -1
  63. package/dist/apis/message.cjs +6 -6
  64. package/dist/apis/message.js +1 -1
  65. package/dist/apis/metering.cjs +6 -6
  66. package/dist/apis/metering.js +1 -1
  67. package/dist/apis/notes.cjs +6 -6
  68. package/dist/apis/notes.js +1 -1
  69. package/dist/apis/notification.cjs +6 -6
  70. package/dist/apis/notification.js +1 -1
  71. package/dist/apis/organization.cjs +6 -6
  72. package/dist/apis/organization.js +1 -1
  73. package/dist/apis/partner-directory.cjs +6 -6
  74. package/dist/apis/partner-directory.js +1 -1
  75. package/dist/apis/permissions.cjs +6 -6
  76. package/dist/apis/permissions.js +1 -1
  77. package/dist/apis/pricing-tier.cjs +6 -6
  78. package/dist/apis/pricing-tier.js +1 -1
  79. package/dist/apis/pricing.cjs +6 -6
  80. package/dist/apis/pricing.js +1 -1
  81. package/dist/apis/purpose.cjs +6 -6
  82. package/dist/apis/purpose.js +1 -1
  83. package/dist/apis/query.cjs +6 -6
  84. package/dist/apis/query.js +1 -1
  85. package/dist/apis/sandbox.cjs +6 -6
  86. package/dist/apis/sandbox.js +1 -1
  87. package/dist/apis/sharing.cjs +6 -6
  88. package/dist/apis/sharing.js +1 -1
  89. package/dist/apis/snapshot.cjs +6 -6
  90. package/dist/apis/snapshot.js +1 -1
  91. package/dist/apis/submission.cjs +6 -6
  92. package/dist/apis/submission.js +1 -1
  93. package/dist/apis/target.cjs +6 -6
  94. package/dist/apis/target.js +1 -1
  95. package/dist/apis/targeting.cjs +6 -6
  96. package/dist/apis/targeting.js +1 -1
  97. package/dist/apis/template-variables.cjs +6 -6
  98. package/dist/apis/template-variables.js +1 -1
  99. package/dist/apis/user.cjs +6 -6
  100. package/dist/apis/user.js +1 -1
  101. package/dist/apis/validation-rules.cjs +6 -6
  102. package/dist/apis/validation-rules.js +1 -1
  103. package/dist/apis/webhooks.cjs +6 -6
  104. package/dist/apis/webhooks.js +1 -1
  105. package/dist/apis/workflow-definition.cjs +6 -6
  106. package/dist/apis/workflow-definition.js +1 -1
  107. package/dist/apis/workflow.cjs +6 -6
  108. package/dist/apis/workflow.js +1 -1
  109. package/dist/{chunk-TNIQ67SK.cjs → chunk-56SO5YDQ.cjs} +2 -2
  110. package/dist/{chunk-CKD3HAHW.js → chunk-5B7KMWW3.js} +1 -1
  111. package/dist/{chunk-TWI3P2QA.cjs → chunk-BEJ5NIRC.cjs} +1 -1
  112. package/dist/{chunk-VJKGGDHF.js → chunk-OGOMIUCZ.js} +2 -2
  113. package/dist/deduplication-FFW7L6P5.cjs +7 -0
  114. package/dist/deduplication-JNS7SSUR.js +7 -0
  115. package/dist/{deduplication-runtime-5TJHUSQN.js → deduplication-runtime-52CD6PA3.js} +1 -1
  116. package/dist/{deduplication-runtime-ZKX6LN5P.cjs → deduplication-runtime-FU24WISY.cjs} +2 -2
  117. package/dist/{deduplication.d-DaUo5gZo.d.ts → deduplication.d-Cueh8bDD.d.cts} +151 -2
  118. package/dist/{deduplication.d-DaUo5gZo.d.cts → deduplication.d-Cueh8bDD.d.ts} +151 -2
  119. package/dist/index.cjs +10 -10
  120. package/dist/index.d.cts +1 -1
  121. package/dist/index.d.ts +1 -1
  122. package/dist/index.js +2 -2
  123. package/dist/js-yaml-DLCVPJ7G.js +0 -0
  124. package/docs/deduplication.md +88 -35
  125. package/package.json +11 -12
  126. package/definitions/focus-pocus-runtime.json +0 -1
  127. package/definitions/focus-pocus.json +0 -757
  128. package/dist/deduplication-XYMFEQEE.cjs +0 -7
  129. package/dist/deduplication-YYNT5C3M.js +0 -7
@@ -47,7 +47,12 @@ declare namespace Components {
47
47
  ];
48
48
  }[]
49
49
  ];
50
- export type DeduplicateRequestResponse = /* Base Entity schema */ Entity[];
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 MatchRule as i, type UniquenessCriteriaCreateBody as j, type UniquenessCriteriaListResponse as k, type UniquenessCriteriaUpdateBody as l };
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 };
package/dist/index.cjs CHANGED
@@ -84,7 +84,7 @@ var _chunkJM63KEFZcjs = require('./chunk-JM63KEFZ.cjs');
84
84
  var _chunkXNC4FWS2cjs = require('./chunk-XNC4FWS2.cjs');
85
85
 
86
86
 
87
- var _chunkTWI3P2QAcjs = require('./chunk-TWI3P2QA.cjs');
87
+ var _chunkBEJ5NIRCcjs = require('./chunk-BEJ5NIRC.cjs');
88
88
 
89
89
 
90
90
  var _chunkWHXYES2Dcjs = require('./chunk-WHXYES2D.cjs');
@@ -158,7 +158,7 @@ var _chunkADSWGLIVcjs = require('./chunk-ADSWGLIV.cjs');
158
158
 
159
159
 
160
160
 
161
- var _chunkTNIQ67SKcjs = require('./chunk-TNIQ67SK.cjs');
161
+ var _chunk56SO5YDQcjs = require('./chunk-56SO5YDQ.cjs');
162
162
 
163
163
 
164
164
  var _chunkNJK5F5TFcjs = require('./chunk-NJK5F5TF.cjs');
@@ -225,7 +225,7 @@ var resolveClient = (params) => {
225
225
  }
226
226
  if (!entry.instance) {
227
227
  const definition = entry.loader();
228
- entry.instance = _chunkTNIQ67SKcjs.createApiClient.call(void 0, {
228
+ entry.instance = _chunk56SO5YDQcjs.createApiClient.call(void 0, {
229
229
  definition,
230
230
  token: state.token,
231
231
  headers: state.globalHeaders,
@@ -258,7 +258,7 @@ var resetAllClients = (registry) => {
258
258
  };
259
259
 
260
260
  // src/apis/_registry.ts
261
- var expandDef = (mod) => _chunkTNIQ67SKcjs.expand.call(void 0, _nullishCoalesce(mod.default, () => ( mod)));
261
+ var expandDef = (mod) => _chunk56SO5YDQcjs.expand.call(void 0, _nullishCoalesce(mod.default, () => ( mod)));
262
262
  var registerBuiltinApis = (registry) => {
263
263
  registerApi({
264
264
  registry,
@@ -338,7 +338,7 @@ var registerBuiltinApis = (registry) => {
338
338
  registerApi({
339
339
  registry,
340
340
  name: "deduplication",
341
- loader: () => expandDef(_chunkTWI3P2QAcjs.require_deduplication_runtime.call(void 0, ))
341
+ loader: () => expandDef(_chunkBEJ5NIRCcjs.require_deduplication_runtime.call(void 0, ))
342
342
  });
343
343
  registerApi({
344
344
  registry,
@@ -601,9 +601,9 @@ var createSDK = () => {
601
601
  const available = [...registry.keys()].join(", ");
602
602
  throw new Error(`Unknown API: "${name}". Available: ${available}`);
603
603
  }
604
- return _chunkTNIQ67SKcjs.createApiHandle.call(void 0, {
604
+ return _chunk56SO5YDQcjs.createApiHandle.call(void 0, {
605
605
  resolveClient: () => resolveClient({ registry, name, state }),
606
- createClient: () => _chunkTNIQ67SKcjs.createApiClient.call(void 0, { definition: entry.loader(), apiName: name }),
606
+ createClient: () => _chunk56SO5YDQcjs.createApiClient.call(void 0, { definition: entry.loader(), apiName: name }),
607
607
  apiName: name
608
608
  });
609
609
  };
@@ -651,9 +651,9 @@ var createSDK = () => {
651
651
  return interceptorUse;
652
652
  }
653
653
  case "help":
654
- return (apiName) => _chunkTNIQ67SKcjs.help.call(void 0, apiName);
654
+ return (apiName) => _chunk56SO5YDQcjs.help.call(void 0, apiName);
655
655
  case "openapi":
656
- return (apiName) => _chunkTNIQ67SKcjs.openapi.call(void 0, apiName);
656
+ return (apiName) => _chunk56SO5YDQcjs.openapi.call(void 0, apiName);
657
657
  case "then":
658
658
  case "catch":
659
659
  case "finally":
@@ -683,4 +683,4 @@ var epilot = createSDK();
683
683
 
684
684
 
685
685
 
686
- exports.applyLargeResponseInterceptor = applyLargeResponseInterceptor; exports.applyRetryInterceptor = applyRetryInterceptor; exports.authorize = _chunkTNIQ67SKcjs.authorize; exports.createSDK = createSDK; exports.epilot = epilot; exports.help = _chunkTNIQ67SKcjs.help; exports.openapi = _chunkTNIQ67SKcjs.openapi;
686
+ exports.applyLargeResponseInterceptor = applyLargeResponseInterceptor; exports.applyRetryInterceptor = applyRetryInterceptor; exports.authorize = _chunk56SO5YDQcjs.authorize; exports.createSDK = createSDK; exports.epilot = epilot; exports.help = _chunk56SO5YDQcjs.help; exports.openapi = _chunk56SO5YDQcjs.openapi;
package/dist/index.d.cts CHANGED
@@ -18,7 +18,7 @@ import { C as Client$b } from './consent.d-C2PROHhX.cjs';
18
18
  import { C as Client$c } from './customer-portal.d-JVkJjm_e.cjs';
19
19
  import { C as Client$d } from './dashboard.d-CsGcA74I.cjs';
20
20
  import { C as Client$e } from './data-governance.d-BbZ466j5.cjs';
21
- import { C as Client$f } from './deduplication.d-DaUo5gZo.cjs';
21
+ import { C as Client$f } from './deduplication.d-Cueh8bDD.cjs';
22
22
  import { C as Client$g } from './design.d-DzSDu8cy.cjs';
23
23
  import { C as Client$h } from './document.d-DN37pjdx.cjs';
24
24
  import { C as Client$i } from './email-settings.d-CR4lORuR.cjs';
package/dist/index.d.ts CHANGED
@@ -18,7 +18,7 @@ import { C as Client$b } from './consent.d-C2PROHhX.js';
18
18
  import { C as Client$c } from './customer-portal.d-JVkJjm_e.js';
19
19
  import { C as Client$d } from './dashboard.d-CsGcA74I.js';
20
20
  import { C as Client$e } from './data-governance.d-BbZ466j5.js';
21
- import { C as Client$f } from './deduplication.d-DaUo5gZo.js';
21
+ import { C as Client$f } from './deduplication.d-Cueh8bDD.js';
22
22
  import { C as Client$g } from './design.d-DzSDu8cy.js';
23
23
  import { C as Client$h } from './document.d-DN37pjdx.js';
24
24
  import { C as Client$i } from './email-settings.d-CR4lORuR.js';
package/dist/index.js CHANGED
@@ -84,7 +84,7 @@ import {
84
84
  } from "./chunk-LE4OZS7T.js";
85
85
  import {
86
86
  require_deduplication_runtime
87
- } from "./chunk-CKD3HAHW.js";
87
+ } from "./chunk-5B7KMWW3.js";
88
88
  import {
89
89
  require_design_runtime
90
90
  } from "./chunk-P4NA7NWG.js";
@@ -158,7 +158,7 @@ import {
158
158
  expand,
159
159
  help,
160
160
  openapi
161
- } from "./chunk-VJKGGDHF.js";
161
+ } from "./chunk-OGOMIUCZ.js";
162
162
  import {
163
163
  __require
164
164
  } from "./chunk-YPSWSI3M.js";
File without changes
@@ -28,6 +28,7 @@ const { data } = await deduplicationClient.deduplicate(...)
28
28
  - [`deduplicateAsync`](#deduplicateasync)
29
29
  - [`getDeduplicationJob`](#getdeduplicationjob)
30
30
  - [`detectDuplicates`](#detectduplicates)
31
+ - [`dismissDuplicates`](#dismissduplicates)
31
32
  - [`listUniquenessCriteria`](#listuniquenesscriteria)
32
33
  - [`createUniquenessCriteria`](#createuniquenesscriteria)
33
34
  - [`getUniquenessCriteria`](#getuniquenesscriteria)
@@ -44,6 +45,8 @@ const { data } = await deduplicationClient.deduplicate(...)
44
45
  - [`DetectDuplicatesRequestBody`](#detectduplicatesrequestbody)
45
46
  - [`DetectDuplicatesResponse`](#detectduplicatesresponse)
46
47
  - [`DetectedDuplicateMatch`](#detectedduplicatematch)
48
+ - [`DismissDuplicatesRequestBody`](#dismissduplicatesrequestbody)
49
+ - [`DismissDuplicatesResponse`](#dismissduplicatesresponse)
47
50
  - [`UniquenessCriteriaListResponse`](#uniquenesscriterialistresponse)
48
51
  - [`UniquenessCriteria`](#uniquenesscriteria)
49
52
  - [`MatchRule`](#matchrule)
@@ -73,26 +76,28 @@ const { data } = await client.deduplicate(
73
76
  <summary>Response</summary>
74
77
 
75
78
  ```json
76
- [
77
- {
78
- "_id": "string",
79
- "_org": "string",
80
- "_schema": "string",
81
- "_created_at": "1970-01-01T00:00:00.000Z",
82
- "_updated_at": "1970-01-01T00:00:00.000Z",
83
- "_created_by": "string",
84
- "created_by": "string",
85
- "_tags": ["string"],
86
- "_acl": {},
87
- "_owners": [
88
- {
89
- "org_id": "string",
90
- "user_id": "string"
91
- }
92
- ],
93
- "type": "string"
94
- }
95
- ]
79
+ {
80
+ "deduplicatedEntities": [
81
+ {
82
+ "_id": "string",
83
+ "_org": "string",
84
+ "_schema": "string",
85
+ "_created_at": "1970-01-01T00:00:00.000Z",
86
+ "_updated_at": "1970-01-01T00:00:00.000Z",
87
+ "_created_by": "string",
88
+ "created_by": "string",
89
+ "_tags": ["string"],
90
+ "_acl": {},
91
+ "_owners": [
92
+ {
93
+ "org_id": "string",
94
+ "user_id": "string"
95
+ }
96
+ ],
97
+ "type": "string"
98
+ }
99
+ ]
100
+ }
96
101
  ```
97
102
 
98
103
  </details>
@@ -220,6 +225,35 @@ const { data } = await client.detectDuplicates(
220
225
 
221
226
  ---
222
227
 
228
+ ### `dismissDuplicates`
229
+
230
+ 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
231
+
232
+ `POST /v1/duplicates/dismiss`
233
+
234
+ ```ts
235
+ const { data } = await client.dismissDuplicates(
236
+ null,
237
+ {
238
+ schema: 'string',
239
+ entityIds: ['string']
240
+ },
241
+ )
242
+ ```
243
+
244
+ <details>
245
+ <summary>Response</summary>
246
+
247
+ ```json
248
+ {
249
+ "dismissed": ["string"]
250
+ }
251
+ ```
252
+
253
+ </details>
254
+
255
+ ---
256
+
223
257
  ### `listUniquenessCriteria`
224
258
 
225
259
  Lists UniquenessCriteria for the requesting organization. Optionally filtered by schema.
@@ -441,22 +475,24 @@ type DeduplicateRequestBody = Array<{
441
475
  ### `DeduplicateRequestResponse`
442
476
 
443
477
  ```ts
444
- type DeduplicateRequestResponse = Array<{
445
- _id: string
446
- _org?: string
447
- _schema?: string
448
- _created_at?: string // date-time
449
- _updated_at?: string // date-time
450
- _created_by?: string | number
451
- created_by?: string | number
452
- _tags?: string[]
453
- _acl?: Record<string, string[]>
454
- _owners?: Array<{
455
- org_id: string
456
- user_id: string
478
+ type DeduplicateRequestResponse = {
479
+ deduplicatedEntities: Array<{
480
+ _id: string
481
+ _org?: string
482
+ _schema?: string
483
+ _created_at?: string // date-time
484
+ _updated_at?: string // date-time
485
+ _created_by?: string | number
486
+ created_by?: string | number
487
+ _tags?: string[]
488
+ _acl?: Record<string, string[]>
489
+ _owners?: Array<{
490
+ org_id: { ... }
491
+ user_id: { ... }
492
+ }>
493
+ type?: string
457
494
  }>
458
- type?: string
459
- }>
495
+ }
460
496
  ```
461
497
 
462
498
  ### `Entity`
@@ -588,6 +624,23 @@ type DetectedDuplicateMatch = {
588
624
  }
589
625
  ```
590
626
 
627
+ ### `DismissDuplicatesRequestBody`
628
+
629
+ ```ts
630
+ type DismissDuplicatesRequestBody = {
631
+ schema: string
632
+ entityIds: string[]
633
+ }
634
+ ```
635
+
636
+ ### `DismissDuplicatesResponse`
637
+
638
+ ```ts
639
+ type DismissDuplicatesResponse = {
640
+ dismissed: string[]
641
+ }
642
+ ```
643
+
591
644
  ### `UniquenessCriteriaListResponse`
592
645
 
593
646
  ```ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epilot/sdk",
3
- "version": "2.17.0",
3
+ "version": "2.17.1",
4
4
  "description": "JavaScript/TypeScript SDK for epilot APIs",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -322,16 +322,6 @@
322
322
  },
323
323
  "./workflow-definition/openapi.json": "./definitions/workflow-definition.json"
324
324
  },
325
- "scripts": {
326
- "generate": "tsx ../../scripts/generate-sdk-v2.ts && pnpm lint:fix",
327
- "build": "tsup",
328
- "build:watch": "tsup --watch",
329
- "test": "vitest run",
330
- "test:watch": "vitest",
331
- "lint": "biome check src",
332
- "lint:fix": "biome check src --fix",
333
- "prepublishOnly": "npm run build"
334
- },
335
325
  "keywords": [
336
326
  "epilot",
337
327
  "sdk",
@@ -525,5 +515,14 @@
525
515
  "./dist/apis/workflow-definition.d.ts"
526
516
  ]
527
517
  }
518
+ },
519
+ "scripts": {
520
+ "generate": "tsx ../../scripts/generate-sdk-v2.ts && pnpm lint:fix",
521
+ "build": "tsup",
522
+ "build:watch": "tsup --watch",
523
+ "test": "vitest run",
524
+ "test:watch": "vitest",
525
+ "lint": "biome check src",
526
+ "lint:fix": "biome check src --fix"
528
527
  }
529
- }
528
+ }
@@ -1 +0,0 @@
1
- {"s":"https://focus-pocus.dev.sls.epilot.io","o":[["getHealth","get","/v1/health"],["listAchievements","get","/v1/achievements"],["getAchievement","get","/v1/achievements/{id}",[["AchievementOrChallengeId"]]],["getSuggestedChallenge","get","/v1/challenges/suggest",[["route","q"],["entity_type","q"],["category_hint","q"]]],["acceptChallenge","post","/v1/challenges/{id}/accept",[["ChallengeId"]]],["dismissChallenge","post","/v1/challenges/{id}/dismiss",[["ChallengeId"]]],["listActiveChallenges","get","/v1/challenges/active"],["postEvent","post","/v1/events",null,1]],"v":"3.0.3","cp":{"AchievementId":["id","p",true],"AchievementOrChallengeId":["id","p",true],"ChallengeId":["id","p",true],"Cursor":["cursor","q"],"Size":["size","q"]}}