@openmeter/client 1.0.0-beta-f1eac1446b89 → 1.0.0-beta-02fbd9bb055b

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
@@ -41,4 +41,4 @@ export type * from './models/operations/addons.js';
41
41
  export type * from './models/operations/planAddons.js';
42
42
  export type * from './models/operations/defaults.js';
43
43
  export type * from './models/operations/governance.js';
44
- export type { Labels, CursorPaginationQueryPage, SortQuery, IngestedEventValidationError, CursorMetaPage, BaseError, PageMeta, QueryFilterString, AppStripeCheckoutSessionCustomTextParams, AppStripeCreateCustomerPortalSessionOptions, CreateLabels, TaxConfigStripe, TaxConfigExternalInvoicing, ChargeFlatFeeDiscounts, PriceFree, RateCardStaticEntitlement, RateCardBooleanEntitlement, InstallAppStripeWithApiKey, InstallAppSandbox, InstallAppExternalInvoicing, WorkflowCollectionAlignmentSubscription, WorkflowPaymentChargeAutomaticallySettings, WorkflowPaymentSendInvoiceSettings, InvoiceExternalReferences, InvoiceAvailableActionDetails, InvoiceWorkflowInvoicingSettings, InvoiceLineExternalReferences, UpdateLabels, UpdateBillingInvoiceWorkflowInvoicingSettings, UpdateBillingWorkflowPaymentChargeAutomaticallySettings, UpdateBillingWorkflowPaymentSendInvoiceSettings, UpdatePriceFree, LlmCostProvider, LlmCostModel, ProductCatalogValidationError, GovernanceQueryRequestCustomers, GovernanceQueryRequestFeatures, QueryFilterInteger, QueryFilterFloat, QueryFilterBoolean, PagePaginationQuery, PublicLabels, SystemAccountAccessToken, PersonalAccessToken, KonnectAccessToken, AppCustomerDataStripe, AppCustomerDataExternalInvoicing, CurrencyFiat, ListCostBasesParamsFilter, CurrencyAmount, PriceFlat, PriceUnit, RateCardDiscounts, Totals, SpendCommitments, InvoiceLineCreditsApplied, UpdatePriceFlat, UpdatePriceUnit, UpdateDiscounts, FeatureManualUnitCost, FeatureLlmUnitCostPricing, LlmCostModelPricing, QueryFilterNumeric, CursorPaginationQuery, ListMetersParamsFilter, ListLlmCostPricesParamsFilter, LabelsFieldFilter, CustomerReference, ProfileReference, CreateResourceReference, TaxCodeReference, CreditGrantInvoiceReference, BillingCustomerReference, SubscriptionReference, AddonReference, FeatureReference, AppReference, ChargeReference, UpdateResourceReference, Event, MeterQueryRow, AppStripeCreateCustomerPortalSessionResult, ClosedPeriod, SubscriptionAddonTimelineSegment, UpdateClosedPeriod, CostBasis, FeatureCostQueryRow, Resource, ResourceImmutable, QueryFilterDateTime, CursorMeta, InvalidParameterStandard, InvalidParameterMinimumLength, InvalidParameterMaximumLength, InvalidParameterChoiceItem, InvalidParameterDependentItem, Unauthorized, Forbidden, NotFound, Gone, Conflict, PayloadTooLarge, UnsupportedMediaType, UnprocessableContent, TooManyRequests, Internal, NotImplemented, NotAvailable, CreateCreditGrantFilters, CreditGrantFilters, UpsertPlanAddonRequest, ResourceWithKey, Meter, PaginatedMeta, QueryFilterStringMapItem, CustomerKeyReference, CustomerUsageAttribution, UpdateCustomerUsageAttribution, Address, UpdateAddress, AppStripeCreateCheckoutSessionCustomerUpdate, AppStripeCreateCheckoutSessionConsentCollectionPaymentMethodReuseAgreement, AppStripeCreateCheckoutSessionTaxIdCollection, AppStripeCreateCheckoutSessionResult, CustomerStripeCreateCustomerPortalSessionRequest, EntitlementAccessResult, CreateCreditGrantPurchase, RateCardMeteredEntitlement, RecurringPeriod, CreditGrantPurchase, ListCreditGrantsParamsFilter, GetCreditBalanceParamsFilter, ListChargesParamsFilter, ListPlansParamsFilter, SubscriptionCreate, RateCardProrationConfiguration, Subscription, UnitConfig, TaxCodeAppMapping, AppCapability, PartyTaxIdentity, UpdateBillingPartyTaxIdentity, WorkflowInvoicingSettings, InvoiceValidationIssue, InvoiceAvailableActions, InvoiceLineAmountDiscount, InvoiceLineUsageDiscount, InvoiceLineBaseDiscount, ListCurrenciesParamsFilter, CurrencyCustom, CreateCurrencyCustomRequest, GovernanceQueryRequest, GovernanceFeatureAccessReason, GovernanceQueryError, AppCustomerData, UpsertAppCustomerDataRequest, CreditAdjustment, CreditBalance, ListCreditTransactionsParamsFilter, CreditTransaction, PriceTier, ChargeTotals, UpdatePriceTier, FeatureLlmUnitCost, LlmCostPrice, LlmCostOverrideCreate, ListCustomersParamsFilter, ListSubscriptionsParamsFilter, ListFeatureParamsFilter, ListAddonsParamsFilter, CreateCreditGrantTaxConfig, CreditGrantTaxConfig, TaxConfig, RateCardTaxConfig, OrganizationDefaultTaxCodes, PlanAddon, ProfileAppReferences, InvoiceWorkflowAppsReferences, UpdateRateCardTaxConfig, ListEventsParamsFilter, ListInvoicesParamsFilter, ResourceFilters, FieldFilters, IngestedEvent, MeterQueryResult, FeatureCostQueryResult, MeterPagePaginatedResponse, CostBasisPagePaginatedResponse, MeterQueryFilters, FeatureMeterReference, Customer, PartyAddresses, InvoiceCustomer, UpdateBillingPartyAddresses, UpdateInvoiceCustomer, AppStripeCreateCheckoutSessionConsentCollection, ListCustomerEntitlementAccessResponseData, WorkflowCollectionAlignmentAnchored, ChargeFlatFeeSystemIntent, SubscriptionPagePaginatedResponse, SubscriptionChangeResponse, SubscriptionCancel, SubscriptionChange, InvoiceUsageQuantityDetail, TaxCode, AppCatalogItem, InvoiceWorkflow, InvoiceStatusDetails, InvoiceLineDiscounts, UpdateBillingInvoiceWorkflow, GovernanceFeatureAccess, CustomerData, UpsertCustomerBillingDataRequest, CreditBalances, CreditTransactionPaginatedResponse, PriceGraduated, PriceVolume, UpdatePriceGraduated, UpdatePriceVolume, PricePagePaginatedResponse, CreditGrant, CreateChargeFlatFeeRequest, WorkflowTaxSettings, PlanAddonPagePaginatedResponse, IngestedEventPaginatedResponse, InvalidParameters, MeterQueryRequest, CustomerPagePaginatedResponse, Party, Supplier, UpdateSupplier, AppStripeCreateCheckoutSessionRequestOptions, TaxCodePagePaginatedResponse, AppStripe, AppSandbox, AppExternalInvoicing, AppCatalogItemPagePaginatedResponse, InvoiceWorkflowSettings, InvoiceDetailedLine, UpdateInvoiceWorkflowSettings, CurrencyPagePaginatedResponse, GovernanceQueryResult, Feature, CreditGrantPagePaginatedResponse, BadRequest, InvoiceBase, CustomerStripeCreateCheckoutSessionRequest, WorkflowCollectionSettings, GovernanceQueryResponse, ChargeFlatFee, ChargeUsageBasedSystemIntent, CreateChargeUsageBasedRequest, RateCard, InvoiceLineRateCard, UpdateInvoiceLineRateCard, FeaturePagePaginatedResponse, Workflow, AppPagePaginatedResponse, BillingInstallAppResponse, ProfileApps, ChargeUsageBased, SubscriptionAddonRateCard, PlanPhase, Addon, UpsertAddonRequest, InvoiceStandardLine, UpdateInvoiceStandardLine, Profile, UpsertBillingProfileRequest, SubscriptionAddon, Plan, UpsertPlanRequest, AddonPagePaginatedResponse, ProfilePagePaginatedResponse, ChargePagePaginatedResponse, SubscriptionAddonPagePaginatedResponse, PlanPagePaginatedResponse, InvoiceStandard, UpdateInvoiceStandardRequest, InvoicePagePaginatedResponse, StringFieldFilter, MeterAggregation, MeterQueryGranularity, StringFieldFilterExact, PricePaymentTerm, BillingCurrencyCode, CreateCurrencyCode, UlidFieldFilter, DateTimeFieldFilter, SubscriptionEditTiming, WorkflowPaymentSettings, UpdateBillingWorkflowPaymentSettings, InvalidParameter, RateCardEntitlement, Currency, FeatureUnitCost, WorkflowCollectionAlignment, Price, UpdatePrice, App, CreateChargeRequest, Charge, InvoiceLine, UpdateInvoiceLine, Invoice, SortQueryInput, BaseErrorInput, WorkflowPaymentSendInvoiceSettingsInput, InvoiceWorkflowInvoicingSettingsInput, UpdateBillingInvoiceWorkflowInvoicingSettingsInput, UpdateBillingWorkflowPaymentSendInvoiceSettingsInput, EventInput, UnauthorizedInput, ForbiddenInput, NotFoundInput, GoneInput, ConflictInput, PayloadTooLargeInput, UnsupportedMediaTypeInput, UnprocessableContentInput, TooManyRequestsInput, InternalInput, NotImplementedInput, NotAvailableInput, AppStripeCreateCheckoutSessionCustomerUpdateInput, AppStripeCreateCheckoutSessionTaxIdCollectionInput, CreateCreditGrantPurchaseInput, RateCardMeteredEntitlementInput, CreditGrantPurchaseInput, VoidCreditGrantRequestInput, UnitConfigInput, WorkflowInvoicingSettingsInput, GovernanceQueryRequestInput, IngestedEventInput, SubscriptionCancelInput, InvoiceUsageQuantityDetailInput, InvoiceWorkflowInput, UpdateBillingInvoiceWorkflowInput, CreateCreditGrantRequestInput, CreditGrantInput, WorkflowTaxSettingsInput, IngestedEventPaginatedResponseInput, MeterQueryRequestInput, AppStripeCreateCheckoutSessionRequestOptionsInput, InvoiceWorkflowSettingsInput, InvoiceDetailedLineInput, UpdateInvoiceWorkflowSettingsInput, CreditGrantPagePaginatedResponseInput, BadRequestInput, CustomerStripeCreateCheckoutSessionRequestInput, WorkflowCollectionSettingsInput, RateCardInput, WorkflowInput, SubscriptionAddonRateCardInput, PlanPhaseInput, AddonInput, CreateAddonRequestInput, UpsertAddonRequestInput, InvoiceStandardLineInput, ProfileInput, CreateBillingProfileRequestInput, UpsertBillingProfileRequestInput, SubscriptionAddonInput, PlanInput, CreatePlanRequestInput, UpsertPlanRequestInput, AddonPagePaginatedResponseInput, ProfilePagePaginatedResponseInput, SubscriptionAddonPagePaginatedResponseInput, PlanPagePaginatedResponseInput, InvoiceStandardInput, UpdateInvoiceStandardRequestInput, InvoicePagePaginatedResponseInput, WorkflowPaymentSettingsInput, UpdateBillingWorkflowPaymentSettingsInput, RateCardEntitlementInput, InvoiceLineInput, InvoiceInput, UpdateInvoiceRequestInput, } from './models/types.js';
44
+ export type { Labels, CursorPaginationQueryPage, SortQuery, IngestedEventValidationError, CursorMetaPage, BaseError, PageMeta, QueryFilterString, AppStripeCheckoutSessionCustomTextParams, AppStripeCreateCustomerPortalSessionOptions, CreateLabels, TaxConfigStripe, TaxConfigExternalInvoicing, ChargeFlatFeeDiscounts, PriceFree, RateCardStaticEntitlement, RateCardBooleanEntitlement, InstallAppStripeWithApiKey, InstallAppSandbox, InstallAppExternalInvoicing, WorkflowCollectionAlignmentSubscription, WorkflowPaymentChargeAutomaticallySettings, WorkflowPaymentSendInvoiceSettings, InvoiceExternalReferences, InvoiceAvailableActionDetails, InvoiceWorkflowInvoicingSettings, InvoiceLineExternalReferences, UpdateLabels, UpdateBillingInvoiceWorkflowInvoicingSettings, UpdateBillingWorkflowPaymentChargeAutomaticallySettings, UpdateBillingWorkflowPaymentSendInvoiceSettings, UpdatePriceFree, LlmCostProvider, LlmCostModel, ProductCatalogValidationError, GovernanceQueryRequestCustomers, GovernanceQueryRequestFeatures, QueryFilterInteger, QueryFilterFloat, QueryFilterBoolean, PagePaginationQuery, PublicLabels, SystemAccountAccessToken, PersonalAccessToken, KonnectAccessToken, AppCustomerDataStripe, AppCustomerDataExternalInvoicing, CurrencyFiat, ListCostBasesParamsFilter, CurrencyAmount, PriceFlat, PriceUnit, RateCardDiscounts, Totals, SpendCommitments, InvoiceLineCreditsApplied, UpdatePriceFlat, UpdatePriceUnit, UpdateDiscounts, FeatureManualUnitCost, FeatureLlmUnitCostPricing, LlmCostModelPricing, QueryFilterNumeric, CursorPaginationQuery, ListMetersParamsFilter, ListLlmCostPricesParamsFilter, LabelsFieldFilter, CustomerReference, ProfileReference, CreateResourceReference, TaxCodeReference, CreditGrantInvoiceReference, BillingCustomerReference, SubscriptionReference, AddonReference, FeatureReference, AppReference, ChargeReference, UpdateResourceReference, Event, MeterQueryRow, AppStripeCreateCustomerPortalSessionResult, ClosedPeriod, SubscriptionAddonTimelineSegment, UpdateClosedPeriod, CostBasis, FeatureCostQueryRow, Resource, ResourceImmutable, QueryFilterDateTime, CursorMeta, InvalidParameterStandard, InvalidParameterMinimumLength, InvalidParameterMaximumLength, InvalidParameterChoiceItem, InvalidParameterDependentItem, Unauthorized, Forbidden, NotFound, Gone, Conflict, PayloadTooLarge, UnsupportedMediaType, UnprocessableContent, TooManyRequests, Internal, NotImplemented, NotAvailable, CreateCreditGrantFilters, CreditGrantFilters, UpsertPlanAddonRequest, ResourceWithKey, Meter, PaginatedMeta, QueryFilterStringMapItem, CustomerKeyReference, CustomerUsageAttribution, UpdateCustomerUsageAttribution, Address, UpdateAddress, AppStripeCreateCheckoutSessionCustomerUpdate, AppStripeCreateCheckoutSessionConsentCollectionPaymentMethodReuseAgreement, AppStripeCreateCheckoutSessionTaxIdCollection, AppStripeCreateCheckoutSessionResult, CustomerStripeCreateCustomerPortalSessionRequest, EntitlementAccessResult, CreateCreditGrantPurchase, RateCardMeteredEntitlement, RecurringPeriod, CreditGrantPurchase, ListCreditGrantsParamsFilter, GetCreditBalanceParamsFilter, ListChargesParamsFilter, ListPlansParamsFilter, SubscriptionCreate, RateCardProrationConfiguration, Subscription, UnitConfig, TaxCodeAppMapping, AppCapability, PartyTaxIdentity, UpdateBillingPartyTaxIdentity, WorkflowInvoicingSettings, InvoiceValidationIssue, InvoiceAvailableActions, InvoiceLineAmountDiscount, InvoiceLineUsageDiscount, InvoiceLineBaseDiscount, ListCurrenciesParamsFilter, CurrencyCustom, CreateCurrencyCustomRequest, GovernanceQueryRequest, GovernanceFeatureAccessReason, GovernanceQueryError, AppCustomerData, UpsertAppCustomerDataRequest, CreditAdjustment, CreditBalance, ListCreditTransactionsParamsFilter, CreditTransaction, PriceTier, ChargeTotals, UpdatePriceTier, FeatureLlmUnitCost, LlmCostPrice, LlmCostOverrideCreate, ListCustomersParamsFilter, ListSubscriptionsParamsFilter, ListFeatureParamsFilter, ListAddonsParamsFilter, CreateCreditGrantTaxConfig, CreditGrantTaxConfig, TaxConfig, RateCardTaxConfig, OrganizationDefaultTaxCodes, PlanAddon, ProfileAppReferences, InvoiceWorkflowAppsReferences, UpdateRateCardTaxConfig, ListEventsParamsFilter, ListInvoicesParamsFilter, ResourceFilters, FieldFilters, IngestedEvent, MeterQueryResult, FeatureCostQueryResult, MeterPagePaginatedResponse, CostBasisPagePaginatedResponse, MeterQueryFilters, FeatureMeterReference, Customer, PartyAddresses, InvoiceCustomer, UpdateBillingPartyAddresses, UpdateInvoiceCustomer, AppStripeCreateCheckoutSessionConsentCollection, ListCustomerEntitlementAccessResponseData, WorkflowCollectionAlignmentAnchored, ChargeFlatFeeSystemIntent, SubscriptionPagePaginatedResponse, SubscriptionChangeResponse, SubscriptionCancel, SubscriptionChange, InvoiceUsageQuantityDetail, TaxCode, AppCatalogItem, InvoiceWorkflow, InvoiceStatusDetails, InvoiceLineDiscounts, UpdateBillingInvoiceWorkflow, GovernanceFeatureAccess, CustomerData, UpsertCustomerBillingDataRequest, CreditBalances, CreditTransactionPaginatedResponse, PriceGraduated, PriceVolume, UpdatePriceGraduated, UpdatePriceVolume, PricePagePaginatedResponse, CreditGrant, CreateChargeFlatFeeRequest, WorkflowTaxSettings, PlanAddonPagePaginatedResponse, IngestedEventPaginatedResponse, InvalidParameters, MeterQueryRequest, CustomerPagePaginatedResponse, Party, Supplier, UpdateSupplier, AppStripeCreateCheckoutSessionRequestOptions, TaxCodePagePaginatedResponse, AppStripe, AppSandbox, AppExternalInvoicing, AppCatalogItemPagePaginatedResponse, InvoiceWorkflowSettings, InvoiceDetailedLine, UpdateInvoiceWorkflowSettings, CurrencyPagePaginatedResponse, GovernanceQueryResult, Feature, CreditGrantPagePaginatedResponse, BadRequest, InvoiceBase, CustomerStripeCreateCheckoutSessionRequest, WorkflowCollectionSettings, GovernanceQueryResponse, ChargeFlatFee, ChargeUsageBasedSystemIntent, CreateChargeUsageBasedRequest, RateCard, InvoiceLineRateCard, UpdateInvoiceLineRateCard, FeaturePagePaginatedResponse, Workflow, AppPagePaginatedResponse, BillingInstallAppResponse, ProfileApps, ChargeUsageBased, SubscriptionAddonRateCard, PlanPhase, Addon, UpsertAddonRequest, InvoiceStandardLine, UpdateInvoiceStandardLine, Profile, UpsertBillingProfileRequest, SubscriptionAddon, Plan, UpsertPlanRequest, AddonPagePaginatedResponse, ProfilePagePaginatedResponse, ChargePagePaginatedResponse, SubscriptionAddonPagePaginatedResponse, PlanPagePaginatedResponse, InvoiceStandard, UpdateInvoiceStandardRequest, InvoicePagePaginatedResponse, StringFieldFilter, MeterAggregation, MeterQueryGranularity, StringFieldFilterExact, PricePaymentTerm, BillingCurrencyCode, CreateCurrencyCode, UlidFieldFilter, DateTimeFieldFilter, SubscriptionEditTiming, WorkflowPaymentSettings, UpdateBillingWorkflowPaymentSettings, InvalidParameter, RateCardEntitlement, Currency, FeatureUnitCost, WorkflowCollectionAlignment, Price, UpdatePrice, App, CreateChargeRequest, Charge, InvoiceLine, UpdateInvoiceLine, Invoice, SortQueryInput, BaseErrorInput, WorkflowPaymentSendInvoiceSettingsInput, InvoiceWorkflowInvoicingSettingsInput, UpdateBillingInvoiceWorkflowInvoicingSettingsInput, UpdateBillingWorkflowPaymentSendInvoiceSettingsInput, EventInput, UnauthorizedInput, ForbiddenInput, NotFoundInput, GoneInput, ConflictInput, PayloadTooLargeInput, UnsupportedMediaTypeInput, UnprocessableContentInput, TooManyRequestsInput, InternalInput, NotImplementedInput, NotAvailableInput, AppStripeCreateCheckoutSessionCustomerUpdateInput, AppStripeCreateCheckoutSessionTaxIdCollectionInput, CreateCreditGrantPurchaseInput, RateCardMeteredEntitlementInput, CreditGrantPurchaseInput, VoidCreditGrantRequestInput, UnitConfigInput, WorkflowInvoicingSettingsInput, GovernanceQueryRequestInput, IngestedEventInput, SubscriptionCancelInput, InvoiceUsageQuantityDetailInput, InvoiceWorkflowInput, UpdateBillingInvoiceWorkflowInput, CreateCreditGrantRequestInput, CreditGrantInput, WorkflowTaxSettingsInput, IngestedEventPaginatedResponseInput, MeterQueryRequestInput, AppStripeCreateCheckoutSessionRequestOptionsInput, InvoiceWorkflowSettingsInput, InvoiceDetailedLineInput, UpdateInvoiceWorkflowSettingsInput, CreditGrantPagePaginatedResponseInput, BadRequestInput, CustomerStripeCreateCheckoutSessionRequestInput, WorkflowCollectionSettingsInput, RateCardInput, InvoiceLineRateCardInput, WorkflowInput, SubscriptionAddonRateCardInput, PlanPhaseInput, AddonInput, CreateAddonRequestInput, UpsertAddonRequestInput, InvoiceStandardLineInput, ProfileInput, CreateBillingProfileRequestInput, UpsertBillingProfileRequestInput, SubscriptionAddonInput, PlanInput, CreatePlanRequestInput, UpsertPlanRequestInput, AddonPagePaginatedResponseInput, ProfilePagePaginatedResponseInput, SubscriptionAddonPagePaginatedResponseInput, PlanPagePaginatedResponseInput, InvoiceStandardInput, UpdateInvoiceStandardRequestInput, InvoicePagePaginatedResponseInput, WorkflowPaymentSettingsInput, UpdateBillingWorkflowPaymentSettingsInput, RateCardEntitlementInput, InvoiceLineInput, InvoiceInput, UpdateInvoiceRequestInput, } from './models/types.js';
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.0.0-beta-f1eac1446b89";
1
+ export declare const SDK_VERSION = "1.0.0-beta-02fbd9bb055b";
@@ -2,4 +2,4 @@
2
2
  // The committed value is a dev placeholder. The publish flow
