@openmeter/client 1.0.0-beta-a0c5de652a64 → 1.0.0-beta-724a3bfe7e72

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, TaxConfigStripe, TaxConfigExternalInvoicing, FlatFeeDiscounts, PriceFree, WorkflowCollectionAlignmentSubscription, WorkflowInvoicingSettings, WorkflowPaymentChargeAutomaticallySettings, WorkflowPaymentSendInvoiceSettings, LlmCostProvider, LlmCostModel, RateCardStaticEntitlement, RateCardBooleanEntitlement, ProductCatalogValidationError, GovernanceQueryRequestCustomers, GovernanceQueryRequestFeatures, QueryFilterInteger, QueryFilterFloat, QueryFilterBoolean, PagePaginationQuery, PublicLabels, SystemAccountAccessToken, PersonalAccessToken, KonnectAccessToken, UpdateMeterRequest, AppCustomerDataStripe, AppCustomerDataExternalInvoicing, ListCostBasesParamsFilter, CurrencyAmount, PriceFlat, PriceUnit, 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, CreateFlatFeeChargeRequest, WorkflowTaxSettings, SubscriptionAddonPagePaginatedResponse, PlanAddonPagePaginatedResponse, IngestedEventPaginatedResponse, InvalidParameters, MeterQueryRequest, CustomerPagePaginatedResponse, Party, AppStripeCreateCheckoutSessionRequestOptions, TaxCodePagePaginatedResponse, CurrencyPagePaginatedResponse, GovernanceQueryResult, Feature, CreateFeatureRequest, UpdateFeatureRequest, CreditGrantPagePaginatedResponse, BadRequest, CustomerStripeCreateCheckoutSessionRequest, WorkflowCollectionSettings, AppPagePaginatedResponse, ProfileApps, GovernanceQueryResponse, FlatFeeCharge, UsageBasedCharge, CreateUsageBasedChargeRequest, 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, GovernanceQueryRequestInput, UnitConfigInput, IngestedEventInput, SubscriptionCancelInput, 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, TaxConfigStripe, TaxConfigExternalInvoicing, FlatFeeDiscounts, PriceFree, WorkflowCollectionAlignmentSubscription, WorkflowInvoicingSettings, WorkflowPaymentChargeAutomaticallySettings, WorkflowPaymentSendInvoiceSettings, LlmCostProvider, LlmCostModel, RateCardStaticEntitlement, RateCardBooleanEntitlement, ProductCatalogValidationError, GovernanceQueryRequestCustomers, GovernanceQueryRequestFeatures, QueryFilterInteger, QueryFilterFloat, QueryFilterBoolean, PagePaginationQuery, PublicLabels, SystemAccountAccessToken, PersonalAccessToken, KonnectAccessToken, UpdateMeterRequest, AppCustomerDataStripe, AppCustomerDataExternalInvoicing, ListCostBasesParamsFilter, CurrencyAmount, PriceFlat, PriceUnit, 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, UnitConfig, GovernanceQueryRequest, GovernanceFeatureAccessReason, GovernanceQueryError, 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, InvoiceUsageQuantityDetail, GovernanceFeatureAccess, CustomerData, UpsertCustomerBillingDataRequest, CreditBalances, CreditTransactionPaginatedResponse, PriceGraduated, PriceVolume, PricePagePaginatedResponse, CreateCreditGrantRequest, CreditGrant, CreateFlatFeeChargeRequest, WorkflowTaxSettings, SubscriptionAddonPagePaginatedResponse, PlanAddonPagePaginatedResponse, IngestedEventPaginatedResponse, InvalidParameters, MeterQueryRequest, CustomerPagePaginatedResponse, Party, AppStripeCreateCheckoutSessionRequestOptions, TaxCodePagePaginatedResponse, CurrencyPagePaginatedResponse, GovernanceQueryResult, Feature, CreateFeatureRequest, UpdateFeatureRequest, CreditGrantPagePaginatedResponse, BadRequest, CustomerStripeCreateCheckoutSessionRequest, WorkflowCollectionSettings, AppPagePaginatedResponse, ProfileApps, GovernanceQueryResponse, FlatFeeCharge, UsageBasedCharge, CreateUsageBasedChargeRequest, 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, UnitConfigInput, GovernanceQueryRequestInput, IngestedEventInput, SubscriptionCancelInput, 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,16 @@ export declare const planStatus: z.ZodEnum<{
306
306
  draft: "draft";
307
307
  archived: "archived";
308
308
  }>;
