@openmeter/client 1.0.0-beta-1659b7d437ee → 1.0.0-beta-fffcde64547a

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
@@ -38,5 +38,5 @@ export type * from './models/operations/addons.js';
38
38
  export type * from './models/operations/planAddons.js';
39
39
  export type * from './models/operations/defaults.js';
40
40
  export type * from './models/operations/governance.js';
41
- export type { Labels, CursorPaginationQueryPage, SortQuery, IngestedEventValidationError, CursorMetaPage, BaseError, PageMeta, QueryFilterString, AppStripeCheckoutSessionCustomTextParams, AppStripeCreateCustomerPortalSessionOptions, CreateLabels, PriceFree, TaxConfigStripe, TaxConfigExternalInvoicing, FlatFeeDiscounts, WorkflowCollectionAlignmentSubscription, WorkflowInvoicingSettings, WorkflowPaymentChargeAutomaticallySettings, WorkflowPaymentSendInvoiceSettings, LlmCostProvider, LlmCostModel, ProductCatalogValidationError, GovernanceQueryRequestCustomers, GovernanceQueryRequestFeatures, QueryFilterInteger, QueryFilterFloat, QueryFilterBoolean, PagePaginationQuery, PublicLabels, SystemAccountAccessToken, PersonalAccessToken, KonnectAccessToken, UpdateMeterRequest, AppCustomerDataStripe, AppCustomerDataExternalInvoicing, ListCostBasesParamsFilter, PriceFlat, PriceUnit, CurrencyAmount, RateCardDiscounts, Totals, FeatureManualUnitCost, FeatureLlmUnitCostPricing, LlmCostModelPricing, SpendCommitments, QueryFilterNumeric, CursorPaginationQuery, ListMetersParamsFilter, ListLlmCostPricesParamsFilter, LabelsFieldFilter, CustomerReference, ProfileReference, CreateResourceReference, TaxCodeReference, CreditGrantInvoiceReference, BillingCustomerReference, SubscriptionReference, AddonReference, AppReference, CurrencyFiat, FeatureReference, Event, MeterQueryRow, AppStripeCreateCustomerPortalSessionResult, ClosedPeriod, CostBasis, CreateCostBasisRequest, FeatureCostQueryRow, Resource, ResourceImmutable, QueryFilterDateTime, CursorMeta, InvalidParameterStandard, InvalidParameterMinimumLength, InvalidParameterMaximumLength, InvalidParameterChoiceItem, InvalidParameterDependentItem, Unauthorized, Forbidden, NotFound, Gone, Conflict, PayloadTooLarge, UnsupportedMediaType, UnprocessableContent, TooManyRequests, Internal, NotImplemented, NotAvailable, CreateCreditGrantFilters, CreditGrantFilters, UpsertPlanAddonRequest, ResourceWithKey, CreateMeterRequest, Meter, PaginatedMeta, QueryFilterStringMapItem, CustomerKeyReference, CustomerUsageAttribution, BillingAddress, Address, AppStripeCreateCheckoutSessionCustomerUpdate, AppStripeCreateCheckoutSessionConsentCollectionPaymentMethodReuseAgreement, AppStripeCreateCheckoutSessionTaxIdCollection, AppStripeCreateCheckoutSessionResult, CustomerStripeCreateCustomerPortalSessionRequest, EntitlementAccessResult, CreateCreditGrantPurchase, RecurringPeriod, CreditGrantPurchase, UpdateCreditGrantExternalSettlementRequest, ListCreditGrantsParamsFilter, GetCreditBalanceParamsFilter, ListChargesParamsFilter, ListPlansParamsFilter, SubscriptionCreate, RateCardProrationConfiguration, Subscription, AppCatalogItem, TaxCodeAppMapping, PartyTaxIdentity, ListCurrenciesParamsFilter, CurrencyCustom, CreateCurrencyCustomRequest, GovernanceQueryRequest, GovernanceFeatureAccessReason, GovernanceQueryError, UnitConfig, AppCustomerData, UpsertAppCustomerDataRequest, CreditAdjustment, CreditBalance, CreateCreditAdjustmentRequest, ListCreditTransactionsParamsFilter, CreditTransaction, PriceTier, ChargeTotals, FeatureLlmUnitCost, LlmCostPrice, LlmCostOverrideCreate, ListCustomersParamsFilter, ListSubscriptionsParamsFilter, ListFeatureParamsFilter, ListAddonsParamsFilter, CreateCreditGrantTaxConfig, CreditGrantTaxConfig, TaxConfig, RateCardTaxConfig, OrganizationDefaultTaxCodes, UpdateOrganizationDefaultTaxCodesRequest, SubscriptionAddon, PlanAddon, CreatePlanAddonRequest, ProfileAppReferences, ListEventsParamsFilter, ResourceFilters, FieldFilters, IngestedEvent, MeterQueryResult, FeatureCostQueryResult, MeterPagePaginatedResponse, CostBasisPagePaginatedResponse, MeterQueryFilters, FeatureMeterReference, CreateCustomerRequest, Customer, UpsertCustomerRequest, PartyAddresses, AppStripeCreateCheckoutSessionConsentCollection, ListCustomerEntitlementAccessResponseData, WorkflowCollectionAlignmentAnchored, SubscriptionPagePaginatedResponse, SubscriptionChangeResponse, SubscriptionCancel, SubscriptionChange, AppStripe, AppSandbox, AppExternalInvoicing, CreateTaxCodeRequest, TaxCode, UpsertTaxCodeRequest, GovernanceFeatureAccess, InvoiceUsageQuantityDetail, CustomerData, UpsertCustomerBillingDataRequest, CreditBalances, CreditTransactionPaginatedResponse, PriceGraduated, PriceVolume, PricePagePaginatedResponse, CreateCreditGrantRequest, CreditGrant, WorkflowTaxSettings, SubscriptionAddonPagePaginatedResponse, PlanAddonPagePaginatedResponse, IngestedEventPaginatedResponse, InvalidParameters, MeterQueryRequest, CustomerPagePaginatedResponse, Party, AppStripeCreateCheckoutSessionRequestOptions, TaxCodePagePaginatedResponse, CurrencyPagePaginatedResponse, GovernanceQueryResult, Feature, CreateFeatureRequest, UpdateFeatureRequest, CreditGrantPagePaginatedResponse, BadRequest, CustomerStripeCreateCheckoutSessionRequest, WorkflowCollectionSettings, AppPagePaginatedResponse, ProfileApps, GovernanceQueryResponse, FlatFeeCharge, UsageBasedCharge, RateCard, FeaturePagePaginatedResponse, Workflow, PlanPhase, Addon, CreateAddonRequest, UpsertAddonRequest, Profile, CreateBillingProfileRequest, UpsertBillingProfileRequest, ChargePagePaginatedResponse, Plan, CreatePlanRequest, UpsertPlanRequest, AddonPagePaginatedResponse, ProfilePagePaginatedResponse, PlanPagePaginatedResponse, SortQueryInput, BaseErrorInput, WorkflowInvoicingSettingsInput, WorkflowPaymentSendInvoiceSettingsInput, EventInput, UnauthorizedInput, ForbiddenInput, NotFoundInput, GoneInput, ConflictInput, PayloadTooLargeInput, UnsupportedMediaTypeInput, UnprocessableContentInput, TooManyRequestsInput, InternalInput, NotImplementedInput, NotAvailableInput, AppStripeCreateCheckoutSessionCustomerUpdateInput, AppStripeCreateCheckoutSessionTaxIdCollectionInput, CreateCreditGrantPurchaseInput, CreditGrantPurchaseInput, SubscriptionCreateInput, SubscriptionInput, GovernanceQueryRequestInput, UnitConfigInput, IngestedEventInput, SubscriptionPagePaginatedResponseInput, SubscriptionChangeResponseInput, SubscriptionCancelInput, SubscriptionChangeInput, InvoiceUsageQuantityDetailInput, CreateCreditGrantRequestInput, CreditGrantInput, WorkflowTaxSettingsInput, IngestedEventPaginatedResponseInput, MeterQueryRequestInput, AppStripeCreateCheckoutSessionRequestOptionsInput, CreditGrantPagePaginatedResponseInput, BadRequestInput, CustomerStripeCreateCheckoutSessionRequestInput, WorkflowCollectionSettingsInput, RateCardInput, WorkflowInput, PlanPhaseInput, AddonInput, CreateAddonRequestInput, UpsertAddonRequestInput, ProfileInput, CreateBillingProfileRequestInput, UpsertBillingProfileRequestInput, PlanInput, CreatePlanRequestInput, UpsertPlanRequestInput, AddonPagePaginatedResponseInput, ProfilePagePaginatedResponseInput, PlanPagePaginatedResponseInput, } from './models/types.js';
41
+ export type { Labels, CursorPaginationQueryPage, SortQuery, IngestedEventValidationError, CursorMetaPage, BaseError, PageMeta, QueryFilterString, AppStripeCheckoutSessionCustomTextParams, AppStripeCreateCustomerPortalSessionOptions, CreateLabels, PriceFree, TaxConfigStripe, TaxConfigExternalInvoicing, FlatFeeDiscounts, WorkflowCollectionAlignmentSubscription, WorkflowInvoicingSettings, WorkflowPaymentChargeAutomaticallySettings, WorkflowPaymentSendInvoiceSettings, LlmCostProvider, LlmCostModel, RateCardStaticEntitlement, RateCardBooleanEntitlement, ProductCatalogValidationError, GovernanceQueryRequestCustomers, GovernanceQueryRequestFeatures, QueryFilterInteger, QueryFilterFloat, QueryFilterBoolean, PagePaginationQuery, PublicLabels, SystemAccountAccessToken, PersonalAccessToken, KonnectAccessToken, UpdateMeterRequest, AppCustomerDataStripe, AppCustomerDataExternalInvoicing, ListCostBasesParamsFilter, PriceFlat, PriceUnit, CurrencyAmount, RateCardDiscounts, Totals, FeatureManualUnitCost, FeatureLlmUnitCostPricing, LlmCostModelPricing, SpendCommitments, QueryFilterNumeric, CursorPaginationQuery, ListMetersParamsFilter, ListLlmCostPricesParamsFilter, LabelsFieldFilter, CustomerReference, ProfileReference, CreateResourceReference, TaxCodeReference, CreditGrantInvoiceReference, BillingCustomerReference, SubscriptionReference, AddonReference, AppReference, CurrencyFiat, FeatureReference, Event, MeterQueryRow, AppStripeCreateCustomerPortalSessionResult, ClosedPeriod, CostBasis, CreateCostBasisRequest, FeatureCostQueryRow, Resource, ResourceImmutable, QueryFilterDateTime, CursorMeta, InvalidParameterStandard, InvalidParameterMinimumLength, InvalidParameterMaximumLength, InvalidParameterChoiceItem, InvalidParameterDependentItem, Unauthorized, Forbidden, NotFound, Gone, Conflict, PayloadTooLarge, UnsupportedMediaType, UnprocessableContent, TooManyRequests, Internal, NotImplemented, NotAvailable, CreateCreditGrantFilters, CreditGrantFilters, UpsertPlanAddonRequest, ResourceWithKey, CreateMeterRequest, Meter, PaginatedMeta, QueryFilterStringMapItem, CustomerKeyReference, CustomerUsageAttribution, BillingAddress, Address, AppStripeCreateCheckoutSessionCustomerUpdate, AppStripeCreateCheckoutSessionConsentCollectionPaymentMethodReuseAgreement, AppStripeCreateCheckoutSessionTaxIdCollection, AppStripeCreateCheckoutSessionResult, CustomerStripeCreateCustomerPortalSessionRequest, EntitlementAccessResult, CreateCreditGrantPurchase, RecurringPeriod, RateCardMeteredEntitlement, CreditGrantPurchase, UpdateCreditGrantExternalSettlementRequest, ListCreditGrantsParamsFilter, GetCreditBalanceParamsFilter, ListChargesParamsFilter, ListPlansParamsFilter, SubscriptionCreate, RateCardProrationConfiguration, Subscription, AppCatalogItem, TaxCodeAppMapping, PartyTaxIdentity, ListCurrenciesParamsFilter, CurrencyCustom, CreateCurrencyCustomRequest, GovernanceQueryRequest, GovernanceFeatureAccessReason, GovernanceQueryError, UnitConfig, AppCustomerData, UpsertAppCustomerDataRequest, CreditAdjustment, CreditBalance, CreateCreditAdjustmentRequest, ListCreditTransactionsParamsFilter, CreditTransaction, PriceTier, ChargeTotals, FeatureLlmUnitCost, LlmCostPrice, LlmCostOverrideCreate, ListCustomersParamsFilter, ListSubscriptionsParamsFilter, ListFeatureParamsFilter, ListAddonsParamsFilter, CreateCreditGrantTaxConfig, CreditGrantTaxConfig, TaxConfig, RateCardTaxConfig, OrganizationDefaultTaxCodes, UpdateOrganizationDefaultTaxCodesRequest, SubscriptionAddon, PlanAddon, CreatePlanAddonRequest, ProfileAppReferences, ListEventsParamsFilter, ResourceFilters, FieldFilters, IngestedEvent, MeterQueryResult, FeatureCostQueryResult, MeterPagePaginatedResponse, CostBasisPagePaginatedResponse, MeterQueryFilters, FeatureMeterReference, CreateCustomerRequest, Customer, UpsertCustomerRequest, PartyAddresses, AppStripeCreateCheckoutSessionConsentCollection, ListCustomerEntitlementAccessResponseData, WorkflowCollectionAlignmentAnchored, SubscriptionPagePaginatedResponse, SubscriptionChangeResponse, SubscriptionCancel, SubscriptionChange, AppStripe, AppSandbox, AppExternalInvoicing, CreateTaxCodeRequest, TaxCode, UpsertTaxCodeRequest, GovernanceFeatureAccess, InvoiceUsageQuantityDetail, CustomerData, UpsertCustomerBillingDataRequest, CreditBalances, CreditTransactionPaginatedResponse, PriceGraduated, PriceVolume, PricePagePaginatedResponse, CreateCreditGrantRequest, CreditGrant, WorkflowTaxSettings, SubscriptionAddonPagePaginatedResponse, PlanAddonPagePaginatedResponse, IngestedEventPaginatedResponse, InvalidParameters, MeterQueryRequest, CustomerPagePaginatedResponse, Party, AppStripeCreateCheckoutSessionRequestOptions, TaxCodePagePaginatedResponse, CurrencyPagePaginatedResponse, GovernanceQueryResult, Feature, CreateFeatureRequest, UpdateFeatureRequest, CreditGrantPagePaginatedResponse, BadRequest, CustomerStripeCreateCheckoutSessionRequest, WorkflowCollectionSettings, AppPagePaginatedResponse, ProfileApps, GovernanceQueryResponse, FlatFeeCharge, UsageBasedCharge, RateCard, FeaturePagePaginatedResponse, Workflow, PlanPhase, Addon, CreateAddonRequest, UpsertAddonRequest, Profile, CreateBillingProfileRequest, UpsertBillingProfileRequest, ChargePagePaginatedResponse, Plan, CreatePlanRequest, UpsertPlanRequest, AddonPagePaginatedResponse, ProfilePagePaginatedResponse, PlanPagePaginatedResponse, SortQueryInput, BaseErrorInput, WorkflowInvoicingSettingsInput, WorkflowPaymentSendInvoiceSettingsInput, EventInput, UnauthorizedInput, ForbiddenInput, NotFoundInput, GoneInput, ConflictInput, PayloadTooLargeInput, UnsupportedMediaTypeInput, UnprocessableContentInput, TooManyRequestsInput, InternalInput, NotImplementedInput, NotAvailableInput, AppStripeCreateCheckoutSessionCustomerUpdateInput, AppStripeCreateCheckoutSessionTaxIdCollectionInput, CreateCreditGrantPurchaseInput, RateCardMeteredEntitlementInput, CreditGrantPurchaseInput, SubscriptionCreateInput, SubscriptionInput, GovernanceQueryRequestInput, UnitConfigInput, IngestedEventInput, SubscriptionPagePaginatedResponseInput, SubscriptionChangeResponseInput, SubscriptionCancelInput, SubscriptionChangeInput, InvoiceUsageQuantityDetailInput, CreateCreditGrantRequestInput, CreditGrantInput, WorkflowTaxSettingsInput, IngestedEventPaginatedResponseInput, MeterQueryRequestInput, AppStripeCreateCheckoutSessionRequestOptionsInput, CreditGrantPagePaginatedResponseInput, BadRequestInput, CustomerStripeCreateCheckoutSessionRequestInput, WorkflowCollectionSettingsInput, RateCardInput, WorkflowInput, PlanPhaseInput, AddonInput, CreateAddonRequestInput, UpsertAddonRequestInput, ProfileInput, CreateBillingProfileRequestInput, UpsertBillingProfileRequestInput, PlanInput, CreatePlanRequestInput, UpsertPlanRequestInput, AddonPagePaginatedResponseInput, ProfilePagePaginatedResponseInput, PlanPagePaginatedResponseInput, } from './models/types.js';
42
42
  //# sourceMappingURL=index.d.ts.map
