@openmeter/client 1.0.0-beta-fccacdbea6c7 → 1.0.0-beta-097ee6357e90

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -38,5 +38,5 @@ export type * from './models/operations/addons.js';
38
38
  export type * from './models/operations/planAddons.js';
39
39
  export type * from './models/operations/defaults.js';
40
40
  export type * from './models/operations/governance.js';
41
- export type { Labels, CursorPaginationQueryPage, SortQuery, IngestedEventValidationError, CursorMetaPage, BaseError, PageMeta, QueryFilterString, AppStripeCheckoutSessionCustomTextParams, AppStripeCreateCustomerPortalSessionOptions, CreateLabels, PriceFree, TaxConfigStripe, TaxConfigExternalInvoicing, FlatFeeDiscounts, WorkflowCollectionAlignmentSubscription, WorkflowInvoicingSettings, WorkflowPaymentChargeAutomaticallySettings, WorkflowPaymentSendInvoiceSettings, LlmCostProvider, LlmCostModel, RateCardStaticEntitlement, RateCardBooleanEntitlement, ProductCatalogValidationError, GovernanceQueryRequestCustomers, GovernanceQueryRequestFeatures, QueryFilterInteger, QueryFilterFloat, QueryFilterBoolean, PagePaginationQuery, PublicLabels, SystemAccountAccessToken, PersonalAccessToken, KonnectAccessToken, UpdateMeterRequest, AppCustomerDataStripe, AppCustomerDataExternalInvoicing, ListCostBasesParamsFilter, PriceFlat, PriceUnit, CurrencyAmount, RateCardDiscounts, Totals, FeatureManualUnitCost, FeatureLlmUnitCostPricing, LlmCostModelPricing, SpendCommitments, QueryFilterNumeric, CursorPaginationQuery, ListMetersParamsFilter, ListLlmCostPricesParamsFilter, LabelsFieldFilter, CustomerReference, ProfileReference, CreateResourceReference, TaxCodeReference, CreditGrantInvoiceReference, BillingCustomerReference, SubscriptionReference, AddonReference, AppReference, CurrencyFiat, FeatureReference, Event, MeterQueryRow, AppStripeCreateCustomerPortalSessionResult, ClosedPeriod, CostBasis, CreateCostBasisRequest, FeatureCostQueryRow, Resource, ResourceImmutable, QueryFilterDateTime, CursorMeta, InvalidParameterStandard, InvalidParameterMinimumLength, InvalidParameterMaximumLength, InvalidParameterChoiceItem, InvalidParameterDependentItem, Unauthorized, Forbidden, NotFound, Gone, Conflict, PayloadTooLarge, UnsupportedMediaType, UnprocessableContent, TooManyRequests, Internal, NotImplemented, NotAvailable, CreateCreditGrantFilters, CreditGrantFilters, UpsertPlanAddonRequest, ResourceWithKey, CreateMeterRequest, Meter, PaginatedMeta, QueryFilterStringMapItem, CustomerKeyReference, CustomerUsageAttribution, BillingAddress, Address, AppStripeCreateCheckoutSessionCustomerUpdate, AppStripeCreateCheckoutSessionConsentCollectionPaymentMethodReuseAgreement, AppStripeCreateCheckoutSessionTaxIdCollection, AppStripeCreateCheckoutSessionResult, CustomerStripeCreateCustomerPortalSessionRequest, EntitlementAccessResult, CreateCreditGrantPurchase, RecurringPeriod, RateCardMeteredEntitlement, CreditGrantPurchase, UpdateCreditGrantExternalSettlementRequest, ListCreditGrantsParamsFilter, GetCreditBalanceParamsFilter, ListChargesParamsFilter, ListPlansParamsFilter, SubscriptionCreate, RateCardProrationConfiguration, Subscription, AppCatalogItem, TaxCodeAppMapping, PartyTaxIdentity, ListCurrenciesParamsFilter, CurrencyCustom, CreateCurrencyCustomRequest, GovernanceQueryRequest, GovernanceFeatureAccessReason, GovernanceQueryError, UnitConfig, AppCustomerData, UpsertAppCustomerDataRequest, CreditAdjustment, CreditBalance, CreateCreditAdjustmentRequest, ListCreditTransactionsParamsFilter, CreditTransaction, PriceTier, ChargeTotals, FeatureLlmUnitCost, LlmCostPrice, LlmCostOverrideCreate, ListCustomersParamsFilter, ListSubscriptionsParamsFilter, ListFeatureParamsFilter, ListAddonsParamsFilter, CreateCreditGrantTaxConfig, CreditGrantTaxConfig, TaxConfig, RateCardTaxConfig, OrganizationDefaultTaxCodes, UpdateOrganizationDefaultTaxCodesRequest, SubscriptionAddon, PlanAddon, CreatePlanAddonRequest, ProfileAppReferences, ListEventsParamsFilter, ResourceFilters, FieldFilters, IngestedEvent, MeterQueryResult, FeatureCostQueryResult, MeterPagePaginatedResponse, CostBasisPagePaginatedResponse, MeterQueryFilters, FeatureMeterReference, CreateCustomerRequest, Customer, UpsertCustomerRequest, PartyAddresses, AppStripeCreateCheckoutSessionConsentCollection, ListCustomerEntitlementAccessResponseData, WorkflowCollectionAlignmentAnchored, SubscriptionPagePaginatedResponse, SubscriptionChangeResponse, SubscriptionCancel, SubscriptionChange, AppStripe, AppSandbox, AppExternalInvoicing, CreateTaxCodeRequest, TaxCode, UpsertTaxCodeRequest, GovernanceFeatureAccess, InvoiceUsageQuantityDetail, CustomerData, UpsertCustomerBillingDataRequest, CreditBalances, CreditTransactionPaginatedResponse, PriceGraduated, PriceVolume, PricePagePaginatedResponse, CreateCreditGrantRequest, CreditGrant, WorkflowTaxSettings, SubscriptionAddonPagePaginatedResponse, PlanAddonPagePaginatedResponse, IngestedEventPaginatedResponse, InvalidParameters, MeterQueryRequest, CustomerPagePaginatedResponse, Party, AppStripeCreateCheckoutSessionRequestOptions, TaxCodePagePaginatedResponse, CurrencyPagePaginatedResponse, GovernanceQueryResult, Feature, CreateFeatureRequest, UpdateFeatureRequest, CreditGrantPagePaginatedResponse, BadRequest, CustomerStripeCreateCheckoutSessionRequest, WorkflowCollectionSettings, AppPagePaginatedResponse, ProfileApps, GovernanceQueryResponse, FlatFeeCharge, UsageBasedCharge, RateCard, FeaturePagePaginatedResponse, Workflow, PlanPhase, Addon, CreateAddonRequest, UpsertAddonRequest, Profile, CreateBillingProfileRequest, UpsertBillingProfileRequest, ChargePagePaginatedResponse, Plan, CreatePlanRequest, UpsertPlanRequest, AddonPagePaginatedResponse, ProfilePagePaginatedResponse, PlanPagePaginatedResponse, SortQueryInput, BaseErrorInput, WorkflowInvoicingSettingsInput, WorkflowPaymentSendInvoiceSettingsInput, EventInput, UnauthorizedInput, ForbiddenInput, NotFoundInput, GoneInput, ConflictInput, PayloadTooLargeInput, UnsupportedMediaTypeInput, UnprocessableContentInput, TooManyRequestsInput, InternalInput, NotImplementedInput, NotAvailableInput, AppStripeCreateCheckoutSessionCustomerUpdateInput, AppStripeCreateCheckoutSessionTaxIdCollectionInput, CreateCreditGrantPurchaseInput, RateCardMeteredEntitlementInput, CreditGrantPurchaseInput, SubscriptionCreateInput, SubscriptionInput, GovernanceQueryRequestInput, UnitConfigInput, IngestedEventInput, SubscriptionPagePaginatedResponseInput, SubscriptionChangeResponseInput, SubscriptionCancelInput, SubscriptionChangeInput, InvoiceUsageQuantityDetailInput, CreateCreditGrantRequestInput, CreditGrantInput, WorkflowTaxSettingsInput, IngestedEventPaginatedResponseInput, MeterQueryRequestInput, AppStripeCreateCheckoutSessionRequestOptionsInput, CreditGrantPagePaginatedResponseInput, BadRequestInput, CustomerStripeCreateCheckoutSessionRequestInput, WorkflowCollectionSettingsInput, RateCardInput, WorkflowInput, PlanPhaseInput, AddonInput, CreateAddonRequestInput, UpsertAddonRequestInput, ProfileInput, CreateBillingProfileRequestInput, UpsertBillingProfileRequestInput, PlanInput, CreatePlanRequestInput, UpsertPlanRequestInput, AddonPagePaginatedResponseInput, ProfilePagePaginatedResponseInput, PlanPagePaginatedResponseInput, } from './models/types.js';
41
+ export type { Labels, CursorPaginationQueryPage, SortQuery, IngestedEventValidationError, CursorMetaPage, BaseError, PageMeta, QueryFilterString, AppStripeCheckoutSessionCustomTextParams, AppStripeCreateCustomerPortalSessionOptions, CreateLabels, PriceFree, TaxConfigStripe, TaxConfigExternalInvoicing, FlatFeeDiscounts, WorkflowCollectionAlignmentSubscription, WorkflowInvoicingSettings, WorkflowPaymentChargeAutomaticallySettings, WorkflowPaymentSendInvoiceSettings, LlmCostProvider, LlmCostModel, RateCardStaticEntitlement, RateCardBooleanEntitlement, ProductCatalogValidationError, GovernanceQueryRequestCustomers, GovernanceQueryRequestFeatures, QueryFilterInteger, QueryFilterFloat, QueryFilterBoolean, PagePaginationQuery, PublicLabels, SystemAccountAccessToken, PersonalAccessToken, KonnectAccessToken, UpdateMeterRequest, AppCustomerDataStripe, AppCustomerDataExternalInvoicing, ListCostBasesParamsFilter, PriceFlat, PriceUnit, CurrencyAmount, RateCardDiscounts, Totals, FeatureManualUnitCost, FeatureLlmUnitCostPricing, LlmCostModelPricing, SpendCommitments, QueryFilterNumeric, CursorPaginationQuery, ListMetersParamsFilter, ListLlmCostPricesParamsFilter, LabelsFieldFilter, CustomerReference, ProfileReference, CreateResourceReference, TaxCodeReference, CreditGrantInvoiceReference, BillingCustomerReference, SubscriptionReference, AddonReference, AppReference, CurrencyFiat, FeatureReference, Event, MeterQueryRow, AppStripeCreateCustomerPortalSessionResult, ClosedPeriod, CostBasis, CreateCostBasisRequest, FeatureCostQueryRow, Resource, ResourceImmutable, QueryFilterDateTime, CursorMeta, InvalidParameterStandard, InvalidParameterMinimumLength, InvalidParameterMaximumLength, InvalidParameterChoiceItem, InvalidParameterDependentItem, Unauthorized, Forbidden, NotFound, Gone, Conflict, PayloadTooLarge, UnsupportedMediaType, UnprocessableContent, TooManyRequests, Internal, NotImplemented, NotAvailable, CreateCreditGrantFilters, CreditGrantFilters, UpsertPlanAddonRequest, ResourceWithKey, CreateMeterRequest, Meter, PaginatedMeta, QueryFilterStringMapItem, CustomerKeyReference, CustomerUsageAttribution, BillingAddress, Address, AppStripeCreateCheckoutSessionCustomerUpdate, AppStripeCreateCheckoutSessionConsentCollectionPaymentMethodReuseAgreement, AppStripeCreateCheckoutSessionTaxIdCollection, AppStripeCreateCheckoutSessionResult, CustomerStripeCreateCustomerPortalSessionRequest, EntitlementAccessResult, CreateCreditGrantPurchase, RecurringPeriod, RateCardMeteredEntitlement, CreditGrantPurchase, UpdateCreditGrantExternalSettlementRequest, ListCreditGrantsParamsFilter, GetCreditBalanceParamsFilter, ListChargesParamsFilter, ListPlansParamsFilter, SubscriptionCreate, RateCardProrationConfiguration, Subscription, AppCatalogItem, TaxCodeAppMapping, PartyTaxIdentity, ListCurrenciesParamsFilter, CurrencyCustom, CreateCurrencyCustomRequest, GovernanceQueryRequest, GovernanceFeatureAccessReason, GovernanceQueryError, UnitConfig, AppCustomerData, UpsertAppCustomerDataRequest, CreditAdjustment, CreditBalance, CreateCreditAdjustmentRequest, ListCreditTransactionsParamsFilter, CreditTransaction, PriceTier, ChargeTotals, FeatureLlmUnitCost, LlmCostPrice, LlmCostOverrideCreate, ListCustomersParamsFilter, ListSubscriptionsParamsFilter, ListFeatureParamsFilter, ListAddonsParamsFilter, CreateCreditGrantTaxConfig, CreditGrantTaxConfig, TaxConfig, RateCardTaxConfig, OrganizationDefaultTaxCodes, UpdateOrganizationDefaultTaxCodesRequest, SubscriptionAddon, PlanAddon, CreatePlanAddonRequest, ProfileAppReferences, ListEventsParamsFilter, ResourceFilters, FieldFilters, IngestedEvent, MeterQueryResult, FeatureCostQueryResult, MeterPagePaginatedResponse, CostBasisPagePaginatedResponse, MeterQueryFilters, FeatureMeterReference, CreateCustomerRequest, Customer, UpsertCustomerRequest, PartyAddresses, AppStripeCreateCheckoutSessionConsentCollection, ListCustomerEntitlementAccessResponseData, WorkflowCollectionAlignmentAnchored, SubscriptionPagePaginatedResponse, SubscriptionChangeResponse, SubscriptionCancel, SubscriptionChange, AppStripe, AppSandbox, AppExternalInvoicing, CreateTaxCodeRequest, TaxCode, UpsertTaxCodeRequest, GovernanceFeatureAccess, InvoiceUsageQuantityDetail, CustomerData, UpsertCustomerBillingDataRequest, CreditBalances, CreditTransactionPaginatedResponse, PriceGraduated, PriceVolume, PricePagePaginatedResponse, CreateCreditGrantRequest, CreditGrant, WorkflowTaxSettings, SubscriptionAddonPagePaginatedResponse, PlanAddonPagePaginatedResponse, IngestedEventPaginatedResponse, InvalidParameters, MeterQueryRequest, CustomerPagePaginatedResponse, Party, AppStripeCreateCheckoutSessionRequestOptions, TaxCodePagePaginatedResponse, CurrencyPagePaginatedResponse, GovernanceQueryResult, Feature, CreateFeatureRequest, UpdateFeatureRequest, CreditGrantPagePaginatedResponse, BadRequest, CustomerStripeCreateCheckoutSessionRequest, WorkflowCollectionSettings, AppPagePaginatedResponse, ProfileApps, GovernanceQueryResponse, FlatFeeCharge, UsageBasedCharge, RateCard, FeaturePagePaginatedResponse, Workflow, PlanPhase, Addon, CreateAddonRequest, UpsertAddonRequest, Profile, CreateBillingProfileRequest, UpsertBillingProfileRequest, ChargePagePaginatedResponse, Plan, CreatePlanRequest, UpsertPlanRequest, AddonPagePaginatedResponse, ProfilePagePaginatedResponse, PlanPagePaginatedResponse, SortQueryInput, BaseErrorInput, WorkflowInvoicingSettingsInput, WorkflowPaymentSendInvoiceSettingsInput, EventInput, UnauthorizedInput, ForbiddenInput, NotFoundInput, GoneInput, ConflictInput, PayloadTooLargeInput, UnsupportedMediaTypeInput, UnprocessableContentInput, TooManyRequestsInput, InternalInput, NotImplementedInput, NotAvailableInput, AppStripeCreateCheckoutSessionCustomerUpdateInput, AppStripeCreateCheckoutSessionTaxIdCollectionInput, CreateCreditGrantPurchaseInput, RateCardMeteredEntitlementInput, CreditGrantPurchaseInput, 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';
42
42
  //# sourceMappingURL=index.d.ts.map
@@ -1,5 +1,5 @@
1
- import type { ListSubscriptionsParamsFilter, SortQueryInput, Subscription, SubscriptionAddon, SubscriptionAddonPagePaginatedResponse, SubscriptionCancelInput, SubscriptionChangeInput, SubscriptionChangeResponse, SubscriptionCreateInput, SubscriptionPagePaginatedResponse } from '../types.js';
2
- export type CreateSubscriptionRequest = SubscriptionCreateInput;
1
+ import type { ListSubscriptionsParamsFilter, SortQueryInput, Subscription, SubscriptionAddon, SubscriptionAddonPagePaginatedResponse, SubscriptionCancelInput, SubscriptionChange, SubscriptionChangeResponse, SubscriptionCreate, SubscriptionPagePaginatedResponse } from '../types.js';
2
+ export type CreateSubscriptionRequest = SubscriptionCreate;
3
3
  export type CreateSubscriptionResponse = Subscription;
4
4
  export interface ListSubscriptionsQuery {
5
5
  /** Determines which page of the collection to retrieve. */
@@ -29,7 +29,7 @@ export type UnscheduleCancelationRequest = {
29
29
  export type UnscheduleCancelationResponse = Subscription;
30
30
  export type ChangeSubscriptionRequest = {
31
31
  subscriptionId: string;
32
- body: SubscriptionChangeInput;
32
+ body: SubscriptionChange;
33
33
  };
34
34
  export type ChangeSubscriptionResponse = SubscriptionChangeResponse;
35
35
  export interface ListSubscriptionAddonsQuery {
@@ -1190,10 +1190,10 @@ export declare const listPlansParamsFilter: z.ZodObject<{
1190
1190
  }, z.core.$strip>;
1191
1191
  export declare const subscriptionCreate: z.ZodObject<{
1192
1192
  labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1193
- settlement_mode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
1193
+ settlement_mode: z.ZodOptional<z.ZodEnum<{
1194
1194
  credit_then_invoice: "credit_then_invoice";
1195
1195
  credit_only: "credit_only";
1196
- }>>>;
1196
+ }>>;
1197
1197
  customer: z.ZodObject<{
1198
1198
  id: z.ZodOptional<z.ZodString>;
1199
1199
  key: z.ZodOptional<z.ZodString>;
@@ -1226,10 +1226,10 @@ export declare const subscription: z.ZodObject<{
1226
1226
  canceled: "canceled";
1227
1227
  scheduled: "scheduled";
1228
1228
  }>;
1229
- settlement_mode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
1229
+ settlement_mode: z.ZodOptional<z.ZodEnum<{
1230
1230
  credit_then_invoice: "credit_then_invoice";
1231
1231
  credit_only: "credit_only";
1232
- }>>>;
1232
+ }>>;
1233
1233
  }, z.core.$strip>;
1234
1234
  export declare const subscriptionEditTiming: z.ZodUnion<readonly [z.ZodEnum<{
1235
1235
  immediate: "immediate";
@@ -2331,10 +2331,10 @@ export declare const subscriptionPagePaginatedResponse: z.ZodObject<{
2331
2331
  canceled: "canceled";
2332
2332
  scheduled: "scheduled";
2333
2333
  }>;
2334
- settlement_mode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
2334
+ settlement_mode: z.ZodOptional<z.ZodEnum<{
2335
2335
  credit_then_invoice: "credit_then_invoice";
2336
2336
  credit_only: "credit_only";
2337
- }>>>;
2337
+ }>>;
2338
2338
  }, z.core.$strip>>;
2339
2339
  meta: z.ZodObject<{
2340
2340
  page: z.ZodObject<{
@@ -2360,10 +2360,10 @@ export declare const subscriptionChangeResponse: z.ZodObject<{
2360
2360
  canceled: "canceled";
2361
2361
  scheduled: "scheduled";
2362
2362
  }>;
2363
- settlement_mode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
2363
+ settlement_mode: z.ZodOptional<z.ZodEnum<{
2364
2364
  credit_then_invoice: "credit_then_invoice";
2365
2365
  credit_only: "credit_only";
2366
- }>>>;
2366
+ }>>;
2367
2367
  }, z.core.$strip>;
2368
2368
  next: z.ZodObject<{
2369
2369
  id: z.ZodString;
@@ -2380,10 +2380,10 @@ export declare const subscriptionChangeResponse: z.ZodObject<{
2380
2380
  canceled: "canceled";
2381
2381
  scheduled: "scheduled";
2382
2382
  }>;
2383
- settlement_mode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
2383
+ settlement_mode: z.ZodOptional<z.ZodEnum<{
2384
2384
  credit_then_invoice: "credit_then_invoice";
2385
2385
  credit_only: "credit_only";
2386
- }>>>;
2386
+ }>>;
2387
2387
  }, z.core.$strip>;
2388
2388
  }, z.core.$strip>;
2389
2389
  export declare const subscriptionCancel: z.ZodObject<{
@@ -2394,10 +2394,10 @@ export declare const subscriptionCancel: z.ZodObject<{
2394
2394
  }, z.core.$strip>;
2395
2395
  export declare const subscriptionChange: z.ZodObject<{
2396
2396
  labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2397
- settlement_mode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
2397
+ settlement_mode: z.ZodOptional<z.ZodEnum<{
2398
2398
  credit_then_invoice: "credit_then_invoice";
2399
2399
  credit_only: "credit_only";
2400
- }>>>;
2400
+ }>>;
2401
2401
  customer: z.ZodObject<{
2402
2402
  id: z.ZodOptional<z.ZodString>;
2403
2403
  key: z.ZodOptional<z.ZodString>;
@@ -7769,10 +7769,10 @@ export declare const listCustomerChargesResponse: z.ZodObject<{
7769
7769
  }, z.core.$strip>;
7770
7770
  export declare const createSubscriptionBody: z.ZodObject<{
7771
7771
  labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
7772
- settlement_mode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
7772
+ settlement_mode: z.ZodOptional<z.ZodEnum<{
7773
7773
  credit_then_invoice: "credit_then_invoice";
7774
7774
  credit_only: "credit_only";
7775
- }>>>;
7775
+ }>>;
7776
7776
  customer: z.ZodObject<{
7777
7777
  id: z.ZodOptional<z.ZodString>;
7778
7778
  key: z.ZodOptional<z.ZodString>;
@@ -7799,10 +7799,10 @@ export declare const createSubscriptionResponse: z.ZodObject<{
7799
7799
  canceled: "canceled";
7800
7800
  scheduled: "scheduled";
7801
7801
  }>;
7802
- settlement_mode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
7802
+ settlement_mode: z.ZodOptional<z.ZodEnum<{
7803
7803
  credit_then_invoice: "credit_then_invoice";
7804
7804
  credit_only: "credit_only";
7805
- }>>>;
7805
+ }>>;
7806
7806
  }, z.core.$strip>;
7807
7807
  export declare const listSubscriptionsQueryParams: z.ZodObject<{
7808
7808
  page: z.ZodOptional<z.ZodObject<{
@@ -7857,10 +7857,10 @@ export declare const listSubscriptionsResponse: z.ZodObject<{
7857
7857
  canceled: "canceled";
7858
7858
  scheduled: "scheduled";
7859
7859
  }>;
7860
- settlement_mode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
7860
+ settlement_mode: z.ZodOptional<z.ZodEnum<{
7861
7861
  credit_then_invoice: "credit_then_invoice";
7862
7862
  credit_only: "credit_only";
7863
- }>>>;
7863
+ }>>;
7864
7864
  }, z.core.$strip>>;
7865
7865
  meta: z.ZodObject<{
7866
7866
  page: z.ZodObject<{
@@ -7888,10 +7888,10 @@ export declare const getSubscriptionResponse: z.ZodObject<{
7888
7888
  canceled: "canceled";
7889
7889
  scheduled: "scheduled";
7890
7890
  }>;
7891
- settlement_mode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
7891
+ settlement_mode: z.ZodOptional<z.ZodEnum<{
7892
7892
  credit_then_invoice: "credit_then_invoice";
7893
7893
  credit_only: "credit_only";
7894
- }>>>;
7894
+ }>>;
7895
7895
  }, z.core.$strip>;
7896
7896
  export declare const cancelSubscriptionPathParams: z.ZodObject<{
7897
7897
  subscriptionId: z.ZodString;
@@ -7917,10 +7917,10 @@ export declare const cancelSubscriptionResponse: z.ZodObject<{
7917
7917
  canceled: "canceled";
7918
7918
  scheduled: "scheduled";
7919
7919
  }>;
7920
- settlement_mode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
7920
+ settlement_mode: z.ZodOptional<z.ZodEnum<{
7921
7921
  credit_then_invoice: "credit_then_invoice";
7922
7922
  credit_only: "credit_only";
7923
- }>>>;
7923
+ }>>;
7924
7924
  }, z.core.$strip>;
7925
7925
  export declare const unscheduleCancelationPathParams: z.ZodObject<{
7926
7926
  subscriptionId: z.ZodString;
@@ -7940,20 +7940,20 @@ export declare const unscheduleCancelationResponse: z.ZodObject<{
7940
7940
  canceled: "canceled";
7941
7941
  scheduled: "scheduled";
7942
7942
  }>;
7943
- settlement_mode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
7943
+ settlement_mode: z.ZodOptional<z.ZodEnum<{
7944
7944
  credit_then_invoice: "credit_then_invoice";
7945
7945
  credit_only: "credit_only";
7946
- }>>>;
7946
+ }>>;
7947
7947
  }, z.core.$strip>;