3
3
  // (`make -C api/spec publish-aip-sdk`) stamps the real release version here
4
4
  // before `pnpm publish`, after `pnpm version` updates package.json.
5
- export const SDK_VERSION = '1.0.0-beta-f1eac1446b89';
5
+ export const SDK_VERSION = '1.0.0-beta-02fbd9bb055b';
@@ -5249,6 +5249,21 @@ export declare const invoiceLineRateCard: z.ZodObject<{
5249
5249
  percentage: z.ZodOptional<z.ZodNumber>;
5250
5250
  usage: z.ZodOptional<z.ZodString>;
5251
5251
  }, z.core.$strip>>;
5252
+ unitConfig: z.ZodOptional<z.ZodObject<{
5253
+ operation: z.ZodEnum<{
5254
+ multiply: "multiply";
5255
+ divide: "divide";
5256
+ }>;
5257
+ conversionFactor: z.ZodString;
5258
+ rounding: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
5259
+ none: "none";
5260
+ floor: "floor";
5261
+ ceiling: "ceiling";
5262
+ half_up: "half_up";
5263
+ }>>>;
5264
+ precision: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
5265
+ displayUnit: z.ZodOptional<z.ZodString>;
5266
+ }, z.core.$strip>>;
5252
5267
  }, z.core.$strip>;
