@openmeter/client 1.0.0-beta-b368460567b6 → 1.0.0-beta-da4b7edd9544

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
@@ -423,6 +423,7 @@ they can change or be removed without notice or semver consideration.
423
423
  | `client.internal.apps.list` | `GET /openmeter/apps` | List installed apps. |
424
424
  | `client.internal.apps.get` | `GET /openmeter/apps/{appId}` | Get an installed app. |
425
425
  | `client.internal.apps.uninstall` | `DELETE /openmeter/apps/{appId}` | Uninstall an app by ID. |
426
+ | `client.internal.apps.update` | `PUT /openmeter/apps/{appId}` | Update an installed app. |
426
427
  | `client.internal.apps.listCatalog` | `GET /openmeter/app-catalog` | List available apps. |
427
428
  | `client.internal.apps.getCatalogItem` | `GET /openmeter/app-catalog/{appType}` | Get an app catalog item by type. |
428
429
  | `client.internal.apps.install` | `POST /openmeter/app-catalog/install` | Install an app from the catalog. |
@@ -1,6 +1,6 @@
1
1
  import { type Client } from '../core.js';
2
2
  import { type Result, type RequestOptions } from '../lib/types.js';
3
- import type { ListAppsRequest, ListAppsResponse, GetAppRequest, GetAppResponse, UninstallAppRequest, UninstallAppResponse, ListAppCatalogRequest, ListAppCatalogResponse, GetAppCatalogItemRequest, GetAppCatalogItemResponse, InstallAppRequest, InstallAppResponse } from '../models/operations/apps.js';
3
+ import type { ListAppsRequest, ListAppsResponse, GetAppRequest, GetAppResponse, UninstallAppRequest, UninstallAppResponse, UpdateAppRequest, UpdateAppResponse, ListAppCatalogRequest, ListAppCatalogResponse, GetAppCatalogItemRequest, GetAppCatalogItemResponse, InstallAppRequest, InstallAppResponse } from '../models/operations/apps.js';
4
4
  /**
5
5
  * List apps
6
6
  *
@@ -25,6 +25,14 @@ export declare function getApp(client: Client, req: GetAppRequest, options?: Req
25
25
  * DELETE /openmeter/apps/{appId}
26
26
  */
27
27
  export declare function uninstallApp(client: Client, req: UninstallAppRequest, options?: RequestOptions): Promise<Result<UninstallAppResponse>>;
