@epilot/sdk 2.17.0 → 2.18.0

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 (136) hide show
  1. package/definitions/deduplication-runtime.json +1 -1
  2. package/definitions/deduplication.json +80 -4
  3. package/definitions/integration-toolkit.json +166 -3
  4. package/dist/apis/access-token.cjs +6 -6
  5. package/dist/apis/access-token.js +1 -1
  6. package/dist/apis/address-suggestions.cjs +6 -6
  7. package/dist/apis/address-suggestions.js +1 -1
  8. package/dist/apis/address.cjs +6 -6
  9. package/dist/apis/address.js +1 -1
  10. package/dist/apis/ai-agents.cjs +6 -6
  11. package/dist/apis/ai-agents.js +1 -1
  12. package/dist/apis/app.cjs +6 -6
  13. package/dist/apis/app.js +1 -1
  14. package/dist/apis/audit-logs.cjs +6 -6
  15. package/dist/apis/audit-logs.js +1 -1
  16. package/dist/apis/automation.cjs +6 -6
  17. package/dist/apis/automation.js +1 -1
  18. package/dist/apis/billing.cjs +6 -6
  19. package/dist/apis/billing.js +1 -1
  20. package/dist/apis/blueprint-manifest.cjs +6 -6
  21. package/dist/apis/blueprint-manifest.js +1 -1
  22. package/dist/apis/calendar.cjs +6 -6
  23. package/dist/apis/calendar.js +1 -1
  24. package/dist/apis/configuration-hub.cjs +6 -6
  25. package/dist/apis/configuration-hub.js +1 -1
  26. package/dist/apis/consent.cjs +6 -6
  27. package/dist/apis/consent.js +1 -1
  28. package/dist/apis/customer-portal.cjs +6 -6
  29. package/dist/apis/customer-portal.js +1 -1
  30. package/dist/apis/dashboard.cjs +6 -6
  31. package/dist/apis/dashboard.js +1 -1
  32. package/dist/apis/data-governance.cjs +6 -6
  33. package/dist/apis/data-governance.js +1 -1
  34. package/dist/apis/deduplication.cjs +8 -8
  35. package/dist/apis/deduplication.d.cts +2 -2
  36. package/dist/apis/deduplication.d.ts +2 -2
  37. package/dist/apis/deduplication.js +2 -2
  38. package/dist/apis/design.cjs +6 -6
  39. package/dist/apis/design.js +1 -1
  40. package/dist/apis/document.cjs +6 -6
  41. package/dist/apis/document.js +1 -1
  42. package/dist/apis/email-settings.cjs +6 -6
  43. package/dist/apis/email-settings.js +1 -1
  44. package/dist/apis/email-template.cjs +6 -6
  45. package/dist/apis/email-template.js +1 -1
  46. package/dist/apis/entity-mapping.cjs +6 -6
  47. package/dist/apis/entity-mapping.js +1 -1
  48. package/dist/apis/entity.cjs +6 -6
  49. package/dist/apis/entity.js +1 -1
  50. package/dist/apis/environments.cjs +6 -6
  51. package/dist/apis/environments.js +1 -1
  52. package/dist/apis/event-catalog.cjs +6 -6
  53. package/dist/apis/event-catalog.js +1 -1
  54. package/dist/apis/file.cjs +6 -6
  55. package/dist/apis/file.js +1 -1
  56. package/dist/apis/iban.cjs +6 -6
  57. package/dist/apis/iban.js +1 -1
  58. package/dist/apis/integration-toolkit.cjs +6 -6
  59. package/dist/apis/integration-toolkit.d.cts +2 -2
  60. package/dist/apis/integration-toolkit.d.ts +2 -2
  61. package/dist/apis/integration-toolkit.js +1 -1
  62. package/dist/apis/journey.cjs +6 -6
  63. package/dist/apis/journey.js +1 -1
  64. package/dist/apis/kanban.cjs +6 -6
  65. package/dist/apis/kanban.js +1 -1
  66. package/dist/apis/message.cjs +6 -6
  67. package/dist/apis/message.js +1 -1
  68. package/dist/apis/metering.cjs +6 -6
  69. package/dist/apis/metering.js +1 -1
  70. package/dist/apis/notes.cjs +6 -6
  71. package/dist/apis/notes.js +1 -1
  72. package/dist/apis/notification.cjs +6 -6
  73. package/dist/apis/notification.js +1 -1
  74. package/dist/apis/organization.cjs +6 -6
  75. package/dist/apis/organization.js +1 -1
  76. package/dist/apis/partner-directory.cjs +6 -6
  77. package/dist/apis/partner-directory.js +1 -1
  78. package/dist/apis/permissions.cjs +6 -6
  79. package/dist/apis/permissions.js +1 -1
  80. package/dist/apis/pricing-tier.cjs +6 -6
  81. package/dist/apis/pricing-tier.js +1 -1
  82. package/dist/apis/pricing.cjs +6 -6
  83. package/dist/apis/pricing.js +1 -1
  84. package/dist/apis/purpose.cjs +6 -6
  85. package/dist/apis/purpose.js +1 -1
  86. package/dist/apis/query.cjs +6 -6
  87. package/dist/apis/query.js +1 -1
  88. package/dist/apis/sandbox.cjs +6 -6
  89. package/dist/apis/sandbox.js +1 -1
  90. package/dist/apis/sharing.cjs +6 -6
  91. package/dist/apis/sharing.js +1 -1
  92. package/dist/apis/snapshot.cjs +6 -6
  93. package/dist/apis/snapshot.js +1 -1
  94. package/dist/apis/submission.cjs +6 -6
  95. package/dist/apis/submission.js +1 -1
  96. package/dist/apis/target.cjs +6 -6
  97. package/dist/apis/target.js +1 -1
  98. package/dist/apis/targeting.cjs +6 -6
  99. package/dist/apis/targeting.js +1 -1
  100. package/dist/apis/template-variables.cjs +6 -6
  101. package/dist/apis/template-variables.js +1 -1
  102. package/dist/apis/user.cjs +6 -6
  103. package/dist/apis/user.js +1 -1
  104. package/dist/apis/validation-rules.cjs +6 -6
  105. package/dist/apis/validation-rules.js +1 -1
  106. package/dist/apis/webhooks.cjs +6 -6
  107. package/dist/apis/webhooks.js +1 -1
  108. package/dist/apis/workflow-definition.cjs +6 -6
  109. package/dist/apis/workflow-definition.js +1 -1
  110. package/dist/apis/workflow.cjs +6 -6
  111. package/dist/apis/workflow.js +1 -1
  112. package/dist/{chunk-CKD3HAHW.js → chunk-5B7KMWW3.js} +1 -1
  113. package/dist/{chunk-TWI3P2QA.cjs → chunk-BEJ5NIRC.cjs} +1 -1
  114. package/dist/{chunk-VJKGGDHF.js → chunk-UQKZYCSP.js} +3 -3
  115. package/dist/{chunk-TNIQ67SK.cjs → chunk-ZL3GLE4V.cjs} +3 -3
  116. package/dist/deduplication-FFW7L6P5.cjs +7 -0
  117. package/dist/deduplication-JNS7SSUR.js +7 -0
  118. package/dist/{deduplication-runtime-5TJHUSQN.js → deduplication-runtime-52CD6PA3.js} +1 -1
  119. package/dist/{deduplication-runtime-ZKX6LN5P.cjs → deduplication-runtime-FU24WISY.cjs} +2 -2
  120. package/dist/{deduplication.d-DaUo5gZo.d.ts → deduplication.d-Cueh8bDD.d.cts} +151 -2
  121. package/dist/{deduplication.d-DaUo5gZo.d.cts → deduplication.d-Cueh8bDD.d.ts} +151 -2
  122. package/dist/index.cjs +10 -10
  123. package/dist/index.d.cts +2 -2
  124. package/dist/index.d.ts +2 -2
  125. package/dist/index.js +2 -2
  126. package/dist/integration-toolkit-XGP4BIWX.js +7 -0
  127. package/dist/integration-toolkit-ZVBMKUWM.cjs +7 -0
  128. package/dist/{integration-toolkit.d-BkWRJ8Xm.d.cts → integration-toolkit.d-D5HZSNUf.d.cts} +109 -1
  129. package/dist/{integration-toolkit.d-BkWRJ8Xm.d.ts → integration-toolkit.d-D5HZSNUf.d.ts} +109 -1
  130. package/docs/deduplication.md +88 -35
  131. package/docs/integration-toolkit.md +144 -4
  132. package/package.json +1 -1
  133. package/dist/deduplication-XYMFEQEE.cjs +0 -7
  134. package/dist/deduplication-YYNT5C3M.js +0 -7
  135. package/dist/integration-toolkit-54F6GS67.js +0 -7
  136. package/dist/integration-toolkit-FRSDSG4I.cjs +0 -7