5253
5268
  export declare const updateInvoiceLineRateCard: z.ZodObject<{
5254
5269
  price: z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -7012,6 +7027,21 @@ export declare const invoiceStandardLine: z.ZodObject<{
7012
7027
  percentage: z.ZodOptional<z.ZodNumber>;
7013
7028
  usage: z.ZodOptional<z.ZodString>;
7014
7029
  }, z.core.$strip>>;
7030
+ unitConfig: z.ZodOptional<z.ZodObject<{
7031
+ operation: z.ZodEnum<{
7032
+ multiply: "multiply";
7033
+ divide: "divide";
7034
+ }>;
7035
+ conversionFactor: z.ZodString;
7036
+ rounding: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
7037
+ none: "none";
7038
+ floor: "floor";
7039
+ ceiling: "ceiling";
7040
+ half_up: "half_up";
7041
+ }>>>;
7042
+ precision: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
7043
+ displayUnit: z.ZodOptional<z.ZodString>;
7044
+ }, z.core.$strip>>;
7015
7045
  }, z.core.$strip>;
7016
7046
  detailedLines: z.ZodArray<z.ZodObject<{
7017
7047
  id: z.ZodString;
@@ -8425,6 +8455,21 @@ export declare const invoiceLine: z.ZodDiscriminatedUnion<[z.ZodObject<{
8425
8455
  percentage: z.ZodOptional<z.ZodNumber>;
8426
8456
  usage: z.ZodOptional<z.ZodString>;
8427
8457
  }, z.core.$strip>>;
8458
+ unitConfig: z.ZodOptional<z.ZodObject<{
8459
+ operation: z.ZodEnum<{
8460
+ multiply: "multiply";
8461
+ divide: "divide";
8462
+ }>;
8463
+ conversionFactor: z.ZodString;
8464
+ rounding: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
8465
+ none: "none";
8466
+ floor: "floor";
8467
+ ceiling: "ceiling";
8468
+ half_up: "half_up";
8469
+ }>>>;
8470
+ precision: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
8471
+ displayUnit: z.ZodOptional<z.ZodString>;
8472
+ }, z.core.$strip>>;
8428
8473
  }, z.core.$strip>;