309
+ export declare const unitConfigOperation: z.ZodEnum<{
310
+ multiply: "multiply";
311
+ divide: "divide";
312
+ }>;
313
+ export declare const unitConfigRoundingMode: z.ZodEnum<{
314
+ none: "none";
315
+ floor: "floor";
316
+ ceiling: "ceiling";
317
+ half_up: "half_up";
318
+ }>;
309
319
  export declare const rateCardStaticEntitlement: z.ZodObject<{
310
320
  type: z.ZodLiteral<"static">;
311
321
  config: z.ZodUnknown;
@@ -400,16 +410,6 @@ export declare const collectionMethod: z.ZodEnum<{
400
410
  charge_automatically: "charge_automatically";
401
411
  send_invoice: "send_invoice";
402
412
  }>;
403
- export declare const unitConfigOperation: z.ZodEnum<{
404
- multiply: "multiply";
405
- divide: "divide";
406
- }>;
407
- export declare const unitConfigRoundingMode: z.ZodEnum<{
408
- none: "none";
409
- floor: "floor";
410
- ceiling: "ceiling";
411
- half_up: "half_up";
412
- }>;
413
413
  export declare const priceType: z.ZodEnum<{
414
414
  flat: "flat";
415
415
  unit: "unit";
@@ -1294,6 +1294,21 @@ export declare const createCurrencyCustomRequest: z.ZodObject<{
1294
1294
  symbol: z.ZodOptional<z.ZodString>;
1295
1295
  code: z.ZodString;
1296
1296
  }, z.core.$strip>;
1297
+ export declare const unitConfig: z.ZodObject<{
1298
+ operation: z.ZodEnum<{
1299
+ multiply: "multiply";
1300
+ divide: "divide";
1301
+ }>;
1302
+ conversion_factor: z.ZodString;
1303
+ rounding: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
1304
+ none: "none";
1305
+ floor: "floor";
1306
+ ceiling: "ceiling";
1307
+ half_up: "half_up";
1308
+ }>>>;
1309
+ precision: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1310
+ display_unit: z.ZodOptional<z.ZodString>;
1311
+ }, z.core.$strip>;
1297
1312
  export declare const governanceQueryRequest: z.ZodObject<{
1298
1313
  include_credits: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1299
1314
  customer: z.ZodObject<{
@@ -1323,21 +1338,6 @@ export declare const governanceQueryError: z.ZodObject<{
1323
1338
  attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1324
1339
  customer: z.ZodOptional<z.ZodString>;
1325
1340
  }, z.core.$strip>;
1326
- export declare const unitConfig: z.ZodObject<{
1327
- operation: z.ZodEnum<{
1328
- multiply: "multiply";
1329
- divide: "divide";
1330
- }>;
1331
- conversion_factor: z.ZodString;
1332
- rounding: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
1333
- none: "none";
1334
- floor: "floor";
1335
- ceiling: "ceiling";
1336
- half_up: "half_up";
1337
- }>>>;
1338
- precision: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1339
- display_unit: z.ZodOptional<z.ZodString>;
1340
- }, z.core.$strip>;
1341
1341
  export declare const appCustomerData: z.ZodObject<{
1342
1342
  stripe: z.ZodOptional<z.ZodObject<{
1343
1343
  customer_id: z.ZodOptional<z.ZodString>;
@@ -2549,20 +2549,6 @@ export declare const currency: z.ZodDiscriminatedUnion<[z.ZodObject<{
2549
2549
  code: z.ZodString;
2550
2550
  created_at: z.ZodString;
2551
2551
  }, z.core.$strip>], "type">;
2552
- export declare const governanceFeatureAccess: z.ZodObject<{
2553
- has_access: z.ZodBoolean;
2554
- reason: z.ZodOptional<z.ZodObject<{
2555
- code: z.ZodEnum<{
2556
- unknown: "unknown";
2557
- usage_limit_reached: "usage_limit_reached";
2558
- feature_unavailable: "feature_unavailable";
2559
- feature_not_found: "feature_not_found";
2560
- no_credit_available: "no_credit_available";
2561
- }>;
2562
- message: z.ZodString;
2563
- attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2564
- }, z.core.$strip>>;
2565
- }, z.core.$strip>;
2566
2552
  export declare const invoiceUsageQuantityDetail: z.ZodObject<{
2567
2553
  raw_quantity: z.ZodString;
2568
2554
  converted_quantity: z.ZodString;
@@ -2584,6 +2570,20 @@ export declare const invoiceUsageQuantityDetail: z.ZodObject<{
2584
2570
  display_unit: z.ZodOptional<z.ZodString>;
2585
2571
  }, z.core.$strip>;
2586
2572
  }, z.core.$strip>;
2573
+ export declare const governanceFeatureAccess: z.ZodObject<{
2574
+ has_access: z.ZodBoolean;
2575
+ reason: z.ZodOptional<z.ZodObject<{
2576
+ code: z.ZodEnum<{
2577
+ unknown: "unknown";
2578
+ usage_limit_reached: "usage_limit_reached";
2579
+ feature_unavailable: "feature_unavailable";
2580
+ feature_not_found: "feature_not_found";
2581
+ no_credit_available: "no_credit_available";
2582
+ }>;
2583
+ message: z.ZodString;
2584
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2585
+ }, z.core.$strip>>;
2586
+ }, z.core.$strip>;
2587
2587
  export declare const customerData: z.ZodObject<{
2588
2588
  billing_profile: z.ZodOptional<z.ZodObject<{
2589
2589
  id: z.ZodString;
@@ -4611,6 +4611,21 @@ export declare const rateCard: z.ZodObject<{
4611
4611
  }, z.core.$strip>>;
4612
4612
  }, z.core.$strip>>;
4613
4613
  }, z.core.$strip>], "type">;
4614
+ unit_config: z.ZodOptional<z.ZodObject<{
4615
+ operation: z.ZodEnum<{
4616
+ multiply: "multiply";
4617
+ divide: "divide";
4618
+ }>;
4619
+ conversion_factor: z.ZodString;
4620
+ rounding: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
4621
+ none: "none";
4622
+ floor: "floor";
4623
+ ceiling: "ceiling";
4624
+ half_up: "half_up";
4625
+ }>>>;
4626
+ precision: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
4627
+ display_unit: z.ZodOptional<z.ZodString>;
4628
+ }, z.core.$strip>>;
4614
4629
  payment_term: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>>;
4615
4630
  commitments: z.ZodOptional<z.ZodObject<{
4616
4631
  minimum_amount: z.ZodOptional<z.ZodString>;
@@ -5203,6 +5218,21 @@ export declare const planPhase: z.ZodObject<{
5203
5218
  }, z.core.$strip>>;
5204
5219
  }, z.core.$strip>>;
5205
5220
  }, z.core.$strip>], "type">;
5221
+ unit_config: z.ZodOptional<z.ZodObject<{
5222
+ operation: z.ZodEnum<{
5223
+ multiply: "multiply";
5224
+ divide: "divide";
5225
+ }>;
5226
+ conversion_factor: z.ZodString;
5227
+ rounding: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
5228
+ none: "none";
5229
+ floor: "floor";
5230
+ ceiling: "ceiling";
5231
+ half_up: "half_up";
5232
+ }>>>;
5233
+ precision: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
5234
+ display_unit: z.ZodOptional<z.ZodString>;
5235
+ }, z.core.$strip>>;
5206
5236
  payment_term: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>>;
5207
5237
  commitments: z.ZodOptional<z.ZodObject<{
5208
5238
  minimum_amount: z.ZodOptional<z.ZodString>;
@@ -5300,6 +5330,21 @@ export declare const addon: z.ZodObject<{
5300
5330
  }, z.core.$strip>>;
5301
5331
  }, z.core.$strip>>;
5302
5332
  }, z.core.$strip>], "type">;
5333
+ unit_config: z.ZodOptional<z.ZodObject<{
5334
+ operation: z.ZodEnum<{
5335
+ multiply: "multiply";
5336
+ divide: "divide";
5337
+ }>;
5338
+ conversion_factor: z.ZodString;
5339
+ rounding: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
5340
+ none: "none";
5341
+ floor: "floor";
5342
+ ceiling: "ceiling";
5343
+ half_up: "half_up";
5344
+ }>>>;
5345
+ precision: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
5346
+ display_unit: z.ZodOptional<z.ZodString>;
5347
+ }, z.core.$strip>>;
5303
5348
  payment_term: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>>;
5304
5349
  commitments: z.ZodOptional<z.ZodObject<{
5305
5350
  minimum_amount: z.ZodOptional<z.ZodString>;
@@ -5391,6 +5436,21 @@ export declare const createAddonRequest: z.ZodObject<{
5391
5436
  }, z.core.$strip>>;
5392
5437
  }, z.core.$strip>>;
5393
5438
  }, z.core.$strip>], "type">;
5439
+ unit_config: z.ZodOptional<z.ZodObject<{
5440
+ operation: z.ZodEnum<{
5441
+ multiply: "multiply";
5442
+ divide: "divide";
5443
+ }>;
5444
+ conversion_factor: z.ZodString;
5445
+ rounding: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
5446
+ none: "none";
5447
+ floor: "floor";
5448
+ ceiling: "ceiling";
5449
+ half_up: "half_up";
5450
+ }>>>;
5451
+ precision: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
5452
+ display_unit: z.ZodOptional<z.ZodString>;
5453
+ }, z.core.$strip>>;
5394
5454
  payment_term: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>>;
5395
5455
  commitments: z.ZodOptional<z.ZodObject<{
5396
5456
  minimum_amount: z.ZodOptional<z.ZodString>;
@@ -5474,6 +5534,21 @@ export declare const upsertAddonRequest: z.ZodObject<{
5474
5534
  }, z.core.$strip>>;
5475
5535
  }, z.core.$strip>>;
