@epilot/sdk 2.17.1 → 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 (124) hide show
  1. package/definitions/focus-pocus-runtime.json +1 -0
  2. package/definitions/focus-pocus.json +757 -0
  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 +6 -6
  35. package/dist/apis/deduplication.js +1 -1
  36. package/dist/apis/design.cjs +6 -6
  37. package/dist/apis/design.js +1 -1
  38. package/dist/apis/document.cjs +6 -6
  39. package/dist/apis/document.js +1 -1
  40. package/dist/apis/email-settings.cjs +6 -6
  41. package/dist/apis/email-settings.js +1 -1
  42. package/dist/apis/email-template.cjs +6 -6
  43. package/dist/apis/email-template.js +1 -1
  44. package/dist/apis/entity-mapping.cjs +6 -6
  45. package/dist/apis/entity-mapping.js +1 -1
  46. package/dist/apis/entity.cjs +6 -6
  47. package/dist/apis/entity.js +1 -1
  48. package/dist/apis/environments.cjs +6 -6
  49. package/dist/apis/environments.js +1 -1
  50. package/dist/apis/event-catalog.cjs +6 -6
  51. package/dist/apis/event-catalog.js +1 -1
  52. package/dist/apis/file.cjs +6 -6
  53. package/dist/apis/file.js +1 -1
  54. package/dist/apis/iban.cjs +6 -6
  55. package/dist/apis/iban.js +1 -1
  56. package/dist/apis/integration-toolkit.cjs +6 -6
  57. package/dist/apis/integration-toolkit.d.cts +2 -2
  58. package/dist/apis/integration-toolkit.d.ts +2 -2
  59. package/dist/apis/integration-toolkit.js +1 -1
  60. package/dist/apis/journey.cjs +6 -6
  61. package/dist/apis/journey.js +1 -1
  62. package/dist/apis/kanban.cjs +6 -6
  63. package/dist/apis/kanban.js +1 -1
  64. package/dist/apis/message.cjs +6 -6
  65. package/dist/apis/message.js +1 -1
  66. package/dist/apis/metering.cjs +6 -6
  67. package/dist/apis/metering.js +1 -1
  68. package/dist/apis/notes.cjs +6 -6
  69. package/dist/apis/notes.js +1 -1
  70. package/dist/apis/notification.cjs +6 -6
  71. package/dist/apis/notification.js +1 -1
  72. package/dist/apis/organization.cjs +6 -6
  73. package/dist/apis/organization.js +1 -1
  74. package/dist/apis/partner-directory.cjs +6 -6
  75. package/dist/apis/partner-directory.js +1 -1
  76. package/dist/apis/permissions.cjs +6 -6
  77. package/dist/apis/permissions.js +1 -1
  78. package/dist/apis/pricing-tier.cjs +6 -6
  79. package/dist/apis/pricing-tier.js +1 -1
  80. package/dist/apis/pricing.cjs +6 -6
  81. package/dist/apis/pricing.js +1 -1
  82. package/dist/apis/purpose.cjs +6 -6
  83. package/dist/apis/purpose.js +1 -1
  84. package/dist/apis/query.cjs +6 -6
  85. package/dist/apis/query.js +1 -1
  86. package/dist/apis/sandbox.cjs +6 -6
  87. package/dist/apis/sandbox.js +1 -1
  88. package/dist/apis/sharing.cjs +6 -6
  89. package/dist/apis/sharing.js +1 -1
  90. package/dist/apis/snapshot.cjs +6 -6
  91. package/dist/apis/snapshot.js +1 -1
  92. package/dist/apis/submission.cjs +6 -6
  93. package/dist/apis/submission.js +1 -1
  94. package/dist/apis/target.cjs +6 -6
  95. package/dist/apis/target.js +1 -1
  96. package/dist/apis/targeting.cjs +6 -6
  97. package/dist/apis/targeting.js +1 -1
  98. package/dist/apis/template-variables.cjs +6 -6
  99. package/dist/apis/template-variables.js +1 -1
  100. package/dist/apis/user.cjs +6 -6
  101. package/dist/apis/user.js +1 -1
  102. package/dist/apis/validation-rules.cjs +6 -6
  103. package/dist/apis/validation-rules.js +1 -1
  104. package/dist/apis/webhooks.cjs +6 -6
  105. package/dist/apis/webhooks.js +1 -1
  106. package/dist/apis/workflow-definition.cjs +6 -6
  107. package/dist/apis/workflow-definition.js +1 -1
  108. package/dist/apis/workflow.cjs +6 -6
  109. package/dist/apis/workflow.js +1 -1
  110. package/dist/{chunk-OGOMIUCZ.js → chunk-UQKZYCSP.js} +1 -1
  111. package/dist/{chunk-56SO5YDQ.cjs → chunk-ZL3GLE4V.cjs} +1 -1
  112. package/dist/index.cjs +8 -8
  113. package/dist/index.d.cts +1 -1
  114. package/dist/index.d.ts +1 -1
  115. package/dist/index.js +1 -1
  116. package/dist/integration-toolkit-XGP4BIWX.js +7 -0
  117. package/dist/integration-toolkit-ZVBMKUWM.cjs +7 -0
  118. package/dist/{integration-toolkit.d-BkWRJ8Xm.d.cts → integration-toolkit.d-D5HZSNUf.d.cts} +109 -1
  119. package/dist/{integration-toolkit.d-BkWRJ8Xm.d.ts → integration-toolkit.d-D5HZSNUf.d.ts} +109 -1
  120. package/dist/js-yaml-DLCVPJ7G.js +0 -0
  121. package/docs/integration-toolkit.md +144 -4
  122. package/package.json +12 -11
  123. package/dist/integration-toolkit-54F6GS67.js +0 -7
  124. 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 };