7948
7948
  export declare const changeSubscriptionPathParams: z.ZodObject<{
7949
7949
  subscriptionId: z.ZodString;
7950
7950
  }, z.core.$strip>;
7951
7951
  export declare const changeSubscriptionBody: z.ZodObject<{
7952
7952
  labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
7953
- settlement_mode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
7953
+ settlement_mode: z.ZodOptional<z.ZodEnum<{
7954
7954
  credit_then_invoice: "credit_then_invoice";
7955
7955
  credit_only: "credit_only";
7956
- }>>>;
7956
+ }>>;
7957
7957
  customer: z.ZodObject<{
7958
7958
  id: z.ZodOptional<z.ZodString>;
7959
7959
  key: z.ZodOptional<z.ZodString>;
@@ -7985,10 +7985,10 @@ export declare const changeSubscriptionResponse: z.ZodObject<{
7985
7985
  canceled: "canceled";
7986
7986
  scheduled: "scheduled";
7987
7987
  }>;
7988
- settlement_mode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
7988
+ settlement_mode: z.ZodOptional<z.ZodEnum<{
7989
7989
  credit_then_invoice: "credit_then_invoice";
7990
7990
  credit_only: "credit_only";
7991
- }>>>;
7991
+ }>>;
7992
7992
  }, z.core.$strip>;
