@openmeter/client 1.0.0-beta-622df7843cd1 → 1.0.0-beta-1aa5c10bbf50
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/funcs/billing.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/operations/billing.d.ts +19 -1
- package/dist/models/schemas.d.ts +202 -0
- package/dist/models/schemas.js +42 -0
- package/dist/models/types.d.ts +12 -0
- 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/funcs/billing.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 billing profiles
|
|
@@ -13,8 +13,13 @@ import * as schemas from '../models/schemas.js';
|
|
|
13
13
|
*/
|
|
14
14
|
export function listBillingProfiles(client, req = {}, options) {
|
|
15
15
|
return request(() => {
|
|
16
|
+
if (client._options.validate && req.sort !== undefined) {
|
|
17
|
+
assertValid(schemas.listBillingProfilesQueryParams.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.listBillingProfilesQueryParams);
|
|
19
24
|
if (client._options.validate) {
|
|
20
25
|
assertValid(schemas.listBillingProfilesQueryParamsWire, 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, ListBillingProfilesParamsFilter, 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-1aa5c10bbf50";
|
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-1aa5c10bbf50';
|
|
@@ -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;
|
|
@@ -1,11 +1,29 @@
|
|
|
1
1
|
import type { AcceptDateStrings } from '../../lib/wire.js';
|
|
2
|
-
import type { CreateBillingProfileRequestInput, Profile, ProfilePagePaginatedResponse, UpsertBillingProfileRequestInput } from '../types.js';
|
|
2
|
+
import type { CreateBillingProfileRequestInput, ListBillingProfilesParamsFilter, Profile, ProfilePagePaginatedResponse, SortQueryInput, UpsertBillingProfileRequestInput } from '../types.js';
|
|
3
3
|
export interface ListBillingProfilesQuery {
|
|
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 billing profiles returned in the response. Supported sort attributes are:
|
|
11
|
+
*
|
|
12
|
+
* - `id`
|
|
13
|
+
* - `name`
|
|
14
|
+
* - `created_at` (default)
|
|
15
|
+
*
|
|
16
|
+
* The `asc` suffix is optional as the default sort order is ascending. The `desc`
|
|
17
|
+
* suffix is used to specify a descending order.
|
|
18
|
+
*/
|
|
19
|
+
sort?: SortQueryInput;
|
|
20
|
+
/**
|
|
21
|
+
* Filter billing profiles returned in the response.
|
|
22
|
+
*
|
|
23
|
+
* To filter billing profiles by name add the following query param:
|
|
24
|
+
* filter[name]=my-profile
|
|
25
|
+
*/
|
|
26
|
+
filter?: ListBillingProfilesParamsFilter;
|
|
9
27
|
}
|
|
10
28
|
export type ListBillingProfilesRequest = AcceptDateStrings<ListBillingProfilesQuery>;
|
|
11
29
|
export type ListBillingProfilesResponse = ProfilePagePaginatedResponse;
|
package/dist/models/schemas.d.ts
CHANGED
|
@@ -1989,6 +1989,54 @@ export declare const listSubscriptionsParamsFilter: z.ZodObject<{
|
|
|
1989
1989
|
neq: z.ZodOptional<z.ZodString>;
|
|
1990
1990
|
}, z.core.$strip>]>>;
|
|
1991
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>;
|
|
2021
|
+
export declare const listBillingProfilesParamsFilter: z.ZodObject<{
|
|
2022
|
+
id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
2023
|
+
eq: z.ZodOptional<z.ZodString>;
|
|
2024
|
+
oeq: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2025
|
+
neq: z.ZodOptional<z.ZodString>;
|
|
2026
|
+
}, z.core.$strip>]>>;
|
|
2027
|
+
name: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
2028
|
+
eq: z.ZodOptional<z.ZodString>;
|
|
2029
|
+
neq: z.ZodOptional<z.ZodString>;
|
|
2030
|
+
contains: z.ZodOptional<z.ZodString>;
|
|
2031
|
+
ocontains: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2032
|
+
oeq: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2033
|
+
gt: z.ZodOptional<z.ZodString>;
|
|
2034
|
+
gte: z.ZodOptional<z.ZodString>;
|
|
2035
|
+
lt: z.ZodOptional<z.ZodString>;
|
|
2036
|
+
lte: z.ZodOptional<z.ZodString>;
|
|
2037
|
+
exists: z.ZodOptional<z.ZodBoolean>;
|
|
2038
|
+
}, z.core.$strip>]>>;
|
|
2039
|
+
}, z.core.$strip>;
|
|
1992
2040
|
export declare const listFeatureParamsFilter: z.ZodObject<{
|
|
1993
2041
|
meterId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
1994
2042
|
eq: z.ZodOptional<z.ZodString>;
|
|
@@ -23069,6 +23117,39 @@ export declare const listAppsQueryParams: z.ZodObject<{
|
|
|
23069
23117
|
size: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
23070
23118
|
number: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
23071
23119
|
}, z.core.$strip>>;
|
|
23120
|
+
sort: z.ZodOptional<z.ZodObject<{
|
|
23121
|
+
by: z.ZodString;
|
|
23122
|
+
order: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"asc">, z.ZodLiteral<"desc">]>>>;
|
|
23123
|
+
}, z.core.$strip>>;
|
|
23124
|
+
filter: z.ZodOptional<z.ZodObject<{
|
|
23125
|
+
id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
23126
|
+
eq: z.ZodOptional<z.ZodString>;
|
|
23127
|
+
oeq: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
23128
|
+
neq: z.ZodOptional<z.ZodString>;
|
|
23129
|
+
}, z.core.$strip>]>>;
|
|
23130
|
+
name: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
23131
|
+
eq: z.ZodOptional<z.ZodString>;
|
|
23132
|
+
neq: z.ZodOptional<z.ZodString>;
|
|
23133
|
+
contains: z.ZodOptional<z.ZodString>;
|
|
23134
|
+
ocontains: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
23135
|
+
oeq: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
23136
|
+
gt: z.ZodOptional<z.ZodString>;
|
|
23137
|
+
gte: z.ZodOptional<z.ZodString>;
|
|
23138
|
+
lt: z.ZodOptional<z.ZodString>;
|
|
23139
|
+
lte: z.ZodOptional<z.ZodString>;
|
|
23140
|
+
exists: z.ZodOptional<z.ZodBoolean>;
|
|
23141
|
+
}, z.core.$strip>]>>;
|
|
23142
|
+
type: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
23143
|
+
eq: z.ZodOptional<z.ZodString>;
|
|
23144
|
+
oeq: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
23145
|
+
neq: z.ZodOptional<z.ZodString>;
|
|
23146
|
+
}, z.core.$strip>]>>;
|
|
23147
|
+
status: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
23148
|
+
eq: z.ZodOptional<z.ZodString>;
|
|
23149
|
+
oeq: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
23150
|
+
neq: z.ZodOptional<z.ZodString>;
|
|
23151
|
+
}, z.core.$strip>]>>;
|
|
23152
|
+
}, z.core.$strip>>;
|
|
23072
23153
|
}, z.core.$strip>;
|
|
23073
23154
|
export declare const listAppsResponse: z.ZodObject<{
|
|
23074
23155
|
data: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -23713,6 +23794,29 @@ export declare const listBillingProfilesQueryParams: z.ZodObject<{
|
|
|
23713
23794
|
size: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
23714
23795
|
number: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
23715
23796
|
}, z.core.$strip>>;
|
|
23797
|
+
sort: z.ZodOptional<z.ZodObject<{
|
|
23798
|
+
by: z.ZodString;
|
|
23799
|
+
order: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"asc">, z.ZodLiteral<"desc">]>>>;
|
|
23800
|
+
}, z.core.$strip>>;
|
|
23801
|
+
filter: z.ZodOptional<z.ZodObject<{
|
|
23802
|
+
id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
23803
|
+
eq: z.ZodOptional<z.ZodString>;
|
|
23804
|
+
oeq: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
23805
|
+
neq: z.ZodOptional<z.ZodString>;
|
|
23806
|
+
}, z.core.$strip>]>>;
|
|
23807
|
+
name: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
23808
|
+
eq: z.ZodOptional<z.ZodString>;
|
|
23809
|
+
neq: z.ZodOptional<z.ZodString>;
|
|
23810
|
+
contains: z.ZodOptional<z.ZodString>;
|
|
23811
|
+
ocontains: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
23812
|
+
oeq: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
23813
|
+
gt: z.ZodOptional<z.ZodString>;
|
|
23814
|
+
gte: z.ZodOptional<z.ZodString>;
|
|
23815
|
+
lt: z.ZodOptional<z.ZodString>;
|
|
23816
|
+
lte: z.ZodOptional<z.ZodString>;
|
|
23817
|
+
exists: z.ZodOptional<z.ZodBoolean>;
|
|
23818
|
+
}, z.core.$strip>]>>;
|
|
23819
|
+
}, z.core.$strip>>;
|
|
23716
23820
|
}, z.core.$strip>;
|
|
23717
23821
|
export declare const listBillingProfilesResponse: z.ZodObject<{
|
|
23718
23822
|
data: z.ZodArray<z.ZodObject<{
|
|
@@ -32295,6 +32399,54 @@ export declare const listSubscriptionsParamsFilterWire: z.ZodObject<{
|
|
|
32295
32399
|
neq: z.ZodOptional<z.ZodString>;
|
|
32296
32400
|
}, z.core.$strict>]>>;
|
|
32297
32401
|
}, z.core.$strict>;
|
|
32402
|
+
export declare const listAppsParamsFilterWire: z.ZodObject<{
|
|
32403
|
+
id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
32404
|
+
eq: z.ZodOptional<z.ZodString>;
|
|
32405
|
+
oeq: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
32406
|
+
neq: z.ZodOptional<z.ZodString>;
|
|
32407
|
+
}, z.core.$strict>]>>;
|
|
32408
|
+
name: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
32409
|
+
eq: z.ZodOptional<z.ZodString>;
|
|
32410
|
+
neq: z.ZodOptional<z.ZodString>;
|
|
32411
|
+
contains: z.ZodOptional<z.ZodString>;
|
|
32412
|
+
ocontains: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
32413
|
+
oeq: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
32414
|
+
gt: z.ZodOptional<z.ZodString>;
|
|
32415
|
+
gte: z.ZodOptional<z.ZodString>;
|
|
32416
|
+
lt: z.ZodOptional<z.ZodString>;
|
|
32417
|
+
lte: z.ZodOptional<z.ZodString>;
|
|
32418
|
+
exists: z.ZodOptional<z.ZodBoolean>;
|
|
32419
|
+
}, z.core.$strict>]>>;
|
|
32420
|
+
type: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
32421
|
+
eq: z.ZodOptional<z.ZodString>;
|
|
32422
|
+
oeq: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
32423
|
+
neq: z.ZodOptional<z.ZodString>;
|
|
32424
|
+
}, z.core.$strict>]>>;
|
|
32425
|
+
status: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
32426
|
+
eq: z.ZodOptional<z.ZodString>;
|
|
32427
|
+
oeq: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
32428
|
+
neq: z.ZodOptional<z.ZodString>;
|
|
32429
|
+
}, z.core.$strict>]>>;
|
|
32430
|
+
}, z.core.$strict>;
|
|
32431
|
+
export declare const listBillingProfilesParamsFilterWire: z.ZodObject<{
|
|
32432
|
+
id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
32433
|
+
eq: z.ZodOptional<z.ZodString>;
|
|
32434
|
+
oeq: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
32435
|
+
neq: z.ZodOptional<z.ZodString>;
|
|
32436
|
+
}, z.core.$strict>]>>;
|
|
32437
|
+
name: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
32438
|
+
eq: z.ZodOptional<z.ZodString>;
|
|
32439
|
+
neq: z.ZodOptional<z.ZodString>;
|
|
32440
|
+
contains: z.ZodOptional<z.ZodString>;
|
|
32441
|
+
ocontains: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
32442
|
+
oeq: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
32443
|
+
gt: z.ZodOptional<z.ZodString>;
|
|
32444
|
+
gte: z.ZodOptional<z.ZodString>;
|
|
32445
|
+
lt: z.ZodOptional<z.ZodString>;
|
|
32446
|
+
lte: z.ZodOptional<z.ZodString>;
|
|
32447
|
+
exists: z.ZodOptional<z.ZodBoolean>;
|
|
32448
|
+
}, z.core.$strict>]>>;
|
|
32449
|
+
}, z.core.$strict>;
|
|
32298
32450
|
export declare const listFeatureParamsFilterWire: z.ZodObject<{
|
|
32299
32451
|
meter_id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
32300
32452
|
eq: z.ZodOptional<z.ZodString>;
|
|
@@ -53357,6 +53509,36 @@ export declare const listAppsQueryParamsWire: z.ZodObject<{
|
|
|
53357
53509
|
size: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
53358
53510
|
number: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
53359
53511
|
}, z.core.$strict>>;
|
|
53512
|
+
sort: z.ZodOptional<z.ZodString>;
|
|
53513
|
+
filter: z.ZodOptional<z.ZodObject<{
|
|
53514
|
+
id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
53515
|
+
eq: z.ZodOptional<z.ZodString>;
|
|
53516
|
+
oeq: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
53517
|
+
neq: z.ZodOptional<z.ZodString>;
|
|
53518
|
+
}, z.core.$strict>]>>;
|
|
53519
|
+
name: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
53520
|
+
eq: z.ZodOptional<z.ZodString>;
|
|
53521
|
+
neq: z.ZodOptional<z.ZodString>;
|
|
53522
|
+
contains: z.ZodOptional<z.ZodString>;
|
|
53523
|
+
ocontains: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
53524
|
+
oeq: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
53525
|
+
gt: z.ZodOptional<z.ZodString>;
|
|
53526
|
+
gte: z.ZodOptional<z.ZodString>;
|
|
53527
|
+
lt: z.ZodOptional<z.ZodString>;
|
|
53528
|
+
lte: z.ZodOptional<z.ZodString>;
|
|
53529
|
+
exists: z.ZodOptional<z.ZodBoolean>;
|
|
53530
|
+
}, z.core.$strict>]>>;
|
|
53531
|
+
type: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
53532
|
+
eq: z.ZodOptional<z.ZodString>;
|
|
53533
|
+
oeq: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
53534
|
+
neq: z.ZodOptional<z.ZodString>;
|
|
53535
|
+
}, z.core.$strict>]>>;
|
|
53536
|
+
status: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
53537
|
+
eq: z.ZodOptional<z.ZodString>;
|
|
53538
|
+
oeq: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
53539
|
+
neq: z.ZodOptional<z.ZodString>;
|
|
53540
|
+
}, z.core.$strict>]>>;
|
|
53541
|
+
}, z.core.$strict>>;
|
|
53360
53542
|
}, z.core.$strip>;
|
|
53361
53543
|
export declare const listAppsResponseWire: z.ZodObject<{
|
|
53362
53544
|
data: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -54001,6 +54183,26 @@ export declare const listBillingProfilesQueryParamsWire: z.ZodObject<{
|
|
|
54001
54183
|
size: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
54002
54184
|
number: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
54003
54185
|
}, z.core.$strict>>;
|
|
54186
|
+
sort: z.ZodOptional<z.ZodString>;
|
|
54187
|
+
filter: z.ZodOptional<z.ZodObject<{
|
|
54188
|
+
id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
54189
|
+
eq: z.ZodOptional<z.ZodString>;
|
|
54190
|
+
oeq: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
54191
|
+
neq: z.ZodOptional<z.ZodString>;
|
|
54192
|
+
}, z.core.$strict>]>>;
|
|
54193
|
+
name: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
54194
|
+
eq: z.ZodOptional<z.ZodString>;
|
|
54195
|
+
neq: z.ZodOptional<z.ZodString>;
|
|
54196
|
+
contains: z.ZodOptional<z.ZodString>;
|
|
54197
|
+
ocontains: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
54198
|
+
oeq: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
54199
|
+
gt: z.ZodOptional<z.ZodString>;
|
|
54200
|
+
gte: z.ZodOptional<z.ZodString>;
|
|
54201
|
+
lt: z.ZodOptional<z.ZodString>;
|
|
54202
|
+
lte: z.ZodOptional<z.ZodString>;
|
|
54203
|
+
exists: z.ZodOptional<z.ZodBoolean>;
|
|
54204
|
+
}, z.core.$strict>]>>;
|
|
54205
|
+
}, z.core.$strict>>;
|
|
54004
54206
|
}, z.core.$strip>;
|
|
54005
54207
|
export declare const listBillingProfilesResponseWire: z.ZodObject<{
|
|
54006
54208
|
data: z.ZodArray<z.ZodObject<{
|
package/dist/models/schemas.js
CHANGED
|
@@ -2695,6 +2695,20 @@ export const listSubscriptionsParamsFilter = z
|
|
|
2695
2695
|
planKey: stringFieldFilterExact.optional(),
|
|
2696
2696
|
})
|
|
2697
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.');
|
|
2706
|
+
export const listBillingProfilesParamsFilter = z
|
|
2707
|
+
.object({
|
|
2708
|
+
id: ulidFieldFilter.optional(),
|
|
2709
|
+
name: stringFieldFilter.optional(),
|
|
2710
|
+
})
|
|
2711
|
+
.describe('Filter options for listing billing profiles.');
|
|
2698
2712
|
export const listFeatureParamsFilter = z
|
|
2699
2713
|
.object({
|
|
2700
2714
|
meterId: ulidFieldFilter.optional(),
|
|
@@ -5351,6 +5365,8 @@ export const listAppsQueryParams = z.object({
|
|
|
5351
5365
|
})
|
|
5352
5366
|
.optional()
|
|
5353
5367
|
.describe('Determines which page of the collection to retrieve.'),
|
|
5368
|
+
sort: sortQuery.optional(),
|
|
5369
|
+
filter: listAppsParamsFilter.optional(),
|
|
5354
5370
|
});
|
|
5355
5371
|
export const listAppsResponse = z.object({
|
|
5356
5372
|
data: z.array(app),
|
|
@@ -5403,6 +5419,8 @@ export const listBillingProfilesQueryParams = z.object({
|
|
|
5403
5419
|
})
|
|
5404
5420
|
.optional()
|
|
5405
5421
|
.describe('Determines which page of the collection to retrieve.'),
|
|
5422
|
+
sort: sortQuery.optional(),
|
|
5423
|
+
filter: listBillingProfilesParamsFilter.optional(),
|
|
5406
5424
|
});
|
|
5407
5425
|
export const listBillingProfilesResponse = z.object({
|
|
5408
5426
|
data: z.array(profile),
|
|
@@ -8443,6 +8461,20 @@ export const listSubscriptionsParamsFilterWire = z
|
|
|
8443
8461
|
plan_key: stringFieldFilterExactWire.optional(),
|
|
8444
8462
|
})
|
|
8445
8463
|
.describe('Filter options for listing subscriptions.');
|
|
8464
|
+
export const listAppsParamsFilterWire = z
|
|
8465
|
+
.strictObject({
|
|
8466
|
+
id: ulidFieldFilterWire.optional(),
|
|
8467
|
+
name: stringFieldFilterWire.optional(),
|
|
8468
|
+
type: stringFieldFilterExactWire.optional(),
|
|
8469
|
+
status: stringFieldFilterExactWire.optional(),
|
|
8470
|
+
})
|
|
8471
|
+
.describe('Filter options for listing apps.');
|
|
8472
|
+
export const listBillingProfilesParamsFilterWire = z
|
|
8473
|
+
.strictObject({
|
|
8474
|
+
id: ulidFieldFilterWire.optional(),
|
|
8475
|
+
name: stringFieldFilterWire.optional(),
|
|
8476
|
+
})
|
|
8477
|
+
.describe('Filter options for listing billing profiles.');
|
|
8446
8478
|
export const listFeatureParamsFilterWire = z
|
|
8447
8479
|
.strictObject({
|
|
8448
8480
|
meter_id: ulidFieldFilterWire.optional(),
|
|
@@ -11115,6 +11147,11 @@ export const listAppsQueryParamsWire = z.object({
|
|
|
11115
11147
|
})
|
|
11116
11148
|
.optional()
|
|
11117
11149
|
.describe('Determines which page of the collection to retrieve.'),
|
|
11150
|
+
sort: z
|
|
11151
|
+
.string()
|
|
11152
|
+
.optional()
|
|
11153
|
+
.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.'),
|
|
11154
|
+
filter: listAppsParamsFilterWire.optional(),
|
|
11118
11155
|
});
|
|
11119
11156
|
export const listAppsResponseWire = z.strictObject({
|
|
11120
11157
|
data: z.array(appWire),
|
|
@@ -11167,6 +11204,11 @@ export const listBillingProfilesQueryParamsWire = z.object({
|
|
|
11167
11204
|
})
|
|
11168
11205
|
.optional()
|
|
11169
11206
|
.describe('Determines which page of the collection to retrieve.'),
|
|
11207
|
+
sort: z
|
|
11208
|
+
.string()
|
|
11209
|
+
.optional()
|
|
11210
|
+
.describe('Sort billing profiles returned in the response. Supported sort attributes are: - `id` - `name` - `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.'),
|
|
11211
|
+
filter: listBillingProfilesParamsFilterWire.optional(),
|
|
11170
11212
|
});
|
|
11171
11213
|
export const listBillingProfilesResponseWire = z.strictObject({
|
|
11172
11214
|
data: z.array(profileWire),
|
package/dist/models/types.d.ts
CHANGED
|
@@ -2527,6 +2527,18 @@ export interface ListSubscriptionsParamsFilter {
|
|
|
2527
2527
|
planId?: UlidFieldFilter;
|
|
2528
2528
|
planKey?: StringFieldFilterExact;
|
|
2529
2529
|
}
|
|
2530
|
+
/** Filter options for listing apps. */
|
|
2531
|
+
export interface ListAppsParamsFilter {
|
|
2532
|
+
id?: UlidFieldFilter;
|
|
2533
|
+
name?: StringFieldFilter;
|
|
2534
|
+
type?: StringFieldFilterExact;
|
|
2535
|
+
status?: StringFieldFilterExact;
|
|
2536
|
+
}
|
|
2537
|
+
/** Filter options for listing billing profiles. */
|
|
2538
|
+
export interface ListBillingProfilesParamsFilter {
|
|
2539
|
+
id?: UlidFieldFilter;
|
|
2540
|
+
name?: StringFieldFilter;
|
|
2541
|
+
}
|
|
2530
2542
|
/** Filter options for listing features. */
|
|
2531
2543
|
export interface ListFeatureParamsFilter {
|
|
2532
2544
|
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
|
*
|