5476
5536
  }, z.core.$strip>], "type">;
5537
+ unit_config: z.ZodOptional<z.ZodObject<{
5538
+ operation: z.ZodEnum<{
5539
+ multiply: "multiply";
5540
+ divide: "divide";
5541
+ }>;
5542
+ conversion_factor: z.ZodString;
5543
+ rounding: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
5544
+ none: "none";
5545
+ floor: "floor";
5546
+ ceiling: "ceiling";
5547
+ half_up: "half_up";
5548
+ }>>>;
5549
+ precision: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
5550
+ display_unit: z.ZodOptional<z.ZodString>;
5551
+ }, z.core.$strip>>;
5477
5552
  payment_term: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>>;
5478
5553
  commitments: z.ZodOptional<z.ZodObject<{
5479
5554
  minimum_amount: z.ZodOptional<z.ZodString>;
@@ -6074,6 +6149,21 @@ export declare const plan: z.ZodObject<{
6074
6149
  }, z.core.$strip>>;
6075
6150
  }, z.core.$strip>>;
6076
6151
  }, z.core.$strip>], "type">;
6152
+ unit_config: z.ZodOptional<z.ZodObject<{
6153
+ operation: z.ZodEnum<{
6154
+ multiply: "multiply";
6155
+ divide: "divide";
6156
+ }>;
6157
+ conversion_factor: z.ZodString;
6158
+ rounding: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
6159
+ none: "none";
6160
+ floor: "floor";
6161
+ ceiling: "ceiling";
6162
+ half_up: "half_up";
6163
+ }>>>;
6164
+ precision: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
6165
+ display_unit: z.ZodOptional<z.ZodString>;
6166
+ }, z.core.$strip>>;
6077
6167
  payment_term: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>>;
6078
6168
  commitments: z.ZodOptional<z.ZodObject<{
6079
6169
  minimum_amount: z.ZodOptional<z.ZodString>;
@@ -6174,6 +6264,21 @@ export declare const createPlanRequest: z.ZodObject<{
6174
6264
  }, z.core.$strip>>;
6175
6265
  }, z.core.$strip>>;
6176
6266
  }, z.core.$strip>], "type">;
6267
+ unit_config: z.ZodOptional<z.ZodObject<{
6268
+ operation: z.ZodEnum<{
6269
+ multiply: "multiply";
6270
+ divide: "divide";
6271
+ }>;
6272
+ conversion_factor: z.ZodString;
6273
+ rounding: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
6274
+ none: "none";
6275
+ floor: "floor";
6276
+ ceiling: "ceiling";
6277
+ half_up: "half_up";
6278
+ }>>>;
6279
+ precision: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
6280
+ display_unit: z.ZodOptional<z.ZodString>;
6281
+ }, z.core.$strip>>;
6177
6282
  payment_term: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>>;
6178
6283
  commitments: z.ZodOptional<z.ZodObject<{
6179
6284
  minimum_amount: z.ZodOptional<z.ZodString>;
@@ -6261,6 +6366,21 @@ export declare const upsertPlanRequest: z.ZodObject<{
6261
6366
  }, z.core.$strip>>;
6262
6367
  }, z.core.$strip>>;
6263
6368
  }, z.core.$strip>], "type">;
6369
+ unit_config: z.ZodOptional<z.ZodObject<{
6370
+ operation: z.ZodEnum<{
6371
+ multiply: "multiply";
6372
+ divide: "divide";
6373
+ }>;
6374
+ conversion_factor: z.ZodString;
6375
+ rounding: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
6376
+ none: "none";
6377
+ floor: "floor";
6378
+ ceiling: "ceiling";
6379
+ half_up: "half_up";
6380
+ }>>>;
6381
+ precision: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
6382
+ display_unit: z.ZodOptional<z.ZodString>;
6383
+ }, z.core.$strip>>;
6264
6384
  payment_term: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>>;
6265
6385
  commitments: z.ZodOptional<z.ZodObject<{
6266
6386
  minimum_amount: z.ZodOptional<z.ZodString>;
@@ -6360,6 +6480,21 @@ export declare const addonPagePaginatedResponse: z.ZodObject<{
6360
6480
  }, z.core.$strip>>;
6361
6481
  }, z.core.$strip>>;
6362
6482
  }, z.core.$strip>], "type">;
6483
+ unit_config: z.ZodOptional<z.ZodObject<{
6484
+ operation: z.ZodEnum<{
6485
+ multiply: "multiply";
6486
+ divide: "divide";
6487
+ }>;
6488
+ conversion_factor: z.ZodString;
6489
+ rounding: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
6490
+ none: "none";
6491
+ floor: "floor";
6492
+ ceiling: "ceiling";
6493
+ half_up: "half_up";
6494
+ }>>>;
6495
+ precision: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
6496
+ display_unit: z.ZodOptional<z.ZodString>;
6497
+ }, z.core.$strip>>;
6363
6498
  payment_term: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>>;
6364
6499
  commitments: z.ZodOptional<z.ZodObject<{
6365
6500
  minimum_amount: z.ZodOptional<z.ZodString>;
@@ -6571,6 +6706,21 @@ export declare const planPagePaginatedResponse: z.ZodObject<{
6571
6706
  }, z.core.$strip>>;
6572
6707
  }, z.core.$strip>>;
6573
6708
  }, z.core.$strip>], "type">;
6709
+ unit_config: z.ZodOptional<z.ZodObject<{
6710
+ operation: z.ZodEnum<{
6711
+ multiply: "multiply";
6712
+ divide: "divide";
6713
+ }>;
6714
+ conversion_factor: z.ZodString;
6715
+ rounding: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
6716
+ none: "none";
6717
+ floor: "floor";
6718
+ ceiling: "ceiling";
6719
+ half_up: "half_up";
6720
+ }>>>;
6721
+ precision: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
6722
+ display_unit: z.ZodOptional<z.ZodString>;
6723
+ }, z.core.$strip>>;
6574
6724
  payment_term: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>>;
6575
6725
  commitments: z.ZodOptional<z.ZodObject<{
6576
6726
  minimum_amount: z.ZodOptional<z.ZodString>;
@@ -10552,6 +10702,21 @@ export declare const listPlansResponse: z.ZodObject<{
10552
10702
  }, z.core.$strip>>;
10553
10703
  }, z.core.$strip>>;
10554
10704
  }, z.core.$strip>], "type">;
10705
+ unit_config: z.ZodOptional<z.ZodObject<{
10706
+ operation: z.ZodEnum<{
10707
+ multiply: "multiply";
10708
+ divide: "divide";
10709
+ }>;
10710
+ conversion_factor: z.ZodString;
10711
+ rounding: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
10712
+ none: "none";
10713
+ floor: "floor";
10714
+ ceiling: "ceiling";
10715
+ half_up: "half_up";
10716
+ }>>>;
10717
+ precision: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
10718
+ display_unit: z.ZodOptional<z.ZodString>;
10719
+ }, z.core.$strip>>;
10555
10720
  payment_term: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>>;