8429
8474
  detailedLines: z.ZodArray<z.ZodObject<{
8430
8475
  id: z.ZodString;
@@ -9521,6 +9566,21 @@ export declare const invoiceStandard: z.ZodObject<{
9521
9566
  percentage: z.ZodOptional<z.ZodNumber>;
9522
9567
  usage: z.ZodOptional<z.ZodString>;
9523
9568
  }, z.core.$strip>>;
9569
+ unitConfig: z.ZodOptional<z.ZodObject<{
9570
+ operation: z.ZodEnum<{
9571
+ multiply: "multiply";
9572
+ divide: "divide";
9573
+ }>;
9574
+ conversionFactor: z.ZodString;
9575
+ rounding: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
9576
+ none: "none";
9577
+ floor: "floor";
9578
+ ceiling: "ceiling";
9579
+ half_up: "half_up";
9580
+ }>>>;
9581
+ precision: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
9582
+ displayUnit: z.ZodOptional<z.ZodString>;
9583
+ }, z.core.$strip>>;
9524
9584
  }, z.core.$strip>;
9525
9585
  detailedLines: z.ZodArray<z.ZodObject<{
9526
9586
  id: z.ZodString;
@@ -9968,6 +10028,21 @@ export declare const invoice: z.ZodDiscriminatedUnion<[z.ZodObject<{
9968
10028
  percentage: z.ZodOptional<z.ZodNumber>;
9969
10029
  usage: z.ZodOptional<z.ZodString>;
9970
10030
  }, z.core.$strip>>;
10031
+ unitConfig: z.ZodOptional<z.ZodObject<{
10032
+ operation: z.ZodEnum<{
10033
+ multiply: "multiply";
10034
+ divide: "divide";
10035
+ }>;
10036
+ conversionFactor: z.ZodString;
10037
+ rounding: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
10038
+ none: "none";
10039
+ floor: "floor";
10040
+ ceiling: "ceiling";
10041
+ half_up: "half_up";
10042
+ }>>>;
10043
+ precision: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
10044
+ displayUnit: z.ZodOptional<z.ZodString>;
10045
+ }, z.core.$strip>>;
9971
10046
  }, z.core.$strip>;
