@openmeter/client 1.0.0-beta-0c17e8419218 → 1.0.0-beta-7350914aec09

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
@@ -40,4 +40,4 @@ export type * from './models/operations/addons.js';
40
40
  export type * from './models/operations/planAddons.js';
41
41
  export type * from './models/operations/defaults.js';
42
42
  export type * from './models/operations/governance.js';
43
- export type { Labels, CursorPaginationQueryPage, SortQuery, IngestedEventValidationError, CursorMetaPage, BaseError, PageMeta, QueryFilterString, AppStripeCheckoutSessionCustomTextParams, AppStripeCreateCustomerPortalSessionOptions, CreateLabels, TaxConfigStripe, TaxConfigExternalInvoicing, ChargeFlatFeeDiscounts, PriceFree, RateCardStaticEntitlement, RateCardBooleanEntitlement, UpdateLabels, InstallAppStripeWithApiKey, InstallAppSandbox, InstallAppExternalInvoicing, WorkflowCollectionAlignmentSubscription, WorkflowPaymentChargeAutomaticallySettings, WorkflowPaymentSendInvoiceSettings, InvoiceExternalReferences, InvoiceAvailableActionDetails, InvoiceWorkflowInvoicingSettings, InvoiceLineExternalReferences, UpdateBillingInvoiceWorkflowInvoicingSettings, UpdateBillingWorkflowPaymentChargeAutomaticallySettings, UpdateBillingWorkflowPaymentSendInvoiceSettings, UpdatePriceFree, LlmCostProvider, LlmCostModel, ProductCatalogValidationError, GovernanceQueryRequestCustomers, GovernanceQueryRequestFeatures, QueryFilterInteger, QueryFilterFloat, QueryFilterBoolean, PagePaginationQuery, PublicLabels, SystemAccountAccessToken, PersonalAccessToken, KonnectAccessToken, AppCustomerDataStripe, AppCustomerDataExternalInvoicing, CurrencyFiat, ListCostBasesParamsFilter, CreateCurrencyCustomRequest, 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, UpdateAppStripeRequest, UpdateAppSandboxRequest, UpdateAppExternalInvoicingRequest, PartyTaxIdentity, UpdateBillingPartyTaxIdentity, WorkflowInvoicingSettings, InvoiceValidationIssue, InvoiceAvailableActions, InvoiceLineAmountDiscount, InvoiceLineUsageDiscount, InvoiceLineBaseDiscount, ListCurrenciesParamsFilter, 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, CurrencyCustom, 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, GovernanceQueryResult, Feature, CreditGrantPagePaginatedResponse, CurrencyPagePaginatedResponse, 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, FeatureUnitCost, Currency, 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';
43
+ export type { Labels, CursorPaginationQueryPage, SortQuery, IngestedEventValidationError, CursorMetaPage, BaseError, PageMeta, QueryFilterString, AppStripeCheckoutSessionCustomTextParams, AppStripeCreateCustomerPortalSessionOptions, CreateLabels, TaxConfigStripe, TaxConfigExternalInvoicing, ChargeFlatFeeDiscounts, PriceFree, RateCardStaticEntitlement, RateCardBooleanEntitlement, UpdateLabels, InstallAppStripeWithApiKey, InstallAppSandbox, InstallAppExternalInvoicing, WorkflowCollectionAlignmentSubscription, WorkflowPaymentChargeAutomaticallySettings, WorkflowPaymentSendInvoiceSettings, InvoiceExternalReferences, InvoiceAvailableActionDetails, InvoiceWorkflowInvoicingSettings, InvoiceLineExternalReferences, UpdateBillingInvoiceWorkflowInvoicingSettings, UpdateBillingWorkflowPaymentChargeAutomaticallySettings, UpdateBillingWorkflowPaymentSendInvoiceSettings, UpdatePriceFree, LlmCostProvider, LlmCostModel, ProductCatalogValidationError, GovernanceQueryRequestCustomers, GovernanceQueryRequestFeatures, QueryFilterInteger, QueryFilterFloat, QueryFilterBoolean, PagePaginationQuery, PublicLabels, SystemAccountAccessToken, PersonalAccessToken, KonnectAccessToken, AppCustomerDataStripe, AppCustomerDataExternalInvoicing, CurrencyFiat, ListCostBasesParamsFilter, CreateCurrencyCustomRequest, CurrencyAmount, PriceFlat, PriceUnit, RateCardDiscounts, Totals, SpendCommitments, InvoiceLineCreditsApplied, InvoiceUsageQuantityDetail, 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, UpdateAppStripeRequest, UpdateAppSandboxRequest, UpdateAppExternalInvoicingRequest, PartyTaxIdentity, UpdateBillingPartyTaxIdentity, WorkflowInvoicingSettings, InvoiceValidationIssue, InvoiceAvailableActions, InvoiceLineAmountDiscount, InvoiceLineUsageDiscount, InvoiceLineBaseDiscount, ListCurrenciesParamsFilter, 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, CurrencyCustom, FeatureCostQueryResult, MeterPagePaginatedResponse, CostBasisPagePaginatedResponse, MeterQueryFilters, FeatureMeterReference, Customer, PartyAddresses, InvoiceCustomer, UpdateBillingPartyAddresses, UpdateInvoiceCustomer, AppStripeCreateCheckoutSessionConsentCollection, ListCustomerEntitlementAccessResponseData, WorkflowCollectionAlignmentAnchored, ChargeFlatFeeSystemIntent, SubscriptionPagePaginatedResponse, SubscriptionChangeResponse, SubscriptionCancel, SubscriptionChange, 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, GovernanceQueryResult, Feature, CreditGrantPagePaginatedResponse, CurrencyPagePaginatedResponse, 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, FeatureUnitCost, Currency, 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, 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-0c17e8419218";
1
+ export declare const SDK_VERSION = "1.0.0-beta-7350914aec09";
@@ -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-0c17e8419218';
5
+ export const SDK_VERSION = '1.0.0-beta-7350914aec09';
@@ -595,6 +595,11 @@ export declare const invoiceLineCreditsApplied: z.ZodObject<{
595
595
  amount: z.ZodString;
596
596
  description: z.ZodOptional<z.ZodString>;
597
597
  }, z.core.$strip>;
598
+ export declare const invoiceUsageQuantityDetail: z.ZodObject<{
599
+ rawQuantity: z.ZodString;
600
+ invoicedQuantity: z.ZodString;
601
+ displayUnit: z.ZodOptional<z.ZodString>;
602
+ }, z.core.$strip>;
598
603
  export declare const updatePriceFlat: z.ZodObject<{
599
604
  type: z.ZodLiteral<"flat">;
600
605
  amount: z.ZodString;
@@ -2855,27 +2860,6 @@ export declare const createSubscriptionAddonRequest: z.ZodObject<{
2855
2860
  next_billing_cycle: "next_billing_cycle";
2856
2861
  }>, z.ZodDate]>;
2857
2862
  }, z.core.$strip>;
2858
- export declare const invoiceUsageQuantityDetail: z.ZodObject<{
2859
- rawQuantity: z.ZodString;
2860
- convertedQuantity: z.ZodString;
2861
- invoicedQuantity: z.ZodString;
2862
- displayUnit: z.ZodOptional<z.ZodString>;
2863
- appliedUnitConfig: z.ZodObject<{
2864
- operation: z.ZodEnum<{
2865
- divide: "divide";
2866
- multiply: "multiply";
2867
- }>;
2868
- conversionFactor: z.ZodString;
2869
- rounding: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
2870
- ceiling: "ceiling";
2871
- floor: "floor";
2872
- half_up: "half_up";
2873
- none: "none";
2874
- }>>>;
2875
- precision: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
2876
- displayUnit: z.ZodOptional<z.ZodString>;
2877
- }, z.core.$strip>;
2878
- }, z.core.$strip>;
2879
2863
  export declare const createTaxCodeRequest: z.ZodObject<{
2880
2864
  name: z.ZodString;
2881
2865
  description: z.ZodOptional<z.ZodString>;
@@ -7203,6 +7187,11 @@ export declare const invoiceStandardLine: z.ZodObject<{
7203
7187
  quantity: z.ZodString;
7204
7188
  unitPrice: z.ZodString;
7205
7189
  }, z.core.$strip>>;
7190
+ usageQuantityDetail: z.ZodOptional<z.ZodObject<{
7191
+ rawQuantity: z.ZodString;
7192
+ invoicedQuantity: z.ZodString;
7193
+ displayUnit: z.ZodOptional<z.ZodString>;
7194
+ }, z.core.$strip>>;
7206
7195
  charge: z.ZodOptional<z.ZodObject<{
7207
7196
  id: z.ZodString;
7208
7197
  }, z.core.$strip>>;
@@ -8638,6 +8627,11 @@ export declare const invoiceLine: z.ZodDiscriminatedUnion<[z.ZodObject<{
8638
8627
  quantity: z.ZodString;
8639
8628
  unitPrice: z.ZodString;
8640
8629
  }, z.core.$strip>>;
8630
+ usageQuantityDetail: z.ZodOptional<z.ZodObject<{
8631
+ rawQuantity: z.ZodString;
8632
+ invoicedQuantity: z.ZodString;
8633
+ displayUnit: z.ZodOptional<z.ZodString>;
8634
+ }, z.core.$strip>>;
8641
8635
  charge: z.ZodOptional<z.ZodObject<{
8642
8636
  id: z.ZodString;
8643
8637
  }, z.core.$strip>>;
@@ -9753,6 +9747,11 @@ export declare const invoiceStandard: z.ZodObject<{
9753
9747
  quantity: z.ZodString;
9754
9748
  unitPrice: z.ZodString;
9755
9749
  }, z.core.$strip>>;
9750
+ usageQuantityDetail: z.ZodOptional<z.ZodObject<{
9751
+ rawQuantity: z.ZodString;
9752
+ invoicedQuantity: z.ZodString;
9753
+ displayUnit: z.ZodOptional<z.ZodString>;
9754
+ }, z.core.$strip>>;
9756
9755
  charge: z.ZodOptional<z.ZodObject<{
9757
9756
  id: z.ZodString;
9758
9757
  }, z.core.$strip>>;
@@ -10215,6 +10214,11 @@ export declare const invoice: z.ZodDiscriminatedUnion<[z.ZodObject<{
10215
10214
  quantity: z.ZodString;
10216
10215
  unitPrice: z.ZodString;
10217
10216
  }, z.core.$strip>>;
10217
+ usageQuantityDetail: z.ZodOptional<z.ZodObject<{
10218
+ rawQuantity: z.ZodString;
10219
+ invoicedQuantity: z.ZodString;
10220
+ displayUnit: z.ZodOptional<z.ZodString>;
10221
+ }, z.core.$strip>>;
10218
10222
  charge: z.ZodOptional<z.ZodObject<{
10219
10223
  id: z.ZodString;
10220
10224
  }, z.core.$strip>>;
@@ -10678,6 +10682,11 @@ export declare const invoicePagePaginatedResponse: z.ZodObject<{
10678
10682
  quantity: z.ZodString;
10679
10683
  unitPrice: z.ZodString;
10680
10684
  }, z.core.$strip>>;
10685
+ usageQuantityDetail: z.ZodOptional<z.ZodObject<{
10686
+ rawQuantity: z.ZodString;
10687
+ invoicedQuantity: z.ZodString;
10688
+ displayUnit: z.ZodOptional<z.ZodString>;
10689
+ }, z.core.$strip>>;
10681
10690
  charge: z.ZodOptional<z.ZodObject<{
10682
10691
  id: z.ZodString;
10683
10692
  }, z.core.$strip>>;
@@ -15032,6 +15041,11 @@ export declare const listInvoicesResponse: z.ZodObject<{
15032
15041
  quantity: z.ZodString;
15033
15042
  unitPrice: z.ZodString;
15034
15043
  }, z.core.$strip>>;
15044
+ usageQuantityDetail: z.ZodOptional<z.ZodObject<{
15045
+ rawQuantity: z.ZodString;
15046
+ invoicedQuantity: z.ZodString;
15047
+ displayUnit: z.ZodOptional<z.ZodString>;
15048
+ }, z.core.$strip>>;
15035
15049
  charge: z.ZodOptional<z.ZodObject<{
15036
15050
  id: z.ZodString;
15037
15051
  }, z.core.$strip>>;
@@ -15389,6 +15403,11 @@ export declare const getInvoiceResponse: z.ZodDiscriminatedUnion<[z.ZodObject<{
15389
15403
  quantity: z.ZodString;
15390
15404
  unitPrice: z.ZodString;
15391
15405
  }, z.core.$strip>>;
15406
+ usageQuantityDetail: z.ZodOptional<z.ZodObject<{
15407
+ rawQuantity: z.ZodString;
15408
+ invoicedQuantity: z.ZodString;
15409
+ displayUnit: z.ZodOptional<z.ZodString>;
15410
+ }, z.core.$strip>>;
15392
15411
  charge: z.ZodOptional<z.ZodObject<{
15393
15412
  id: z.ZodString;
15394
15413
  }, z.core.$strip>>;
@@ -15854,6 +15873,11 @@ export declare const updateInvoiceResponse: z.ZodDiscriminatedUnion<[z.ZodObject
15854
15873
  quantity: z.ZodString;
15855
15874
  unitPrice: z.ZodString;
15856
15875
  }, z.core.$strip>>;
15876
+ usageQuantityDetail: z.ZodOptional<z.ZodObject<{
15877
+ rawQuantity: z.ZodString;
15878
+ invoicedQuantity: z.ZodString;
15879
+ displayUnit: z.ZodOptional<z.ZodString>;
15880
+ }, z.core.$strip>>;
15857
15881
  charge: z.ZodOptional<z.ZodObject<{
15858
15882
  id: z.ZodString;
15859
15883
  }, z.core.$strip>>;
@@ -16206,6 +16230,11 @@ export declare const advanceInvoiceResponse: z.ZodDiscriminatedUnion<[z.ZodObjec
16206
16230
  quantity: z.ZodString;
16207
16231
  unitPrice: z.ZodString;
16208
16232
  }, z.core.$strip>>;
16233
+ usageQuantityDetail: z.ZodOptional<z.ZodObject<{
16234
+ rawQuantity: z.ZodString;
16235
+ invoicedQuantity: z.ZodString;
16236
+ displayUnit: z.ZodOptional<z.ZodString>;
16237
+ }, z.core.$strip>>;
16209
16238
  charge: z.ZodOptional<z.ZodObject<{
16210
16239
  id: z.ZodString;
16211
16240
  }, z.core.$strip>>;
@@ -16555,6 +16584,11 @@ export declare const approveInvoiceResponse: z.ZodDiscriminatedUnion<[z.ZodObjec
16555
16584
  quantity: z.ZodString;
16556
16585
  unitPrice: z.ZodString;
16557
16586
  }, z.core.$strip>>;
16587
+ usageQuantityDetail: z.ZodOptional<z.ZodObject<{
16588
+ rawQuantity: z.ZodString;
16589
+ invoicedQuantity: z.ZodString;
16590
+ displayUnit: z.ZodOptional<z.ZodString>;
16591
+ }, z.core.$strip>>;
16558
16592
  charge: z.ZodOptional<z.ZodObject<{
16559
16593
  id: z.ZodString;
16560
16594
  }, z.core.$strip>>;
@@ -16904,6 +16938,11 @@ export declare const retryInvoiceResponse: z.ZodDiscriminatedUnion<[z.ZodObject<
16904
16938
  quantity: z.ZodString;
16905
16939
  unitPrice: z.ZodString;
16906
16940
  }, z.core.$strip>>;
16941
+ usageQuantityDetail: z.ZodOptional<z.ZodObject<{
16942
+ rawQuantity: z.ZodString;
16943
+ invoicedQuantity: z.ZodString;
16944
+ displayUnit: z.ZodOptional<z.ZodString>;
16945
+ }, z.core.$strip>>;
16907
16946
  charge: z.ZodOptional<z.ZodObject<{
16908
16947
  id: z.ZodString;
16909
16948
  }, z.core.$strip>>;
@@ -17253,6 +17292,11 @@ export declare const snapshotQuantitiesInvoiceResponse: z.ZodDiscriminatedUnion<
17253
17292
  quantity: z.ZodString;
17254
17293
  unitPrice: z.ZodString;
17255
17294
  }, z.core.$strip>>;
17295
+ usageQuantityDetail: z.ZodOptional<z.ZodObject<{
17296
+ rawQuantity: z.ZodString;
17297
+ invoicedQuantity: z.ZodString;
17298
+ displayUnit: z.ZodOptional<z.ZodString>;
17299
+ }, z.core.$strip>>;
17256
17300
  charge: z.ZodOptional<z.ZodObject<{
17257
17301
  id: z.ZodString;
17258
17302
  }, z.core.$strip>>;
@@ -21188,6 +21232,11 @@ export declare const invoiceLineCreditsAppliedWire: z.ZodObject<{
21188
21232
  amount: z.ZodString;
21189
21233
  description: z.ZodOptional<z.ZodString>;
21190
21234
  }, z.core.$strict>;
21235
+ export declare const invoiceUsageQuantityDetailWire: z.ZodObject<{
21236
+ raw_quantity: z.ZodString;
21237
+ invoiced_quantity: z.ZodString;
21238
+ display_unit: z.ZodOptional<z.ZodString>;
21239
+ }, z.core.$strict>;
21191
21240
  export declare const updatePriceFlatWire: z.ZodObject<{
21192
21241
  type: z.ZodLiteral<"flat">;
21193
21242
  amount: z.ZodString;
@@ -23448,27 +23497,6 @@ export declare const createSubscriptionAddonRequestWire: z.ZodObject<{
23448
23497
  next_billing_cycle: "next_billing_cycle";
23449
23498
  }>, z.ZodString]>;
23450
23499
  }, z.core.$strict>;
23451
- export declare const invoiceUsageQuantityDetailWire: z.ZodObject<{
23452
- raw_quantity: z.ZodString;
23453
- converted_quantity: z.ZodString;
23454
- invoiced_quantity: z.ZodString;
23455
- display_unit: z.ZodOptional<z.ZodString>;
23456
- applied_unit_config: z.ZodObject<{
23457
- operation: z.ZodEnum<{
23458
- divide: "divide";
23459
- multiply: "multiply";
23460
- }>;
23461
- conversion_factor: z.ZodString;
23462
- rounding: z.ZodOptional<z.ZodEnum<{
23463
- ceiling: "ceiling";
23464
- floor: "floor";
23465
- half_up: "half_up";
23466
- none: "none";
23467
- }>>;
23468
- precision: z.ZodOptional<z.ZodNumber>;
23469
- display_unit: z.ZodOptional<z.ZodString>;
23470
- }, z.core.$strict>;
23471
- }, z.core.$strict>;
23472
23500
  export declare const createTaxCodeRequestWire: z.ZodObject<{
23473
23501
  name: z.ZodString;
23474
23502
  description: z.ZodOptional<z.ZodString>;
@@ -27796,6 +27824,11 @@ export declare const invoiceStandardLineWire: z.ZodObject<{
27796
27824
  quantity: z.ZodString;
27797
27825
  unit_price: z.ZodString;
27798
27826
  }, z.core.$strict>>;
27827
+ usage_quantity_detail: z.ZodOptional<z.ZodObject<{
27828
+ raw_quantity: z.ZodString;
27829
+ invoiced_quantity: z.ZodString;
27830
+ display_unit: z.ZodOptional<z.ZodString>;
27831
+ }, z.core.$strict>>;
27799
27832
  charge: z.ZodOptional<z.ZodObject<{
27800
27833
  id: z.ZodString;
27801
27834
  }, z.core.$strict>>;
@@ -29231,6 +29264,11 @@ export declare const invoiceLineWire: z.ZodDiscriminatedUnion<[z.ZodObject<{
29231
29264
  quantity: z.ZodString;
29232
29265
  unit_price: z.ZodString;
29233
29266
  }, z.core.$strict>>;
29267
+ usage_quantity_detail: z.ZodOptional<z.ZodObject<{
29268
+ raw_quantity: z.ZodString;
29269
+ invoiced_quantity: z.ZodString;
29270
+ display_unit: z.ZodOptional<z.ZodString>;
29271
+ }, z.core.$strict>>;
29234
29272
  charge: z.ZodOptional<z.ZodObject<{
29235
29273
  id: z.ZodString;
29236
29274
  }, z.core.$strict>>;
@@ -30346,6 +30384,11 @@ export declare const invoiceStandardWire: z.ZodObject<{
30346
30384
  quantity: z.ZodString;
30347
30385
  unit_price: z.ZodString;
30348
30386
  }, z.core.$strict>>;
30387
+ usage_quantity_detail: z.ZodOptional<z.ZodObject<{
30388
+ raw_quantity: z.ZodString;
30389
+ invoiced_quantity: z.ZodString;
30390
+ display_unit: z.ZodOptional<z.ZodString>;
30391
+ }, z.core.$strict>>;
30349
30392
  charge: z.ZodOptional<z.ZodObject<{
30350
30393
  id: z.ZodString;
30351
30394
  }, z.core.$strict>>;
@@ -30808,6 +30851,11 @@ export declare const invoiceWire: z.ZodDiscriminatedUnion<[z.ZodObject<{
30808
30851
  quantity: z.ZodString;
30809
30852
  unit_price: z.ZodString;
30810
30853
  }, z.core.$strict>>;
30854
+ usage_quantity_detail: z.ZodOptional<z.ZodObject<{
30855
+ raw_quantity: z.ZodString;
30856
+ invoiced_quantity: z.ZodString;
30857
+ display_unit: z.ZodOptional<z.ZodString>;
30858
+ }, z.core.$strict>>;
30811
30859
  charge: z.ZodOptional<z.ZodObject<{
30812
30860
  id: z.ZodString;
30813
30861
  }, z.core.$strict>>;
@@ -31271,6 +31319,11 @@ export declare const invoicePagePaginatedResponseWire: z.ZodObject<{
31271
31319
  quantity: z.ZodString;
31272
31320
  unit_price: z.ZodString;
31273
31321
  }, z.core.$strict>>;
31322
+ usage_quantity_detail: z.ZodOptional<z.ZodObject<{
31323
+ raw_quantity: z.ZodString;
31324
+ invoiced_quantity: z.ZodString;
31325
+ display_unit: z.ZodOptional<z.ZodString>;
31326
+ }, z.core.$strict>>;
31274
31327
  charge: z.ZodOptional<z.ZodObject<{
31275
31328
  id: z.ZodString;
31276
31329
  }, z.core.$strict>>;
@@ -35604,6 +35657,11 @@ export declare const listInvoicesResponseWire: z.ZodObject<{
35604
35657
  quantity: z.ZodString;
35605
35658
  unit_price: z.ZodString;
35606
35659
  }, z.core.$strict>>;
35660
+ usage_quantity_detail: z.ZodOptional<z.ZodObject<{
35661
+ raw_quantity: z.ZodString;
35662
+ invoiced_quantity: z.ZodString;
35663
+ display_unit: z.ZodOptional<z.ZodString>;
35664
+ }, z.core.$strict>>;
35607
35665
  charge: z.ZodOptional<z.ZodObject<{
35608
35666
  id: z.ZodString;
35609
35667
  }, z.core.$strict>>;
@@ -35961,6 +36019,11 @@ export declare const getInvoiceResponseWire: z.ZodDiscriminatedUnion<[z.ZodObjec
35961
36019
  quantity: z.ZodString;
35962
36020
  unit_price: z.ZodString;
35963
36021
  }, z.core.$strict>>;
36022
+ usage_quantity_detail: z.ZodOptional<z.ZodObject<{
36023
+ raw_quantity: z.ZodString;
36024
+ invoiced_quantity: z.ZodString;
36025
+ display_unit: z.ZodOptional<z.ZodString>;
36026
+ }, z.core.$strict>>;
35964
36027
  charge: z.ZodOptional<z.ZodObject<{
35965
36028
  id: z.ZodString;
35966
36029
  }, z.core.$strict>>;
@@ -36426,6 +36489,11 @@ export declare const updateInvoiceResponseWire: z.ZodDiscriminatedUnion<[z.ZodOb
36426
36489
  quantity: z.ZodString;
36427
36490
  unit_price: z.ZodString;
36428
36491
  }, z.core.$strict>>;
36492
+ usage_quantity_detail: z.ZodOptional<z.ZodObject<{
36493
+ raw_quantity: z.ZodString;
36494
+ invoiced_quantity: z.ZodString;
36495
+ display_unit: z.ZodOptional<z.ZodString>;
36496
+ }, z.core.$strict>>;
36429
36497
  charge: z.ZodOptional<z.ZodObject<{
36430
36498
  id: z.ZodString;
36431
36499
  }, z.core.$strict>>;
@@ -36778,6 +36846,11 @@ export declare const advanceInvoiceResponseWire: z.ZodDiscriminatedUnion<[z.ZodO
36778
36846
  quantity: z.ZodString;
36779
36847
  unit_price: z.ZodString;
36780
36848
  }, z.core.$strict>>;
36849
+ usage_quantity_detail: z.ZodOptional<z.ZodObject<{
36850
+ raw_quantity: z.ZodString;
36851
+ invoiced_quantity: z.ZodString;
36852
+ display_unit: z.ZodOptional<z.ZodString>;
36853
+ }, z.core.$strict>>;
36781
36854
  charge: z.ZodOptional<z.ZodObject<{
36782
36855
  id: z.ZodString;
36783
36856
  }, z.core.$strict>>;
@@ -37127,6 +37200,11 @@ export declare const approveInvoiceResponseWire: z.ZodDiscriminatedUnion<[z.ZodO
37127
37200
  quantity: z.ZodString;
37128
37201
  unit_price: z.ZodString;
37129
37202
  }, z.core.$strict>>;
37203
+ usage_quantity_detail: z.ZodOptional<z.ZodObject<{
37204
+ raw_quantity: z.ZodString;
37205
+ invoiced_quantity: z.ZodString;
37206
+ display_unit: z.ZodOptional<z.ZodString>;
37207
+ }, z.core.$strict>>;
37130
37208
  charge: z.ZodOptional<z.ZodObject<{
37131
37209
  id: z.ZodString;
37132
37210
  }, z.core.$strict>>;
@@ -37476,6 +37554,11 @@ export declare const retryInvoiceResponseWire: z.ZodDiscriminatedUnion<[z.ZodObj
37476
37554
  quantity: z.ZodString;
37477
37555
  unit_price: z.ZodString;
37478
37556
  }, z.core.$strict>>;
37557
+ usage_quantity_detail: z.ZodOptional<z.ZodObject<{
37558
+ raw_quantity: z.ZodString;
37559
+ invoiced_quantity: z.ZodString;
37560
+ display_unit: z.ZodOptional<z.ZodString>;
37561
+ }, z.core.$strict>>;
37479
37562
  charge: z.ZodOptional<z.ZodObject<{
37480
37563
  id: z.ZodString;
37481
37564
  }, z.core.$strict>>;
@@ -37825,6 +37908,11 @@ export declare const snapshotQuantitiesInvoiceResponseWire: z.ZodDiscriminatedUn
37825
37908
  quantity: z.ZodString;
37826
37909
  unit_price: z.ZodString;
37827
37910
  }, z.core.$strict>>;
37911
+ usage_quantity_detail: z.ZodOptional<z.ZodObject<{
37912
+ raw_quantity: z.ZodString;
37913
+ invoiced_quantity: z.ZodString;
37914
+ display_unit: z.ZodOptional<z.ZodString>;
37915
+ }, z.core.$strict>>;
37828
37916
  charge: z.ZodOptional<z.ZodObject<{
37829
37917
  id: z.ZodString;
37830
37918
  }, z.core.$strict>>;
@@ -1151,6 +1151,16 @@ export const invoiceLineCreditsApplied = z
1151
1151
  .describe('Optional human-readable description of the credit allocation.'),
1152
1152
  })
1153
1153
  .describe('A credit allocation applied to an invoice line item.');
1154
+ export const invoiceUsageQuantityDetail = z
1155
+ .object({
1156
+ rawQuantity: numeric,
1157
+ invoicedQuantity: numeric,
1158
+ displayUnit: z
1159
+ .string()
1160
+ .optional()
1161
+ .describe('The display unit label (e.g., "GB", "hours", "M tokens").'),
1162
+ })
1163
+ .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.');
1154
1164
  export const updatePriceFlat = z
1155
1165
  .object({
1156
1166
  type: z.literal('flat').describe('The type of the price.'),
@@ -2989,18 +2999,6 @@ export const createSubscriptionAddonRequest = z
2989
2999
  timing: subscriptionEditTiming,
2990
3000
  })
2991
3001
  .describe('SubscriptionAddon create request.');
2992
- export const invoiceUsageQuantityDetail = z
2993
- .object({
2994
- rawQuantity: numeric,
2995
- convertedQuantity: numeric,
2996
- invoicedQuantity: numeric,
2997
- displayUnit: z
2998
- .string()
2999
- .optional()
3000
- .describe('The display unit label (e.g., "GB", "hours", "M tokens").'),
3001
- appliedUnitConfig: unitConfig,
3002
- })
3003
- .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.');
3004
3002
  export const createTaxCodeRequest = z
3005
3003
  .object({
3006
3004
  name: z
@@ -4095,6 +4093,7 @@ export const invoiceStandardLine = z
4095
4093
  detailedLines: z
4096
4094
  .array(invoiceDetailedLine)
4097
4095
  .describe('Detailed sub-lines that this line has been broken down into. Present when line has individual details.'),
4096
+ usageQuantityDetail: invoiceUsageQuantityDetail.optional(),
4098
4097
  charge: chargeReference.optional(),
4099
4098
  })
4100
4099
  .describe('A top-level line item on an invoice. Each line represents a single charge, typically associated with a rate card from a subscription. Detailed (child) lines are nested under `detailed_lines` when present.');
@@ -6281,6 +6280,16 @@ export const invoiceLineCreditsAppliedWire = z
6281
6280
  .describe('Optional human-readable description of the credit allocation.'),
6282
6281
  })