10556
10721
  commitments: z.ZodOptional<z.ZodObject<{
10557
10722
  minimum_amount: z.ZodOptional<z.ZodString>;
@@ -10660,6 +10825,21 @@ export declare const createPlanBody: z.ZodObject<{
10660
10825
  }, z.core.$strip>>;
10661
10826
  }, z.core.$strip>>;
10662
10827
  }, z.core.$strip>], "type">;
10828
+ unit_config: z.ZodOptional<z.ZodObject<{
10829
+ operation: z.ZodEnum<{
10830
+ multiply: "multiply";
10831
+ divide: "divide";
10832
+ }>;
10833
+ conversion_factor: z.ZodString;
10834
+ rounding: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
10835
+ none: "none";
10836
+ floor: "floor";
10837
+ ceiling: "ceiling";
10838
+ half_up: "half_up";
10839
+ }>>>;
10840
+ precision: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
10841
+ display_unit: z.ZodOptional<z.ZodString>;
10842
+ }, z.core.$strip>>;
10663
10843
  payment_term: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>>;
10664
10844
  commitments: z.ZodOptional<z.ZodObject<{
10665
10845
  minimum_amount: z.ZodOptional<z.ZodString>;
@@ -10763,6 +10943,21 @@ export declare const createPlanResponse: z.ZodObject<{
10763
10943
  }, z.core.$strip>>;
10764
10944
  }, z.core.$strip>>;
10765
10945
  }, z.core.$strip>], "type">;
10946
+ unit_config: z.ZodOptional<z.ZodObject<{
10947
+ operation: z.ZodEnum<{
10948
+ multiply: "multiply";
10949
+ divide: "divide";
10950
+ }>;
10951
+ conversion_factor: z.ZodString;
10952
+ rounding: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
10953
+ none: "none";
10954
+ floor: "floor";
10955
+ ceiling: "ceiling";
10956
+ half_up: "half_up";
10957
+ }>>>;
10958
+ precision: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
10959
+ display_unit: z.ZodOptional<z.ZodString>;
10960
+ }, z.core.$strip>>;
10766
10961
  payment_term: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>>;
10767
10962
  commitments: z.ZodOptional<z.ZodObject<{
10768
10963
  minimum_amount: z.ZodOptional<z.ZodString>;
@@ -10863,6 +11058,21 @@ export declare const updatePlanBody: z.ZodObject<{
10863
11058
  }, z.core.$strip>>;
10864
11059
  }, z.core.$strip>>;
10865
11060
  }, z.core.$strip>], "type">;
11061
+ unit_config: z.ZodOptional<z.ZodObject<{
11062
+ operation: z.ZodEnum<{
11063
+ multiply: "multiply";
11064
+ divide: "divide";
11065
+ }>;
11066
+ conversion_factor: z.ZodString;
11067
+ rounding: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
11068
+ none: "none";
11069
+ floor: "floor";
11070
+ ceiling: "ceiling";
11071
+ half_up: "half_up";
11072
+ }>>>;
11073
+ precision: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
11074
+ display_unit: z.ZodOptional<z.ZodString>;
11075
+ }, z.core.$strip>>;
10866
11076
  payment_term: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>>;
10867
11077
  commitments: z.ZodOptional<z.ZodObject<{
10868
11078
  minimum_amount: z.ZodOptional<z.ZodString>;
@@ -10966,6 +11176,21 @@ export declare const updatePlanResponse: z.ZodObject<{
10966
11176
  }, z.core.$strip>>;
10967
11177
  }, z.core.$strip>>;
10968
11178
  }, z.core.$strip>], "type">;
11179
+ unit_config: z.ZodOptional<z.ZodObject<{
11180
+ operation: z.ZodEnum<{
11181
+ multiply: "multiply";
11182
+ divide: "divide";
11183
+ }>;
11184
+ conversion_factor: z.ZodString;
11185
+ rounding: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
11186
+ none: "none";
11187
+ floor: "floor";
11188
+ ceiling: "ceiling";
11189
+ half_up: "half_up";
11190
+ }>>>;
11191
+ precision: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
11192
+ display_unit: z.ZodOptional<z.ZodString>;
11193
+ }, z.core.$strip>>;
10969
11194
  payment_term: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>>;
10970
11195
  commitments: z.ZodOptional<z.ZodObject<{
10971
11196
  minimum_amount: z.ZodOptional<z.ZodString>;
@@ -11082,6 +11307,21 @@ export declare const getPlanResponse: z.ZodObject<{
11082
11307
  }, z.core.$strip>>;
11083
11308
  }, z.core.$strip>>;
11084
11309
  }, z.core.$strip>], "type">;
11310
+ unit_config: z.ZodOptional<z.ZodObject<{
11311
+ operation: z.ZodEnum<{
11312
+ multiply: "multiply";
11313
+ divide: "divide";
11314
+ }>;
11315
+ conversion_factor: z.ZodString;
11316
+ rounding: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
11317
+ none: "none";
11318
+ floor: "floor";
11319
+ ceiling: "ceiling";
11320
+ half_up: "half_up";
11321
+ }>>>;
11322
+ precision: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
11323
+ display_unit: z.ZodOptional<z.ZodString>;
11324
+ }, z.core.$strip>>;
11085
11325
  payment_term: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>>;
11086
11326
  commitments: z.ZodOptional<z.ZodObject<{
11087
11327
  minimum_amount: z.ZodOptional<z.ZodString>;
@@ -11201,6 +11441,21 @@ export declare const archivePlanResponse: z.ZodObject<{
11201
11441
  }, z.core.$strip>>;
11202
11442
  }, z.core.$strip>>;
11203
11443
  }, z.core.$strip>], "type">;
11444
+ unit_config: z.ZodOptional<z.ZodObject<{
11445
+ operation: z.ZodEnum<{
11446
+ multiply: "multiply";
11447
+ divide: "divide";
11448
+ }>;
11449
+ conversion_factor: z.ZodString;
11450
+ rounding: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
11451
+ none: "none";
11452
+ floor: "floor";
11453
+ ceiling: "ceiling";
11454
+ half_up: "half_up";
11455
+ }>>>;
11456
+ precision: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
11457
+ display_unit: z.ZodOptional<z.ZodString>;
11458
+ }, z.core.$strip>>;
11204
11459
  payment_term: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>>;
11205
11460
  commitments: z.ZodOptional<z.ZodObject<{
11206
11461
  minimum_amount: z.ZodOptional<z.ZodString>;
@@ -11317,6 +11572,21 @@ export declare const publishPlanResponse: z.ZodObject<{
11317
11572
  }, z.core.$strip>>;
11318
11573
  }, z.core.$strip>>;
11319
11574
  }, z.core.$strip>], "type">;
11575
+ unit_config: z.ZodOptional<z.ZodObject<{
11576
+ operation: z.ZodEnum<{
11577
+ multiply: "multiply";
11578
+ divide: "divide";
11579
+ }>;
11580
+ conversion_factor: z.ZodString;
11581
+ rounding: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
11582
+ none: "none";
11583
+ floor: "floor";
11584
+ ceiling: "ceiling";
11585
+ half_up: "half_up";
11586
+ }>>>;
11587
+ precision: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
11588
+ display_unit: z.ZodOptional<z.ZodString>;
11589
+ }, z.core.$strip>>;
11320
11590
  payment_term: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>>;