9972
10047
  detailedLines: z.ZodArray<z.ZodObject<{
9973
10048
  id: z.ZodString;
@@ -10416,6 +10491,21 @@ export declare const invoicePagePaginatedResponse: z.ZodObject<{
10416
10491
  percentage: z.ZodOptional<z.ZodNumber>;
10417
10492
  usage: z.ZodOptional<z.ZodString>;
10418
10493
  }, z.core.$strip>>;
10494
+ unitConfig: z.ZodOptional<z.ZodObject<{
10495
+ operation: z.ZodEnum<{
10496
+ multiply: "multiply";
10497
+ divide: "divide";
10498
+ }>;
10499
+ conversionFactor: z.ZodString;
10500
+ rounding: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
10501
+ none: "none";
10502
+ floor: "floor";
10503
+ ceiling: "ceiling";
10504
+ half_up: "half_up";
10505
+ }>>>;
10506
+ precision: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
10507
+ displayUnit: z.ZodOptional<z.ZodString>;
10508
+ }, z.core.$strip>>;
10419
10509
  }, z.core.$strip>;
10420
10510
  detailedLines: z.ZodArray<z.ZodObject<{
10421
10511
  id: z.ZodString;
@@ -14600,6 +14690,21 @@ export declare const listInvoicesResponse: z.ZodObject<{
14600
14690
  percentage: z.ZodOptional<z.ZodNumber>;
14601
14691
  usage: z.ZodOptional<z.ZodString>;
14602
14692
  }, z.core.$strip>>;
14693
+ unitConfig: z.ZodOptional<z.ZodObject<{
14694
+ operation: z.ZodEnum<{
14695
+ multiply: "multiply";
14696
+ divide: "divide";
14697
+ }>;
14698
+ conversionFactor: z.ZodString;
14699
+ rounding: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
14700
+ none: "none";
14701
+ floor: "floor";
14702
+ ceiling: "ceiling";
14703
+ half_up: "half_up";
14704
+ }>>>;
14705
+ precision: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
14706
+ displayUnit: z.ZodOptional<z.ZodString>;
14707
+ }, z.core.$strip>>;
14603
14708
  }, z.core.$strip>;
14604
14709
  detailedLines: z.ZodArray<z.ZodObject<{
14605
14710
  id: z.ZodString;
@@ -14942,6 +15047,21 @@ export declare const getInvoiceResponse: z.ZodDiscriminatedUnion<[z.ZodObject<{
14942
15047
  percentage: z.ZodOptional<z.ZodNumber>;
14943
15048
  usage: z.ZodOptional<z.ZodString>;
14944
15049
  }, z.core.$strip>>;
15050
+ unitConfig: z.ZodOptional<z.ZodObject<{
15051
+ operation: z.ZodEnum<{
15052
+ multiply: "multiply";
15053
+ divide: "divide";
15054
+ }>;
15055
+ conversionFactor: z.ZodString;
15056
+ rounding: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
15057
+ none: "none";
15058
+ floor: "floor";
15059
+ ceiling: "ceiling";
15060
+ half_up: "half_up";
15061
+ }>>>;
15062
+ precision: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
15063
+ displayUnit: z.ZodOptional<z.ZodString>;
15064
+ }, z.core.$strip>>;
14945
15065
  }, z.core.$strip>;
14946
15066
  detailedLines: z.ZodArray<z.ZodObject<{
14947
15067
  id: z.ZodString;
@@ -15392,6 +15512,21 @@ export declare const updateInvoiceResponse: z.ZodDiscriminatedUnion<[z.ZodObject
15392
15512
  percentage: z.ZodOptional<z.ZodNumber>;
15393
15513
  usage: z.ZodOptional<z.ZodString>;
15394
15514
  }, z.core.$strip>>;
15515
+ unitConfig: z.ZodOptional<z.ZodObject<{
15516
+ operation: z.ZodEnum<{
15517
+ multiply: "multiply";
15518
+ divide: "divide";
15519
+ }>;
15520
+ conversionFactor: z.ZodString;
15521
+ rounding: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
15522
+ none: "none";
15523
+ floor: "floor";
15524
+ ceiling: "ceiling";
15525
+ half_up: "half_up";
15526
+ }>>>;
15527
+ precision: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
15528
+ displayUnit: z.ZodOptional<z.ZodString>;
15529
+ }, z.core.$strip>>;
15395
15530
  }, z.core.$strip>;
15396
15531
  detailedLines: z.ZodArray<z.ZodObject<{
15397
15532
  id: z.ZodString;
@@ -15729,6 +15864,21 @@ export declare const advanceInvoiceResponse: z.ZodDiscriminatedUnion<[z.ZodObjec
15729
15864
  percentage: z.ZodOptional<z.ZodNumber>;
15730
15865
  usage: z.ZodOptional<z.ZodString>;
15731
15866
  }, z.core.$strip>>;
15867
+ unitConfig: z.ZodOptional<z.ZodObject<{
15868
+ operation: z.ZodEnum<{
15869
+ multiply: "multiply";
15870
+ divide: "divide";
15871
+ }>;
15872
+ conversionFactor: z.ZodString;
15873
+ rounding: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
15874
+ none: "none";
15875
+ floor: "floor";
15876
+ ceiling: "ceiling";
15877
+ half_up: "half_up";
15878
+ }>>>;
15879
+ precision: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
15880
+ displayUnit: z.ZodOptional<z.ZodString>;
15881
+ }, z.core.$strip>>;
15732
15882
  }, z.core.$strip>;
15733
15883
  detailedLines: z.ZodArray<z.ZodObject<{
15734
15884
  id: z.ZodString;
@@ -16063,6 +16213,21 @@ export declare const approveInvoiceResponse: z.ZodDiscriminatedUnion<[z.ZodObjec
16063
16213
  percentage: z.ZodOptional<z.ZodNumber>;
16064
16214
  usage: z.ZodOptional<z.ZodString>;
16065
16215
  }, z.core.$strip>>;
16216
+ unitConfig: z.ZodOptional<z.ZodObject<{
16217
+ operation: z.ZodEnum<{
16218
+ multiply: "multiply";
16219
+ divide: "divide";
16220
+ }>;
16221
+ conversionFactor: z.ZodString;
16222
+ rounding: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
16223
+ none: "none";
16224
+ floor: "floor";
16225
+ ceiling: "ceiling";
16226
+ half_up: "half_up";
16227
+ }>>>;
16228
+ precision: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
16229
+ displayUnit: z.ZodOptional<z.ZodString>;
16230
+ }, z.core.$strip>>;
16066
16231
  }, z.core.$strip>;
