@openmeter/client 1.0.0-beta-3cce18aa2b0e → 1.0.0-beta-56dac5f2b68e

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -428,6 +428,7 @@ they can change or be removed without notice or semver consideration.
428
428
  | `client.internal.customers.entitlements.get` | `GET /openmeter/customers/{customerId}/entitlements/{entitlementId}` | Get an entitlement of the customer by ID. For checking entitlement access, use the entitlement access endpoints instead. |
429
429
  | `client.internal.customers.entitlements.list` | `GET /openmeter/customers/{customerId}/entitlements` | List the entitlements of the customer that are active at the time of the request. For checking entitlement access, use the entitlement access endpoints instead. |
430
430
  | `client.internal.customers.entitlements.resetUsage` | `POST /openmeter/customers/{customerId}/entitlements/{entitlementId}/reset` | Reset the usage of a metered entitlement. The reset starts a new usage period: usage is zeroed and grants roll over according to their rollover settings. Usage is reset automatically at the end of each usage period. Use this operation to reset it earlier, for example to align the entitlement with the customer's billing period. The usage period anchor can be moved at the same time. |
431
+ | `client.internal.customers.entitlements.delete` | `DELETE /openmeter/customers/{customerId}/entitlements/{entitlementId}` | Deletes the entitlement and revokes access to its feature. A customer can hold only one active entitlement per feature, so migrating a feature requires deleting the previous entitlement first. Deletion sets the `deleted_at` timestamp instead of removing history. Access and status queries for earlier points in time still treat the entitlement as active, so access changes are never retroactive. |
431
432
  | `client.internal.customers.credits.grants.void` | `POST /openmeter/customers/{customerId}/credits/grants/{creditGrantId}/void` | Void a credit grant, forfeiting the remaining unused balance. Voiding is a forward-looking, irreversible operation. Credits already consumed by usage remain unaffected — only the remaining balance is forfeited. The grant reads as `voided` status afterwards. Payment state is not adjusted when `payment_adjustment` is `none`, so invoice-backed or externally collected payments may still collect the original amount. Only `active` grants can be voided; voiding a pending, expired, or fully consumed grant returns a conflict. Retrying a successful void is an idempotent success. |
432
433
  | `client.internal.customers.charges.list` | `GET /openmeter/customers/{customerId}/charges` | List customer charges. Returns the customer's charges that are represented as either flat fee or usage-based charges. |
433
434
  | `client.internal.customers.charges.create` | `POST /openmeter/customers/{customerId}/charges` | Create customer charge. |
@@ -1,6 +1,6 @@
1
1
  import { type Client } from '../core.js';
2
2
  import { type Result, type RequestOptions } from '../lib/types.js';
3
- import type { CreateCustomerRequest, CreateCustomerResponse, GetCustomerRequest, GetCustomerResponse, ListCustomersRequest, ListCustomersResponse, UpsertCustomerRequest, UpsertCustomerResponse, DeleteCustomerRequest, DeleteCustomerResponse, GetCustomerBillingRequest, GetCustomerBillingResponse, UpdateCustomerBillingRequest, UpdateCustomerBillingResponse, UpdateCustomerBillingAppDataRequest, UpdateCustomerBillingAppDataResponse, CreateCustomerStripeCheckoutSessionRequest, CreateCustomerStripeCheckoutSessionResponse, CreateCustomerStripePortalSessionRequest, CreateCustomerStripePortalSessionResponse, CreateCustomerEntitlementRequest, CreateCustomerEntitlementResponse, GetCustomerEntitlementHistoryRequest, GetCustomerEntitlementHistoryResponse, GetCustomerEntitlementRequest, GetCustomerEntitlementResponse, ListCustomerEntitlementsRequest, ListCustomerEntitlementsResponse, ResetCustomerEntitlementUsageRequest, ResetCustomerEntitlementUsageResponse, CreateCreditGrantRequest, CreateCreditGrantResponse, GetCreditGrantRequest, GetCreditGrantResponse, ListCreditGrantsRequest, ListCreditGrantsResponse, GetCustomerCreditBalanceRequest, GetCustomerCreditBalanceResponse, CreateCreditAdjustmentRequest, CreateCreditAdjustmentResponse, VoidCreditGrantRequest, VoidCreditGrantResponse, UpdateCreditGrantExternalSettlementRequest, UpdateCreditGrantExternalSettlementResponse, ListCreditTransactionsRequest, ListCreditTransactionsResponse, ListCustomerChargesRequest, ListCustomerChargesResponse, CreateCustomerChargesRequest, CreateCustomerChargesResponse } from '../models/operations/customers.js';
3
+ import type { CreateCustomerRequest, CreateCustomerResponse, GetCustomerRequest, GetCustomerResponse, ListCustomersRequest, ListCustomersResponse, UpsertCustomerRequest, UpsertCustomerResponse, DeleteCustomerRequest, DeleteCustomerResponse, GetCustomerBillingRequest, GetCustomerBillingResponse, UpdateCustomerBillingRequest, UpdateCustomerBillingResponse, UpdateCustomerBillingAppDataRequest, UpdateCustomerBillingAppDataResponse, CreateCustomerStripeCheckoutSessionRequest, CreateCustomerStripeCheckoutSessionResponse, CreateCustomerStripePortalSessionRequest, CreateCustomerStripePortalSessionResponse, CreateCustomerEntitlementRequest, CreateCustomerEntitlementResponse, GetCustomerEntitlementHistoryRequest, GetCustomerEntitlementHistoryResponse, GetCustomerEntitlementRequest, GetCustomerEntitlementResponse, ListCustomerEntitlementsRequest, ListCustomerEntitlementsResponse, ResetCustomerEntitlementUsageRequest, ResetCustomerEntitlementUsageResponse, DeleteCustomerEntitlementRequest, DeleteCustomerEntitlementResponse, CreateCreditGrantRequest, CreateCreditGrantResponse, GetCreditGrantRequest, GetCreditGrantResponse, ListCreditGrantsRequest, ListCreditGrantsResponse, GetCustomerCreditBalanceRequest, GetCustomerCreditBalanceResponse, CreateCreditAdjustmentRequest, CreateCreditAdjustmentResponse, VoidCreditGrantRequest, VoidCreditGrantResponse, UpdateCreditGrantExternalSettlementRequest, UpdateCreditGrantExternalSettlementResponse, ListCreditTransactionsRequest, ListCreditTransactionsResponse, ListCustomerChargesRequest, ListCustomerChargesResponse, CreateCustomerChargesRequest, CreateCustomerChargesResponse } from '../models/operations/customers.js';
4
4
  /**
5
5
  * Create customer
6
6
  *
@@ -138,6 +138,20 @@ export declare function listCustomerEntitlements(client: Client, req: ListCustom
138
138
  * POST /openmeter/customers/{customerId}/entitlements/{entitlementId}/reset
139
139
  */
140
140
  export declare function resetCustomerEntitlementUsage(client: Client, req: ResetCustomerEntitlementUsageRequest, options?: RequestOptions): Promise<Result<ResetCustomerEntitlementUsageResponse>>;