@@ -1728,6 +1728,50 @@ declare namespace Components {
1728
1728
  */
1729
1729
  change_description?: string;
1730
1730
  }
1731
+ /**
1732
+ * A resolved entity prune scope. At runtime, entities of `entity_slug` found within `scope` whose unique identifiers are not listed in `keep_unique_ids` are removed using `deletion_mode`.
1733
+ */
1734
+ export interface EntityPruneScopeUpdate {
1735
+ /**
1736
+ * The entity type that would be pruned
1737
+ */
1738
+ entity_slug: string;
1739
+ /**
1740
+ * The scope configuration resolved against the payload
1741
+ */
1742
+ scope: {
1743
+ /**
1744
+ * How the entities in scope are found
1745
+ */
1746
+ scope_mode: "relations" | "query";
1747
+ /**
1748
+ * Schema of the related entity defining the scope (`relations` scope_mode only)
1749
+ */
1750
+ schema?: string;
1751
+ /**
1752
+ * Resolved unique identifiers of the related scope entity (`relations` scope_mode only)
1753
+ */
1754
+ unique_ids?: {
1755
+ [name: string]: any;
1756
+ };
1757
+ /**
1758
+ * Resolved query parameters used to find entities in scope (`query` scope_mode only)
1759
+ */
1760
+ query?: {
1761
+ [name: string]: any;
1762
+ };
1763
+ };
1764
+ /**
1765
+ * Unique identifiers of the entities upserted by this payload. Everything else found in scope would be deleted.
1766
+ */
1767
+ keep_unique_ids: {
1768
+ [name: string]: any;
1769
+ }[];
1770
+ /**
1771
+ * `delete` soft deletes the pruned entities, `purge` removes them permanently
1772
+ */
1773
+ deletion_mode: "delete" | "purge";
1774
+ }
1731
1775
  export interface EntityUpdate {
1732
1776
  /**
1733
1777
  * The entity type slug
@@ -1745,6 +1789,27 @@ declare namespace Components {
1745
1789
  attributes: {
1746
1790
  [name: string]: any;
1747
1791
  };
1792
+ /**
1793
+ * Present when the entity mapping has a `pricing` block. Echoes the pricing configuration and the data extracted for it, so mapping authors can see what would be sent to the pricing service.
1794
+ */
1795
+ pricing?: {
1796
+ /**
1797
+ * The pricing configuration from the entity mapping
1798
+ */
1799
+ config: {
1800
+ [name: string]: any;
1801
+ };
1802
+ /**
1803
+ * The pricing input data extracted from the payload
1804
+ */
1805
+ data: {
1806
+ [name: string]: any;
1807
+ }[];
1808
+ };
1809
+ /**
1810
+ * Effective operation mode applied to this entity at runtime. `upsert-prune-scope-purge` / `upsert-prune-scope-delete` configurations report `upsert` here, because the individual entities in the payload are upserted — the destructive part of those modes is reported separately in `prune_scope_updates`. For `delete` / `purge`, `attributes` are still mapped and returned but ignored at runtime: only `unique_identifiers` are used to locate the entity to remove.
1811
+ */
1812
+ mode: "upsert" | "delete" | "purge";
1748
1813
  }
1749
1814
  /**
1750
1815
  * Resolves to an org-scoped environment variable from the epilot environments-api service at runtime, replacing hard-coded environment-specific values (URLs, prefixes, identifiers) in inbound mappings. Secrets (`SecretString` values) are never exposed; the runtime treats both "missing key" and "secret-typed key" as identical `undefined` outcomes (no info disclosure via error code). For secret-resolving contexts (e.g. authorization headers in managed-call or file-proxy step configurations), use the templated `{{ env.<key> }}` syntax instead — that mechanism does decrypt secrets.
@@ -4013,6 +4078,14 @@ declare namespace Components {
4013
4078
  export interface MappingSimulationResponse {
4014
4079
  entity_updates: EntityUpdate[];
4015
4080
  meter_readings_updates?: MeterReadingUpdate[];
4081
+ /**
4082
+ * Resolved prune scopes produced by entity mappings using `upsert-prune-scope-purge` / `upsert-prune-scope-delete`. Each entry describes the entities that would be deleted at runtime because they exist in scope but were not part of this payload.
4083
+ */
4084
+ prune_scope_updates?: /* A resolved entity prune scope. At runtime, entities of `entity_slug` found within `scope` whose unique identifiers are not listed in `keep_unique_ids` are removed using `deletion_mode`. */ EntityPruneScopeUpdate[];
4085
+ /**
4086
+ * Resolved prune scopes produced by meter reading mappings using `upsert-prune-scope`. Each entry describes the readings that would be deleted at runtime for a meter (+ counter) because they were not part of this payload.
4087
+ */
4088
+ meter_readings_prune_scope_updates?: /* A resolved meter reading prune scope. At runtime, readings of the given meter (+ counter) whose external ids are not listed in `keep_external_ids` are deleted. */ MeterReadingPruneScopeUpdate[];
4016
4089
  /**
4017
4090
  * Validation warnings about the configuration (e.g., unique_ids referencing non-indexed fields)
4018
4091
  */
@@ -4063,6 +4136,35 @@ declare namespace Components {
4063
4136
  */
4064
4137
  source?: string;
4065
4138
  }