@@ -306,6 +306,13 @@ export declare const planStatus: z.ZodEnum<{
306
306
  draft: "draft";
307
307
  archived: "archived";
308
308
  }>;
309
+ export declare const rateCardStaticEntitlement: z.ZodObject<{
310
+ type: z.ZodLiteral<"static">;
311
+ config: z.ZodUnknown;
312
+ }, z.core.$strip>;
313
+ export declare const rateCardBooleanEntitlement: z.ZodObject<{
314
+ type: z.ZodLiteral<"boolean">;
315
+ }, z.core.$strip>;
309
316
  export declare const productCatalogValidationError: z.ZodObject<{
310
317
  code: z.ZodString;
311
318
  message: z.ZodString;
@@ -1096,6 +1103,12 @@ export declare const recurringPeriod: z.ZodObject<{
1096
1103
  anchor: z.ZodString;
1097
1104
  interval: z.ZodString;
1098
1105
  }, z.core.$strip>;
1106
+ export declare const rateCardMeteredEntitlement: z.ZodObject<{
1107
+ type: z.ZodLiteral<"metered">;
1108
+ is_soft_limit: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1109
+ limit: z.ZodOptional<z.ZodNumber>;
1110
+ usage_period: z.ZodOptional<z.ZodString>;
1111
+ }, z.core.$strip>;
1099
1112
  export declare const creditGrantPurchase: z.ZodObject<{
1100
1113
  currency: z.ZodString;
1101
1114
  per_unit_cost_basis: z.ZodDefault<z.ZodOptional<z.ZodString>>;
@@ -2291,6 +2304,17 @@ export declare const workflowCollectionAlignmentAnchored: z.ZodObject<{
2291
2304
  interval: z.ZodString;
2292
2305
  }, z.core.$strip>;
2293
2306
  }, z.core.$strip>;
2307
+ export declare const rateCardEntitlement: z.ZodDiscriminatedUnion<[z.ZodObject<{
2308
+ type: z.ZodLiteral<"metered">;
2309
+ is_soft_limit: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
2310
+ limit: z.ZodOptional<z.ZodNumber>;
2311
+ usage_period: z.ZodOptional<z.ZodString>;
2312
+ }, z.core.$strip>, z.ZodObject<{
2313
+ type: z.ZodLiteral<"static">;
2314
+ config: z.ZodUnknown;
2315
+ }, z.core.$strip>, z.ZodObject<{
2316
+ type: z.ZodLiteral<"boolean">;
2317
+ }, z.core.$strip>], "type">;
2294
2318
  export declare const subscriptionPagePaginatedResponse: z.ZodObject<{
2295
2319
  data: z.ZodArray<z.ZodObject<{
2296
2320
  id: z.ZodString;
@@ -4464,6 +4488,17 @@ export declare const rateCard: z.ZodObject<{
4464
4488
  id: z.ZodString;
4465
4489
  }, z.core.$strip>;
4466
4490
  }, z.core.$strip>>;
4491
+ entitlement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
4492
+ type: z.ZodLiteral<"metered">;
4493
+ is_soft_limit: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
4494
+ limit: z.ZodOptional<z.ZodNumber>;
4495
+ usage_period: z.ZodOptional<z.ZodString>;
4496
+ }, z.core.$strip>, z.ZodObject<{
4497
+ type: z.ZodLiteral<"static">;
4498
+ config: z.ZodUnknown;
4499
+ }, z.core.$strip>, z.ZodObject<{
4500
+ type: z.ZodLiteral<"boolean">;
4501
+ }, z.core.$strip>], "type">>;
4467
4502
  }, z.core.$strip>;