16067
16232
  detailedLines: z.ZodArray<z.ZodObject<{
16068
16233
  id: z.ZodString;
@@ -16397,6 +16562,21 @@ export declare const retryInvoiceResponse: z.ZodDiscriminatedUnion<[z.ZodObject<
16397
16562
  percentage: z.ZodOptional<z.ZodNumber>;
16398
16563
  usage: z.ZodOptional<z.ZodString>;
16399
16564
  }, z.core.$strip>>;
16565
+ unitConfig: z.ZodOptional<z.ZodObject<{
16566
+ operation: z.ZodEnum<{
16567
+ multiply: "multiply";
16568
+ divide: "divide";
16569
+ }>;
16570
+ conversionFactor: z.ZodString;
16571
+ rounding: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
16572
+ none: "none";
16573
+ floor: "floor";
16574
+ ceiling: "ceiling";
16575
+ half_up: "half_up";
16576
+ }>>>;
16577
+ precision: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
16578
+ displayUnit: z.ZodOptional<z.ZodString>;
16579
+ }, z.core.$strip>>;
16400
16580
  }, z.core.$strip>;
16401
16581
  detailedLines: z.ZodArray<z.ZodObject<{
16402
16582
  id: z.ZodString;
@@ -16731,6 +16911,21 @@ export declare const snapshotQuantitiesInvoiceResponse: z.ZodDiscriminatedUnion<
16731
16911
  percentage: z.ZodOptional<z.ZodNumber>;
16732
16912
  usage: z.ZodOptional<z.ZodString>;
16733
16913
  }, z.core.$strip>>;
16914
+ unitConfig: z.ZodOptional<z.ZodObject<{
16915
+ operation: z.ZodEnum<{
16916
+ multiply: "multiply";
16917
+ divide: "divide";
16918
+ }>;
16919
+ conversionFactor: z.ZodString;
16920
+ rounding: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
16921
+ none: "none";
16922
+ floor: "floor";
16923
+ ceiling: "ceiling";
16924
+ half_up: "half_up";
16925
+ }>>>;
16926
+ precision: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
16927
+ displayUnit: z.ZodOptional<z.ZodString>;
16928
+ }, z.core.$strip>>;
16734
16929
  }, z.core.$strip>;
16735
16930
  detailedLines: z.ZodArray<z.ZodObject<{
16736
16931
  id: z.ZodString;
@@ -25316,6 +25511,21 @@ export declare const invoiceLineRateCardWire: z.ZodObject<{
25316
25511
  percentage: z.ZodOptional<z.ZodNumber>;
25317
25512
  usage: z.ZodOptional<z.ZodString>;
25318
25513
  }, z.core.$strict>>;
25514
+ unit_config: z.ZodOptional<z.ZodObject<{
25515
+ operation: z.ZodEnum<{
25516
+ multiply: "multiply";
25517
+ divide: "divide";
25518
+ }>;
25519
+ conversion_factor: z.ZodString;
25520
+ rounding: z.ZodOptional<z.ZodEnum<{
25521
+ none: "none";
25522
+ floor: "floor";
25523
+ ceiling: "ceiling";
25524
+ half_up: "half_up";
25525
+ }>>;
25526
+ precision: z.ZodOptional<z.ZodNumber>;
25527
+ display_unit: z.ZodOptional<z.ZodString>;
25528
+ }, z.core.$strict>>;
25319
25529
  }, z.core.$strict>;
25320
25530
  export declare const updateInvoiceLineRateCardWire: z.ZodObject<{
25321
25531
  price: z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -27079,6 +27289,21 @@ export declare const invoiceStandardLineWire: z.ZodObject<{
27079
27289
  percentage: z.ZodOptional<z.ZodNumber>;
27080
27290
  usage: z.ZodOptional<z.ZodString>;
27081
27291
  }, z.core.$strict>>;
27292
+ unit_config: z.ZodOptional<z.ZodObject<{
27293
+ operation: z.ZodEnum<{
27294
+ multiply: "multiply";
27295
+ divide: "divide";
27296
+ }>;
27297
+ conversion_factor: z.ZodString;
27298
+ rounding: z.ZodOptional<z.ZodEnum<{
27299
+ none: "none";
27300
+ floor: "floor";
27301
+ ceiling: "ceiling";
27302
+ half_up: "half_up";
27303
+ }>>;
27304
+ precision: z.ZodOptional<z.ZodNumber>;
27305
+ display_unit: z.ZodOptional<z.ZodString>;
27306
+ }, z.core.$strict>>;
27082
27307
  }, z.core.$strict>;