11321
11591
  commitments: z.ZodOptional<z.ZodObject<{
11322
11592
  minimum_amount: z.ZodOptional<z.ZodString>;
@@ -11477,6 +11747,21 @@ export declare const listAddonsResponse: z.ZodObject<{
11477
11747
  }, z.core.$strip>>;
11478
11748
  }, z.core.$strip>>;
11479
11749
  }, z.core.$strip>], "type">;
11750
+ unit_config: z.ZodOptional<z.ZodObject<{
11751
+ operation: z.ZodEnum<{
11752
+ multiply: "multiply";
11753
+ divide: "divide";
11754
+ }>;
11755
+ conversion_factor: z.ZodString;
11756
+ rounding: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
11757
+ none: "none";
11758
+ floor: "floor";
11759
+ ceiling: "ceiling";
11760
+ half_up: "half_up";
11761
+ }>>>;
11762
+ precision: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
11763
+ display_unit: z.ZodOptional<z.ZodString>;
11764
+ }, z.core.$strip>>;
11480
11765
  payment_term: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>>;
11481
11766
  commitments: z.ZodOptional<z.ZodObject<{
11482
11767
  minimum_amount: z.ZodOptional<z.ZodString>;
@@ -11576,6 +11861,21 @@ export declare const createAddonBody: z.ZodObject<{
11576
11861
  }, z.core.$strip>>;
11577
11862
  }, z.core.$strip>>;
11578
11863
  }, z.core.$strip>], "type">;
11864
+ unit_config: z.ZodOptional<z.ZodObject<{
11865
+ operation: z.ZodEnum<{
11866
+ multiply: "multiply";
11867
+ divide: "divide";
11868
+ }>;
11869
+ conversion_factor: z.ZodString;
11870
+ rounding: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
11871
+ none: "none";
11872
+ floor: "floor";
11873
+ ceiling: "ceiling";
11874
+ half_up: "half_up";
11875
+ }>>>;
11876
+ precision: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
11877
+ display_unit: z.ZodOptional<z.ZodString>;
11878
+ }, z.core.$strip>>;
11579
11879
  payment_term: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>>;
11580
11880
  commitments: z.ZodOptional<z.ZodObject<{
11581
11881
  minimum_amount: z.ZodOptional<z.ZodString>;
@@ -11673,6 +11973,21 @@ export declare const createAddonResponse: z.ZodObject<{
11673
11973
  }, z.core.$strip>>;
11674
11974
  }, z.core.$strip>>;
11675
11975
  }, z.core.$strip>], "type">;
11976
+ unit_config: z.ZodOptional<z.ZodObject<{
11977
+ operation: z.ZodEnum<{
11978
+ multiply: "multiply";
11979
+ divide: "divide";
11980
+ }>;
11981
+ conversion_factor: z.ZodString;
11982
+ rounding: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
11983
+ none: "none";
11984
+ floor: "floor";
11985
+ ceiling: "ceiling";
11986
+ half_up: "half_up";
11987
+ }>>>;
11988
+ precision: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
11989
+ display_unit: z.ZodOptional<z.ZodString>;
11990
+ }, z.core.$strip>>;
11676
11991
  payment_term: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>>;
11677
11992
  commitments: z.ZodOptional<z.ZodObject<{
11678
11993
  minimum_amount: z.ZodOptional<z.ZodString>;
@@ -11765,6 +12080,21 @@ export declare const updateAddonBody: z.ZodObject<{
11765
12080
  }, z.core.$strip>>;
11766
12081
  }, z.core.$strip>>;
11767
12082
  }, z.core.$strip>], "type">;
12083
+ unit_config: z.ZodOptional<z.ZodObject<{
12084
+ operation: z.ZodEnum<{
12085
+ multiply: "multiply";
12086
+ divide: "divide";
12087
+ }>;
12088
+ conversion_factor: z.ZodString;
12089
+ rounding: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
12090
+ none: "none";
12091
+ floor: "floor";
12092
+ ceiling: "ceiling";
12093
+ half_up: "half_up";
12094
+ }>>>;
12095
+ precision: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
12096
+ display_unit: z.ZodOptional<z.ZodString>;
12097
+ }, z.core.$strip>>;
11768
12098
  payment_term: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>>;
11769
12099
  commitments: z.ZodOptional<z.ZodObject<{
11770
12100
  minimum_amount: z.ZodOptional<z.ZodString>;
@@ -11862,6 +12192,21 @@ export declare const updateAddonResponse: z.ZodObject<{
11862
12192
  }, z.core.$strip>>;
11863
12193
  }, z.core.$strip>>;
11864
12194
  }, z.core.$strip>], "type">;
12195
+ unit_config: z.ZodOptional<z.ZodObject<{
12196
+ operation: z.ZodEnum<{
12197
+ multiply: "multiply";
12198
+ divide: "divide";
12199
+ }>;
12200
+ conversion_factor: z.ZodString;
12201
+ rounding: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
12202
+ none: "none";
12203
+ floor: "floor";
12204
+ ceiling: "ceiling";
12205
+ half_up: "half_up";
12206
+ }>>>;
12207
+ precision: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
12208
+ display_unit: z.ZodOptional<z.ZodString>;
12209
+ }, z.core.$strip>>;
11865
12210
  payment_term: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>>;
11866
12211
  commitments: z.ZodOptional<z.ZodObject<{
11867
12212
  minimum_amount: z.ZodOptional<z.ZodString>;
@@ -11968,6 +12313,21 @@ export declare const getAddonResponse: z.ZodObject<{
11968
12313
  }, z.core.$strip>>;
11969
12314
  }, z.core.$strip>>;
11970
12315
  }, z.core.$strip>], "type">;
12316
+ unit_config: z.ZodOptional<z.ZodObject<{
12317
+ operation: z.ZodEnum<{
12318
+ multiply: "multiply";
12319
+ divide: "divide";
12320
+ }>;
12321
+ conversion_factor: z.ZodString;
12322
+ rounding: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
12323
+ none: "none";
12324
+ floor: "floor";
12325
+ ceiling: "ceiling";
12326
+ half_up: "half_up";
12327
+ }>>>;
12328
+ precision: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
12329
+ display_unit: z.ZodOptional<z.ZodString>;
12330
+ }, z.core.$strip>>;
11971
12331
  payment_term: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>>;
11972
12332
  commitments: z.ZodOptional<z.ZodObject<{
11973
12333
  minimum_amount: z.ZodOptional<z.ZodString>;
@@ -12077,6 +12437,21 @@ export declare const archiveAddonResponse: z.ZodObject<{
12077
12437
  }, z.core.$strip>>;
12078
12438
  }, z.core.$strip>>;
12079
12439
  }, z.core.$strip>], "type">;