4468
4503
  export declare const featurePagePaginatedResponse: z.ZodObject<{
4469
4504
  data: z.ZodArray<z.ZodObject<{
@@ -4905,6 +4940,17 @@ export declare const planPhase: z.ZodObject<{
4905
4940
  id: z.ZodString;
4906
4941
  }, z.core.$strip>;
4907
4942
  }, z.core.$strip>>;
4943
+ entitlement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
4944
+ type: z.ZodLiteral<"metered">;
4945
+ is_soft_limit: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
4946
+ limit: z.ZodOptional<z.ZodNumber>;
4947
+ usage_period: z.ZodOptional<z.ZodString>;
4948
+ }, z.core.$strip>, z.ZodObject<{
4949
+ type: z.ZodLiteral<"static">;
4950
+ config: z.ZodUnknown;
4951
+ }, z.core.$strip>, z.ZodObject<{
4952
+ type: z.ZodLiteral<"boolean">;
4953
+ }, z.core.$strip>], "type">>;
4908
4954
  }, z.core.$strip>>;
4909
4955
  }, z.core.$strip>;
4910
4956
  export declare const addon: z.ZodObject<{
@@ -4991,6 +5037,17 @@ export declare const addon: z.ZodObject<{
4991
5037
  id: z.ZodString;
4992
5038
  }, z.core.$strip>;
4993
5039
  }, z.core.$strip>>;
