@openmeter/client 1.0.0-beta-a4b420ac19c5 → 1.0.0-beta-080b75047a43
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/README.md +5 -5
- package/dist/index.d.ts +1 -1
- package/dist/lib/version.d.ts +1 -1
- package/dist/lib/version.js +1 -1
- package/dist/models/schemas.d.ts +174 -144
- package/dist/models/schemas.js +110 -100
- package/dist/models/types.d.ts +78 -74
- package/dist/sdk/apps.d.ts +20 -1
- package/dist/sdk/apps.js +24 -1
- package/dist/sdk/internal.d.ts +11 -21
- package/dist/sdk/internal.js +12 -24
- package/dist/sdk/subscriptions.d.ts +1 -9
- package/dist/sdk/subscriptions.js +1 -11
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -321,15 +321,15 @@ The full call path, HTTP route, and a short description are listed below.
|
|
|
321
321
|
| `client.subscriptions.unscheduleCancelation` | `POST /openmeter/subscriptions/{subscriptionId}/unschedule-cancelation` | Unschedules the subscription cancelation. |
|
|
322
322
|
| `client.subscriptions.change` | `POST /openmeter/subscriptions/{subscriptionId}/change` | Closes a running subscription and starts a new one according to the specification. Can be used for upgrades, downgrades, and plan changes. |
|
|
323
323
|
| `client.subscriptions.edit` | `POST /openmeter/subscriptions/{subscriptionId}/edit` | Edits a running subscription by applying an ordered batch of customizations (adding or removing items, adding, removing, or stretching phases, or unscheduling a pending edit). The changes may take effect immediately or at the next billing cycle. Subscriptions that have add-ons cannot be edited. |
|
|
324
|
-
| `client.subscriptions.createAddon` | `POST /openmeter/subscriptions/{subscriptionId}/addons` | Add add-on to a subscription. |
|
|
325
324
|
| `client.subscriptions.listAddons` | `GET /openmeter/subscriptions/{subscriptionId}/addons` | List the add-ons of a subscription. |
|
|
326
325
|
| `client.subscriptions.getAddon` | `GET /openmeter/subscriptions/{subscriptionId}/addons/{subscriptionAddonId}` | Get an add-on association for a subscription. |
|
|
327
326
|
|
|
328
327
|
### Apps
|
|
329
328
|
|
|
330
|
-
| Method
|
|
331
|
-
|
|
|
332
|
-
| `client.apps.
|
|
329
|
+
| Method | HTTP | Description |
|
|
330
|
+
| ------------------ | ----------------------------- | --------------------- |
|
|
331
|
+
| `client.apps.list` | `GET /openmeter/apps` | List installed apps. |
|
|
332
|
+
| `client.apps.get` | `GET /openmeter/apps/{appId}` | Get an installed app. |
|
|
333
333
|
|
|
334
334
|
### Billing
|
|
335
335
|
|
|
@@ -434,13 +434,13 @@ they can change or be removed without notice or semver consideration.
|
|
|
434
434
|
| `client.internal.subscriptions.unschedule` | `POST /openmeter/subscriptions/{subscriptionId}/unschedule` | Deletes a scheduled subscription that has not yet become active, removing it and resolving any scheduling conflict it was holding. This is distinct from canceling: cancel ends a running subscription, whereas unscheduling removes a not-yet-active one. Only scheduled subscriptions can be unscheduled; unscheduling an active or already-started subscription is rejected. |
|
|
435
435
|
| `client.internal.subscriptions.restore` | `POST /openmeter/subscriptions/{subscriptionId}/restore` | Restores the subscription by deleting any later-scheduled successor subscriptions and continuing this one indefinitely. This is the inverse of a future-dated change, which schedules a successor. Restore is not available when multi-subscription is enabled. |
|
|
436
436
|
| `client.internal.subscriptions.migrate` | `POST /openmeter/subscriptions/{subscriptionId}/migrate` | Migrates to a later version of the current plan. With starting_phase omitted and billing_anchor omitted or unchanged, migration amends the subscription in place: unchanged items retain their service periods and both response entries have the same ID. Existing addons must remain compatible with the target plan. Incompatible phase timelines or billing settings return an error. Providing starting_phase or a different billing_anchor explicitly requests replacement, which resets the phase timeline, may produce billing adjustments, and does not transfer addons. Custom subscriptions cannot be migrated. |
|
|
437
|
+
| `client.internal.subscriptions.createAddon` | `POST /openmeter/subscriptions/{subscriptionId}/addons` | Add add-on to a subscription. |
|
|
437
438
|
| `client.internal.subscriptions.updateAddon` | `PATCH /openmeter/subscriptions/{subscriptionId}/addons/{subscriptionAddonId}` | Update a subscription add-on. Only the quantity is mutable; the timing controls when the new quantity takes effect. A new entry is appended to the add-on's timeline. |
|
|
438
439
|
|
|
439
440
|
### Internal Apps
|
|
440
441
|
|
|
441
442
|
| Method | HTTP | Description |
|
|
442
443
|
| ------------------------------------- | -------------------------------------- | -------------------------------- |
|
|
443
|
-
| `client.internal.apps.list` | `GET /openmeter/apps` | List installed apps. |
|
|
444
444
|
| `client.internal.apps.uninstall` | `DELETE /openmeter/apps/{appId}` | Uninstall an app by ID. |
|
|
445
445
|
| `client.internal.apps.update` | `PUT /openmeter/apps/{appId}` | Update an installed app. |
|
|
446
446
|
| `client.internal.apps.listCatalog` | `GET /openmeter/app-catalog` | List available apps. |
|
package/dist/index.d.ts
CHANGED
|
@@ -42,4 +42,4 @@ export type * from './models/operations/addons.js';
|
|
|
42
42
|
export type * from './models/operations/planAddons.js';
|
|
43
43
|
export type * from './models/operations/defaults.js';
|
|
44
44
|
export type * from './models/operations/entitlementAccess.js';
|
|
45
|
-
export type { Labels, CursorPaginationQueryPage, SortQuery, IngestedEventValidationError, CursorMetaPage, BaseError, PageMeta, QueryFilterString, AppStripeCheckoutSessionCustomTextParams, AppStripeCreateCustomerPortalSessionOptions, CreateLabels, PriceFree, RateCardStaticEntitlement, RateCardBooleanEntitlement, TaxConfigStripe, TaxConfigExternalInvoicing, InvoiceExternalReferences, InvoiceAvailableActionDetails, InvoiceWorkflowInvoicingSettings, WorkflowPaymentChargeAutomaticallySettings, WorkflowPaymentSendInvoiceSettings, ChargeFlatFeeDiscounts, SubscriptionEditRemoveItem, SubscriptionEditUnscheduleEdit, UpdateLabels, InstallAppStripeWithApiKey, InstallAppSandbox, InstallAppExternalInvoicing, WorkflowCollectionAlignmentSubscription, InvoiceLineExternalReferences, UpdateBillingInvoiceWorkflowInvoicingSettings, UpdateBillingWorkflowPaymentChargeAutomaticallySettings, UpdateBillingWorkflowPaymentSendInvoiceSettings, UpdatePriceFree, LlmCostProvider, LlmCostModel, ProductCatalogValidationError, EntitlementAccessQueryRequestCustomers, EntitlementAccessQueryRequestFeatures, QueryFilterInteger, QueryFilterFloat, QueryFilterBoolean, PagePaginationQuery, PublicLabels, SystemAccountAccessToken, PersonalAccessToken, KonnectAccessToken, AppCustomerDataStripe, AppCustomerDataExternalInvoicing, CreateChargeCostBasisDynamic, ChargeCostBasisDynamic, CurrencyFiat, ListCostBasesParamsFilter, CreateCurrencyCustomRequest, EntitlementAccessValue, CreateChargeCostBasisManual, ChargeCostBasisManual, PriceFlat, PriceUnit, SpendCommitments, RateCardDiscounts, Totals, ChargeRealizationDetailedLineCreditApplied, ChargeRealizationAmountDiscount, FeatureManualUnitCost, FeatureLlmUnitCostPricing, InvoiceLineCreditsApplied, InvoiceUsageQuantityDetail, UpdatePriceFlat, UpdatePriceUnit, UpdateDiscounts, LlmCostModelPricing, FiatCurrencyAmount, QueryFilterNumeric, CursorPaginationQuery, ListMetersParamsFilter, ListLlmCostPricesParamsFilter, LabelsFieldFilter, CustomerReference, ProfileReference, CreateChargeCostBasisPinned, CreateResourceReference, ChargeCostBasisPinned, TaxCodeReference, CreditGrantInvoiceReference, SubscriptionCostBasisPin, FeatureReference, SubscriptionReference, AppReference, ChargeRealizationInvoiceReference, AddonReference, ChargeReference, UpdateResourceReference, BillingCustomerReference, ChargeFeature, Event, MeterQueryRow, AppStripeCreateCustomerPortalSessionResult, ChargeResolvedCostBasis, 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, SubscriptionPlanReference, UpsertPlanAddonRequest, ResourceWithKey, Meter, PaginatedMeta, QueryFilterStringMapItem, CustomerKeyReference, CustomerUsageAttribution, UpdateCustomerUsageAttribution, Address, UpdateAddress, AppStripeCreateCheckoutSessionCustomerUpdate, AppStripeCreateCheckoutSessionConsentCollectionPaymentMethodReuseAgreement, AppStripeCreateCheckoutSessionTaxIdCollection, AppStripeCreateCheckoutSessionResult, CustomerStripeCreateCustomerPortalSessionRequest, RateCardMeteredEntitlement, SubscriptionPhaseCreate, SubscriptionEditStretchPhase, RecurringPeriod, ListCreditGrantsParamsFilter, ValidationIssue, GetCreditBalanceParamsFilter, ListPlansParamsFilter, SubscriptionProRatingConfig, RateCardProrationConfiguration, UnitConfig, PartyTaxIdentity, UpdateBillingPartyTaxIdentity, InvoiceAvailableActions, ChargeRealizationPayment, SubscriptionEditRemovePhase, TaxCodeAppMapping, AppCapability, UpdateAppStripeRequest, UpdateAppSandboxRequest, UpdateAppExternalInvoicingRequest, WorkflowInvoicingSettings, InvoiceLineAmountDiscount, InvoiceLineUsageDiscount, InvoiceLineBaseDiscount, ListCurrenciesParamsFilter, EntitlementAccessQueryRequest, EntitlementFeatureAccessReason, EntitlementAccessQueryError, AppCustomerData, UpsertAppCustomerDataRequest, CreditAdjustment, CreditBalance, ListCreditTransactionsParamsFilter, CreditTransaction, CurrencyAmount, EntitlementAccessResult, PriceTier, ChargeTotals, FeatureLlmUnitCost, UpdatePriceTier, LlmCostPrice, LlmCostOverrideCreate, ListCustomersParamsFilter, ListSubscriptionsParamsFilter, ListAppsParamsFilter, ListBillingProfilesParamsFilter, ListFeatureParamsFilter, ListAddonsParamsFilter, ListPlanAddonsParamsFilter, CreateTaxCodeConfig, TaxCodeConfig, TaxConfig, OrganizationDefaultTaxCodes, InvoiceWorkflowAppsReferences, ProfileAppReferences, PlanAddon, UpdateTaxCodeConfig, ListEventsParamsFilter, ListCustomerChargesParamsFilter, ListInvoicesParamsFilter, ListChargesParamsFilter, ResourceFilters, FieldFilters, IngestedEvent, MeterQueryResult, ChargeRealizationDetailedLineFlatFee, ChargeRealizationDetailedLineUsageBased, CurrencyCustom, FeatureCostQueryResult, MeterPagePaginatedResponse, CostBasisPagePaginatedResponse, MeterQueryFilters, FeatureMeterReference, Customer, PartyAddresses, InvoiceCustomer, UpdateBillingPartyAddresses, UpdateInvoiceCustomer, AppStripeCreateCheckoutSessionConsentCollection, SubscriptionEditAddPhase, WorkflowCollectionAlignmentAnchored, SubscriptionBase, InvoiceStatusDetails, InvoiceWorkflow, SubscriptionCancel, SubscriptionMigrate, SubscriptionAddonUpdate, TaxCode, AppCatalogItem, InvoiceLineDiscounts, UpdateBillingInvoiceWorkflow, EntitlementFeatureAccess, CustomerData, UpsertCustomerBillingDataRequest, CreditBalances, CreditTransactionPaginatedResponse, ChargeFlatFeeSystemIntent, ListCustomerEntitlementAccessResponseData, PriceGraduated, PriceVolume, UpdatePriceGraduated, UpdatePriceVolume, PricePagePaginatedResponse, CreateCreditGrantPurchase, CreditGrantPurchase, CreateChargeFlatFeeRequest, WorkflowTaxSettings, PlanAddonPagePaginatedResponse, IngestedEventPaginatedResponse, InvalidParameters, MeterQueryRequest, CustomerPagePaginatedResponse, Supplier, Party, UpdateSupplier, AppStripeCreateCheckoutSessionRequestOptions, InvoiceWorkflowSettings, TaxCodePagePaginatedResponse, AppStripe, AppSandbox, AppExternalInvoicing, AppCatalogItemPagePaginatedResponse, InstalledAppStripe, InstalledAppSandbox, InstalledAppExternalInvoicing, InvoiceDetailedLine, UpdateInvoiceWorkflowSettings, EntitlementAccessQueryResult, Feature, CreditGrant, CurrencyPagePaginatedResponse, BadRequest, InvoiceBase, CustomerStripeCreateCheckoutSessionRequest, WorkflowCollectionSettings, ChargeRealizationInvoice, EntitlementAccessQueryResponse, RateCard, InvoiceLineRateCard, ChargeUsageBasedSystemIntent, CreateChargeUsageBasedRequest, FeaturePagePaginatedResponse, UpdateInvoiceLineRateCard, CreditGrantPagePaginatedResponse, Workflow, AppPagePaginatedResponse, ProfileApps, SubscriptionItem, PlanPhase, SubscriptionEditAddItem, SubscriptionAddonRateCard, Addon, UpsertAddonRequest, InvoiceStandardLine, UpdateInvoiceStandardLine, Profile, UpsertBillingProfileRequest, ChargeRealization, SubscriptionPhase, SubscriptionCustomPlan, Plan, UpsertPlanRequest, SubscriptionAddon, AddonPagePaginatedResponse, ProfilePagePaginatedResponse, Subscription, SubscriptionCreate, SubscriptionChange, PlanPagePaginatedResponse, SubscriptionEdit, SubscriptionAddonPagePaginatedResponse, InvoiceStandard, UpdateInvoiceStandardRequest, SubscriptionPagePaginatedResponse, SubscriptionChangeResponse, SubscriptionMigrateResponse, ChargeFlatFee, ChargeUsageBased, InvoicePagePaginatedResponse, ChargePagePaginatedResponse, StringFieldFilter, MeterAggregation, MeterQueryGranularity, StringFieldFilterExact, PricePaymentTerm, BillingCurrencyCode, CreateCurrencyCode, UlidFieldFilter, DateTimeFieldFilter, WorkflowPaymentSettings, SubscriptionCreateTiming, SubscriptionEditTiming, UpdateBillingWorkflowPaymentSettings, CreateChargeCostBasis, ChargeCostBasis, InvalidParameter, RateCardEntitlement, FeatureUnitCost, ChargeRealizationDetailedLine, Currency, CustomerOrReference, WorkflowCollectionAlignment, Price, PriceUsageBased, UpdatePrice, App, BillingInstallAppResponse, FeatureOrReference, ChargeRealizationInvoiceOrReference, CreateChargeRequest, SubscriptionEditOperation, InvoiceLine, UpdateInvoiceLine, SubscriptionOrReference, Invoice, Charge, SortQueryInput, BaseErrorInput, InvoiceWorkflowInvoicingSettingsInput, WorkflowPaymentSendInvoiceSettingsInput, UpdateBillingInvoiceWorkflowInvoicingSettingsInput, UpdateBillingWorkflowPaymentSendInvoiceSettingsInput, EventInput, UnauthorizedInput, ForbiddenInput, NotFoundInput, GoneInput, ConflictInput, PayloadTooLargeInput, UnsupportedMediaTypeInput, UnprocessableContentInput, TooManyRequestsInput, InternalInput, NotImplementedInput, NotAvailableInput, AppStripeCreateCheckoutSessionCustomerUpdateInput, AppStripeCreateCheckoutSessionTaxIdCollectionInput, RateCardMeteredEntitlementInput, VoidCreditGrantRequestInput, UnitConfigInput, WorkflowInvoicingSettingsInput, EntitlementAccessQueryRequestInput, IngestedEventInput, SubscriptionBaseInput, InvoiceWorkflowInput, SubscriptionCancelInput, SubscriptionMigrateInput, UpdateBillingInvoiceWorkflowInput, CreateCreditGrantPurchaseInput, CreditGrantPurchaseInput, WorkflowTaxSettingsInput, IngestedEventPaginatedResponseInput, MeterQueryRequestInput, AppStripeCreateCheckoutSessionRequestOptionsInput, InvoiceWorkflowSettingsInput, InvoiceDetailedLineInput, UpdateInvoiceWorkflowSettingsInput, CreateCreditGrantRequestInput, CreditGrantInput, BadRequestInput, CustomerStripeCreateCheckoutSessionRequestInput, WorkflowCollectionSettingsInput, ChargeRealizationInvoiceInput, RateCardInput, InvoiceLineRateCardInput, ChargeUsageBasedSystemIntentInput, CreateChargeUsageBasedRequestInput, CreditGrantPagePaginatedResponseInput, WorkflowInput, SubscriptionItemInput, PlanPhaseInput, SubscriptionEditAddItemInput, SubscriptionAddonRateCardInput, AddonInput, CreateAddonRequestInput, UpsertAddonRequestInput, InvoiceStandardLineInput, ProfileInput, CreateBillingProfileRequestInput, UpsertBillingProfileRequestInput, ChargeRealizationInput, SubscriptionPhaseInput, SubscriptionCustomPlanInput, PlanInput, CreatePlanRequestInput, UpsertPlanRequestInput, SubscriptionAddonInput, AddonPagePaginatedResponseInput, ProfilePagePaginatedResponseInput, SubscriptionInput, SubscriptionCreateInput, SubscriptionChangeInput, PlanPagePaginatedResponseInput, SubscriptionEditInput, SubscriptionAddonPagePaginatedResponseInput, InvoiceStandardInput, UpdateInvoiceStandardRequestInput, SubscriptionPagePaginatedResponseInput, SubscriptionChangeResponseInput, SubscriptionMigrateResponseInput, ChargeFlatFeeInput, ChargeUsageBasedInput, InvoicePagePaginatedResponseInput, ChargePagePaginatedResponseInput, WorkflowPaymentSettingsInput, UpdateBillingWorkflowPaymentSettingsInput, RateCardEntitlementInput, ChargeRealizationInvoiceOrReferenceInput, CreateChargeRequestInput, SubscriptionEditOperationInput, InvoiceLineInput, SubscriptionOrReferenceInput, InvoiceInput, UpdateInvoiceRequestInput, ChargeInput, } from './models/types.js';
|
|
45
|
+
export type { Labels, CursorPaginationQueryPage, SortQuery, IngestedEventValidationError, CursorMetaPage, BaseError, PageMeta, QueryFilterString, AppStripeCheckoutSessionCustomTextParams, AppStripeCreateCustomerPortalSessionOptions, CreateLabels, PriceFree, RateCardStaticEntitlement, RateCardBooleanEntitlement, TaxConfigStripe, TaxConfigExternalInvoicing, InvoiceExternalReferences, InvoiceAvailableActionDetails, InvoiceWorkflowInvoicingSettings, WorkflowPaymentChargeAutomaticallySettings, WorkflowPaymentSendInvoiceSettings, ChargeFlatFeeDiscounts, SubscriptionEditRemoveItem, SubscriptionEditUnscheduleEdit, UpdateLabels, InstallAppStripeWithApiKey, InstallAppSandbox, InstallAppExternalInvoicing, WorkflowCollectionAlignmentSubscription, InvoiceLineExternalReferences, UpdateBillingInvoiceWorkflowInvoicingSettings, UpdateBillingWorkflowPaymentChargeAutomaticallySettings, UpdateBillingWorkflowPaymentSendInvoiceSettings, UpdatePriceFree, LlmCostProvider, LlmCostModel, ProductCatalogValidationError, EntitlementAccessQueryRequestCustomers, EntitlementAccessQueryRequestFeatures, QueryFilterInteger, QueryFilterFloat, QueryFilterBoolean, PagePaginationQuery, PublicLabels, SystemAccountAccessToken, PersonalAccessToken, KonnectAccessToken, AppCustomerDataStripe, AppCustomerDataExternalInvoicing, CreateChargeCostBasisDynamic, ChargeCostBasisDynamic, CurrencyFiat, ListCostBasesParamsFilter, CreateCurrencyCustomRequest, EntitlementAccessValue, CreateChargeCostBasisManual, ChargeCostBasisManual, PriceFlat, PriceUnit, SpendCommitments, RateCardDiscounts, Totals, ChargeRealizationDetailedLineCreditApplied, ChargeRealizationAmountDiscount, FeatureManualUnitCost, FeatureLlmUnitCostPricing, InvoiceLineCreditsApplied, InvoiceUsageQuantityDetail, UpdatePriceFlat, UpdatePriceUnit, UpdateDiscounts, LlmCostModelPricing, FiatCurrencyAmount, QueryFilterNumeric, CursorPaginationQuery, ListMetersParamsFilter, ListLlmCostPricesParamsFilter, LabelsFieldFilter, CustomerReference, ProfileReference, CreateChargeCostBasisPinned, CreateResourceReference, ChargeCostBasisPinned, TaxCodeReference, CreditGrantInvoiceReference, CurrencyCustomReference, SubscriptionCostBasisPin, FeatureReference, SubscriptionReference, AppReference, ChargeRealizationInvoiceReference, AddonReference, ChargeReference, UpdateResourceReference, BillingCustomerReference, ChargeFeature, Event, MeterQueryRow, AppStripeCreateCustomerPortalSessionResult, ChargeResolvedCostBasis, 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, SubscriptionPlanReference, UpsertPlanAddonRequest, ResourceWithKey, Meter, PaginatedMeta, QueryFilterStringMapItem, CustomerKeyReference, CustomerUsageAttribution, UpdateCustomerUsageAttribution, Address, UpdateAddress, AppStripeCreateCheckoutSessionCustomerUpdate, AppStripeCreateCheckoutSessionConsentCollectionPaymentMethodReuseAgreement, AppStripeCreateCheckoutSessionTaxIdCollection, AppStripeCreateCheckoutSessionResult, CustomerStripeCreateCustomerPortalSessionRequest, RateCardMeteredEntitlement, SubscriptionPhaseCreate, SubscriptionEditStretchPhase, RecurringPeriod, ListCreditGrantsParamsFilter, ValidationIssue, GetCreditBalanceParamsFilter, ListPlansParamsFilter, SubscriptionProRatingConfig, RateCardProrationConfiguration, UnitConfig, PartyTaxIdentity, UpdateBillingPartyTaxIdentity, InvoiceAvailableActions, ChargeRealizationPayment, SubscriptionEditRemovePhase, TaxCodeAppMapping, AppCapability, UpdateAppStripeRequest, UpdateAppSandboxRequest, UpdateAppExternalInvoicingRequest, WorkflowInvoicingSettings, InvoiceLineAmountDiscount, InvoiceLineUsageDiscount, InvoiceLineBaseDiscount, ListCurrenciesParamsFilter, EntitlementAccessQueryRequest, EntitlementFeatureAccessReason, EntitlementAccessQueryError, AppCustomerData, UpsertAppCustomerDataRequest, CreditAdjustment, ListCreditTransactionsParamsFilter, CurrencyAmount, EntitlementAccessResult, PriceTier, ChargeTotals, FeatureLlmUnitCost, UpdatePriceTier, LlmCostPrice, LlmCostOverrideCreate, ListCustomersParamsFilter, ListSubscriptionsParamsFilter, ListAppsParamsFilter, ListBillingProfilesParamsFilter, ListFeatureParamsFilter, ListAddonsParamsFilter, ListPlanAddonsParamsFilter, CreateTaxCodeConfig, TaxCodeConfig, TaxConfig, OrganizationDefaultTaxCodes, CreditBalance, CreditTransaction, InvoiceWorkflowAppsReferences, ProfileAppReferences, PlanAddon, UpdateTaxCodeConfig, ListEventsParamsFilter, ListCustomerChargesParamsFilter, ListInvoicesParamsFilter, ListChargesParamsFilter, ResourceFilters, FieldFilters, IngestedEvent, MeterQueryResult, ChargeRealizationDetailedLineFlatFee, ChargeRealizationDetailedLineUsageBased, CurrencyCustom, FeatureCostQueryResult, MeterPagePaginatedResponse, CostBasisPagePaginatedResponse, MeterQueryFilters, FeatureMeterReference, Customer, PartyAddresses, InvoiceCustomer, UpdateBillingPartyAddresses, UpdateInvoiceCustomer, AppStripeCreateCheckoutSessionConsentCollection, SubscriptionEditAddPhase, WorkflowCollectionAlignmentAnchored, SubscriptionBase, InvoiceStatusDetails, InvoiceWorkflow, SubscriptionCancel, SubscriptionMigrate, SubscriptionAddonUpdate, TaxCode, AppCatalogItem, InvoiceLineDiscounts, UpdateBillingInvoiceWorkflow, EntitlementFeatureAccess, CustomerData, UpsertCustomerBillingDataRequest, ChargeFlatFeeSystemIntent, ListCustomerEntitlementAccessResponseData, PriceGraduated, PriceVolume, UpdatePriceGraduated, UpdatePriceVolume, PricePagePaginatedResponse, CreateCreditGrantPurchase, CreditGrantPurchase, CreateChargeFlatFeeRequest, WorkflowTaxSettings, CreditBalances, CreditTransactionPaginatedResponse, PlanAddonPagePaginatedResponse, IngestedEventPaginatedResponse, InvalidParameters, MeterQueryRequest, CustomerPagePaginatedResponse, Supplier, Party, UpdateSupplier, AppStripeCreateCheckoutSessionRequestOptions, InvoiceWorkflowSettings, TaxCodePagePaginatedResponse, AppStripe, AppSandbox, AppExternalInvoicing, AppCatalogItemPagePaginatedResponse, InstalledAppStripe, InstalledAppSandbox, InstalledAppExternalInvoicing, InvoiceDetailedLine, UpdateInvoiceWorkflowSettings, EntitlementAccessQueryResult, Feature, CreditGrant, CurrencyPagePaginatedResponse, BadRequest, InvoiceBase, CustomerStripeCreateCheckoutSessionRequest, WorkflowCollectionSettings, ChargeRealizationInvoice, EntitlementAccessQueryResponse, RateCard, InvoiceLineRateCard, ChargeUsageBasedSystemIntent, CreateChargeUsageBasedRequest, FeaturePagePaginatedResponse, UpdateInvoiceLineRateCard, CreditGrantPagePaginatedResponse, Workflow, AppPagePaginatedResponse, ProfileApps, SubscriptionItem, PlanPhase, SubscriptionEditAddItem, SubscriptionAddonRateCard, Addon, UpsertAddonRequest, InvoiceStandardLine, UpdateInvoiceStandardLine, Profile, UpsertBillingProfileRequest, ChargeRealization, SubscriptionPhase, SubscriptionCustomPlan, Plan, UpsertPlanRequest, SubscriptionAddon, AddonPagePaginatedResponse, ProfilePagePaginatedResponse, Subscription, SubscriptionCreate, SubscriptionChange, PlanPagePaginatedResponse, SubscriptionEdit, SubscriptionAddonPagePaginatedResponse, InvoiceStandard, UpdateInvoiceStandardRequest, SubscriptionPagePaginatedResponse, SubscriptionChangeResponse, SubscriptionMigrateResponse, ChargeFlatFee, ChargeUsageBased, InvoicePagePaginatedResponse, ChargePagePaginatedResponse, StringFieldFilter, MeterAggregation, MeterQueryGranularity, StringFieldFilterExact, PricePaymentTerm, BillingCurrencyCode, CreateCurrencyCode, UlidFieldFilter, DateTimeFieldFilter, WorkflowPaymentSettings, SubscriptionCreateTiming, SubscriptionEditTiming, UpdateBillingWorkflowPaymentSettings, CreateChargeCostBasis, ChargeCostBasis, InvalidParameter, RateCardEntitlement, FeatureUnitCost, ChargeRealizationDetailedLine, Currency, CustomerOrReference, WorkflowCollectionAlignment, Price, PriceUsageBased, UpdatePrice, App, BillingInstallAppResponse, FeatureOrReference, ChargeRealizationInvoiceOrReference, CreateChargeRequest, SubscriptionEditOperation, InvoiceLine, UpdateInvoiceLine, SubscriptionOrReference, Invoice, Charge, SortQueryInput, BaseErrorInput, InvoiceWorkflowInvoicingSettingsInput, WorkflowPaymentSendInvoiceSettingsInput, UpdateBillingInvoiceWorkflowInvoicingSettingsInput, UpdateBillingWorkflowPaymentSendInvoiceSettingsInput, EventInput, UnauthorizedInput, ForbiddenInput, NotFoundInput, GoneInput, ConflictInput, PayloadTooLargeInput, UnsupportedMediaTypeInput, UnprocessableContentInput, TooManyRequestsInput, InternalInput, NotImplementedInput, NotAvailableInput, AppStripeCreateCheckoutSessionCustomerUpdateInput, AppStripeCreateCheckoutSessionTaxIdCollectionInput, RateCardMeteredEntitlementInput, VoidCreditGrantRequestInput, UnitConfigInput, WorkflowInvoicingSettingsInput, EntitlementAccessQueryRequestInput, IngestedEventInput, SubscriptionBaseInput, InvoiceWorkflowInput, SubscriptionCancelInput, SubscriptionMigrateInput, UpdateBillingInvoiceWorkflowInput, CreateCreditGrantPurchaseInput, CreditGrantPurchaseInput, WorkflowTaxSettingsInput, IngestedEventPaginatedResponseInput, MeterQueryRequestInput, AppStripeCreateCheckoutSessionRequestOptionsInput, InvoiceWorkflowSettingsInput, InvoiceDetailedLineInput, UpdateInvoiceWorkflowSettingsInput, CreateCreditGrantRequestInput, CreditGrantInput, BadRequestInput, CustomerStripeCreateCheckoutSessionRequestInput, WorkflowCollectionSettingsInput, ChargeRealizationInvoiceInput, RateCardInput, InvoiceLineRateCardInput, ChargeUsageBasedSystemIntentInput, CreateChargeUsageBasedRequestInput, CreditGrantPagePaginatedResponseInput, WorkflowInput, SubscriptionItemInput, PlanPhaseInput, SubscriptionEditAddItemInput, SubscriptionAddonRateCardInput, AddonInput, CreateAddonRequestInput, UpsertAddonRequestInput, InvoiceStandardLineInput, ProfileInput, CreateBillingProfileRequestInput, UpsertBillingProfileRequestInput, ChargeRealizationInput, SubscriptionPhaseInput, SubscriptionCustomPlanInput, PlanInput, CreatePlanRequestInput, UpsertPlanRequestInput, SubscriptionAddonInput, AddonPagePaginatedResponseInput, ProfilePagePaginatedResponseInput, SubscriptionInput, SubscriptionCreateInput, SubscriptionChangeInput, PlanPagePaginatedResponseInput, SubscriptionEditInput, SubscriptionAddonPagePaginatedResponseInput, InvoiceStandardInput, UpdateInvoiceStandardRequestInput, SubscriptionPagePaginatedResponseInput, SubscriptionChangeResponseInput, SubscriptionMigrateResponseInput, ChargeFlatFeeInput, ChargeUsageBasedInput, InvoicePagePaginatedResponseInput, ChargePagePaginatedResponseInput, WorkflowPaymentSettingsInput, UpdateBillingWorkflowPaymentSettingsInput, RateCardEntitlementInput, ChargeRealizationInvoiceOrReferenceInput, CreateChargeRequestInput, SubscriptionEditOperationInput, InvoiceLineInput, SubscriptionOrReferenceInput, InvoiceInput, UpdateInvoiceRequestInput, ChargeInput, } from './models/types.js';
|
package/dist/lib/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.0.0-beta-
|
|
1
|
+
export declare const SDK_VERSION = "1.0.0-beta-080b75047a43";
|
package/dist/lib/version.js
CHANGED
|
@@ -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-
|
|
5
|
+
export const SDK_VERSION = '1.0.0-beta-080b75047a43';
|
package/dist/models/schemas.d.ts
CHANGED
|
@@ -870,6 +870,9 @@ export declare const creditGrantInvoiceReference: z.ZodObject<{
|
|
|
870
870
|
id: z.ZodString;
|
|
871
871
|
}, z.core.$strip>>;
|
|
872
872
|
}, z.core.$strip>;
|
|
873
|
+
export declare const currencyCustomReference: z.ZodObject<{
|
|
874
|
+
id: z.ZodString;
|
|
875
|
+
}, z.core.$strip>;
|
|
873
876
|
export declare const subscriptionCostBasisPin: z.ZodObject<{
|
|
874
877
|
customCurrencyId: z.ZodString;
|
|
875
878
|
invoiceCurrency: z.ZodString;
|
|
@@ -1731,13 +1734,6 @@ export declare const creditAdjustment: z.ZodObject<{
|
|
|
1731
1734
|
description: z.ZodOptional<z.ZodString>;
|
|
1732
1735
|
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1733
1736
|
}, z.core.$strip>;
|
|
1734
|
-
export declare const creditBalance: z.ZodObject<{
|
|
1735
|
-
currency: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
1736
|
-
customCurrencyId: z.ZodOptional<z.ZodString>;
|
|
1737
|
-
live: z.ZodString;
|
|
1738
|
-
settled: z.ZodString;
|
|
1739
|
-
pending: z.ZodString;
|
|
1740
|
-
}, z.core.$strip>;
|
|
1741
1737
|
export declare const createCreditAdjustmentRequest: z.ZodObject<{
|
|
1742
1738
|
name: z.ZodString;
|
|
1743
1739
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -1766,27 +1762,6 @@ export declare const listCreditTransactionsParamsFilter: z.ZodObject<{
|
|
|
1766
1762
|
exists: z.ZodOptional<z.ZodBoolean>;
|
|
1767
1763
|
}, z.core.$strip>]>>;
|
|
1768
1764
|
}, z.core.$strip>;
|
|
1769
|
-
export declare const creditTransaction: z.ZodObject<{
|
|
1770
|
-
id: z.ZodString;
|
|
1771
|
-
name: z.ZodString;
|
|
1772
|
-
description: z.ZodOptional<z.ZodString>;
|
|
1773
|
-
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1774
|
-
createdAt: z.ZodDate;
|
|
1775
|
-
bookedAt: z.ZodDate;
|
|
1776
|
-
type: z.ZodEnum<{
|
|
1777
|
-
consumed: "consumed";
|
|
1778
|
-
expired: "expired";
|
|
1779
|
-
funded: "funded";
|
|
1780
|
-
voided: "voided";
|
|
1781
|
-
}>;
|
|
1782
|
-
currency: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
1783
|
-
customCurrencyId: z.ZodOptional<z.ZodString>;
|
|
1784
|
-
amount: z.ZodString;
|
|
1785
|
-
availableBalance: z.ZodObject<{
|
|
1786
|
-
before: z.ZodString;
|
|
1787
|
-
after: z.ZodString;
|
|
1788
|
-
}, z.core.$strip>;
|
|
1789
|
-
}, z.core.$strip>;
|
|
1790
1765
|
export declare const currencyAmount: z.ZodObject<{
|
|
1791
1766
|
amount: z.ZodString;
|
|
1792
1767
|
currency: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
@@ -2268,6 +2243,38 @@ export declare const updateOrganizationDefaultTaxCodesRequest: z.ZodObject<{
|
|
|
2268
2243
|
id: z.ZodString;
|
|
2269
2244
|
}, z.core.$strip>>;
|
|
2270
2245
|
}, z.core.$strip>;
|
|
2246
|
+
export declare const creditBalance: z.ZodObject<{
|
|
2247
|
+
currency: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
2248
|
+
customCurrency: z.ZodOptional<z.ZodObject<{
|
|
2249
|
+
id: z.ZodString;
|
|
2250
|
+
}, z.core.$strip>>;
|
|
2251
|
+
live: z.ZodString;
|
|
2252
|
+
settled: z.ZodString;
|
|
2253
|
+
pending: z.ZodString;
|
|
2254
|
+
}, z.core.$strip>;
|
|
2255
|
+
export declare const creditTransaction: z.ZodObject<{
|
|
2256
|
+
id: z.ZodString;
|
|
2257
|
+
name: z.ZodString;
|
|
2258
|
+
description: z.ZodOptional<z.ZodString>;
|
|
2259
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2260
|
+
createdAt: z.ZodDate;
|
|
2261
|
+
bookedAt: z.ZodDate;
|
|
2262
|
+
type: z.ZodEnum<{
|
|
2263
|
+
consumed: "consumed";
|
|
2264
|
+
expired: "expired";
|
|
2265
|
+
funded: "funded";
|
|
2266
|
+
voided: "voided";
|
|
2267
|
+
}>;
|
|
2268
|
+
currency: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
2269
|
+
customCurrency: z.ZodOptional<z.ZodObject<{
|
|
2270
|
+
id: z.ZodString;
|
|
2271
|
+
}, z.core.$strip>>;
|
|
2272
|
+
amount: z.ZodString;
|
|
2273
|
+
availableBalance: z.ZodObject<{
|
|
2274
|
+
before: z.ZodString;
|
|
2275
|
+
after: z.ZodString;
|
|
2276
|
+
}, z.core.$strip>;
|
|
2277
|
+
}, z.core.$strip>;
|
|
2271
2278
|
export declare const invoiceWorkflowAppsReferences: z.ZodObject<{
|
|
2272
2279
|
tax: z.ZodObject<{
|
|
2273
2280
|
id: z.ZodString;
|
|
@@ -3387,48 +3394,6 @@ export declare const upsertCustomerBillingDataRequest: z.ZodObject<{
|
|
|
3387
3394
|
}, z.core.$strip>>>;
|
|
3388
3395
|
}, z.core.$strip>>;
|
|
3389
3396
|
}, z.core.$strip>;
|
|
3390
|
-
export declare const creditBalances: z.ZodObject<{
|
|
3391
|
-
retrievedAt: z.ZodDate;
|
|
3392
|
-
balances: z.ZodArray<z.ZodObject<{
|
|
3393
|
-
currency: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
3394
|
-
customCurrencyId: z.ZodOptional<z.ZodString>;
|
|
3395
|
-
live: z.ZodString;
|
|
3396
|
-
settled: z.ZodString;
|
|
3397
|
-
pending: z.ZodString;
|
|
3398
|
-
}, z.core.$strip>>;
|
|
3399
|
-
}, z.core.$strip>;
|
|
3400
|
-
export declare const creditTransactionPaginatedResponse: z.ZodObject<{
|
|
3401
|
-
data: z.ZodArray<z.ZodObject<{
|
|
3402
|
-
id: z.ZodString;
|
|
3403
|
-
name: z.ZodString;
|
|
3404
|
-
description: z.ZodOptional<z.ZodString>;
|
|
3405
|
-
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
3406
|
-
createdAt: z.ZodDate;
|
|
3407
|
-
bookedAt: z.ZodDate;
|
|
3408
|
-
type: z.ZodEnum<{
|
|
3409
|
-
consumed: "consumed";
|
|
3410
|
-
expired: "expired";
|
|
3411
|
-
funded: "funded";
|
|
3412
|
-
voided: "voided";
|
|
3413
|
-
}>;
|
|
3414
|
-
currency: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
3415
|
-
customCurrencyId: z.ZodOptional<z.ZodString>;
|
|
3416
|
-
amount: z.ZodString;
|
|
3417
|
-
availableBalance: z.ZodObject<{
|
|
3418
|
-
before: z.ZodString;
|
|
3419
|
-
after: z.ZodString;
|
|
3420
|
-
}, z.core.$strip>;
|
|
3421
|
-
}, z.core.$strip>>;
|
|
3422
|
-
meta: z.ZodObject<{
|
|
3423
|
-
page: z.ZodObject<{
|
|
3424
|
-
first: z.ZodOptional<z.ZodString>;
|
|
3425
|
-
last: z.ZodOptional<z.ZodString>;
|
|
3426
|
-
next: z.ZodNullable<z.ZodString>;
|
|
3427
|
-
previous: z.ZodNullable<z.ZodString>;
|
|
3428
|
-
size: z.ZodNumber;
|
|
3429
|
-
}, z.core.$strip>;
|
|
3430
|
-
}, z.core.$strip>;
|
|
3431
|
-
}, z.core.$strip>;
|
|
3432
3397
|
export declare const chargeFlatFeeSystemIntent: z.ZodObject<{
|
|
3433
3398
|
name: z.ZodString;
|
|
3434
3399
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -3728,6 +3693,52 @@ export declare const workflowTaxSettings: z.ZodObject<{
|
|
|
3728
3693
|
}, z.core.$strip>>;
|
|
3729
3694
|
}, z.core.$strip>>;
|
|
3730
3695
|
}, z.core.$strip>;
|
|
3696
|
+
export declare const creditBalances: z.ZodObject<{
|
|
3697
|
+
retrievedAt: z.ZodDate;
|
|
3698
|
+
balances: z.ZodArray<z.ZodObject<{
|
|
3699
|
+
currency: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
3700
|
+
customCurrency: z.ZodOptional<z.ZodObject<{
|
|
3701
|
+
id: z.ZodString;
|
|
3702
|
+
}, z.core.$strip>>;
|
|
3703
|
+
live: z.ZodString;
|
|
3704
|
+
settled: z.ZodString;
|
|
3705
|
+
pending: z.ZodString;
|
|
3706
|
+
}, z.core.$strip>>;
|
|
3707
|
+
}, z.core.$strip>;
|
|
3708
|
+
export declare const creditTransactionPaginatedResponse: z.ZodObject<{
|
|
3709
|
+
data: z.ZodArray<z.ZodObject<{
|
|
3710
|
+
id: z.ZodString;
|
|
3711
|
+
name: z.ZodString;
|
|
3712
|
+
description: z.ZodOptional<z.ZodString>;
|
|
3713
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
3714
|
+
createdAt: z.ZodDate;
|
|
3715
|
+
bookedAt: z.ZodDate;
|
|
3716
|
+
type: z.ZodEnum<{
|
|
3717
|
+
consumed: "consumed";
|
|
3718
|
+
expired: "expired";
|
|
3719
|
+
funded: "funded";
|
|
3720
|
+
voided: "voided";
|
|
3721
|
+
}>;
|
|
3722
|
+
currency: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
3723
|
+
customCurrency: z.ZodOptional<z.ZodObject<{
|
|
3724
|
+
id: z.ZodString;
|
|
3725
|
+
}, z.core.$strip>>;
|
|
3726
|
+
amount: z.ZodString;
|
|
3727
|
+
availableBalance: z.ZodObject<{
|
|
3728
|
+
before: z.ZodString;
|
|
3729
|
+
after: z.ZodString;
|
|
3730
|
+
}, z.core.$strip>;
|
|
3731
|
+
}, z.core.$strip>>;
|
|
3732
|
+
meta: z.ZodObject<{
|
|
3733
|
+
page: z.ZodObject<{
|
|
3734
|
+
first: z.ZodOptional<z.ZodString>;
|
|
3735
|
+
last: z.ZodOptional<z.ZodString>;
|
|
3736
|
+
next: z.ZodNullable<z.ZodString>;
|
|
3737
|
+
previous: z.ZodNullable<z.ZodString>;
|
|
3738
|
+
size: z.ZodNumber;
|
|
3739
|
+
}, z.core.$strip>;
|
|
3740
|
+
}, z.core.$strip>;
|
|
3741
|
+
}, z.core.$strip>;
|
|
3731
3742
|
export declare const planAddonPagePaginatedResponse: z.ZodObject<{
|
|
3732
3743
|
data: z.ZodArray<z.ZodObject<{
|
|
3733
3744
|
id: z.ZodString;
|
|
@@ -18207,7 +18218,9 @@ export declare const getCustomerCreditBalanceResponse: z.ZodObject<{
|
|
|
18207
18218
|
retrievedAt: z.ZodDate;
|
|
18208
18219
|
balances: z.ZodArray<z.ZodObject<{
|
|
18209
18220
|
currency: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
18210
|
-
|
|
18221
|
+
customCurrency: z.ZodOptional<z.ZodObject<{
|
|
18222
|
+
id: z.ZodString;
|
|
18223
|
+
}, z.core.$strip>>;
|
|
18211
18224
|
live: z.ZodString;
|
|
18212
18225
|
settled: z.ZodString;
|
|
18213
18226
|
pending: z.ZodString;
|
|
@@ -18444,7 +18457,9 @@ export declare const listCreditTransactionsResponse: z.ZodObject<{
|
|
|
18444
18457
|
voided: "voided";
|
|
18445
18458
|
}>;
|
|
18446
18459
|
currency: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
18447
|
-
|
|
18460
|
+
customCurrency: z.ZodOptional<z.ZodObject<{
|
|
18461
|
+
id: z.ZodString;
|
|
18462
|
+
}, z.core.$strip>>;
|
|
18448
18463
|
amount: z.ZodString;
|
|
18449
18464
|
availableBalance: z.ZodObject<{
|
|
18450
18465
|
before: z.ZodString;
|
|
@@ -33580,6 +33595,9 @@ export declare const creditGrantInvoiceReferenceWire: z.ZodObject<{
|
|
|
33580
33595
|
id: z.ZodString;
|
|
33581
33596
|
}, z.core.$strict>>;
|
|
33582
33597
|
}, z.core.$strict>;
|
|
33598
|
+
export declare const currencyCustomReferenceWire: z.ZodObject<{
|
|
33599
|
+
id: z.ZodString;
|
|
33600
|
+
}, z.core.$strict>;
|
|
33583
33601
|
export declare const subscriptionCostBasisPinWire: z.ZodObject<{
|
|
33584
33602
|
custom_currency_id: z.ZodString;
|
|
33585
33603
|
invoice_currency: z.ZodString;
|
|
@@ -34441,13 +34459,6 @@ export declare const creditAdjustmentWire: z.ZodObject<{
|
|
|
34441
34459
|
description: z.ZodOptional<z.ZodString>;
|
|
34442
34460
|
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
34443
34461
|
}, z.core.$strict>;
|
|
34444
|
-
export declare const creditBalanceWire: z.ZodObject<{
|
|
34445
|
-
currency: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
34446
|
-
custom_currency_id: z.ZodOptional<z.ZodString>;
|
|
34447
|
-
live: z.ZodString;
|
|
34448
|
-
settled: z.ZodString;
|
|
34449
|
-
pending: z.ZodString;
|
|
34450
|
-
}, z.core.$strict>;
|
|
34451
34462
|
export declare const createCreditAdjustmentRequestWire: z.ZodObject<{
|
|
34452
34463
|
name: z.ZodString;
|
|
34453
34464
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -34476,27 +34487,6 @@ export declare const listCreditTransactionsParamsFilterWire: z.ZodObject<{
|
|
|
34476
34487
|
exists: z.ZodOptional<z.ZodBoolean>;
|
|
34477
34488
|
}, z.core.$strict>]>>;
|
|
34478
34489
|
}, z.core.$strict>;
|
|
34479
|
-
export declare const creditTransactionWire: z.ZodObject<{
|
|
34480
|
-
id: z.ZodString;
|
|
34481
|
-
name: z.ZodString;
|
|
34482
|
-
description: z.ZodOptional<z.ZodString>;
|
|
34483
|
-
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
34484
|
-
created_at: z.ZodString;
|
|
34485
|
-
booked_at: z.ZodString;
|
|
34486
|
-
type: z.ZodEnum<{
|
|
34487
|
-
consumed: "consumed";
|
|
34488
|
-
expired: "expired";
|
|
34489
|
-
funded: "funded";
|
|
34490
|
-
voided: "voided";
|
|
34491
|
-
}>;
|
|
34492
|
-
currency: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
34493
|
-
custom_currency_id: z.ZodOptional<z.ZodString>;
|
|
34494
|
-
amount: z.ZodString;
|
|
34495
|
-
available_balance: z.ZodObject<{
|
|
34496
|
-
before: z.ZodString;
|
|
34497
|
-
after: z.ZodString;
|
|
34498
|
-
}, z.core.$strict>;
|
|
34499
|
-
}, z.core.$strict>;
|
|
34500
34490
|
export declare const currencyAmountWire: z.ZodObject<{
|
|
34501
34491
|
amount: z.ZodString;
|
|
34502
34492
|
currency: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
@@ -34978,6 +34968,38 @@ export declare const updateOrganizationDefaultTaxCodesRequestWire: z.ZodObject<{
|
|
|
34978
34968
|
id: z.ZodString;
|
|
34979
34969
|
}, z.core.$strict>>;
|
|
34980
34970
|
}, z.core.$strict>;
|
|
34971
|
+
export declare const creditBalanceWire: z.ZodObject<{
|
|
34972
|
+
currency: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
34973
|
+
custom_currency: z.ZodOptional<z.ZodObject<{
|
|
34974
|
+
id: z.ZodString;
|
|
34975
|
+
}, z.core.$strict>>;
|
|
34976
|
+
live: z.ZodString;
|
|
34977
|
+
settled: z.ZodString;
|
|
34978
|
+
pending: z.ZodString;
|
|
34979
|
+
}, z.core.$strict>;
|
|
34980
|
+
export declare const creditTransactionWire: z.ZodObject<{
|
|
34981
|
+
id: z.ZodString;
|
|
34982
|
+
name: z.ZodString;
|
|
34983
|
+
description: z.ZodOptional<z.ZodString>;
|
|
34984
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
34985
|
+
created_at: z.ZodString;
|
|
34986
|
+
booked_at: z.ZodString;
|
|
34987
|
+
type: z.ZodEnum<{
|
|
34988
|
+
consumed: "consumed";
|
|
34989
|
+
expired: "expired";
|
|
34990
|
+
funded: "funded";
|
|
34991
|
+
voided: "voided";
|
|
34992
|
+
}>;
|
|
34993
|
+
currency: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
34994
|
+
custom_currency: z.ZodOptional<z.ZodObject<{
|
|
34995
|
+
id: z.ZodString;
|
|
34996
|
+
}, z.core.$strict>>;
|
|
34997
|
+
amount: z.ZodString;
|
|
34998
|
+
available_balance: z.ZodObject<{
|
|
34999
|
+
before: z.ZodString;
|
|
35000
|
+
after: z.ZodString;
|
|
35001
|
+
}, z.core.$strict>;
|
|
35002
|
+
}, z.core.$strict>;
|
|
34981
35003
|
export declare const invoiceWorkflowAppsReferencesWire: z.ZodObject<{
|
|
34982
35004
|
tax: z.ZodObject<{
|
|
34983
35005
|
id: z.ZodString;
|
|
@@ -36097,48 +36119,6 @@ export declare const upsertCustomerBillingDataRequestWire: z.ZodObject<{
|
|
|
36097
36119
|
}, z.core.$strict>>>;
|
|
36098
36120
|
}, z.core.$strict>>;
|
|
36099
36121
|
}, z.core.$strict>;
|
|
36100
|
-
export declare const creditBalancesWire: z.ZodObject<{
|
|
36101
|
-
retrieved_at: z.ZodString;
|
|
36102
|
-
balances: z.ZodArray<z.ZodObject<{
|
|
36103
|
-
currency: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
36104
|
-
custom_currency_id: z.ZodOptional<z.ZodString>;
|
|
36105
|
-
live: z.ZodString;
|
|
36106
|
-
settled: z.ZodString;
|
|
36107
|
-
pending: z.ZodString;
|
|
36108
|
-
}, z.core.$strict>>;
|
|
36109
|
-
}, z.core.$strict>;
|
|
36110
|
-
export declare const creditTransactionPaginatedResponseWire: z.ZodObject<{
|
|
36111
|
-
data: z.ZodArray<z.ZodObject<{
|
|
36112
|
-
id: z.ZodString;
|
|
36113
|
-
name: z.ZodString;
|
|
36114
|
-
description: z.ZodOptional<z.ZodString>;
|
|
36115
|
-
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
36116
|
-
created_at: z.ZodString;
|
|
36117
|
-
booked_at: z.ZodString;
|
|
36118
|
-
type: z.ZodEnum<{
|
|
36119
|
-
consumed: "consumed";
|
|
36120
|
-
expired: "expired";
|
|
36121
|
-
funded: "funded";
|
|
36122
|
-
voided: "voided";
|
|
36123
|
-
}>;
|
|
36124
|
-
currency: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
36125
|
-
custom_currency_id: z.ZodOptional<z.ZodString>;
|
|
36126
|
-
amount: z.ZodString;
|
|
36127
|
-
available_balance: z.ZodObject<{
|
|
36128
|
-
before: z.ZodString;
|
|
36129
|
-
after: z.ZodString;
|
|
36130
|
-
}, z.core.$strict>;
|
|
36131
|
-
}, z.core.$strict>>;
|
|
36132
|
-
meta: z.ZodObject<{
|
|
36133
|
-
page: z.ZodObject<{
|
|
36134
|
-
first: z.ZodOptional<z.ZodString>;
|
|
36135
|
-
last: z.ZodOptional<z.ZodString>;
|
|
36136
|
-
next: z.ZodNullable<z.ZodString>;
|
|
36137
|
-
previous: z.ZodNullable<z.ZodString>;
|
|
36138
|
-
size: z.ZodNumber;
|
|
36139
|
-
}, z.core.$strict>;
|
|
36140
|
-
}, z.core.$strict>;
|
|
36141
|
-
}, z.core.$strict>;
|
|
36142
36122
|
export declare const chargeFlatFeeSystemIntentWire: z.ZodObject<{
|
|
36143
36123
|
name: z.ZodString;
|
|
36144
36124
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -36438,6 +36418,52 @@ export declare const workflowTaxSettingsWire: z.ZodObject<{
|
|
|
36438
36418
|
}, z.core.$strict>>;
|
|
36439
36419
|
}, z.core.$strict>>;
|
|
36440
36420
|
}, z.core.$strict>;
|
|
36421
|
+
export declare const creditBalancesWire: z.ZodObject<{
|
|
36422
|
+
retrieved_at: z.ZodString;
|
|
36423
|
+
balances: z.ZodArray<z.ZodObject<{
|
|
36424
|
+
currency: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
36425
|
+
custom_currency: z.ZodOptional<z.ZodObject<{
|
|
36426
|
+
id: z.ZodString;
|
|
36427
|
+
}, z.core.$strict>>;
|
|
36428
|
+
live: z.ZodString;
|
|
36429
|
+
settled: z.ZodString;
|
|
36430
|
+
pending: z.ZodString;
|
|
36431
|
+
}, z.core.$strict>>;
|
|
36432
|
+
}, z.core.$strict>;
|
|
36433
|
+
export declare const creditTransactionPaginatedResponseWire: z.ZodObject<{
|
|
36434
|
+
data: z.ZodArray<z.ZodObject<{
|
|
36435
|
+
id: z.ZodString;
|
|
36436
|
+
name: z.ZodString;
|
|
36437
|
+
description: z.ZodOptional<z.ZodString>;
|
|
36438
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
36439
|
+
created_at: z.ZodString;
|
|
36440
|
+
booked_at: z.ZodString;
|
|
36441
|
+
type: z.ZodEnum<{
|
|
36442
|
+
consumed: "consumed";
|
|
36443
|
+
expired: "expired";
|
|
36444
|
+
funded: "funded";
|
|
36445
|
+
voided: "voided";
|
|
36446
|
+
}>;
|
|
36447
|
+
currency: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
36448
|
+
custom_currency: z.ZodOptional<z.ZodObject<{
|
|
36449
|
+
id: z.ZodString;
|
|
36450
|
+
}, z.core.$strict>>;
|
|
36451
|
+
amount: z.ZodString;
|
|
36452
|
+
available_balance: z.ZodObject<{
|
|
36453
|
+
before: z.ZodString;
|
|
36454
|
+
after: z.ZodString;
|
|
36455
|
+
}, z.core.$strict>;
|
|
36456
|
+
}, z.core.$strict>>;
|
|
36457
|
+
meta: z.ZodObject<{
|
|
36458
|
+
page: z.ZodObject<{
|
|
36459
|
+
first: z.ZodOptional<z.ZodString>;
|
|
36460
|
+
last: z.ZodOptional<z.ZodString>;
|
|
36461
|
+
next: z.ZodNullable<z.ZodString>;
|
|
36462
|
+
previous: z.ZodNullable<z.ZodString>;
|
|
36463
|
+
size: z.ZodNumber;
|
|
36464
|
+
}, z.core.$strict>;
|
|
36465
|
+
}, z.core.$strict>;
|
|
36466
|
+
}, z.core.$strict>;
|
|
36441
36467
|
export declare const planAddonPagePaginatedResponseWire: z.ZodObject<{
|
|
36442
36468
|
data: z.ZodArray<z.ZodObject<{
|
|
36443
36469
|
id: z.ZodString;
|
|
@@ -50908,7 +50934,9 @@ export declare const getCustomerCreditBalanceResponseWire: z.ZodObject<{
|
|
|
50908
50934
|
retrieved_at: z.ZodString;
|
|
50909
50935
|
balances: z.ZodArray<z.ZodObject<{
|
|
50910
50936
|
currency: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
50911
|
-
|
|
50937
|
+
custom_currency: z.ZodOptional<z.ZodObject<{
|
|
50938
|
+
id: z.ZodString;
|
|
50939
|
+
}, z.core.$strict>>;
|
|
50912
50940
|
live: z.ZodString;
|
|
50913
50941
|
settled: z.ZodString;
|
|
50914
50942
|
pending: z.ZodString;
|
|
@@ -51145,7 +51173,9 @@ export declare const listCreditTransactionsResponseWire: z.ZodObject<{
|
|
|
51145
51173
|
voided: "voided";
|
|
51146
51174
|
}>;
|
|
51147
51175
|
currency: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
51148
|
-
|
|
51176
|
+
custom_currency: z.ZodOptional<z.ZodObject<{
|
|
51177
|
+
id: z.ZodString;
|
|
51178
|
+
}, z.core.$strict>>;
|
|
51149
51179
|
amount: z.ZodString;
|
|
51150
51180
|
available_balance: z.ZodObject<{
|
|
51151
51181
|
before: z.ZodString;
|
package/dist/models/schemas.js
CHANGED
|
@@ -1452,6 +1452,11 @@ export const creditGrantInvoiceReference = z
|
|
|
1452
1452
|
.describe('Identifier of the invoice line associated with the grant.'),
|
|
1453
1453
|
})
|
|
1454
1454
|
.describe('Invoice references for the grant.');
|
|
1455
|
+
export const currencyCustomReference = z
|
|
1456
|
+
.object({
|
|
1457
|
+
id: ulid,
|
|
1458
|
+
})
|
|
1459
|
+
.describe('CurrencyCustom reference.');
|
|
1455
1460
|
export const subscriptionCostBasisPin = z
|
|
1456
1461
|
.object({
|
|
1457
1462
|
customCurrencyId: ulid,
|
|
@@ -2542,15 +2547,6 @@ export const creditAdjustment = z
|
|
|
2542
2547
|
labels: labels.optional(),
|
|
2543
2548
|
})
|
|
2544
2549
|
.describe("A credit adjustment can be used to make manual adjustments to a customer's credit balance. Supported use-cases: - Usage correction");
|
|
2545
|
-
export const creditBalance = z
|
|
2546
|
-
.object({
|
|
2547
|
-
currency: billingCurrencyCode,
|
|
2548
|
-
customCurrencyId: ulid.optional(),
|
|
2549
|
-
live: numeric,
|
|
2550
|
-
settled: numeric,
|
|
2551
|
-
pending: numeric,
|
|
2552
|
-
})
|
|
2553
|
-
.describe('The credit balance by currency.');
|
|
2554
2550
|
export const createCreditAdjustmentRequest = z
|
|
2555
2551
|
.object({
|
|
2556
2552
|
name: z
|
|
@@ -2575,34 +2571,6 @@ export const listCreditTransactionsParamsFilter = z
|
|
|
2575
2571
|
featureKey: stringFieldFilter.optional(),
|
|
2576
2572
|
})
|
|
2577
2573
|
.describe('Filter options for listing credit transactions.');
|
|
2578
|
-
export const creditTransaction = z
|
|
2579
|
-
.object({
|
|
2580
|
-
id: ulid,
|
|
2581
|
-
name: z
|
|
2582
|
-
.string()
|
|
2583
|
-
.min(1)
|
|
2584
|
-
.max(256)
|
|
2585
|
-
.describe('Display name of the resource. Between 1 and 256 characters.'),
|
|
2586
|
-
description: z
|
|
2587
|
-
.string()
|
|
2588
|
-
.max(1024)
|
|
2589
|
-
.optional()
|
|
2590
|
-
.describe('Optional description of the resource. Maximum 1024 characters.'),
|
|
2591
|
-
labels: labels.optional(),
|
|
2592
|
-
createdAt: dateTime,
|
|
2593
|
-
bookedAt: dateTime,
|
|
2594
|
-
type: creditTransactionType,
|
|
2595
|
-
currency: billingCurrencyCode,
|
|
2596
|
-
customCurrencyId: ulid.optional(),
|
|
2597
|
-
amount: numeric,
|
|
2598
|
-
availableBalance: z
|
|
2599
|
-
.object({
|
|
2600
|
-
before: numeric,
|
|
2601
|
-
after: numeric,
|
|
2602
|
-
})
|
|
2603
|
-
.describe('The available balance before and after the transaction.'),
|
|
2604
|
-
})
|
|
2605
|
-
.describe("A credit transaction represents a single credit movement on the customer's balance. Credit transactions are immutable.");
|
|
2606
2574
|
export const currencyAmount = z
|
|
2607
2575
|
.object({
|
|
2608
2576
|
amount: numeric,
|
|
@@ -2805,6 +2773,43 @@ export const updateOrganizationDefaultTaxCodesRequest = z
|
|
|
2805
2773
|
creditGrantTaxCode: taxCodeReference.optional(),
|
|
2806
2774
|
})
|
|
2807
2775
|
.describe('OrganizationDefaultTaxCodes update request.');
|
|
2776
|
+
export const creditBalance = z
|
|
2777
|
+
.object({
|
|
2778
|
+
currency: billingCurrencyCode,
|
|
2779
|
+
customCurrency: currencyCustomReference.optional(),
|
|
2780
|
+
live: numeric,
|
|
2781
|
+
settled: numeric,
|
|
2782
|
+
pending: numeric,
|
|
2783
|
+
})
|
|
2784
|
+
.describe('The credit balance by currency.');
|
|
2785
|
+
export const creditTransaction = z
|
|
2786
|
+
.object({
|
|
2787
|
+
id: ulid,
|
|
2788
|
+
name: z
|
|
2789
|
+
.string()
|
|
2790
|
+
.min(1)
|
|
2791
|
+
.max(256)
|
|
2792
|
+
.describe('Display name of the resource. Between 1 and 256 characters.'),
|
|
2793
|
+
description: z
|
|
2794
|
+
.string()
|
|
2795
|
+
.max(1024)
|
|
2796
|
+
.optional()
|
|
2797
|
+
.describe('Optional description of the resource. Maximum 1024 characters.'),
|
|
2798
|
+
labels: labels.optional(),
|
|
2799
|
+
createdAt: dateTime,
|
|
2800
|
+
bookedAt: dateTime,
|
|
2801
|
+
type: creditTransactionType,
|
|
2802
|
+
currency: billingCurrencyCode,
|
|
2803
|
+
customCurrency: currencyCustomReference.optional(),
|
|
2804
|
+
amount: numeric,
|
|
2805
|
+
availableBalance: z
|
|
2806
|
+
.object({
|
|
2807
|
+
before: numeric,
|
|
2808
|
+
after: numeric,
|
|
2809
|
+
})
|
|
2810
|
+
.describe('The available balance before and after the transaction.'),
|
|
2811
|
+
})
|
|
2812
|
+
.describe("A credit transaction represents a single credit movement on the customer's balance. Credit transactions are immutable.");
|
|
2808
2813
|
export const invoiceWorkflowAppsReferences = z
|
|
2809
2814
|
.object({
|
|
2810
2815
|
tax: appReference,
|
|
@@ -3441,18 +3446,6 @@ export const upsertCustomerBillingDataRequest = z
|
|
|
3441
3446
|
appData: appCustomerData.optional(),
|
|
3442
3447
|
})
|
|
3443
3448
|
.describe('CustomerBillingData upsert request.');
|
|
3444
|
-
export const creditBalances = z
|
|
3445
|
-
.object({
|
|
3446
|
-
retrievedAt: dateTime,
|
|
3447
|
-
balances: z.array(creditBalance).describe('The balances by currencies.'),
|
|
3448
|
-
})
|
|
3449
|
-
.describe('The balances of the credits of a customer.');
|
|
3450
|
-
export const creditTransactionPaginatedResponse = z
|
|
3451
|
-
.object({
|
|
3452
|
-
data: z.array(creditTransaction),
|
|
3453
|
-
meta: cursorMeta,
|
|
3454
|
-
})
|
|
3455
|
-
.describe('Cursor paginated response.');
|
|
3456
3449
|
export const chargeFlatFeeSystemIntent = z
|
|
3457
3450
|
.object({
|
|
3458
3451
|
name: z
|
|
@@ -3599,6 +3592,18 @@ export const workflowTaxSettings = z
|
|
|
3599
3592
|
defaultTaxConfig: taxConfig.optional(),
|
|
3600
3593
|
})
|
|
3601
3594
|
.describe('Tax settings for a billing workflow.');
|
|
3595
|
+
export const creditBalances = z
|
|
3596
|
+
.object({
|
|
3597
|
+
retrievedAt: dateTime,
|
|
3598
|
+
balances: z.array(creditBalance).describe('The balances by currencies.'),
|
|
3599
|
+
})
|
|
3600
|
+
.describe('The balances of the credits of a customer.');
|
|
3601
|
+
export const creditTransactionPaginatedResponse = z
|
|
3602
|
+
.object({
|
|
3603
|
+
data: z.array(creditTransaction),
|
|
3604
|
+
meta: cursorMeta,
|
|
3605
|
+
})
|
|
3606
|
+
.describe('Cursor paginated response.');
|
|
3602
3607
|
export const planAddonPagePaginatedResponse = z
|
|
3603
3608
|
.object({
|
|
3604
3609
|
data: z.array(planAddon),
|
|
@@ -7395,6 +7400,11 @@ export const creditGrantInvoiceReferenceWire = z
|
|
|
7395
7400
|
.describe('Identifier of the invoice line associated with the grant.'),
|
|
7396
7401
|
})
|
|
7397
7402
|
.describe('Invoice references for the grant.');
|
|
7403
|
+
export const currencyCustomReferenceWire = z
|
|
7404
|
+
.strictObject({
|
|
7405
|
+
id: ulidWire,
|
|
7406
|
+
})
|
|
7407
|
+
.describe('CurrencyCustom reference.');
|
|
7398
7408
|
export const subscriptionCostBasisPinWire = z
|
|
7399
7409
|
.strictObject({
|
|
7400
7410
|
custom_currency_id: ulidWire,
|
|
@@ -8465,15 +8475,6 @@ export const creditAdjustmentWire = z
|
|
|
8465
8475
|
labels: labelsWire.optional(),
|
|
8466
8476
|
})
|
|
8467
8477
|
.describe("A credit adjustment can be used to make manual adjustments to a customer's credit balance. Supported use-cases: - Usage correction");
|
|
8468
|
-
export const creditBalanceWire = z
|
|
8469
|
-
.strictObject({
|
|
8470
|
-
currency: billingCurrencyCodeWire,
|
|
8471
|
-
custom_currency_id: ulidWire.optional(),
|
|
8472
|
-
live: numericWire,
|
|
8473
|
-
settled: numericWire,
|
|
8474
|
-
pending: numericWire,
|
|
8475
|
-
})
|
|
8476
|
-
.describe('The credit balance by currency.');
|
|
8477
8478
|
export const createCreditAdjustmentRequestWire = z
|
|
8478
8479
|
.strictObject({
|
|
8479
8480
|
name: z
|
|
@@ -8498,34 +8499,6 @@ export const listCreditTransactionsParamsFilterWire = z
|
|
|
8498
8499
|
feature_key: stringFieldFilterWire.optional(),
|
|
8499
8500
|
})
|
|
8500
8501
|
.describe('Filter options for listing credit transactions.');
|
|
8501
|
-
export const creditTransactionWire = z
|
|
8502
|
-
.strictObject({
|
|
8503
|
-
id: ulidWire,
|
|
8504
|
-
name: z
|
|
8505
|
-
.string()
|
|
8506
|
-
.min(1)
|
|
8507
|
-
.max(256)
|
|
8508
|
-
.describe('Display name of the resource. Between 1 and 256 characters.'),
|
|
8509
|
-
description: z
|
|
8510
|
-
.string()
|
|
8511
|
-
.max(1024)
|
|
8512
|
-
.optional()
|
|
8513
|
-
.describe('Optional description of the resource. Maximum 1024 characters.'),
|
|
8514
|
-
labels: labelsWire.optional(),
|
|
8515
|
-
created_at: dateTimeWire,
|
|
8516
|
-
booked_at: dateTimeWire,
|
|
8517
|
-
type: creditTransactionTypeWire,
|
|
8518
|
-
currency: billingCurrencyCodeWire,
|
|
8519
|
-
custom_currency_id: ulidWire.optional(),
|
|
8520
|
-
amount: numericWire,
|
|
8521
|
-
available_balance: z
|
|
8522
|
-
.strictObject({
|
|
8523
|
-
before: numericWire,
|
|
8524
|
-
after: numericWire,
|
|
8525
|
-
})
|
|
8526
|
-
.describe('The available balance before and after the transaction.'),
|
|
8527
|
-
})
|
|
8528
|
-
.describe("A credit transaction represents a single credit movement on the customer's balance. Credit transactions are immutable.");
|
|
8529
8502
|
export const currencyAmountWire = z
|
|
8530
8503
|
.strictObject({
|
|
8531
8504
|
amount: numericWire,
|
|
@@ -8728,6 +8701,43 @@ export const updateOrganizationDefaultTaxCodesRequestWire = z
|
|
|
8728
8701
|
credit_grant_tax_code: taxCodeReferenceWire.optional(),
|
|
8729
8702
|
})
|
|
8730
8703
|
.describe('OrganizationDefaultTaxCodes update request.');
|
|
8704
|
+
export const creditBalanceWire = z
|
|
8705
|
+
.strictObject({
|
|
8706
|
+
currency: billingCurrencyCodeWire,
|
|
8707
|
+
custom_currency: currencyCustomReferenceWire.optional(),
|
|
8708
|
+
live: numericWire,
|
|
8709
|
+
settled: numericWire,
|
|
8710
|
+
pending: numericWire,
|
|
8711
|
+
})
|
|
8712
|
+
.describe('The credit balance by currency.');
|
|
8713
|
+
export const creditTransactionWire = z
|
|
8714
|
+
.strictObject({
|
|
8715
|
+
id: ulidWire,
|
|
8716
|
+
name: z
|
|
8717
|
+
.string()
|
|
8718
|
+
.min(1)
|
|
8719
|
+
.max(256)
|
|
8720
|
+
.describe('Display name of the resource. Between 1 and 256 characters.'),
|
|
8721
|
+
description: z
|
|
8722
|
+
.string()
|
|
8723
|
+
.max(1024)
|
|
8724
|
+
.optional()
|
|
8725
|
+
.describe('Optional description of the resource. Maximum 1024 characters.'),
|
|
8726
|
+
labels: labelsWire.optional(),
|
|
8727
|
+
created_at: dateTimeWire,
|
|
8728
|
+
booked_at: dateTimeWire,
|
|
8729
|
+
type: creditTransactionTypeWire,
|
|
8730
|
+
currency: billingCurrencyCodeWire,
|
|
8731
|
+
custom_currency: currencyCustomReferenceWire.optional(),
|
|
8732
|
+
amount: numericWire,
|
|
8733
|
+
available_balance: z
|
|
8734
|
+
.strictObject({
|
|
8735
|
+
before: numericWire,
|
|
8736
|
+
after: numericWire,
|
|
8737
|
+
})
|
|
8738
|
+
.describe('The available balance before and after the transaction.'),
|
|
8739
|
+
})
|
|
8740
|
+
.describe("A credit transaction represents a single credit movement on the customer's balance. Credit transactions are immutable.");
|
|
8731
8741
|
export const invoiceWorkflowAppsReferencesWire = z
|
|
8732
8742
|
.strictObject({
|
|
8733
8743
|
tax: appReferenceWire,
|
|
@@ -9366,20 +9376,6 @@ export const upsertCustomerBillingDataRequestWire = z
|
|
|
9366
9376
|
app_data: appCustomerDataWire.optional(),
|
|
9367
9377
|
})
|
|
9368
9378
|
.describe('CustomerBillingData upsert request.');
|
|
9369
|
-
export const creditBalancesWire = z
|
|
9370
|
-
.strictObject({
|
|
9371
|
-
retrieved_at: dateTimeWire,
|
|
9372
|
-
balances: z
|
|
9373
|
-
.array(creditBalanceWire)
|
|
9374
|
-
.describe('The balances by currencies.'),
|
|
9375
|
-
})
|
|
9376
|
-
.describe('The balances of the credits of a customer.');
|
|
9377
|
-
export const creditTransactionPaginatedResponseWire = z
|
|
9378
|
-
.strictObject({
|
|
9379
|
-
data: z.array(creditTransactionWire),
|
|
9380
|
-
meta: cursorMetaWire,
|
|
9381
|
-
})
|
|
9382
|
-
.describe('Cursor paginated response.');
|
|
9383
9379
|
export const chargeFlatFeeSystemIntentWire = z
|
|
9384
9380
|
.strictObject({
|
|
9385
9381
|
name: z
|
|
@@ -9523,6 +9519,20 @@ export const workflowTaxSettingsWire = z
|
|
|
9523
9519
|
default_tax_config: taxConfigWire.optional(),
|
|
9524
9520
|
})
|
|
9525
9521
|
.describe('Tax settings for a billing workflow.');
|
|
9522
|
+
export const creditBalancesWire = z
|
|
9523
|
+
.strictObject({
|
|
9524
|
+
retrieved_at: dateTimeWire,
|
|
9525
|
+
balances: z
|
|
9526
|
+
.array(creditBalanceWire)
|
|
9527
|
+
.describe('The balances by currencies.'),
|
|
9528
|
+
})
|
|
9529
|
+
.describe('The balances of the credits of a customer.');
|
|
9530
|
+
export const creditTransactionPaginatedResponseWire = z
|
|
9531
|
+
.strictObject({
|
|
9532
|
+
data: z.array(creditTransactionWire),
|
|
9533
|
+
meta: cursorMetaWire,
|
|
9534
|
+
})
|
|
9535
|
+
.describe('Cursor paginated response.');
|
|
9526
9536
|
export const planAddonPagePaginatedResponseWire = z
|
|
9527
9537
|
.strictObject({
|
|
9528
9538
|
data: z.array(planAddonWire),
|
package/dist/models/types.d.ts
CHANGED
|
@@ -908,6 +908,10 @@ export interface CreditGrantInvoiceReference {
|
|
|
908
908
|
id: string;
|
|
909
909
|
};
|
|
910
910
|
}
|
|
911
|
+
/** CurrencyCustom reference. */
|
|
912
|
+
export interface CurrencyCustomReference {
|
|
913
|
+
id: string;
|
|
914
|
+
}
|
|
911
915
|
/** A cost basis pinned to a custom-currency pair for the subscription. */
|
|
912
916
|
export interface SubscriptionCostBasisPin {
|
|
913
917
|
/** The managed custom currency ID. */
|
|
@@ -2254,26 +2258,6 @@ export interface CreditAdjustment {
|
|
|
2254
2258
|
description?: string;
|
|
2255
2259
|
labels?: Labels;
|
|
2256
2260
|
}
|
|
2257
|
-
/** The credit balance by currency. */
|
|
2258
|
-
export interface CreditBalance {
|
|
2259
|
-
currency: BillingCurrencyCode;
|
|
2260
|
-
/** Immutable managed currency identifier. Present only for custom currencies. */
|
|
2261
|
-
customCurrencyId?: string;
|
|
2262
|
-
/**
|
|
2263
|
-
* Credits available after applying currently live charge impacts.
|
|
2264
|
-
*
|
|
2265
|
-
* Always zero for historical balance queries using the `timestamp` parameter
|
|
2266
|
-
* because live charge impacts cannot be reconstructed historically.
|
|
2267
|
-
*/
|
|
2268
|
-
live: string;
|
|
2269
|
-
/** Credits that have been booked on the ledger as of the balance timestamp. */
|
|
2270
|
-
settled: string;
|
|
2271
|
-
/**
|
|
2272
|
-
* Credits that have been granted but are not yet written to the ledger, or are
|
|
2273
|
-
* written to the ledger with a future booked time.
|
|
2274
|
-
*/
|
|
2275
|
-
pending: string;
|
|
2276
|
-
}
|
|
2277
2261
|
/** CreditAdjustment create request. */
|
|
2278
2262
|
export interface CreateCreditAdjustmentRequest {
|
|
2279
2263
|
/**
|
|
@@ -2310,48 +2294,6 @@ export interface ListCreditTransactionsParamsFilter {
|
|
|
2310
2294
|
*/
|
|
2311
2295
|
featureKey?: StringFieldFilter;
|
|
2312
2296
|
}
|
|
2313
|
-
/**
|
|
2314
|
-
* A credit transaction represents a single credit movement on the customer's
|
|
2315
|
-
* balance.
|
|
2316
|
-
*
|
|
2317
|
-
* Credit transactions are immutable.
|
|
2318
|
-
*/
|
|
2319
|
-
export interface CreditTransaction {
|
|
2320
|
-
id: string;
|
|
2321
|
-
/**
|
|
2322
|
-
* Display name of the resource.
|
|
2323
|
-
*
|
|
2324
|
-
* Between 1 and 256 characters.
|
|
2325
|
-
*/
|
|
2326
|
-
name: string;
|
|
2327
|
-
/**
|
|
2328
|
-
* Optional description of the resource.
|
|
2329
|
-
*
|
|
2330
|
-
* Maximum 1024 characters.
|
|
2331
|
-
*/
|
|
2332
|
-
description?: string;
|
|
2333
|
-
labels?: Labels;
|
|
2334
|
-
/** An ISO-8601 timestamp representation of entity creation date. */
|
|
2335
|
-
createdAt: Date;
|
|
2336
|
-
/** The date and time the transaction was booked. */
|
|
2337
|
-
bookedAt: Date;
|
|
2338
|
-
/** The type of credit transaction. */
|
|
2339
|
-
type: 'funded' | 'consumed' | 'expired' | 'voided';
|
|
2340
|
-
/** Currency of the balance affected by the transaction. */
|
|
2341
|
-
currency: BillingCurrencyCode;
|
|
2342
|
-
/** Immutable managed currency identifier. Present only for custom currencies. */
|
|
2343
|
-
customCurrencyId?: string;
|
|
2344
|
-
/**
|
|
2345
|
-
* Signed amount of the credit movement. Positive values add balance, negative
|
|
2346
|
-
* values reduce balance.
|
|
2347
|
-
*/
|
|
2348
|
-
amount: string;
|
|
2349
|
-
/** The available balance before and after the transaction. */
|
|
2350
|
-
availableBalance: {
|
|
2351
|
-
before: string;
|
|
2352
|
-
after: string;
|
|
2353
|
-
};
|
|
2354
|
-
}
|
|
2355
2297
|
/** Monetary amount in a fiat or custom currency. */
|
|
2356
2298
|
export interface CurrencyAmount {
|
|
2357
2299
|
/** The amount as an arbitrary-precision decimal string. */
|
|
@@ -2667,6 +2609,68 @@ export interface UpdateOrganizationDefaultTaxCodesRequest {
|
|
|
2667
2609
|
/** Default tax code for credit grants. */
|
|
2668
2610
|
creditGrantTaxCode?: TaxCodeReference;
|
|
2669
2611
|
}
|
|
2612
|
+
/** The credit balance by currency. */
|
|
2613
|
+
export interface CreditBalance {
|
|
2614
|
+
currency: BillingCurrencyCode;
|
|
2615
|
+
/** Managed currency reference. Present only for custom currencies. */
|
|
2616
|
+
customCurrency?: CurrencyCustomReference;
|
|
2617
|
+
/**
|
|
2618
|
+
* Credits available after applying currently live charge impacts.
|
|
2619
|
+
*
|
|
2620
|
+
* Always zero for historical balance queries using the `timestamp` parameter
|
|
2621
|
+
* because live charge impacts cannot be reconstructed historically.
|
|
2622
|
+
*/
|
|
2623
|
+
live: string;
|
|
2624
|
+
/** Credits that have been booked on the ledger as of the balance timestamp. */
|
|
2625
|
+
settled: string;
|
|
2626
|
+
/**
|
|
2627
|
+
* Credits that have been granted but are not yet written to the ledger, or are
|
|
2628
|
+
* written to the ledger with a future booked time.
|
|
2629
|
+
*/
|
|
2630
|
+
pending: string;
|
|
2631
|
+
}
|
|
2632
|
+
/**
|
|
2633
|
+
* A credit transaction represents a single credit movement on the customer's
|
|
2634
|
+
* balance.
|
|
2635
|
+
*
|
|
2636
|
+
* Credit transactions are immutable.
|
|
2637
|
+
*/
|
|
2638
|
+
export interface CreditTransaction {
|
|
2639
|
+
id: string;
|
|
2640
|
+
/**
|
|
2641
|
+
* Display name of the resource.
|
|
2642
|
+
*
|
|
2643
|
+
* Between 1 and 256 characters.
|
|
2644
|
+
*/
|
|
2645
|
+
name: string;
|
|
2646
|
+
/**
|
|
2647
|
+
* Optional description of the resource.
|
|
2648
|
+
*
|
|
2649
|
+
* Maximum 1024 characters.
|
|
2650
|
+
*/
|
|
2651
|
+
description?: string;
|
|
2652
|
+
labels?: Labels;
|
|
2653
|
+
/** An ISO-8601 timestamp representation of entity creation date. */
|
|
2654
|
+
createdAt: Date;
|
|
2655
|
+
/** The date and time the transaction was booked. */
|
|
2656
|
+
bookedAt: Date;
|
|
2657
|
+
/** The type of credit transaction. */
|
|
2658
|
+
type: 'funded' | 'consumed' | 'expired' | 'voided';
|
|
2659
|
+
/** Currency of the balance affected by the transaction. */
|
|
2660
|
+
currency: BillingCurrencyCode;
|
|
2661
|
+
/** Managed currency reference. Present only for custom currencies. */
|
|
2662
|
+
customCurrency?: CurrencyCustomReference;
|
|
2663
|
+
/**
|
|
2664
|
+
* Signed amount of the credit movement. Positive values add balance, negative
|
|
2665
|
+
* values reduce balance.
|
|
2666
|
+
*/
|
|
2667
|
+
amount: string;
|
|
2668
|
+
/** The available balance before and after the transaction. */
|
|
2669
|
+
availableBalance: {
|
|
2670
|
+
before: string;
|
|
2671
|
+
after: string;
|
|
2672
|
+
};
|
|
2673
|
+
}
|
|
2670
2674
|
/**
|
|
2671
2675
|
* BillingInvoiceWorkflowAppsReferences represents the references (id) to the apps
|
|
2672
2676
|
* used by a billing profile
|
|
@@ -3511,18 +3515,6 @@ export interface UpsertCustomerBillingDataRequest {
|
|
|
3511
3515
|
/** App customer data. */
|
|
3512
3516
|
appData?: AppCustomerData;
|
|
3513
3517
|
}
|
|
3514
|
-
/** The balances of the credits of a customer. */
|
|
3515
|
-
export interface CreditBalances {
|
|
3516
|
-
/** The timestamp of the balance retrieval. */
|
|
3517
|
-
retrievedAt: Date;
|
|
3518
|
-
/** The balances by currencies. */
|
|
3519
|
-
balances: CreditBalance[];
|
|
3520
|
-
}
|
|
3521
|
-
/** Cursor paginated response. */
|
|
3522
|
-
export interface CreditTransactionPaginatedResponse {
|
|
3523
|
-
data: CreditTransaction[];
|
|
3524
|
-
meta: CursorMeta;
|
|
3525
|
-
}
|
|
3526
3518
|
/**
|
|
3527
3519
|
* Flat fee intent fields from the system lifecycle controller shadowed by a manual
|
|
3528
3520
|
* override.
|
|
@@ -3788,6 +3780,18 @@ export interface WorkflowTaxSettings {
|
|
|
3788
3780
|
*/
|
|
3789
3781
|
defaultTaxConfig?: TaxConfig;
|
|
3790
3782
|
}
|
|
3783
|
+
/** The balances of the credits of a customer. */
|
|
3784
|
+
export interface CreditBalances {
|
|
3785
|
+
/** The timestamp of the balance retrieval. */
|
|
3786
|
+
retrievedAt: Date;
|
|
3787
|
+
/** The balances by currencies. */
|
|
3788
|
+
balances: CreditBalance[];
|
|
3789
|
+
}
|
|
3790
|
+
/** Cursor paginated response. */
|
|
3791
|
+
export interface CreditTransactionPaginatedResponse {
|
|
3792
|
+
data: CreditTransaction[];
|
|
3793
|
+
meta: CursorMeta;
|
|
3794
|
+
}
|
|
3791
3795
|
/** Page paginated response. */
|
|
3792
3796
|
export interface PlanAddonPagePaginatedResponse {
|
|
3793
3797
|
data: PlanAddon[];
|
package/dist/sdk/apps.d.ts
CHANGED
|
@@ -1,9 +1,28 @@
|
|
|
1
1
|
import { type Client } from '../core.js';
|
|
2
2
|
import { type RequestOptions } from '../lib/types.js';
|
|
3
|
-
import type { GetAppRequest, GetAppResponse } from '../models/operations/apps.js';
|
|
3
|
+
import type { ListAppsRequest, ListAppsResponse, GetAppRequest, GetAppResponse } from '../models/operations/apps.js';
|
|
4
|
+
import type { App } from '../models/types.js';
|
|
4
5
|
export declare class Apps {
|
|
5
6
|
private readonly _client;
|
|
6
7
|
constructor(_client: Client);
|
|
8
|
+
/**
|
|
9
|
+
* List apps
|
|
10
|
+
*
|
|
11
|
+
* List installed apps.
|
|
12
|
+
*
|
|
13
|
+
* GET /openmeter/apps
|
|
14
|
+
*/
|
|
15
|
+
list(request?: ListAppsRequest, options?: RequestOptions): Promise<ListAppsResponse>;
|
|
16
|
+
/**
|
|
17
|
+
* List apps
|
|
18
|
+
*
|
|
19
|
+
* List installed apps.
|
|
20
|
+
*
|
|
21
|
+
* Iterates every item across all pages, fetching more as the returned iterable is consumed.
|
|
22
|
+
*
|
|
23
|
+
* GET /openmeter/apps
|
|
24
|
+
*/
|
|
25
|
+
listAll(request?: ListAppsRequest, options?: RequestOptions): AsyncIterable<App>;
|
|
7
26
|
/**
|
|
8
27
|
* Get app
|
|
9
28
|
*
|
package/dist/sdk/apps.js
CHANGED
|
@@ -1,11 +1,34 @@
|
|
|
1
1
|
// Code generated by @openmeter/typespec-typescript. DO NOT EDIT.
|
|
2
2
|
import { unwrap } from '../lib/types.js';
|
|
3
|
-
import {
|
|
3
|
+
import { paginatePages } from '../lib/paginate.js';
|
|
4
|
+
import { listApps, getApp } from '../funcs/apps.js';
|
|
4
5
|
export class Apps {
|
|
5
6
|
_client;
|
|
6
7
|
constructor(_client) {
|
|
7
8
|
this._client = _client;
|
|
8
9
|
}
|
|
10
|
+
/**
|
|
11
|
+
* List apps
|
|
12
|
+
*
|
|
13
|
+
* List installed apps.
|
|
14
|
+
*
|
|
15
|
+
* GET /openmeter/apps
|
|
16
|
+
*/
|
|
17
|
+
async list(request, options) {
|
|
18
|
+
return unwrap(await listApps(this._client, request, options));
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* List apps
|
|
22
|
+
*
|
|
23
|
+
* List installed apps.
|
|
24
|
+
*
|
|
25
|
+
* Iterates every item across all pages, fetching more as the returned iterable is consumed.
|
|
26
|
+
*
|
|
27
|
+
* GET /openmeter/apps
|
|
28
|
+
*/
|
|
29
|
+
listAll(request, options) {
|
|
30
|
+
return paginatePages((req, opts) => listApps(this._client, req, opts), request ?? {}, options);
|
|
31
|
+
}
|
|
9
32
|
/**
|
|
10
33
|
* Get app
|
|
11
34
|
*
|
package/dist/sdk/internal.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { type Client } from '../core.js';
|
|
2
2
|
import { type RequestOptions } from '../lib/types.js';
|
|
3
3
|
import type { VoidCreditGrantRequest, VoidCreditGrantResponse, ListCustomerChargesRequest, ListCustomerChargesResponse, CreateCustomerChargesRequest, CreateCustomerChargesResponse } from '../models/operations/customers.js';
|
|
4
|
-
import type { UnscheduleSubscriptionRequest, UnscheduleSubscriptionResponse, RestoreSubscriptionRequest, RestoreSubscriptionResponse, MigrateSubscriptionRequest, MigrateSubscriptionResponse, UpdateSubscriptionAddonRequest, UpdateSubscriptionAddonResponse } from '../models/operations/subscriptions.js';
|
|
5
|
-
import type {
|
|
4
|
+
import type { UnscheduleSubscriptionRequest, UnscheduleSubscriptionResponse, RestoreSubscriptionRequest, RestoreSubscriptionResponse, MigrateSubscriptionRequest, MigrateSubscriptionResponse, CreateSubscriptionAddonRequest, CreateSubscriptionAddonResponse, UpdateSubscriptionAddonRequest, UpdateSubscriptionAddonResponse } from '../models/operations/subscriptions.js';
|
|
5
|
+
import type { UninstallAppRequest, UninstallAppResponse, UpdateAppRequest, UpdateAppResponse, ListAppCatalogRequest, ListAppCatalogResponse, GetAppCatalogItemRequest, GetAppCatalogItemResponse, InstallAppRequest, InstallAppResponse } from '../models/operations/apps.js';
|
|
6
6
|
import type { ListInvoicesRequest, ListInvoicesResponse, GetInvoiceRequest, GetInvoiceResponse, UpdateInvoiceRequest, UpdateInvoiceResponse, DeleteInvoiceRequest, DeleteInvoiceResponse, AdvanceInvoiceRequest, AdvanceInvoiceResponse, ApproveInvoiceRequest, ApproveInvoiceResponse, RetryInvoiceRequest, RetryInvoiceResponse, SnapshotQuantitiesInvoiceRequest, SnapshotQuantitiesInvoiceResponse } from '../models/operations/invoices.js';
|
|
7
7
|
import type { ListChargesRequest, ListChargesResponse } from '../models/operations/charges.js';
|
|
8
8
|
import type { ListCurrenciesRequest, ListCurrenciesResponse, CreateCustomCurrencyRequest, CreateCustomCurrencyResponse, GetCustomCurrencyRequest, GetCustomCurrencyResponse, ListCostBasesRequest, ListCostBasesResponse, CreateCostBasisRequest, CreateCostBasisResponse } from '../models/operations/currencies.js';
|
|
9
9
|
import type { ListPlanAddonsRequest, ListPlanAddonsResponse } from '../models/operations/planAddons.js';
|
|
10
10
|
import type { QueryEntitlementAccessRequest, QueryEntitlementAccessResponse } from '../models/operations/entitlementAccess.js';
|
|
11
|
-
import type {
|
|
11
|
+
import type { AppCatalogItem, Charge, CostBasis, Currency, Invoice, PlanAddon } from '../models/types.js';
|
|
12
12
|
/**
|
|
13
13
|
* Operations marked internal in the API definition. They are not part of
|
|
14
14
|
* the customer surface: they may require additional permissions, and they
|
|
@@ -145,6 +145,14 @@ export declare class InternalSubscriptions {
|
|
|
145
145
|
* POST /openmeter/subscriptions/{subscriptionId}/migrate
|
|
146
146
|
*/
|
|
147
147
|
migrate(request: MigrateSubscriptionRequest, options?: RequestOptions): Promise<MigrateSubscriptionResponse>;
|
|
148
|
+
/**
|
|
149
|
+
* Create a new subscription add-on
|
|
150
|
+
*
|
|
151
|
+
* Add add-on to a subscription.
|
|
152
|
+
*
|
|
153
|
+
* POST /openmeter/subscriptions/{subscriptionId}/addons
|
|
154
|
+
*/
|
|
155
|
+
createAddon(request: CreateSubscriptionAddonRequest, options?: RequestOptions): Promise<CreateSubscriptionAddonResponse>;
|
|
148
156
|
/**
|
|
149
157
|
* Update subscription addon
|
|
150
158
|
*
|
|
@@ -159,24 +167,6 @@ export declare class InternalSubscriptions {
|
|
|
159
167
|
export declare class InternalApps {
|
|
160
168
|
private readonly _client;
|
|
161
169
|
constructor(_client: Client);
|
|
162
|
-
/**
|
|
163
|
-
* List apps
|
|
164
|
-
*
|
|
165
|
-
* List installed apps.
|
|
166
|
-
*
|
|
167
|
-
* GET /openmeter/apps
|
|
168
|
-
*/
|
|
169
|
-
list(request?: ListAppsRequest, options?: RequestOptions): Promise<ListAppsResponse>;
|
|
170
|
-
/**
|
|
171
|
-
* List apps
|
|
172
|
-
*
|
|
173
|
-
* List installed apps.
|
|
174
|
-
*
|
|
175
|
-
* Iterates every item across all pages, fetching more as the returned iterable is consumed.
|
|
176
|
-
*
|
|
177
|
-
* GET /openmeter/apps
|
|
178
|
-
*/
|
|
179
|
-
listAll(request?: ListAppsRequest, options?: RequestOptions): AsyncIterable<App>;
|
|
180
170
|
/**
|
|
181
171
|
* Uninstall app
|
|
182
172
|
*
|
package/dist/sdk/internal.js
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import { unwrap } from '../lib/types.js';
|
|
3
3
|
import { paginatePages } from '../lib/paginate.js';
|
|
4
4
|
import { voidCreditGrant, listCustomerCharges, createCustomerCharges, } from '../funcs/customers.js';
|
|
5
|
-
import { unscheduleSubscription, restoreSubscription, migrateSubscription, updateSubscriptionAddon, } from '../funcs/subscriptions.js';
|
|
6
|
-
import {
|
|
5
|
+
import { unscheduleSubscription, restoreSubscription, migrateSubscription, createSubscriptionAddon, updateSubscriptionAddon, } from '../funcs/subscriptions.js';
|
|
6
|
+
import { uninstallApp, updateApp, listAppCatalog, getAppCatalogItem, installApp, } from '../funcs/apps.js';
|
|
7
7
|
import { listInvoices, getInvoice, updateInvoice, deleteInvoice, advanceInvoice, approveInvoice, retryInvoice, snapshotQuantitiesInvoice, } from '../funcs/invoices.js';
|
|
8
8
|
import { listCharges } from '../funcs/charges.js';
|
|
9
9
|
import { listCurrencies, createCustomCurrency, getCustomCurrency, listCostBases, createCostBasis, } from '../funcs/currencies.js';
|
|
@@ -193,6 +193,16 @@ export class InternalSubscriptions {
|
|
|
193
193
|
async migrate(request, options) {
|
|
194
194
|
return unwrap(await migrateSubscription(this._client, request, options));
|
|
195
195
|
}
|
|
196
|
+
/**
|
|
197
|
+
* Create a new subscription add-on
|
|
198
|
+
*
|
|
199
|
+
* Add add-on to a subscription.
|
|
200
|
+
*
|
|
201
|
+
* POST /openmeter/subscriptions/{subscriptionId}/addons
|
|
202
|
+
*/
|
|
203
|
+
async createAddon(request, options) {
|
|
204
|
+
return unwrap(await createSubscriptionAddon(this._client, request, options));
|
|
205
|
+
}
|
|
196
206
|
/**
|
|
197
207
|
* Update subscription addon
|
|
198
208
|
*
|
|
@@ -211,28 +221,6 @@ export class InternalApps {
|
|
|
211
221
|
constructor(_client) {
|
|
212
222
|
this._client = _client;
|
|
213
223
|
}
|
|
214
|
-
/**
|
|
215
|
-
* List apps
|
|
216
|
-
*
|
|
217
|
-
* List installed apps.
|
|
218
|
-
*
|
|
219
|
-
* GET /openmeter/apps
|
|
220
|
-
*/
|
|
221
|
-
async list(request, options) {
|
|
222
|
-
return unwrap(await listApps(this._client, request, options));
|
|
223
|
-
}
|
|
224
|
-
/**
|
|
225
|
-
* List apps
|
|
226
|
-
*
|
|
227
|
-
* List installed apps.
|
|
228
|
-
*
|
|
229
|
-
* Iterates every item across all pages, fetching more as the returned iterable is consumed.
|
|
230
|
-
*
|
|
231
|
-
* GET /openmeter/apps
|
|
232
|
-
*/
|
|
233
|
-
listAll(request, options) {
|
|
234
|
-
return paginatePages((req, opts) => listApps(this._client, req, opts), request ?? {}, options);
|
|
235
|
-
}
|
|
236
224
|
/**
|
|
237
225
|
* Uninstall app
|
|
238
226
|
*
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type Client } from '../core.js';
|
|
2
2
|
import { type RequestOptions } from '../lib/types.js';
|
|
3
|
-
import type { CreateSubscriptionRequest, CreateSubscriptionResponse, ListSubscriptionsRequest, ListSubscriptionsResponse, GetSubscriptionRequest, GetSubscriptionResponse, CancelSubscriptionRequest, CancelSubscriptionResponse, UnscheduleCancelationRequest, UnscheduleCancelationResponse, ChangeSubscriptionRequest, ChangeSubscriptionResponse, EditSubscriptionRequest, EditSubscriptionResponse,
|
|
3
|
+
import type { CreateSubscriptionRequest, CreateSubscriptionResponse, ListSubscriptionsRequest, ListSubscriptionsResponse, GetSubscriptionRequest, GetSubscriptionResponse, CancelSubscriptionRequest, CancelSubscriptionResponse, UnscheduleCancelationRequest, UnscheduleCancelationResponse, ChangeSubscriptionRequest, ChangeSubscriptionResponse, EditSubscriptionRequest, EditSubscriptionResponse, ListSubscriptionAddonsRequest, ListSubscriptionAddonsResponse, GetSubscriptionAddonRequest, GetSubscriptionAddonResponse } from '../models/operations/subscriptions.js';
|
|
4
4
|
import type { Subscription, SubscriptionAddon } from '../models/types.js';
|
|
5
5
|
export declare class Subscriptions {
|
|
6
6
|
private readonly _client;
|
|
@@ -68,14 +68,6 @@ export declare class Subscriptions {
|
|
|
68
68
|
* POST /openmeter/subscriptions/{subscriptionId}/edit
|
|
69
69
|
*/
|
|
70
70
|
edit(request: EditSubscriptionRequest, options?: RequestOptions): Promise<EditSubscriptionResponse>;
|
|
71
|
-
/**
|
|
72
|
-
* Create a new subscription add-on
|
|
73
|
-
*
|
|
74
|
-
* Add add-on to a subscription.
|
|
75
|
-
*
|
|
76
|
-
* POST /openmeter/subscriptions/{subscriptionId}/addons
|
|
77
|
-
*/
|
|
78
|
-
createAddon(request: CreateSubscriptionAddonRequest, options?: RequestOptions): Promise<CreateSubscriptionAddonResponse>;
|
|
79
71
|
/**
|
|
80
72
|
* List subscription addons
|
|
81
73
|
*
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Code generated by @openmeter/typespec-typescript. DO NOT EDIT.
|
|
2
2
|
import { unwrap } from '../lib/types.js';
|
|
3
3
|
import { paginatePages } from '../lib/paginate.js';
|
|
4
|
-
import { createSubscription, listSubscriptions, getSubscription, cancelSubscription, unscheduleCancelation, changeSubscription, editSubscription,
|
|
4
|
+
import { createSubscription, listSubscriptions, getSubscription, cancelSubscription, unscheduleCancelation, changeSubscription, editSubscription, listSubscriptionAddons, getSubscriptionAddon, } from '../funcs/subscriptions.js';
|
|
5
5
|
export class Subscriptions {
|
|
6
6
|
_client;
|
|
7
7
|
constructor(_client) {
|
|
@@ -86,16 +86,6 @@ export class Subscriptions {
|
|
|
86
86
|
async edit(request, options) {
|
|
87
87
|
return unwrap(await editSubscription(this._client, request, options));
|
|
88
88
|
}
|
|
89
|
-
/**
|
|
90
|
-
* Create a new subscription add-on
|
|
91
|
-
*
|
|
92
|
-
* Add add-on to a subscription.
|
|
93
|
-
*
|
|
94
|
-
* POST /openmeter/subscriptions/{subscriptionId}/addons
|
|
95
|
-
*/
|
|
96
|
-
async createAddon(request, options) {
|
|
97
|
-
return unwrap(await createSubscriptionAddon(this._client, request, options));
|
|
98
|
-
}
|
|
99
89
|
/**
|
|
100
90
|
* List subscription addons
|
|
101
91
|
*
|