141
+ /**
142
+ * Delete customer entitlement
143
+ *
144
+ * Deletes the entitlement and revokes access to its feature. A customer can hold
145
+ * only one active entitlement per feature, so migrating a feature requires
146
+ * deleting the previous entitlement first.
147
+ *
148
+ * Deletion sets the `deleted_at` timestamp instead of removing history. Access and
149
+ * status queries for earlier points in time still treat the entitlement as active,
150
+ * so access changes are never retroactive.
151
+ *
152
+ * DELETE /openmeter/customers/{customerId}/entitlements/{entitlementId}
153
+ */
154
+ export declare function deleteCustomerEntitlement(client: Client, req: DeleteCustomerEntitlementRequest, options?: RequestOptions): Promise<Result<DeleteCustomerEntitlementResponse>>;
141
155
  /**
142
156
  * Create a new credit grant
143
157
  *
@@ -584,6 +584,45 @@ export function resetCustomerEntitlementUsage(client, req, options) {
584
584
  await http(client).post(path, { ...options, json: body });
585
585
  });
586
586
  }
587
+ /**
588
+ * Delete customer entitlement
589
+ *
590
+ * Deletes the entitlement and revokes access to its feature. A customer can hold
591
+ * only one active entitlement per feature, so migrating a feature requires
592
+ * deleting the previous entitlement first.
593
+ *
594
+ * Deletion sets the `deleted_at` timestamp instead of removing history. Access and
595
+ * status queries for earlier points in time still treat the entitlement as active,
596
+ * so access changes are never retroactive.
597
+ *
598
+ * DELETE /openmeter/customers/{customerId}/entitlements/{entitlementId}
599
+ */
600
+ export function deleteCustomerEntitlement(client, req, options) {
601
+ return request(async () => {
602
+ const pathParamsInput = {
603
+ customerId: req.customerId,
604
+ entitlementId: req.entitlementId,
605
+ };
606
+ const pathParams = client._options.validate
607
+ ? toPathWire(pathParamsInput, schemas.deleteCustomerEntitlementPathParams)
608
+ : pathParamsInput;
609
+ if (client._options.validate) {
610
+ assertValid(schemas.deleteCustomerEntitlementPathParamsWire, pathParams);
611
+ }
612
+ const path = `openmeter/customers/${(() => {
613
+ if (pathParams.customerId === undefined) {
614
+ throw new Error('missing path parameter: customerId');
615
+ }
616
+ return encodeURIComponent(String(pathParams.customerId));
617
+ })()}/entitlements/${(() => {
618
+ if (pathParams.entitlementId === undefined) {
619
+ throw new Error('missing path parameter: entitlementId');
620
+ }
621
+ return encodeURIComponent(String(pathParams.entitlementId));
622
+ })()}`;
623
+ await http(client).delete(path, options);
624
+ });
625
+ }
587
626
  /**
588
627
  * Create a new credit grant
589
628
  *
package/dist/index.d.ts CHANGED
@@ -42,4 +42,4 @@ export type * from './models/operations/addons.js';
42
42
  export type * from './models/operations/planAddons.js';
43
43
  export type * from './models/operations/defaults.js';
44
44
  export type * from './models/operations/entitlementAccess.js';
45
- export type { Labels, CursorPaginationQueryPage, SortQuery, IngestedEventValidationError, CursorMetaPage, BaseError, PageMeta, QueryFilterString, AppStripeCheckoutSessionCustomTextParams, AppStripeCreateCustomerPortalSessionOptions, CreateLabels, PriceFree, RateCardStaticEntitlement, RateCardBooleanEntitlement, TaxConfigStripe, TaxConfigExternalInvoicing, InvoiceExternalReferences, InvoiceAvailableActionDetails, InvoiceWorkflowInvoicingSettings, WorkflowPaymentChargeAutomaticallySettings, WorkflowPaymentSendInvoiceSettings, ChargeFlatFeeDiscounts, SubscriptionEditRemoveItem, SubscriptionEditUnscheduleEdit, UpdateLabels, InstallAppStripeWithApiKey, InstallAppSandbox, InstallAppExternalInvoicing, WorkflowCollectionAlignmentSubscription, InvoiceLineExternalReferences, UpdateBillingInvoiceWorkflowInvoicingSettings, UpdateBillingWorkflowPaymentChargeAutomaticallySettings, UpdateBillingWorkflowPaymentSendInvoiceSettings, UpdatePriceFree, LlmCostProvider, LlmCostModel, ProductCatalogValidationError, EntitlementAccessQueryRequestCustomers, EntitlementAccessQueryRequestFeatures, QueryFilterInteger, QueryFilterFloat, QueryFilterBoolean, PagePaginationQuery, PublicLabels, SystemAccountAccessToken, PersonalAccessToken, KonnectAccessToken, AppCustomerDataStripe, AppCustomerDataExternalInvoicing, CreateChargeCostBasisDynamic, ChargeCostBasisDynamic, CurrencyFiat, ListCostBasesParamsFilter, CreateCurrencyCustomRequest, EntitlementAccessValue, EntitlementIssueAfterReset, EntitlementBurndownBalance, EntitlementBurndownGrantBalances, CreateChargeCostBasisManual, ChargeCostBasisManual, PriceFlat, PriceUnit, SpendCommitments, RateCardDiscounts, Totals, ChargeRealizationDetailedLineCreditApplied, ChargeRealizationAmountDiscount, FeatureManualUnitCost, FeatureLlmUnitCostPricing, InvoiceLineCreditsApplied, InvoiceUsageQuantityDetail, UpdatePriceFlat, UpdatePriceUnit, UpdateDiscounts, LlmCostModelPricing, FiatCurrencyAmount, QueryFilterNumeric, CursorPaginationQuery, ListMetersParamsFilter, ListLlmCostPricesParamsFilter, LabelsFieldFilter, CustomerReference, ProfileReference, FeatureReference, EntitlementGrantUsage, CreateChargeCostBasisPinned, CreateResourceReference, ChargeCostBasisPinned, TaxCodeReference, CreditGrantInvoiceReference, CurrencyCustomReference, SubscriptionCostBasisPin, SubscriptionReference, AppReference, ChargeRealizationInvoiceReference, AddonReference, ChargeReference, UpdateResourceReference, BillingCustomerReference, ChargeFeature, Event, MeterQueryRow, AppStripeCreateCustomerPortalSessionResult, ClosedPeriod, ChargeResolvedCostBasis, SubscriptionAddonTimelineSegment, UpdateClosedPeriod, CostBasis, FeatureCostQueryRow, Resource, ResourceImmutable, QueryFilterDateTime, CursorMeta, InvalidParameterStandard, InvalidParameterMinimumLength, InvalidParameterMaximumLength, InvalidParameterChoiceItem, InvalidParameterDependentItem, Unauthorized, Forbidden, NotFound, Gone, Conflict, PayloadTooLarge, UnsupportedMediaType, UnprocessableContent, TooManyRequests, Internal, NotImplemented, NotAvailable, CreateCreditGrantFilters, CreditGrantFilters, SubscriptionPlanReference, UpsertPlanAddonRequest, ResourceWithKey, Meter, PaginatedMeta, QueryFilterStringMapItem, CustomerKeyReference, CustomerUsageAttribution, UpdateCustomerUsageAttribution, Address, UpdateAddress, AppStripeCreateCheckoutSessionCustomerUpdate, AppStripeCreateCheckoutSessionConsentCollectionPaymentMethodReuseAgreement, AppStripeCreateCheckoutSessionTaxIdCollection, AppStripeCreateCheckoutSessionResult, CustomerStripeCreateCustomerPortalSessionRequest, RecurringPeriodInput, RecurringPeriod, RateCardMeteredEntitlement, SubscriptionPhaseCreate, SubscriptionEditStretchPhase, GetCreditBalanceParamsFilter, ListPlansParamsFilter, ListCreditGrantsParamsFilter, ValidationIssue, SubscriptionProRatingConfig, RateCardProrationConfiguration, UnitConfig, PartyTaxIdentity, UpdateBillingPartyTaxIdentity, InvoiceAvailableActions, ChargeRealizationPayment, SubscriptionEditRemovePhase, TaxCodeAppMapping, AppCapability, UpdateAppStripeRequest, UpdateAppSandboxRequest, UpdateAppExternalInvoicingRequest, WorkflowInvoicingSettings, InvoiceLineAmountDiscount, InvoiceLineUsageDiscount, InvoiceLineBaseDiscount, ListCurrenciesParamsFilter, EntitlementAccessQueryRequest, EntitlementFeatureAccessReason, EntitlementAccessQueryError, AppCustomerData, UpsertAppCustomerDataRequest, CreditAdjustment, ListCreditTransactionsParamsFilter, CurrencyAmount, EntitlementAccessResult, PriceTier, ChargeTotals, FeatureLlmUnitCost, UpdatePriceTier, LlmCostPrice, LlmCostOverrideCreate, ListCustomersParamsFilter, ListCustomerEntitlementsParamsFilter, ListSubscriptionsParamsFilter, ListAppsParamsFilter, ListBillingProfilesParamsFilter, ListFeatureParamsFilter, ListAddonsParamsFilter, ListPlanAddonsParamsFilter, CreateTaxCodeConfig, TaxCodeConfig, TaxConfig, OrganizationDefaultTaxCodes, CreditBalance, CreditTransaction, InvoiceWorkflowAppsReferences, ProfileAppReferences, PlanAddon, UpdateTaxCodeConfig, ListEventsParamsFilter, ListCustomerChargesParamsFilter, ListInvoicesParamsFilter, ListChargesParamsFilter, ResourceFilters, FieldFilters, IngestedEvent, MeterQueryResult, EntitlementHistoryWindow, EntitlementBurndownSegment, ChargeRealizationDetailedLineFlatFee, ChargeRealizationDetailedLineUsageBased, CurrencyCustom, FeatureCostQueryResult, MeterPagePaginatedResponse, CostBasisPagePaginatedResponse, MeterQueryFilters, FeatureMeterReference, Customer, PartyAddresses, InvoiceCustomer, UpdateBillingPartyAddresses, UpdateInvoiceCustomer, AppStripeCreateCheckoutSessionConsentCollection, EntitlementGrantCreateRequest, CreateEntitlementStaticRequest, CreateEntitlementBooleanRequest, EntitlementMetered, EntitlementStatic, EntitlementBoolean, WorkflowCollectionAlignmentAnchored, SubscriptionEditAddPhase, SubscriptionBase, InvoiceStatusDetails, InvoiceWorkflow, SubscriptionCancel, SubscriptionMigrate, SubscriptionAddonUpdate, TaxCode, AppCatalogItem, InvoiceLineDiscounts, UpdateBillingInvoiceWorkflow, EntitlementFeatureAccess, CustomerData, UpsertCustomerBillingDataRequest, ChargeFlatFeeSystemIntent, ListCustomerEntitlementAccessResponseData, PriceGraduated, PriceVolume, UpdatePriceGraduated, UpdatePriceVolume, PricePagePaginatedResponse, CreateCreditGrantPurchase, CreditGrantPurchase, CreateChargeFlatFeeRequest, WorkflowTaxSettings, CreditBalances, CreditTransactionPaginatedResponse, PlanAddonPagePaginatedResponse, IngestedEventPaginatedResponse, EntitlementHistory, InvalidParameters, MeterQueryRequest, CustomerPagePaginatedResponse, Supplier, Party, UpdateSupplier, AppStripeCreateCheckoutSessionRequestOptions, CreateEntitlementMeteredRequest, InvoiceWorkflowSettings, TaxCodePagePaginatedResponse, AppStripe, AppSandbox, AppExternalInvoicing, AppCatalogItemPagePaginatedResponse, InstalledAppStripe, InstalledAppSandbox, InstalledAppExternalInvoicing, InvoiceDetailedLine, UpdateInvoiceWorkflowSettings, EntitlementAccessQueryResult, Feature, CreditGrant, CurrencyPagePaginatedResponse, BadRequest, InvoiceBase, CustomerStripeCreateCheckoutSessionRequest, EntitlementPagePaginatedResponse, WorkflowCollectionSettings, ChargeRealizationInvoice, EntitlementAccessQueryResponse, RateCard, InvoiceLineRateCard, ChargeUsageBasedSystemIntent, CreateChargeUsageBasedRequest, FeaturePagePaginatedResponse, UpdateInvoiceLineRateCard, CreditGrantPagePaginatedResponse, Workflow, AppPagePaginatedResponse, ProfileApps, SubscriptionItem, PlanPhase, SubscriptionEditAddItem, SubscriptionAddonRateCard, Addon, UpsertAddonRequest, InvoiceStandardLine, UpdateInvoiceStandardLine, Profile, UpsertBillingProfileRequest, ChargeRealization, SubscriptionPhase, SubscriptionCustomPlan, Plan, UpsertPlanRequest, SubscriptionAddon, AddonPagePaginatedResponse, ProfilePagePaginatedResponse, Subscription, SubscriptionCreate, SubscriptionChange, PlanPagePaginatedResponse, SubscriptionEdit, SubscriptionAddonPagePaginatedResponse, InvoiceStandard, UpdateInvoiceStandardRequest, SubscriptionPagePaginatedResponse, SubscriptionChangeResponse, SubscriptionMigrateResponse, ChargeFlatFee, ChargeUsageBased, InvoicePagePaginatedResponse, ChargePagePaginatedResponse, StringFieldFilter, MeterAggregation, MeterQueryGranularity, EntitlementHistoryWindowSize, StringFieldFilterExact, PricePaymentTerm, BillingCurrencyCode, CreateCurrencyCode, UlidFieldFilter, DateTimeFieldFilter, EntitlementMeasureUsageFrom, WorkflowPaymentSettings, SubscriptionCreateTiming, SubscriptionEditTiming, UpdateBillingWorkflowPaymentSettings, CreateChargeCostBasis, ChargeCostBasis, InvalidParameter, RateCardEntitlement, FeatureUnitCost, ChargeRealizationDetailedLine, Currency, CustomerOrReference, Entitlement, WorkflowCollectionAlignment, Price, PriceUsageBased, UpdatePrice, CreateEntitlementRequest, App, BillingInstallAppResponse, FeatureOrReference, ChargeRealizationInvoiceOrReference, CreateChargeRequest, SubscriptionEditOperation, InvoiceLine, UpdateInvoiceLine, SubscriptionOrReference, Invoice, Charge, SortQueryInput, BaseErrorInput, InvoiceWorkflowInvoicingSettingsInput, WorkflowPaymentSendInvoiceSettingsInput, UpdateBillingInvoiceWorkflowInvoicingSettingsInput, UpdateBillingWorkflowPaymentSendInvoiceSettingsInput, EntitlementIssueAfterResetInput, EventInput, ResetCustomerEntitlementUsageRequestInput, UnauthorizedInput, ForbiddenInput, NotFoundInput, GoneInput, ConflictInput, PayloadTooLargeInput, UnsupportedMediaTypeInput, UnprocessableContentInput, TooManyRequestsInput, InternalInput, NotImplementedInput, NotAvailableInput, AppStripeCreateCheckoutSessionCustomerUpdateInput, AppStripeCreateCheckoutSessionTaxIdCollectionInput, RateCardMeteredEntitlementInput, VoidCreditGrantRequestInput, UnitConfigInput, WorkflowInvoicingSettingsInput, EntitlementAccessQueryRequestInput, IngestedEventInput, EntitlementMeteredInput, SubscriptionBaseInput, InvoiceWorkflowInput, SubscriptionCancelInput, SubscriptionMigrateInput, UpdateBillingInvoiceWorkflowInput, CreateCreditGrantPurchaseInput, CreditGrantPurchaseInput, WorkflowTaxSettingsInput, IngestedEventPaginatedResponseInput, MeterQueryRequestInput, AppStripeCreateCheckoutSessionRequestOptionsInput, CreateEntitlementMeteredRequestInput, InvoiceWorkflowSettingsInput, InvoiceDetailedLineInput, UpdateInvoiceWorkflowSettingsInput, CreateCreditGrantRequestInput, CreditGrantInput, BadRequestInput, CustomerStripeCreateCheckoutSessionRequestInput, EntitlementPagePaginatedResponseInput, WorkflowCollectionSettingsInput, ChargeRealizationInvoiceInput, RateCardInput, InvoiceLineRateCardInput, ChargeUsageBasedSystemIntentInput, CreateChargeUsageBasedRequestInput, CreditGrantPagePaginatedResponseInput, WorkflowInput, SubscriptionItemInput, PlanPhaseInput, SubscriptionEditAddItemInput, SubscriptionAddonRateCardInput, AddonInput, CreateAddonRequestInput, UpsertAddonRequestInput, InvoiceStandardLineInput, ProfileInput, CreateBillingProfileRequestInput, UpsertBillingProfileRequestInput, ChargeRealizationInput, SubscriptionPhaseInput, SubscriptionCustomPlanInput, PlanInput, CreatePlanRequestInput, UpsertPlanRequestInput, SubscriptionAddonInput, AddonPagePaginatedResponseInput, ProfilePagePaginatedResponseInput, SubscriptionInput, SubscriptionCreateInput, SubscriptionChangeInput, PlanPagePaginatedResponseInput, SubscriptionEditInput, SubscriptionAddonPagePaginatedResponseInput, InvoiceStandardInput, UpdateInvoiceStandardRequestInput, SubscriptionPagePaginatedResponseInput, SubscriptionChangeResponseInput, SubscriptionMigrateResponseInput, ChargeFlatFeeInput, ChargeUsageBasedInput, InvoicePagePaginatedResponseInput, ChargePagePaginatedResponseInput, WorkflowPaymentSettingsInput, UpdateBillingWorkflowPaymentSettingsInput, RateCardEntitlementInput, EntitlementInput, CreateEntitlementRequestInput, ChargeRealizationInvoiceOrReferenceInput, CreateChargeRequestInput, SubscriptionEditOperationInput, InvoiceLineInput, SubscriptionOrReferenceInput, InvoiceInput, UpdateInvoiceRequestInput, ChargeInput, } from './models/types.js';
45
+ export type { Labels, CursorPaginationQueryPage, SortQuery, IngestedEventValidationError, CursorMetaPage, BaseError, PageMeta, QueryFilterString, AppStripeCheckoutSessionCustomTextParams, AppStripeCreateCustomerPortalSessionOptions, CreateLabels, CreateVersionFilter, VersionFilter, PriceFree, RateCardStaticEntitlement, RateCardBooleanEntitlement, TaxConfigStripe, TaxConfigExternalInvoicing, InvoiceExternalReferences, InvoiceAvailableActionDetails, InvoiceWorkflowInvoicingSettings, WorkflowPaymentChargeAutomaticallySettings, WorkflowPaymentSendInvoiceSettings, ChargeFlatFeeDiscounts, SubscriptionEditRemoveItem, SubscriptionEditUnscheduleEdit, UpdateLabels, InstallAppStripeWithApiKey, InstallAppSandbox, InstallAppExternalInvoicing, WorkflowCollectionAlignmentSubscription, InvoiceLineExternalReferences, UpdateBillingInvoiceWorkflowInvoicingSettings, UpdateBillingWorkflowPaymentChargeAutomaticallySettings, UpdateBillingWorkflowPaymentSendInvoiceSettings, UpdatePriceFree, LlmCostProvider, LlmCostModel, ProductCatalogValidationError, EntitlementAccessQueryRequestCustomers, EntitlementAccessQueryRequestFeatures, QueryFilterInteger, QueryFilterFloat, QueryFilterBoolean, PagePaginationQuery, PublicLabels, SystemAccountAccessToken, PersonalAccessToken, KonnectAccessToken, AppCustomerDataStripe, AppCustomerDataExternalInvoicing, CreateChargeCostBasisDynamic, ChargeCostBasisDynamic, CurrencyFiat, ListCostBasesParamsFilter, CreateCurrencyCustomRequest, EntitlementAccessValue, EntitlementIssueAfterReset, EntitlementBurndownBalance, EntitlementBurndownGrantBalances, CreateChargeCostBasisManual, ChargeCostBasisManual, PriceFlat, PriceUnit, SpendCommitments, RateCardDiscounts, Totals, ChargeRealizationDetailedLineCreditApplied, ChargeRealizationAmountDiscount, FeatureManualUnitCost, FeatureLlmUnitCostPricing, InvoiceLineCreditsApplied, InvoiceUsageQuantityDetail, UpdatePriceFlat, UpdatePriceUnit, UpdateDiscounts, LlmCostModelPricing, FiatCurrencyAmount, QueryFilterNumeric, CursorPaginationQuery, ListMetersParamsFilter, ListLlmCostPricesParamsFilter, LabelsFieldFilter, CustomerReference, ProfileReference, FeatureReference, EntitlementGrantUsage, CreateChargeCostBasisPinned, CreateResourceReference, ChargeCostBasisPinned, TaxCodeReference, CreditGrantInvoiceReference, CurrencyCustomReference, SubscriptionCostBasisPin, SubscriptionReference, AppReference, ChargeRealizationInvoiceReference, AddonReference, ChargeReference, UpdateResourceReference, BillingCustomerReference, ChargeFeature, Event, MeterQueryRow, AppStripeCreateCustomerPortalSessionResult, ClosedPeriod, ChargeResolvedCostBasis, SubscriptionAddonTimelineSegment, UpdateClosedPeriod, CostBasis, FeatureCostQueryRow, Resource, ResourceImmutable, QueryFilterDateTime, CursorMeta, InvalidParameterStandard, InvalidParameterMinimumLength, InvalidParameterMaximumLength, InvalidParameterChoiceItem, InvalidParameterDependentItem, Unauthorized, Forbidden, NotFound, Gone, Conflict, PayloadTooLarge, UnsupportedMediaType, UnprocessableContent, TooManyRequests, Internal, NotImplemented, NotAvailable, SubscriptionPlanReference, UpsertPlanAddonRequest, ResourceWithKey, Meter, PaginatedMeta, QueryFilterStringMapItem, CustomerKeyReference, CustomerUsageAttribution, UpdateCustomerUsageAttribution, Address, UpdateAddress, AppStripeCreateCheckoutSessionCustomerUpdate, AppStripeCreateCheckoutSessionConsentCollectionPaymentMethodReuseAgreement, AppStripeCreateCheckoutSessionTaxIdCollection, AppStripeCreateCheckoutSessionResult, CustomerStripeCreateCustomerPortalSessionRequest, RecurringPeriodInput, RecurringPeriod, RateCardMeteredEntitlement, SubscriptionPhaseCreate, SubscriptionEditStretchPhase, GetCreditBalanceParamsFilter, ListPlansParamsFilter, CreateCreditGrantPlanFilter, CreditGrantPlanFilter, ListCreditGrantsParamsFilter, ValidationIssue, SubscriptionProRatingConfig, RateCardProrationConfiguration, UnitConfig, PartyTaxIdentity, UpdateBillingPartyTaxIdentity, InvoiceAvailableActions, ChargeRealizationPayment, SubscriptionEditRemovePhase, TaxCodeAppMapping, AppCapability, UpdateAppStripeRequest, UpdateAppSandboxRequest, UpdateAppExternalInvoicingRequest, WorkflowInvoicingSettings, InvoiceLineAmountDiscount, InvoiceLineUsageDiscount, InvoiceLineBaseDiscount, ListCurrenciesParamsFilter, EntitlementAccessQueryRequest, EntitlementFeatureAccessReason, EntitlementAccessQueryError, AppCustomerData, UpsertAppCustomerDataRequest, CreditAdjustment, ListCreditTransactionsParamsFilter, CurrencyAmount, EntitlementAccessResult, PriceTier, ChargeTotals, FeatureLlmUnitCost, UpdatePriceTier, LlmCostPrice, LlmCostOverrideCreate, ListCustomersParamsFilter, ListCustomerEntitlementsParamsFilter, ListSubscriptionsParamsFilter, ListAppsParamsFilter, ListBillingProfilesParamsFilter, ListFeatureParamsFilter, ListAddonsParamsFilter, ListPlanAddonsParamsFilter, CreateTaxCodeConfig, TaxCodeConfig, TaxConfig, OrganizationDefaultTaxCodes, CreditBalance, CreditTransaction, InvoiceWorkflowAppsReferences, ProfileAppReferences, PlanAddon, UpdateTaxCodeConfig, ListEventsParamsFilter, ListCustomerChargesParamsFilter, ListInvoicesParamsFilter, ListChargesParamsFilter, ResourceFilters, FieldFilters, IngestedEvent, MeterQueryResult, EntitlementHistoryWindow, EntitlementBurndownSegment, ChargeRealizationDetailedLineFlatFee, ChargeRealizationDetailedLineUsageBased, CurrencyCustom, FeatureCostQueryResult, MeterPagePaginatedResponse, CostBasisPagePaginatedResponse, MeterQueryFilters, FeatureMeterReference, Customer, PartyAddresses, InvoiceCustomer, UpdateBillingPartyAddresses, UpdateInvoiceCustomer, AppStripeCreateCheckoutSessionConsentCollection, EntitlementGrantCreateRequest, CreateEntitlementStaticRequest, CreateEntitlementBooleanRequest, EntitlementMetered, EntitlementStatic, EntitlementBoolean, WorkflowCollectionAlignmentAnchored, SubscriptionEditAddPhase, CreateCreditGrantFilters, CreditGrantFilters, SubscriptionBase, InvoiceStatusDetails, InvoiceWorkflow, SubscriptionCancel, SubscriptionMigrate, SubscriptionAddonUpdate, TaxCode, AppCatalogItem, InvoiceLineDiscounts, UpdateBillingInvoiceWorkflow, EntitlementFeatureAccess, CustomerData, UpsertCustomerBillingDataRequest, ChargeFlatFeeSystemIntent, ListCustomerEntitlementAccessResponseData, PriceGraduated, PriceVolume, UpdatePriceGraduated, UpdatePriceVolume, PricePagePaginatedResponse, CreateCreditGrantPurchase, CreditGrantPurchase, CreateChargeFlatFeeRequest, WorkflowTaxSettings, CreditBalances, CreditTransactionPaginatedResponse, PlanAddonPagePaginatedResponse, IngestedEventPaginatedResponse, EntitlementHistory, InvalidParameters, MeterQueryRequest, CustomerPagePaginatedResponse, Supplier, Party, UpdateSupplier, AppStripeCreateCheckoutSessionRequestOptions, CreateEntitlementMeteredRequest, InvoiceWorkflowSettings, TaxCodePagePaginatedResponse, AppStripe, AppSandbox, AppExternalInvoicing, AppCatalogItemPagePaginatedResponse, InstalledAppStripe, InstalledAppSandbox, InstalledAppExternalInvoicing, InvoiceDetailedLine, UpdateInvoiceWorkflowSettings, EntitlementAccessQueryResult, Feature, CreditGrant, CurrencyPagePaginatedResponse, BadRequest, InvoiceBase, CustomerStripeCreateCheckoutSessionRequest, EntitlementPagePaginatedResponse, WorkflowCollectionSettings, ChargeRealizationInvoice, EntitlementAccessQueryResponse, RateCard, InvoiceLineRateCard, ChargeUsageBasedSystemIntent, CreateChargeUsageBasedRequest, FeaturePagePaginatedResponse, UpdateInvoiceLineRateCard, CreditGrantPagePaginatedResponse, Workflow, AppPagePaginatedResponse, ProfileApps, SubscriptionItem, PlanPhase, SubscriptionEditAddItem, SubscriptionAddonRateCard, Addon, UpsertAddonRequest, InvoiceStandardLine, UpdateInvoiceStandardLine, Profile, UpsertBillingProfileRequest, ChargeRealization, SubscriptionPhase, SubscriptionCustomPlan, Plan, UpsertPlanRequest, SubscriptionAddon, AddonPagePaginatedResponse, ProfilePagePaginatedResponse, Subscription, SubscriptionCreate, SubscriptionChange, PlanPagePaginatedResponse, SubscriptionEdit, SubscriptionAddonPagePaginatedResponse, InvoiceStandard, UpdateInvoiceStandardRequest, SubscriptionPagePaginatedResponse, SubscriptionChangeResponse, SubscriptionMigrateResponse, ChargeFlatFee, ChargeUsageBased, InvoicePagePaginatedResponse, ChargePagePaginatedResponse, StringFieldFilter, MeterAggregation, MeterQueryGranularity, EntitlementHistoryWindowSize, StringFieldFilterExact, PricePaymentTerm, BillingCurrencyCode, CreateCurrencyCode, UlidFieldFilter, DateTimeFieldFilter, EntitlementMeasureUsageFrom, WorkflowPaymentSettings, SubscriptionCreateTiming, SubscriptionEditTiming, UpdateBillingWorkflowPaymentSettings, CreateChargeCostBasis, ChargeCostBasis, InvalidParameter, RateCardEntitlement, FeatureUnitCost, ChargeRealizationDetailedLine, Currency, CustomerOrReference, Entitlement, WorkflowCollectionAlignment, Price, PriceUsageBased, UpdatePrice, CreateEntitlementRequest, App, BillingInstallAppResponse, FeatureOrReference, ChargeRealizationInvoiceOrReference, CreateChargeRequest, SubscriptionEditOperation, InvoiceLine, UpdateInvoiceLine, SubscriptionOrReference, Invoice, Charge, SortQueryInput, BaseErrorInput, InvoiceWorkflowInvoicingSettingsInput, WorkflowPaymentSendInvoiceSettingsInput, UpdateBillingInvoiceWorkflowInvoicingSettingsInput, UpdateBillingWorkflowPaymentSendInvoiceSettingsInput, EntitlementIssueAfterResetInput, EventInput, ResetCustomerEntitlementUsageRequestInput, UnauthorizedInput, ForbiddenInput, NotFoundInput, GoneInput, ConflictInput, PayloadTooLargeInput, UnsupportedMediaTypeInput, UnprocessableContentInput, TooManyRequestsInput, InternalInput, NotImplementedInput, NotAvailableInput, AppStripeCreateCheckoutSessionCustomerUpdateInput, AppStripeCreateCheckoutSessionTaxIdCollectionInput, RateCardMeteredEntitlementInput, VoidCreditGrantRequestInput, UnitConfigInput, WorkflowInvoicingSettingsInput, EntitlementAccessQueryRequestInput, IngestedEventInput, EntitlementMeteredInput, SubscriptionBaseInput, InvoiceWorkflowInput, SubscriptionCancelInput, SubscriptionMigrateInput, UpdateBillingInvoiceWorkflowInput, CreateCreditGrantPurchaseInput, CreditGrantPurchaseInput, WorkflowTaxSettingsInput, IngestedEventPaginatedResponseInput, MeterQueryRequestInput, AppStripeCreateCheckoutSessionRequestOptionsInput, CreateEntitlementMeteredRequestInput, InvoiceWorkflowSettingsInput, InvoiceDetailedLineInput, UpdateInvoiceWorkflowSettingsInput, CreateCreditGrantRequestInput, CreditGrantInput, BadRequestInput, CustomerStripeCreateCheckoutSessionRequestInput, EntitlementPagePaginatedResponseInput, WorkflowCollectionSettingsInput, ChargeRealizationInvoiceInput, RateCardInput, InvoiceLineRateCardInput, ChargeUsageBasedSystemIntentInput, CreateChargeUsageBasedRequestInput, CreditGrantPagePaginatedResponseInput, WorkflowInput, SubscriptionItemInput, PlanPhaseInput, SubscriptionEditAddItemInput, SubscriptionAddonRateCardInput, AddonInput, CreateAddonRequestInput, UpsertAddonRequestInput, InvoiceStandardLineInput, ProfileInput, CreateBillingProfileRequestInput, UpsertBillingProfileRequestInput, ChargeRealizationInput, SubscriptionPhaseInput, SubscriptionCustomPlanInput, PlanInput, CreatePlanRequestInput, UpsertPlanRequestInput, SubscriptionAddonInput, AddonPagePaginatedResponseInput, ProfilePagePaginatedResponseInput, SubscriptionInput, SubscriptionCreateInput, SubscriptionChangeInput, PlanPagePaginatedResponseInput, SubscriptionEditInput, SubscriptionAddonPagePaginatedResponseInput, InvoiceStandardInput, UpdateInvoiceStandardRequestInput, SubscriptionPagePaginatedResponseInput, SubscriptionChangeResponseInput, SubscriptionMigrateResponseInput, ChargeFlatFeeInput, ChargeUsageBasedInput, InvoicePagePaginatedResponseInput, ChargePagePaginatedResponseInput, WorkflowPaymentSettingsInput, UpdateBillingWorkflowPaymentSettingsInput, RateCardEntitlementInput, EntitlementInput, CreateEntitlementRequestInput, ChargeRealizationInvoiceOrReferenceInput, CreateChargeRequestInput, SubscriptionEditOperationInput, InvoiceLineInput, SubscriptionOrReferenceInput, InvoiceInput, UpdateInvoiceRequestInput, ChargeInput, } from './models/types.js';
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.0.0-beta-3cce18aa2b0e";
1
+ export declare const SDK_VERSION = "1.0.0-beta-56dac5f2b68e";
@@ -2,4 +2,4 @@
2
2
  // The committed value is a dev placeholder. The publish flow
3
3
  // (`make -C api/spec publish-aip-sdk`) stamps the real release version here
4
4
  // before `pnpm publish`, after `pnpm version` updates package.json.
5
- export const SDK_VERSION = '1.0.0-beta-3cce18aa2b0e';
5
+ export const SDK_VERSION = '1.0.0-beta-56dac5f2b68e';
@@ -130,6 +130,11 @@ export type ResetCustomerEntitlementUsageRequest = AcceptDateStrings<{
130
130
  body: ResetCustomerEntitlementUsageRequestInput;
131
131
  }>;
132
132
  export type ResetCustomerEntitlementUsageResponse = void;
133
+ export type DeleteCustomerEntitlementRequest = {
134
+ customerId: string;
135
+ entitlementId: string;
136
+ };
137
+ export type DeleteCustomerEntitlementResponse = void;
133
138
  export type CreateCreditGrantRequest = AcceptDateStrings<{
134
139
  customerId: string;
135
140
  body: CreateCreditGrantRequestInput;
@@ -197,11 +197,23 @@ export declare const taxBehavior: z.ZodEnum<{
197
197
  exclusive: "exclusive";
198
198
  inclusive: "inclusive";
199
199
  }>;
200
+ export declare const createVersionFilter: z.ZodObject<{
201
+ eq: z.ZodOptional<z.ZodNumber>;
202
+ in: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
203
+ gte: z.ZodOptional<z.ZodNumber>;
204
+ lte: z.ZodOptional<z.ZodNumber>;
205
+ }, z.core.$strip>;
200
206
  export declare const creditPurchasePaymentSettlementStatus: z.ZodEnum<{
201
207
  authorized: "authorized";
202
208
  pending: "pending";
203
209
  settled: "settled";
204
210
  }>;
211
+ export declare const versionFilter: z.ZodObject<{
212
+ eq: z.ZodOptional<z.ZodNumber>;
213
+ in: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
214
+ gte: z.ZodOptional<z.ZodNumber>;
215
+ lte: z.ZodOptional<z.ZodNumber>;
216
+ }, z.core.$strip>;
205
217
  export declare const creditGrantStatus: z.ZodEnum<{
206
218
  active: "active";
207
219
  expired: "expired";
@@ -1207,12 +1219,6 @@ export declare const notAvailable: z.ZodIntersection<z.ZodObject<{
1207
1219
  detail: z.ZodString;
1208
1220
  instance: z.ZodString;
1209
1221
  }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1210
- export declare const createCreditGrantFilters: z.ZodObject<{
1211
- features: z.ZodOptional<z.ZodArray<z.ZodString>>;
1212
- }, z.core.$strip>;
1213
- export declare const creditGrantFilters: z.ZodObject<{
1214
- features: z.ZodOptional<z.ZodArray<z.ZodString>>;
1215
- }, z.core.$strip>;
1216
1222
  export declare const subscriptionPlanReference: z.ZodObject<{
1217
1223
  id: z.ZodString;
1218
1224
  key: z.ZodString;
@@ -1466,6 +1472,15 @@ export declare const listPlansParamsFilter: z.ZodObject<{
1466
1472
  neq: z.ZodOptional<z.ZodString>;
1467
1473
  }, z.core.$strip>]>>;
1468
1474
  }, z.core.$strip>;
1475
+ export declare const createCreditGrantPlanFilter: z.ZodObject<{
1476
+ key: z.ZodString;
1477
+ version: z.ZodOptional<z.ZodObject<{
1478
+ eq: z.ZodOptional<z.ZodNumber>;
1479
+ in: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
1480
+ gte: z.ZodOptional<z.ZodNumber>;
1481
+ lte: z.ZodOptional<z.ZodNumber>;
1482
+ }, z.core.$strip>>;
1483
+ }, z.core.$strip>;
1469
1484
  export declare const updateCreditGrantExternalSettlementRequest: z.ZodObject<{
1470
1485
  status: z.ZodEnum<{
1471
1486
  authorized: "authorized";
@@ -1473,6 +1488,15 @@ export declare const updateCreditGrantExternalSettlementRequest: z.ZodObject<{
1473
1488
  settled: "settled";
1474
1489
  }>;
1475
1490
  }, z.core.$strip>;
1491
+ export declare const creditGrantPlanFilter: z.ZodObject<{
1492
+ key: z.ZodString;
1493
+ version: z.ZodOptional<z.ZodObject<{
1494
+ eq: z.ZodOptional<z.ZodNumber>;
1495
+ in: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
1496
+ gte: z.ZodOptional<z.ZodNumber>;
1497
+ lte: z.ZodOptional<z.ZodNumber>;
1498
+ }, z.core.$strip>>;
1499
+ }, z.core.$strip>;
1476
1500
  export declare const listCreditGrantsParamsFilter: z.ZodObject<{
1477
1501
  status: z.ZodOptional<z.ZodEnum<{
1478
1502
  active: "active";
@@ -3303,6 +3327,30 @@ export declare const subscriptionEditAddPhase: z.ZodObject<{
3303
3327
  duration: z.ZodOptional<z.ZodString>;
3304
3328
  }, z.core.$strip>;
3305
3329
  }, z.core.$strip>;
3330
+ export declare const createCreditGrantFilters: z.ZodObject<{
3331
+ features: z.ZodOptional<z.ZodArray<z.ZodString>>;
3332
+ plans: z.ZodOptional<z.ZodArray<z.ZodObject<{
3333
+ key: z.ZodString;
3334
+ version: z.ZodOptional<z.ZodObject<{
3335
+ eq: z.ZodOptional<z.ZodNumber>;
3336
+ in: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
3337
+ gte: z.ZodOptional<z.ZodNumber>;
3338
+ lte: z.ZodOptional<z.ZodNumber>;
3339
+ }, z.core.$strip>>;
3340
+ }, z.core.$strip>>>;
3341
+ }, z.core.$strip>;
3342
+ export declare const creditGrantFilters: z.ZodObject<{
3343
+ features: z.ZodOptional<z.ZodArray<z.ZodString>>;
3344
+ plans: z.ZodOptional<z.ZodArray<z.ZodObject<{
3345
+ key: z.ZodString;
3346
+ version: z.ZodOptional<z.ZodObject<{
3347
+ eq: z.ZodOptional<z.ZodNumber>;
3348
+ in: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
3349
+ gte: z.ZodOptional<z.ZodNumber>;
3350
+ lte: z.ZodOptional<z.ZodNumber>;
3351
+ }, z.core.$strip>>;
3352
+ }, z.core.$strip>>>;
3353
+ }, z.core.$strip>;
3306
3354
  export declare const subscriptionBase: z.ZodObject<{
3307
3355
  id: z.ZodString;
3308
3356
  labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -5342,6 +5390,15 @@ export declare const createCreditGrantRequest: z.ZodObject<{
5342
5390
  }, z.core.$strip>>;
5343
5391
  filters: z.ZodOptional<z.ZodObject<{
5344
5392
  features: z.ZodOptional<z.ZodArray<z.ZodString>>;
5393
+ plans: z.ZodOptional<z.ZodArray<z.ZodObject<{
5394
+ key: z.ZodString;
5395
+ version: z.ZodOptional<z.ZodObject<{
5396
+ eq: z.ZodOptional<z.ZodNumber>;
5397
+ in: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
5398
+ gte: z.ZodOptional<z.ZodNumber>;
5399
+ lte: z.ZodOptional<z.ZodNumber>;
5400
+ }, z.core.$strip>>;
5401
+ }, z.core.$strip>>>;
5345
5402
  }, z.core.$strip>>;
5346
5403
  priority: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
5347
5404
  effectiveAt: z.ZodOptional<z.ZodDate>;
@@ -5399,6 +5456,15 @@ export declare const creditGrant: z.ZodObject<{
5399
5456
  }, z.core.$strip>>;
5400
5457
  filters: z.ZodOptional<z.ZodObject<{
5401
5458
  features: z.ZodOptional<z.ZodArray<z.ZodString>>;
5459
+ plans: z.ZodOptional<z.ZodArray<z.ZodObject<{
5460
+ key: z.ZodString;
5461
+ version: z.ZodOptional<z.ZodObject<{
5462
+ eq: z.ZodOptional<z.ZodNumber>;
5463
+ in: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
5464
+ gte: z.ZodOptional<z.ZodNumber>;
5465
+ lte: z.ZodOptional<z.ZodNumber>;
5466
+ }, z.core.$strip>>;
5467
+ }, z.core.$strip>>>;
5402
5468
  }, z.core.$strip>>;
5403
5469
  priority: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
5404
5470
  effectiveAt: z.ZodOptional<z.ZodDate>;
@@ -6889,6 +6955,15 @@ export declare const creditGrantPagePaginatedResponse: z.ZodObject<{
6889
6955
  }, z.core.$strip>>;
6890
6956
  filters: z.ZodOptional<z.ZodObject<{
6891
6957
  features: z.ZodOptional<z.ZodArray<z.ZodString>>;
6958
+ plans: z.ZodOptional<z.ZodArray<z.ZodObject<{
6959
+ key: z.ZodString;
6960
+ version: z.ZodOptional<z.ZodObject<{
6961
+ eq: z.ZodOptional<z.ZodNumber>;
6962
+ in: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
6963
+ gte: z.ZodOptional<z.ZodNumber>;
6964
+ lte: z.ZodOptional<z.ZodNumber>;
6965
+ }, z.core.$strip>>;
6966
+ }, z.core.$strip>>>;
6892
6967
  }, z.core.$strip>>;
6893
6968
  priority: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
6894
6969
  effectiveAt: z.ZodOptional<z.ZodDate>;
@@ -18758,6 +18833,10 @@ export declare const resetCustomerEntitlementUsageBody: z.ZodObject<{
18758
18833
  retainAnchor: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
18759
18834
  preserveOverage: z.ZodOptional<z.ZodBoolean>;
18760
18835
  }, z.core.$strip>;
18836
+ export declare const deleteCustomerEntitlementPathParams: z.ZodObject<{
18837
+ customerId: z.ZodString;
18838
+ entitlementId: z.ZodString;
18839
+ }, z.core.$strip>;
18761
18840
  export declare const createCreditGrantPathParams: z.ZodObject<{
18762
18841
  customerId: z.ZodString;
18763
18842
  }, z.core.$strip>;
@@ -18802,6 +18881,15 @@ export declare const createCreditGrantBody: z.ZodObject<{
18802
18881
  }, z.core.$strip>>;
18803
18882
  filters: z.ZodOptional<z.ZodObject<{
18804
18883
  features: z.ZodOptional<z.ZodArray<z.ZodString>>;
18884
+ plans: z.ZodOptional<z.ZodArray<z.ZodObject<{
18885
+ key: z.ZodString;
18886
+ version: z.ZodOptional<z.ZodObject<{
18887
+ eq: z.ZodOptional<z.ZodNumber>;
18888
+ in: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
18889
+ gte: z.ZodOptional<z.ZodNumber>;
18890
+ lte: z.ZodOptional<z.ZodNumber>;
18891
+ }, z.core.$strip>>;
18892
+ }, z.core.$strip>>>;
18805
18893
  }, z.core.$strip>>;
18806
18894
  priority: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
18807
18895
  effectiveAt: z.ZodOptional<z.ZodDate>;
@@ -18859,6 +18947,15 @@ export declare const createCreditGrantResponse: z.ZodObject<{
18859
18947
  }, z.core.$strip>>;
18860
18948
  filters: z.ZodOptional<z.ZodObject<{
18861
18949
  features: z.ZodOptional<z.ZodArray<z.ZodString>>;
18950
+ plans: z.ZodOptional<z.ZodArray<z.ZodObject<{
18951
+ key: z.ZodString;
18952
+ version: z.ZodOptional<z.ZodObject<{
18953
+ eq: z.ZodOptional<z.ZodNumber>;
18954
+ in: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
18955
+ gte: z.ZodOptional<z.ZodNumber>;
18956
+ lte: z.ZodOptional<z.ZodNumber>;
18957
+ }, z.core.$strip>>;
18958
+ }, z.core.$strip>>>;
18862
18959
  }, z.core.$strip>>;
18863
18960
  priority: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
18864
18961
  effectiveAt: z.ZodOptional<z.ZodDate>;
@@ -18938,6 +19035,15 @@ export declare const getCreditGrantResponse: z.ZodObject<{
18938
19035
  }, z.core.$strip>>;
18939
19036
  filters: z.ZodOptional<z.ZodObject<{
18940
19037
  features: z.ZodOptional<z.ZodArray<z.ZodString>>;
19038
+ plans: z.ZodOptional<z.ZodArray<z.ZodObject<{
19039
+ key: z.ZodString;
19040
+ version: z.ZodOptional<z.ZodObject<{
19041
+ eq: z.ZodOptional<z.ZodNumber>;
19042
+ in: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
19043
+ gte: z.ZodOptional<z.ZodNumber>;
19044
+ lte: z.ZodOptional<z.ZodNumber>;
19045
+ }, z.core.$strip>>;
19046
+ }, z.core.$strip>>>;
18941
19047
  }, z.core.$strip>>;
18942
19048
  priority: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
18943
19049
  effectiveAt: z.ZodOptional<z.ZodDate>;
@@ -19044,6 +19150,15 @@ export declare const listCreditGrantsResponse: z.ZodObject<{
19044
19150
  }, z.core.$strip>>;
19045
19151
  filters: z.ZodOptional<z.ZodObject<{
19046
19152
  features: z.ZodOptional<z.ZodArray<z.ZodString>>;
19153
+ plans: z.ZodOptional<z.ZodArray<z.ZodObject<{
19154
+ key: z.ZodString;
19155
+ version: z.ZodOptional<z.ZodObject<{
19156
+ eq: z.ZodOptional<z.ZodNumber>;
19157
+ in: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
19158
+ gte: z.ZodOptional<z.ZodNumber>;
19159
+ lte: z.ZodOptional<z.ZodNumber>;
19160
+ }, z.core.$strip>>;
19161
+ }, z.core.$strip>>>;
19047
19162
  }, z.core.$strip>>;
19048
19163
  priority: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
19049
19164
  effectiveAt: z.ZodOptional<z.ZodDate>;
@@ -19188,6 +19303,15 @@ export declare const voidCreditGrantResponse: z.ZodObject<{
19188
19303
  }, z.core.$strip>>;
19189
19304
  filters: z.ZodOptional<z.ZodObject<{
19190
19305
  features: z.ZodOptional<z.ZodArray<z.ZodString>>;
19306
+ plans: z.ZodOptional<z.ZodArray<z.ZodObject<{
19307
+ key: z.ZodString;
19308
+ version: z.ZodOptional<z.ZodObject<{
19309
+ eq: z.ZodOptional<z.ZodNumber>;
19310
+ in: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
19311
+ gte: z.ZodOptional<z.ZodNumber>;
19312
+ lte: z.ZodOptional<z.ZodNumber>;
19313
+ }, z.core.$strip>>;
19314
+ }, z.core.$strip>>>;
19191
19315
  }, z.core.$strip>>;
19192
19316
  priority: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
19193
19317
  effectiveAt: z.ZodOptional<z.ZodDate>;
@@ -19274,6 +19398,15 @@ export declare const updateCreditGrantExternalSettlementResponse: z.ZodObject<{
19274
19398
  }, z.core.$strip>>;
19275
19399
  filters: z.ZodOptional<z.ZodObject<{
19276
19400
  features: z.ZodOptional<z.ZodArray<z.ZodString>>;
19401
+ plans: z.ZodOptional<z.ZodArray<z.ZodObject<{
19402
+ key: z.ZodString;
19403
+ version: z.ZodOptional<z.ZodObject<{
19404
+ eq: z.ZodOptional<z.ZodNumber>;
19405
+ in: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
19406
+ gte: z.ZodOptional<z.ZodNumber>;
19407
+ lte: z.ZodOptional<z.ZodNumber>;
19408
+ }, z.core.$strip>>;
19409
+ }, z.core.$strip>>>;
19277
19410
  }, z.core.$strip>>;
19278
19411
  priority: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
19279
19412
  effectiveAt: z.ZodOptional<z.ZodDate>;
@@ -33809,11 +33942,23 @@ export declare const taxBehaviorWire: z.ZodEnum<{
33809
33942
  exclusive: "exclusive";
33810
33943
  inclusive: "inclusive";
33811
33944
  }>;
33945
+ export declare const createVersionFilterWire: z.ZodObject<{
33946
+ eq: z.ZodOptional<z.ZodNumber>;
33947
+ in: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
33948
+ gte: z.ZodOptional<z.ZodNumber>;
33949
+ lte: z.ZodOptional<z.ZodNumber>;
33950
+ }, z.core.$strict>;
33812
33951
  export declare const creditPurchasePaymentSettlementStatusWire: z.ZodEnum<{
33813
33952
  authorized: "authorized";
33814
33953
  pending: "pending";
33815
33954
  settled: "settled";
33816
33955
  }>;
33956
+ export declare const versionFilterWire: z.ZodObject<{
33957
+ eq: z.ZodOptional<z.ZodNumber>;
33958
+ in: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
33959
+ gte: z.ZodOptional<z.ZodNumber>;
33960
+ lte: z.ZodOptional<z.ZodNumber>;
33961
+ }, z.core.$strict>;
33817
33962
  export declare const creditGrantStatusWire: z.ZodEnum<{
33818
33963
  active: "active";
33819
33964
  expired: "expired";
@@ -34819,12 +34964,6 @@ export declare const notAvailableWire: z.ZodIntersection<z.ZodObject<{
34819
34964
  detail: z.ZodString;
34820
34965
  instance: z.ZodString;
34821
34966
  }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodUnknown>>;
34822
- export declare const createCreditGrantFiltersWire: z.ZodObject<{
34823
- features: z.ZodOptional<z.ZodArray<z.ZodString>>;
34824
- }, z.core.$strict>;
34825
- export declare const creditGrantFiltersWire: z.ZodObject<{
34826
- features: z.ZodOptional<z.ZodArray<z.ZodString>>;
34827
- }, z.core.$strict>;
34828
34967
  export declare const subscriptionPlanReferenceWire: z.ZodObject<{
34829
34968
  id: z.ZodString;
34830
34969
  key: z.ZodString;
@@ -35078,6 +35217,15 @@ export declare const listPlansParamsFilterWire: z.ZodObject<{
35078
35217
  neq: z.ZodOptional<z.ZodString>;
35079
35218
  }, z.core.$strict>]>>;
35080
35219
  }, z.core.$strict>;
35220
+ export declare const createCreditGrantPlanFilterWire: z.ZodObject<{
35221
+ key: z.ZodString;
35222
+ version: z.ZodOptional<z.ZodObject<{
35223
+ eq: z.ZodOptional<z.ZodNumber>;
35224
+ in: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
35225
+ gte: z.ZodOptional<z.ZodNumber>;
35226
+ lte: z.ZodOptional<z.ZodNumber>;
35227
+ }, z.core.$strict>>;
35228
+ }, z.core.$strict>;
35081
35229
  export declare const updateCreditGrantExternalSettlementRequestWire: z.ZodObject<{
35082
35230
  status: z.ZodEnum<{
35083
35231
  authorized: "authorized";
@@ -35085,6 +35233,15 @@ export declare const updateCreditGrantExternalSettlementRequestWire: z.ZodObject
35085
35233
  settled: "settled";
35086
35234
  }>;
35087
35235
  }, z.core.$strict>;
35236
+ export declare const creditGrantPlanFilterWire: z.ZodObject<{
35237
+ key: z.ZodString;
35238
+ version: z.ZodOptional<z.ZodObject<{
35239
+ eq: z.ZodOptional<z.ZodNumber>;
35240
+ in: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
35241
+ gte: z.ZodOptional<z.ZodNumber>;
35242
+ lte: z.ZodOptional<z.ZodNumber>;
35243
+ }, z.core.$strict>>;
35244
+ }, z.core.$strict>;
35088
35245
  export declare const listCreditGrantsParamsFilterWire: z.ZodObject<{
35089
35246
  status: z.ZodOptional<z.ZodEnum<{
35090
35247
  active: "active";
@@ -36915,6 +37072,30 @@ export declare const subscriptionEditAddPhaseWire: z.ZodObject<{
36915
37072
  duration: z.ZodOptional<z.ZodString>;
36916
37073
  }, z.core.$strict>;
36917
37074
  }, z.core.$strict>;
37075
+ export declare const createCreditGrantFiltersWire: z.ZodObject<{
37076
+ features: z.ZodOptional<z.ZodArray<z.ZodString>>;
37077
+ plans: z.ZodOptional<z.ZodArray<z.ZodObject<{
37078
+ key: z.ZodString;
37079
+ version: z.ZodOptional<z.ZodObject<{
37080
+ eq: z.ZodOptional<z.ZodNumber>;
37081
+ in: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
37082
+ gte: z.ZodOptional<z.ZodNumber>;
37083
+ lte: z.ZodOptional<z.ZodNumber>;
37084
+ }, z.core.$strict>>;
37085
+ }, z.core.$strict>>>;
37086
+ }, z.core.$strict>;
37087
+ export declare const creditGrantFiltersWire: z.ZodObject<{
37088
+ features: z.ZodOptional<z.ZodArray<z.ZodString>>;
37089
+ plans: z.ZodOptional<z.ZodArray<z.ZodObject<{
37090
+ key: z.ZodString;
37091
+ version: z.ZodOptional<z.ZodObject<{
37092
+ eq: z.ZodOptional<z.ZodNumber>;
37093
+ in: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
37094
+ gte: z.ZodOptional<z.ZodNumber>;
37095
+ lte: z.ZodOptional<z.ZodNumber>;
37096
+ }, z.core.$strict>>;
37097
+ }, z.core.$strict>>>;
37098
+ }, z.core.$strict>;
36918
37099
  export declare const subscriptionBaseWire: z.ZodObject<{
36919
37100
  id: z.ZodString;
36920
37101
  labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -38954,6 +39135,15 @@ export declare const createCreditGrantRequestWire: z.ZodObject<{
38954
39135
  }, z.core.$strict>>;
38955
39136
  filters: z.ZodOptional<z.ZodObject<{
38956
39137
  features: z.ZodOptional<z.ZodArray<z.ZodString>>;
39138
+ plans: z.ZodOptional<z.ZodArray<z.ZodObject<{
39139
+ key: z.ZodString;
39140
+ version: z.ZodOptional<z.ZodObject<{
39141
+ eq: z.ZodOptional<z.ZodNumber>;
39142
+ in: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
39143
+ gte: z.ZodOptional<z.ZodNumber>;
39144
+ lte: z.ZodOptional<z.ZodNumber>;
39145
+ }, z.core.$strict>>;
39146
+ }, z.core.$strict>>>;
38957
39147
  }, z.core.$strict>>;
38958
39148
  priority: z.ZodOptional<z.ZodNumber>;
38959
39149
  effective_at: z.ZodOptional<z.ZodString>;
@@ -39011,6 +39201,15 @@ export declare const creditGrantWire: z.ZodObject<{
39011
39201
  }, z.core.$strict>>;
39012
39202
  filters: z.ZodOptional<z.ZodObject<{
39013
39203
  features: z.ZodOptional<z.ZodArray<z.ZodString>>;
39204
+ plans: z.ZodOptional<z.ZodArray<z.ZodObject<{
39205
+ key: z.ZodString;
39206
+ version: z.ZodOptional<z.ZodObject<{
39207
+ eq: z.ZodOptional<z.ZodNumber>;
39208
+ in: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
39209
+ gte: z.ZodOptional<z.ZodNumber>;
39210
+ lte: z.ZodOptional<z.ZodNumber>;
39211
+ }, z.core.$strict>>;
39212
+ }, z.core.$strict>>>;
39014
39213
  }, z.core.$strict>>;
39015
39214
  priority: z.ZodOptional<z.ZodNumber>;
39016
39215
  effective_at: z.ZodOptional<z.ZodString>;
@@ -40501,6 +40700,15 @@ export declare const creditGrantPagePaginatedResponseWire: z.ZodObject<{
40501
40700
  }, z.core.$strict>>;
40502
40701
  filters: z.ZodOptional<z.ZodObject<{
40503
40702
  features: z.ZodOptional<z.ZodArray<z.ZodString>>;
40703
+ plans: z.ZodOptional<z.ZodArray<z.ZodObject<{
40704
+ key: z.ZodString;
40705
+ version: z.ZodOptional<z.ZodObject<{
40706
+ eq: z.ZodOptional<z.ZodNumber>;
40707
+ in: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
40708
+ gte: z.ZodOptional<z.ZodNumber>;
40709
+ lte: z.ZodOptional<z.ZodNumber>;
40710
+ }, z.core.$strict>>;
40711
+ }, z.core.$strict>>>;
40504
40712
  }, z.core.$strict>>;
40505
40713
  priority: z.ZodOptional<z.ZodNumber>;
40506
40714
  effective_at: z.ZodOptional<z.ZodString>;
@@ -52358,6 +52566,10 @@ export declare const resetCustomerEntitlementUsageBodyWire: z.ZodObject<{
52358
52566
  retain_anchor: z.ZodOptional<z.ZodBoolean>;
52359
52567
  preserve_overage: z.ZodOptional<z.ZodBoolean>;
52360
52568
  }, z.core.$strict>;
52569
+ export declare const deleteCustomerEntitlementPathParamsWire: z.ZodObject<{
52570
+ customerId: z.ZodString;
52571
+ entitlementId: z.ZodString;
52572
+ }, z.core.$strip>;
52361
52573
  export declare const createCreditGrantPathParamsWire: z.ZodObject<{
52362
52574
  customerId: z.ZodString;
52363
52575
  }, z.core.$strip>;
@@ -52402,6 +52614,15 @@ export declare const createCreditGrantBodyWire: z.ZodObject<{
52402
52614
  }, z.core.$strict>>;
52403
52615
  filters: z.ZodOptional<z.ZodObject<{
52404
52616
  features: z.ZodOptional<z.ZodArray<z.ZodString>>;
52617
+ plans: z.ZodOptional<z.ZodArray<z.ZodObject<{
52618
+ key: z.ZodString;
52619
+ version: z.ZodOptional<z.ZodObject<{
52620
+ eq: z.ZodOptional<z.ZodNumber>;
52621
+ in: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
52622
+ gte: z.ZodOptional<z.ZodNumber>;
52623
+ lte: z.ZodOptional<z.ZodNumber>;
52624
+ }, z.core.$strict>>;
52625
+ }, z.core.$strict>>>;
52405
52626
  }, z.core.$strict>>;
52406
52627
  priority: z.ZodOptional<z.ZodNumber>;
52407
52628
  effective_at: z.ZodOptional<z.ZodString>;
@@ -52459,6 +52680,15 @@ export declare const createCreditGrantResponseWire: z.ZodObject<{
52459
52680
  }, z.core.$strict>>;
52460
52681
  filters: z.ZodOptional<z.ZodObject<{
52461
52682
  features: z.ZodOptional<z.ZodArray<z.ZodString>>;
52683
+ plans: z.ZodOptional<z.ZodArray<z.ZodObject<{
52684
+ key: z.ZodString;
52685
+ version: z.ZodOptional<z.ZodObject<{
52686
+ eq: z.ZodOptional<z.ZodNumber>;
52687
+ in: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
52688
+ gte: z.ZodOptional<z.ZodNumber>;
52689
+ lte: z.ZodOptional<z.ZodNumber>;
52690
+ }, z.core.$strict>>;
52691
+ }, z.core.$strict>>>;
52462
52692
  }, z.core.$strict>>;
52463
52693
  priority: z.ZodOptional<z.ZodNumber>;
52464
52694
  effective_at: z.ZodOptional<z.ZodString>;
@@ -52538,6 +52768,15 @@ export declare const getCreditGrantResponseWire: z.ZodObject<{
52538
52768
  }, z.core.$strict>>;
52539
52769
  filters: z.ZodOptional<z.ZodObject<{
52540
52770
  features: z.ZodOptional<z.ZodArray<z.ZodString>>;
52771
+ plans: z.ZodOptional<z.ZodArray<z.ZodObject<{
52772
+ key: z.ZodString;
52773
+ version: z.ZodOptional<z.ZodObject<{
52774
+ eq: z.ZodOptional<z.ZodNumber>;
52775
+ in: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
52776
+ gte: z.ZodOptional<z.ZodNumber>;
52777
+ lte: z.ZodOptional<z.ZodNumber>;
52778
+ }, z.core.$strict>>;
52779
+ }, z.core.$strict>>>;
52541
52780
  }, z.core.$strict>>;
52542
52781
  priority: z.ZodOptional<z.ZodNumber>;
52543
52782
  effective_at: z.ZodOptional<z.ZodString>;
@@ -52644,6 +52883,15 @@ export declare const listCreditGrantsResponseWire: z.ZodObject<{
52644
52883
  }, z.core.$strict>>;
52645
52884
  filters: z.ZodOptional<z.ZodObject<{
52646
52885
  features: z.ZodOptional<z.ZodArray<z.ZodString>>;
52886
+ plans: z.ZodOptional<z.ZodArray<z.ZodObject<{
52887
+ key: z.ZodString;
52888
+ version: z.ZodOptional<z.ZodObject<{
52889
+ eq: z.ZodOptional<z.ZodNumber>;
52890
+ in: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
52891
+ gte: z.ZodOptional<z.ZodNumber>;
52892
+ lte: z.ZodOptional<z.ZodNumber>;
52893
+ }, z.core.$strict>>;
52894
+ }, z.core.$strict>>>;
52647
52895
  }, z.core.$strict>>;
52648
52896
  priority: z.ZodOptional<z.ZodNumber>;
52649
52897
  effective_at: z.ZodOptional<z.ZodString>;
@@ -52788,6 +53036,15 @@ export declare const voidCreditGrantResponseWire: z.ZodObject<{
52788
53036
  }, z.core.$strict>>;
52789
53037
  filters: z.ZodOptional<z.ZodObject<{
52790
53038
  features: z.ZodOptional<z.ZodArray<z.ZodString>>;
53039
+ plans: z.ZodOptional<z.ZodArray<z.ZodObject<{
53040
+ key: z.ZodString;
53041
+ version: z.ZodOptional<z.ZodObject<{
53042
+ eq: z.ZodOptional<z.ZodNumber>;
53043
+ in: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
53044
+ gte: z.ZodOptional<z.ZodNumber>;
53045
+ lte: z.ZodOptional<z.ZodNumber>;
53046
+ }, z.core.$strict>>;
53047
+ }, z.core.$strict>>>;
52791
53048
  }, z.core.$strict>>;
52792
53049
  priority: z.ZodOptional<z.ZodNumber>;
52793
53050
  effective_at: z.ZodOptional<z.ZodString>;
@@ -52874,6 +53131,15 @@ export declare const updateCreditGrantExternalSettlementResponseWire: z.ZodObjec
52874
53131
  }, z.core.$strict>>;
52875
53132
  filters: z.ZodOptional<z.ZodObject<{
52876
53133
  features: z.ZodOptional<z.ZodArray<z.ZodString>>;
53134
+ plans: z.ZodOptional<z.ZodArray<z.ZodObject<{
53135
+ key: z.ZodString;
53136
+ version: z.ZodOptional<z.ZodObject<{
53137
+ eq: z.ZodOptional<z.ZodNumber>;
53138
+ in: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
53139
+ gte: z.ZodOptional<z.ZodNumber>;
53140
+ lte: z.ZodOptional<z.ZodNumber>;
53141
+ }, z.core.$strict>>;
53142
+ }, z.core.$strict>>>;
52877
53143
  }, z.core.$strict>>;
52878
53144
  priority: z.ZodOptional<z.ZodNumber>;
52879
53145
  effective_at: z.ZodOptional<z.ZodString>;
@@ -419,9 +419,71 @@ export const creditAvailabilityPolicy = z
419
419
  export const taxBehavior = z
420
420
  .enum(['inclusive', 'exclusive'])
421
421
  .describe('Tax behavior. This enum is used to specify whether tax is included in the price or excluded from the price.');
422
+ export const createVersionFilter = z
423
+ .object({
424
+ eq: z
425
+ .number()
426
+ .int()
427
+ .gte(1)
428
+ .lte(2147483647)
429
+ .optional()
430
+ .describe('Match this exact version.'),
431
+ in: z
432
+ .array(z.number().int().gte(-2147483648).lte(2147483647))
433
+ .min(1)
434
+ .max(100)
435
+ .optional()
436
+ .describe('Match one of these versions.'),
437
+ gte: z
438
+ .number()
439
+ .int()
440
+ .gte(1)
441
+ .lte(2147483647)
442
+ .optional()
443
+ .describe('Match this version and later versions.'),
444
+ lte: z
445
+ .number()
446
+ .int()
447
+ .gte(1)
448
+ .lte(2147483647)
449
+ .optional()
450
+ .describe('Match this version and earlier versions.'),
451
+ })
452
+ .describe('An integer version comparison. Exactly one operator must be provided.');
422
453
  export const creditPurchasePaymentSettlementStatus = z
423
454
  .enum(['pending', 'authorized', 'settled'])
424
455
  .describe('Credit purchase payment settlement status. - `pending`: Payment has been initiated and is not yet authorized. - `authorized`: Payment has been authorized. - `settled`: Payment has been settled.');
456
+ export const versionFilter = z
457
+ .object({
458
+ eq: z
459
+ .number()
460
+ .int()
461
+ .gte(1)
462
+ .lte(2147483647)
463
+ .optional()
464
+ .describe('Match this exact version.'),
465
+ in: z
466
+ .array(z.number().int().gte(-2147483648).lte(2147483647))
467
+ .min(1)
468
+ .max(100)
469
+ .optional()
470
+ .describe('Match one of these versions.'),
471
+ gte: z
472
+ .number()
473
+ .int()
474
+ .gte(1)
475
+ .lte(2147483647)
476
+ .optional()
477
+ .describe('Match this version and later versions.'),
478
+ lte: z
479
+ .number()
480
+ .int()
481
+ .gte(1)
482
+ .lte(2147483647)
483
+ .optional()
484
+ .describe('Match this version and earlier versions.'),
485
+ })
486
+ .describe('An integer version comparison. Exactly one operator must be provided.');
425
487
  export const creditGrantStatus = z
426
488
  .enum(['pending', 'active', 'expired', 'voided'])
427
489
  .describe('Credit grant lifecycle status. - `pending`: The credit block has been created but is not yet valid. (`effective_at` is in the future or availability_policy is not met) - `active`: The credit block is currently valid and eligible for consumption. (`effective_at` is in the past, `expires_at` is in the future and availability_policy is met) - `expired`: The credit block expired with remaining unused balance, `expires_at` time has passed. - `voided`: The credit block was voided. Remaining balance is forfeited.');
@@ -1895,22 +1957,6 @@ export const tooManyRequests = baseError.describe('Too Many Requests.');
1895
1957
  export const internal = baseError.describe('Internal Server Error.');
1896
1958
  export const notImplemented = baseError.describe('Not Implemented.');
1897
1959
  export const notAvailable = baseError.describe('Not Available.');
1898
- export const createCreditGrantFilters = z
1899
- .object({
1900
- features: z
1901
- .array(resourceKey)
1902
- .optional()
1903
- .describe('Limit the credit grant to specific features. If no features are specified, the credit grant can be used for any feature.'),
1904
- })
1905
- .describe('Filters for the credit grant.');
1906
- export const creditGrantFilters = z
1907
- .object({
1908
- features: z
1909
- .array(resourceKey)
1910
- .optional()
1911
- .describe('Limit the credit grant to specific features. If no features are specified, the credit grant can be used for any feature.'),
1912
- })
1913
- .describe('Filters for the credit grant.');
1914
1960
  export const subscriptionPlanReference = z
1915
1961
  .object({
1916
1962
  id: ulid,
@@ -2278,11 +2324,23 @@ export const listPlansParamsFilter = z
2278
2324
  currency: stringFieldFilterExact.optional(),
2279
2325
  })
2280
2326
  .describe('Filter options for listing plans.');
2327
+ export const createCreditGrantPlanFilter = z
2328
+ .object({
2329
+ key: resourceKey,
2330
+ version: createVersionFilter.optional(),
2331
+ })
2332
+ .describe('A plan key and an optional version constraint for matching credit grants.');
2281
2333
  export const updateCreditGrantExternalSettlementRequest = z
2282
2334
  .object({
2283
2335
  status: creditPurchasePaymentSettlementStatus,
2284
2336
  })
2285
2337
  .describe('Request body for updating the external payment settlement status of a credit grant.');
2338
+ export const creditGrantPlanFilter = z
2339
+ .object({
2340
+ key: resourceKey,
2341
+ version: versionFilter.optional(),
2342
+ })
2343
+ .describe('A plan key and an optional version constraint for matching credit grants.');
2286
2344
  export const listCreditGrantsParamsFilter = z
2287
2345
  .object({
2288
2346
  status: creditGrantStatus.optional(),
@@ -3434,6 +3492,30 @@ export const subscriptionEditAddPhase = z
3434
3492
  phase: subscriptionPhaseCreate,
3435
3493
  })
3436
3494
  .describe('Add a new phase to the subscription. The phase is created without items; use add-item operations to populate it.');
3495
+ export const createCreditGrantFilters = z
3496
+ .object({
3497
+ features: z
3498
+ .array(resourceKey)
3499
+ .optional()
3500
+ .describe('Limit the credit grant to specific features. If no features are specified, the credit grant can be used for any feature.'),
3501
+ plans: z
3502
+ .array(createCreditGrantPlanFilter)
3503
+ .optional()
3504
+ .describe('Limit credits to charges from these plans. Entries are alternatives; when features are also specified, both dimensions must match. Omission or an empty list leaves plans unrestricted.'),
3505
+ })
3506
+ .describe('Filters for the credit grant.');
3507
+ export const creditGrantFilters = z
3508
+ .object({
3509
+ features: z
3510
+ .array(resourceKey)
3511
+ .optional()
3512
+ .describe('Limit the credit grant to specific features. If no features are specified, the credit grant can be used for any feature.'),
3513
+ plans: z
3514
+ .array(creditGrantPlanFilter)
3515
+ .optional()
3516
+ .describe('Limit credits to charges from these plans. Entries are alternatives; when features are also specified, both dimensions must match. Omission or an empty list leaves plans unrestricted.'),
3517
+ })
3518
+ .describe('Filters for the credit grant.');
3437
3519
  export const subscriptionBase = z
3438
3520
  .object({
3439
3521
  id: ulid,
@@ -5616,6 +5698,10 @@ export const resetCustomerEntitlementUsagePathParams = z.object({
5616
5698
  entitlementId: ulid,
5617
5699
  });
5618
5700
  export const resetCustomerEntitlementUsageBody = resetCustomerEntitlementUsageRequest;
5701
+ export const deleteCustomerEntitlementPathParams = z.object({
5702
+ customerId: ulid,
5703
+ entitlementId: ulid,
5704
+ });
5619
5705
  export const createCreditGrantPathParams = z.object({
5620
5706
  customerId: ulid,
5621
5707
  });
@@ -6688,9 +6774,71 @@ export const creditAvailabilityPolicyWire = z
6688
6774
  export const taxBehaviorWire = z
6689
6775
  .enum(['inclusive', 'exclusive'])
6690
6776
  .describe('Tax behavior. This enum is used to specify whether tax is included in the price or excluded from the price.');
6777
+ export const createVersionFilterWire = z
6778
+ .strictObject({
6779
+ eq: z
6780
+ .number()
6781
+ .int()
6782
+ .gte(1)
6783
+ .lte(2147483647)
6784
+ .optional()
6785
+ .describe('Match this exact version.'),
6786
+ in: z
6787
+ .array(z.number().int().gte(-2147483648).lte(2147483647))
6788
+ .min(1)
6789
+ .max(100)
6790
+ .optional()
6791
+ .describe('Match one of these versions.'),
6792
+ gte: z
6793
+ .number()
6794
+ .int()
6795
+ .gte(1)
6796
+ .lte(2147483647)
6797
+ .optional()
6798
+ .describe('Match this version and later versions.'),
6799
+ lte: z
6800
+ .number()
6801
+ .int()
6802
+ .gte(1)
6803
+ .lte(2147483647)
6804
+ .optional()
6805
+ .describe('Match this version and earlier versions.'),
6806
+ })
6807
+ .describe('An integer version comparison. Exactly one operator must be provided.');
6691
6808
  export const creditPurchasePaymentSettlementStatusWire = z
6692
6809
  .enum(['pending', 'authorized', 'settled'])
6693
6810
  .describe('Credit purchase payment settlement status. - `pending`: Payment has been initiated and is not yet authorized. - `authorized`: Payment has been authorized. - `settled`: Payment has been settled.');
6811
+ export const versionFilterWire = z
6812
+ .strictObject({
6813
+ eq: z
6814
+ .number()
6815
+ .int()
6816
+ .gte(1)
6817
+ .lte(2147483647)
6818
+ .optional()
6819
+ .describe('Match this exact version.'),
6820
+ in: z
6821
+ .array(z.number().int().gte(-2147483648).lte(2147483647))
6822
+ .min(1)
6823
+ .max(100)
6824
+ .optional()
6825
+ .describe('Match one of these versions.'),
6826
+ gte: z
6827
+ .number()
6828
+ .int()
6829
+ .gte(1)
6830
+ .lte(2147483647)
6831
+ .optional()
6832
+ .describe('Match this version and later versions.'),
6833
+ lte: z
6834
+ .number()
6835
+ .int()
6836
+ .gte(1)
6837
+ .lte(2147483647)
6838
+ .optional()
6839
+ .describe('Match this version and earlier versions.'),
6840
+ })
6841
+ .describe('An integer version comparison. Exactly one operator must be provided.');
6694
6842
  export const creditGrantStatusWire = z
6695
6843
  .enum(['pending', 'active', 'expired', 'voided'])
6696
6844
  .describe('Credit grant lifecycle status. - `pending`: The credit block has been created but is not yet valid. (`effective_at` is in the future or availability_policy is not met) - `active`: The credit block is currently valid and eligible for consumption. (`effective_at` is in the past, `expires_at` is in the future and availability_policy is met) - `expired`: The credit block expired with remaining unused balance, `expires_at` time has passed. - `voided`: The credit block was voided. Remaining balance is forfeited.');
@@ -8155,22 +8303,6 @@ export const tooManyRequestsWire = baseErrorWire.describe('Too Many Requests.');
8155
8303
  export const internalWire = baseErrorWire.describe('Internal Server Error.');
8156
8304
  export const notImplementedWire = baseErrorWire.describe('Not Implemented.');
8157
8305
  export const notAvailableWire = baseErrorWire.describe('Not Available.');
8158
- export const createCreditGrantFiltersWire = z
8159
- .strictObject({
8160
- features: z
8161
- .array(resourceKeyWire)
8162
- .optional()
8163
- .describe('Limit the credit grant to specific features. If no features are specified, the credit grant can be used for any feature.'),
8164
- })
8165
- .describe('Filters for the credit grant.');
8166
- export const creditGrantFiltersWire = z
8167
- .strictObject({
8168
- features: z
8169
- .array(resourceKeyWire)
8170
- .optional()
8171
- .describe('Limit the credit grant to specific features. If no features are specified, the credit grant can be used for any feature.'),
8172
- })
8173
- .describe('Filters for the credit grant.');
8174
8306
  export const subscriptionPlanReferenceWire = z
8175
8307
  .strictObject({
8176
8308
  id: ulidWire,
@@ -8528,11 +8660,23 @@ export const listPlansParamsFilterWire = z
8528
8660
  currency: stringFieldFilterExactWire.optional(),
8529
8661
  })
8530
8662
  .describe('Filter options for listing plans.');
8663
+ export const createCreditGrantPlanFilterWire = z
8664
+ .strictObject({
8665
+ key: resourceKeyWire,
8666
+ version: createVersionFilterWire.optional(),
8667
+ })
8668
+ .describe('A plan key and an optional version constraint for matching credit grants.');
8531
8669
  export const updateCreditGrantExternalSettlementRequestWire = z
8532
8670
  .strictObject({
8533
8671
  status: creditPurchasePaymentSettlementStatusWire,
8534
8672
  })
8535
8673
  .describe('Request body for updating the external payment settlement status of a credit grant.');
8674
+ export const creditGrantPlanFilterWire = z
8675
+ .strictObject({
8676
+ key: resourceKeyWire,
8677
+ version: versionFilterWire.optional(),
8678
+ })
8679
+ .describe('A plan key and an optional version constraint for matching credit grants.');
8536
8680
  export const listCreditGrantsParamsFilterWire = z
8537
8681
  .strictObject({
8538
8682
  status: creditGrantStatusWire.optional(),
@@ -9672,6 +9816,30 @@ export const subscriptionEditAddPhaseWire = z
9672
9816
  phase: subscriptionPhaseCreateWire,
9673
9817
  })
9674
9818
  .describe('Add a new phase to the subscription. The phase is created without items; use add-item operations to populate it.');
9819
+ export const createCreditGrantFiltersWire = z
9820
+ .strictObject({
9821
+ features: z
9822
+ .array(resourceKeyWire)
9823
+ .optional()
9824
+ .describe('Limit the credit grant to specific features. If no features are specified, the credit grant can be used for any feature.'),
9825
+ plans: z
9826
+ .array(createCreditGrantPlanFilterWire)
9827
+ .optional()
9828
+ .describe('Limit credits to charges from these plans. Entries are alternatives; when features are also specified, both dimensions must match. Omission or an empty list leaves plans unrestricted.'),
9829
+ })
9830
+ .describe('Filters for the credit grant.');
9831
+ export const creditGrantFiltersWire = z
9832
+ .strictObject({
9833
+ features: z
9834
+ .array(resourceKeyWire)
9835
+ .optional()
9836
+ .describe('Limit the credit grant to specific features. If no features are specified, the credit grant can be used for any feature.'),
9837
+ plans: z
9838
+ .array(creditGrantPlanFilterWire)
9839
+ .optional()
9840
+ .describe('Limit credits to charges from these plans. Entries are alternatives; when features are also specified, both dimensions must match. Omission or an empty list leaves plans unrestricted.'),
9841
+ })
9842
+ .describe('Filters for the credit grant.');
9675
9843
  export const subscriptionBaseWire = z
9676
9844
  .strictObject({
9677
9845
  id: ulidWire,
@@ -11860,6 +12028,10 @@ export const resetCustomerEntitlementUsagePathParamsWire = z.object({
11860
12028
  entitlementId: ulidWire,
11861
12029
  });
11862
12030
  export const resetCustomerEntitlementUsageBodyWire = resetCustomerEntitlementUsageRequestWire;
12031
+ export const deleteCustomerEntitlementPathParamsWire = z.object({
12032
+ customerId: ulidWire,
12033
+ entitlementId: ulidWire,
12034
+ });
11863
12035
  export const createCreditGrantPathParamsWire = z.object({
11864
12036
  customerId: ulidWire,
11865
12037
  });
@@ -147,6 +147,28 @@ export interface AppStripeCreateCustomerPortalSessionOptions {
147
147
  * "mesh", "kic", or "\_".
148
148
  */