6283
6282
  .describe('A credit allocation applied to an invoice line item.');
6283
+ export const invoiceUsageQuantityDetailWire = z
6284
+ .strictObject({
6285
+ raw_quantity: numericWire,
6286
+ invoiced_quantity: numericWire,
6287
+ display_unit: z
6288
+ .string()
6289
+ .optional()
6290
+ .describe('The display unit label (e.g., "GB", "hours", "M tokens").'),
6291
+ })
6292
+ .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.');
6284
6293
  export const updatePriceFlatWire = z
6285
6294
  .strictObject({
6286
6295
  type: z.literal('flat').describe('The type of the price.'),
@@ -8095,18 +8104,6 @@ export const createSubscriptionAddonRequestWire = z
8095
8104
  timing: subscriptionEditTimingWire,
8096
8105
  })
8097
8106
  .describe('SubscriptionAddon create request.');
8098
- export const invoiceUsageQuantityDetailWire = z
8099
- .strictObject({
8100
- raw_quantity: numericWire,
8101
- converted_quantity: numericWire,
8102
- invoiced_quantity: numericWire,
8103
- display_unit: z
8104
- .string()
8105
- .optional()
8106
- .describe('The display unit label (e.g., "GB", "hours", "M tokens").'),
8107
- applied_unit_config: unitConfigWire,
8108
- })
8109
- .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.');
8110
8107
  export const createTaxCodeRequestWire = z