5040
+ entitlement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
5041
+ type: z.ZodLiteral<"metered">;
5042
+ is_soft_limit: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
5043
+ limit: z.ZodOptional<z.ZodNumber>;
5044
+ usage_period: z.ZodOptional<z.ZodString>;
5045
+ }, z.core.$strip>, z.ZodObject<{
5046
+ type: z.ZodLiteral<"static">;
5047
+ config: z.ZodUnknown;
5048
+ }, z.core.$strip>, z.ZodObject<{
5049
+ type: z.ZodLiteral<"boolean">;
5050
+ }, z.core.$strip>], "type">>;
4994
5051
  }, z.core.$strip>>;
4995
5052
  validation_errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
4996
5053
  code: z.ZodString;
@@ -5071,6 +5128,17 @@ export declare const createAddonRequest: z.ZodObject<{
5071
5128
  id: z.ZodString;
5072
5129
  }, z.core.$strip>;
5073
5130
  }, z.core.$strip>>;
5131
+ entitlement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
5132
+ type: z.ZodLiteral<"metered">;
5133
+ is_soft_limit: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
5134
+ limit: z.ZodOptional<z.ZodNumber>;
5135
+ usage_period: z.ZodOptional<z.ZodString>;
5136
+ }, z.core.$strip>, z.ZodObject<{
5137
+ type: z.ZodLiteral<"static">;
5138
+ config: z.ZodUnknown;
5139
+ }, z.core.$strip>, z.ZodObject<{
5140
+ type: z.ZodLiteral<"boolean">;
5141
+ }, z.core.$strip>], "type">>;
5074
5142
  }, z.core.$strip>>;
5075
5143
  }, z.core.$strip>;
5076
5144
  export declare const upsertAddonRequest: z.ZodObject<{
@@ -5143,6 +5211,17 @@ export declare const upsertAddonRequest: z.ZodObject<{
5143
5211
  id: z.ZodString;
5144
5212
  }, z.core.$strip>;
5145
5213
  }, z.core.$strip>>;
5214
+ entitlement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
5215
+ type: z.ZodLiteral<"metered">;
5216
+ is_soft_limit: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
5217
+ limit: z.ZodOptional<z.ZodNumber>;
5218
+ usage_period: z.ZodOptional<z.ZodString>;
5219
+ }, z.core.$strip>, z.ZodObject<{
5220
+ type: z.ZodLiteral<"static">;
5221
+ config: z.ZodUnknown;
5222
+ }, z.core.$strip>, z.ZodObject<{
5223
+ type: z.ZodLiteral<"boolean">;
5224
+ }, z.core.$strip>], "type">>;
5146
5225
  }, z.core.$strip>>;
5147
5226
  }, z.core.$strip>;
5148
5227
  export declare const profile: z.ZodObject<{
@@ -5728,6 +5807,17 @@ export declare const plan: z.ZodObject<{
5728
5807
  id: z.ZodString;
5729
5808
  }, z.core.$strip>;
5730
5809
  }, z.core.$strip>>;
5810
+ entitlement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
5811
+ type: z.ZodLiteral<"metered">;
5812
+ is_soft_limit: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
5813
+ limit: z.ZodOptional<z.ZodNumber>;
5814
+ usage_period: z.ZodOptional<z.ZodString>;
5815
+ }, z.core.$strip>, z.ZodObject<{
5816
+ type: z.ZodLiteral<"static">;
5817
+ config: z.ZodUnknown;
5818
+ }, z.core.$strip>, z.ZodObject<{
5819
+ type: z.ZodLiteral<"boolean">;
5820
+ }, z.core.$strip>], "type">>;
5731
5821
  }, z.core.$strip>>;
5732
5822
  }, z.core.$strip>>;
5733
5823
  settlement_mode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
@@ -5817,6 +5907,17 @@ export declare const createPlanRequest: z.ZodObject<{
5817
5907
  id: z.ZodString;
5818
5908
  }, z.core.$strip>;
5819
5909
  }, z.core.$strip>>;
5910
+ entitlement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
5911
+ type: z.ZodLiteral<"metered">;
5912
+ is_soft_limit: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
5913
+ limit: z.ZodOptional<z.ZodNumber>;
5914
+ usage_period: z.ZodOptional<z.ZodString>;
5915
+ }, z.core.$strip>, z.ZodObject<{
5916
+ type: z.ZodLiteral<"static">;
5917
+ config: z.ZodUnknown;
5918
+ }, z.core.$strip>, z.ZodObject<{
5919
+ type: z.ZodLiteral<"boolean">;
5920
+ }, z.core.$strip>], "type">>;
5820
5921
  }, z.core.$strip>>;
5821
5922
  }, z.core.$strip>>;
5822
5923
  }, z.core.$strip>;
@@ -5893,6 +5994,17 @@ export declare const upsertPlanRequest: z.ZodObject<{
5893
5994
  id: z.ZodString;
5894
5995
  }, z.core.$strip>;