149
149
  export type CreateLabels = Record<string, string>;
150
+ /** An integer version comparison. Exactly one operator must be provided. */
151
+ export interface CreateVersionFilter {
152
+ /** Match this exact version. */
153
+ eq?: number;
154
+ /** Match one of these versions. */
155
+ in?: number[];
156
+ /** Match this version and later versions. */
157
+ gte?: number;
158
+ /** Match this version and earlier versions. */
159
+ lte?: number;
160
+ }
161
+ /** An integer version comparison. Exactly one operator must be provided. */
162
+ export interface VersionFilter {
163
+ /** Match this exact version. */
164
+ eq?: number;
165
+ /** Match one of these versions. */
166
+ in?: number[];
167
+ /** Match this version and later versions. */
168
+ gte?: number;
169
+ /** Match this version and earlier versions. */
170
+ lte?: number;
171
+ }
150
172
  /** Free price. */
151
173
  export interface PriceFree {
152
174
  /** The type of the price. */
@@ -1454,22 +1476,6 @@ export interface NotImplemented extends BaseError {
1454
1476
  /** Not Available. */
1455
1477
  export interface NotAvailable extends BaseError {
1456
1478
  }
1457
- /** Filters for the credit grant. */
1458
- export interface CreateCreditGrantFilters {
1459
- /**
1460
- * Limit the credit grant to specific features. If no features are specified, the
1461
- * credit grant can be used for any feature.
1462
- */
1463
- features?: string[];
1464
- }
1465
- /** Filters for the credit grant. */
1466
- export interface CreditGrantFilters {
1467
- /**
1468
- * Limit the credit grant to specific features. If no features are specified, the
1469
- * credit grant can be used for any feature.
1470
- */
1471
- features?: string[];
1472
- }
1473
1479
  /**
1474
1480
  * A reference to the plan a subscription was created from, pinned to an exact
1475
1481
  * revision.
@@ -1919,6 +1925,13 @@ export interface ListPlansParamsFilter {
1919
1925
  status?: StringFieldFilterExact;
1920
1926
  currency?: StringFieldFilterExact;
1921
1927
  }
1928
+ /** A plan key and an optional version constraint for matching credit grants. */
1929
+ export interface CreateCreditGrantPlanFilter {
1930
+ /** The plan key in the customer's namespace. */
1931
+ key: string;
1932
+ /** Omission matches all versions, including future versions. */
1933
+ version?: CreateVersionFilter;
1934
+ }
1922
1935
  /**
1923
1936
  * Request body for updating the external payment settlement status of a credit
1924
1937
  * grant.
@@ -1927,6 +1940,13 @@ export interface UpdateCreditGrantExternalSettlementRequest {
1927
1940
  /** The new payment settlement status. */
1928
1941
  status: 'pending' | 'authorized' | 'settled';
1929
1942
  }
1943
+ /** A plan key and an optional version constraint for matching credit grants. */
1944
+ export interface CreditGrantPlanFilter {
1945
+ /** The plan key in the customer's namespace. */
1946
+ key: string;
1947
+ /** Omission matches all versions, including future versions. */
1948
+ version?: VersionFilter;
1949
+ }
1930
1950
  /** Filter options for listing credit grants. */
1931
1951
  export interface ListCreditGrantsParamsFilter {
1932
1952
  /** Filter credit grants by status. */
@@ -3496,6 +3516,34 @@ export interface SubscriptionEditAddPhase {
3496
3516
  /** The phase to add. */
3497
3517
  phase: SubscriptionPhaseCreate;
3498
3518
  }
3519
+ /** Filters for the credit grant. */
3520
+ export interface CreateCreditGrantFilters {
3521
+ /**
3522
+ * Limit the credit grant to specific features. If no features are specified, the
3523
+ * credit grant can be used for any feature.
3524
+ */
3525
+ features?: string[];
3526
+ /**
3527
+ * Limit credits to charges from these plans. Entries are alternatives; when
3528
+ * features are also specified, both dimensions must match. Omission or an empty
3529
+ * list leaves plans unrestricted.
3530
+ */
3531
+ plans?: CreateCreditGrantPlanFilter[];
3532
+ }
3533
+ /** Filters for the credit grant. */
3534
+ export interface CreditGrantFilters {
3535
+ /**
3536
+ * Limit the credit grant to specific features. If no features are specified, the
3537
+ * credit grant can be used for any feature.
3538
+ */
3539
+ features?: string[];
3540
+ /**
3541
+ * Limit credits to charges from these plans. Entries are alternatives; when
3542
+ * features are also specified, both dimensions must match. Omission or an empty
3543
+ * list leaves plans unrestricted.
3544
+ */
3545
+ plans?: CreditGrantPlanFilter[];
3546
+ }
3499
3547
  /** Subscription fields without phases or the current billing period. */
3500
3548
  export interface SubscriptionBase {
3501
3549
  id: string;
@@ -1,6 +1,6 @@
1
1
  import { type Client } from '../core.js';
2
2
  import { type RequestOptions } from '../lib/types.js';
3
- import type { CreateCustomerEntitlementRequest, CreateCustomerEntitlementResponse, GetCustomerEntitlementHistoryRequest, GetCustomerEntitlementHistoryResponse, GetCustomerEntitlementRequest, GetCustomerEntitlementResponse, ListCustomerEntitlementsRequest, ListCustomerEntitlementsResponse, ResetCustomerEntitlementUsageRequest, ResetCustomerEntitlementUsageResponse, VoidCreditGrantRequest, VoidCreditGrantResponse, ListCustomerChargesRequest, ListCustomerChargesResponse, CreateCustomerChargesRequest, CreateCustomerChargesResponse } from '../models/operations/customers.js';
3
+ import type { CreateCustomerEntitlementRequest, CreateCustomerEntitlementResponse, GetCustomerEntitlementHistoryRequest, GetCustomerEntitlementHistoryResponse, GetCustomerEntitlementRequest, GetCustomerEntitlementResponse, ListCustomerEntitlementsRequest, ListCustomerEntitlementsResponse, ResetCustomerEntitlementUsageRequest, ResetCustomerEntitlementUsageResponse, DeleteCustomerEntitlementRequest, DeleteCustomerEntitlementResponse, VoidCreditGrantRequest, VoidCreditGrantResponse, ListCustomerChargesRequest, ListCustomerChargesResponse, CreateCustomerChargesRequest, CreateCustomerChargesResponse } from '../models/operations/customers.js';
4
4
  import type { GetCustomerEntitlementAccessRequest, GetCustomerEntitlementAccessResponse } from '../models/operations/entitlements.js';
5
5
  import type { UnscheduleSubscriptionRequest, UnscheduleSubscriptionResponse, RestoreSubscriptionRequest, RestoreSubscriptionResponse, MigrateSubscriptionRequest, MigrateSubscriptionResponse, CreateSubscriptionAddonRequest, CreateSubscriptionAddonResponse, UpdateSubscriptionAddonRequest, UpdateSubscriptionAddonResponse } from '../models/operations/subscriptions.js';
6
6
  import type { UninstallAppRequest, UninstallAppResponse, UpdateAppRequest, UpdateAppResponse, ListAppCatalogRequest, ListAppCatalogResponse, GetAppCatalogItemRequest, GetAppCatalogItemResponse, InstallAppRequest, InstallAppResponse } from '../models/operations/apps.js';
@@ -120,6 +120,20 @@ export declare class InternalCustomersEntitlements {
120
120
  * POST /openmeter/customers/{customerId}/entitlements/{entitlementId}/reset
121
121
  */
122
122
  resetUsage(request: ResetCustomerEntitlementUsageRequest, options?: RequestOptions): Promise<ResetCustomerEntitlementUsageResponse>;
123
+ /**
124
+ * Delete customer entitlement
125
+ *
126
+ * Deletes the entitlement and revokes access to its feature. A customer can hold
127
+ * only one active entitlement per feature, so migrating a feature requires
128
+ * deleting the previous entitlement first.
129
+ *
130
+ * Deletion sets the `deleted_at` timestamp instead of removing history. Access and
131
+ * status queries for earlier points in time still treat the entitlement as active,
132
+ * so access changes are never retroactive.
133
+ *
134
+ * DELETE /openmeter/customers/{customerId}/entitlements/{entitlementId}
135
+ */
136
+ delete(request: DeleteCustomerEntitlementRequest, options?: RequestOptions): Promise<DeleteCustomerEntitlementResponse>;
123
137
  }
124
138
  export declare class InternalCustomersCredits {
125
139
  private readonly _client;
@@ -1,7 +1,7 @@
1
1
  // Code generated by @openmeter/typespec-typescript. DO NOT EDIT.
2
2
  import { unwrap } from '../lib/types.js';
3
3
  import { paginatePages } from '../lib/paginate.js';
4
- import { createCustomerEntitlement, getCustomerEntitlementHistory, getCustomerEntitlement, listCustomerEntitlements, resetCustomerEntitlementUsage, voidCreditGrant, listCustomerCharges, createCustomerCharges, } from '../funcs/customers.js';
4
+ import { createCustomerEntitlement, getCustomerEntitlementHistory, getCustomerEntitlement, listCustomerEntitlements, resetCustomerEntitlementUsage, deleteCustomerEntitlement, voidCreditGrant, listCustomerCharges, createCustomerCharges, } from '../funcs/customers.js';
5
5
  import { getCustomerEntitlementAccess } from '../funcs/entitlements.js';
6
6
  import { unscheduleSubscription, restoreSubscription, migrateSubscription, createSubscriptionAddon, updateSubscriptionAddon, } from '../funcs/subscriptions.js';
7
7
  import { uninstallApp, updateApp, listAppCatalog, getAppCatalogItem, installApp, } from '../funcs/apps.js';
@@ -162,6 +162,22 @@ export class InternalCustomersEntitlements {
162
162
  async resetUsage(request, options) {
163
163
  return unwrap(await resetCustomerEntitlementUsage(this._client, request, options));
164
164
  }
165
+ /**
166
+ * Delete customer entitlement
167
+ *
168
+ * Deletes the entitlement and revokes access to its feature. A customer can hold
169
+ * only one active entitlement per feature, so migrating a feature requires
170
+ * deleting the previous entitlement first.
171
+ *
172
+ * Deletion sets the `deleted_at` timestamp instead of removing history. Access and
173
+ * status queries for earlier points in time still treat the entitlement as active,
174
+ * so access changes are never retroactive.
175
+ *
176
+ * DELETE /openmeter/customers/{customerId}/entitlements/{entitlementId}
177
+ */
178
+ async delete(request, options) {
179
+ return unwrap(await deleteCustomerEntitlement(this._client, request, options));
180
+ }
165
181
  }
166
182
  export class InternalCustomersCredits {
167
183
  _client;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openmeter/client",
3
- "version": "1.0.0-beta-3cce18aa2b0e",
3
+ "version": "1.0.0-beta-56dac5f2b68e",
4
4
  "description": "Official TypeScript SDK for the OpenMeter API — usage metering and billing",
5
5
  "keywords": [
6
6
  "openmeter",