12440
+ unit_config: z.ZodOptional<z.ZodObject<{
12441
+ operation: z.ZodEnum<{
12442
+ multiply: "multiply";
12443
+ divide: "divide";
12444
+ }>;
12445
+ conversion_factor: z.ZodString;
12446
+ rounding: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
12447
+ none: "none";
12448
+ floor: "floor";
12449
+ ceiling: "ceiling";
12450
+ half_up: "half_up";
12451
+ }>>>;
12452
+ precision: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
12453
+ display_unit: z.ZodOptional<z.ZodString>;
12454
+ }, z.core.$strip>>;
12080
12455
  payment_term: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>>;
12081
12456
  commitments: z.ZodOptional<z.ZodObject<{
12082
12457
  minimum_amount: z.ZodOptional<z.ZodString>;
@@ -12183,6 +12558,21 @@ export declare const publishAddonResponse: z.ZodObject<{
12183
12558
  }, z.core.$strip>>;
12184
12559
  }, z.core.$strip>>;
12185
12560
  }, z.core.$strip>], "type">;
12561
+ unit_config: z.ZodOptional<z.ZodObject<{
12562
+ operation: z.ZodEnum<{
12563
+ multiply: "multiply";
12564
+ divide: "divide";
12565
+ }>;
12566
+ conversion_factor: z.ZodString;
12567
+ rounding: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
12568
+ none: "none";
12569
+ floor: "floor";
12570
+ ceiling: "ceiling";
12571
+ half_up: "half_up";
12572
+ }>>>;
12573
+ precision: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
12574
+ display_unit: z.ZodOptional<z.ZodString>;
12575
+ }, z.core.$strip>>;
12186
12576
  payment_term: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>>;