28
+ /**
29
+ * Update app
30
+ *
31
+ * Update an installed app.
32
+ *
33
+ * PUT /openmeter/apps/{appId}
34
+ */
35
+ export declare function updateApp(client: Client, req: UpdateAppRequest, options?: RequestOptions): Promise<Result<UpdateAppResponse>>;
28
36
  /**
29
37
  * List app catalog
30
38
  *
@@ -93,6 +93,45 @@ export function uninstallApp(client, req, options) {
93
93
  await http(client).delete(path, options);
94
94
  });
95
95
  }
96
+ /**
97
+ * Update app
98
+ *
99
+ * Update an installed app.
100
+ *
101
+ * PUT /openmeter/apps/{appId}
102
+ */
103
+ export function updateApp(client, req, options) {
104
+ return request(() => {
105
+ const pathParamsInput = {
106
+ appId: req.appId,
107
+ };
108
+ const pathParams = client._options.validate
109
+ ? toPathWire(pathParamsInput, schemas.updateAppPathParams)
110
+ : pathParamsInput;
111
+ if (client._options.validate) {
112
+ assertValid(schemas.updateAppPathParamsWire, pathParams);
113
+ }
114
+ const path = `openmeter/apps/${(() => {
115
+ if (pathParams.appId === undefined) {
116
+ throw new Error('missing path parameter: appId');
117
+ }
118
+ return encodeURIComponent(String(pathParams.appId));
119
+ })()}`;
120
+ const body = toWire(req.body, schemas.updateAppBody);
121
+ if (client._options.validate) {
122
+ assertValid(schemas.updateAppBodyWire, body);
123
+ }
124
+ return http(client)
125
+ .put(path, { ...options, json: body })
126
+ .json()
127
+ .then((data) => {
128
+ if (client._options.validate) {
129
+ assertValid(schemas.updateAppResponseWire, data);
130
+ }
131
+ return fromWire(data, schemas.updateAppResponse);
132
+ });
133
+ });
134
+ }
96
135
  /**
97
136
  * List app catalog
98
137
  *
package/dist/index.d.ts CHANGED
@@ -40,4 +40,4 @@ export type * from './models/operations/addons.js';
40
40
  export type * from './models/operations/planAddons.js';
41
41
  export type * from './models/operations/defaults.js';
42
42
  export type * from './models/operations/governance.js';
43
- export type { Labels, CursorPaginationQueryPage, SortQuery, IngestedEventValidationError, CursorMetaPage, BaseError, PageMeta, QueryFilterString, AppStripeCheckoutSessionCustomTextParams, AppStripeCreateCustomerPortalSessionOptions, CreateLabels, TaxConfigStripe, TaxConfigExternalInvoicing, ChargeFlatFeeDiscounts, PriceFree, RateCardStaticEntitlement, RateCardBooleanEntitlement, InstallAppStripeWithApiKey, InstallAppSandbox, InstallAppExternalInvoicing, WorkflowCollectionAlignmentSubscription, WorkflowPaymentChargeAutomaticallySettings, WorkflowPaymentSendInvoiceSettings, InvoiceExternalReferences, InvoiceAvailableActionDetails, InvoiceWorkflowInvoicingSettings, InvoiceLineExternalReferences, UpdateLabels, UpdateBillingInvoiceWorkflowInvoicingSettings, UpdateBillingWorkflowPaymentChargeAutomaticallySettings, UpdateBillingWorkflowPaymentSendInvoiceSettings, UpdatePriceFree, LlmCostProvider, LlmCostModel, ProductCatalogValidationError, GovernanceQueryRequestCustomers, GovernanceQueryRequestFeatures, QueryFilterInteger, QueryFilterFloat, QueryFilterBoolean, PagePaginationQuery, PublicLabels, SystemAccountAccessToken, PersonalAccessToken, KonnectAccessToken, AppCustomerDataStripe, AppCustomerDataExternalInvoicing, CurrencyFiat, ListCostBasesParamsFilter, CurrencyAmount, PriceFlat, PriceUnit, RateCardDiscounts, Totals, SpendCommitments, InvoiceLineCreditsApplied, UpdatePriceFlat, UpdatePriceUnit, UpdateDiscounts, FeatureManualUnitCost, FeatureLlmUnitCostPricing, LlmCostModelPricing, QueryFilterNumeric, CursorPaginationQuery, ListMetersParamsFilter, ListLlmCostPricesParamsFilter, LabelsFieldFilter, CustomerReference, ProfileReference, CreateResourceReference, TaxCodeReference, CreditGrantInvoiceReference, BillingCustomerReference, SubscriptionReference, AddonReference, FeatureReference, AppReference, ChargeReference, UpdateResourceReference, Event, MeterQueryRow, AppStripeCreateCustomerPortalSessionResult, 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, UpsertPlanAddonRequest, ResourceWithKey, Meter, PaginatedMeta, QueryFilterStringMapItem, CustomerKeyReference, CustomerUsageAttribution, UpdateCustomerUsageAttribution, Address, UpdateAddress, AppStripeCreateCheckoutSessionCustomerUpdate, AppStripeCreateCheckoutSessionConsentCollectionPaymentMethodReuseAgreement, AppStripeCreateCheckoutSessionTaxIdCollection, AppStripeCreateCheckoutSessionResult, CustomerStripeCreateCustomerPortalSessionRequest, EntitlementAccessResult, CreateCreditGrantPurchase, RateCardMeteredEntitlement, RecurringPeriod, CreditGrantPurchase, ListCreditGrantsParamsFilter, GetCreditBalanceParamsFilter, ListChargesParamsFilter, ListPlansParamsFilter, SubscriptionCreate, RateCardProrationConfiguration, Subscription, UnitConfig, TaxCodeAppMapping, AppCapability, PartyTaxIdentity, UpdateBillingPartyTaxIdentity, WorkflowInvoicingSettings, InvoiceValidationIssue, InvoiceAvailableActions, InvoiceLineAmountDiscount, InvoiceLineUsageDiscount, InvoiceLineBaseDiscount, ListCurrenciesParamsFilter, CreateCurrencyCustomRequest, GovernanceQueryRequest, GovernanceFeatureAccessReason, GovernanceQueryError, AppCustomerData, UpsertAppCustomerDataRequest, CreditAdjustment, CreditBalance, ListCreditTransactionsParamsFilter, CreditTransaction, PriceTier, ChargeTotals, UpdatePriceTier, FeatureLlmUnitCost, LlmCostPrice, LlmCostOverrideCreate, ListCustomersParamsFilter, ListSubscriptionsParamsFilter, ListFeatureParamsFilter, ListAddonsParamsFilter, CreateCreditGrantTaxConfig, CreditGrantTaxConfig, TaxConfig, RateCardTaxConfig, OrganizationDefaultTaxCodes, PlanAddon, ProfileAppReferences, InvoiceWorkflowAppsReferences, UpdateRateCardTaxConfig, ListEventsParamsFilter, ListInvoicesParamsFilter, ResourceFilters, FieldFilters, IngestedEvent, MeterQueryResult, CurrencyCustom, FeatureCostQueryResult, MeterPagePaginatedResponse, CostBasisPagePaginatedResponse, MeterQueryFilters, FeatureMeterReference, Customer, PartyAddresses, InvoiceCustomer, UpdateBillingPartyAddresses, UpdateInvoiceCustomer, AppStripeCreateCheckoutSessionConsentCollection, ListCustomerEntitlementAccessResponseData, WorkflowCollectionAlignmentAnchored, ChargeFlatFeeSystemIntent, SubscriptionPagePaginatedResponse, SubscriptionChangeResponse, SubscriptionCancel, SubscriptionChange, InvoiceUsageQuantityDetail, TaxCode, AppCatalogItem, InvoiceWorkflow, InvoiceStatusDetails, InvoiceLineDiscounts, UpdateBillingInvoiceWorkflow, GovernanceFeatureAccess, CustomerData, UpsertCustomerBillingDataRequest, CreditBalances, CreditTransactionPaginatedResponse, PriceGraduated, PriceVolume, UpdatePriceGraduated, UpdatePriceVolume, PricePagePaginatedResponse, CreditGrant, CreateChargeFlatFeeRequest, WorkflowTaxSettings, PlanAddonPagePaginatedResponse, IngestedEventPaginatedResponse, InvalidParameters, MeterQueryRequest, CustomerPagePaginatedResponse, Party, Supplier, UpdateSupplier, AppStripeCreateCheckoutSessionRequestOptions, TaxCodePagePaginatedResponse, AppStripe, AppSandbox, AppExternalInvoicing, AppCatalogItemPagePaginatedResponse, InvoiceWorkflowSettings, InvoiceDetailedLine, UpdateInvoiceWorkflowSettings, GovernanceQueryResult, Feature, CreditGrantPagePaginatedResponse, CurrencyPagePaginatedResponse, BadRequest, InvoiceBase, CustomerStripeCreateCheckoutSessionRequest, WorkflowCollectionSettings, GovernanceQueryResponse, ChargeFlatFee, ChargeUsageBasedSystemIntent, CreateChargeUsageBasedRequest, RateCard, InvoiceLineRateCard, UpdateInvoiceLineRateCard, FeaturePagePaginatedResponse, Workflow, AppPagePaginatedResponse, BillingInstallAppResponse, ProfileApps, ChargeUsageBased, SubscriptionAddonRateCard, PlanPhase, Addon, UpsertAddonRequest, InvoiceStandardLine, UpdateInvoiceStandardLine, Profile, UpsertBillingProfileRequest, SubscriptionAddon, Plan, UpsertPlanRequest, AddonPagePaginatedResponse, ProfilePagePaginatedResponse, ChargePagePaginatedResponse, SubscriptionAddonPagePaginatedResponse, PlanPagePaginatedResponse, InvoiceStandard, UpdateInvoiceStandardRequest, InvoicePagePaginatedResponse, StringFieldFilter, MeterAggregation, MeterQueryGranularity, StringFieldFilterExact, PricePaymentTerm, BillingCurrencyCode, CreateCurrencyCode, UlidFieldFilter, DateTimeFieldFilter, SubscriptionEditTiming, WorkflowPaymentSettings, UpdateBillingWorkflowPaymentSettings, InvalidParameter, RateCardEntitlement, FeatureUnitCost, Currency, WorkflowCollectionAlignment, Price, UpdatePrice, App, CreateChargeRequest, Charge, InvoiceLine, UpdateInvoiceLine, Invoice, SortQueryInput, BaseErrorInput, WorkflowPaymentSendInvoiceSettingsInput, InvoiceWorkflowInvoicingSettingsInput, UpdateBillingInvoiceWorkflowInvoicingSettingsInput, UpdateBillingWorkflowPaymentSendInvoiceSettingsInput, EventInput, UnauthorizedInput, ForbiddenInput, NotFoundInput, GoneInput, ConflictInput, PayloadTooLargeInput, UnsupportedMediaTypeInput, UnprocessableContentInput, TooManyRequestsInput, InternalInput, NotImplementedInput, NotAvailableInput, AppStripeCreateCheckoutSessionCustomerUpdateInput, AppStripeCreateCheckoutSessionTaxIdCollectionInput, CreateCreditGrantPurchaseInput, RateCardMeteredEntitlementInput, CreditGrantPurchaseInput, VoidCreditGrantRequestInput, UnitConfigInput, WorkflowInvoicingSettingsInput, GovernanceQueryRequestInput, IngestedEventInput, SubscriptionCancelInput, InvoiceUsageQuantityDetailInput, InvoiceWorkflowInput, UpdateBillingInvoiceWorkflowInput, CreateCreditGrantRequestInput, CreditGrantInput, WorkflowTaxSettingsInput, IngestedEventPaginatedResponseInput, MeterQueryRequestInput, AppStripeCreateCheckoutSessionRequestOptionsInput, InvoiceWorkflowSettingsInput, InvoiceDetailedLineInput, UpdateInvoiceWorkflowSettingsInput, CreditGrantPagePaginatedResponseInput, BadRequestInput, CustomerStripeCreateCheckoutSessionRequestInput, WorkflowCollectionSettingsInput, RateCardInput, InvoiceLineRateCardInput, WorkflowInput, SubscriptionAddonRateCardInput, PlanPhaseInput, AddonInput, CreateAddonRequestInput, UpsertAddonRequestInput, InvoiceStandardLineInput, ProfileInput, CreateBillingProfileRequestInput, UpsertBillingProfileRequestInput, SubscriptionAddonInput, PlanInput, CreatePlanRequestInput, UpsertPlanRequestInput, AddonPagePaginatedResponseInput, ProfilePagePaginatedResponseInput, SubscriptionAddonPagePaginatedResponseInput, PlanPagePaginatedResponseInput, InvoiceStandardInput, UpdateInvoiceStandardRequestInput, InvoicePagePaginatedResponseInput, WorkflowPaymentSettingsInput, UpdateBillingWorkflowPaymentSettingsInput, RateCardEntitlementInput, InvoiceLineInput, InvoiceInput, UpdateInvoiceRequestInput, } from './models/types.js';
43
+ export type { Labels, CursorPaginationQueryPage, SortQuery, IngestedEventValidationError, CursorMetaPage, BaseError, PageMeta, QueryFilterString, AppStripeCheckoutSessionCustomTextParams, AppStripeCreateCustomerPortalSessionOptions, CreateLabels, TaxConfigStripe, TaxConfigExternalInvoicing, ChargeFlatFeeDiscounts, PriceFree, RateCardStaticEntitlement, RateCardBooleanEntitlement, UpdateLabels, InstallAppStripeWithApiKey, InstallAppSandbox, InstallAppExternalInvoicing, WorkflowCollectionAlignmentSubscription, WorkflowPaymentChargeAutomaticallySettings, WorkflowPaymentSendInvoiceSettings, InvoiceExternalReferences, InvoiceAvailableActionDetails, InvoiceWorkflowInvoicingSettings, InvoiceLineExternalReferences, UpdateBillingInvoiceWorkflowInvoicingSettings, UpdateBillingWorkflowPaymentChargeAutomaticallySettings, UpdateBillingWorkflowPaymentSendInvoiceSettings, UpdatePriceFree, LlmCostProvider, LlmCostModel, ProductCatalogValidationError, GovernanceQueryRequestCustomers, GovernanceQueryRequestFeatures, QueryFilterInteger, QueryFilterFloat, QueryFilterBoolean, PagePaginationQuery, PublicLabels, SystemAccountAccessToken, PersonalAccessToken, KonnectAccessToken, AppCustomerDataStripe, AppCustomerDataExternalInvoicing, CurrencyFiat, ListCostBasesParamsFilter, CurrencyAmount, PriceFlat, PriceUnit, RateCardDiscounts, Totals, SpendCommitments, InvoiceLineCreditsApplied, UpdatePriceFlat, UpdatePriceUnit, UpdateDiscounts, FeatureManualUnitCost, FeatureLlmUnitCostPricing, LlmCostModelPricing, QueryFilterNumeric, CursorPaginationQuery, ListMetersParamsFilter, ListLlmCostPricesParamsFilter, LabelsFieldFilter, CustomerReference, ProfileReference, CreateResourceReference, TaxCodeReference, CreditGrantInvoiceReference, BillingCustomerReference, SubscriptionReference, AddonReference, FeatureReference, AppReference, ChargeReference, UpdateResourceReference, Event, MeterQueryRow, AppStripeCreateCustomerPortalSessionResult, 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, UpsertPlanAddonRequest, ResourceWithKey, Meter, PaginatedMeta, QueryFilterStringMapItem, CustomerKeyReference, CustomerUsageAttribution, UpdateCustomerUsageAttribution, Address, UpdateAddress, AppStripeCreateCheckoutSessionCustomerUpdate, AppStripeCreateCheckoutSessionConsentCollectionPaymentMethodReuseAgreement, AppStripeCreateCheckoutSessionTaxIdCollection, AppStripeCreateCheckoutSessionResult, CustomerStripeCreateCustomerPortalSessionRequest, EntitlementAccessResult, CreateCreditGrantPurchase, RateCardMeteredEntitlement, RecurringPeriod, CreditGrantPurchase, ListCreditGrantsParamsFilter, GetCreditBalanceParamsFilter, ListChargesParamsFilter, ListPlansParamsFilter, SubscriptionCreate, RateCardProrationConfiguration, Subscription, UnitConfig, TaxCodeAppMapping, AppCapability, UpdateAppStripeRequest, UpdateAppSandboxRequest, UpdateAppExternalInvoicingRequest, PartyTaxIdentity, UpdateBillingPartyTaxIdentity, WorkflowInvoicingSettings, InvoiceValidationIssue, InvoiceAvailableActions, InvoiceLineAmountDiscount, InvoiceLineUsageDiscount, InvoiceLineBaseDiscount, ListCurrenciesParamsFilter, CreateCurrencyCustomRequest, GovernanceQueryRequest, GovernanceFeatureAccessReason, GovernanceQueryError, AppCustomerData, UpsertAppCustomerDataRequest, CreditAdjustment, CreditBalance, ListCreditTransactionsParamsFilter, CreditTransaction, PriceTier, ChargeTotals, UpdatePriceTier, FeatureLlmUnitCost, LlmCostPrice, LlmCostOverrideCreate, ListCustomersParamsFilter, ListSubscriptionsParamsFilter, ListFeatureParamsFilter, ListAddonsParamsFilter, CreateCreditGrantTaxConfig, CreditGrantTaxConfig, TaxConfig, RateCardTaxConfig, OrganizationDefaultTaxCodes, PlanAddon, ProfileAppReferences, InvoiceWorkflowAppsReferences, UpdateRateCardTaxConfig, ListEventsParamsFilter, ListInvoicesParamsFilter, ResourceFilters, FieldFilters, IngestedEvent, MeterQueryResult, CurrencyCustom, FeatureCostQueryResult, MeterPagePaginatedResponse, CostBasisPagePaginatedResponse, MeterQueryFilters, FeatureMeterReference, Customer, PartyAddresses, InvoiceCustomer, UpdateBillingPartyAddresses, UpdateInvoiceCustomer, AppStripeCreateCheckoutSessionConsentCollection, ListCustomerEntitlementAccessResponseData, WorkflowCollectionAlignmentAnchored, ChargeFlatFeeSystemIntent, SubscriptionPagePaginatedResponse, SubscriptionChangeResponse, SubscriptionCancel, SubscriptionChange, InvoiceUsageQuantityDetail, TaxCode, AppCatalogItem, InvoiceWorkflow, InvoiceStatusDetails, InvoiceLineDiscounts, UpdateBillingInvoiceWorkflow, GovernanceFeatureAccess, CustomerData, UpsertCustomerBillingDataRequest, CreditBalances, CreditTransactionPaginatedResponse, PriceGraduated, PriceVolume, UpdatePriceGraduated, UpdatePriceVolume, PricePagePaginatedResponse, CreditGrant, CreateChargeFlatFeeRequest, WorkflowTaxSettings, PlanAddonPagePaginatedResponse, IngestedEventPaginatedResponse, InvalidParameters, MeterQueryRequest, CustomerPagePaginatedResponse, Party, Supplier, UpdateSupplier, AppStripeCreateCheckoutSessionRequestOptions, TaxCodePagePaginatedResponse, AppStripe, AppSandbox, AppExternalInvoicing, AppCatalogItemPagePaginatedResponse, InvoiceWorkflowSettings, InvoiceDetailedLine, UpdateInvoiceWorkflowSettings, GovernanceQueryResult, Feature, CreditGrantPagePaginatedResponse, CurrencyPagePaginatedResponse, BadRequest, InvoiceBase, CustomerStripeCreateCheckoutSessionRequest, WorkflowCollectionSettings, GovernanceQueryResponse, ChargeFlatFee, ChargeUsageBasedSystemIntent, CreateChargeUsageBasedRequest, RateCard, InvoiceLineRateCard, UpdateInvoiceLineRateCard, FeaturePagePaginatedResponse, Workflow, AppPagePaginatedResponse, BillingInstallAppResponse, ProfileApps, ChargeUsageBased, SubscriptionAddonRateCard, PlanPhase, Addon, UpsertAddonRequest, InvoiceStandardLine, UpdateInvoiceStandardLine, Profile, UpsertBillingProfileRequest, SubscriptionAddon, Plan, UpsertPlanRequest, AddonPagePaginatedResponse, ProfilePagePaginatedResponse, ChargePagePaginatedResponse, SubscriptionAddonPagePaginatedResponse, PlanPagePaginatedResponse, InvoiceStandard, UpdateInvoiceStandardRequest, InvoicePagePaginatedResponse, StringFieldFilter, MeterAggregation, MeterQueryGranularity, StringFieldFilterExact, PricePaymentTerm, BillingCurrencyCode, CreateCurrencyCode, UlidFieldFilter, DateTimeFieldFilter, SubscriptionEditTiming, WorkflowPaymentSettings, UpdateBillingWorkflowPaymentSettings, InvalidParameter, RateCardEntitlement, FeatureUnitCost, Currency, WorkflowCollectionAlignment, Price, UpdatePrice, App, CreateChargeRequest, Charge, InvoiceLine, UpdateInvoiceLine, Invoice, SortQueryInput, BaseErrorInput, WorkflowPaymentSendInvoiceSettingsInput, InvoiceWorkflowInvoicingSettingsInput, UpdateBillingInvoiceWorkflowInvoicingSettingsInput, UpdateBillingWorkflowPaymentSendInvoiceSettingsInput, EventInput, UnauthorizedInput, ForbiddenInput, NotFoundInput, GoneInput, ConflictInput, PayloadTooLargeInput, UnsupportedMediaTypeInput, UnprocessableContentInput, TooManyRequestsInput, InternalInput, NotImplementedInput, NotAvailableInput, AppStripeCreateCheckoutSessionCustomerUpdateInput, AppStripeCreateCheckoutSessionTaxIdCollectionInput, CreateCreditGrantPurchaseInput, RateCardMeteredEntitlementInput, CreditGrantPurchaseInput, VoidCreditGrantRequestInput, UnitConfigInput, WorkflowInvoicingSettingsInput, GovernanceQueryRequestInput, IngestedEventInput, SubscriptionCancelInput, InvoiceUsageQuantityDetailInput, InvoiceWorkflowInput, UpdateBillingInvoiceWorkflowInput, CreateCreditGrantRequestInput, CreditGrantInput, WorkflowTaxSettingsInput, IngestedEventPaginatedResponseInput, MeterQueryRequestInput, AppStripeCreateCheckoutSessionRequestOptionsInput, InvoiceWorkflowSettingsInput, InvoiceDetailedLineInput, UpdateInvoiceWorkflowSettingsInput, CreditGrantPagePaginatedResponseInput, BadRequestInput, CustomerStripeCreateCheckoutSessionRequestInput, WorkflowCollectionSettingsInput, RateCardInput, InvoiceLineRateCardInput, WorkflowInput, SubscriptionAddonRateCardInput, PlanPhaseInput, AddonInput, CreateAddonRequestInput, UpsertAddonRequestInput, InvoiceStandardLineInput, ProfileInput, CreateBillingProfileRequestInput, UpsertBillingProfileRequestInput, SubscriptionAddonInput, PlanInput, CreatePlanRequestInput, UpsertPlanRequestInput, AddonPagePaginatedResponseInput, ProfilePagePaginatedResponseInput, SubscriptionAddonPagePaginatedResponseInput, PlanPagePaginatedResponseInput, InvoiceStandardInput, UpdateInvoiceStandardRequestInput, InvoicePagePaginatedResponseInput, WorkflowPaymentSettingsInput, UpdateBillingWorkflowPaymentSettingsInput, RateCardEntitlementInput, InvoiceLineInput, InvoiceInput, UpdateInvoiceRequestInput, } from './models/types.js';
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.0.0-beta-b368460567b6";
1
+ export declare const SDK_VERSION = "1.0.0-beta-da4b7edd9544";
@@ -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-b368460567b6';
5
+ export const SDK_VERSION = '1.0.0-beta-da4b7edd9544';
@@ -1,5 +1,5 @@
1
1
  import type { AcceptDateStrings } from '../../lib/wire.js';
2
- import type { App, AppCatalogItem, AppCatalogItemPagePaginatedResponse, AppPagePaginatedResponse, BillingInstallAppResponse, InstallAppRequest as InstallAppRequestBody } from '../types.js';
2
+ import type { App, AppCatalogItem, AppCatalogItemPagePaginatedResponse, AppPagePaginatedResponse, BillingInstallAppResponse, InstallAppRequest as InstallAppRequestBody, UpdateAppRequest as UpdateAppRequestBody } from '../types.js';
3
3
  export interface ListAppsQuery {
4
4
  /** Determines which page of the collection to retrieve. */
