@openmeter/client 1.0.0-beta-622df7843cd1 → 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 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 | HTTP | Description |
328
- | ------------------ | ----------------------------- | --------------------- |
329
- | `client.apps.list` | `GET /openmeter/apps` | List installed 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. |
@@ -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';
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.0.0-beta-622df7843cd1";
1
+ export declare const SDK_VERSION = "1.0.0-beta-d19fcbe4d82c";
@@ -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-622df7843cd1';
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;
@@ -1989,6 +1989,35 @@ 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>;
1992
2021
  export declare const listFeatureParamsFilter: z.ZodObject<{
1993
2022
  meterId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
1994
2023
  eq: z.ZodOptional<z.ZodString>;
@@ -23069,6 +23098,39 @@ export declare const listAppsQueryParams: z.ZodObject<{
23069
23098
  size: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
23070
23099
  number: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
23071
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>>;
23072
23134
  }, z.core.$strip>;
23073
23135
  export declare const listAppsResponse: z.ZodObject<{
23074
23136
  data: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -32295,6 +32357,35 @@ export declare const listSubscriptionsParamsFilterWire: z.ZodObject<{
32295
32357
  neq: z.ZodOptional<z.ZodString>;
32296
32358
  }, z.core.$strict>]>>;
32297
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>;
32298
32389
  export declare const listFeatureParamsFilterWire: z.ZodObject<{
32299
32390
  meter_id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
32300
32391
  eq: z.ZodOptional<z.ZodString>;
@@ -53357,6 +53448,36 @@ export declare const listAppsQueryParamsWire: z.ZodObject<{
53357
53448
  size: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
53358
53449
  number: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
53359
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>>;
53360
53481
  }, z.core.$strip>;
53361
53482
  export declare const listAppsResponseWire: z.ZodObject<{
53362
53483
  data: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -2695,6 +2695,14 @@ 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.');
2698
2706
  export const listFeatureParamsFilter = z
2699
2707
  .object({
2700
2708
  meterId: ulidFieldFilter.optional(),
@@ -5351,6 +5359,8 @@ export const listAppsQueryParams = z.object({
5351
5359
  })
5352
5360
  .optional()
5353
5361
  .describe('Determines which page of the collection to retrieve.'),
5362
+ sort: sortQuery.optional(),
5363
+ filter: listAppsParamsFilter.optional(),
5354
5364
  });
5355
5365
  export const listAppsResponse = z.object({
5356
5366
  data: z.array(app),
@@ -8443,6 +8453,14 @@ export const listSubscriptionsParamsFilterWire = z
8443
8453
  plan_key: stringFieldFilterExactWire.optional(),
8444
8454
  })
8445
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.');
8446
8464
  export const listFeatureParamsFilterWire = z
8447
8465
  .strictObject({
8448
8466
  meter_id: ulidFieldFilterWire.optional(),
@@ -11115,6 +11133,11 @@ export const listAppsQueryParamsWire = z.object({
11115
11133
  })
11116
11134
  .optional()
11117
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(),
11118
11141
  });
11119
11142
  export const listAppsResponseWire = z.strictObject({
11120
11143
  data: z.array(appWire),
@@ -2527,6 +2527,13 @@ 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
+ }
2530
2537
  /** Filter options for listing features. */
2531
2538
  export interface ListFeatureParamsFilter {
2532
2539
  meterId?: UlidFieldFilter;
@@ -1,28 +1,9 @@
1
1
  import { type Client } from '../core.js';
2
2
  import { type RequestOptions } from '../lib/types.js';
3
- import type { ListAppsRequest, ListAppsResponse, GetAppRequest, GetAppResponse } from '../models/operations/apps.js';
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 { paginatePages } from '../lib/paginate.js';
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
  *
@@ -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
  *
@@ -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
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openmeter/client",
3
- "version": "1.0.0-beta-622df7843cd1",
3
+ "version": "1.0.0-beta-d19fcbe4d82c",
4
4
  "description": "Official TypeScript SDK for the OpenMeter API — usage metering and billing",
5
5
  "keywords": [
6
6
  "openmeter",