@openmeter/client 1.0.0-beta-e67013138e53 → 1.0.0-beta-441a124e06f8

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/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-e67013138e53";
1
+ export declare const SDK_VERSION = "1.0.0-beta-441a124e06f8";
@@ -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-e67013138e53';
5
+ export const SDK_VERSION = '1.0.0-beta-441a124e06f8';
@@ -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>;
@@ -18802,6 +18877,15 @@ export declare const createCreditGrantBody: z.ZodObject<{
18802
18877
  }, z.core.$strip>>;
18803
18878
  filters: z.ZodOptional<z.ZodObject<{
18804
18879
  features: z.ZodOptional<z.ZodArray<z.ZodString>>;
18880
+ plans: z.ZodOptional<z.ZodArray<z.ZodObject<{
18881
+ key: z.ZodString;
18882
+ version: z.ZodOptional<z.ZodObject<{
18883
+ eq: z.ZodOptional<z.ZodNumber>;
18884
+ in: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
18885
+ gte: z.ZodOptional<z.ZodNumber>;
18886
+ lte: z.ZodOptional<z.ZodNumber>;
18887
+ }, z.core.$strip>>;
18888
+ }, z.core.$strip>>>;
18805
18889
  }, z.core.$strip>>;
18806
18890
  priority: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
18807
18891
  effectiveAt: z.ZodOptional<z.ZodDate>;
@@ -18859,6 +18943,15 @@ export declare const createCreditGrantResponse: z.ZodObject<{
18859
18943
  }, z.core.$strip>>;
18860
18944
  filters: z.ZodOptional<z.ZodObject<{
18861
18945
  features: z.ZodOptional<z.ZodArray<z.ZodString>>;
18946
+ plans: z.ZodOptional<z.ZodArray<z.ZodObject<{
18947
+ key: z.ZodString;
18948
+ version: z.ZodOptional<z.ZodObject<{
18949
+ eq: z.ZodOptional<z.ZodNumber>;
18950
+ in: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
18951
+ gte: z.ZodOptional<z.ZodNumber>;
18952
+ lte: z.ZodOptional<z.ZodNumber>;
18953
+ }, z.core.$strip>>;
18954
+ }, z.core.$strip>>>;
18862
18955
  }, z.core.$strip>>;
18863
18956
  priority: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
18864
18957
  effectiveAt: z.ZodOptional<z.ZodDate>;
@@ -18938,6 +19031,15 @@ export declare const getCreditGrantResponse: z.ZodObject<{
18938
19031
  }, z.core.$strip>>;
18939
19032
  filters: z.ZodOptional<z.ZodObject<{
18940
19033
  features: z.ZodOptional<z.ZodArray<z.ZodString>>;
19034
+ plans: z.ZodOptional<z.ZodArray<z.ZodObject<{
19035
+ key: z.ZodString;
19036
+ version: z.ZodOptional<z.ZodObject<{
19037
+ eq: z.ZodOptional<z.ZodNumber>;
19038
+ in: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
19039
+ gte: z.ZodOptional<z.ZodNumber>;
19040
+ lte: z.ZodOptional<z.ZodNumber>;
19041
+ }, z.core.$strip>>;
19042
+ }, z.core.$strip>>>;
18941
19043
  }, z.core.$strip>>;
18942
19044
  priority: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
18943
19045
  effectiveAt: z.ZodOptional<z.ZodDate>;
@@ -19044,6 +19146,15 @@ export declare const listCreditGrantsResponse: z.ZodObject<{
19044
19146
  }, z.core.$strip>>;
19045
19147
  filters: z.ZodOptional<z.ZodObject<{
19046
19148
  features: z.ZodOptional<z.ZodArray<z.ZodString>>;
19149
+ plans: z.ZodOptional<z.ZodArray<z.ZodObject<{
19150
+ key: z.ZodString;
19151
+ version: z.ZodOptional<z.ZodObject<{
19152
+ eq: z.ZodOptional<z.ZodNumber>;
19153
+ in: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
19154
+ gte: z.ZodOptional<z.ZodNumber>;
19155
+ lte: z.ZodOptional<z.ZodNumber>;
19156
+ }, z.core.$strip>>;
19157
+ }, z.core.$strip>>>;
19047
19158
  }, z.core.$strip>>;