5895
5996
  }, z.core.$strip>>;
5997
+ entitlement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
5998
+ type: z.ZodLiteral<"metered">;
5999
+ is_soft_limit: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
6000
+ limit: z.ZodOptional<z.ZodNumber>;
6001
+ usage_period: z.ZodOptional<z.ZodString>;
6002
+ }, z.core.$strip>, z.ZodObject<{
6003
+ type: z.ZodLiteral<"static">;
6004
+ config: z.ZodUnknown;
6005
+ }, z.core.$strip>, z.ZodObject<{
6006
+ type: z.ZodLiteral<"boolean">;
6007
+ }, z.core.$strip>], "type">>;
5896
6008
  }, z.core.$strip>>;
5897
6009
  }, z.core.$strip>>;
5898
6010
  }, z.core.$strip>;
@@ -5981,6 +6093,17 @@ export declare const addonPagePaginatedResponse: z.ZodObject<{
5981
6093
  id: z.ZodString;
5982
6094
  }, z.core.$strip>;
5983
6095
  }, z.core.$strip>>;
6096
+ entitlement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
6097
+ type: z.ZodLiteral<"metered">;
6098
+ is_soft_limit: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
6099
+ limit: z.ZodOptional<z.ZodNumber>;
6100
+ usage_period: z.ZodOptional<z.ZodString>;
6101
+ }, z.core.$strip>, z.ZodObject<{
6102
+ type: z.ZodLiteral<"static">;
6103
+ config: z.ZodUnknown;
6104
+ }, z.core.$strip>, z.ZodObject<{
6105
+ type: z.ZodLiteral<"boolean">;
6106
+ }, z.core.$strip>], "type">>;
5984
6107
  }, z.core.$strip>>;
5985
6108
  validation_errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
5986
6109
  code: z.ZodString;
@@ -6181,6 +6304,17 @@ export declare const planPagePaginatedResponse: z.ZodObject<{
6181
6304
  id: z.ZodString;
6182
6305
  }, z.core.$strip>;
6183
6306
  }, z.core.$strip>>;
6307
+ entitlement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
6308
+ type: z.ZodLiteral<"metered">;
6309
+ is_soft_limit: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
6310
+ limit: z.ZodOptional<z.ZodNumber>;
6311
+ usage_period: z.ZodOptional<z.ZodString>;
6312
+ }, z.core.$strip>, z.ZodObject<{
6313
+ type: z.ZodLiteral<"static">;
6314
+ config: z.ZodUnknown;
6315
+ }, z.core.$strip>, z.ZodObject<{
6316
+ type: z.ZodLiteral<"boolean">;
6317
+ }, z.core.$strip>], "type">>;
6184
6318
  }, z.core.$strip>>;
6185
6319
  }, z.core.$strip>>;
6186
6320
  settlement_mode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
@@ -9755,6 +9889,17 @@ export declare const listPlansResponse: z.ZodObject<{
9755
9889
  id: z.ZodString;
9756
9890
  }, z.core.$strip>;
9757
9891
  }, z.core.$strip>>;
9892
+ entitlement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
9893
+ type: z.ZodLiteral<"metered">;
9894
+ is_soft_limit: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
9895
+ limit: z.ZodOptional<z.ZodNumber>;
9896
+ usage_period: z.ZodOptional<z.ZodString>;
9897
+ }, z.core.$strip>, z.ZodObject<{
9898
+ type: z.ZodLiteral<"static">;
9899
+ config: z.ZodUnknown;
9900
+ }, z.core.$strip>, z.ZodObject<{
9901
+ type: z.ZodLiteral<"boolean">;
9902
+ }, z.core.$strip>], "type">>;
9758
9903
  }, z.core.$strip>>;
9759
9904
  }, z.core.$strip>>;
9760
9905
  settlement_mode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
@@ -9852,6 +9997,17 @@ export declare const createPlanBody: z.ZodObject<{
9852
9997
  id: z.ZodString;
9853
9998
  }, z.core.$strip>;
9854
9999
  }, z.core.$strip>>;
10000
+ entitlement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
10001
+ type: z.ZodLiteral<"metered">;
10002
+ is_soft_limit: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
10003
+ limit: z.ZodOptional<z.ZodNumber>;
10004
+ usage_period: z.ZodOptional<z.ZodString>;
10005
+ }, z.core.$strip>, z.ZodObject<{
10006
+ type: z.ZodLiteral<"static">;
10007
+ config: z.ZodUnknown;
10008
+ }, z.core.$strip>, z.ZodObject<{
10009
+ type: z.ZodLiteral<"boolean">;
10010
+ }, z.core.$strip>], "type">>;
9855
10011
  }, z.core.$strip>>;
9856
10012
  }, z.core.$strip>>;
9857
10013
  }, z.core.$strip>;
@@ -9944,6 +10100,17 @@ export declare const createPlanResponse: z.ZodObject<{
9944
10100
  id: z.ZodString;
9945
10101
  }, z.core.$strip>;
9946
10102
  }, z.core.$strip>>;
10103
+ entitlement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
10104
+ type: z.ZodLiteral<"metered">;
10105
+ is_soft_limit: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
10106
+ limit: z.ZodOptional<z.ZodNumber>;
10107
+ usage_period: z.ZodOptional<z.ZodString>;
10108
+ }, z.core.$strip>, z.ZodObject<{
10109
+ type: z.ZodLiteral<"static">;
10110
+ config: z.ZodUnknown;
10111
+ }, z.core.$strip>, z.ZodObject<{
10112
+ type: z.ZodLiteral<"boolean">;
10113
+ }, z.core.$strip>], "type">>;
9947
10114
  }, z.core.$strip>>;
9948
10115
  }, z.core.$strip>>;
9949
10116
  settlement_mode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
@@ -10033,6 +10200,17 @@ export declare const updatePlanBody: z.ZodObject<{
10033
10200
  id: z.ZodString;
10034
10201
  }, z.core.$strip>;
10035
10202
  }, z.core.$strip>>;
10203
+ entitlement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
10204
+ type: z.ZodLiteral<"metered">;
10205
+ is_soft_limit: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
10206
+ limit: z.ZodOptional<z.ZodNumber>;
10207
+ usage_period: z.ZodOptional<z.ZodString>;
10208
+ }, z.core.$strip>, z.ZodObject<{
10209
+ type: z.ZodLiteral<"static">;
10210
+ config: z.ZodUnknown;
10211
+ }, z.core.$strip>, z.ZodObject<{
10212
+ type: z.ZodLiteral<"boolean">;
10213
+ }, z.core.$strip>], "type">>;
10036
10214
  }, z.core.$strip>>;
10037
10215
  }, z.core.$strip>>;
10038
10216
  }, z.core.$strip>;