4139
+ /**
4140
+ * A resolved meter reading prune scope. At runtime, readings of the given meter (+ counter) whose external ids are not listed in `keep_external_ids` are deleted.
4141
+ */
4142
+ export interface MeterReadingPruneScopeUpdate {
4143
+ meter: {
4144
+ /**
4145
+ * Unique identifiers for the meter
4146
+ */
4147
+ $entity_unique_ids: {
4148
+ [name: string]: any;
4149
+ };
4150
+ };
4151
+ meter_counter?: {
4152
+ /**
4153
+ * Unique identifiers for the meter counter
4154
+ */
4155
+ $entity_unique_ids?: {
4156
+ [name: string]: any;
4157
+ };
4158
+ };
4159
+ /**
4160
+ * External ids of the readings present in this payload. All other readings in scope would be deleted. An empty array means every reading in scope would be deleted.
4161
+ */
4162
+ keep_external_ids: string[];
4163
+ /**
4164
+ * When set, only readings with this source are eligible for pruning (e.g. `ERP`)
4165
+ */
4166
+ source?: string;
4167
+ }
4066
4168
  export interface MeterReadingUpdate {
4067
4169
  meter: {
4068
4170
  /**
@@ -4086,6 +4188,10 @@ declare namespace Components {
4086
4188
  attributes: {
4087
4189
  [name: string]: any;
4088
4190
  };
4191
+ /**
4192
+ * Effective operation mode applied to this reading at runtime. `upsert-prune-scope` configurations report `upsert` here — their destructive part is reported separately in `meter_readings_prune_scope_updates`.
4193
+ */
4194
+ mode: "upsert" | "delete";
4089
4195
  }
4090
4196
  export interface MeterUniqueIdsConfig {
4091
4197
  /**
@@ -9364,6 +9470,7 @@ type EmbeddedOutboundUseCaseRequest = Components.Schemas.EmbeddedOutboundUseCase
9364
9470
  type EmbeddedSecureProxyUseCaseRequest = Components.Schemas.EmbeddedSecureProxyUseCaseRequest;
9365
9471
  type EmbeddedUseCaseRequest = Components.Schemas.EmbeddedUseCaseRequest;
9366
9472
  type EmbeddedUseCaseRequestBase = Components.Schemas.EmbeddedUseCaseRequestBase;
9473
+ type EntityPruneScopeUpdate = Components.Schemas.EntityPruneScopeUpdate;
9367
9474
  type EntityUpdate = Components.Schemas.EntityUpdate;
9368
9475
  type EnvVarRefConfig = Components.Schemas.EnvVarRefConfig;
9369
9476
  type EnvironmentFieldConfig = Components.Schemas.EnvironmentFieldConfig;
@@ -9428,6 +9535,7 @@ type MappingSimulationResponse = Components.Schemas.MappingSimulationResponse;
9428
9535
  type MappingSimulationV2Request = Components.Schemas.MappingSimulationV2Request;
9429
9536
  type MappingSimulationWarning = Components.Schemas.MappingSimulationWarning;
9430
9537
  type MeterReadingPruneScopeConfig = Components.Schemas.MeterReadingPruneScopeConfig;
9538
+ type MeterReadingPruneScopeUpdate = Components.Schemas.MeterReadingPruneScopeUpdate;
9431
9539
  type MeterReadingUpdate = Components.Schemas.MeterReadingUpdate;
9432
9540
  type MeterUniqueIdsConfig = Components.Schemas.MeterUniqueIdsConfig;
9433
9541
  type MonitoringEventV2 = Components.Schemas.MonitoringEventV2;
@@ -9518,4 +9626,4 @@ type UseCaseTypePreview = Components.Schemas.UseCaseTypePreview;
9518
9626
  type WebhookDeliveryConfig = Components.Schemas.WebhookDeliveryConfig;
9519
9627
  type WebhookStatus = Components.Schemas.WebhookStatus;
9520
9628
 
9521
- export { type FileProxyUrlParams as $, type AccessLogEntry as A, type EntityUpdate as B, type Client as C, type DeleteIntegrationAppMappingRequest as D, type EmbeddedFileProxyUseCaseRequest as E, type EnvVarRefConfig as F, type EnvironmentFieldConfig as G, type ErpEvent as H, type ErpEventV3 as I, type ErpImportError as J, type ErpImportJob as K, type ErpImportList as L, type ErpImportProgress as M, type ErpImportValidation as N, type OperationMethods as O, Paths as P, type ErpUpdatesEventsV2Request as Q, type ErpUpdatesEventsV3Request as R, type ErrorResponseBase as S, type ExternalMonitoringSpan as T, type FileProxyAuth as U, type FileProxyParam as V, type FileProxyResponseConfig as W, type FileProxySecureProxyAttachment as X, type FileProxyStep as Y, type FileProxyUrlConfig as Z, type FileProxyUrlParam as _, Components as a, type OutboundPollStatus as a$, type FileProxyUseCase as a0, type FileProxyUseCaseConfiguration as a1, type FileProxyUseCaseHistoryEntry as a2, type GenerateTypesPreviewResponse as a3, type GenerateTypesRequest as a4, type GenerateTypesResponse as a5, type GetMonitoringStatsRequest as a6, type GetMonitoringStatsV2Request as a7, type GetMonitoringTimeSeriesRequest as a8, type GetMonitoringTimeSeriesV2Request as a9, type ManagedCallUseCaseHistoryEntry as aA, type MappingSimulationRequest as aB, type MappingSimulationResponse as aC, type MappingSimulationV2Request as aD, type MappingSimulationWarning as aE, type MeterReadingPruneScopeConfig as aF, type MeterReadingUpdate as aG, type MeterUniqueIdsConfig as aH, type MonitoringEventV2 as aI, type MonitoringStats as aJ, type MonitoringStatsV2 as aK, type MonitoringTraceResponse as aL, type NotificationChannelSet as aM, type NotificationDigestConfig as aN, type NotificationHistoryItem as aO, type NotificationHistoryResponse as aP, type NotificationRecipient as aQ, type NotificationRule as aR, type NotificationRuleStatus as aS, type NotificationStatusResponse as aT, type OutboundConflict as aU, type OutboundDlqListResponse as aV, type OutboundDlqMessage as aW, type OutboundIntegrationEventConfiguration as aX, type OutboundMapping as aY, type OutboundMessage as aZ, type OutboundMonitoringEvent as a_, type InboundIntegrationEventConfiguration as aa, type InboundMonitoringEvent as ab, type InboundUseCase as ac, type InboundUseCaseHistoryEntry as ad, type IngestExternalMonitoringEventsRequest as ae, type IngestExternalMonitoringEventsResponse as af, type Integration as ag, type IntegrationAppMapping as ah, type IntegrationConfigurationV1 as ai, type IntegrationConfigurationV2 as aj, type IntegrationEditableFields as ak, type IntegrationEntity as al, type IntegrationEntityField as am, type IntegrationFieldV1 as an, type IntegrationMeterReading as ao, type IntegrationNotificationConfig as ap, type IntegrationObjectV1 as aq, type IntegrationSettings as ar, type IntegrationWithUseCases as as, type ManagedCallAuth as at, type ManagedCallErrorResponse as au, type ManagedCallExecuteRequest as av, type ManagedCallExecuteResponse as aw, type ManagedCallOperation as ax, type ManagedCallOperationConfig as ay, type ManagedCallUseCase as az, type PathsDictionary as b, type UseCaseHistoryEntryBase as b$, type OutboundStatusResponse as b0, type OutboundUseCase as b1, type OutboundUseCaseHistoryEntry as b2, type OutboundUseCaseStatus as b3, type PollDeliveryConfig as b4, type PollOutboundMessagesRequest as b5, type PollOutboundMessagesResponse as b6, type PortalOrigin as b7, type PortalRefConfig as b8, type PortalRefFilter as b9, type SecureProxyUseCaseHistoryEntry as bA, type SecureProxyWhitelist as bB, type SecureProxyWhitelistUpdate as bC, type SetIntegrationAppMappingRequest as bD, type TestNotificationRequest as bE, type TestNotificationResponse as bF, type TimeSeriesBreakdownItemV2 as bG, type TimeSeriesBucket as bH, type TimeSeriesBucketV2 as bI, type TriggerErpActionRequest as bJ, type TriggerWebhookResp as bK, type TypeAnnotations as bL, type TypeDescriptor as bM, type UnblockOutboundStreamRequest as bN, type UnblockOutboundStreamResponse as bO, type UpdateFileProxyUseCaseRequest as bP, type UpdateInboundUseCaseRequest as bQ, type UpdateIntegrationRequest as bR, type UpdateManagedCallUseCaseRequest as bS, type UpdateOutboundUseCaseRequest as bT, type UpdateSecureProxyUseCaseRequest as bU, type UpdateUseCaseRequest as bV, type UpdateUseCaseRequestBase as bW, type UpsertIntegrationWithUseCasesRequest as bX, type UseCase as bY, type UseCaseBase as bZ, type UseCaseHistoryEntry as b_, type PruneScopeConfig as ba, type QueryAccessLogsRequest as bb, type QueryEventsRequest as bc, type QueryInboundMonitoringEventsRequest as bd, type QueryMonitoringEventsV2Request as be, type QueryOutboundMonitoringEventsRequest as bf, type RedriveOutboundDlqRequest as bg, type RedriveOutboundDlqResponse as bh, type RedriveOutboundDlqResult as bi, type RelationConfig as bj, type RelationItemConfig as bk, type RelationRefItemConfig as bl, type RelationRefValueConfig as bm, type RelationRefsConfig as bn, type RelationUniqueIdField as bo, type RepeatableFieldType as bp, type ReplayEventsRequest as bq, type RuleBaselineBucket as br, type RuleBaselineStatus as bs, type S3Reference as bt, type SecureProxyRequest as bu, type SecureProxyResponse as bv, type SecureProxySummary as bw, type SecureProxyUpstreamError as bx, type SecureProxyUseCase as by, type SecureProxyUseCaseConfiguration as bz, type AckOutboundMessagesRequest as c, type UseCaseTypePreview as c0, type WebhookDeliveryConfig as c1, type WebhookStatus as c2, type AckOutboundMessagesResponse as d, type AckResult as e, type AutoRefreshSettings as f, type CommitTypesRequest as g, type CommitTypesResponse as h, type ConnectorConfig as i, type CreateErpImportRequest as j, type CreateErpImportResponse as k, type CreateFileProxyUseCaseRequest as l, type CreateInboundUseCaseRequest as m, type CreateIntegrationRequest as n, type CreateManagedCallUseCaseRequest as o, type CreateOutboundUseCaseRequest as p, type CreateSecureProxyUseCaseRequest as q, type CreateUseCaseRequest as r, type CreateUseCaseRequestBase as s, type DeliveryConfig as t, type EmbeddedInboundUseCaseRequest as u, type EmbeddedManagedCallUseCaseRequest as v, type EmbeddedOutboundUseCaseRequest as w, type EmbeddedSecureProxyUseCaseRequest as x, type EmbeddedUseCaseRequest as y, type EmbeddedUseCaseRequestBase as z };
9629
+ export { type FileProxyUrlParam as $, type AccessLogEntry as A, type EntityPruneScopeUpdate as B, type Client as C, type DeleteIntegrationAppMappingRequest as D, type EmbeddedFileProxyUseCaseRequest as E, type EntityUpdate as F, type EnvVarRefConfig as G, type EnvironmentFieldConfig as H, type ErpEvent as I, type ErpEventV3 as J, type ErpImportError as K, type ErpImportJob as L, type ErpImportList as M, type ErpImportProgress as N, type OperationMethods as O, Paths as P, type ErpImportValidation as Q, type ErpUpdatesEventsV2Request as R, type ErpUpdatesEventsV3Request as S, type ErrorResponseBase as T, type ExternalMonitoringSpan as U, type FileProxyAuth as V, type FileProxyParam as W, type FileProxyResponseConfig as X, type FileProxySecureProxyAttachment as Y, type FileProxyStep as Z, type FileProxyUrlConfig as _, Components as a, type OutboundMessage as a$, type FileProxyUrlParams as a0, type FileProxyUseCase as a1, type FileProxyUseCaseConfiguration as a2, type FileProxyUseCaseHistoryEntry as a3, type GenerateTypesPreviewResponse as a4, type GenerateTypesRequest as a5, type GenerateTypesResponse as a6, type GetMonitoringStatsRequest as a7, type GetMonitoringStatsV2Request as a8, type GetMonitoringTimeSeriesRequest as a9, type ManagedCallUseCase as aA, type ManagedCallUseCaseHistoryEntry as aB, type MappingSimulationRequest as aC, type MappingSimulationResponse as aD, type MappingSimulationV2Request as aE, type MappingSimulationWarning as aF, type MeterReadingPruneScopeConfig as aG, type MeterReadingPruneScopeUpdate as aH, type MeterReadingUpdate as aI, type MeterUniqueIdsConfig as aJ, type MonitoringEventV2 as aK, type MonitoringStats as aL, type MonitoringStatsV2 as aM, type MonitoringTraceResponse as aN, type NotificationChannelSet as aO, type NotificationDigestConfig as aP, type NotificationHistoryItem as aQ, type NotificationHistoryResponse as aR, type NotificationRecipient as aS, type NotificationRule as aT, type NotificationRuleStatus as aU, type NotificationStatusResponse as aV, type OutboundConflict as aW, type OutboundDlqListResponse as aX, type OutboundDlqMessage as aY, type OutboundIntegrationEventConfiguration as aZ, type OutboundMapping as a_, type GetMonitoringTimeSeriesV2Request as aa, type InboundIntegrationEventConfiguration as ab, type InboundMonitoringEvent as ac, type InboundUseCase as ad, type InboundUseCaseHistoryEntry as ae, type IngestExternalMonitoringEventsRequest as af, type IngestExternalMonitoringEventsResponse as ag, type Integration as ah, type IntegrationAppMapping as ai, type IntegrationConfigurationV1 as aj, type IntegrationConfigurationV2 as ak, type IntegrationEditableFields as al, type IntegrationEntity as am, type IntegrationEntityField as an, type IntegrationFieldV1 as ao, type IntegrationMeterReading as ap, type IntegrationNotificationConfig as aq, type IntegrationObjectV1 as ar, type IntegrationSettings as as, type IntegrationWithUseCases as at, type ManagedCallAuth as au, type ManagedCallErrorResponse as av, type ManagedCallExecuteRequest as aw, type ManagedCallExecuteResponse as ax, type ManagedCallOperation as ay, type ManagedCallOperationConfig as az, type PathsDictionary as b, type UseCaseBase as b$, type OutboundMonitoringEvent as b0, type OutboundPollStatus as b1, type OutboundStatusResponse as b2, type OutboundUseCase as b3, type OutboundUseCaseHistoryEntry as b4, type OutboundUseCaseStatus as b5, type PollDeliveryConfig as b6, type PollOutboundMessagesRequest as b7, type PollOutboundMessagesResponse as b8, type PortalOrigin as b9, type SecureProxyUseCase as bA, type SecureProxyUseCaseConfiguration as bB, type SecureProxyUseCaseHistoryEntry as bC, type SecureProxyWhitelist as bD, type SecureProxyWhitelistUpdate as bE, type SetIntegrationAppMappingRequest as bF, type TestNotificationRequest as bG, type TestNotificationResponse as bH, type TimeSeriesBreakdownItemV2 as bI, type TimeSeriesBucket as bJ, type TimeSeriesBucketV2 as bK, type TriggerErpActionRequest as bL, type TriggerWebhookResp as bM, type TypeAnnotations as bN, type TypeDescriptor as bO, type UnblockOutboundStreamRequest as bP, type UnblockOutboundStreamResponse as bQ, type UpdateFileProxyUseCaseRequest as bR, type UpdateInboundUseCaseRequest as bS, type UpdateIntegrationRequest as bT, type UpdateManagedCallUseCaseRequest as bU, type UpdateOutboundUseCaseRequest as bV, type UpdateSecureProxyUseCaseRequest as bW, type UpdateUseCaseRequest as bX, type UpdateUseCaseRequestBase as bY, type UpsertIntegrationWithUseCasesRequest as bZ, type UseCase as b_, type PortalRefConfig as ba, type PortalRefFilter as bb, type PruneScopeConfig as bc, type QueryAccessLogsRequest as bd, type QueryEventsRequest as be, type QueryInboundMonitoringEventsRequest as bf, type QueryMonitoringEventsV2Request as bg, type QueryOutboundMonitoringEventsRequest as bh, type RedriveOutboundDlqRequest as bi, type RedriveOutboundDlqResponse as bj, type RedriveOutboundDlqResult as bk, type RelationConfig as bl, type RelationItemConfig as bm, type RelationRefItemConfig as bn, type RelationRefValueConfig as bo, type RelationRefsConfig as bp, type RelationUniqueIdField as bq, type RepeatableFieldType as br, type ReplayEventsRequest as bs, type RuleBaselineBucket as bt, type RuleBaselineStatus as bu, type S3Reference as bv, type SecureProxyRequest as bw, type SecureProxyResponse as bx, type SecureProxySummary as by, type SecureProxyUpstreamError as bz, type AckOutboundMessagesRequest as c, type UseCaseHistoryEntry as c0, type UseCaseHistoryEntryBase as c1, type UseCaseTypePreview as c2, type WebhookDeliveryConfig as c3, type WebhookStatus as c4, type AckOutboundMessagesResponse as d, type AckResult as e, type AutoRefreshSettings as f, type CommitTypesRequest as g, type CommitTypesResponse as h, type ConnectorConfig as i, type CreateErpImportRequest as j, type CreateErpImportResponse as k, type CreateFileProxyUseCaseRequest as l, type CreateInboundUseCaseRequest as m, type CreateIntegrationRequest as n, type CreateManagedCallUseCaseRequest as o, type CreateOutboundUseCaseRequest as p, type CreateSecureProxyUseCaseRequest as q, type CreateUseCaseRequest as r, type CreateUseCaseRequestBase as s, type DeliveryConfig as t, type EmbeddedInboundUseCaseRequest as u, type EmbeddedManagedCallUseCaseRequest as v, type EmbeddedOutboundUseCaseRequest as w, type EmbeddedSecureProxyUseCaseRequest as x, type EmbeddedUseCaseRequest as y, type EmbeddedUseCaseRequestBase as z };
@@ -1728,6 +1728,50 @@ declare namespace Components {
1728
1728
  */
1729
1729
  change_description?: string;
1730
1730
  }
1731
+ /**
1732
+ * A resolved entity prune scope. At runtime, entities of `entity_slug` found within `scope` whose unique identifiers are not listed in `keep_unique_ids` are removed using `deletion_mode`.
1733
+ */
1734
+ export interface EntityPruneScopeUpdate {
1735
+ /**
1736
+ * The entity type that would be pruned
1737
+ */
1738
+ entity_slug: string;
1739
+ /**
1740
+ * The scope configuration resolved against the payload
1741
+ */
1742
+ scope: {
1743
+ /**
1744
+ * How the entities in scope are found
1745
+ */
1746
+ scope_mode: "relations" | "query";
1747
+ /**
1748
+ * Schema of the related entity defining the scope (`relations` scope_mode only)
1749
+ */
1750
+ schema?: string;
1751
+ /**
1752
+ * Resolved unique identifiers of the related scope entity (`relations` scope_mode only)
1753
+ */
1754
+ unique_ids?: {
1755
+ [name: string]: any;
1756
+ };
1757
+ /**
1758
+ * Resolved query parameters used to find entities in scope (`query` scope_mode only)
1759
+ */
1760
+ query?: {
1761
+ [name: string]: any;
1762
+ };
1763
+ };
1764
+ /**
1765
+ * Unique identifiers of the entities upserted by this payload. Everything else found in scope would be deleted.
1766
+ */
1767
+ keep_unique_ids: {
1768
+ [name: string]: any;
1769
+ }[];
1770
+ /**
1771
+ * `delete` soft deletes the pruned entities, `purge` removes them permanently
1772
+ */
1773
+ deletion_mode: "delete" | "purge";
1774
+ }
1731
1775
  export interface EntityUpdate {
1732
1776
  /**
1733
1777
  * The entity type slug
@@ -1745,6 +1789,27 @@ declare namespace Components {
1745
1789
  attributes: {
1746
1790
  [name: string]: any;
1747
1791
  };
1792
+ /**
1793
+ * Present when the entity mapping has a `pricing` block. Echoes the pricing configuration and the data extracted for it, so mapping authors can see what would be sent to the pricing service.
1794
+ */
1795
+ pricing?: {
1796
+ /**
1797
+ * The pricing configuration from the entity mapping
1798
+ */
1799
+ config: {
1800
+ [name: string]: any;
1801
+ };
1802
+ /**
1803
+ * The pricing input data extracted from the payload
1804
+ */
1805
+ data: {
1806
+ [name: string]: any;
1807
+ }[];
1808
+ };
1809
+ /**
1810
+ * Effective operation mode applied to this entity at runtime. `upsert-prune-scope-purge` / `upsert-prune-scope-delete` configurations report `upsert` here, because the individual entities in the payload are upserted — the destructive part of those modes is reported separately in `prune_scope_updates`. For `delete` / `purge`, `attributes` are still mapped and returned but ignored at runtime: only `unique_identifiers` are used to locate the entity to remove.
1811
+ */
1812
+ mode: "upsert" | "delete" | "purge";
1748
1813
  }
1749
1814
  /**
1750
1815
  * Resolves to an org-scoped environment variable from the epilot environments-api service at runtime, replacing hard-coded environment-specific values (URLs, prefixes, identifiers) in inbound mappings. Secrets (`SecretString` values) are never exposed; the runtime treats both "missing key" and "secret-typed key" as identical `undefined` outcomes (no info disclosure via error code). For secret-resolving contexts (e.g. authorization headers in managed-call or file-proxy step configurations), use the templated `{{ env.<key> }}` syntax instead — that mechanism does decrypt secrets.
@@ -4013,6 +4078,14 @@ declare namespace Components {
4013
4078
  export interface MappingSimulationResponse {
4014
4079
  entity_updates: EntityUpdate[];
4015
4080
  meter_readings_updates?: MeterReadingUpdate[];
4081
+ /**
4082
+ * Resolved prune scopes produced by entity mappings using `upsert-prune-scope-purge` / `upsert-prune-scope-delete`. Each entry describes the entities that would be deleted at runtime because they exist in scope but were not part of this payload.
4083
+ */
4084
+ prune_scope_updates?: /* A resolved entity prune scope. At runtime, entities of `entity_slug` found within `scope` whose unique identifiers are not listed in `keep_unique_ids` are removed using `deletion_mode`. */ EntityPruneScopeUpdate[];
4085
+ /**
4086
+ * Resolved prune scopes produced by meter reading mappings using `upsert-prune-scope`. Each entry describes the readings that would be deleted at runtime for a meter (+ counter) because they were not part of this payload.
4087
+ */
4088
+ meter_readings_prune_scope_updates?: /* A resolved meter reading prune scope. At runtime, readings of the given meter (+ counter) whose external ids are not listed in `keep_external_ids` are deleted. */ MeterReadingPruneScopeUpdate[];
4016
4089
  /**
4017
4090
  * Validation warnings about the configuration (e.g., unique_ids referencing non-indexed fields)
4018
4091
  */
@@ -4063,6 +4136,35 @@ declare namespace Components {
4063
4136
  */
4064
4137
  source?: string;
4065
4138
  }
4139
+ /**
4140
+ * A resolved meter reading prune scope. At runtime, readings of the given meter (+ counter) whose external ids are not listed in `keep_external_ids` are deleted.
4141
+ */
4142
+ export interface MeterReadingPruneScopeUpdate {
4143
+ meter: {
4144
+ /**
4145
+ * Unique identifiers for the meter
4146
+ */
4147
+ $entity_unique_ids: {
4148
+ [name: string]: any;
4149
+ };
4150
+ };
4151
+ meter_counter?: {
4152
+ /**
4153
+ * Unique identifiers for the meter counter
4154
+ */
4155
+ $entity_unique_ids?: {
4156
+ [name: string]: any;
4157
+ };
4158
+ };
4159
+ /**
4160
+ * External ids of the readings present in this payload. All other readings in scope would be deleted. An empty array means every reading in scope would be deleted.
4161
+ */
4162
+ keep_external_ids: string[];
4163
+ /**
4164
+ * When set, only readings with this source are eligible for pruning (e.g. `ERP`)
4165
+ */
4166
+ source?: string;
4167
+ }
4066
4168
  export interface MeterReadingUpdate {
4067
4169
  meter: {
4068
4170
  /**
@@ -4086,6 +4188,10 @@ declare namespace Components {
4086
4188
  attributes: {
4087
4189
  [name: string]: any;
4088
4190
  };
4191
+ /**
4192
+ * Effective operation mode applied to this reading at runtime. `upsert-prune-scope` configurations report `upsert` here — their destructive part is reported separately in `meter_readings_prune_scope_updates`.
4193
+ */
4194
+ mode: "upsert" | "delete";
4089
4195
  }
4090
4196
  export interface MeterUniqueIdsConfig {
4091
4197
  /**
@@ -9364,6 +9470,7 @@ type EmbeddedOutboundUseCaseRequest = Components.Schemas.EmbeddedOutboundUseCase
9364
9470
  type EmbeddedSecureProxyUseCaseRequest = Components.Schemas.EmbeddedSecureProxyUseCaseRequest;
9365
9471
  type EmbeddedUseCaseRequest = Components.Schemas.EmbeddedUseCaseRequest;
9366
9472
  type EmbeddedUseCaseRequestBase = Components.Schemas.EmbeddedUseCaseRequestBase;
9473
+ type EntityPruneScopeUpdate = Components.Schemas.EntityPruneScopeUpdate;
9367
9474
  type EntityUpdate = Components.Schemas.EntityUpdate;
9368
9475
  type EnvVarRefConfig = Components.Schemas.EnvVarRefConfig;
9369
9476
  type EnvironmentFieldConfig = Components.Schemas.EnvironmentFieldConfig;
@@ -9428,6 +9535,7 @@ type MappingSimulationResponse = Components.Schemas.MappingSimulationResponse;
9428
9535
  type MappingSimulationV2Request = Components.Schemas.MappingSimulationV2Request;
9429
9536
  type MappingSimulationWarning = Components.Schemas.MappingSimulationWarning;
9430
9537
  type MeterReadingPruneScopeConfig = Components.Schemas.MeterReadingPruneScopeConfig;
9538
+ type MeterReadingPruneScopeUpdate = Components.Schemas.MeterReadingPruneScopeUpdate;
9431
9539
  type MeterReadingUpdate = Components.Schemas.MeterReadingUpdate;
9432
9540
  type MeterUniqueIdsConfig = Components.Schemas.MeterUniqueIdsConfig;
9433
9541
  type MonitoringEventV2 = Components.Schemas.MonitoringEventV2;
@@ -9518,4 +9626,4 @@ type UseCaseTypePreview = Components.Schemas.UseCaseTypePreview;
9518
9626
  type WebhookDeliveryConfig = Components.Schemas.WebhookDeliveryConfig;
9519
9627
  type WebhookStatus = Components.Schemas.WebhookStatus;
9520
9628
 
9521
- export { type FileProxyUrlParams as $, type AccessLogEntry as A, type EntityUpdate as B, type Client as C, type DeleteIntegrationAppMappingRequest as D, type EmbeddedFileProxyUseCaseRequest as E, type EnvVarRefConfig as F, type EnvironmentFieldConfig as G, type ErpEvent as H, type ErpEventV3 as I, type ErpImportError as J, type ErpImportJob as K, type ErpImportList as L, type ErpImportProgress as M, type ErpImportValidation as N, type OperationMethods as O, Paths as P, type ErpUpdatesEventsV2Request as Q, type ErpUpdatesEventsV3Request as R, type ErrorResponseBase as S, type ExternalMonitoringSpan as T, type FileProxyAuth as U, type FileProxyParam as V, type FileProxyResponseConfig as W, type FileProxySecureProxyAttachment as X, type FileProxyStep as Y, type FileProxyUrlConfig as Z, type FileProxyUrlParam as _, Components as a, type OutboundPollStatus as a$, type FileProxyUseCase as a0, type FileProxyUseCaseConfiguration as a1, type FileProxyUseCaseHistoryEntry as a2, type GenerateTypesPreviewResponse as a3, type GenerateTypesRequest as a4, type GenerateTypesResponse as a5, type GetMonitoringStatsRequest as a6, type GetMonitoringStatsV2Request as a7, type GetMonitoringTimeSeriesRequest as a8, type GetMonitoringTimeSeriesV2Request as a9, type ManagedCallUseCaseHistoryEntry as aA, type MappingSimulationRequest as aB, type MappingSimulationResponse as aC, type MappingSimulationV2Request as aD, type MappingSimulationWarning as aE, type MeterReadingPruneScopeConfig as aF, type MeterReadingUpdate as aG, type MeterUniqueIdsConfig as aH, type MonitoringEventV2 as aI, type MonitoringStats as aJ, type MonitoringStatsV2 as aK, type MonitoringTraceResponse as aL, type NotificationChannelSet as aM, type NotificationDigestConfig as aN, type NotificationHistoryItem as aO, type NotificationHistoryResponse as aP, type NotificationRecipient as aQ, type NotificationRule as aR, type NotificationRuleStatus as aS, type NotificationStatusResponse as aT, type OutboundConflict as aU, type OutboundDlqListResponse as aV, type OutboundDlqMessage as aW, type OutboundIntegrationEventConfiguration as aX, type OutboundMapping as aY, type OutboundMessage as aZ, type OutboundMonitoringEvent as a_, type InboundIntegrationEventConfiguration as aa, type InboundMonitoringEvent as ab, type InboundUseCase as ac, type InboundUseCaseHistoryEntry as ad, type IngestExternalMonitoringEventsRequest as ae, type IngestExternalMonitoringEventsResponse as af, type Integration as ag, type IntegrationAppMapping as ah, type IntegrationConfigurationV1 as ai, type IntegrationConfigurationV2 as aj, type IntegrationEditableFields as ak, type IntegrationEntity as al, type IntegrationEntityField as am, type IntegrationFieldV1 as an, type IntegrationMeterReading as ao, type IntegrationNotificationConfig as ap, type IntegrationObjectV1 as aq, type IntegrationSettings as ar, type IntegrationWithUseCases as as, type ManagedCallAuth as at, type ManagedCallErrorResponse as au, type ManagedCallExecuteRequest as av, type ManagedCallExecuteResponse as aw, type ManagedCallOperation as ax, type ManagedCallOperationConfig as ay, type ManagedCallUseCase as az, type PathsDictionary as b, type UseCaseHistoryEntryBase as b$, type OutboundStatusResponse as b0, type OutboundUseCase as b1, type OutboundUseCaseHistoryEntry as b2, type OutboundUseCaseStatus as b3, type PollDeliveryConfig as b4, type PollOutboundMessagesRequest as b5, type PollOutboundMessagesResponse as b6, type PortalOrigin as b7, type PortalRefConfig as b8, type PortalRefFilter as b9, type SecureProxyUseCaseHistoryEntry as bA, type SecureProxyWhitelist as bB, type SecureProxyWhitelistUpdate as bC, type SetIntegrationAppMappingRequest as bD, type TestNotificationRequest as bE, type TestNotificationResponse as bF, type TimeSeriesBreakdownItemV2 as bG, type TimeSeriesBucket as bH, type TimeSeriesBucketV2 as bI, type TriggerErpActionRequest as bJ, type TriggerWebhookResp as bK, type TypeAnnotations as bL, type TypeDescriptor as bM, type UnblockOutboundStreamRequest as bN, type UnblockOutboundStreamResponse as bO, type UpdateFileProxyUseCaseRequest as bP, type UpdateInboundUseCaseRequest as bQ, type UpdateIntegrationRequest as bR, type UpdateManagedCallUseCaseRequest as bS, type UpdateOutboundUseCaseRequest as bT, type UpdateSecureProxyUseCaseRequest as bU, type UpdateUseCaseRequest as bV, type UpdateUseCaseRequestBase as bW, type UpsertIntegrationWithUseCasesRequest as bX, type UseCase as bY, type UseCaseBase as bZ, type UseCaseHistoryEntry as b_, type PruneScopeConfig as ba, type QueryAccessLogsRequest as bb, type QueryEventsRequest as bc, type QueryInboundMonitoringEventsRequest as bd, type QueryMonitoringEventsV2Request as be, type QueryOutboundMonitoringEventsRequest as bf, type RedriveOutboundDlqRequest as bg, type RedriveOutboundDlqResponse as bh, type RedriveOutboundDlqResult as bi, type RelationConfig as bj, type RelationItemConfig as bk, type RelationRefItemConfig as bl, type RelationRefValueConfig as bm, type RelationRefsConfig as bn, type RelationUniqueIdField as bo, type RepeatableFieldType as bp, type ReplayEventsRequest as bq, type RuleBaselineBucket as br, type RuleBaselineStatus as bs, type S3Reference as bt, type SecureProxyRequest as bu, type SecureProxyResponse as bv, type SecureProxySummary as bw, type SecureProxyUpstreamError as bx, type SecureProxyUseCase as by, type SecureProxyUseCaseConfiguration as bz, type AckOutboundMessagesRequest as c, type UseCaseTypePreview as c0, type WebhookDeliveryConfig as c1, type WebhookStatus as c2, type AckOutboundMessagesResponse as d, type AckResult as e, type AutoRefreshSettings as f, type CommitTypesRequest as g, type CommitTypesResponse as h, type ConnectorConfig as i, type CreateErpImportRequest as j, type CreateErpImportResponse as k, type CreateFileProxyUseCaseRequest as l, type CreateInboundUseCaseRequest as m, type CreateIntegrationRequest as n, type CreateManagedCallUseCaseRequest as o, type CreateOutboundUseCaseRequest as p, type CreateSecureProxyUseCaseRequest as q, type CreateUseCaseRequest as r, type CreateUseCaseRequestBase as s, type DeliveryConfig as t, type EmbeddedInboundUseCaseRequest as u, type EmbeddedManagedCallUseCaseRequest as v, type EmbeddedOutboundUseCaseRequest as w, type EmbeddedSecureProxyUseCaseRequest as x, type EmbeddedUseCaseRequest as y, type EmbeddedUseCaseRequestBase as z };
9629
+ export { type FileProxyUrlParam as $, type AccessLogEntry as A, type EntityPruneScopeUpdate as B, type Client as C, type DeleteIntegrationAppMappingRequest as D, type EmbeddedFileProxyUseCaseRequest as E, type EntityUpdate as F, type EnvVarRefConfig as G, type EnvironmentFieldConfig as H, type ErpEvent as I, type ErpEventV3 as J, type ErpImportError as K, type ErpImportJob as L, type ErpImportList as M, type ErpImportProgress as N, type OperationMethods as O, Paths as P, type ErpImportValidation as Q, type ErpUpdatesEventsV2Request as R, type ErpUpdatesEventsV3Request as S, type ErrorResponseBase as T, type ExternalMonitoringSpan as U, type FileProxyAuth as V, type FileProxyParam as W, type FileProxyResponseConfig as X, type FileProxySecureProxyAttachment as Y, type FileProxyStep as Z, type FileProxyUrlConfig as _, Components as a, type OutboundMessage as a$, type FileProxyUrlParams as a0, type FileProxyUseCase as a1, type FileProxyUseCaseConfiguration as a2, type FileProxyUseCaseHistoryEntry as a3, type GenerateTypesPreviewResponse as a4, type GenerateTypesRequest as a5, type GenerateTypesResponse as a6, type GetMonitoringStatsRequest as a7, type GetMonitoringStatsV2Request as a8, type GetMonitoringTimeSeriesRequest as a9, type ManagedCallUseCase as aA, type ManagedCallUseCaseHistoryEntry as aB, type MappingSimulationRequest as aC, type MappingSimulationResponse as aD, type MappingSimulationV2Request as aE, type MappingSimulationWarning as aF, type MeterReadingPruneScopeConfig as aG, type MeterReadingPruneScopeUpdate as aH, type MeterReadingUpdate as aI, type MeterUniqueIdsConfig as aJ, type MonitoringEventV2 as aK, type MonitoringStats as aL, type MonitoringStatsV2 as aM, type MonitoringTraceResponse as aN, type NotificationChannelSet as aO, type NotificationDigestConfig as aP, type NotificationHistoryItem as aQ, type NotificationHistoryResponse as aR, type NotificationRecipient as aS, type NotificationRule as aT, type NotificationRuleStatus as aU, type NotificationStatusResponse as aV, type OutboundConflict as aW, type OutboundDlqListResponse as aX, type OutboundDlqMessage as aY, type OutboundIntegrationEventConfiguration as aZ, type OutboundMapping as a_, type GetMonitoringTimeSeriesV2Request as aa, type InboundIntegrationEventConfiguration as ab, type InboundMonitoringEvent as ac, type InboundUseCase as ad, type InboundUseCaseHistoryEntry as ae, type IngestExternalMonitoringEventsRequest as af, type IngestExternalMonitoringEventsResponse as ag, type Integration as ah, type IntegrationAppMapping as ai, type IntegrationConfigurationV1 as aj, type IntegrationConfigurationV2 as ak, type IntegrationEditableFields as al, type IntegrationEntity as am, type IntegrationEntityField as an, type IntegrationFieldV1 as ao, type IntegrationMeterReading as ap, type IntegrationNotificationConfig as aq, type IntegrationObjectV1 as ar, type IntegrationSettings as as, type IntegrationWithUseCases as at, type ManagedCallAuth as au, type ManagedCallErrorResponse as av, type ManagedCallExecuteRequest as aw, type ManagedCallExecuteResponse as ax, type ManagedCallOperation as ay, type ManagedCallOperationConfig as az, type PathsDictionary as b, type UseCaseBase as b$, type OutboundMonitoringEvent as b0, type OutboundPollStatus as b1, type OutboundStatusResponse as b2, type OutboundUseCase as b3, type OutboundUseCaseHistoryEntry as b4, type OutboundUseCaseStatus as b5, type PollDeliveryConfig as b6, type PollOutboundMessagesRequest as b7, type PollOutboundMessagesResponse as b8, type PortalOrigin as b9, type SecureProxyUseCase as bA, type SecureProxyUseCaseConfiguration as bB, type SecureProxyUseCaseHistoryEntry as bC, type SecureProxyWhitelist as bD, type SecureProxyWhitelistUpdate as bE, type SetIntegrationAppMappingRequest as bF, type TestNotificationRequest as bG, type TestNotificationResponse as bH, type TimeSeriesBreakdownItemV2 as bI, type TimeSeriesBucket as bJ, type TimeSeriesBucketV2 as bK, type TriggerErpActionRequest as bL, type TriggerWebhookResp as bM, type TypeAnnotations as bN, type TypeDescriptor as bO, type UnblockOutboundStreamRequest as bP, type UnblockOutboundStreamResponse as bQ, type UpdateFileProxyUseCaseRequest as bR, type UpdateInboundUseCaseRequest as bS, type UpdateIntegrationRequest as bT, type UpdateManagedCallUseCaseRequest as bU, type UpdateOutboundUseCaseRequest as bV, type UpdateSecureProxyUseCaseRequest as bW, type UpdateUseCaseRequest as bX, type UpdateUseCaseRequestBase as bY, type UpsertIntegrationWithUseCasesRequest as bZ, type UseCase as b_, type PortalRefConfig as ba, type PortalRefFilter as bb, type PruneScopeConfig as bc, type QueryAccessLogsRequest as bd, type QueryEventsRequest as be, type QueryInboundMonitoringEventsRequest as bf, type QueryMonitoringEventsV2Request as bg, type QueryOutboundMonitoringEventsRequest as bh, type RedriveOutboundDlqRequest as bi, type RedriveOutboundDlqResponse as bj, type RedriveOutboundDlqResult as bk, type RelationConfig as bl, type RelationItemConfig as bm, type RelationRefItemConfig as bn, type RelationRefValueConfig as bo, type RelationRefsConfig as bp, type RelationUniqueIdField as bq, type RepeatableFieldType as br, type ReplayEventsRequest as bs, type RuleBaselineBucket as bt, type RuleBaselineStatus as bu, type S3Reference as bv, type SecureProxyRequest as bw, type SecureProxyResponse as bx, type SecureProxySummary as by, type SecureProxyUpstreamError as bz, type AckOutboundMessagesRequest as c, type UseCaseHistoryEntry as c0, type UseCaseHistoryEntryBase as c1, type UseCaseTypePreview as c2, type WebhookDeliveryConfig as c3, type WebhookStatus as c4, type AckOutboundMessagesResponse as d, type AckResult as e, type AutoRefreshSettings as f, type CommitTypesRequest as g, type CommitTypesResponse as h, type ConnectorConfig as i, type CreateErpImportRequest as j, type CreateErpImportResponse as k, type CreateFileProxyUseCaseRequest as l, type CreateInboundUseCaseRequest as m, type CreateIntegrationRequest as n, type CreateManagedCallUseCaseRequest as o, type CreateOutboundUseCaseRequest as p, type CreateSecureProxyUseCaseRequest as q, type CreateUseCaseRequest as r, type CreateUseCaseRequestBase as s, type DeliveryConfig as t, type EmbeddedInboundUseCaseRequest as u, type EmbeddedManagedCallUseCaseRequest as v, type EmbeddedOutboundUseCaseRequest as w, type EmbeddedSecureProxyUseCaseRequest as x, type EmbeddedUseCaseRequest as y, type EmbeddedUseCaseRequestBase as z };
@@ -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