19048
19159
  priority: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
19049
19160
  effectiveAt: z.ZodOptional<z.ZodDate>;
@@ -19188,6 +19299,15 @@ export declare const voidCreditGrantResponse: z.ZodObject<{
19188
19299
  }, z.core.$strip>>;
19189
19300
  filters: z.ZodOptional<z.ZodObject<{
19190
19301
  features: z.ZodOptional<z.ZodArray<z.ZodString>>;
19302
+ plans: z.ZodOptional<z.ZodArray<z.ZodObject<{
19303
+ key: z.ZodString;
19304
+ version: z.ZodOptional<z.ZodObject<{
19305
+ eq: z.ZodOptional<z.ZodNumber>;
19306
+ in: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
19307
+ gte: z.ZodOptional<z.ZodNumber>;
19308
+ lte: z.ZodOptional<z.ZodNumber>;
19309
+ }, z.core.$strip>>;
19310
+ }, z.core.$strip>>>;
19191
19311
  }, z.core.$strip>>;
19192
19312
  priority: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
19193
19313
  effectiveAt: z.ZodOptional<z.ZodDate>;
@@ -19274,6 +19394,15 @@ export declare const updateCreditGrantExternalSettlementResponse: z.ZodObject<{
19274
19394
  }, z.core.$strip>>;
19275
19395
  filters: z.ZodOptional<z.ZodObject<{
19276
19396
  features: z.ZodOptional<z.ZodArray<z.ZodString>>;
19397
+ plans: z.ZodOptional<z.ZodArray<z.ZodObject<{
19398
+ key: z.ZodString;
19399
+ version: z.ZodOptional<z.ZodObject<{
19400
+ eq: z.ZodOptional<z.ZodNumber>;
19401
+ in: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
19402
+ gte: z.ZodOptional<z.ZodNumber>;
19403
+ lte: z.ZodOptional<z.ZodNumber>;
19404
+ }, z.core.$strip>>;
19405
+ }, z.core.$strip>>>;
19277
19406
  }, z.core.$strip>>;
19278
19407
  priority: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
19279
19408
  effectiveAt: z.ZodOptional<z.ZodDate>;
@@ -33809,11 +33938,23 @@ export declare const taxBehaviorWire: z.ZodEnum<{
33809
33938
  exclusive: "exclusive";
33810
33939
  inclusive: "inclusive";
33811
33940
  }>;
33941
+ export declare const createVersionFilterWire: z.ZodObject<{
33942
+ eq: z.ZodOptional<z.ZodNumber>;
33943
+ in: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
33944
+ gte: z.ZodOptional<z.ZodNumber>;
33945
+ lte: z.ZodOptional<z.ZodNumber>;
33946
+ }, z.core.$strict>;
33812
33947
  export declare const creditPurchasePaymentSettlementStatusWire: z.ZodEnum<{
33813
33948
  authorized: "authorized";
33814
33949
  pending: "pending";
33815
33950
  settled: "settled";
33816
33951
  }>;
33952
+ export declare const versionFilterWire: z.ZodObject<{
33953
+ eq: z.ZodOptional<z.ZodNumber>;
33954
+ in: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
33955
+ gte: z.ZodOptional<z.ZodNumber>;
33956
+ lte: z.ZodOptional<z.ZodNumber>;
33957
+ }, z.core.$strict>;
33817
33958
  export declare const creditGrantStatusWire: z.ZodEnum<{
33818
33959
  active: "active";
33819
33960
  expired: "expired";
@@ -34819,12 +34960,6 @@ export declare const notAvailableWire: z.ZodIntersection<z.ZodObject<{
34819
34960
  detail: z.ZodString;
34820
34961
  instance: z.ZodString;
34821
34962
  }, 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
34963
  export declare const subscriptionPlanReferenceWire: z.ZodObject<{
34829
34964
  id: z.ZodString;
34830
34965
  key: z.ZodString;
@@ -35078,6 +35213,15 @@ export declare const listPlansParamsFilterWire: z.ZodObject<{
35078
35213
  neq: z.ZodOptional<z.ZodString>;
35079
35214
  }, z.core.$strict>]>>;
35080
35215
  }, z.core.$strict>;
