@openmeter/client 1.0.0-beta-bed82ba5769a → 1.0.0-beta-9d2763d62523

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
@@ -39,6 +39,7 @@ TypeSpec definitions and ships fully-typed request and response models.
39
39
  - [Internal Apps](#internal-apps)
40
40
  - [Internal Invoices](#internal-invoices)
41
41
  - [Internal Currencies](#internal-currencies)
42
+ - [Internal PlanAddons](#internal-planaddons)
42
43
  - [Internal EntitlementAccess](#internal-entitlementaccess)
43
44
  - [Runtime Validation (validate option)](#runtime-validation-validate-option)
44
45
  - [Zod Schemas (./zod export)](#zod-schemas-zod-export)
@@ -390,7 +391,6 @@ The full call path, HTTP route, and a short description are listed below.
390
391
 
391
392
  | Method | HTTP | Description |
392
393
  | -------------------------- | ------------------------------------------------------- | ---------------------------------------- |
393
- | `client.planAddons.list` | `GET /openmeter/plans/{planId}/addons` | List add-ons associated with a plan. |
394
394
  | `client.planAddons.create` | `POST /openmeter/plans/{planId}/addons` | Add an add-on to a plan. |
395
395
  | `client.planAddons.get` | `GET /openmeter/plans/{planId}/addons/{planAddonId}` | Get an add-on association for a plan. |
396
396
  | `client.planAddons.update` | `PUT /openmeter/plans/{planId}/addons/{planAddonId}` | Update an add-on association for a plan. |
@@ -457,6 +457,12 @@ they can change or be removed without notice or semver consideration.
457
457
  | `client.internal.currencies.listCostBases` | `GET /openmeter/currencies/custom/{currencyId}/cost-bases` | List cost bases for a currency. For custom currencies, there can be multiple cost bases with different `effective_from` dates. |
458
458
  | `client.internal.currencies.createCostBasis` | `POST /openmeter/currencies/custom/{currencyId}/cost-bases` | Create a cost basis for a currency. |
459
459
 
460
+ ### Internal PlanAddons
461
+
462
+ | Method | HTTP | Description |
463
+ | --------------------------------- | -------------------------------------- | ------------------------------------ |
464
+ | `client.internal.planAddons.list` | `GET /openmeter/plans/{planId}/addons` | List add-ons associated with a plan. |
465
+
460
466
  ### Internal EntitlementAccess
461
467
 
462
468
  | Method | HTTP | Description |
@@ -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 add-ons for plan
@@ -28,8 +28,13 @@ export function listPlanAddons(client, req, options) {
28
28
  }
29
29
  return encodeURIComponent(String(pathParams.planId));
30
30
  })()}/addons`;
31
+ if (client._options.validate && req.sort !== undefined) {
32
+ assertValid(schemas.listPlanAddonsQueryParams.shape.sort, req.sort);
33
+ }
31
34
  const query = toWire({
32
35
  page: req.page,
36
+ sort: encodeSort(req.sort, toSnakeCase),
37
+ filter: req.filter,
33
38
  }, schemas.listPlanAddonsQueryParams);
34
39
  if (client._options.validate) {
35
40
  assertValid(schemas.listPlanAddonsQueryParamsWire, query);
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/entitlementAccess.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, EntitlementAccessQueryRequestCustomers, EntitlementAccessQueryRequestFeatures, QueryFilterInteger, QueryFilterFloat, QueryFilterBoolean, PagePaginationQuery, PublicLabels, SystemAccountAccessToken, PersonalAccessToken, KonnectAccessToken, AppCustomerDataStripe, AppCustomerDataExternalInvoicing, CurrencyFiat, ListCostBasesParamsFilter, CreateCurrencyCustomRequest, CurrencyAmount, PriceFlat, PriceUnit, RateCardDiscounts, Totals, SpendCommitments, InvoiceLineCreditsApplied, InvoiceUsageQuantityDetail, UpdatePriceFlat, UpdatePriceUnit, UpdateDiscounts, FeatureManualUnitCost, FeatureLlmUnitCostPricing, LlmCostModelPricing, QueryFilterNumeric, CursorPaginationQuery, ListMetersParamsFilter, ListLlmCostPricesParamsFilter, LabelsFieldFilter, CustomerReference, ProfileReference, CreateResourceReference, TaxCodeReference, CreditGrantInvoiceReference, BillingCustomerReference, SubscriptionReference, SubscriptionCostBasisPin, FeatureReference, AddonReference, 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, SubscriptionPlanReference, UpsertPlanAddonRequest, ResourceWithKey, Meter, PaginatedMeta, QueryFilterStringMapItem, CustomerKeyReference, CustomerUsageAttribution, UpdateCustomerUsageAttribution, Address, UpdateAddress, AppStripeCreateCheckoutSessionCustomerUpdate, AppStripeCreateCheckoutSessionConsentCollectionPaymentMethodReuseAgreement, AppStripeCreateCheckoutSessionTaxIdCollection, AppStripeCreateCheckoutSessionResult, CustomerStripeCreateCustomerPortalSessionRequest, EntitlementAccessResult, CreateCreditGrantPurchase, RateCardMeteredEntitlement, RecurringPeriod, CreditGrantPurchase, ListCreditGrantsParamsFilter, GetCreditBalanceParamsFilter, ListChargesParamsFilter, ListPlansParamsFilter, RateCardProrationConfiguration, SubscriptionProRatingConfig, SubscriptionCreate, UnitConfig, TaxCodeAppMapping, AppCapability, UpdateAppStripeRequest, UpdateAppSandboxRequest, UpdateAppExternalInvoicingRequest, PartyTaxIdentity, UpdateBillingPartyTaxIdentity, WorkflowInvoicingSettings, InvoiceValidationIssue, InvoiceAvailableActions, InvoiceLineAmountDiscount, InvoiceLineUsageDiscount, InvoiceLineBaseDiscount, ListCurrenciesParamsFilter, EntitlementAccessQueryRequest, EntitlementFeatureAccessReason, EntitlementAccessQueryError, 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, SubscriptionCancel, SubscriptionChange, TaxCode, AppCatalogItem, InvoiceWorkflow, InvoiceStatusDetails, InvoiceLineDiscounts, UpdateBillingInvoiceWorkflow, EntitlementFeatureAccess, 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, EntitlementAccessQueryResult, Feature, CreditGrantPagePaginatedResponse, CurrencyPagePaginatedResponse, BadRequest, InvoiceBase, CustomerStripeCreateCheckoutSessionRequest, WorkflowCollectionSettings, EntitlementAccessQueryResponse, ChargeFlatFee, ChargeUsageBasedSystemIntent, CreateChargeUsageBasedRequest, RateCard, InvoiceLineRateCard, UpdateInvoiceLineRateCard, FeaturePagePaginatedResponse, Workflow, AppPagePaginatedResponse, BillingInstallAppResponse, ProfileApps, ChargeUsageBased, SubscriptionItem, SubscriptionAddonRateCard, PlanPhase, Addon, UpsertAddonRequest, InvoiceStandardLine, UpdateInvoiceStandardLine, Profile, UpsertBillingProfileRequest, SubscriptionPhase, SubscriptionAddon, Plan, UpsertPlanRequest, AddonPagePaginatedResponse, ProfilePagePaginatedResponse, ChargePagePaginatedResponse, Subscription, SubscriptionAddonPagePaginatedResponse, PlanPagePaginatedResponse, InvoiceStandard, UpdateInvoiceStandardRequest, SubscriptionPagePaginatedResponse, SubscriptionChangeResponse, 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, SubscriptionCreateInput, UnitConfigInput, WorkflowInvoicingSettingsInput, EntitlementAccessQueryRequestInput, IngestedEventInput, SubscriptionCancelInput, SubscriptionChangeInput, InvoiceWorkflowInput, UpdateBillingInvoiceWorkflowInput, CreateCreditGrantRequestInput, CreditGrantInput, WorkflowTaxSettingsInput, IngestedEventPaginatedResponseInput, MeterQueryRequestInput, AppStripeCreateCheckoutSessionRequestOptionsInput, InvoiceWorkflowSettingsInput, InvoiceDetailedLineInput, UpdateInvoiceWorkflowSettingsInput, CreditGrantPagePaginatedResponseInput, BadRequestInput, CustomerStripeCreateCheckoutSessionRequestInput, WorkflowCollectionSettingsInput, RateCardInput, InvoiceLineRateCardInput, WorkflowInput, SubscriptionItemInput, SubscriptionAddonRateCardInput, PlanPhaseInput, AddonInput, CreateAddonRequestInput, UpsertAddonRequestInput, InvoiceStandardLineInput, ProfileInput, CreateBillingProfileRequestInput, UpsertBillingProfileRequestInput, SubscriptionPhaseInput, SubscriptionAddonInput, PlanInput, CreatePlanRequestInput, UpsertPlanRequestInput, AddonPagePaginatedResponseInput, ProfilePagePaginatedResponseInput, SubscriptionInput, SubscriptionAddonPagePaginatedResponseInput, PlanPagePaginatedResponseInput, InvoiceStandardInput, UpdateInvoiceStandardRequestInput, SubscriptionPagePaginatedResponseInput, SubscriptionChangeResponseInput, 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, EntitlementAccessQueryRequestCustomers, EntitlementAccessQueryRequestFeatures, QueryFilterInteger, QueryFilterFloat, QueryFilterBoolean, PagePaginationQuery, PublicLabels, SystemAccountAccessToken, PersonalAccessToken, KonnectAccessToken, AppCustomerDataStripe, AppCustomerDataExternalInvoicing, CurrencyFiat, ListCostBasesParamsFilter, CreateCurrencyCustomRequest, CurrencyAmount, PriceFlat, PriceUnit, RateCardDiscounts, Totals, SpendCommitments, InvoiceLineCreditsApplied, InvoiceUsageQuantityDetail, UpdatePriceFlat, UpdatePriceUnit, UpdateDiscounts, FeatureManualUnitCost, FeatureLlmUnitCostPricing, LlmCostModelPricing, QueryFilterNumeric, CursorPaginationQuery, ListMetersParamsFilter, ListLlmCostPricesParamsFilter, LabelsFieldFilter, CustomerReference, ProfileReference, CreateResourceReference, TaxCodeReference, CreditGrantInvoiceReference, BillingCustomerReference, SubscriptionReference, SubscriptionCostBasisPin, FeatureReference, AddonReference, 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, SubscriptionPlanReference, UpsertPlanAddonRequest, ResourceWithKey, Meter, PaginatedMeta, QueryFilterStringMapItem, CustomerKeyReference, CustomerUsageAttribution, UpdateCustomerUsageAttribution, Address, UpdateAddress, AppStripeCreateCheckoutSessionCustomerUpdate, AppStripeCreateCheckoutSessionConsentCollectionPaymentMethodReuseAgreement, AppStripeCreateCheckoutSessionTaxIdCollection, AppStripeCreateCheckoutSessionResult, CustomerStripeCreateCustomerPortalSessionRequest, EntitlementAccessResult, CreateCreditGrantPurchase, RateCardMeteredEntitlement, RecurringPeriod, CreditGrantPurchase, ListCreditGrantsParamsFilter, GetCreditBalanceParamsFilter, ListChargesParamsFilter, ListPlansParamsFilter, RateCardProrationConfiguration, SubscriptionProRatingConfig, SubscriptionCreate, UnitConfig, TaxCodeAppMapping, AppCapability, UpdateAppStripeRequest, UpdateAppSandboxRequest, UpdateAppExternalInvoicingRequest, PartyTaxIdentity, UpdateBillingPartyTaxIdentity, WorkflowInvoicingSettings, InvoiceValidationIssue, InvoiceAvailableActions, InvoiceLineAmountDiscount, InvoiceLineUsageDiscount, InvoiceLineBaseDiscount, ListCurrenciesParamsFilter, EntitlementAccessQueryRequest, EntitlementFeatureAccessReason, EntitlementAccessQueryError, AppCustomerData, UpsertAppCustomerDataRequest, CreditAdjustment, CreditBalance, ListCreditTransactionsParamsFilter, CreditTransaction, PriceTier, ChargeTotals, UpdatePriceTier, FeatureLlmUnitCost, LlmCostPrice, LlmCostOverrideCreate, ListCustomersParamsFilter, ListSubscriptionsParamsFilter, ListFeatureParamsFilter, ListAddonsParamsFilter, ListPlanAddonsParamsFilter, 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, SubscriptionCancel, SubscriptionChange, TaxCode, AppCatalogItem, InvoiceWorkflow, InvoiceStatusDetails, InvoiceLineDiscounts, UpdateBillingInvoiceWorkflow, EntitlementFeatureAccess, 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, EntitlementAccessQueryResult, Feature, CreditGrantPagePaginatedResponse, CurrencyPagePaginatedResponse, BadRequest, InvoiceBase, CustomerStripeCreateCheckoutSessionRequest, WorkflowCollectionSettings, EntitlementAccessQueryResponse, ChargeFlatFee, ChargeUsageBasedSystemIntent, CreateChargeUsageBasedRequest, RateCard, InvoiceLineRateCard, UpdateInvoiceLineRateCard, FeaturePagePaginatedResponse, Workflow, AppPagePaginatedResponse, BillingInstallAppResponse, ProfileApps, ChargeUsageBased, SubscriptionItem, SubscriptionAddonRateCard, PlanPhase, Addon, UpsertAddonRequest, InvoiceStandardLine, UpdateInvoiceStandardLine, Profile, UpsertBillingProfileRequest, SubscriptionPhase, SubscriptionAddon, Plan, UpsertPlanRequest, AddonPagePaginatedResponse, ProfilePagePaginatedResponse, ChargePagePaginatedResponse, Subscription, SubscriptionAddonPagePaginatedResponse, PlanPagePaginatedResponse, InvoiceStandard, UpdateInvoiceStandardRequest, SubscriptionPagePaginatedResponse, SubscriptionChangeResponse, 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, SubscriptionCreateInput, UnitConfigInput, WorkflowInvoicingSettingsInput, EntitlementAccessQueryRequestInput, IngestedEventInput, SubscriptionCancelInput, SubscriptionChangeInput, InvoiceWorkflowInput, UpdateBillingInvoiceWorkflowInput, CreateCreditGrantRequestInput, CreditGrantInput, WorkflowTaxSettingsInput, IngestedEventPaginatedResponseInput, MeterQueryRequestInput, AppStripeCreateCheckoutSessionRequestOptionsInput, InvoiceWorkflowSettingsInput, InvoiceDetailedLineInput, UpdateInvoiceWorkflowSettingsInput, CreditGrantPagePaginatedResponseInput, BadRequestInput, CustomerStripeCreateCheckoutSessionRequestInput, WorkflowCollectionSettingsInput, RateCardInput, InvoiceLineRateCardInput, WorkflowInput, SubscriptionItemInput, SubscriptionAddonRateCardInput, PlanPhaseInput, AddonInput, CreateAddonRequestInput, UpsertAddonRequestInput, InvoiceStandardLineInput, ProfileInput, CreateBillingProfileRequestInput, UpsertBillingProfileRequestInput, SubscriptionPhaseInput, SubscriptionAddonInput, PlanInput, CreatePlanRequestInput, UpsertPlanRequestInput, AddonPagePaginatedResponseInput, ProfilePagePaginatedResponseInput, SubscriptionInput, SubscriptionAddonPagePaginatedResponseInput, PlanPagePaginatedResponseInput, InvoiceStandardInput, UpdateInvoiceStandardRequestInput, SubscriptionPagePaginatedResponseInput, SubscriptionChangeResponseInput, InvoicePagePaginatedResponseInput, WorkflowPaymentSettingsInput, UpdateBillingWorkflowPaymentSettingsInput, RateCardEntitlementInput, InvoiceLineInput, InvoiceInput, UpdateInvoiceRequestInput, } from './models/types.js';
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.0.0-beta-bed82ba5769a";
1
+ export declare const SDK_VERSION = "1.0.0-beta-9d2763d62523";
@@ -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-bed82ba5769a';
5
+ export const SDK_VERSION = '1.0.0-beta-9d2763d62523';
@@ -1,11 +1,24 @@
1
1
  import type { AcceptDateStrings } from '../../lib/wire.js';
2
- import type { CreatePlanAddonRequest as CreatePlanAddonRequestBody, PlanAddon, PlanAddonPagePaginatedResponse, UpsertPlanAddonRequest } from '../types.js';
2
+ import type { CreatePlanAddonRequest as CreatePlanAddonRequestBody, ListPlanAddonsParamsFilter, PlanAddon, PlanAddonPagePaginatedResponse, SortQueryInput, UpsertPlanAddonRequest } from '../types.js';
3
3
  export interface ListPlanAddonsQuery {
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 plan add-ons returned in the response. Supported sort attributes are:
11
+ *
12
+ * - `id` (default)
13
+ * - `created_at`
14
+ * - `updated_at`
15
+ *
16
+ * The `asc` suffix is optional as the default sort order is ascending. The `desc`
17
+ * suffix is used to specify a descending order.
18
+ */
19
+ sort?: SortQueryInput;
20
+ /** Filter plan add-ons returned in the response. */
21
+ filter?: ListPlanAddonsParamsFilter;
9
22
  }
10
23
  export type ListPlanAddonsRequest = AcceptDateStrings<ListPlanAddonsQuery & {
11
24
  planId: string;
@@ -1975,6 +1975,66 @@ export declare const listAddonsParamsFilter: z.ZodObject<{
1975
1975
  neq: z.ZodOptional<z.ZodString>;
1976
1976
  }, z.core.$strip>]>>;
1977
1977
  }, z.core.$strip>;
1978
+ export declare const listPlanAddonsParamsFilter: z.ZodObject<{
1979
+ id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
1980
+ eq: z.ZodOptional<z.ZodString>;
1981
+ oeq: z.ZodOptional<z.ZodArray<z.ZodString>>;
1982
+ neq: z.ZodOptional<z.ZodString>;
1983
+ }, z.core.$strip>]>>;
1984
+ planKey: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
1985
+ eq: z.ZodOptional<z.ZodString>;
1986
+ neq: z.ZodOptional<z.ZodString>;
1987
+ contains: z.ZodOptional<z.ZodString>;
1988
+ ocontains: z.ZodOptional<z.ZodArray<z.ZodString>>;
1989
+ oeq: z.ZodOptional<z.ZodArray<z.ZodString>>;
1990
+ gt: z.ZodOptional<z.ZodString>;
1991
+ gte: z.ZodOptional<z.ZodString>;
1992
+ lt: z.ZodOptional<z.ZodString>;
1993
+ lte: z.ZodOptional<z.ZodString>;
1994
+ exists: z.ZodOptional<z.ZodBoolean>;
1995
+ }, z.core.$strip>]>>;
1996
+ addonId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
1997
+ eq: z.ZodOptional<z.ZodString>;
1998
+ oeq: z.ZodOptional<z.ZodArray<z.ZodString>>;
1999
+ neq: z.ZodOptional<z.ZodString>;
2000
+ }, z.core.$strip>]>>;
2001
+ addonKey: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
2002
+ eq: z.ZodOptional<z.ZodString>;
2003
+ neq: z.ZodOptional<z.ZodString>;
2004
+ contains: z.ZodOptional<z.ZodString>;
2005
+ ocontains: z.ZodOptional<z.ZodArray<z.ZodString>>;
2006
+ oeq: z.ZodOptional<z.ZodArray<z.ZodString>>;
2007
+ gt: z.ZodOptional<z.ZodString>;
2008
+ gte: z.ZodOptional<z.ZodString>;
2009
+ lt: z.ZodOptional<z.ZodString>;
2010
+ lte: z.ZodOptional<z.ZodString>;
2011
+ exists: z.ZodOptional<z.ZodBoolean>;
2012
+ }, z.core.$strip>]>>;
2013
+ addonName: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
2014
+ eq: z.ZodOptional<z.ZodString>;
2015
+ neq: z.ZodOptional<z.ZodString>;
2016
+ contains: z.ZodOptional<z.ZodString>;
2017
+ ocontains: z.ZodOptional<z.ZodArray<z.ZodString>>;
2018
+ oeq: z.ZodOptional<z.ZodArray<z.ZodString>>;
2019
+ gt: z.ZodOptional<z.ZodString>;
2020
+ gte: z.ZodOptional<z.ZodString>;
2021
+ lt: z.ZodOptional<z.ZodString>;
2022
+ lte: z.ZodOptional<z.ZodString>;
2023
+ exists: z.ZodOptional<z.ZodBoolean>;
2024
+ }, z.core.$strip>]>>;
2025
+ planCurrency: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
2026
+ eq: z.ZodOptional<z.ZodString>;
2027
+ neq: z.ZodOptional<z.ZodString>;
2028
+ contains: z.ZodOptional<z.ZodString>;
2029
+ ocontains: z.ZodOptional<z.ZodArray<z.ZodString>>;
2030
+ oeq: z.ZodOptional<z.ZodArray<z.ZodString>>;
2031
+ gt: z.ZodOptional<z.ZodString>;
2032
+ gte: z.ZodOptional<z.ZodString>;
2033
+ lt: z.ZodOptional<z.ZodString>;
2034
+ lte: z.ZodOptional<z.ZodString>;
2035
+ exists: z.ZodOptional<z.ZodBoolean>;
2036
+ }, z.core.$strip>]>>;
2037
+ }, z.core.$strip>;
1978
2038
  export declare const createCreditGrantTaxConfig: z.ZodObject<{
1979
2039
  behavior: z.ZodOptional<z.ZodEnum<{
1980
2040
  exclusive: "exclusive";
@@ -22165,6 +22225,70 @@ export declare const listPlanAddonsQueryParams: z.ZodObject<{
22165
22225
  size: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
22166
22226
  number: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
22167
22227
  }, z.core.$strip>>;
22228
+ sort: z.ZodOptional<z.ZodObject<{
22229
+ by: z.ZodString;
22230
+ order: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"asc">, z.ZodLiteral<"desc">]>>>;
22231
+ }, z.core.$strip>>;
22232
+ filter: z.ZodOptional<z.ZodObject<{
22233
+ id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
22234
+ eq: z.ZodOptional<z.ZodString>;
22235
+ oeq: z.ZodOptional<z.ZodArray<z.ZodString>>;
22236
+ neq: z.ZodOptional<z.ZodString>;
22237
+ }, z.core.$strip>]>>;
22238
+ planKey: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
22239
+ eq: z.ZodOptional<z.ZodString>;
22240
+ neq: z.ZodOptional<z.ZodString>;
22241
+ contains: z.ZodOptional<z.ZodString>;
22242
+ ocontains: z.ZodOptional<z.ZodArray<z.ZodString>>;
22243
+ oeq: z.ZodOptional<z.ZodArray<z.ZodString>>;
22244
+ gt: z.ZodOptional<z.ZodString>;
22245
+ gte: z.ZodOptional<z.ZodString>;
22246
+ lt: z.ZodOptional<z.ZodString>;
22247
+ lte: z.ZodOptional<z.ZodString>;
22248
+ exists: z.ZodOptional<z.ZodBoolean>;
22249
+ }, z.core.$strip>]>>;
22250
+ addonId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
22251
+ eq: z.ZodOptional<z.ZodString>;
22252
+ oeq: z.ZodOptional<z.ZodArray<z.ZodString>>;
22253
+ neq: z.ZodOptional<z.ZodString>;
22254
+ }, z.core.$strip>]>>;
22255
+ addonKey: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
22256
+ eq: z.ZodOptional<z.ZodString>;
22257
+ neq: z.ZodOptional<z.ZodString>;
22258
+ contains: z.ZodOptional<z.ZodString>;
22259
+ ocontains: z.ZodOptional<z.ZodArray<z.ZodString>>;
22260
+ oeq: z.ZodOptional<z.ZodArray<z.ZodString>>;
22261
+ gt: z.ZodOptional<z.ZodString>;
22262
+ gte: z.ZodOptional<z.ZodString>;
22263
+ lt: z.ZodOptional<z.ZodString>;
22264
+ lte: z.ZodOptional<z.ZodString>;
22265
+ exists: z.ZodOptional<z.ZodBoolean>;
22266
+ }, z.core.$strip>]>>;
22267
+ addonName: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
22268
+ eq: z.ZodOptional<z.ZodString>;
22269
+ neq: z.ZodOptional<z.ZodString>;
22270
+ contains: z.ZodOptional<z.ZodString>;
22271
+ ocontains: z.ZodOptional<z.ZodArray<z.ZodString>>;
22272
+ oeq: z.ZodOptional<z.ZodArray<z.ZodString>>;
22273
+ gt: z.ZodOptional<z.ZodString>;
22274
+ gte: z.ZodOptional<z.ZodString>;
22275
+ lt: z.ZodOptional<z.ZodString>;
22276
+ lte: z.ZodOptional<z.ZodString>;
22277
+ exists: z.ZodOptional<z.ZodBoolean>;
22278
+ }, z.core.$strip>]>>;
22279
+ planCurrency: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
22280
+ eq: z.ZodOptional<z.ZodString>;
22281
+ neq: z.ZodOptional<z.ZodString>;
22282
+ contains: z.ZodOptional<z.ZodString>;
22283
+ ocontains: z.ZodOptional<z.ZodArray<z.ZodString>>;
22284
+ oeq: z.ZodOptional<z.ZodArray<z.ZodString>>;
22285
+ gt: z.ZodOptional<z.ZodString>;
22286
+ gte: z.ZodOptional<z.ZodString>;
22287
+ lt: z.ZodOptional<z.ZodString>;
22288
+ lte: z.ZodOptional<z.ZodString>;
22289
+ exists: z.ZodOptional<z.ZodBoolean>;
22290
+ }, z.core.$strip>]>>;
22291
+ }, z.core.$strip>>;
22168
22292
  }, z.core.$strip>;
22169
22293
  export declare const listPlanAddonsResponse: z.ZodObject<{
22170
22294
  data: z.ZodArray<z.ZodObject<{
@@ -24369,6 +24493,66 @@ export declare const listAddonsParamsFilterWire: z.ZodObject<{
24369
24493
  neq: z.ZodOptional<z.ZodString>;
24370
24494
  }, z.core.$strict>]>>;
24371
24495
  }, z.core.$strict>;
24496
+ export declare const listPlanAddonsParamsFilterWire: z.ZodObject<{
24497
+ id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
24498
+ eq: z.ZodOptional<z.ZodString>;
24499
+ oeq: z.ZodOptional<z.ZodArray<z.ZodString>>;
24500
+ neq: z.ZodOptional<z.ZodString>;
24501
+ }, z.core.$strict>]>>;
24502
+ plan_key: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
24503
+ eq: z.ZodOptional<z.ZodString>;
24504
+ neq: z.ZodOptional<z.ZodString>;
24505
+ contains: z.ZodOptional<z.ZodString>;
24506
+ ocontains: z.ZodOptional<z.ZodArray<z.ZodString>>;
24507
+ oeq: z.ZodOptional<z.ZodArray<z.ZodString>>;
24508
+ gt: z.ZodOptional<z.ZodString>;
24509
+ gte: z.ZodOptional<z.ZodString>;
24510
+ lt: z.ZodOptional<z.ZodString>;
24511
+ lte: z.ZodOptional<z.ZodString>;
24512
+ exists: z.ZodOptional<z.ZodBoolean>;
24513
+ }, z.core.$strict>]>>;
24514
+ addon_id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
24515
+ eq: z.ZodOptional<z.ZodString>;
24516
+ oeq: z.ZodOptional<z.ZodArray<z.ZodString>>;
24517
+ neq: z.ZodOptional<z.ZodString>;
24518
+ }, z.core.$strict>]>>;
24519
+ addon_key: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
24520
+ eq: z.ZodOptional<z.ZodString>;
24521
+ neq: z.ZodOptional<z.ZodString>;
24522
+ contains: z.ZodOptional<z.ZodString>;
24523
+ ocontains: z.ZodOptional<z.ZodArray<z.ZodString>>;
24524
+ oeq: z.ZodOptional<z.ZodArray<z.ZodString>>;
24525
+ gt: z.ZodOptional<z.ZodString>;
24526
+ gte: z.ZodOptional<z.ZodString>;
24527
+ lt: z.ZodOptional<z.ZodString>;
24528
+ lte: z.ZodOptional<z.ZodString>;
24529
+ exists: z.ZodOptional<z.ZodBoolean>;
24530
+ }, z.core.$strict>]>>;
24531
+ addon_name: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
24532
+ eq: z.ZodOptional<z.ZodString>;
24533
+ neq: z.ZodOptional<z.ZodString>;
24534
+ contains: z.ZodOptional<z.ZodString>;
24535
+ ocontains: z.ZodOptional<z.ZodArray<z.ZodString>>;
24536
+ oeq: z.ZodOptional<z.ZodArray<z.ZodString>>;
24537
+ gt: z.ZodOptional<z.ZodString>;
24538
+ gte: z.ZodOptional<z.ZodString>;
24539
+ lt: z.ZodOptional<z.ZodString>;
24540
+ lte: z.ZodOptional<z.ZodString>;
24541
+ exists: z.ZodOptional<z.ZodBoolean>;
24542
+ }, z.core.$strict>]>>;
24543
+ plan_currency: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
24544
+ eq: z.ZodOptional<z.ZodString>;
24545
+ neq: z.ZodOptional<z.ZodString>;
24546
+ contains: z.ZodOptional<z.ZodString>;
24547
+ ocontains: z.ZodOptional<z.ZodArray<z.ZodString>>;
24548
+ oeq: z.ZodOptional<z.ZodArray<z.ZodString>>;
24549
+ gt: z.ZodOptional<z.ZodString>;
24550
+ gte: z.ZodOptional<z.ZodString>;
24551
+ lt: z.ZodOptional<z.ZodString>;
24552
+ lte: z.ZodOptional<z.ZodString>;
24553
+ exists: z.ZodOptional<z.ZodBoolean>;
24554
+ }, z.core.$strict>]>>;
24555
+ }, z.core.$strict>;
24372
24556
  export declare const createCreditGrantTaxConfigWire: z.ZodObject<{
24373
24557
  behavior: z.ZodOptional<z.ZodEnum<{
24374
24558
  exclusive: "exclusive";
@@ -44523,6 +44707,67 @@ export declare const listPlanAddonsQueryParamsWire: z.ZodObject<{
44523
44707
  size: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
44524
44708
  number: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
44525
44709
  }, z.core.$strict>>;
44710
+ sort: z.ZodOptional<z.ZodString>;
44711
+ filter: z.ZodOptional<z.ZodObject<{
44712
+ id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
44713
+ eq: z.ZodOptional<z.ZodString>;
44714
+ oeq: z.ZodOptional<z.ZodArray<z.ZodString>>;
44715
+ neq: z.ZodOptional<z.ZodString>;
44716
+ }, z.core.$strict>]>>;
44717
+ plan_key: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
44718
+ eq: z.ZodOptional<z.ZodString>;
44719
+ neq: z.ZodOptional<z.ZodString>;
44720
+ contains: z.ZodOptional<z.ZodString>;
44721
+ ocontains: z.ZodOptional<z.ZodArray<z.ZodString>>;
44722
+ oeq: z.ZodOptional<z.ZodArray<z.ZodString>>;
44723
+ gt: z.ZodOptional<z.ZodString>;
44724
+ gte: z.ZodOptional<z.ZodString>;
44725
+ lt: z.ZodOptional<z.ZodString>;
44726
+ lte: z.ZodOptional<z.ZodString>;
44727
+ exists: z.ZodOptional<z.ZodBoolean>;
44728
+ }, z.core.$strict>]>>;
44729
+ addon_id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
44730
+ eq: z.ZodOptional<z.ZodString>;
44731
+ oeq: z.ZodOptional<z.ZodArray<z.ZodString>>;
44732
+ neq: z.ZodOptional<z.ZodString>;
44733
+ }, z.core.$strict>]>>;
44734
+ addon_key: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
44735
+ eq: z.ZodOptional<z.ZodString>;
44736
+ neq: z.ZodOptional<z.ZodString>;
44737
+ contains: z.ZodOptional<z.ZodString>;
44738
+ ocontains: z.ZodOptional<z.ZodArray<z.ZodString>>;
44739
+ oeq: z.ZodOptional<z.ZodArray<z.ZodString>>;
44740
+ gt: z.ZodOptional<z.ZodString>;
44741
+ gte: z.ZodOptional<z.ZodString>;
44742
+ lt: z.ZodOptional<z.ZodString>;
44743
+ lte: z.ZodOptional<z.ZodString>;
44744
+ exists: z.ZodOptional<z.ZodBoolean>;
44745
+ }, z.core.$strict>]>>;
44746
+ addon_name: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
44747
+ eq: z.ZodOptional<z.ZodString>;
44748
+ neq: z.ZodOptional<z.ZodString>;
44749
+ contains: z.ZodOptional<z.ZodString>;
44750
+ ocontains: z.ZodOptional<z.ZodArray<z.ZodString>>;
44751
+ oeq: z.ZodOptional<z.ZodArray<z.ZodString>>;
44752
+ gt: z.ZodOptional<z.ZodString>;
44753
+ gte: z.ZodOptional<z.ZodString>;
44754
+ lt: z.ZodOptional<z.ZodString>;
44755
+ lte: z.ZodOptional<z.ZodString>;
44756
+ exists: z.ZodOptional<z.ZodBoolean>;
44757
+ }, z.core.$strict>]>>;
44758
+ plan_currency: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
44759
+ eq: z.ZodOptional<z.ZodString>;
44760
+ neq: z.ZodOptional<z.ZodString>;
44761
+ contains: z.ZodOptional<z.ZodString>;
44762
+ ocontains: z.ZodOptional<z.ZodArray<z.ZodString>>;
44763
+ oeq: z.ZodOptional<z.ZodArray<z.ZodString>>;
44764
+ gt: z.ZodOptional<z.ZodString>;
44765
+ gte: z.ZodOptional<z.ZodString>;
44766
+ lt: z.ZodOptional<z.ZodString>;
44767
+ lte: z.ZodOptional<z.ZodString>;
44768
+ exists: z.ZodOptional<z.ZodBoolean>;
44769
+ }, z.core.$strict>]>>;
44770
+ }, z.core.$strict>>;
44526
44771
  }, z.core.$strip>;
44527
44772
  export declare const listPlanAddonsResponseWire: z.ZodObject<{
44528
44773
  data: z.ZodArray<z.ZodObject<{
@@ -2535,6 +2535,16 @@ export const listAddonsParamsFilter = z
2535
2535
  currency: stringFieldFilterExact.optional(),
2536
2536
  })
2537
2537
  .describe('Filter options for listing add-ons.');
2538
+ export const listPlanAddonsParamsFilter = z
2539
+ .object({
2540
+ id: ulidFieldFilter.optional(),
2541
+ planKey: stringFieldFilter.optional(),
2542
+ addonId: ulidFieldFilter.optional(),
2543
+ addonKey: stringFieldFilter.optional(),
2544
+ addonName: stringFieldFilter.optional(),
2545
+ planCurrency: stringFieldFilter.optional(),
2546
+ })
2547
+ .describe('Filter options for listing plan add-ons.');
2538
2548
  export const createCreditGrantTaxConfig = z
2539
2549
  .object({
2540
2550
  behavior: taxBehavior.optional(),
@@ -5185,6 +5195,8 @@ export const listPlanAddonsQueryParams = z.object({
5185
5195
  })
5186
5196
  .optional()
5187
5197
  .describe('Determines which page of the collection to retrieve.'),
5198
+ sort: sortQuery.optional(),
5199
+ filter: listPlanAddonsParamsFilter.optional(),
5188
5200
  });
5189
5201
  export const listPlanAddonsResponse = z.object({
5190
5202
  data: z.array(planAddon),
@@ -7722,6 +7734,16 @@ export const listAddonsParamsFilterWire = z
7722
7734
  currency: stringFieldFilterExactWire.optional(),
7723
7735
  })
7724
7736
  .describe('Filter options for listing add-ons.');
7737
+ export const listPlanAddonsParamsFilterWire = z
7738
+ .strictObject({
7739
+ id: ulidFieldFilterWire.optional(),
7740
+ plan_key: stringFieldFilterWire.optional(),
7741
+ addon_id: ulidFieldFilterWire.optional(),
7742
+ addon_key: stringFieldFilterWire.optional(),
7743
+ addon_name: stringFieldFilterWire.optional(),
7744
+ plan_currency: stringFieldFilterWire.optional(),
7745
+ })
7746
+ .describe('Filter options for listing plan add-ons.');
7725
7747
  export const createCreditGrantTaxConfigWire = z
7726
7748
  .strictObject({
7727
7749
  behavior: taxBehaviorWire.optional(),
@@ -10411,6 +10433,11 @@ export const listPlanAddonsQueryParamsWire = z.object({
10411
10433
  })
10412
10434
  .optional()
10413
10435
  .describe('Determines which page of the collection to retrieve.'),
10436
+ sort: z
10437
+ .string()
10438
+ .optional()
10439
+ .describe('Sort plan add-ons returned in the response. Supported sort attributes are: - `id` (default) - `created_at` - `updated_at` The `asc` suffix is optional as the default sort order is ascending. The `desc` suffix is used to specify a descending order.'),
10440
+ filter: listPlanAddonsParamsFilterWire.optional(),
10414
10441
  });
10415
10442
  export const listPlanAddonsResponseWire = z.strictObject({
10416
10443
  data: z.array(planAddonWire),
@@ -2419,6 +2419,15 @@ export interface ListAddonsParamsFilter {
2419
2419
  status?: StringFieldFilterExact;
2420
2420
  currency?: StringFieldFilterExact;
2421
2421
  }
2422
+ /** Filter options for listing plan add-ons. */
2423
+ export interface ListPlanAddonsParamsFilter {
2424
+ id?: UlidFieldFilter;
2425
+ planKey?: StringFieldFilter;
2426
+ addonId?: UlidFieldFilter;
2427
+ addonKey?: StringFieldFilter;
2428
+ addonName?: StringFieldFilter;
2429
+ planCurrency?: StringFieldFilter;
2430
+ }
2422
2431
  /**
2423
2432
  * Tax configuration for a credit grant.
2424
2433
  *
@@ -5,8 +5,9 @@ import type { CreateSubscriptionAddonRequest, CreateSubscriptionAddonResponse }
5
5
  import type { ListAppsRequest, ListAppsResponse, GetAppRequest, GetAppResponse, 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
+ import type { ListPlanAddonsRequest, ListPlanAddonsResponse } from '../models/operations/planAddons.js';
8
9
  import type { QueryEntitlementAccessRequest, QueryEntitlementAccessResponse } from '../models/operations/entitlementAccess.js';
9
- import type { App, AppCatalogItem, CostBasis, Currency, Invoice } from '../models/types.js';
10
+ import type { App, AppCatalogItem, CostBasis, Currency, Invoice, PlanAddon } from '../models/types.js';
10
11
  /**
11
12
  * Operations marked internal in the API definition. They are not part of
12
13
  * the customer surface: they may require additional permissions, and they
@@ -25,6 +26,8 @@ export declare class Internal {
25
26
  get invoices(): InternalInvoices;
26
27
  private _currencies?;
27
28
  get currencies(): InternalCurrencies;
29
+ private _planAddons?;
30
+ get planAddons(): InternalPlanAddons;
28
31
  private _entitlementAccess?;
29
32
  get entitlementAccess(): InternalEntitlementAccess;
30
33
  }
@@ -342,6 +345,28 @@ export declare class InternalCurrencies {
342
345
  */
343
346
  createCostBasis(request: CreateCostBasisRequest, options?: RequestOptions): Promise<CreateCostBasisResponse>;
344
347
  }
348
+ export declare class InternalPlanAddons {
349
+ private readonly _client;
350
+ constructor(_client: Client);
351
+ /**
352
+ * List add-ons for plan
353
+ *
354
+ * List add-ons associated with a plan.
355
+ *
356
+ * GET /openmeter/plans/{planId}/addons
357
+ */
358
+ list(request: ListPlanAddonsRequest, options?: RequestOptions): Promise<ListPlanAddonsResponse>;
359
+ /**
360
+ * List add-ons for plan
361
+ *
362
+ * List add-ons associated with a plan.
363
+ *
364
+ * Iterates every item across all pages, fetching more as the returned iterable is consumed.
365
+ *
366
+ * GET /openmeter/plans/{planId}/addons
367
+ */
368
+ listAll(request: ListPlanAddonsRequest, options?: RequestOptions): AsyncIterable<PlanAddon>;
369
+ }
345
370
  export declare class InternalEntitlementAccess {
346
371
  private readonly _client;
347
372
  constructor(_client: Client);
@@ -6,6 +6,7 @@ import { createSubscriptionAddon } from '../funcs/subscriptions.js';
6
6
  import { listApps, getApp, 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
+ import { listPlanAddons } from '../funcs/planAddons.js';
9
10
  import { queryEntitlementAccess } from '../funcs/entitlementAccess.js';
10
11
  /**
11
12
  * Operations marked internal in the API definition. They are not part of
@@ -37,6 +38,10 @@ export class Internal {
37
38
  get currencies() {
38
39
  return (this._currencies ??= new InternalCurrencies(this._client));
39
40
  }
41
+ _planAddons;
42
+ get planAddons() {
43
+ return (this._planAddons ??= new InternalPlanAddons(this._client));
44
+ }
40
45
  _entitlementAccess;
41
46
  get entitlementAccess() {
42
47
  return (this._entitlementAccess ??= new InternalEntitlementAccess(this._client));
@@ -428,6 +433,34 @@ export class InternalCurrencies {
428
433
  return unwrap(await createCostBasis(this._client, request, options));
429
434
  }
430
435
  }
436
+ export class InternalPlanAddons {
437
+ _client;
438
+ constructor(_client) {
439
+ this._client = _client;
440
+ }
441
+ /**
442
+ * List add-ons for plan
443
+ *
444
+ * List add-ons associated with a plan.
445
+ *
446
+ * GET /openmeter/plans/{planId}/addons
447
+ */
448
+ async list(request, options) {
449
+ return unwrap(await listPlanAddons(this._client, request, options));
450
+ }
451
+ /**
452
+ * List add-ons for plan
453
+ *
454
+ * List add-ons associated with a plan.
455
+ *
456
+ * Iterates every item across all pages, fetching more as the returned iterable is consumed.
457
+ *
458
+ * GET /openmeter/plans/{planId}/addons
459
+ */
460
+ listAll(request, options) {
461
+ return paginatePages((req, opts) => listPlanAddons(this._client, req, opts), request, options);
462
+ }
463
+ }
431
464
  export class InternalEntitlementAccess {
432
465
  _client;
433
466
  constructor(_client) {
@@ -1,28 +1,9 @@
1
1
  import { type Client } from '../core.js';
2
2
  import { type RequestOptions } from '../lib/types.js';
3
- import type { ListPlanAddonsRequest, ListPlanAddonsResponse, CreatePlanAddonRequest, CreatePlanAddonResponse, GetPlanAddonRequest, GetPlanAddonResponse, UpdatePlanAddonRequest, UpdatePlanAddonResponse, DeletePlanAddonRequest, DeletePlanAddonResponse } from '../models/operations/planAddons.js';
4
- import type { PlanAddon } from '../models/types.js';
3
+ import type { CreatePlanAddonRequest, CreatePlanAddonResponse, GetPlanAddonRequest, GetPlanAddonResponse, UpdatePlanAddonRequest, UpdatePlanAddonResponse, DeletePlanAddonRequest, DeletePlanAddonResponse } from '../models/operations/planAddons.js';
5
4
  export declare class PlanAddons {
6
5
  private readonly _client;
7
6
  constructor(_client: Client);
8
- /**
9
- * List add-ons for plan
10
- *
11
- * List add-ons associated with a plan.
12
- *
13
- * GET /openmeter/plans/{planId}/addons
14
- */
15
- list(request: ListPlanAddonsRequest, options?: RequestOptions): Promise<ListPlanAddonsResponse>;
16
- /**
17
- * List add-ons for plan
18
- *
19
- * List add-ons associated with a plan.
20
- *
21
- * Iterates every item across all pages, fetching more as the returned iterable is consumed.
22
- *
23
- * GET /openmeter/plans/{planId}/addons
24
- */
25
- listAll(request: ListPlanAddonsRequest, options?: RequestOptions): AsyncIterable<PlanAddon>;
26
7
  /**
27
8
  * Add add-on to plan
28
9
  *
@@ -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 { listPlanAddons, createPlanAddon, getPlanAddon, updatePlanAddon, deletePlanAddon, } from '../funcs/planAddons.js';
3
+ import { createPlanAddon, getPlanAddon, updatePlanAddon, deletePlanAddon, } from '../funcs/planAddons.js';
5
4
  export class PlanAddons {
6
5
  _client;
7
6
  constructor(_client) {
8
7
  this._client = _client;
9
8
  }
10
- /**
11
- * List add-ons for plan
12
- *
13
- * List add-ons associated with a plan.
14
- *
15
- * GET /openmeter/plans/{planId}/addons
16
- */
17
- async list(request, options) {
18
- return unwrap(await listPlanAddons(this._client, request, options));
19
- }
20
- /**
21
- * List add-ons for plan
22
- *
23
- * List add-ons associated with a plan.
24
- *
25
- * Iterates every item across all pages, fetching more as the returned iterable is consumed.
26
- *
27
- * GET /openmeter/plans/{planId}/addons
28
- */
29
- listAll(request, options) {
30
- return paginatePages((req, opts) => listPlanAddons(this._client, req, opts), request, options);
31
- }
32
9
  /**
33
10
  * Add add-on to plan
34
11
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openmeter/client",
3
- "version": "1.0.0-beta-bed82ba5769a",
3
+ "version": "1.0.0-beta-9d2763d62523",
4
4
  "description": "Official TypeScript SDK for the OpenMeter API — usage metering and billing",
5
5
  "keywords": [
6
6
  "openmeter",