8111
8108
  .strictObject({
8112
8109
  name: z
@@ -9205,6 +9202,7 @@ export const invoiceStandardLineWire = z
9205
9202
  detailed_lines: z
9206
9203
  .array(invoiceDetailedLineWire)
9207
9204
  .describe('Detailed sub-lines that this line has been broken down into. Present when line has individual details.'),
9205
+ usage_quantity_detail: invoiceUsageQuantityDetailWire.optional(),
9208
9206
  charge: chargeReferenceWire.optional(),
9209
9207
  })
9210
9208
  .describe('A top-level line item on an invoice. Each line represents a single charge, typically associated with a rate card from a subscription. Detailed (child) lines are nested under `detailed_lines` when present.');
@@ -646,6 +646,22 @@ export interface InvoiceLineCreditsApplied {
646
646
  /** Optional human-readable description of the credit allocation. */
647
647
  description?: string;
648
648
  }
649
+ /**
650
+ * Usage quantity details on an invoice line item when UnitConfig is in effect.
651
+ *
652
+ * Provides the full audit trail from raw meter output to the invoiced amount.
653
+ */
654
+ export interface InvoiceUsageQuantityDetail {
655
+ /** The raw quantity as reported by the meter (native units). */
656
+ rawQuantity: string;
657
+ /**
658
+ * The net billed quantity for this line in converted units, after rounding and any
659
+ * usage discounts.
660
+ */
661
+ invoicedQuantity: string;
662
+ /** The display unit label (e.g., "GB", "hours", "M tokens"). */
663
+ displayUnit?: string;
664
+ }
649
665
  /** Flat price. */