@@ -10125,6 +10303,17 @@ export declare const updatePlanResponse: z.ZodObject<{
10125
10303
  id: z.ZodString;
10126
10304
  }, z.core.$strip>;
10127
10305
  }, z.core.$strip>>;
10306
+ entitlement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
10307
+ type: z.ZodLiteral<"metered">;
10308
+ is_soft_limit: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
10309
+ limit: z.ZodOptional<z.ZodNumber>;
10310
+ usage_period: z.ZodOptional<z.ZodString>;
10311
+ }, z.core.$strip>, z.ZodObject<{
10312
+ type: z.ZodLiteral<"static">;
10313
+ config: z.ZodUnknown;
10314
+ }, z.core.$strip>, z.ZodObject<{
10315
+ type: z.ZodLiteral<"boolean">;
10316
+ }, z.core.$strip>], "type">>;
10128
10317
  }, z.core.$strip>>;
10129
10318
  }, z.core.$strip>>;
10130
10319
  settlement_mode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
@@ -10230,6 +10419,17 @@ export declare const getPlanResponse: z.ZodObject<{
10230
10419
  id: z.ZodString;
10231
10420
  }, z.core.$strip>;
10232
10421
  }, z.core.$strip>>;
10422
+ entitlement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
10423
+ type: z.ZodLiteral<"metered">;
10424
+ is_soft_limit: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
10425
+ limit: z.ZodOptional<z.ZodNumber>;
10426
+ usage_period: z.ZodOptional<z.ZodString>;
10427
+ }, z.core.$strip>, z.ZodObject<{
10428
+ type: z.ZodLiteral<"static">;
10429
+ config: z.ZodUnknown;
10430
+ }, z.core.$strip>, z.ZodObject<{
10431
+ type: z.ZodLiteral<"boolean">;
10432
+ }, z.core.$strip>], "type">>;
10233
10433
  }, z.core.$strip>>;
10234
10434
  }, z.core.$strip>>;
10235
10435
  settlement_mode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
@@ -10338,6 +10538,17 @@ export declare const archivePlanResponse: z.ZodObject<{
10338
10538
  id: z.ZodString;
10339
10539
  }, z.core.$strip>;
10340
10540
  }, z.core.$strip>>;
10541
+ entitlement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
10542
+ type: z.ZodLiteral<"metered">;
10543
+ is_soft_limit: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
10544
+ limit: z.ZodOptional<z.ZodNumber>;
10545
+ usage_period: z.ZodOptional<z.ZodString>;
10546
+ }, z.core.$strip>, z.ZodObject<{
10547
+ type: z.ZodLiteral<"static">;
10548
+ config: z.ZodUnknown;
10549
+ }, z.core.$strip>, z.ZodObject<{
10550
+ type: z.ZodLiteral<"boolean">;
10551
+ }, z.core.$strip>], "type">>;
10341
10552
  }, z.core.$strip>>;
10342
10553
  }, z.core.$strip>>;
10343
10554
  settlement_mode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
@@ -10443,6 +10654,17 @@ export declare const publishPlanResponse: z.ZodObject<{
10443
10654
  id: z.ZodString;
10444
10655
  }, z.core.$strip>;
10445
10656
  }, z.core.$strip>>;
10657
+ entitlement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
10658
+ type: z.ZodLiteral<"metered">;
10659
+ is_soft_limit: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
10660
+ limit: z.ZodOptional<z.ZodNumber>;
10661
+ usage_period: z.ZodOptional<z.ZodString>;
10662
+ }, z.core.$strip>, z.ZodObject<{
10663
+ type: z.ZodLiteral<"static">;
10664
+ config: z.ZodUnknown;
10665
+ }, z.core.$strip>, z.ZodObject<{
10666
+ type: z.ZodLiteral<"boolean">;
10667
+ }, z.core.$strip>], "type">>;
10446
10668
  }, z.core.$strip>>;
10447
10669
  }, z.core.$strip>>;
10448
10670
  settlement_mode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
@@ -10592,6 +10814,17 @@ export declare const listAddonsResponse: z.ZodObject<{
10592
10814
  id: z.ZodString;
10593
10815
  }, z.core.$strip>;
10594
10816
  }, z.core.$strip>>;
10817
+ entitlement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
10818
+ type: z.ZodLiteral<"metered">;
10819
+ is_soft_limit: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
10820
+ limit: z.ZodOptional<z.ZodNumber>;
10821
+ usage_period: z.ZodOptional<z.ZodString>;
10822
+ }, z.core.$strip>, z.ZodObject<{
10823
+ type: z.ZodLiteral<"static">;
10824
+ config: z.ZodUnknown;
10825
+ }, z.core.$strip>, z.ZodObject<{
10826
+ type: z.ZodLiteral<"boolean">;
10827
+ }, z.core.$strip>], "type">>;
10595
10828
  }, z.core.$strip>>;
10596
10829
  validation_errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
10597
10830
  code: z.ZodString;
@@ -10680,6 +10913,17 @@ export declare const createAddonBody: z.ZodObject<{
10680
10913
  id: z.ZodString;
10681
10914
  }, z.core.$strip>;
10682
10915
  }, z.core.$strip>>;
10916
+ entitlement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
10917
+ type: z.ZodLiteral<"metered">;
10918
+ is_soft_limit: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
10919
+ limit: z.ZodOptional<z.ZodNumber>;
10920
+ usage_period: z.ZodOptional<z.ZodString>;
10921
+ }, z.core.$strip>, z.ZodObject<{
10922
+ type: z.ZodLiteral<"static">;
10923
+ config: z.ZodUnknown;
10924
+ }, z.core.$strip>, z.ZodObject<{
10925
+ type: z.ZodLiteral<"boolean">;
10926
+ }, z.core.$strip>], "type">>;
10683
10927
  }, z.core.$strip>>;
10684
10928
  }, z.core.$strip>;
10685
10929
  export declare const createAddonResponse: z.ZodObject<{
@@ -10766,6 +11010,17 @@ export declare const createAddonResponse: z.ZodObject<{
10766
11010
  id: z.ZodString;
10767
11011
  }, z.core.$strip>;
10768
11012
  }, z.core.$strip>>;
11013
+ entitlement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
11014
+ type: z.ZodLiteral<"metered">;
11015
+ is_soft_limit: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
11016
+ limit: z.ZodOptional<z.ZodNumber>;
11017
+ usage_period: z.ZodOptional<z.ZodString>;
11018
+ }, z.core.$strip>, z.ZodObject<{
11019
+ type: z.ZodLiteral<"static">;
11020
+ config: z.ZodUnknown;
11021
+ }, z.core.$strip>, z.ZodObject<{
11022
+ type: z.ZodLiteral<"boolean">;
11023
+ }, z.core.$strip>], "type">>;
10769
11024
  }, z.core.$strip>>;
