@openmeter/client 1.0.0-beta-2ef5b869426e → 1.0.0-beta-d19fcbe4d82c
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 +4 -4
- package/dist/funcs/apps.js +7 -2
- 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/operations/apps.d.ts +17 -1
- package/dist/models/schemas.d.ts +133 -0
- package/dist/models/schemas.js +27 -0
- package/dist/models/types.d.ts +19 -2
- package/dist/sdk/apps.d.ts +1 -20
- package/dist/sdk/apps.js +1 -24
- package/dist/sdk/internal.d.ts +20 -2
- package/dist/sdk/internal.js +23 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -324,10 +324,9 @@ The full call path, HTTP route, and a short description are listed below.
|
|
|
324
324
|
|
|
325
325
|
### Apps
|
|
326
326
|
|
|
327
|
-
| Method
|
|
328
|
-
|
|
|
329
|
-
| `client.apps.
|
|
330
|
-
| `client.apps.get` | `GET /openmeter/apps/{appId}` | Get an installed app. |
|
|
327
|
+
| Method | HTTP | Description |
|
|
328
|
+
| ----------------- | ----------------------------- | --------------------- |
|
|
329
|
+
| `client.apps.get` | `GET /openmeter/apps/{appId}` | Get an installed app. |
|
|
331
330
|
|
|
332
331
|
### Billing
|
|
333
332
|
|
|
@@ -435,6 +434,7 @@ they can change or be removed without notice or semver consideration.
|
|
|
435
434
|
|
|
436
435
|
| Method | HTTP | Description |
|
|
437
436
|
| ------------------------------------- | -------------------------------------- | -------------------------------- |
|
|
437
|
+
| `client.internal.apps.list` | `GET /openmeter/apps` | List installed apps. |
|
|
438
438
|
| `client.internal.apps.uninstall` | `DELETE /openmeter/apps/{appId}` | Uninstall an app by ID. |
|
|
439
439
|
| `client.internal.apps.update` | `PUT /openmeter/apps/{appId}` | Update an installed app. |
|
|
440
440
|
| `client.internal.apps.listCatalog` | `GET /openmeter/app-catalog` | List available apps. |
|
package/dist/funcs/apps.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// Code generated by @openmeter/typespec-typescript. DO NOT EDIT.
|
|
2
2
|
import { http } from '../core.js';
|
|
3
3
|
import { request } from '../lib/request.js';
|
|
4
|
-
import { toURLSearchParams } from '../lib/encodings.js';
|
|
5
|
-
import { toWire, toPathWire, fromWire, assertValid } from '../lib/wire.js';
|
|
4
|
+
import { toURLSearchParams, encodeSort } from '../lib/encodings.js';
|
|
5
|
+
import { toWire, toPathWire, fromWire, assertValid, toSnakeCase, } from '../lib/wire.js';
|
|
6
6
|
import * as schemas from '../models/schemas.js';
|
|
7
7
|
/**
|
|
8
8
|
* List apps
|
|
@@ -13,8 +13,13 @@ import * as schemas from '../models/schemas.js';
|
|
|
13
13
|
*/
|
|
14
14
|
export function listApps(client, req = {}, options) {
|
|
15
15
|
return request(() => {
|
|
16
|
+
if (client._options.validate && req.sort !== undefined) {
|
|
17
|
+
assertValid(schemas.listAppsQueryParams.shape.sort, req.sort);
|
|
18
|
+
}
|
|
16
19
|
const query = toWire({
|
|
17
20
|
page: req.page,
|
|
21
|
+
sort: encodeSort(req.sort, toSnakeCase),
|
|
22
|
+
filter: req.filter,
|
|
18
23
|
}, schemas.listAppsQueryParams);
|
|
19
24
|
if (client._options.validate) {
|
|
20
25
|
assertValid(schemas.listAppsQueryParamsWire, query);
|
package/dist/index.d.ts
CHANGED
|
@@ -41,4 +41,4 @@ export type * from './models/operations/addons.js';
|
|
|
41
41
|
export type * from './models/operations/planAddons.js';
|
|
42
42
|
export type * from './models/operations/defaults.js';
|
|
43
43
|
export type * from './models/operations/entitlementAccess.js';
|
|
44
|
-
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, 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, EntitlementAccessResult, 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, PriceTier, ChargeTotals, FeatureLlmUnitCost, UpdatePriceTier, LlmCostPrice, LlmCostOverrideCreate, ListCustomersParamsFilter, ListSubscriptionsParamsFilter, ListFeatureParamsFilter, ListAddonsParamsFilter, ListPlanAddonsParamsFilter, CreateCreditGrantTaxConfig, CreditGrantTaxConfig, RateCardTaxConfig, TaxConfig, OrganizationDefaultTaxCodes, InvoiceWorkflowAppsReferences, ProfileAppReferences, PlanAddon, UpdateRateCardTaxConfig, ListEventsParamsFilter, ListChargesParamsFilter, ListInvoicesParamsFilter, ResourceFilters, FieldFilters, IngestedEvent, MeterQueryResult, ChargeRealizationDetailedLineFlatFee, ChargeRealizationDetailedLineUsageBased, CurrencyCustom, FeatureCostQueryResult, MeterPagePaginatedResponse, CostBasisPagePaginatedResponse, MeterQueryFilters, FeatureMeterReference, Customer, PartyAddresses, InvoiceCustomer, UpdateBillingPartyAddresses, UpdateInvoiceCustomer, AppStripeCreateCheckoutSessionConsentCollection, ListCustomerEntitlementAccessResponseData, SubscriptionEditAddPhase, WorkflowCollectionAlignmentAnchored, InvoiceStatusDetails, InvoiceWorkflow, SubscriptionCancel, TaxCode, AppCatalogItem, InvoiceLineDiscounts, UpdateBillingInvoiceWorkflow, EntitlementFeatureAccess, CustomerData, UpsertCustomerBillingDataRequest, CreditBalances, CreditTransactionPaginatedResponse, ChargeFlatFeeSystemIntent, 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, ChargeFlatFee, ChargeUsageBased, InvoicePagePaginatedResponse, ChargePagePaginatedResponse, StringFieldFilter, MeterAggregation, MeterQueryGranularity, StringFieldFilterExact, PricePaymentTerm, BillingCurrencyCode, CreateCurrencyCode, UlidFieldFilter, DateTimeFieldFilter, WorkflowPaymentSettings, 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, InvoiceWorkflowInput, SubscriptionCancelInput, 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, ChargeFlatFeeInput, ChargeUsageBasedInput, InvoicePagePaginatedResponseInput, ChargePagePaginatedResponseInput, WorkflowPaymentSettingsInput, UpdateBillingWorkflowPaymentSettingsInput, RateCardEntitlementInput, ChargeRealizationInvoiceOrReferenceInput, CreateChargeRequestInput, SubscriptionEditOperationInput, InvoiceLineInput, SubscriptionOrReferenceInput, InvoiceInput, UpdateInvoiceRequestInput, ChargeInput, } from './models/types.js';
|
|
44
|
+
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, 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, EntitlementAccessResult, 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, PriceTier, ChargeTotals, FeatureLlmUnitCost, UpdatePriceTier, LlmCostPrice, LlmCostOverrideCreate, ListCustomersParamsFilter, ListSubscriptionsParamsFilter, ListAppsParamsFilter, ListFeatureParamsFilter, ListAddonsParamsFilter, ListPlanAddonsParamsFilter, CreateCreditGrantTaxConfig, CreditGrantTaxConfig, RateCardTaxConfig, TaxConfig, OrganizationDefaultTaxCodes, InvoiceWorkflowAppsReferences, ProfileAppReferences, PlanAddon, UpdateRateCardTaxConfig, ListEventsParamsFilter, ListChargesParamsFilter, ListInvoicesParamsFilter, ResourceFilters, FieldFilters, IngestedEvent, MeterQueryResult, ChargeRealizationDetailedLineFlatFee, ChargeRealizationDetailedLineUsageBased, CurrencyCustom, FeatureCostQueryResult, MeterPagePaginatedResponse, CostBasisPagePaginatedResponse, MeterQueryFilters, FeatureMeterReference, Customer, PartyAddresses, InvoiceCustomer, UpdateBillingPartyAddresses, UpdateInvoiceCustomer, AppStripeCreateCheckoutSessionConsentCollection, ListCustomerEntitlementAccessResponseData, SubscriptionEditAddPhase, WorkflowCollectionAlignmentAnchored, InvoiceStatusDetails, InvoiceWorkflow, SubscriptionCancel, TaxCode, AppCatalogItem, InvoiceLineDiscounts, UpdateBillingInvoiceWorkflow, EntitlementFeatureAccess, CustomerData, UpsertCustomerBillingDataRequest, CreditBalances, CreditTransactionPaginatedResponse, ChargeFlatFeeSystemIntent, 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, ChargeFlatFee, ChargeUsageBased, InvoicePagePaginatedResponse, ChargePagePaginatedResponse, StringFieldFilter, MeterAggregation, MeterQueryGranularity, StringFieldFilterExact, PricePaymentTerm, BillingCurrencyCode, CreateCurrencyCode, UlidFieldFilter, DateTimeFieldFilter, WorkflowPaymentSettings, 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, InvoiceWorkflowInput, SubscriptionCancelInput, 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, 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-d19fcbe4d82c";
|
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-d19fcbe4d82c';
|
|
@@ -1,11 +1,27 @@
|
|
|
1
1
|
import type { AcceptDateStrings } from '../../lib/wire.js';
|
|
2
|
-
import type { App, AppCatalogItem, AppCatalogItemPagePaginatedResponse, AppPagePaginatedResponse, BillingInstallAppResponse, InstallAppRequest as InstallAppRequestBody, UpdateAppRequest as UpdateAppRequestBody } from '../types.js';
|
|
2
|
+
import type { App, AppCatalogItem, AppCatalogItemPagePaginatedResponse, AppPagePaginatedResponse, BillingInstallAppResponse, InstallAppRequest as InstallAppRequestBody, ListAppsParamsFilter, SortQueryInput, UpdateAppRequest as UpdateAppRequestBody } from '../types.js';
|
|
3
3
|
export interface ListAppsQuery {
|
|
4
4
|
/** Determines which page of the collection to retrieve. */
|
|
5
5
|
page?: {
|
|
6
6
|
size?: number;
|
|
7
7
|
number?: number;
|
|
8
8
|
};
|
|
9
|
+
/**
|
|
10
|
+
* Sort apps returned in the response. Supported sort attributes are:
|
|
11
|
+
*
|
|
12
|
+
* - `id`
|
|
13
|
+
* - `created_at` (default)
|
|
14
|
+
*
|
|
15
|
+
* The `asc` suffix is optional as the default sort order is ascending. The `desc`
|
|
16
|
+
* suffix is used to specify a descending order.
|
|
17
|
+
*/
|
|
18
|
+
sort?: SortQueryInput;
|
|
19
|
+
/**
|
|
20
|
+
* Filter apps returned in the response.
|
|
21
|
+
*
|
|
22
|
+
* To filter apps by name add the following query param: filter[name]=my-app
|
|
23
|
+
*/
|
|
24
|
+
filter?: ListAppsParamsFilter;
|
|
9
25
|
}
|
|
10
26
|
export type ListAppsRequest = AcceptDateStrings<ListAppsQuery>;
|
|
11
27
|
export type ListAppsResponse = AppPagePaginatedResponse;
|
package/dist/models/schemas.d.ts
CHANGED
|
@@ -1727,6 +1727,7 @@ export declare const creditAdjustment: z.ZodObject<{
|
|
|
1727
1727
|
}, z.core.$strip>;
|
|
1728
1728
|
export declare const creditBalance: z.ZodObject<{
|
|
1729
1729
|
currency: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
1730
|
+
customCurrencyId: z.ZodOptional<z.ZodString>;
|
|
1730
1731
|
live: z.ZodString;
|
|
1731
1732
|
settled: z.ZodString;
|
|
1732
1733
|
pending: z.ZodString;
|
|
@@ -1773,6 +1774,7 @@ export declare const creditTransaction: z.ZodObject<{
|
|
|
1773
1774
|
voided: "voided";
|
|
1774
1775
|
}>;
|
|
1775
1776
|
currency: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
1777
|
+
customCurrencyId: z.ZodOptional<z.ZodString>;
|
|
1776
1778
|
amount: z.ZodString;
|
|
1777
1779
|
availableBalance: z.ZodObject<{
|
|
1778
1780
|
before: z.ZodString;
|
|
@@ -1987,6 +1989,35 @@ export declare const listSubscriptionsParamsFilter: z.ZodObject<{
|
|
|
1987
1989
|
neq: z.ZodOptional<z.ZodString>;
|
|
1988
1990
|
}, z.core.$strip>]>>;
|
|
1989
1991
|
}, z.core.$strip>;
|
|
1992
|
+
export declare const listAppsParamsFilter: z.ZodObject<{
|
|
1993
|
+
id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
1994
|
+
eq: z.ZodOptional<z.ZodString>;
|
|
1995
|
+
oeq: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1996
|
+
neq: z.ZodOptional<z.ZodString>;
|
|
1997
|
+
}, z.core.$strip>]>>;
|
|
1998
|
+
name: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
1999
|
+
eq: z.ZodOptional<z.ZodString>;
|
|
2000
|
+
neq: z.ZodOptional<z.ZodString>;
|
|
2001
|
+
contains: z.ZodOptional<z.ZodString>;
|
|
2002
|
+
ocontains: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2003
|
+
oeq: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2004
|
+
gt: z.ZodOptional<z.ZodString>;
|
|
2005
|
+
gte: z.ZodOptional<z.ZodString>;
|
|
2006
|
+
lt: z.ZodOptional<z.ZodString>;
|
|
2007
|
+
lte: z.ZodOptional<z.ZodString>;
|
|
2008
|
+
exists: z.ZodOptional<z.ZodBoolean>;
|
|
2009
|
+
}, z.core.$strip>]>>;
|
|
2010
|
+
type: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
2011
|
+
eq: z.ZodOptional<z.ZodString>;
|
|
2012
|
+
oeq: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2013
|
+
neq: z.ZodOptional<z.ZodString>;
|
|
2014
|
+
}, z.core.$strip>]>>;
|
|
2015
|
+
status: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
2016
|
+
eq: z.ZodOptional<z.ZodString>;
|
|
2017
|
+
oeq: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2018
|
+
neq: z.ZodOptional<z.ZodString>;
|
|
2019
|
+
}, z.core.$strip>]>>;
|
|
2020
|
+
}, z.core.$strip>;
|
|
1990
2021
|
export declare const listFeatureParamsFilter: z.ZodObject<{
|
|
1991
2022
|
meterId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
1992
2023
|
eq: z.ZodOptional<z.ZodString>;
|
|
@@ -3240,6 +3271,7 @@ export declare const creditBalances: z.ZodObject<{
|
|
|
3240
3271
|
retrievedAt: z.ZodDate;
|
|
3241
3272
|
balances: z.ZodArray<z.ZodObject<{
|
|
3242
3273
|
currency: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
3274
|
+
customCurrencyId: z.ZodOptional<z.ZodString>;
|
|
3243
3275
|
live: z.ZodString;
|
|
3244
3276
|
settled: z.ZodString;
|
|
3245
3277
|
pending: z.ZodString;
|
|
@@ -3260,6 +3292,7 @@ export declare const creditTransactionPaginatedResponse: z.ZodObject<{
|
|
|
3260
3292
|
voided: "voided";
|
|
3261
3293
|
}>;
|
|
3262
3294
|
currency: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
3295
|
+
customCurrencyId: z.ZodOptional<z.ZodString>;
|
|
3263
3296
|
amount: z.ZodString;
|
|
3264
3297
|
availableBalance: z.ZodObject<{
|
|
3265
3298
|
before: z.ZodString;
|
|
@@ -17782,6 +17815,7 @@ export declare const getCustomerCreditBalanceResponse: z.ZodObject<{
|
|
|
17782
17815
|
retrievedAt: z.ZodDate;
|
|
17783
17816
|
balances: z.ZodArray<z.ZodObject<{
|
|
17784
17817
|
currency: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
17818
|
+
customCurrencyId: z.ZodOptional<z.ZodString>;
|
|
17785
17819
|
live: z.ZodString;
|
|
17786
17820
|
settled: z.ZodString;
|
|
17787
17821
|
pending: z.ZodString;
|
|
@@ -18018,6 +18052,7 @@ export declare const listCreditTransactionsResponse: z.ZodObject<{
|
|
|
18018
18052
|
voided: "voided";
|
|
18019
18053
|
}>;
|
|
18020
18054
|
currency: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
18055
|
+
customCurrencyId: z.ZodOptional<z.ZodString>;
|
|
18021
18056
|
amount: z.ZodString;
|
|
18022
18057
|
availableBalance: z.ZodObject<{
|
|
18023
18058
|
before: z.ZodString;
|
|
@@ -23063,6 +23098,39 @@ export declare const listAppsQueryParams: z.ZodObject<{
|
|
|
23063
23098
|
size: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
23064
23099
|
number: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
23065
23100
|
}, z.core.$strip>>;
|
|
23101
|
+
sort: z.ZodOptional<z.ZodObject<{
|
|
23102
|
+
by: z.ZodString;
|
|
23103
|
+
order: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"asc">, z.ZodLiteral<"desc">]>>>;
|
|
23104
|
+
}, z.core.$strip>>;
|
|
23105
|
+
filter: z.ZodOptional<z.ZodObject<{
|
|
23106
|
+
id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
23107
|
+
eq: z.ZodOptional<z.ZodString>;
|
|
23108
|
+
oeq: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
23109
|
+
neq: z.ZodOptional<z.ZodString>;
|
|
23110
|
+
}, z.core.$strip>]>>;
|
|
23111
|
+
name: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
23112
|
+
eq: z.ZodOptional<z.ZodString>;
|
|
23113
|
+
neq: z.ZodOptional<z.ZodString>;
|
|
23114
|
+
contains: z.ZodOptional<z.ZodString>;
|
|
23115
|
+
ocontains: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
23116
|
+
oeq: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
23117
|
+
gt: z.ZodOptional<z.ZodString>;
|
|
23118
|
+
gte: z.ZodOptional<z.ZodString>;
|
|
23119
|
+
lt: z.ZodOptional<z.ZodString>;
|
|
23120
|
+
lte: z.ZodOptional<z.ZodString>;
|
|
23121
|
+
exists: z.ZodOptional<z.ZodBoolean>;
|
|
23122
|
+
}, z.core.$strip>]>>;
|
|
23123
|
+
type: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
23124
|
+
eq: z.ZodOptional<z.ZodString>;
|
|
23125
|
+
oeq: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
23126
|
+
neq: z.ZodOptional<z.ZodString>;
|
|
23127
|
+
}, z.core.$strip>]>>;
|
|
23128
|
+
status: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
23129
|
+
eq: z.ZodOptional<z.ZodString>;
|
|
23130
|
+
oeq: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
23131
|
+
neq: z.ZodOptional<z.ZodString>;
|
|
23132
|
+
}, z.core.$strip>]>>;
|
|
23133
|
+
}, z.core.$strip>>;
|
|
23066
23134
|
}, z.core.$strip>;
|
|
23067
23135
|
export declare const listAppsResponse: z.ZodObject<{
|
|
23068
23136
|
data: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -32027,6 +32095,7 @@ export declare const creditAdjustmentWire: z.ZodObject<{
|
|
|
32027
32095
|
}, z.core.$strict>;
|
|
32028
32096
|
export declare const creditBalanceWire: z.ZodObject<{
|
|
32029
32097
|
currency: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
32098
|
+
custom_currency_id: z.ZodOptional<z.ZodString>;
|
|
32030
32099
|
live: z.ZodString;
|
|
32031
32100
|
settled: z.ZodString;
|
|
32032
32101
|
pending: z.ZodString;
|
|
@@ -32073,6 +32142,7 @@ export declare const creditTransactionWire: z.ZodObject<{
|
|
|
32073
32142
|
voided: "voided";
|
|
32074
32143
|
}>;
|
|
32075
32144
|
currency: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
32145
|
+
custom_currency_id: z.ZodOptional<z.ZodString>;
|
|
32076
32146
|
amount: z.ZodString;
|
|
32077
32147
|
available_balance: z.ZodObject<{
|
|
32078
32148
|
before: z.ZodString;
|
|
@@ -32287,6 +32357,35 @@ export declare const listSubscriptionsParamsFilterWire: z.ZodObject<{
|
|
|
32287
32357
|
neq: z.ZodOptional<z.ZodString>;
|
|
32288
32358
|
}, z.core.$strict>]>>;
|
|
32289
32359
|
}, z.core.$strict>;
|
|
32360
|
+
export declare const listAppsParamsFilterWire: z.ZodObject<{
|
|
32361
|
+
id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
32362
|
+
eq: z.ZodOptional<z.ZodString>;
|
|
32363
|
+
oeq: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
32364
|
+
neq: z.ZodOptional<z.ZodString>;
|
|
32365
|
+
}, z.core.$strict>]>>;
|
|
32366
|
+
name: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
32367
|
+
eq: z.ZodOptional<z.ZodString>;
|
|
32368
|
+
neq: z.ZodOptional<z.ZodString>;
|
|
32369
|
+
contains: z.ZodOptional<z.ZodString>;
|
|
32370
|
+
ocontains: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
32371
|
+
oeq: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
32372
|
+
gt: z.ZodOptional<z.ZodString>;
|
|
32373
|
+
gte: z.ZodOptional<z.ZodString>;
|
|
32374
|
+
lt: z.ZodOptional<z.ZodString>;
|
|
32375
|
+
lte: z.ZodOptional<z.ZodString>;
|
|
32376
|
+
exists: z.ZodOptional<z.ZodBoolean>;
|
|
32377
|
+
}, z.core.$strict>]>>;
|
|
32378
|
+
type: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
32379
|
+
eq: z.ZodOptional<z.ZodString>;
|
|
32380
|
+
oeq: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
32381
|
+
neq: z.ZodOptional<z.ZodString>;
|
|
32382
|
+
}, z.core.$strict>]>>;
|
|
32383
|
+
status: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
32384
|
+
eq: z.ZodOptional<z.ZodString>;
|
|
32385
|
+
oeq: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
32386
|
+
neq: z.ZodOptional<z.ZodString>;
|
|
32387
|
+
}, z.core.$strict>]>>;
|
|
32388
|
+
}, z.core.$strict>;
|
|
32290
32389
|
export declare const listFeatureParamsFilterWire: z.ZodObject<{
|
|
32291
32390
|
meter_id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
32292
32391
|
eq: z.ZodOptional<z.ZodString>;
|
|
@@ -33540,6 +33639,7 @@ export declare const creditBalancesWire: z.ZodObject<{
|
|
|
33540
33639
|
retrieved_at: z.ZodString;
|
|
33541
33640
|
balances: z.ZodArray<z.ZodObject<{
|
|
33542
33641
|
currency: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
33642
|
+
custom_currency_id: z.ZodOptional<z.ZodString>;
|
|
33543
33643
|
live: z.ZodString;
|
|
33544
33644
|
settled: z.ZodString;
|
|
33545
33645
|
pending: z.ZodString;
|
|
@@ -33560,6 +33660,7 @@ export declare const creditTransactionPaginatedResponseWire: z.ZodObject<{
|
|
|
33560
33660
|
voided: "voided";
|
|
33561
33661
|
}>;
|
|
33562
33662
|
currency: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
33663
|
+
custom_currency_id: z.ZodOptional<z.ZodString>;
|
|
33563
33664
|
amount: z.ZodString;
|
|
33564
33665
|
available_balance: z.ZodObject<{
|
|
33565
33666
|
before: z.ZodString;
|
|
@@ -48073,6 +48174,7 @@ export declare const getCustomerCreditBalanceResponseWire: z.ZodObject<{
|
|
|
48073
48174
|
retrieved_at: z.ZodString;
|
|
48074
48175
|
balances: z.ZodArray<z.ZodObject<{
|
|
48075
48176
|
currency: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
48177
|
+
custom_currency_id: z.ZodOptional<z.ZodString>;
|
|
48076
48178
|
live: z.ZodString;
|
|
48077
48179
|
settled: z.ZodString;
|
|
48078
48180
|
pending: z.ZodString;
|
|
@@ -48309,6 +48411,7 @@ export declare const listCreditTransactionsResponseWire: z.ZodObject<{
|
|
|
48309
48411
|
voided: "voided";
|
|
48310
48412
|
}>;
|
|
48311
48413
|
currency: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
48414
|
+
custom_currency_id: z.ZodOptional<z.ZodString>;
|
|
48312
48415
|
amount: z.ZodString;
|
|
48313
48416
|
available_balance: z.ZodObject<{
|
|
48314
48417
|
before: z.ZodString;
|
|
@@ -53345,6 +53448,36 @@ export declare const listAppsQueryParamsWire: z.ZodObject<{
|
|
|
53345
53448
|
size: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
53346
53449
|
number: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
53347
53450
|
}, z.core.$strict>>;
|
|
53451
|
+
sort: z.ZodOptional<z.ZodString>;
|
|
53452
|
+
filter: z.ZodOptional<z.ZodObject<{
|
|
53453
|
+
id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
53454
|
+
eq: z.ZodOptional<z.ZodString>;
|
|
53455
|
+
oeq: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
53456
|
+
neq: z.ZodOptional<z.ZodString>;
|
|
53457
|
+
}, z.core.$strict>]>>;
|
|
53458
|
+
name: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
53459
|
+
eq: z.ZodOptional<z.ZodString>;
|
|
53460
|
+
neq: z.ZodOptional<z.ZodString>;
|
|
53461
|
+
contains: z.ZodOptional<z.ZodString>;
|
|
53462
|
+
ocontains: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
53463
|
+
oeq: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
53464
|
+
gt: z.ZodOptional<z.ZodString>;
|
|
53465
|
+
gte: z.ZodOptional<z.ZodString>;
|
|
53466
|
+
lt: z.ZodOptional<z.ZodString>;
|
|
53467
|
+
lte: z.ZodOptional<z.ZodString>;
|
|
53468
|
+
exists: z.ZodOptional<z.ZodBoolean>;
|
|
53469
|
+
}, z.core.$strict>]>>;
|
|
53470
|
+
type: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
53471
|
+
eq: z.ZodOptional<z.ZodString>;
|
|
53472
|
+
oeq: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
53473
|
+
neq: z.ZodOptional<z.ZodString>;
|
|
53474
|
+
}, z.core.$strict>]>>;
|
|
53475
|
+
status: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
53476
|
+
eq: z.ZodOptional<z.ZodString>;
|
|
53477
|
+
oeq: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
53478
|
+
neq: z.ZodOptional<z.ZodString>;
|
|
53479
|
+
}, z.core.$strict>]>>;
|
|
53480
|
+
}, z.core.$strict>>;
|
|
53348
53481
|
}, z.core.$strip>;
|
|
53349
53482
|
export declare const listAppsResponseWire: z.ZodObject<{
|
|
53350
53483
|
data: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
package/dist/models/schemas.js
CHANGED
|
@@ -2538,6 +2538,7 @@ export const creditAdjustment = z
|
|
|
2538
2538
|
export const creditBalance = z
|
|
2539
2539
|
.object({
|
|
2540
2540
|
currency: billingCurrencyCode,
|
|
2541
|
+
customCurrencyId: ulid.optional(),
|
|
2541
2542
|
live: numeric,
|
|
2542
2543
|
settled: numeric,
|
|
2543
2544
|
pending: numeric,
|
|
@@ -2585,6 +2586,7 @@ export const creditTransaction = z
|
|
|
2585
2586
|
bookedAt: dateTime,
|
|
2586
2587
|
type: creditTransactionType,
|
|
2587
2588
|
currency: billingCurrencyCode,
|
|
2589
|
+
customCurrencyId: ulid.optional(),
|
|
2588
2590
|
amount: numeric,
|
|
2589
2591
|
availableBalance: z
|
|
2590
2592
|
.object({
|
|
@@ -2693,6 +2695,14 @@ export const listSubscriptionsParamsFilter = z
|
|
|
2693
2695
|
planKey: stringFieldFilterExact.optional(),
|
|
2694
2696
|
})
|
|
2695
2697
|
.describe('Filter options for listing subscriptions.');
|
|
2698
|
+
export const listAppsParamsFilter = z
|
|
2699
|
+
.object({
|
|
2700
|
+
id: ulidFieldFilter.optional(),
|
|
2701
|
+
name: stringFieldFilter.optional(),
|
|
2702
|
+
type: stringFieldFilterExact.optional(),
|
|
2703
|
+
status: stringFieldFilterExact.optional(),
|
|
2704
|
+
})
|
|
2705
|
+
.describe('Filter options for listing apps.');
|
|
2696
2706
|
export const listFeatureParamsFilter = z
|
|
2697
2707
|
.object({
|
|
2698
2708
|
meterId: ulidFieldFilter.optional(),
|
|
@@ -5349,6 +5359,8 @@ export const listAppsQueryParams = z.object({
|
|
|
5349
5359
|
})
|
|
5350
5360
|
.optional()
|
|
5351
5361
|
.describe('Determines which page of the collection to retrieve.'),
|
|
5362
|
+
sort: sortQuery.optional(),
|
|
5363
|
+
filter: listAppsParamsFilter.optional(),
|
|
5352
5364
|
});
|
|
5353
5365
|
export const listAppsResponse = z.object({
|
|
5354
5366
|
data: z.array(app),
|
|
@@ -8284,6 +8296,7 @@ export const creditAdjustmentWire = z
|
|
|
8284
8296
|
export const creditBalanceWire = z
|
|
8285
8297
|
.strictObject({
|
|
8286
8298
|
currency: billingCurrencyCodeWire,
|
|
8299
|
+
custom_currency_id: ulidWire.optional(),
|
|
8287
8300
|
live: numericWire,
|
|
8288
8301
|
settled: numericWire,
|
|
8289
8302
|
pending: numericWire,
|
|
@@ -8331,6 +8344,7 @@ export const creditTransactionWire = z
|
|
|
8331
8344
|
booked_at: dateTimeWire,
|
|
8332
8345
|
type: creditTransactionTypeWire,
|
|
8333
8346
|
currency: billingCurrencyCodeWire,
|
|
8347
|
+
custom_currency_id: ulidWire.optional(),
|
|
8334
8348
|
amount: numericWire,
|
|
8335
8349
|
available_balance: z
|
|
8336
8350
|
.strictObject({
|
|
@@ -8439,6 +8453,14 @@ export const listSubscriptionsParamsFilterWire = z
|
|
|
8439
8453
|
plan_key: stringFieldFilterExactWire.optional(),
|
|
8440
8454
|
})
|
|
8441
8455
|
.describe('Filter options for listing subscriptions.');
|
|
8456
|
+
export const listAppsParamsFilterWire = z
|
|
8457
|
+
.strictObject({
|
|
8458
|
+
id: ulidFieldFilterWire.optional(),
|
|
8459
|
+
name: stringFieldFilterWire.optional(),
|
|
8460
|
+
type: stringFieldFilterExactWire.optional(),
|
|
8461
|
+
status: stringFieldFilterExactWire.optional(),
|
|
8462
|
+
})
|
|
8463
|
+
.describe('Filter options for listing apps.');
|
|
8442
8464
|
export const listFeatureParamsFilterWire = z
|
|
8443
8465
|
.strictObject({
|
|
8444
8466
|
meter_id: ulidFieldFilterWire.optional(),
|
|
@@ -11111,6 +11133,11 @@ export const listAppsQueryParamsWire = z.object({
|
|
|
11111
11133
|
})
|
|
11112
11134
|
.optional()
|
|
11113
11135
|
.describe('Determines which page of the collection to retrieve.'),
|
|
11136
|
+
sort: z
|
|
11137
|
+
.string()
|
|
11138
|
+
.optional()
|
|
11139
|
+
.describe('Sort apps returned in the response. Supported sort attributes are: - `id` - `created_at` (default) The `asc` suffix is optional as the default sort order is ascending. The `desc` suffix is used to specify a descending order.'),
|
|
11140
|
+
filter: listAppsParamsFilterWire.optional(),
|
|
11114
11141
|
});
|
|
11115
11142
|
export const listAppsResponseWire = z.strictObject({
|
|
11116
11143
|
data: z.array(appWire),
|
package/dist/models/types.d.ts
CHANGED
|
@@ -1871,7 +1871,10 @@ export interface ValidationIssue {
|
|
|
1871
1871
|
}
|
|
1872
1872
|
/** Filter options for getting a credit balance. */
|
|
1873
1873
|
export interface GetCreditBalanceParamsFilter {
|
|
1874
|
-
/**
|
|
1874
|
+
/**
|
|
1875
|
+
* Filter credit balance by currency code. When historical custom currencies reuse
|
|
1876
|
+
* a code, each managed currency is returned as a separate balance row.
|
|
1877
|
+
*/
|
|
1875
1878
|
currency?: StringFieldFilterExact;
|
|
1876
1879
|
/**
|
|
1877
1880
|
* Filter credit balance by feature key. Omit to return the total portfolio value.
|
|
@@ -2258,6 +2261,8 @@ export interface CreditAdjustment {
|
|
|
2258
2261
|
/** The credit balance by currency. */
|
|
2259
2262
|
export interface CreditBalance {
|
|
2260
2263
|
currency: BillingCurrencyCode;
|
|
2264
|
+
/** Immutable managed currency identifier. Present only for custom currencies. */
|
|
2265
|
+
customCurrencyId?: string;
|
|
2261
2266
|
/**
|
|
2262
2267
|
* Credits available after applying currently live charge impacts.
|
|
2263
2268
|
*
|
|
@@ -2297,7 +2302,10 @@ export interface CreateCreditAdjustmentRequest {
|
|
|
2297
2302
|
export interface ListCreditTransactionsParamsFilter {
|
|
2298
2303
|
/** Filter credit transactions by type. */
|
|
2299
2304
|
type?: 'funded' | 'consumed' | 'expired' | 'voided';
|
|
2300
|
-
/**
|
|
2305
|
+
/**
|
|
2306
|
+
* Filter credit transactions by currency code. Custom-currency rows retain their
|
|
2307
|
+
* managed currency identifier.
|
|
2308
|
+
*/
|
|
2301
2309
|
currency?: BillingCurrencyCode;
|
|
2302
2310
|
/**
|
|
2303
2311
|
* Filter credit transactions by feature key. Omit to return all credit
|
|
@@ -2335,6 +2343,8 @@ export interface CreditTransaction {
|
|
|
2335
2343
|
type: 'funded' | 'consumed' | 'expired' | 'voided';
|
|
2336
2344
|
/** Currency of the balance affected by the transaction. */
|
|
2337
2345
|
currency: BillingCurrencyCode;
|
|
2346
|
+
/** Immutable managed currency identifier. Present only for custom currencies. */
|
|
2347
|
+
customCurrencyId?: string;
|
|
2338
2348
|
/**
|
|
2339
2349
|
* Signed amount of the credit movement. Positive values add balance, negative
|
|
2340
2350
|
* values reduce balance.
|
|
@@ -2517,6 +2527,13 @@ export interface ListSubscriptionsParamsFilter {
|
|
|
2517
2527
|
planId?: UlidFieldFilter;
|
|
2518
2528
|
planKey?: StringFieldFilterExact;
|
|
2519
2529
|
}
|
|
2530
|
+
/** Filter options for listing apps. */
|
|
2531
|
+
export interface ListAppsParamsFilter {
|
|
2532
|
+
id?: UlidFieldFilter;
|
|
2533
|
+
name?: StringFieldFilter;
|
|
2534
|
+
type?: StringFieldFilterExact;
|
|
2535
|
+
status?: StringFieldFilterExact;
|
|
2536
|
+
}
|
|
2520
2537
|
/** Filter options for listing features. */
|
|
2521
2538
|
export interface ListFeatureParamsFilter {
|
|
2522
2539
|
meterId?: UlidFieldFilter;
|
package/dist/sdk/apps.d.ts
CHANGED
|
@@ -1,28 +1,9 @@
|
|
|
1
1
|
import { type Client } from '../core.js';
|
|
2
2
|
import { type RequestOptions } from '../lib/types.js';
|
|
3
|
-
import type {
|
|
4
|
-
import type { App } from '../models/types.js';
|
|
3
|
+
import type { GetAppRequest, GetAppResponse } from '../models/operations/apps.js';
|
|
5
4
|
export declare class Apps {
|
|
6
5
|
private readonly _client;
|
|
7
6
|
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>;
|
|
26
7
|
/**
|
|
27
8
|
* Get app
|
|
28
9
|
*
|
package/dist/sdk/apps.js
CHANGED
|
@@ -1,34 +1,11 @@
|
|
|
1
1
|
// Code generated by @openmeter/typespec-typescript. DO NOT EDIT.
|
|
2
2
|
import { unwrap } from '../lib/types.js';
|
|
3
|
-
import {
|
|
4
|
-
import { listApps, getApp } from '../funcs/apps.js';
|
|
3
|
+
import { getApp } from '../funcs/apps.js';
|
|
5
4
|
export class Apps {
|
|
6
5
|
_client;
|
|
7
6
|
constructor(_client) {
|
|
8
7
|
this._client = _client;
|
|
9
8
|
}
|
|
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
|
-
}
|
|
32
9
|
/**
|
|
33
10
|
* Get app
|
|
34
11
|
*
|
package/dist/sdk/internal.d.ts
CHANGED
|
@@ -2,12 +2,12 @@ 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
4
|
import type { CreateSubscriptionAddonRequest, CreateSubscriptionAddonResponse } from '../models/operations/subscriptions.js';
|
|
5
|
-
import type { UninstallAppRequest, UninstallAppResponse, UpdateAppRequest, UpdateAppResponse, ListAppCatalogRequest, ListAppCatalogResponse, GetAppCatalogItemRequest, GetAppCatalogItemResponse, InstallAppRequest, InstallAppResponse } from '../models/operations/apps.js';
|
|
5
|
+
import type { ListAppsRequest, ListAppsResponse, 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 { ListCurrenciesRequest, ListCurrenciesResponse, CreateCustomCurrencyRequest, CreateCustomCurrencyResponse, GetCustomCurrencyRequest, GetCustomCurrencyResponse, ListCostBasesRequest, ListCostBasesResponse, CreateCostBasisRequest, CreateCostBasisResponse } from '../models/operations/currencies.js';
|
|
8
8
|
import type { ListPlanAddonsRequest, ListPlanAddonsResponse } from '../models/operations/planAddons.js';
|
|
9
9
|
import type { QueryEntitlementAccessRequest, QueryEntitlementAccessResponse } from '../models/operations/entitlementAccess.js';
|
|
10
|
-
import type { AppCatalogItem, Charge, CostBasis, Currency, Invoice, PlanAddon } from '../models/types.js';
|
|
10
|
+
import type { App, AppCatalogItem, Charge, CostBasis, Currency, Invoice, PlanAddon } from '../models/types.js';
|
|
11
11
|
/**
|
|
12
12
|
* Operations marked internal in the API definition. They are not part of
|
|
13
13
|
* the customer surface: they may require additional permissions, and they
|
|
@@ -116,6 +116,24 @@ export declare class InternalSubscriptions {
|
|
|
116
116
|
export declare class InternalApps {
|
|
117
117
|
private readonly _client;
|
|
118
118
|
constructor(_client: Client);
|
|
119
|
+
/**
|
|
120
|
+
* List apps
|
|
121
|
+
*
|
|
122
|
+
* List installed apps.
|
|
123
|
+
*
|
|
124
|
+
* GET /openmeter/apps
|
|
125
|
+
*/
|
|
126
|
+
list(request?: ListAppsRequest, options?: RequestOptions): Promise<ListAppsResponse>;
|
|
127
|
+
/**
|
|
128
|
+
* List apps
|
|
129
|
+
*
|
|
130
|
+
* List installed apps.
|
|
131
|
+
*
|
|
132
|
+
* Iterates every item across all pages, fetching more as the returned iterable is consumed.
|
|
133
|
+
*
|
|
134
|
+
* GET /openmeter/apps
|
|
135
|
+
*/
|
|
136
|
+
listAll(request?: ListAppsRequest, options?: RequestOptions): AsyncIterable<App>;
|
|
119
137
|
/**
|
|
120
138
|
* Uninstall app
|
|
121
139
|
*
|
package/dist/sdk/internal.js
CHANGED
|
@@ -3,7 +3,7 @@ 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
5
|
import { createSubscriptionAddon } from '../funcs/subscriptions.js';
|
|
6
|
-
import { uninstallApp, updateApp, listAppCatalog, getAppCatalogItem, installApp, } from '../funcs/apps.js';
|
|
6
|
+
import { listApps, 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 { listCurrencies, createCustomCurrency, getCustomCurrency, listCostBases, createCostBasis, } from '../funcs/currencies.js';
|
|
9
9
|
import { listPlanAddons } from '../funcs/planAddons.js';
|
|
@@ -160,6 +160,28 @@ export class InternalApps {
|
|
|
160
160
|
constructor(_client) {
|
|
161
161
|
this._client = _client;
|
|
162
162
|
}
|
|
163
|
+
/**
|
|
164
|
+
* List apps
|
|
165
|
+
*
|
|
166
|
+
* List installed apps.
|
|
167
|
+
*
|
|
168
|
+
* GET /openmeter/apps
|
|
169
|
+
*/
|
|
170
|
+
async list(request, options) {
|
|
171
|
+
return unwrap(await listApps(this._client, request, options));
|
|
172
|
+
}
|
|
173
|
+
/**
|
|
174
|
+
* List apps
|
|
175
|
+
*
|
|
176
|
+
* List installed apps.
|
|
177
|
+
*
|
|
178
|
+
* Iterates every item across all pages, fetching more as the returned iterable is consumed.
|
|
179
|
+
*
|
|
180
|
+
* GET /openmeter/apps
|
|
181
|
+
*/
|
|
182
|
+
listAll(request, options) {
|
|
183
|
+
return paginatePages((req, opts) => listApps(this._client, req, opts), request ?? {}, options);
|
|
184
|
+
}
|
|
163
185
|
/**
|
|
164
186
|
* Uninstall app
|
|
165
187
|
*
|