7993
7993
  next: z.ZodObject<{
7994
7994
  id: z.ZodString;
@@ -8005,10 +8005,10 @@ export declare const changeSubscriptionResponse: z.ZodObject<{
8005
8005
  canceled: "canceled";
8006
8006
  scheduled: "scheduled";
8007
8007
  }>;
8008
- settlement_mode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
8008
+ settlement_mode: z.ZodOptional<z.ZodEnum<{
8009
8009
  credit_then_invoice: "credit_then_invoice";
8010
8010
  credit_only: "credit_only";
8011
- }>>>;
8011
+ }>>;
8012
8012
  }, z.core.$strip>;
8013
8013
  }, z.core.$strip>;
8014
8014
  export declare const listSubscriptionAddonsPathParams: z.ZodObject<{
@@ -1774,7 +1774,7 @@ export const listPlansParamsFilter = z
1774
1774
  export const subscriptionCreate = z
1775
1775
  .object({
1776
1776
  labels: labels.optional(),
1777
- settlement_mode: settlementMode.optional().default('credit_then_invoice'),
1777
+ settlement_mode: settlementMode.optional(),
1778
1778
  customer: z
1779
1779
  .object({
1780
1780
  id: ulid.optional(),
@@ -1811,7 +1811,7 @@ export const subscription = z
1811
1811
  plan_id: ulid.optional(),
1812
1812
  billing_anchor: dateTime,
1813
1813
  status: subscriptionStatus,
1814
- settlement_mode: settlementMode.optional().default('credit_then_invoice'),
1814
+ settlement_mode: settlementMode.optional(),
1815
1815
  })
1816
1816
  .describe('Subscription.');
1817
1817
  export const subscriptionEditTiming = z
@@ -2485,7 +2485,7 @@ export const subscriptionCancel = z
2485
2485
  export const subscriptionChange = z
2486
2486
  .object({
2487
2487
  labels: labels.optional(),
2488
- settlement_mode: settlementMode.optional().default('credit_then_invoice'),
2488
+ settlement_mode: settlementMode.optional(),
2489
2489
  customer: z
2490
2490
  .object({
2491
2491
  id: ulid.optional(),
@@ -1168,7 +1168,7 @@ export interface ListPlansParamsFilter {
1168
1168
  export interface SubscriptionCreate {
1169
1169
  labels?: Labels;
1170
1170
  /** Settlement mode for billing. Values: - `credit_then_invoice`: Credits are applied first, then any remainder is invoiced. - `credit_only`: Usage is settled exclusively against credits. */
1171
- settlement_mode: 'credit_then_invoice' | 'credit_only';
1171
+ settlement_mode?: 'credit_then_invoice' | 'credit_only';
1172
1172
  /** The customer to create the subscription for. */
1173
1173
  customer: {
1174
1174
  id?: string;
@@ -1207,7 +1207,7 @@ export interface Subscription {
1207
1207
  /** The status of the subscription. */
1208
1208
  status: 'active' | 'inactive' | 'canceled' | 'scheduled';
1209
1209
  /** Settlement mode for billing. Values: - `credit_then_invoice`: Credits are applied first, then any remainder is invoiced. - `credit_only`: Usage is settled exclusively against credits. */
1210
- settlement_mode: 'credit_then_invoice' | 'credit_only';
1210
+ settlement_mode?: 'credit_then_invoice' | 'credit_only';
1211
1211
  }
1212
1212
  /** Available apps for billing integrations to connect with third-party services. Apps can have various capabilities like syncing data from or to external systems, integrating with third-party services for tax calculation, delivery of invoices, collection of payments, etc. */
1213
1213
  export interface AppCatalogItem {
@@ -2079,7 +2079,7 @@ export interface SubscriptionCancel {
2079
2079
  export interface SubscriptionChange {
2080
2080
  labels?: Labels;
2081
2081
  /** Settlement mode for billing. Values: - `credit_then_invoice`: Credits are applied first, then any remainder is invoiced. - `credit_only`: Usage is settled exclusively against credits. */
2082
- settlement_mode: 'credit_then_invoice' | 'credit_only';
2082
+ settlement_mode?: 'credit_then_invoice' | 'credit_only';
2083
2083
  /** The customer to create the subscription for. */
2084
2084
  customer: {
2085
2085
  id?: string;
@@ -3016,44 +3016,6 @@ export interface CreditGrantPurchaseInput {
3016
3016
  /** Current payment settlement status. */
3017
3017
  settlement_status?: 'pending' | 'authorized' | 'settled';
3018
3018
  }
3019
- export interface SubscriptionCreateInput {
3020
- labels?: Labels;
3021
- /** Settlement mode for billing. Values: - `credit_then_invoice`: Credits are applied first, then any remainder is invoiced. - `credit_only`: Usage is settled exclusively against credits. */
3022
- settlement_mode?: 'credit_then_invoice' | 'credit_only';
3023
- /** The customer to create the subscription for. */
3024
- customer: {
3025
- id?: string;
3026
- key?: string;
3027
- };
3028
- /** The plan reference of the subscription. */
3029
- plan: {
3030
- id?: string;
3031
- key?: string;
3032
- version?: number;
3033
- };
3034
- /** A billing anchor is the fixed point in time that determines the subscription's recurring billing cycle. It affects when charges occur and how prorations are calculated. Common anchors: - Calendar month (1st of each month): `2025-01-01T00:00:00Z` - Subscription anniversary (day customer signed up) - Custom date (customer-specified day) If not provided, the subscription will be created with the subscription's creation time as the billing anchor. */
3035
- billing_anchor?: string;
3036
- }
3037
- export interface SubscriptionInput {
3038
- id: string;
3039
- labels?: Labels;
3040
- /** An ISO-8601 timestamp representation of entity creation date. */
3041
- created_at: string;
3042
- /** An ISO-8601 timestamp representation of entity last update date. */
3043
- updated_at: string;
3044
- /** An ISO-8601 timestamp representation of entity deletion date. */
3045
- deleted_at?: string;
3046
- /** The customer ID of the subscription. */
3047
- customer_id: string;
3048
- /** The plan ID of the subscription. Set if subscription is created from a plan. */
3049
- plan_id?: string;
3050
- /** A billing anchor is the fixed point in time that determines the subscription's recurring billing cycle. It affects when charges occur and how prorations are calculated. Common anchors: - Calendar month (1st of each month): `2025-01-01T00:00:00Z` - Subscription anniversary (day customer signed up) - Custom date (customer-specified day) */
3051
- billing_anchor: string;
3052
- /** The status of the subscription. */
3053
- status: 'active' | 'inactive' | 'canceled' | 'scheduled';
3054
- /** Settlement mode for billing. Values: - `credit_then_invoice`: Credits are applied first, then any remainder is invoiced. - `credit_only`: Usage is settled exclusively against credits. */
3055
- settlement_mode?: 'credit_then_invoice' | 'credit_only';
3056
- }
3057
3019
  export interface GovernanceQueryRequestInput {
3058
3020
  /** Whether to include credit balance availability for each resolved customer. When true, each feature evaluation includes credit balance checks. Defaults to `false`. */
3059
3021
  include_credits?: boolean;
@@ -3084,40 +3046,10 @@ export interface IngestedEventInput {
3084
3046
  /** The validation errors of the ingested event. */
3085
3047
  validation_errors?: IngestedEventValidationError[];
3086
3048
  }
3087
- export interface SubscriptionPagePaginatedResponseInput {
3088
- data: SubscriptionInput[];
3089
- meta: PaginatedMeta;
3090
- }
3091
- export interface SubscriptionChangeResponseInput {
3092
- /** The current subscription before the change. */
3093
- current: SubscriptionInput;
3094
- /** The new state of the subscription after the change. */
3095
- next: SubscriptionInput;
3096
- }
3097
3049
  export interface SubscriptionCancelInput {
3098
3050
  /** If not provided the subscription is canceled immediately. */
3099
3051
  timing?: 'immediate' | 'next_billing_cycle' | string;
3100
3052
  }
3101
- export interface SubscriptionChangeInput {
3102
- labels?: Labels;
3103
- /** Settlement mode for billing. Values: - `credit_then_invoice`: Credits are applied first, then any remainder is invoiced. - `credit_only`: Usage is settled exclusively against credits. */
3104
- settlement_mode?: 'credit_then_invoice' | 'credit_only';
3105
- /** The customer to create the subscription for. */
3106
- customer: {
3107
- id?: string;
3108
- key?: string;
3109
- };
3110
- /** The plan reference of the subscription. */
3111
- plan: {
3112
- id?: string;
3113
- key?: string;
3114
- version?: number;
3115
- };
3116
- /** A billing anchor is the fixed point in time that determines the subscription's recurring billing cycle. It affects when charges occur and how prorations are calculated. Common anchors: - Calendar month (1st of each month): `2025-01-01T00:00:00Z` - Subscription anniversary (day customer signed up) - Custom date (customer-specified day) If not provided, the subscription will be created with the subscription's creation time as the billing anchor. */
3117
- billing_anchor?: string;
3118
- /** Timing configuration for the change, when the change should take effect. For changing a subscription, the accepted values depend on the subscription configuration. */
3119
- timing: 'immediate' | 'next_billing_cycle' | string;
3120
- }
3121
3053
  export interface InvoiceUsageQuantityDetailInput {
3122
3054
  /** The raw quantity as reported by the meter (native units). */
3123
3055
  raw_quantity: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openmeter/client",
3
- "version": "1.0.0-beta-fccacdbea6c7",
3
+ "version": "1.0.0-beta-097ee6357e90",
4
4
  "license": "Apache-2.0",
5
5
  "homepage": "https://openmeter.io",
6
6
  "repository": {