5
5
  page?: {
@@ -17,6 +17,11 @@ export type UninstallAppRequest = {
17
17
  appId: string;
18
18
  };
19
19
  export type UninstallAppResponse = void;
20
+ export type UpdateAppRequest = AcceptDateStrings<{
21
+ appId: string;
22
+ body: UpdateAppRequestBody;
23
+ }>;
24
+ export type UpdateAppResponse = App;
20
25
  export interface ListAppCatalogQuery {
21
26
  /** Determines which page of the collection to retrieve. */
22
27
  page?: {
@@ -290,6 +290,7 @@ export declare const appStatus: z.ZodEnum<{
290
290
  ready: "ready";
291
291
  unauthorized: "unauthorized";
292
292
  }>;
293
+ export declare const updateLabels: z.ZodRecord<z.ZodString, z.ZodString>;
293
294
  export declare const installAppStripeWithApiKey: z.ZodObject<{
294
295
  type: z.ZodLiteral<"stripe">;
295
296
  name: z.ZodString;
@@ -360,7 +361,6 @@ export declare const invoiceDetailedLineCostCategory: z.ZodEnum<{
360
361
  regular: "regular";
361
362
  commitment: "commitment";
362
363
  }>;
363
- export declare const updateLabels: z.ZodRecord<z.ZodString, z.ZodString>;
364
364
  export declare const updateBillingInvoiceWorkflowInvoicingSettings: z.ZodObject<{
365
365
  autoAdvance: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
366
366
  draftPeriod: z.ZodDefault<z.ZodOptional<z.ZodString>>;
@@ -1425,6 +1425,27 @@ export declare const appCapability: z.ZodObject<{
1425
1425
  name: z.ZodString;
1426
1426
  description: z.ZodString;
1427
1427
  }, z.core.$strip>;
1428
+ export declare const updateAppStripeRequest: z.ZodObject<{
1429
+ name: z.ZodString;
1430
+ description: z.ZodOptional<z.ZodString>;
1431
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1432
+ type: z.ZodLiteral<"stripe">;
1433
+ secretApiKey: z.ZodOptional<z.ZodString>;
1434
+ }, z.core.$strip>;
1435
+ export declare const updateAppSandboxRequest: z.ZodObject<{
1436
+ name: z.ZodString;
1437
+ description: z.ZodOptional<z.ZodString>;
1438
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1439
+ type: z.ZodLiteral<"sandbox">;
1440
+ }, z.core.$strip>;
1441
+ export declare const updateAppExternalInvoicingRequest: z.ZodObject<{
1442
+ name: z.ZodString;
1443
+ description: z.ZodOptional<z.ZodString>;
1444
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1445
+ type: z.ZodLiteral<"external_invoicing">;
1446
+ enableDraftSyncHook: z.ZodBoolean;
1447
+ enableIssuingSyncHook: z.ZodBoolean;
1448
+ }, z.core.$strip>;
1428
1449
  export declare const installAppRequest: z.ZodDiscriminatedUnion<[z.ZodObject<{
1429
1450
  type: z.ZodLiteral<"stripe">;
1430
1451
  name: z.ZodString;
@@ -2923,6 +2944,25 @@ export declare const appCatalogItem: z.ZodObject<{
2923
2944
  no_credentials_required: "no_credentials_required";
2924
2945
  }>>;
2925
2946
  }, z.core.$strip>;
2947
+ export declare const updateAppRequest: z.ZodDiscriminatedUnion<[z.ZodObject<{
2948
+ name: z.ZodString;
2949
+ description: z.ZodOptional<z.ZodString>;
2950
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2951
+ type: z.ZodLiteral<"stripe">;
2952
+ secretApiKey: z.ZodOptional<z.ZodString>;
2953
+ }, z.core.$strip>, z.ZodObject<{
2954
+ name: z.ZodString;
2955
+ description: z.ZodOptional<z.ZodString>;
2956
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2957
+ type: z.ZodLiteral<"sandbox">;
2958
+ }, z.core.$strip>, z.ZodObject<{
2959
+ name: z.ZodString;
2960
+ description: z.ZodOptional<z.ZodString>;
2961
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2962
+ type: z.ZodLiteral<"external_invoicing">;
2963
+ enableDraftSyncHook: z.ZodBoolean;
2964
+ enableIssuingSyncHook: z.ZodBoolean;
2965
+ }, z.core.$strip>], "type">;
2926
2966
  export declare const invoiceWorkflow: z.ZodObject<{
2927
2967
  invoicing: z.ZodOptional<z.ZodObject<{
2928
2968
  autoAdvance: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
@@ -13674,6 +13714,151 @@ export declare const getAppResponse: z.ZodDiscriminatedUnion<[z.ZodObject<{
13674
13714
  export declare const uninstallAppPathParams: z.ZodObject<{
13675
13715
  appId: z.ZodString;
13676
13716
  }, z.core.$strip>;
13717
+ export declare const updateAppPathParams: z.ZodObject<{
13718
+ appId: z.ZodString;
13719
+ }, z.core.$strip>;
13720
+ export declare const updateAppBody: z.ZodDiscriminatedUnion<[z.ZodObject<{
13721
+ name: z.ZodString;
13722
+ description: z.ZodOptional<z.ZodString>;
13723
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
13724
+ type: z.ZodLiteral<"stripe">;
13725
+ secretApiKey: z.ZodOptional<z.ZodString>;
13726
+ }, z.core.$strip>, z.ZodObject<{
13727
+ name: z.ZodString;
13728
+ description: z.ZodOptional<z.ZodString>;
13729
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
13730
+ type: z.ZodLiteral<"sandbox">;
13731
+ }, z.core.$strip>, z.ZodObject<{
13732
+ name: z.ZodString;
13733
+ description: z.ZodOptional<z.ZodString>;
13734
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
13735
+ type: z.ZodLiteral<"external_invoicing">;
13736
+ enableDraftSyncHook: z.ZodBoolean;
13737
+ enableIssuingSyncHook: z.ZodBoolean;
13738
+ }, z.core.$strip>], "type">;
13739
+ export declare const updateAppResponse: z.ZodDiscriminatedUnion<[z.ZodObject<{
13740
+ id: z.ZodString;
13741
+ name: z.ZodString;
13742
+ description: z.ZodOptional<z.ZodString>;
13743
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
13744
+ createdAt: z.ZodDate;
13745
+ updatedAt: z.ZodDate;
13746
+ deletedAt: z.ZodOptional<z.ZodDate>;
13747
+ type: z.ZodLiteral<"stripe">;
13748
+ definition: z.ZodObject<{
13749
+ type: z.ZodEnum<{
13750
+ sandbox: "sandbox";
13751
+ stripe: "stripe";
13752
+ external_invoicing: "external_invoicing";
13753
+ }>;
13754
+ name: z.ZodString;
13755
+ description: z.ZodString;
13756
+ capabilities: z.ZodArray<z.ZodObject<{
13757
+ type: z.ZodEnum<{
13758
+ report_usage: "report_usage";
13759
+ report_events: "report_events";
13760
+ calculate_tax: "calculate_tax";
13761
+ invoice_customers: "invoice_customers";
13762
+ collect_payments: "collect_payments";
13763
+ }>;
13764
+ key: z.ZodString;
13765
+ name: z.ZodString;
13766
+ description: z.ZodString;
13767
+ }, z.core.$strip>>;
13768
+ installMethods: z.ZodArray<z.ZodEnum<{
13769
+ with_oauth2: "with_oauth2";
13770
+ with_api_key: "with_api_key";
13771
+ no_credentials_required: "no_credentials_required";
13772
+ }>>;
13773
+ }, z.core.$strip>;
13774
+ status: z.ZodEnum<{
13775
+ ready: "ready";
13776
+ unauthorized: "unauthorized";
13777
+ }>;
13778
+ accountId: z.ZodString;
13779
+ livemode: z.ZodBoolean;
13780
+ maskedApiKey: z.ZodString;
13781
+ }, z.core.$strip>, z.ZodObject<{
13782
+ id: z.ZodString;
13783
+ name: z.ZodString;
13784
+ description: z.ZodOptional<z.ZodString>;
13785
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
13786
+ createdAt: z.ZodDate;
13787
+ updatedAt: z.ZodDate;
13788
+ deletedAt: z.ZodOptional<z.ZodDate>;
13789
+ type: z.ZodLiteral<"sandbox">;
13790
+ definition: z.ZodObject<{
13791
+ type: z.ZodEnum<{
13792
+ sandbox: "sandbox";
13793
+ stripe: "stripe";
13794
+ external_invoicing: "external_invoicing";
13795
+ }>;
13796
+ name: z.ZodString;
13797
+ description: z.ZodString;
13798
+ capabilities: z.ZodArray<z.ZodObject<{
13799
+ type: z.ZodEnum<{
13800
+ report_usage: "report_usage";
13801
+ report_events: "report_events";
13802
+ calculate_tax: "calculate_tax";
13803
+ invoice_customers: "invoice_customers";
13804
+ collect_payments: "collect_payments";
13805
+ }>;
13806
+ key: z.ZodString;
13807
+ name: z.ZodString;
13808
+ description: z.ZodString;
13809
+ }, z.core.$strip>>;
13810
+ installMethods: z.ZodArray<z.ZodEnum<{
13811
+ with_oauth2: "with_oauth2";
13812
+ with_api_key: "with_api_key";
13813
+ no_credentials_required: "no_credentials_required";
13814
+ }>>;
13815
+ }, z.core.$strip>;
13816
+ status: z.ZodEnum<{
13817
+ ready: "ready";
13818
+ unauthorized: "unauthorized";
13819
+ }>;
13820
+ }, z.core.$strip>, z.ZodObject<{
13821
+ id: z.ZodString;
13822
+ name: z.ZodString;
13823
+ description: z.ZodOptional<z.ZodString>;
13824
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
13825
+ createdAt: z.ZodDate;
13826
+ updatedAt: z.ZodDate;
13827
+ deletedAt: z.ZodOptional<z.ZodDate>;
13828
+ type: z.ZodLiteral<"external_invoicing">;
13829
+ definition: z.ZodObject<{
13830
+ type: z.ZodEnum<{
13831
+ sandbox: "sandbox";
13832
+ stripe: "stripe";
13833
+ external_invoicing: "external_invoicing";
13834
+ }>;
13835
+ name: z.ZodString;
13836
+ description: z.ZodString;
13837
+ capabilities: z.ZodArray<z.ZodObject<{
13838
+ type: z.ZodEnum<{
13839
+ report_usage: "report_usage";
13840
+ report_events: "report_events";
13841
+ calculate_tax: "calculate_tax";
13842
+ invoice_customers: "invoice_customers";
13843
+ collect_payments: "collect_payments";
13844
+ }>;
13845
+ key: z.ZodString;
13846
+ name: z.ZodString;
13847
+ description: z.ZodString;
13848
+ }, z.core.$strip>>;
13849
+ installMethods: z.ZodArray<z.ZodEnum<{
13850
+ with_oauth2: "with_oauth2";
13851
+ with_api_key: "with_api_key";
13852
+ no_credentials_required: "no_credentials_required";
13853
+ }>>;
13854
+ }, z.core.$strip>;
13855
+ status: z.ZodEnum<{
13856
+ ready: "ready";
13857
+ unauthorized: "unauthorized";
13858
+ }>;
13859
+ enableDraftSyncHook: z.ZodBoolean;
13860
+ enableIssuingSyncHook: z.ZodBoolean;
13861
+ }, z.core.$strip>], "type">;
13677
13862
  export declare const listAppCatalogQueryParams: z.ZodObject<{
13678
13863
  page: z.ZodOptional<z.ZodObject<{
13679
13864
  size: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
@@ -20650,6 +20835,7 @@ export declare const appStatusWire: z.ZodEnum<{
20650
20835
  ready: "ready";
20651
20836
  unauthorized: "unauthorized";
20652
20837
  }>;
20838
+ export declare const updateLabelsWire: z.ZodRecord<z.ZodString, z.ZodString>;
20653
20839
  export declare const installAppStripeWithApiKeyWire: z.ZodObject<{
20654
20840
  type: z.ZodLiteral<"stripe">;
20655
20841
  name: z.ZodString;
@@ -20720,7 +20906,6 @@ export declare const invoiceDetailedLineCostCategoryWire: z.ZodEnum<{
20720
20906
  regular: "regular";
20721
20907
  commitment: "commitment";
20722
20908
  }>;
20723
- export declare const updateLabelsWire: z.ZodRecord<z.ZodString, z.ZodString>;
20724
20909
  export declare const updateBillingInvoiceWorkflowInvoicingSettingsWire: z.ZodObject<{
20725
20910
  auto_advance: z.ZodOptional<z.ZodBoolean>;
20726
20911
  draft_period: z.ZodOptional<z.ZodString>;
@@ -21785,6 +21970,27 @@ export declare const appCapabilityWire: z.ZodObject<{
21785
21970
  name: z.ZodString;
21786
21971
  description: z.ZodString;
21787
21972
  }, z.core.$strict>;
21973
+ export declare const updateAppStripeRequestWire: z.ZodObject<{
21974
+ name: z.ZodString;
21975
+ description: z.ZodOptional<z.ZodString>;
21976
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
21977
+ type: z.ZodLiteral<"stripe">;
21978
+ secret_api_key: z.ZodOptional<z.ZodString>;
21979
+ }, z.core.$strict>;
21980
+ export declare const updateAppSandboxRequestWire: z.ZodObject<{
21981
+ name: z.ZodString;
21982
+ description: z.ZodOptional<z.ZodString>;
21983
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
21984
+ type: z.ZodLiteral<"sandbox">;
21985
+ }, z.core.$strict>;
21986
+ export declare const updateAppExternalInvoicingRequestWire: z.ZodObject<{
21987
+ name: z.ZodString;
21988
+ description: z.ZodOptional<z.ZodString>;
21989
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
21990
+ type: z.ZodLiteral<"external_invoicing">;
21991
+ enable_draft_sync_hook: z.ZodBoolean;
21992
+ enable_issuing_sync_hook: z.ZodBoolean;
21993
+ }, z.core.$strict>;
21788
21994
  export declare const installAppRequestWire: z.ZodDiscriminatedUnion<[z.ZodObject<{
21789
21995
  type: z.ZodLiteral<"stripe">;
21790
21996
  name: z.ZodString;
@@ -23283,6 +23489,25 @@ export declare const appCatalogItemWire: z.ZodObject<{
23283
23489
  no_credentials_required: "no_credentials_required";
23284
23490
  }>>;
23285
23491
  }, z.core.$strict>;
23492
+ export declare const updateAppRequestWire: z.ZodDiscriminatedUnion<[z.ZodObject<{
23493
+ name: z.ZodString;
23494
+ description: z.ZodOptional<z.ZodString>;
23495
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
23496
+ type: z.ZodLiteral<"stripe">;
23497
+ secret_api_key: z.ZodOptional<z.ZodString>;
23498
+ }, z.core.$strict>, z.ZodObject<{
23499
+ name: z.ZodString;
23500
+ description: z.ZodOptional<z.ZodString>;
23501
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
23502
+ type: z.ZodLiteral<"sandbox">;
23503
+ }, z.core.$strict>, z.ZodObject<{
23504
+ name: z.ZodString;
23505
+ description: z.ZodOptional<z.ZodString>;
23506
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
23507
+ type: z.ZodLiteral<"external_invoicing">;
23508
+ enable_draft_sync_hook: z.ZodBoolean;
23509
+ enable_issuing_sync_hook: z.ZodBoolean;
23510
+ }, z.core.$strict>], "type">;
23286
23511
  export declare const invoiceWorkflowWire: z.ZodObject<{
23287
23512
  invoicing: z.ZodOptional<z.ZodObject<{
23288
23513
  auto_advance: z.ZodOptional<z.ZodBoolean>;
@@ -34016,6 +34241,151 @@ export declare const getAppResponseWire: z.ZodDiscriminatedUnion<[z.ZodObject<{
34016
34241
  export declare const uninstallAppPathParamsWire: z.ZodObject<{
34017
34242
  appId: z.ZodString;
34018
34243
  }, z.core.$strip>;
34244
+ export declare const updateAppPathParamsWire: z.ZodObject<{
34245
+ appId: z.ZodString;
34246
+ }, z.core.$strip>;
34247
+ export declare const updateAppBodyWire: z.ZodDiscriminatedUnion<[z.ZodObject<{
34248
+ name: z.ZodString;
34249
+ description: z.ZodOptional<z.ZodString>;
34250
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
34251
+ type: z.ZodLiteral<"stripe">;
34252
+ secret_api_key: z.ZodOptional<z.ZodString>;
34253
+ }, z.core.$strict>, z.ZodObject<{
34254
+ name: z.ZodString;
34255
+ description: z.ZodOptional<z.ZodString>;
34256
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
34257
+ type: z.ZodLiteral<"sandbox">;
34258
+ }, z.core.$strict>, z.ZodObject<{
34259
+ name: z.ZodString;
34260
+ description: z.ZodOptional<z.ZodString>;
34261
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
34262
+ type: z.ZodLiteral<"external_invoicing">;
34263
+ enable_draft_sync_hook: z.ZodBoolean;
34264
+ enable_issuing_sync_hook: z.ZodBoolean;
34265
+ }, z.core.$strict>], "type">;
34266
+ export declare const updateAppResponseWire: z.ZodDiscriminatedUnion<[z.ZodObject<{
34267
+ id: z.ZodString;
34268
+ name: z.ZodString;
34269
+ description: z.ZodOptional<z.ZodString>;
34270
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
34271
+ created_at: z.ZodString;
34272
+ updated_at: z.ZodString;
34273
+ deleted_at: z.ZodOptional<z.ZodString>;
34274
+ type: z.ZodLiteral<"stripe">;
34275
+ definition: z.ZodObject<{
34276
+ type: z.ZodEnum<{
34277
+ sandbox: "sandbox";
34278
+ stripe: "stripe";
34279
+ external_invoicing: "external_invoicing";
34280
+ }>;
34281
+ name: z.ZodString;
34282
+ description: z.ZodString;
34283
+ capabilities: z.ZodArray<z.ZodObject<{
34284
+ type: z.ZodEnum<{
34285
+ report_usage: "report_usage";
34286
+ report_events: "report_events";
34287
+ calculate_tax: "calculate_tax";
34288
+ invoice_customers: "invoice_customers";
34289
+ collect_payments: "collect_payments";
34290
+ }>;
34291
+ key: z.ZodString;
34292
+ name: z.ZodString;
34293
+ description: z.ZodString;
34294
+ }, z.core.$strict>>;
34295
+ install_methods: z.ZodArray<z.ZodEnum<{
34296
+ with_oauth2: "with_oauth2";
34297
+ with_api_key: "with_api_key";
34298
+ no_credentials_required: "no_credentials_required";
34299
+ }>>;
34300
+ }, z.core.$strict>;
34301
+ status: z.ZodEnum<{
34302
+ ready: "ready";
34303
+ unauthorized: "unauthorized";
34304
+ }>;
34305
+ account_id: z.ZodString;
34306
+ livemode: z.ZodBoolean;
34307
+ masked_api_key: z.ZodString;
34308
+ }, z.core.$strict>, z.ZodObject<{
34309
+ id: z.ZodString;
34310
+ name: z.ZodString;
34311
+ description: z.ZodOptional<z.ZodString>;
34312
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
34313
+ created_at: z.ZodString;
34314
+ updated_at: z.ZodString;
34315
+ deleted_at: z.ZodOptional<z.ZodString>;
34316
+ type: z.ZodLiteral<"sandbox">;
34317
+ definition: z.ZodObject<{
34318
+ type: z.ZodEnum<{
34319
+ sandbox: "sandbox";
34320
+ stripe: "stripe";
34321
+ external_invoicing: "external_invoicing";
34322
+ }>;
34323
+ name: z.ZodString;
34324
+ description: z.ZodString;
34325
+ capabilities: z.ZodArray<z.ZodObject<{
34326
+ type: z.ZodEnum<{
34327
+ report_usage: "report_usage";
34328
+ report_events: "report_events";
34329
+ calculate_tax: "calculate_tax";
34330
+ invoice_customers: "invoice_customers";
34331
+ collect_payments: "collect_payments";
34332
+ }>;
34333
+ key: z.ZodString;
34334
+ name: z.ZodString;
34335
+ description: z.ZodString;
34336
+ }, z.core.$strict>>;
34337
+ install_methods: z.ZodArray<z.ZodEnum<{
34338
+ with_oauth2: "with_oauth2";
34339
+ with_api_key: "with_api_key";
34340
+ no_credentials_required: "no_credentials_required";
34341
+ }>>;
34342
+ }, z.core.$strict>;
34343
+ status: z.ZodEnum<{
34344
+ ready: "ready";
34345
+ unauthorized: "unauthorized";
34346
+ }>;
34347
+ }, z.core.$strict>, z.ZodObject<{
34348
+ id: z.ZodString;
34349
+ name: z.ZodString;
34350
+ description: z.ZodOptional<z.ZodString>;
34351
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
34352
+ created_at: z.ZodString;
34353
+ updated_at: z.ZodString;
34354
+ deleted_at: z.ZodOptional<z.ZodString>;
34355
+ type: z.ZodLiteral<"external_invoicing">;
34356
+ definition: z.ZodObject<{
34357
+ type: z.ZodEnum<{
34358
+ sandbox: "sandbox";
34359
+ stripe: "stripe";
34360
+ external_invoicing: "external_invoicing";
34361
+ }>;
34362
+ name: z.ZodString;
34363
+ description: z.ZodString;
34364
+ capabilities: z.ZodArray<z.ZodObject<{
34365
+ type: z.ZodEnum<{
34366
+ report_usage: "report_usage";
34367
+ report_events: "report_events";
34368
+ calculate_tax: "calculate_tax";
34369
+ invoice_customers: "invoice_customers";
34370
+ collect_payments: "collect_payments";
34371
+ }>;
34372
+ key: z.ZodString;
34373
+ name: z.ZodString;
34374
+ description: z.ZodString;
34375
+ }, z.core.$strict>>;
34376
+ install_methods: z.ZodArray<z.ZodEnum<{
34377
+ with_oauth2: "with_oauth2";
34378
+ with_api_key: "with_api_key";
34379
+ no_credentials_required: "no_credentials_required";
34380
+ }>>;
34381
+ }, z.core.$strict>;
34382
+ status: z.ZodEnum<{
34383
+ ready: "ready";
34384
+ unauthorized: "unauthorized";
34385
+ }>;
34386
+ enable_draft_sync_hook: z.ZodBoolean;
34387
+ enable_issuing_sync_hook: z.ZodBoolean;
34388
+ }, z.core.$strict>], "type">;
34019
34389
  export declare const listAppCatalogQueryParamsWire: z.ZodObject<{
34020
34390
  page: z.ZodOptional<z.ZodObject<{
34021
34391
  size: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
@@ -511,6 +511,9 @@ export const appInstallMethods = z
511
511
  export const appStatus = z
512
512
  .enum(['ready', 'unauthorized'])
513
513
  .describe('Connection status of an installed app.');
514
+ export const updateLabels = z
515
+ .record(z.string(), z.string())
516
+ .describe('Labels store metadata of an entity that can be used for filtering an entity list or for searching across entity types. Keys must be of length 1-63 characters, and cannot start with "kong", "konnect", "mesh", "kic", or "\\_".');
514
517
  export const installAppStripeWithApiKey = z
515
518
  .object({
516
519
  type: z.literal('stripe').describe('Type of the app.'),
@@ -642,9 +645,6 @@ export const invoiceLineExternalReferences = z
642
645
  export const invoiceDetailedLineCostCategory = z
643
646
  .enum(['regular', 'commitment'])
644
647
  .describe('Cost category of a detailed invoice line item.');
645
- export const updateLabels = z
646
- .record(z.string(), z.string())
647
- .describe('Labels store metadata of an entity that can be used for filtering an entity list or for searching across entity types. Keys must be of length 1-63 characters, and cannot start with "kong", "konnect", "mesh", "kic", or "\\_".');
648
648
  export const updateBillingInvoiceWorkflowInvoicingSettings = z
649
649
  .object({
650
650
  autoAdvance: z
@@ -2077,6 +2077,64 @@ export const appCapability = z
2077
2077
  description: z.string().describe('Description of the capability.'),
2078
2078
  })
2079
2079
  .describe('App capability describes a function that an App can perform.');
2080
+ export const updateAppStripeRequest = z
2081
+ .object({
2082
+ name: z
2083
+ .string()
2084
+ .min(1)
2085
+ .max(256)
2086
+ .describe('Display name of the resource. Between 1 and 256 characters.'),
2087
+ description: z
2088
+ .string()
2089
+ .max(1024)
2090
+ .optional()
2091
+ .describe('Optional description of the resource. Maximum 1024 characters.'),
2092
+ labels: updateLabels.optional(),
2093
+ type: z.literal('stripe').describe('The app type.'),
2094
+ secretApiKey: z
2095
+ .string()
2096
+ .optional()
2097
+ .describe('The Stripe secret API key used to authenticate API requests.'),
2098
+ })
2099
+ .describe('AppStripe update request.');
2100
+ export const updateAppSandboxRequest = z
2101
+ .object({
2102
+ name: z
2103
+ .string()
2104
+ .min(1)
2105
+ .max(256)
2106
+ .describe('Display name of the resource. Between 1 and 256 characters.'),
2107
+ description: z
2108
+ .string()
2109
+ .max(1024)
2110
+ .optional()
2111
+ .describe('Optional description of the resource. Maximum 1024 characters.'),
2112
+ labels: updateLabels.optional(),
2113
+ type: z.literal('sandbox').describe('The app type.'),
2114
+ })
2115
+ .describe('AppSandbox update request.');
2116
+ export const updateAppExternalInvoicingRequest = z
2117
+ .object({
2118
+ name: z
2119
+ .string()
2120
+ .min(1)
2121
+ .max(256)
2122
+ .describe('Display name of the resource. Between 1 and 256 characters.'),
2123
+ description: z
2124
+ .string()
2125
+ .max(1024)
2126
+ .optional()
2127
+ .describe('Optional description of the resource. Maximum 1024 characters.'),
2128
+ labels: updateLabels.optional(),
2129
+ type: z.literal('external_invoicing').describe('The app type.'),
2130
+ enableDraftSyncHook: z
2131
+ .boolean()
2132
+ .describe('Enable draft synchronization hook. When enabled, invoices will pause at the draft state and wait for the integration to call the draft synchronized endpoint before progressing to the issuing state. This allows the external system to validate and prepare the invoice data. When disabled, invoices automatically progress through the draft state based on the configured workflow timing.'),
2133
+ enableIssuingSyncHook: z
2134
+ .boolean()
2135
+ .describe('Enable issuing synchronization hook. When enabled, invoices will pause at the issuing state and wait for the integration to call the issuing synchronized endpoint before progressing to the issued state. This ensures the external invoicing system has successfully created and finalized the invoice before it is marked as issued. When disabled, invoices automatically progress through the issuing state and are immediately marked as issued.'),
2136
+ })
2137
+ .describe('AppExternalInvoicing update request.');
2080
2138
  export const installAppRequest = z
2081
2139
  .discriminatedUnion('type', [
2082
2140
  installAppStripeWithApiKey,
@@ -3011,6 +3069,13 @@ export const appCatalogItem = z
3011
3069
  .describe('Available install methods of the app.'),
3012
3070
  })
3013
3071
  .describe('Available apps for billing integrations to connect with third-party services. Apps can have various capabilities like syncing data from or to external systems, integrating with third-party services for tax calculation, delivery of invoices, collection of payments, etc.');
3072
+ export const updateAppRequest = z
3073
+ .discriminatedUnion('type', [
3074
+ updateAppStripeRequest,
3075
+ updateAppSandboxRequest,
3076
+ updateAppExternalInvoicingRequest,
3077
+ ])
3078
+ .describe('Request to update an installed app.');
3014
3079
  export const invoiceWorkflow = z
3015
3080
  .object({
3016
3081
  invoicing: invoiceWorkflowInvoicingSettings.optional(),
@@ -4649,6 +4714,11 @@ export const getAppResponse = app;
4649
4714
  export const uninstallAppPathParams = z.object({
4650
4715
  appId: ulid,
4651
4716
  });
4717
+ export const updateAppPathParams = z.object({
4718
+ appId: ulid,
4719
+ });
4720
+ export const updateAppBody = updateAppRequest;
4721
+ export const updateAppResponse = app;
4652
4722
  export const listAppCatalogQueryParams = z.object({
4653
4723
  page: z
4654
4724
  .object({
@@ -5560,6 +5630,9 @@ export const appInstallMethodsWire = z
5560
5630
  export const appStatusWire = z
5561
5631
  .enum(['ready', 'unauthorized'])
5562
5632
  .describe('Connection status of an installed app.');
5633
+ export const updateLabelsWire = z
5634
+ .record(z.string(), z.string())
5635
+ .describe('Labels store metadata of an entity that can be used for filtering an entity list or for searching across entity types. Keys must be of length 1-63 characters, and cannot start with "kong", "konnect", "mesh", "kic", or "\\_".');
5563
5636
  export const installAppStripeWithApiKeyWire = z
5564
5637
  .strictObject({
5565
5638
  type: z.literal('stripe').describe('Type of the app.'),
@@ -5688,9 +5761,6 @@ export const invoiceLineExternalReferencesWire = z
5688
5761
  export const invoiceDetailedLineCostCategoryWire = z
5689
5762
  .enum(['regular', 'commitment'])
5690
5763
  .describe('Cost category of a detailed invoice line item.');
5691
- export const updateLabelsWire = z
5692
- .record(z.string(), z.string())
5693
- .describe('Labels store metadata of an entity that can be used for filtering an entity list or for searching across entity types. Keys must be of length 1-63 characters, and cannot start with "kong", "konnect", "mesh", "kic", or "\\_".');
5694
5764
  export const updateBillingInvoiceWorkflowInvoicingSettingsWire = z
5695
5765
  .strictObject({
5696
5766
  auto_advance: z
@@ -7102,6 +7172,64 @@ export const appCapabilityWire = z
7102
7172
  description: z.string().describe('Description of the capability.'),
7103
7173
  })
7104
7174
  .describe('App capability describes a function that an App can perform.');
7175
+ export const updateAppStripeRequestWire = z
7176
+ .strictObject({
7177
+ name: z
7178
+ .string()
7179
+ .min(1)
7180
+ .max(256)
7181
+ .describe('Display name of the resource. Between 1 and 256 characters.'),
7182
+ description: z
7183
+ .string()
7184
+ .max(1024)
7185
+ .optional()
7186
+ .describe('Optional description of the resource. Maximum 1024 characters.'),
7187
+ labels: updateLabelsWire.optional(),
7188
+ type: z.literal('stripe').describe('The app type.'),
7189
+ secret_api_key: z
7190
+ .string()
7191
+ .optional()
7192
+ .describe('The Stripe secret API key used to authenticate API requests.'),
7193
+ })
7194
+ .describe('AppStripe update request.');
7195
+ export const updateAppSandboxRequestWire = z
7196
+ .strictObject({
7197
+ name: z
7198
+ .string()
7199
+ .min(1)
7200
+ .max(256)
7201
+ .describe('Display name of the resource. Between 1 and 256 characters.'),
7202
+ description: z
7203
+ .string()
7204
+ .max(1024)
7205
+ .optional()
7206
+ .describe('Optional description of the resource. Maximum 1024 characters.'),
7207
+ labels: updateLabelsWire.optional(),
7208
+ type: z.literal('sandbox').describe('The app type.'),
7209
+ })
7210
+ .describe('AppSandbox update request.');
7211
+ export const updateAppExternalInvoicingRequestWire = z
7212
+ .strictObject({
7213
+ name: z
7214
+ .string()
7215
+ .min(1)
7216
+ .max(256)
7217
+ .describe('Display name of the resource. Between 1 and 256 characters.'),
7218
+ description: z
7219
+ .string()
7220
+ .max(1024)
7221
+ .optional()
7222
+ .describe('Optional description of the resource. Maximum 1024 characters.'),
7223
+ labels: updateLabelsWire.optional(),
7224
+ type: z.literal('external_invoicing').describe('The app type.'),
7225
+ enable_draft_sync_hook: z
7226
+ .boolean()
7227
+ .describe('Enable draft synchronization hook. When enabled, invoices will pause at the draft state and wait for the integration to call the draft synchronized endpoint before progressing to the issuing state. This allows the external system to validate and prepare the invoice data. When disabled, invoices automatically progress through the draft state based on the configured workflow timing.'),
7228
+ enable_issuing_sync_hook: z
7229
+ .boolean()
7230
+ .describe('Enable issuing synchronization hook. When enabled, invoices will pause at the issuing state and wait for the integration to call the issuing synchronized endpoint before progressing to the issued state. This ensures the external invoicing system has successfully created and finalized the invoice before it is marked as issued. When disabled, invoices automatically progress through the issuing state and are immediately marked as issued.'),
7231
+ })
7232
+ .describe('AppExternalInvoicing update request.');
7105
7233
  export const installAppRequestWire = z
7106
7234
  .discriminatedUnion('type', [
7107
7235
  installAppStripeWithApiKeyWire,
@@ -8032,6 +8160,13 @@ export const appCatalogItemWire = z
8032
8160
  .describe('Available install methods of the app.'),
8033
8161
  })
8034
8162
  .describe('Available apps for billing integrations to connect with third-party services. Apps can have various capabilities like syncing data from or to external systems, integrating with third-party services for tax calculation, delivery of invoices, collection of payments, etc.');
8163
+ export const updateAppRequestWire = z
8164
+ .discriminatedUnion('type', [
8165
+ updateAppStripeRequestWire,
8166
+ updateAppSandboxRequestWire,
8167
+ updateAppExternalInvoicingRequestWire,
8168
+ ])
8169
+ .describe('Request to update an installed app.');
8035
8170
  export const invoiceWorkflowWire = z
8036
8171
  .strictObject({
8037
8172
  invoicing: invoiceWorkflowInvoicingSettingsWire.optional(),
@@ -9689,6 +9824,11 @@ export const getAppResponseWire = appWire;
9689
9824
  export const uninstallAppPathParamsWire = z.object({
9690
9825
  appId: ulidWire,
9691
9826
  });
9827
+ export const updateAppPathParamsWire = z.object({
9828
+ appId: ulidWire,
9829
+ });
9830
+ export const updateAppBodyWire = updateAppRequestWire;
9831
+ export const updateAppResponseWire = appWire;
9692
9832
  export const listAppCatalogQueryParamsWire = z.object({
9693
9833
  page: z
9694
9834
  .strictObject({
@@ -188,6 +188,14 @@ export interface RateCardBooleanEntitlement {
188
188
  /** The type of the entitlement template. */
189
189
  type: 'boolean';
190
190
  }
191
+ /**
192
+ * Labels store metadata of an entity that can be used for filtering an entity list
193
+ * or for searching across entity types.
194
+ *
195
+ * Keys must be of length 1-63 characters, and cannot start with "kong", "konnect",
196
+ * "mesh", "kic", or "\_".
197
+ */
198
+ export type UpdateLabels = Record<string, string>;
191
199
  /** Model for installing an app from the catalog with an API key. */
192
200
  export interface InstallAppStripeWithApiKey {
193
201
  /** Type of the app. */
@@ -287,14 +295,6 @@ export interface InvoiceLineExternalReferences {
287
295
  /** The ID assigned by the external invoicing app. */
288
296
  invoicingId?: string;
289
297
  }
290
- /**
291
- * Labels store metadata of an entity that can be used for filtering an entity list
292
- * or for searching across entity types.
293
- *
294
- * Keys must be of length 1-63 characters, and cannot start with "kong", "konnect",
295
- * "mesh", "kic", or "\_".
296
- */
297
- export type UpdateLabels = Record<string, string>;
298
298
  /**
299
299
  * Invoice-level invoicing settings.
300
300
  *
@@ -1853,6 +1853,86 @@ export interface AppCapability {
1853
1853
  /** Description of the capability. */
1854
1854
  description: string;
1855
1855
  }
1856
+ /** AppStripe update request. */
1857
+ export interface UpdateAppStripeRequest {
1858
+ /**
1859
+ * Display name of the resource.
1860
+ *
1861
+ * Between 1 and 256 characters.
1862
+ */
1863
+ name: string;
1864
+ /**
1865
+ * Optional description of the resource.
1866
+ *
1867
+ * Maximum 1024 characters.
1868
+ */
1869
+ description?: string;
1870
+ labels?: UpdateLabels;
1871
+ /** The app type. */
1872
+ type: 'stripe';
1873
+ /** The Stripe secret API key used to authenticate API requests. */
1874
+ secretApiKey?: string;
1875
+ }
1876
+ /** AppSandbox update request. */
1877
+ export interface UpdateAppSandboxRequest {
1878
+ /**
1879
+ * Display name of the resource.
1880
+ *
1881
+ * Between 1 and 256 characters.
1882
+ */
1883
+ name: string;
1884
+ /**
1885
+ * Optional description of the resource.
1886
+ *
1887
+ * Maximum 1024 characters.
1888
+ */
1889
+ description?: string;
1890
+ labels?: UpdateLabels;
1891
+ /** The app type. */
1892
+ type: 'sandbox';
1893
+ }
1894
+ /** AppExternalInvoicing update request. */
1895
+ export interface UpdateAppExternalInvoicingRequest {
1896
+ /**
1897
+ * Display name of the resource.
1898
+ *
1899
+ * Between 1 and 256 characters.
1900
+ */
1901
+ name: string;
1902
+ /**
1903
+ * Optional description of the resource.
1904
+ *
1905
+ * Maximum 1024 characters.
1906
+ */
1907
+ description?: string;
1908
+ labels?: UpdateLabels;
1909
+ /** The app type. */
1910
+ type: 'external_invoicing';
1911
+ /**
1912
+ * Enable draft synchronization hook.
1913
+ *
1914
+ * When enabled, invoices will pause at the draft state and wait for the
1915
+ * integration to call the draft synchronized endpoint before progressing to the
1916
+ * issuing state. This allows the external system to validate and prepare the
1917
+ * invoice data.
1918
+ *
1919
+ * When disabled, invoices automatically progress through the draft state based on
1920
+ * the configured workflow timing.
1921
+ */
1922
+ enableDraftSyncHook: boolean;
1923
+ /**
1924
+ * Enable issuing synchronization hook.
1925
+ *
1926
+ * When enabled, invoices will pause at the issuing state and wait for the
1927
+ * integration to call the issuing synchronized endpoint before progressing to the
1928
+ * issued state. This ensures the external invoicing system has successfully
1929
+ * created and finalized the invoice before it is marked as issued.
1930
+ *
1931
+ * When disabled, invoices automatically progress through the issuing state and are
1932
+ * immediately marked as issued.
1933
+ */
1934
+ enableIssuingSyncHook: boolean;
1935
+ }
1856
1936
  /**
1857
1937
  * Identity stores the details required to identify an entity for tax purposes in a
1858
1938
  * specific country.
@@ -5096,6 +5176,8 @@ export type InvalidParameter = InvalidParameterStandard | InvalidParameterMinimu
5096
5176
  * rate card itself, so it is omitted here.
5097
5177
  */
5098
5178
  export type RateCardEntitlement = RateCardMeteredEntitlement | RateCardStaticEntitlement | RateCardBooleanEntitlement;
5179
+ /** Request to update an installed app. */
5180
+ export type UpdateAppRequest = UpdateAppStripeRequest | UpdateAppSandboxRequest | UpdateAppExternalInvoicingRequest;
5099
5181
  /**
5100
5182
  * Per-unit cost configuration for a feature. Either a fixed manual amount or a
5101
5183
  * dynamic LLM cost lookup.
@@ -1,7 +1,7 @@
1
1
  import { type Client } from '../core.js';
2
2
  import { type RequestOptions } from '../lib/types.js';
3
3
  import type { CreateSubscriptionAddonRequest, CreateSubscriptionAddonResponse } from '../models/operations/subscriptions.js';
4
- import type { ListAppsRequest, ListAppsResponse, GetAppRequest, GetAppResponse, UninstallAppRequest, UninstallAppResponse, ListAppCatalogRequest, ListAppCatalogResponse, GetAppCatalogItemRequest, GetAppCatalogItemResponse, InstallAppRequest, InstallAppResponse } from '../models/operations/apps.js';
4
+ import type { ListAppsRequest, ListAppsResponse, GetAppRequest, GetAppResponse, UninstallAppRequest, UninstallAppResponse, UpdateAppRequest, UpdateAppResponse, ListAppCatalogRequest, ListAppCatalogResponse, GetAppCatalogItemRequest, GetAppCatalogItemResponse, InstallAppRequest, InstallAppResponse } from '../models/operations/apps.js';
5
5
  import type { ListInvoicesRequest, ListInvoicesResponse, GetInvoiceRequest, GetInvoiceResponse, UpdateInvoiceRequest, UpdateInvoiceResponse, DeleteInvoiceRequest, DeleteInvoiceResponse, AdvanceInvoiceRequest, AdvanceInvoiceResponse, ApproveInvoiceRequest, ApproveInvoiceResponse, RetryInvoiceRequest, RetryInvoiceResponse, SnapshotQuantitiesInvoiceRequest, SnapshotQuantitiesInvoiceResponse } from '../models/operations/invoices.js';
6
6
  import type { ListCurrenciesRequest, ListCurrenciesResponse, CreateCustomCurrencyRequest, CreateCustomCurrencyResponse, GetCustomCurrencyRequest, GetCustomCurrencyResponse, ListCostBasesRequest, ListCostBasesResponse, CreateCostBasisRequest, CreateCostBasisResponse } from '../models/operations/currencies.js';
7
7
  import type { QueryGovernanceAccessRequest, QueryGovernanceAccessResponse } from '../models/operations/governance.js';
@@ -74,6 +74,14 @@ export declare class InternalApps {
74
74
  * DELETE /openmeter/apps/{appId}
75
75
  */
76
76
  uninstall(request: UninstallAppRequest, options?: RequestOptions): Promise<UninstallAppResponse>;
77
+ /**
78
+ * Update app
79
+ *
80
+ * Update an installed app.
81
+ *
82
+ * PUT /openmeter/apps/{appId}
83
+ */
84
+ update(request: UpdateAppRequest, options?: RequestOptions): Promise<UpdateAppResponse>;
77
85
  /**
78
86
  * List app catalog
79
87
  *
@@ -2,7 +2,7 @@
2
2
  import { unwrap } from '../lib/types.js';
3
3
  import { paginatePages } from '../lib/paginate.js';
4
4
  import { createSubscriptionAddon } from '../funcs/subscriptions.js';
5
- import { listApps, getApp, uninstallApp, listAppCatalog, getAppCatalogItem, installApp, } from '../funcs/apps.js';
5
+ import { listApps, getApp, uninstallApp, updateApp, listAppCatalog, getAppCatalogItem, installApp, } from '../funcs/apps.js';
6
6
  import { listInvoices, getInvoice, updateInvoice, deleteInvoice, advanceInvoice, approveInvoice, retryInvoice, snapshotQuantitiesInvoice, } from '../funcs/invoices.js';
7
7
  import { listCurrencies, createCustomCurrency, getCustomCurrency, listCostBases, createCostBasis, } from '../funcs/currencies.js';
8
8
  import { queryGovernanceAccess } from '../funcs/governance.js';
@@ -100,6 +100,16 @@ export class InternalApps {
100
100
  async uninstall(request, options) {
101
101
  return unwrap(await uninstallApp(this._client, request, options));
102
102
  }
103
+ /**
104
+ * Update app
105
+ *
106
+ * Update an installed app.
107
+ *
108
+ * PUT /openmeter/apps/{appId}
109
+ */
110
+ async update(request, options) {
111
+ return unwrap(await updateApp(this._client, request, options));
112
+ }
103
113
  /**
104
114
  * List app catalog
105
115
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openmeter/client",
3
- "version": "1.0.0-beta-b368460567b6",
3
+ "version": "1.0.0-beta-da4b7edd9544",
4
4
  "description": "Official TypeScript SDK for the OpenMeter API — usage metering and billing",
5
5
  "keywords": [
6
6
  "openmeter",