10770
11025
  validation_errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
10771
11026
  code: z.ZodString;
@@ -10847,6 +11102,17 @@ export declare const updateAddonBody: z.ZodObject<{
10847
11102
  id: z.ZodString;
10848
11103
  }, z.core.$strip>;
10849
11104
  }, z.core.$strip>>;
11105
+ entitlement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
11106
+ type: z.ZodLiteral<"metered">;
11107
+ is_soft_limit: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
11108
+ limit: z.ZodOptional<z.ZodNumber>;
11109
+ usage_period: z.ZodOptional<z.ZodString>;
11110
+ }, z.core.$strip>, z.ZodObject<{
11111
+ type: z.ZodLiteral<"static">;
11112
+ config: z.ZodUnknown;
11113
+ }, z.core.$strip>, z.ZodObject<{
11114
+ type: z.ZodLiteral<"boolean">;
11115
+ }, z.core.$strip>], "type">>;
10850
11116
  }, z.core.$strip>>;
10851
11117
  }, z.core.$strip>;
10852
11118
  export declare const updateAddonResponse: z.ZodObject<{
@@ -10933,6 +11199,17 @@ export declare const updateAddonResponse: z.ZodObject<{
10933
11199
  id: z.ZodString;
10934
11200
  }, z.core.$strip>;
10935
11201
  }, z.core.$strip>>;
11202
+ entitlement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
11203
+ type: z.ZodLiteral<"metered">;
11204
+ is_soft_limit: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
11205
+ limit: z.ZodOptional<z.ZodNumber>;
11206
+ usage_period: z.ZodOptional<z.ZodString>;
11207
+ }, z.core.$strip>, z.ZodObject<{
11208
+ type: z.ZodLiteral<"static">;
11209
+ config: z.ZodUnknown;
11210
+ }, z.core.$strip>, z.ZodObject<{
11211
+ type: z.ZodLiteral<"boolean">;
11212
+ }, z.core.$strip>], "type">>;
10936
11213
  }, z.core.$strip>>;
10937
11214
  validation_errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
10938
11215
  code: z.ZodString;
@@ -11028,6 +11305,17 @@ export declare const getAddonResponse: z.ZodObject<{
11028
11305
  id: z.ZodString;
11029
11306
  }, z.core.$strip>;
11030
11307
  }, z.core.$strip>>;
11308
+ entitlement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
11309
+ type: z.ZodLiteral<"metered">;
11310
+ is_soft_limit: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
11311
+ limit: z.ZodOptional<z.ZodNumber>;
11312
+ usage_period: z.ZodOptional<z.ZodString>;
11313
+ }, z.core.$strip>, z.ZodObject<{
11314
+ type: z.ZodLiteral<"static">;
11315
+ config: z.ZodUnknown;
11316
+ }, z.core.$strip>, z.ZodObject<{
11317
+ type: z.ZodLiteral<"boolean">;
11318
+ }, z.core.$strip>], "type">>;
11031
11319
  }, z.core.$strip>>;
11032
11320
  validation_errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
11033
11321
  code: z.ZodString;
@@ -11126,6 +11414,17 @@ export declare const archiveAddonResponse: z.ZodObject<{
11126
11414
  id: z.ZodString;
11127
11415
  }, z.core.$strip>;
11128
11416
  }, z.core.$strip>>;
11417
+ entitlement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
11418
+ type: z.ZodLiteral<"metered">;
11419
+ is_soft_limit: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
11420
+ limit: z.ZodOptional<z.ZodNumber>;
11421
+ usage_period: z.ZodOptional<z.ZodString>;
11422
+ }, z.core.$strip>, z.ZodObject<{
11423
+ type: z.ZodLiteral<"static">;
11424
+ config: z.ZodUnknown;
11425
+ }, z.core.$strip>, z.ZodObject<{
11426
+ type: z.ZodLiteral<"boolean">;
11427
+ }, z.core.$strip>], "type">>;
11129
11428
  }, z.core.$strip>>;
11130
11429
  validation_errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
11131
11430
  code: z.ZodString;
@@ -11221,6 +11520,17 @@ export declare const publishAddonResponse: z.ZodObject<{
11221
11520
  id: z.ZodString;
11222
11521
  }, z.core.$strip>;
11223
11522
  }, z.core.$strip>>;
11523
+ entitlement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
11524
+ type: z.ZodLiteral<"metered">;
11525
+ is_soft_limit: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
11526
+ limit: z.ZodOptional<z.ZodNumber>;
11527
+ usage_period: z.ZodOptional<z.ZodString>;
11528
+ }, z.core.$strip>, z.ZodObject<{
11529
+ type: z.ZodLiteral<"static">;
11530
+ config: z.ZodUnknown;
11531
+ }, z.core.$strip>, z.ZodObject<{
11532
+ type: z.ZodLiteral<"boolean">;
11533
+ }, z.core.$strip>], "type">>;
11224
11534
  }, z.core.$strip>>;
11225
11535
  validation_errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
11226
11536
  code: z.ZodString;
@@ -568,6 +568,21 @@ export const llmCostPriceSource = z
568
568
  export const planStatus = z
569
569
  .enum(['draft', 'active', 'archived', 'scheduled'])
570
570
  .describe('The status of a plan. - `draft`: The plan has not yet been published and can be edited. - `active`: The plan is published and can be used in subscriptions. - `archived`: The plan is no longer available for use. - `scheduled`: The plan is scheduled to be published at a future date.');
571
+ export const rateCardStaticEntitlement = z
572
+ .object({
573
+ type: z.literal('static').describe('The type of the entitlement template.'),
574
+ config: z
575
+ .unknown()
576
+ .describe('The entitlement config as a JSON object. Returned when checking entitlement access; useful for configuring fine-grained access settings implemented in your own system.'),
577
+ })
578
+ .describe('The entitlement template of a static entitlement.');
579
+ export const rateCardBooleanEntitlement = z
580
+ .object({
581
+ type: z
582
+ .literal('boolean')
583
+ .describe('The type of the entitlement template.'),
584
+ })
585
+ .describe('The entitlement template of a boolean entitlement.');
571
586
  export const productCatalogValidationError = z
572
587
  .object({
573
588
  code: z.string().describe('Machine-readable error code.'),
@@ -1698,6 +1713,24 @@ export const recurringPeriod = z
1698
1713
  interval: iso8601Duration,
1699
1714
  })
1700
1715
  .describe('Recurring period with an anchor and an interval.');