12187
12577
  commitments: z.ZodOptional<z.ZodObject<{
12188
12578
  minimum_amount: z.ZodOptional<z.ZodString>;
@@ -568,6 +568,12 @@ 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 unitConfigOperation = z
572
+ .enum(['divide', 'multiply'])
573
+ .describe('The arithmetic operation used to convert raw metered units into billing units. - `divide`: Divide the metered quantity by the conversion factor (e.g., bytes ÷ 1e9 = GB). - `multiply`: Multiply the metered quantity by the conversion factor (e.g., cost × 1.2 = cost + 20% margin).');
574
+ export const unitConfigRoundingMode = z
575
+ .enum(['ceiling', 'floor', 'half_up', 'none'])
576
+ .describe('The rounding mode applied to the converted quantity for invoicing. Rounding is applied only to the invoiced quantity. Entitlement balance checks use the precise decimal value after conversion. - `ceiling`: Round up to the next integer (typical for package-style billing). - `floor`: Round down to the previous integer. - `half_up`: Round to the nearest integer, with 0.5 rounding up. - `none`: No rounding; the converted value is used as-is.');
571
577
  export const rateCardStaticEntitlement = z
572
578
  .object({
573
579
  type: z.literal('static').describe('The type of the entitlement template.'),
@@ -813,12 +819,6 @@ export const collectionAlignment = z
813
819
  export const collectionMethod = z
814
820
  .enum(['charge_automatically', 'send_invoice'])
815
821
  .describe('Collection method specifies how the invoice should be collected (automatic or manual).');
816
- export const unitConfigOperation = z
817
- .enum(['divide', 'multiply'])
818
- .describe('The arithmetic operation used to convert raw metered units into billing units. - `divide`: Divide the metered quantity by the conversion factor (e.g., bytes ÷ 1e9 = GB). - `multiply`: Multiply the metered quantity by the conversion factor (e.g., cost × 1.2 = cost + 20% margin).');
819
- export const unitConfigRoundingMode = z
820
- .enum(['ceiling', 'floor', 'half_up', 'none'])
821
- .describe('The rounding mode applied to the converted quantity for invoicing. Rounding is applied only to the invoiced quantity. Entitlement balance checks use the precise decimal value after conversion. - `ceiling`: Round up to the next integer (typical for package-style billing). - `floor`: Round down to the previous integer. - `half_up`: Round to the nearest integer, with 0.5 rounding up. - `none`: No rounding; the converted value is used as-is.');
822
822
  export const priceType = z
823
823
  .enum(['free', 'flat', 'unit', 'graduated', 'volume'])
824
824
  .describe("The type of the price. - `free`: No charge, the rate card is included at no cost. - `flat`: A fixed amount charged once per billing period, regardless of usage. - `unit`: A fixed rate charged per billing unit consumed. - `graduated`: Tiered pricing where each tier's rate applies only to usage within that tier. - `volume`: Tiered pricing where the rate for the highest tier reached applies to all units in the period.");
@@ -1892,6 +1892,23 @@ export const createCurrencyCustomRequest = z
1892
1892
  code: currencyCodeCustom,
1893
1893
  })
1894
1894
  .describe('CurrencyCustom create request.');
1895
+ export const unitConfig = z
1896
+ .object({
1897
+ operation: unitConfigOperation,
1898
+ conversion_factor: numeric,
1899
+ rounding: unitConfigRoundingMode.optional().default('none'),
1900
+ precision: z
1901
+ .number()
1902
+ .int()
1903
+ .optional()
1904
+ .default(0)
1905
+ .describe('The number of decimal places to retain after rounding. Only meaningful when rounding is not "none". Defaults to 0 (round to whole numbers).'),
1906
+ display_unit: z
1907
+ .string()
1908
+ .optional()
1909
+ .describe('A human-readable label for the converted unit shown on invoices and in the customer portal (e.g., "GB", "hours", "M tokens"). Optional. When omitted, no unit label is rendered.'),
1910
+ })
1911
+ .describe('Unit conversion configuration. Transforms raw metered quantities into billing-ready units before pricing and entitlement evaluation. Applied at the rate card level so the same feature can be billed in different units across plans. Examples: - Meter bytes, bill GB: operation=divide, conversionFactor=1e9, rounding=ceiling, displayUnit="GB" - Meter seconds, bill hours: operation=divide, conversionFactor=3600, rounding=ceiling, displayUnit="hours" - Cost + 20% margin: operation=multiply, conversionFactor=1.2 - Bill per million tokens: operation=divide, conversionFactor=1e6, rounding=ceiling, displayUnit="M" v1 equivalents: - DynamicPrice(multiplier): operation=multiply, conversionFactor=multiplier + UnitPrice(amount=1) - PackagePrice(amount, quantityPerPkg): operation=divide, conversionFactor=quantityPerPkg, rounding=ceiling + UnitPrice(amount)');
1895
1912
  export const governanceQueryRequest = z
1896
1913
  .object({
1897
1914
  include_credits: z
@@ -1927,23 +1944,6 @@ export const governanceQueryError = z
1927
1944
  .describe('The customer identifier from the request that produced this error.'),
1928
1945
  })
1929
1946
  .describe('Query error within a partially successful governance query response.');
1930
- export const unitConfig = z
1931
- .object({
1932
- operation: unitConfigOperation,
1933
- conversion_factor: numeric,
1934
- rounding: unitConfigRoundingMode.optional().default('none'),
1935
- precision: z
1936
- .number()
1937
- .int()
1938
- .optional()
1939
- .default(0)
1940
- .describe('The number of decimal places to retain after rounding. Only meaningful when rounding is not "none". Defaults to 0 (round to whole numbers).'),
1941
- display_unit: z
1942
- .string()
1943
- .optional()
1944
- .describe('A human-readable label for the converted unit shown on invoices and in the customer portal (e.g., "GB", "hours", "M tokens"). Optional. When omitted, no unit label is rendered.'),
1945
- })
1946
- .describe('Unit conversion configuration. Transforms raw metered quantities into billing-ready units before pricing and entitlement evaluation. Applied at the rate card level so the same feature can be billed in different units across plans. Examples: - Meter bytes, bill GB: operation=divide, conversionFactor=1e9, rounding=ceiling, displayUnit="GB" - Meter seconds, bill hours: operation=divide, conversionFactor=3600, rounding=ceiling, displayUnit="hours" - Cost + 20% margin: operation=multiply, conversionFactor=1.2 - Bill per million tokens: operation=divide, conversionFactor=1e6, rounding=ceiling, displayUnit="M" v1 equivalents: - DynamicPrice(multiplier): operation=multiply, conversionFactor=multiplier + UnitPrice(amount=1) - PackagePrice(amount, quantityPerPkg): operation=divide, conversionFactor=quantityPerPkg, rounding=ceiling + UnitPrice(amount)');
1947
1947
  export const appCustomerData = z
1948
1948
  .object({
1949
1949
  stripe: appCustomerDataStripe.optional(),
@@ -2655,14 +2655,6 @@ export const upsertTaxCodeRequest = z
2655
2655
  export const currency = z
2656
2656
  .discriminatedUnion('type', [currencyFiat, currencyCustom])
2657
2657
  .describe('Fiat or custom currency.');
2658
- export const governanceFeatureAccess = z
2659
- .object({
2660
- has_access: z
2661
- .boolean()
2662
- .describe('Whether the customer currently has access to the feature. `true` for boolean and static entitlements that are available, and for metered entitlements with remaining balance. `false` when the feature is unavailable, the usage limit has been reached, or (when applicable) credits have been exhausted.'),
2663
- reason: governanceFeatureAccessReason.optional(),
2664
- })
2665
- .describe('Access status for a single feature.');
2666
2658
  export const invoiceUsageQuantityDetail = z
2667
2659
  .object({
2668
2660
  raw_quantity: numeric,
@@ -2675,6 +2667,14 @@ export const invoiceUsageQuantityDetail = z
2675
2667
  applied_unit_config: unitConfig,
2676
2668
  })
2677
2669
  .describe('Usage quantity details on an invoice line item when UnitConfig is in effect. Provides the full audit trail from raw meter output to the invoiced amount.');
2670
+ export const governanceFeatureAccess = z
2671
+ .object({
2672
+ has_access: z
2673
+ .boolean()
2674
+ .describe('Whether the customer currently has access to the feature. `true` for boolean and static entitlements that are available, and for metered entitlements with remaining balance. `false` when the feature is unavailable, the usage limit has been reached, or (when applicable) credits have been exhausted.'),
2675
+ reason: governanceFeatureAccessReason.optional(),
2676
+ })
2677
+ .describe('Access status for a single feature.');
2678
2678
  export const customerData = z
2679
2679
  .object({
2680
2680
  billing_profile: profileReference.optional(),
@@ -3228,6 +3228,7 @@ export const rateCard = z
3228
3228
  feature: featureReference.optional(),
3229
3229
  billing_cadence: iso8601Duration.optional(),
3230
3230
  price: price,
3231
+ unit_config: unitConfig.optional(),
3231
3232
  payment_term: pricePaymentTerm.optional().default('in_arrears'),
3232
3233
  commitments: spendCommitments.optional(),
3233
3234
  discounts: rateCardDiscounts.optional(),
@@ -1271,6 +1271,19 @@ export interface CreateCurrencyCustomRequest {
1271
1271
  symbol?: string;
1272
1272
  code: string;
1273
1273
  }
1274
+ /** Unit conversion configuration. Transforms raw metered quantities into billing-ready units before pricing and entitlement evaluation. Applied at the rate card level so the same feature can be billed in different units across plans. Examples: - Meter bytes, bill GB: operation=divide, conversionFactor=1e9, rounding=ceiling, displayUnit="GB" - Meter seconds, bill hours: operation=divide, conversionFactor=3600, rounding=ceiling, displayUnit="hours" - Cost + 20% margin: operation=multiply, conversionFactor=1.2 - Bill per million tokens: operation=divide, conversionFactor=1e6, rounding=ceiling, displayUnit="M" v1 equivalents: - DynamicPrice(multiplier): operation=multiply, conversionFactor=multiplier + UnitPrice(amount=1) - PackagePrice(amount, quantityPerPkg): operation=divide, conversionFactor=quantityPerPkg, rounding=ceiling + UnitPrice(amount) */
1275
+ export interface UnitConfig {
1276
+ /** The arithmetic operation to apply to the raw metered quantity. */
1277
+ operation: 'divide' | 'multiply';
1278
+ /** The factor used in the conversion operation. - For `divide`: `converted = raw / conversionFactor`. - For `multiply`: `converted = raw × conversionFactor`. Must be a positive non-zero value. */
1279
+ conversion_factor: string;
1280
+ /** The rounding mode applied to the converted quantity for invoicing. Defaults to none (no rounding). Entitlement checks always use the precise (unrounded) value. */
1281
+ rounding: 'ceiling' | 'floor' | 'half_up' | 'none';
1282
+ /** The number of decimal places to retain after rounding. Only meaningful when rounding is not "none". Defaults to 0 (round to whole numbers). */
1283
+ precision: number;
1284
+ /** A human-readable label for the converted unit shown on invoices and in the customer portal (e.g., "GB", "hours", "M tokens"). Optional. When omitted, no unit label is rendered. */
1285
+ display_unit?: string;
1286
+ }
1274
1287
  /** Query to evaluate feature access for a list of customers. */
1275
1288
  export interface GovernanceQueryRequest {
1276
1289
  /** Whether to include credit balance availability for each resolved customer. When true, each feature evaluation includes credit balance checks. Defaults to `false`. */
@@ -1298,19 +1311,6 @@ export interface GovernanceQueryError {
1298
1311
  /** The customer identifier from the request that produced this error. */
1299
1312
  customer?: string;
1300
1313
  }
1301
- /** Unit conversion configuration. Transforms raw metered quantities into billing-ready units before pricing and entitlement evaluation. Applied at the rate card level so the same feature can be billed in different units across plans. Examples: - Meter bytes, bill GB: operation=divide, conversionFactor=1e9, rounding=ceiling, displayUnit="GB" - Meter seconds, bill hours: operation=divide, conversionFactor=3600, rounding=ceiling, displayUnit="hours" - Cost + 20% margin: operation=multiply, conversionFactor=1.2 - Bill per million tokens: operation=divide, conversionFactor=1e6, rounding=ceiling, displayUnit="M" v1 equivalents: - DynamicPrice(multiplier): operation=multiply, conversionFactor=multiplier + UnitPrice(amount=1) - PackagePrice(amount, quantityPerPkg): operation=divide, conversionFactor=quantityPerPkg, rounding=ceiling + UnitPrice(amount) */
1302
- export interface UnitConfig {
1303
- /** The arithmetic operation to apply to the raw metered quantity. */
1304
- operation: 'divide' | 'multiply';
1305
- /** The factor used in the conversion operation. - For `divide`: `converted = raw / conversionFactor`. - For `multiply`: `converted = raw × conversionFactor`. Must be a positive non-zero value. */
1306
- conversion_factor: string;
1307
- /** The rounding mode applied to the converted quantity for invoicing. Defaults to none (no rounding). Entitlement checks always use the precise (unrounded) value. */
1308
- rounding: 'ceiling' | 'floor' | 'half_up' | 'none';
1309
- /** The number of decimal places to retain after rounding. Only meaningful when rounding is not "none". Defaults to 0 (round to whole numbers). */
1310
- precision: number;
1311
- /** A human-readable label for the converted unit shown on invoices and in the customer portal (e.g., "GB", "hours", "M tokens"). Optional. When omitted, no unit label is rendered. */
1312
- display_unit?: string;
1313
- }
1314
1314
  /** App customer data. */
1315
1315
  export interface AppCustomerData {
1316
1316
  /** Used if the customer has a linked Stripe app. */
@@ -2210,13 +2210,6 @@ export interface UpsertTaxCodeRequest {
2210
2210
  /** Mapping of app types to tax codes. */
2211
2211
  app_mappings: TaxCodeAppMapping[];
2212
2212
  }
2213
- /** Access status for a single feature. */
2214
- export interface GovernanceFeatureAccess {
2215
- /** Whether the customer currently has access to the feature. `true` for boolean and static entitlements that are available, and for metered entitlements with remaining balance. `false` when the feature is unavailable, the usage limit has been reached, or (when applicable) credits have been exhausted. */
2216
- has_access: boolean;
2217
- /** Optional reason when the customer does not have access to the feature. Populated when `has_access` is `false`. */
2218
- reason?: GovernanceFeatureAccessReason;
2219
- }
2220
2213
  /** Usage quantity details on an invoice line item when UnitConfig is in effect. Provides the full audit trail from raw meter output to the invoiced amount. */
2221
2214
  export interface InvoiceUsageQuantityDetail {
2222
2215
  /** The raw quantity as reported by the meter (native units). */
@@ -2230,6 +2223,13 @@ export interface InvoiceUsageQuantityDetail {
2230
2223
  /** Snapshot of the UnitConfig that was in effect at billing time. Ensures historical invoices reflect the config that was actually applied. */
2231
2224
  applied_unit_config: UnitConfig;
2232
2225
  }
2226
+ /** Access status for a single feature. */
2227
+ export interface GovernanceFeatureAccess {
2228
+ /** Whether the customer currently has access to the feature. `true` for boolean and static entitlements that are available, and for metered entitlements with remaining balance. `false` when the feature is unavailable, the usage limit has been reached, or (when applicable) credits have been exhausted. */
2229
+ has_access: boolean;
2230
+ /** Optional reason when the customer does not have access to the feature. Populated when `has_access` is `false`. */
2231
+ reason?: GovernanceFeatureAccessReason;
2232
+ }
2233
2233
  /** Billing customer data. */
2234
2234
  export interface CustomerData {
2235
2235
  /** The billing profile for the customer. If not provided, the default billing profile will be used. */
@@ -2724,6 +2724,8 @@ export interface RateCard {
2724
2724
  billing_cadence?: string;
2725
2725
  /** The price of the rate card. */
2726
2726
  price: PriceFree | PriceFlat | PriceUnit | PriceGraduated | PriceVolume;
2727
+ /** Unit conversion configuration for the rate card. Synthesized on read for plans authored with v1 dynamic or package prices: dynamic prices map to a unit price with a multiply unit config, and package prices map to a unit price with a divide unit config. Not yet accepted on create or update. */
2728
+ unit_config?: UnitConfig;
2727
2729
  /** The payment term of the rate card. In advance payment term can only be used for flat prices. */
2728
2730
  payment_term: 'in_advance' | 'in_arrears';
2729
2731
  /** Spend commitments for this rate card. Only applicable to usage-based prices (unit, graduated, volume). */
@@ -3086,12 +3088,6 @@ export interface CreditGrantPurchaseInput {
3086
3088
  /** Current payment settlement status. */
3087
3089
  settlement_status?: 'pending' | 'authorized' | 'settled';
3088
3090
  }
3089
- export interface GovernanceQueryRequestInput {
3090
- /** Whether to include credit balance availability for each resolved customer. When true, each feature evaluation includes credit balance checks. Defaults to `false`. */
3091
- include_credits?: boolean;
3092
- customer: GovernanceQueryRequestCustomers;
3093
- feature?: GovernanceQueryRequestFeatures;
3094
- }
3095
3091
  export interface UnitConfigInput {
3096
3092
  /** The arithmetic operation to apply to the raw metered quantity. */
3097
3093
  operation: 'divide' | 'multiply';
@@ -3104,6 +3100,12 @@ export interface UnitConfigInput {
3104
3100
  /** A human-readable label for the converted unit shown on invoices and in the customer portal (e.g., "GB", "hours", "M tokens"). Optional. When omitted, no unit label is rendered. */
3105
3101
  display_unit?: string;
3106
3102
  }
3103
+ export interface GovernanceQueryRequestInput {
3104
+ /** Whether to include credit balance availability for each resolved customer. When true, each feature evaluation includes credit balance checks. Defaults to `false`. */
3105
+ include_credits?: boolean;
3106
+ customer: GovernanceQueryRequestCustomers;
3107
+ feature?: GovernanceQueryRequestFeatures;
3108
+ }
3107
3109
  export interface IngestedEventInput {
3108
3110
  /** The original event ingested. */
3109
3111
  event: EventInput;
@@ -3282,6 +3284,8 @@ export interface RateCardInput {
3282
3284
  billing_cadence?: string;
3283
3285
  /** The price of the rate card. */
3284
3286
  price: PriceFree | PriceFlat | PriceUnit | PriceGraduated | PriceVolume;
3287
+ /** Unit conversion configuration for the rate card. Synthesized on read for plans authored with v1 dynamic or package prices: dynamic prices map to a unit price with a multiply unit config, and package prices map to a unit price with a divide unit config. Not yet accepted on create or update. */
3288
+ unit_config?: UnitConfigInput;
3285
3289
  /** The payment term of the rate card. In advance payment term can only be used for flat prices. */
3286
3290
  payment_term?: 'in_advance' | 'in_arrears';
3287
3291
  /** Spend commitments for this rate card. Only applicable to usage-based prices (unit, graduated, volume). */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openmeter/client",
3
- "version": "1.0.0-beta-a0c5de652a64",
3
+ "version": "1.0.0-beta-724a3bfe7e72",
4
4
  "license": "Apache-2.0",
5
5
  "homepage": "https://openmeter.io",
6
6
  "repository": {