650
666
  export interface UpdatePriceFlat {
651
667
  /** The type of the price. */
@@ -3018,29 +3034,6 @@ export interface CreateSubscriptionAddonRequest {
3018
3034
  */
3019
3035
  timing: SubscriptionEditTiming;
3020
3036
  }
3021
- /**
3022
- * Usage quantity details on an invoice line item when UnitConfig is in effect.
3023
- *
3024
- * Provides the full audit trail from raw meter output to the invoiced amount.
3025
- */
3026
- export interface InvoiceUsageQuantityDetail {
3027
- /** The raw quantity as reported by the meter (native units). */
3028
- rawQuantity: string;
3029
- /**
3030
- * The precise decimal value after applying the conversion operation and factor,
3031
- * before rounding.
3032
- */
3033
- convertedQuantity: string;
3034
- /** The quantity after rounding, used for pricing. */
3035
- invoicedQuantity: string;
3036
- /** The display unit label (e.g., "GB", "hours", "M tokens"). */
3037
- displayUnit?: string;
3038
- /**
3039
- * Snapshot of the UnitConfig that was in effect at billing time. Ensures
3040
- * historical invoices reflect the config that was actually applied.
3041
- */
3042
- appliedUnitConfig: UnitConfig;
3043
- }
3044
3037
  /** TaxCode create request. */
3045
3038
  export interface CreateTaxCodeRequest {
3046
3039
  /**
@@ -4666,6 +4659,12 @@ export interface InvoiceStandardLine {
4666
4659
  * Present when line has individual details.
4667
4660
  */
4668
4661
  detailedLines: InvoiceDetailedLine[];
4662
+ /**
4663
+ * Usage quantity details for this line when UnitConfig is in effect.
4664
+ *
4665
+ * Read-only; omitted for lines without unit conversion.
4666
+ */
4667
+ usageQuantityDetail?: InvoiceUsageQuantityDetail;
4669
4668
  /** Reference to the charge associated with this line item. */
4670
4669
  charge?: ChargeReference;
4671
4670
  }
@@ -5613,29 +5612,6 @@ export interface SubscriptionCancelInput {
5613
5612
  /** If not provided the subscription is canceled immediately. */
5614
5613
  timing?: SubscriptionEditTiming;
5615
5614
  }
5616
- /**
5617
- * Usage quantity details on an invoice line item when UnitConfig is in effect.
5618
- *
5619
- * Provides the full audit trail from raw meter output to the invoiced amount.
5620
- */
5621
- export interface InvoiceUsageQuantityDetailInput {
5622
- /** The raw quantity as reported by the meter (native units). */
5623
- rawQuantity: string;
5624
- /**
5625
- * The precise decimal value after applying the conversion operation and factor,
5626
- * before rounding.
5627
- */
5628
- convertedQuantity: string;
5629
- /** The quantity after rounding, used for pricing. */
5630
- invoicedQuantity: string;
5631
- /** The display unit label (e.g., "GB", "hours", "M tokens"). */
5632
- displayUnit?: string;
5633
- /**
5634
- * Snapshot of the UnitConfig that was in effect at billing time. Ensures
5635
- * historical invoices reflect the config that was actually applied.
5636
- */
5637
- appliedUnitConfig: UnitConfigInput;
5638
- }
5639
5615
  /**
5640
5616
  * Invoice-level snapshot of the workflow configuration.
5641
5617
  *
@@ -6349,6 +6325,12 @@ export interface InvoiceStandardLineInput {
6349
6325
  * Present when line has individual details.
6350
6326
  */
6351
6327
  detailedLines: InvoiceDetailedLineInput[];
6328
+ /**
6329
+ * Usage quantity details for this line when UnitConfig is in effect.
6330
+ *
6331
+ * Read-only; omitted for lines without unit conversion.
6332
+ */
6333
+ usageQuantityDetail?: InvoiceUsageQuantityDetail;
6352
6334
  /** Reference to the charge associated with this line item. */
6353
6335
  charge?: ChargeReference;
6354
6336
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openmeter/client",
3
- "version": "1.0.0-beta-0c17e8419218",
3
+ "version": "1.0.0-beta-7350914aec09",
4
4
  "description": "Official TypeScript SDK for the OpenMeter API — usage metering and billing",
5
5
  "keywords": [
6
6
  "openmeter",