1716
+ export const rateCardMeteredEntitlement = z
1717
+ .object({
1718
+ type: z
1719
+ .literal('metered')
1720
+ .describe('The type of the entitlement template.'),
1721
+ is_soft_limit: z
1722
+ .boolean()
1723
+ .optional()
1724
+ .default(false)
1725
+ .describe('If soft limit is true, the subject can use the feature even if the entitlement is exhausted; access remains granted.'),
1726
+ limit: z
1727
+ .number()
1728
+ .nonnegative()
1729
+ .optional()
1730
+ .describe("The amount of usage granted each usage period, in the feature's unit. Usage is counted against this allowance and the balance resets every usage period. When `is_soft_limit` is true the subject keeps access after the limit is reached; otherwise access is denied once the allowance is exhausted."),
1731
+ usage_period: iso8601Duration.optional(),
1732
+ })
1733
+ .describe('The entitlement template of a metered entitlement.');
1701
1734
  export const creditGrantPurchase = z
1702
1735
  .object({
1703
1736
  currency: currencyCode,
@@ -2425,6 +2458,13 @@ export const workflowCollectionAlignmentAnchored = z
2425
2458
  recurring_period: recurringPeriod,
2426
2459
  })
2427
2460
  .describe('BillingWorkflowCollectionAlignmentAnchored specifies the alignment for collecting the pending line items into an invoice.');
2461
+ export const rateCardEntitlement = z
2462
+ .discriminatedUnion('type', [
2463
+ rateCardMeteredEntitlement,
2464
+ rateCardStaticEntitlement,
2465
+ rateCardBooleanEntitlement,
2466
+ ])
2467
+ .describe('Entitlement template configured on a rate card. The feature is taken from the rate card itself, so it is omitted here.');
2428
2468
  export const subscriptionPagePaginatedResponse = z
2429
2469
  .object({
2430
2470
  data: z.array(subscription),
@@ -3126,6 +3166,7 @@ export const rateCard = z
3126
3166
  commitments: spendCommitments.optional(),
3127
3167
  discounts: rateCardDiscounts.optional(),
3128
3168
  tax_config: rateCardTaxConfig.optional(),
3169
+ entitlement: rateCardEntitlement.optional(),
3129
3170
  })
3130
3171
  .describe('A rate card defines the pricing and entitlement of a feature or service.');
3131
3172
  export const featurePagePaginatedResponse = z
@@ -170,6 +170,18 @@ export interface LlmCostModel {
170
170
  /** Name of the model, e.g., "GPT-4", "Claude 3.5 Sonnet". */
171
171
  name: string;
172
172
  }
173
+ /** The entitlement template of a static entitlement. */
174
+ export interface RateCardStaticEntitlement {
175
+ /** The type of the entitlement template. */
176
+ type: 'static';
177
+ /** The entitlement config as a JSON object. Returned when checking entitlement access; useful for configuring fine-grained access settings implemented in your own system. */
178
+ config: unknown;
179
+ }
180
+ /** The entitlement template of a boolean entitlement. */
181
+ export interface RateCardBooleanEntitlement {
182
+ /** The type of the entitlement template. */
183
+ type: 'boolean';
184
+ }
173
185
  /** Validation errors providing detailed description of the issue. */
174
186
  export interface ProductCatalogValidationError {
175
187
  /** Machine-readable error code. */
@@ -1061,6 +1073,17 @@ export interface RecurringPeriod {
1061
1073
  /** The interval duration in ISO 8601 format. */
1062
1074
  interval: string;
1063
1075
  }
1076
+ /** The entitlement template of a metered entitlement. */
1077
+ export interface RateCardMeteredEntitlement {
1078
+ /** The type of the entitlement template. */
1079
+ type: 'metered';
1080
+ /** If soft limit is true, the subject can use the feature even if the entitlement is exhausted; access remains granted. */
1081
+ is_soft_limit: boolean;
1082
+ /** The amount of usage granted each usage period, in the feature's unit. Usage is counted against this allowance and the balance resets every usage period. When `is_soft_limit` is true the subject keeps access after the limit is reached; otherwise access is denied once the allowance is exhausted. */
1083
+ limit?: number;
1084
+ /** The reset interval of the metered entitlement in ISO8601 format. Defaults to the billing cadence of the rate card. */
1085
+ usage_period?: string;
1086
+ }
1064
1087
  /** Purchase and payment terms of the grant. */
1065
1088
  export interface CreditGrantPurchase {
1066
1089
  /** Currency of the purchase amount. */
@@ -2639,6 +2662,8 @@ export interface RateCard {
2639
2662
  discounts?: RateCardDiscounts;
2640
2663
  /** The tax config of the rate card. */
2641
2664
  tax_config?: RateCardTaxConfig;
2665
+ /** The entitlement template granted to subscribers of a plan or addon containing this rate card. Requires `feature` to be set. */
2666
+ entitlement?: RateCardMeteredEntitlement | RateCardStaticEntitlement | RateCardBooleanEntitlement;
2642
2667
  }
2643
2668
  /** Page paginated response. */
2644
2669
  export interface FeaturePagePaginatedResponse {
@@ -2969,6 +2994,16 @@ export interface CreateCreditGrantPurchaseInput {
2969
2994
  /** Controls when credits become available for consumption. Defaults to `on_creation`. */
2970
2995
  availability_policy?: 'on_creation';
2971
2996
  }
2997
+ export interface RateCardMeteredEntitlementInput {
2998
+ /** The type of the entitlement template. */
2999
+ type: 'metered';
3000
+ /** If soft limit is true, the subject can use the feature even if the entitlement is exhausted; access remains granted. */
3001
+ is_soft_limit?: boolean;
3002
+ /** The amount of usage granted each usage period, in the feature's unit. Usage is counted against this allowance and the balance resets every usage period. When `is_soft_limit` is true the subject keeps access after the limit is reached; otherwise access is denied once the allowance is exhausted. */
3003
+ limit?: number;
3004
+ /** The reset interval of the metered entitlement in ISO8601 format. Defaults to the billing cadence of the rate card. */
3005
+ usage_period?: string;
3006
+ }
2972
3007
  export interface CreditGrantPurchaseInput {
2973
3008
  /** Currency of the purchase amount. */
2974
3009
  currency: string;
@@ -3253,6 +3288,8 @@ export interface RateCardInput {
3253
3288
  discounts?: RateCardDiscounts;
3254
3289
  /** The tax config of the rate card. */
3255
3290
  tax_config?: RateCardTaxConfig;
3291
+ /** The entitlement template granted to subscribers of a plan or addon containing this rate card. Requires `feature` to be set. */
3292
+ entitlement?: RateCardMeteredEntitlementInput | RateCardStaticEntitlement | RateCardBooleanEntitlement;
3256
3293
  }
3257
3294
  export interface WorkflowInput {
3258
3295
  /** The collection settings for this workflow */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openmeter/client",
3
- "version": "1.0.0-beta-1659b7d437ee",
3
+ "version": "1.0.0-beta-fffcde64547a",
4
4
  "license": "Apache-2.0",
5
5
  "homepage": "https://openmeter.io",
6
6
  "repository": {