35216
+ export declare const createCreditGrantPlanFilterWire: z.ZodObject<{
35217
+ key: z.ZodString;
35218
+ version: z.ZodOptional<z.ZodObject<{
35219
+ eq: z.ZodOptional<z.ZodNumber>;
35220
+ in: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
35221
+ gte: z.ZodOptional<z.ZodNumber>;
35222
+ lte: z.ZodOptional<z.ZodNumber>;
35223
+ }, z.core.$strict>>;
35224
+ }, z.core.$strict>;
35081
35225
  export declare const updateCreditGrantExternalSettlementRequestWire: z.ZodObject<{
35082
35226
  status: z.ZodEnum<{
35083
35227
  authorized: "authorized";
@@ -35085,6 +35229,15 @@ export declare const updateCreditGrantExternalSettlementRequestWire: z.ZodObject
35085
35229
  settled: "settled";
35086
35230
  }>;
35087
35231
  }, z.core.$strict>;
35232
+ export declare const creditGrantPlanFilterWire: z.ZodObject<{
35233
+ key: z.ZodString;
35234
+ version: z.ZodOptional<z.ZodObject<{
35235
+ eq: z.ZodOptional<z.ZodNumber>;
35236
+ in: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
35237
+ gte: z.ZodOptional<z.ZodNumber>;
35238
+ lte: z.ZodOptional<z.ZodNumber>;
35239
+ }, z.core.$strict>>;
35240
+ }, z.core.$strict>;
35088
35241
  export declare const listCreditGrantsParamsFilterWire: z.ZodObject<{
35089
35242
  status: z.ZodOptional<z.ZodEnum<{
35090
35243
  active: "active";
@@ -36915,6 +37068,30 @@ export declare const subscriptionEditAddPhaseWire: z.ZodObject<{
36915
37068
  duration: z.ZodOptional<z.ZodString>;
36916
37069
  }, z.core.$strict>;
36917
37070
  }, z.core.$strict>;
37071
+ export declare const createCreditGrantFiltersWire: z.ZodObject<{
37072
+ features: z.ZodOptional<z.ZodArray<z.ZodString>>;
37073
+ plans: z.ZodOptional<z.ZodArray<z.ZodObject<{
37074
+ key: z.ZodString;
37075
+ version: z.ZodOptional<z.ZodObject<{
37076
+ eq: z.ZodOptional<z.ZodNumber>;
37077
+ in: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
37078
+ gte: z.ZodOptional<z.ZodNumber>;
37079
+ lte: z.ZodOptional<z.ZodNumber>;
37080
+ }, z.core.$strict>>;
37081
+ }, z.core.$strict>>>;
37082
+ }, z.core.$strict>;
37083
+ export declare const creditGrantFiltersWire: z.ZodObject<{
37084
+ features: z.ZodOptional<z.ZodArray<z.ZodString>>;
37085
+ plans: z.ZodOptional<z.ZodArray<z.ZodObject<{
37086
+ key: z.ZodString;
37087
+ version: z.ZodOptional<z.ZodObject<{
37088
+ eq: z.ZodOptional<z.ZodNumber>;
37089
+ in: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
37090
+ gte: z.ZodOptional<z.ZodNumber>;
37091
+ lte: z.ZodOptional<z.ZodNumber>;
37092
+ }, z.core.$strict>>;
37093
+ }, z.core.$strict>>>;
37094
+ }, z.core.$strict>;
36918
37095
  export declare const subscriptionBaseWire: z.ZodObject<{
36919
37096
  id: z.ZodString;
36920
37097
  labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -38954,6 +39131,15 @@ export declare const createCreditGrantRequestWire: z.ZodObject<{
38954
39131
  }, z.core.$strict>>;
38955
39132
  filters: z.ZodOptional<z.ZodObject<{
38956
39133
  features: z.ZodOptional<z.ZodArray<z.ZodString>>;
39134
+ plans: z.ZodOptional<z.ZodArray<z.ZodObject<{
39135
+ key: z.ZodString;
39136
+ version: z.ZodOptional<z.ZodObject<{
39137
+ eq: z.ZodOptional<z.ZodNumber>;
39138
+ in: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
39139
+ gte: z.ZodOptional<z.ZodNumber>;
39140
+ lte: z.ZodOptional<z.ZodNumber>;
39141
+ }, z.core.$strict>>;
39142
+ }, z.core.$strict>>>;
38957
39143
  }, z.core.$strict>>;
38958
39144
  priority: z.ZodOptional<z.ZodNumber>;
38959
39145
  effective_at: z.ZodOptional<z.ZodString>;
@@ -39011,6 +39197,15 @@ export declare const creditGrantWire: z.ZodObject<{
39011
39197
  }, z.core.$strict>>;
39012
39198
  filters: z.ZodOptional<z.ZodObject<{
39013
39199
  features: z.ZodOptional<z.ZodArray<z.ZodString>>;
39200
+ plans: z.ZodOptional<z.ZodArray<z.ZodObject<{
39201
+ key: z.ZodString;
39202
+ version: z.ZodOptional<z.ZodObject<{
39203
+ eq: z.ZodOptional<z.ZodNumber>;
39204
+ in: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
39205
+ gte: z.ZodOptional<z.ZodNumber>;
39206
+ lte: z.ZodOptional<z.ZodNumber>;
39207
+ }, z.core.$strict>>;
39208
+ }, z.core.$strict>>>;
39014
39209
  }, z.core.$strict>>;
39015
39210
  priority: z.ZodOptional<z.ZodNumber>;
39016
39211
  effective_at: z.ZodOptional<z.ZodString>;
@@ -40501,6 +40696,15 @@ export declare const creditGrantPagePaginatedResponseWire: z.ZodObject<{
40501
40696
  }, z.core.$strict>>;
40502
40697
  filters: z.ZodOptional<z.ZodObject<{
40503
40698
  features: z.ZodOptional<z.ZodArray<z.ZodString>>;
40699
+ plans: z.ZodOptional<z.ZodArray<z.ZodObject<{
40700
+ key: z.ZodString;
40701
+ version: z.ZodOptional<z.ZodObject<{
40702
+ eq: z.ZodOptional<z.ZodNumber>;
40703
+ in: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
40704
+ gte: z.ZodOptional<z.ZodNumber>;
40705
+ lte: z.ZodOptional<z.ZodNumber>;
40706
+ }, z.core.$strict>>;
40707
+ }, z.core.$strict>>>;
40504
40708
  }, z.core.$strict>>;
40505
40709
  priority: z.ZodOptional<z.ZodNumber>;
40506
40710
  effective_at: z.ZodOptional<z.ZodString>;
@@ -52402,6 +52606,15 @@ export declare const createCreditGrantBodyWire: z.ZodObject<{
52402
52606
  }, z.core.$strict>>;
52403
52607
  filters: z.ZodOptional<z.ZodObject<{
52404
52608
  features: z.ZodOptional<z.ZodArray<z.ZodString>>;
52609
+ plans: z.ZodOptional<z.ZodArray<z.ZodObject<{
52610
+ key: z.ZodString;
52611
+ version: z.ZodOptional<z.ZodObject<{
52612
+ eq: z.ZodOptional<z.ZodNumber>;
52613
+ in: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
52614
+ gte: z.ZodOptional<z.ZodNumber>;
52615
+ lte: z.ZodOptional<z.ZodNumber>;
52616
+ }, z.core.$strict>>;
52617
+ }, z.core.$strict>>>;
52405
52618
  }, z.core.$strict>>;
52406
52619
  priority: z.ZodOptional<z.ZodNumber>;
52407
52620
  effective_at: z.ZodOptional<z.ZodString>;
@@ -52459,6 +52672,15 @@ export declare const createCreditGrantResponseWire: z.ZodObject<{
52459
52672
  }, z.core.$strict>>;
52460
52673
  filters: z.ZodOptional<z.ZodObject<{
52461
52674
  features: z.ZodOptional<z.ZodArray<z.ZodString>>;
52675
+ plans: z.ZodOptional<z.ZodArray<z.ZodObject<{
52676
+ key: z.ZodString;
52677
+ version: z.ZodOptional<z.ZodObject<{
52678
+ eq: z.ZodOptional<z.ZodNumber>;
52679
+ in: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
52680
+ gte: z.ZodOptional<z.ZodNumber>;
52681
+ lte: z.ZodOptional<z.ZodNumber>;
52682
+ }, z.core.$strict>>;
52683
+ }, z.core.$strict>>>;
52462
52684
  }, z.core.$strict>>;
52463
52685
  priority: z.ZodOptional<z.ZodNumber>;
52464
52686
  effective_at: z.ZodOptional<z.ZodString>;
@@ -52538,6 +52760,15 @@ export declare const getCreditGrantResponseWire: z.ZodObject<{
52538
52760
  }, z.core.$strict>>;
52539
52761
  filters: z.ZodOptional<z.ZodObject<{
52540
52762
  features: z.ZodOptional<z.ZodArray<z.ZodString>>;
52763
+ plans: z.ZodOptional<z.ZodArray<z.ZodObject<{
52764
+ key: z.ZodString;
52765
+ version: z.ZodOptional<z.ZodObject<{
52766
+ eq: z.ZodOptional<z.ZodNumber>;
52767
+ in: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
52768
+ gte: z.ZodOptional<z.ZodNumber>;
52769
+ lte: z.ZodOptional<z.ZodNumber>;
52770
+ }, z.core.$strict>>;
52771
+ }, z.core.$strict>>>;
52541
52772
  }, z.core.$strict>>;
52542
52773
  priority: z.ZodOptional<z.ZodNumber>;
52543
52774
  effective_at: z.ZodOptional<z.ZodString>;
@@ -52644,6 +52875,15 @@ export declare const listCreditGrantsResponseWire: z.ZodObject<{
52644
52875
  }, z.core.$strict>>;
52645
52876
  filters: z.ZodOptional<z.ZodObject<{
52646
52877
  features: z.ZodOptional<z.ZodArray<z.ZodString>>;
52878
+ plans: z.ZodOptional<z.ZodArray<z.ZodObject<{
52879
+ key: z.ZodString;
52880
+ version: z.ZodOptional<z.ZodObject<{
52881
+ eq: z.ZodOptional<z.ZodNumber>;
52882
+ in: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
52883
+ gte: z.ZodOptional<z.ZodNumber>;
52884
+ lte: z.ZodOptional<z.ZodNumber>;
52885
+ }, z.core.$strict>>;
52886
+ }, z.core.$strict>>>;
52647
52887
  }, z.core.$strict>>;
52648
52888
  priority: z.ZodOptional<z.ZodNumber>;
52649
52889
  effective_at: z.ZodOptional<z.ZodString>;
@@ -52788,6 +53028,15 @@ export declare const voidCreditGrantResponseWire: z.ZodObject<{
52788
53028
  }, z.core.$strict>>;
52789
53029
  filters: z.ZodOptional<z.ZodObject<{
52790
53030
  features: z.ZodOptional<z.ZodArray<z.ZodString>>;
53031
+ plans: z.ZodOptional<z.ZodArray<z.ZodObject<{
53032
+ key: z.ZodString;
53033
+ version: z.ZodOptional<z.ZodObject<{
53034
+ eq: z.ZodOptional<z.ZodNumber>;
53035
+ in: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
53036
+ gte: z.ZodOptional<z.ZodNumber>;
53037
+ lte: z.ZodOptional<z.ZodNumber>;
53038
+ }, z.core.$strict>>;
53039
+ }, z.core.$strict>>>;
52791
53040
  }, z.core.$strict>>;
52792
53041
  priority: z.ZodOptional<z.ZodNumber>;
52793
53042
  effective_at: z.ZodOptional<z.ZodString>;
@@ -52874,6 +53123,15 @@ export declare const updateCreditGrantExternalSettlementResponseWire: z.ZodObjec
52874
53123
  }, z.core.$strict>>;
52875
53124
  filters: z.ZodOptional<z.ZodObject<{
52876
53125
  features: z.ZodOptional<z.ZodArray<z.ZodString>>;
53126
+ plans: z.ZodOptional<z.ZodArray<z.ZodObject<{
53127
+ key: z.ZodString;
53128
+ version: z.ZodOptional<z.ZodObject<{
53129
+ eq: z.ZodOptional<z.ZodNumber>;
53130
+ in: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
53131
+ gte: z.ZodOptional<z.ZodNumber>;
53132
+ lte: z.ZodOptional<z.ZodNumber>;
53133
+ }, z.core.$strict>>;
53134
+ }, z.core.$strict>>>;
52877
53135
  }, z.core.$strict>>;
52878
53136
  priority: z.ZodOptional<z.ZodNumber>;
52879
53137
  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,
@@ -6688,9 +6770,71 @@ export const creditAvailabilityPolicyWire = z
6688
6770
  export const taxBehaviorWire = z
6689
6771
  .enum(['inclusive', 'exclusive'])
6690
6772
  .describe('Tax behavior. This enum is used to specify whether tax is included in the price or excluded from the price.');
6773
+ export const createVersionFilterWire = z
6774
+ .strictObject({
6775
+ eq: z
6776
+ .number()
6777
+ .int()
6778
+ .gte(1)
6779
+ .lte(2147483647)
6780
+ .optional()
6781
+ .describe('Match this exact version.'),
6782
+ in: z
6783
+ .array(z.number().int().gte(-2147483648).lte(2147483647))
6784
+ .min(1)
6785
+ .max(100)
6786
+ .optional()
6787
+ .describe('Match one of these versions.'),
6788
+ gte: z
6789
+ .number()
6790
+ .int()
6791
+ .gte(1)
6792
+ .lte(2147483647)
6793
+ .optional()
6794
+ .describe('Match this version and later versions.'),
6795
+ lte: z
6796
+ .number()
6797
+ .int()
6798
+ .gte(1)
6799
+ .lte(2147483647)
6800
+ .optional()
6801
+ .describe('Match this version and earlier versions.'),
6802
+ })
6803
+ .describe('An integer version comparison. Exactly one operator must be provided.');
6691
6804
  export const creditPurchasePaymentSettlementStatusWire = z
6692
6805
  .enum(['pending', 'authorized', 'settled'])
6693
6806
  .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.');
6807
+ export const versionFilterWire = z
6808
+ .strictObject({
6809
+ eq: z
6810
+ .number()
6811
+ .int()
6812
+ .gte(1)
6813
+ .lte(2147483647)
6814
+ .optional()
6815
+ .describe('Match this exact version.'),
6816
+ in: z
6817
+ .array(z.number().int().gte(-2147483648).lte(2147483647))
6818
+ .min(1)
6819
+ .max(100)
6820
+ .optional()
6821
+ .describe('Match one of these versions.'),
6822
+ gte: z
6823
+ .number()
6824
+ .int()
6825
+ .gte(1)
6826
+ .lte(2147483647)
6827
+ .optional()
6828
+ .describe('Match this version and later versions.'),
6829
+ lte: z
6830
+ .number()
6831
+ .int()
6832
+ .gte(1)
6833
+ .lte(2147483647)
6834
+ .optional()
6835
+ .describe('Match this version and earlier versions.'),
6836
+ })
6837
+ .describe('An integer version comparison. Exactly one operator must be provided.');
6694
6838
  export const creditGrantStatusWire = z
6695
6839
  .enum(['pending', 'active', 'expired', 'voided'])
6696
6840
  .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 +8299,6 @@ export const tooManyRequestsWire = baseErrorWire.describe('Too Many Requests.');
8155
8299
  export const internalWire = baseErrorWire.describe('Internal Server Error.');
8156
8300
  export const notImplementedWire = baseErrorWire.describe('Not Implemented.');
8157
8301
  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
8302
  export const subscriptionPlanReferenceWire = z
8175
8303
  .strictObject({
8176
8304
  id: ulidWire,
@@ -8528,11 +8656,23 @@ export const listPlansParamsFilterWire = z
8528
8656
  currency: stringFieldFilterExactWire.optional(),
8529
8657
  })
8530
8658
  .describe('Filter options for listing plans.');
8659
+ export const createCreditGrantPlanFilterWire = z
8660
+ .strictObject({
8661
+ key: resourceKeyWire,
8662
+ version: createVersionFilterWire.optional(),
8663
+ })
8664
+ .describe('A plan key and an optional version constraint for matching credit grants.');
8531
8665
  export const updateCreditGrantExternalSettlementRequestWire = z
8532
8666
  .strictObject({
8533
8667
  status: creditPurchasePaymentSettlementStatusWire,
8534
8668
  })
8535
8669
  .describe('Request body for updating the external payment settlement status of a credit grant.');
8670
+ export const creditGrantPlanFilterWire = z
8671
+ .strictObject({
8672
+ key: resourceKeyWire,
8673
+ version: versionFilterWire.optional(),
8674
+ })
8675
+ .describe('A plan key and an optional version constraint for matching credit grants.');
8536
8676
  export const listCreditGrantsParamsFilterWire = z
8537
8677
  .strictObject({
8538
8678
  status: creditGrantStatusWire.optional(),
@@ -9672,6 +9812,30 @@ export const subscriptionEditAddPhaseWire = z
9672
9812
  phase: subscriptionPhaseCreateWire,
9673
9813
  })
9674
9814
  .describe('Add a new phase to the subscription. The phase is created without items; use add-item operations to populate it.');
9815
+ export const createCreditGrantFiltersWire = z
9816
+ .strictObject({
9817
+ features: z
9818
+ .array(resourceKeyWire)
9819
+ .optional()
9820
+ .describe('Limit the credit grant to specific features. If no features are specified, the credit grant can be used for any feature.'),
9821
+ plans: z
9822
+ .array(createCreditGrantPlanFilterWire)
9823
+ .optional()
9824
+ .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.'),
9825
+ })
9826
+ .describe('Filters for the credit grant.');
9827
+ export const creditGrantFiltersWire = z
9828
+ .strictObject({
9829
+ features: z
9830
+ .array(resourceKeyWire)
9831
+ .optional()
9832
+ .describe('Limit the credit grant to specific features. If no features are specified, the credit grant can be used for any feature.'),
9833
+ plans: z
9834
+ .array(creditGrantPlanFilterWire)
9835
+ .optional()
9836
+ .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.'),
9837
+ })
9838
+ .describe('Filters for the credit grant.');
9675
9839
  export const subscriptionBaseWire = z
9676
9840
  .strictObject({
9677
9841
  id: ulidWire,
@@ -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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openmeter/client",
3
- "version": "1.0.0-beta-e67013138e53",
3
+ "version": "1.0.0-beta-441a124e06f8",
4
4
  "description": "Official TypeScript SDK for the OpenMeter API — usage metering and billing",
5
5
  "keywords": [
6
6
  "openmeter",