27083
27308
  detailed_lines: z.ZodArray<z.ZodObject<{
27084
27309
  id: z.ZodString;
@@ -28492,6 +28717,21 @@ export declare const invoiceLineWire: z.ZodDiscriminatedUnion<[z.ZodObject<{
28492
28717
  percentage: z.ZodOptional<z.ZodNumber>;
28493
28718
  usage: z.ZodOptional<z.ZodString>;
28494
28719
  }, z.core.$strict>>;
28720
+ unit_config: z.ZodOptional<z.ZodObject<{
28721
+ operation: z.ZodEnum<{
28722
+ multiply: "multiply";
28723
+ divide: "divide";
28724
+ }>;
28725
+ conversion_factor: z.ZodString;
28726
+ rounding: z.ZodOptional<z.ZodEnum<{
28727
+ none: "none";
28728
+ floor: "floor";
28729
+ ceiling: "ceiling";
28730
+ half_up: "half_up";
28731
+ }>>;
28732
+ precision: z.ZodOptional<z.ZodNumber>;
28733
+ display_unit: z.ZodOptional<z.ZodString>;
28734
+ }, z.core.$strict>>;
28495
28735
  }, z.core.$strict>;
28496
28736
  detailed_lines: z.ZodArray<z.ZodObject<{
28497
28737
  id: z.ZodString;
@@ -29588,6 +29828,21 @@ export declare const invoiceStandardWire: z.ZodObject<{
29588
29828
  percentage: z.ZodOptional<z.ZodNumber>;
29589
29829
  usage: z.ZodOptional<z.ZodString>;
29590
29830
  }, z.core.$strict>>;
29831
+ unit_config: z.ZodOptional<z.ZodObject<{
29832
+ operation: z.ZodEnum<{
29833
+ multiply: "multiply";
29834
+ divide: "divide";
29835
+ }>;
29836
+ conversion_factor: z.ZodString;
29837
+ rounding: z.ZodOptional<z.ZodEnum<{
29838
+ none: "none";
29839
+ floor: "floor";
29840
+ ceiling: "ceiling";
29841
+ half_up: "half_up";
29842
+ }>>;
29843
+ precision: z.ZodOptional<z.ZodNumber>;
29844
+ display_unit: z.ZodOptional<z.ZodString>;
29845
+ }, z.core.$strict>>;
29591
29846
  }, z.core.$strict>;
29592
29847
  detailed_lines: z.ZodArray<z.ZodObject<{
29593
29848
  id: z.ZodString;
@@ -30035,6 +30290,21 @@ export declare const invoiceWire: z.ZodDiscriminatedUnion<[z.ZodObject<{
30035
30290
  percentage: z.ZodOptional<z.ZodNumber>;
30036
30291
  usage: z.ZodOptional<z.ZodString>;
30037
30292
  }, z.core.$strict>>;
30293
+ unit_config: z.ZodOptional<z.ZodObject<{
30294
+ operation: z.ZodEnum<{
30295
+ multiply: "multiply";
30296
+ divide: "divide";
30297
+ }>;
30298
+ conversion_factor: z.ZodString;
30299
+ rounding: z.ZodOptional<z.ZodEnum<{
30300
+ none: "none";
30301
+ floor: "floor";
30302
+ ceiling: "ceiling";
30303
+ half_up: "half_up";
30304
+ }>>;
30305
+ precision: z.ZodOptional<z.ZodNumber>;
30306
+ display_unit: z.ZodOptional<z.ZodString>;
30307
+ }, z.core.$strict>>;
30038
30308
  }, z.core.$strict>;
30039
30309
  detailed_lines: z.ZodArray<z.ZodObject<{
30040
30310
  id: z.ZodString;
@@ -30483,6 +30753,21 @@ export declare const invoicePagePaginatedResponseWire: z.ZodObject<{
30483
30753
  percentage: z.ZodOptional<z.ZodNumber>;
30484
30754
  usage: z.ZodOptional<z.ZodString>;
30485
30755
  }, z.core.$strict>>;
30756
+ unit_config: z.ZodOptional<z.ZodObject<{
30757
+ operation: z.ZodEnum<{
30758
+ multiply: "multiply";
30759
+ divide: "divide";
30760
+ }>;
30761
+ conversion_factor: z.ZodString;
30762
+ rounding: z.ZodOptional<z.ZodEnum<{
30763
+ none: "none";
30764
+ floor: "floor";
30765
+ ceiling: "ceiling";
30766
+ half_up: "half_up";
30767
+ }>>;
30768
+ precision: z.ZodOptional<z.ZodNumber>;
30769
+ display_unit: z.ZodOptional<z.ZodString>;
30770
+ }, z.core.$strict>>;
30486
30771
  }, z.core.$strict>;
30487
30772
  detailed_lines: z.ZodArray<z.ZodObject<{
30488
30773
  id: z.ZodString;
@@ -34646,6 +34931,21 @@ export declare const listInvoicesResponseWire: z.ZodObject<{
34646
34931
  percentage: z.ZodOptional<z.ZodNumber>;
34647
34932
  usage: z.ZodOptional<z.ZodString>;
34648
34933
  }, z.core.$strict>>;
34934
+ unit_config: z.ZodOptional<z.ZodObject<{
34935
+ operation: z.ZodEnum<{
34936
+ multiply: "multiply";
34937
+ divide: "divide";
34938
+ }>;
34939
+ conversion_factor: z.ZodString;
34940
+ rounding: z.ZodOptional<z.ZodEnum<{
34941
+ none: "none";
34942
+ floor: "floor";
34943
+ ceiling: "ceiling";
34944
+ half_up: "half_up";
34945
+ }>>;
34946
+ precision: z.ZodOptional<z.ZodNumber>;
34947
+ display_unit: z.ZodOptional<z.ZodString>;
34948
+ }, z.core.$strict>>;
34649
34949
  }, z.core.$strict>;
34650
34950
  detailed_lines: z.ZodArray<z.ZodObject<{
34651
34951
  id: z.ZodString;
@@ -34988,6 +35288,21 @@ export declare const getInvoiceResponseWire: z.ZodDiscriminatedUnion<[z.ZodObjec
34988
35288
  percentage: z.ZodOptional<z.ZodNumber>;
34989
35289
  usage: z.ZodOptional<z.ZodString>;
34990
35290
  }, z.core.$strict>>;
35291
+ unit_config: z.ZodOptional<z.ZodObject<{
35292
+ operation: z.ZodEnum<{
35293
+ multiply: "multiply";
35294
+ divide: "divide";
35295
+ }>;
35296
+ conversion_factor: z.ZodString;
35297
+ rounding: z.ZodOptional<z.ZodEnum<{
35298
+ none: "none";
35299
+ floor: "floor";
35300
+ ceiling: "ceiling";
35301
+ half_up: "half_up";
35302
+ }>>;
35303
+ precision: z.ZodOptional<z.ZodNumber>;
35304
+ display_unit: z.ZodOptional<z.ZodString>;
35305
+ }, z.core.$strict>>;
34991
35306
  }, z.core.$strict>;
34992
35307
  detailed_lines: z.ZodArray<z.ZodObject<{
34993
35308
  id: z.ZodString;
@@ -35438,6 +35753,21 @@ export declare const updateInvoiceResponseWire: z.ZodDiscriminatedUnion<[z.ZodOb
35438
35753
  percentage: z.ZodOptional<z.ZodNumber>;
35439
35754
  usage: z.ZodOptional<z.ZodString>;
35440
35755
  }, z.core.$strict>>;
35756
+ unit_config: z.ZodOptional<z.ZodObject<{
35757
+ operation: z.ZodEnum<{
35758
+ multiply: "multiply";
35759
+ divide: "divide";
35760
+ }>;
35761
+ conversion_factor: z.ZodString;
35762
+ rounding: z.ZodOptional<z.ZodEnum<{
35763
+ none: "none";
35764
+ floor: "floor";
35765
+ ceiling: "ceiling";
35766
+ half_up: "half_up";
35767
+ }>>;
35768
+ precision: z.ZodOptional<z.ZodNumber>;
35769
+ display_unit: z.ZodOptional<z.ZodString>;
35770
+ }, z.core.$strict>>;
35441
35771
  }, z.core.$strict>;
35442
35772
  detailed_lines: z.ZodArray<z.ZodObject<{
35443
35773
  id: z.ZodString;
@@ -35775,6 +36105,21 @@ export declare const advanceInvoiceResponseWire: z.ZodDiscriminatedUnion<[z.ZodO
35775
36105
  percentage: z.ZodOptional<z.ZodNumber>;
35776
36106
  usage: z.ZodOptional<z.ZodString>;
35777
36107
  }, z.core.$strict>>;
36108
+ unit_config: z.ZodOptional<z.ZodObject<{
36109
+ operation: z.ZodEnum<{
36110
+ multiply: "multiply";
36111
+ divide: "divide";
36112
+ }>;
36113
+ conversion_factor: z.ZodString;
36114
+ rounding: z.ZodOptional<z.ZodEnum<{
36115
+ none: "none";
36116
+ floor: "floor";
36117
+ ceiling: "ceiling";
36118
+ half_up: "half_up";
36119
+ }>>;
36120
+ precision: z.ZodOptional<z.ZodNumber>;
36121
+ display_unit: z.ZodOptional<z.ZodString>;
36122
+ }, z.core.$strict>>;
35778
36123
  }, z.core.$strict>;
35779
36124
  detailed_lines: z.ZodArray<z.ZodObject<{
35780
36125
  id: z.ZodString;
@@ -36109,6 +36454,21 @@ export declare const approveInvoiceResponseWire: z.ZodDiscriminatedUnion<[z.ZodO
36109
36454
  percentage: z.ZodOptional<z.ZodNumber>;
36110
36455
  usage: z.ZodOptional<z.ZodString>;
36111
36456
  }, z.core.$strict>>;
36457
+ unit_config: z.ZodOptional<z.ZodObject<{
36458
+ operation: z.ZodEnum<{
36459
+ multiply: "multiply";
36460
+ divide: "divide";
36461
+ }>;
36462
+ conversion_factor: z.ZodString;
36463
+ rounding: z.ZodOptional<z.ZodEnum<{
36464
+ none: "none";
36465
+ floor: "floor";
36466
+ ceiling: "ceiling";
36467
+ half_up: "half_up";
36468
+ }>>;
36469
+ precision: z.ZodOptional<z.ZodNumber>;
36470
+ display_unit: z.ZodOptional<z.ZodString>;
36471
+ }, z.core.$strict>>;
36112
36472
  }, z.core.$strict>;
36113
36473
  detailed_lines: z.ZodArray<z.ZodObject<{
36114
36474
  id: z.ZodString;
@@ -36443,6 +36803,21 @@ export declare const retryInvoiceResponseWire: z.ZodDiscriminatedUnion<[z.ZodObj
36443
36803
  percentage: z.ZodOptional<z.ZodNumber>;
36444
36804
  usage: z.ZodOptional<z.ZodString>;
36445
36805
  }, z.core.$strict>>;
36806
+ unit_config: z.ZodOptional<z.ZodObject<{
36807
+ operation: z.ZodEnum<{
36808
+ multiply: "multiply";
36809
+ divide: "divide";
36810
+ }>;
36811
+ conversion_factor: z.ZodString;
36812
+ rounding: z.ZodOptional<z.ZodEnum<{
36813
+ none: "none";
36814
+ floor: "floor";
36815
+ ceiling: "ceiling";
36816
+ half_up: "half_up";
36817
+ }>>;
36818
+ precision: z.ZodOptional<z.ZodNumber>;
36819
+ display_unit: z.ZodOptional<z.ZodString>;
36820
+ }, z.core.$strict>>;
36446
36821
  }, z.core.$strict>;
36447
36822
  detailed_lines: z.ZodArray<z.ZodObject<{
36448
36823
  id: z.ZodString;
@@ -36777,6 +37152,21 @@ export declare const snapshotQuantitiesInvoiceResponseWire: z.ZodDiscriminatedUn
36777
37152
  percentage: z.ZodOptional<z.ZodNumber>;
36778
37153
  usage: z.ZodOptional<z.ZodString>;
36779
37154
  }, z.core.$strict>>;
37155
+ unit_config: z.ZodOptional<z.ZodObject<{
37156
+ operation: z.ZodEnum<{
37157
+ multiply: "multiply";
37158
+ divide: "divide";
37159
+ }>;
37160
+ conversion_factor: z.ZodString;
37161
+ rounding: z.ZodOptional<z.ZodEnum<{
37162
+ none: "none";
37163
+ floor: "floor";
37164
+ ceiling: "ceiling";
37165
+ half_up: "half_up";
37166
+ }>>;
37167
+ precision: z.ZodOptional<z.ZodNumber>;
37168
+ display_unit: z.ZodOptional<z.ZodString>;
37169
+ }, z.core.$strict>>;
36780
37170
  }, z.core.$strict>;
36781
37171
  detailed_lines: z.ZodArray<z.ZodObject<{
36782
37172
  id: z.ZodString;
@@ -3742,6 +3742,7 @@ export const invoiceLineRateCard = z
3742
3742
  taxConfig: rateCardTaxConfig.optional(),
3743
3743
  featureKey: resourceKey.optional(),
3744
3744
  discounts: rateCardDiscounts.optional(),
3745
+ unitConfig: unitConfig.optional(),
3745
3746
  })