File without changes
@@ -220,6 +220,8 @@ const { data } = await integrationToolkitClient.acknowledgeTracking(...)
220
220
  - [`MappingSimulationWarning`](#mappingsimulationwarning)
221
221
  - [`EntityUpdate`](#entityupdate)
222
222
  - [`MeterReadingUpdate`](#meterreadingupdate)
223
+ - [`EntityPruneScopeUpdate`](#entityprunescopeupdate)
224
+ - [`MeterReadingPruneScopeUpdate`](#meterreadingprunescopeupdate)
223
225
  - [`IntegrationConfigurationV1`](#integrationconfigurationv1)
224
226
  - [`IntegrationObjectV1`](#integrationobjectv1)
225
227
  - [`IntegrationFieldV1`](#integrationfieldv1)
@@ -424,7 +426,14 @@ const { data } = await client.simulateMappingV2(
424
426
  {
425
427
  "entity_slug": "string",
426
428
  "unique_identifiers": {},
427
- "attributes": {}
429
+ "attributes": {},
430
+ "pricing": {
431
+ "config": {},
432
+ "data": [
433
+ {}
434
+ ]
435
+ },
436
+ "mode": "upsert"
428
437
  }
429
438
  ],
430
439
  "meter_readings_updates": [
@@ -435,7 +444,35 @@ const { data } = await client.simulateMappingV2(
435
444
  "meter_counter": {
436
445
  "$entity_unique_ids": {}
437
446
  },
438
- "attributes": {}
447
+ "attributes": {},
448
+ "mode": "upsert"
449
+ }
450
+ ],
451
+ "prune_scope_updates": [
452
+ {
453
+ "entity_slug": "string",
454
+ "scope": {
455
+ "scope_mode": "relations",
456
+ "schema": "string",
457
+ "unique_ids": {},
458
+ "query": {}
459
+ },
460
+ "keep_unique_ids": [
461
+ {}
462
+ ],
463
+ "deletion_mode": "delete"
464
+ }
465
+ ],
466
+ "meter_readings_prune_scope_updates": [
467
+ {
468
+ "meter": {
469
+ "$entity_unique_ids": {}
470
+ },
471
+ "meter_counter": {
472
+ "$entity_unique_ids": {}
473
+ },
474
+ "keep_external_ids": ["string"],
475
+ "source": "string"
439
476
  }
440
477
  ],
441
478
  "warnings": [
@@ -484,7 +521,14 @@ const { data } = await client.simulateMapping(
484
521
  {
485
522
  "entity_slug": "string",
486
523
  "unique_identifiers": {},
487
- "attributes": {}
524
+ "attributes": {},
525
+ "pricing": {
526
+ "config": {},
527
+ "data": [
528
+ {}
529
+ ]
530
+ },
531
+ "mode": "upsert"
488
532
  }
489
533
  ],
490
534
  "meter_readings_updates": [
@@ -495,7 +539,35 @@ const { data } = await client.simulateMapping(
495
539
  "meter_counter": {
496
540
  "$entity_unique_ids": {}
497
541
  },
498
- "attributes": {}
542
+ "attributes": {},
543
+ "mode": "upsert"
544
+ }
545
+ ],
546
+ "prune_scope_updates": [
547
+ {
548
+ "entity_slug": "string",
549
+ "scope": {
550
+ "scope_mode": "relations",
551
+ "schema": "string",
552
+ "unique_ids": {},
553
+ "query": {}
554
+ },
555
+ "keep_unique_ids": [
556
+ {}
557
+ ],
558
+ "deletion_mode": "delete"
559
+ }
560
+ ],
561
+ "meter_readings_prune_scope_updates": [
562
+ {
563
+ "meter": {
564
+ "$entity_unique_ids": {}
565
+ },
566
+ "meter_counter": {
567
+ "$entity_unique_ids": {}
568
+ },
569
+ "keep_external_ids": ["string"],
570
+ "source": "string"
499
571
  }
500
572
  ],
501
573
  "warnings": [
@@ -6933,6 +7005,11 @@ type MappingSimulationResponse = {
6933
7005
  entity_slug: string
6934
7006
  unique_identifiers: Record<string, unknown>
6935
7007
  attributes: Record<string, unknown>
7008
+ pricing?: {
7009
+ config: { ... }
7010
+ data: { ... }
7011
+ }
7012
+ mode: "upsert" | "delete" | "purge"
6936
7013
  }>
6937
7014
  meter_readings_updates?: Array<{
6938
7015
  meter: {
@@ -6942,6 +7019,28 @@ type MappingSimulationResponse = {
6942
7019
  $entity_unique_ids?: { ... }
6943
7020
  }
6944
7021
  attributes: Record<string, unknown>
7022
+ mode: "upsert" | "delete"
7023
+ }>
7024
+ prune_scope_updates?: Array<{
7025
+ entity_slug: string
7026
+ scope: {
7027
+ scope_mode: { ... }
7028
+ schema?: { ... }
7029
+ unique_ids?: { ... }
7030
+ query?: { ... }
7031
+ }
7032
+ keep_unique_ids: Record<string, unknown>[]
7033
+ deletion_mode: "delete" | "purge"
7034
+ }>
7035
+ meter_readings_prune_scope_updates?: Array<{
7036
+ meter: {
7037
+ $entity_unique_ids: { ... }
7038
+ }
7039
+ meter_counter?: {
7040
+ $entity_unique_ids?: { ... }
7041
+ }
7042
+ keep_external_ids: string[]
7043
+ source?: string
6945
7044
  }>
6946
7045
  warnings?: Array<{
6947
7046
  entity_schema: string
@@ -6968,6 +7067,11 @@ type EntityUpdate = {
6968
7067
  entity_slug: string
6969
7068
  unique_identifiers: Record<string, unknown>
6970
7069
  attributes: Record<string, unknown>
7070
+ pricing?: {
7071
+ config: Record<string, unknown>
7072
+ data: Record<string, unknown>[]
7073
+ }
7074
+ mode: "upsert" | "delete" | "purge"
6971
7075
  }
6972
7076
  ```
6973
7077
 
@@ -6982,6 +7086,42 @@ type MeterReadingUpdate = {
6982
7086
  $entity_unique_ids?: Record<string, unknown>
6983
7087
  }
6984
7088
  attributes: Record<string, unknown>
7089
+ mode: "upsert" | "delete"
7090
+ }
7091
+ ```
7092
+
7093
+ ### `EntityPruneScopeUpdate`
7094
+
7095
+ 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`.
7096
+
7097
+ ```ts
7098
+ type EntityPruneScopeUpdate = {
7099
+ entity_slug: string
7100
+ scope: {
7101
+ scope_mode: "relations" | "query"
7102
+ schema?: string
7103
+ unique_ids?: Record<string, unknown>
7104
+ query?: Record<string, unknown>
7105
+ }
7106
+ keep_unique_ids: Record<string, unknown>[]
7107
+ deletion_mode: "delete" | "purge"
7108
+ }
7109
+ ```
7110
+
7111
+ ### `MeterReadingPruneScopeUpdate`
7112
+
7113
+ 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.
7114
+
7115
+ ```ts
7116
+ type MeterReadingPruneScopeUpdate = {
7117
+ meter: {
7118
+ $entity_unique_ids: Record<string, unknown>
7119
+ }
7120
+ meter_counter?: {
7121
+ $entity_unique_ids?: Record<string, unknown>
7122
+ }
7123
+ keep_external_ids: string[]
7124
+ source?: string
6985
7125
  }
6986
7126
  ```
6987
7127
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epilot/sdk",
3
- "version": "2.17.1",
3
+ "version": "2.18.0",
4
4
  "description": "JavaScript/TypeScript SDK for epilot APIs",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -322,6 +322,16 @@
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
+ },
325
335
  "keywords": [
326
336
  "epilot",
327
337
  "sdk",
@@ -515,14 +525,5 @@
515
525
  "./dist/apis/workflow-definition.d.ts"
516
526
  ]
517
527
  }
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"
527
528
  }
528
- }
529
+ }