3746
3747
  .describe('Rate card configuration snapshot for a usage-based invoice line.');
3747
3748
  export const updateInvoiceLineRateCard = z
@@ -8706,6 +8707,7 @@ export const invoiceLineRateCardWire = z
8706
8707
  tax_config: rateCardTaxConfigWire.optional(),
8707
8708
  feature_key: resourceKeyWire.optional(),
8708
8709
  discounts: rateCardDiscountsWire.optional(),
8710
+ unit_config: unitConfigWire.optional(),
8709
8711
  })
8710
8712
  .describe('Rate card configuration snapshot for a usage-based invoice line.');
8711
8713
  export const updateInvoiceLineRateCardWire = z
@@ -4180,6 +4180,11 @@ export interface InvoiceLineRateCard {
4180
4180
  featureKey?: string;
4181
4181
  /** Discount configuration from the rate card. */
4182
4182
  discounts?: RateCardDiscounts;
4183
+ /**
4184
+ * Unit config snapshot applied when this line was billed, converting the raw
4185
+ * metered quantity into the billed quantity. Frozen at billing time; read-only.
4186
+ */
4187
+ unitConfig?: UnitConfig;
4183
4188
  }
4184
4189
  /** Rate card configuration snapshot for a usage-based invoice line. */
4185
4190
  export interface UpdateInvoiceLineRateCard {
@@ -5948,6 +5953,22 @@ export interface RateCardInput {
5948
5953
  */
5949
5954
  entitlement?: RateCardEntitlementInput;
5950
5955
  }
5956
+ /** Rate card configuration snapshot for a usage-based invoice line. */
5957
+ export interface InvoiceLineRateCardInput {
5958
+ /** The price definition used to calculate charges for this line. */
5959
+ price: Price;
5960
+ /** Tax configuration snapshot for this line. */
5961
+ taxConfig?: RateCardTaxConfig;
5962
+ /** The feature key associated with this line's rate card. */
5963
+ featureKey?: string;
5964
+ /** Discount configuration from the rate card. */
5965
+ discounts?: RateCardDiscounts;
5966
+ /**
5967
+ * Unit config snapshot applied when this line was billed, converting the raw
5968
+ * metered quantity into the billed quantity. Frozen at billing time; read-only.
5969
+ */
5970
+ unitConfig?: UnitConfigInput;
5971
+ }
5951
5972
  /** Billing workflow settings. */
5952
5973
  export interface WorkflowInput {
5953
5974
  /** The collection settings for this workflow */
@@ -6163,7 +6184,7 @@ export interface InvoiceStandardLineInput {
6163
6184
  /** Reference to the subscription item that generated this line. */
6164
6185
  subscription?: SubscriptionReference;
6165
6186
  /** The rate card configuration snapshot used to price this line item. */
6166
- rateCard: InvoiceLineRateCard;
6187
+ rateCard: InvoiceLineRateCardInput;
6167
6188
  /**
6168
6189
  * Detailed sub-lines that this line has been broken down into.
6169
6190
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openmeter/client",
3
- "version": "1.0.0-beta-f1eac1446b89",
3
+ "version": "1.0.0-beta-02fbd9bb055b",
4
4
  "description": "Official TypeScript SDK for the OpenMeter API — usage metering and billing",
5
5
  "keywords": [
6
6
  "openmeter",