@openmeter/client 1.0.0-beta-9e9d6f374fdd → 1.0.0-beta-44d4608e596a

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,7 +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 Governance](#internal-governance)
42
+ - [Internal EntitlementAccess](#internal-entitlementaccess)
43
43
  - [Runtime Validation (validate option)](#runtime-validation-validate-option)
44
44
  - [Zod Schemas (./zod export)](#zod-schemas-zod-export)
45
45
  - [Error Handling](#error-handling)
@@ -457,11 +457,11 @@ 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 Governance
460
+ ### Internal EntitlementAccess
461
461
 
462
- | Method | HTTP | Description |
463
- | ---------------------------------------- | ---------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
464
- | `client.internal.governance.queryAccess` | `POST /openmeter/governance/query` | Query feature access for a list of customers. The endpoint resolves each provided identifier to a customer and returns the access status for the requested features, plus optional credit balance availability. _Designed to be called on a fixed refresh interval and the query response is intended to be cached._ |
462
+ | Method | HTTP | Description |
463
+ | ----------------------------------------- | ------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
464
+ | `client.internal.entitlementAccess.query` | `POST /openmeter/entitlement-access/query` | Query feature access for a list of customers. The endpoint resolves each provided identifier to a customer and returns the access status for the requested features, plus optional credit balance availability. _Designed to be called on a fixed refresh interval and the query response is intended to be cached._ |
465
465
 
466
466
  ## Runtime Validation (validate option)
467
467
 
@@ -1,8 +1,8 @@
1
1
  import { type Client } from '../core.js';
2
2
  import { type Result, type RequestOptions } from '../lib/types.js';
3
- import type { QueryGovernanceAccessRequest, QueryGovernanceAccessResponse } from '../models/operations/governance.js';
3
+ import type { QueryEntitlementAccessRequest, QueryEntitlementAccessResponse } from '../models/operations/entitlementAccess.js';
4
4
  /**
5
- * Query governance access
5
+ * Query entitlement access
6
6
  *
7
7
  * Query feature access for a list of customers.
8
8
  *
@@ -13,6 +13,6 @@ import type { QueryGovernanceAccessRequest, QueryGovernanceAccessResponse } from
13
13
  * _Designed to be called on a fixed refresh interval and the query response is
14
14
  * intended to be cached._
15
15
  *
16
- * POST /openmeter/governance/query
16
+ * POST /openmeter/entitlement-access/query
17
17
  */
18
- export declare function queryGovernanceAccess(client: Client, req: QueryGovernanceAccessRequest, options?: RequestOptions): Promise<Result<QueryGovernanceAccessResponse>>;
18
+ export declare function queryEntitlementAccess(client: Client, req: QueryEntitlementAccessRequest, options?: RequestOptions): Promise<Result<QueryEntitlementAccessResponse>>;
@@ -5,7 +5,7 @@ import { toURLSearchParams } from '../lib/encodings.js';
5
5
  import { toWire, fromWire, assertValid } from '../lib/wire.js';
6
6
  import * as schemas from '../models/schemas.js';
7
7
  /**
8
- * Query governance access
8
+ * Query entitlement access
9
9
  *
10
10
  * Query feature access for a list of customers.
11
11
  *
@@ -16,23 +16,23 @@ import * as schemas from '../models/schemas.js';
16
16
  * _Designed to be called on a fixed refresh interval and the query response is
17
17
  * intended to be cached._
18
18
  *
19
- * POST /openmeter/governance/query
19
+ * POST /openmeter/entitlement-access/query
20
20
  */
21
- export function queryGovernanceAccess(client, req, options) {
21
+ export function queryEntitlementAccess(client, req, options) {
22
22
  return request(() => {
23
- const body = toWire(req.body, schemas.queryGovernanceAccessBody);
23
+ const body = toWire(req.body, schemas.queryEntitlementAccessBody);
24
24
  if (client._options.validate) {
25
- assertValid(schemas.queryGovernanceAccessBodyWire, body);
25
+ assertValid(schemas.queryEntitlementAccessBodyWire, body);
26
26
  }
27
27
  const query = toWire({
28
28
  page: req.page,
29
- }, schemas.queryGovernanceAccessQueryParams);
29
+ }, schemas.queryEntitlementAccessQueryParams);
30
30
  if (client._options.validate) {
31
- assertValid(schemas.queryGovernanceAccessQueryParamsWire, query);
31
+ assertValid(schemas.queryEntitlementAccessQueryParamsWire, query);
32
32
  }
33
33
  const searchParams = toURLSearchParams(query);
34
34
  return http(client)
35
- .post('openmeter/governance/query', {
35
+ .post('openmeter/entitlement-access/query', {
36
36
  ...options,
37
37
  searchParams,
38
38
  json: body,
@@ -40,9 +40,9 @@ export function queryGovernanceAccess(client, req, options) {
40
40
  .json()
41
41
  .then((data) => {
42
42
  if (client._options.validate) {
43
- assertValid(schemas.queryGovernanceAccessResponseWire, data);
43
+ assertValid(schemas.queryEntitlementAccessResponseWire, data);
44
44
  }
45
- return fromWire(data, schemas.queryGovernanceAccessResponse);
45
+ return fromWire(data, schemas.queryEntitlementAccessResponse);
46
46
  });
47
47
  });
48
48
  }
@@ -14,4 +14,4 @@ export * from './plans.js';
14
14
  export * from './addons.js';
15
15
  export * from './planAddons.js';
16
16
  export * from './defaults.js';
17
- export * from './governance.js';
17
+ export * from './entitlementAccess.js';
@@ -15,4 +15,4 @@ export * from './plans.js';
15
15
  export * from './addons.js';
16
16
  export * from './planAddons.js';
17
17
  export * from './defaults.js';
18
- export * from './governance.js';
18
+ export * from './entitlementAccess.js';
package/dist/index.d.ts CHANGED
@@ -39,5 +39,5 @@ export type * from './models/operations/plans.js';
39
39
  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
- 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, 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, 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, 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, RateCardProrationConfiguration, SubscriptionCreate, UnitConfig, TaxCodeAppMapping, AppCapability, UpdateAppStripeRequest, UpdateAppSandboxRequest, UpdateAppExternalInvoicingRequest, PartyTaxIdentity, UpdateBillingPartyTaxIdentity, WorkflowInvoicingSettings, InvoiceValidationIssue, InvoiceAvailableActions, InvoiceLineAmountDiscount, InvoiceLineUsageDiscount, InvoiceLineBaseDiscount, ListCurrenciesParamsFilter, GovernanceQueryRequest, GovernanceFeatureAccessReason, GovernanceQueryError, AppCustomerData, UpsertAppCustomerDataRequest, CreditAdjustment, CreditBalance, ListCreditTransactionsParamsFilter, CreditTransaction, PriceTier, ChargeTotals, UpdatePriceTier, FeatureLlmUnitCost, LlmCostPrice, LlmCostOverrideCreate, ListCustomersParamsFilter, ListSubscriptionsParamsFilter, ListFeatureParamsFilter, ListAddonsParamsFilter, CreateCreditGrantTaxConfig, CreditGrantTaxConfig, TaxConfig, RateCardTaxConfig, OrganizationDefaultTaxCodes, Subscription, 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, GovernanceFeatureAccess, CustomerData, UpsertCustomerBillingDataRequest, CreditBalances, CreditTransactionPaginatedResponse, PriceGraduated, PriceVolume, UpdatePriceGraduated, UpdatePriceVolume, PricePagePaginatedResponse, CreditGrant, CreateChargeFlatFeeRequest, WorkflowTaxSettings, SubscriptionPagePaginatedResponse, SubscriptionChangeResponse, 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, SubscriptionCreateInput, UnitConfigInput, WorkflowInvoicingSettingsInput, GovernanceQueryRequestInput, SubscriptionInput, IngestedEventInput, SubscriptionCancelInput, SubscriptionChangeInput, InvoiceWorkflowInput, UpdateBillingInvoiceWorkflowInput, CreateCreditGrantRequestInput, CreditGrantInput, WorkflowTaxSettingsInput, SubscriptionPagePaginatedResponseInput, SubscriptionChangeResponseInput, 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';
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, 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, RateCardProrationConfiguration, 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, Subscription, 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, SubscriptionPagePaginatedResponse, SubscriptionChangeResponse, 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, 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, SubscriptionCreateInput, UnitConfigInput, WorkflowInvoicingSettingsInput, EntitlementAccessQueryRequestInput, SubscriptionInput, IngestedEventInput, SubscriptionCancelInput, SubscriptionChangeInput, InvoiceWorkflowInput, UpdateBillingInvoiceWorkflowInput, CreateCreditGrantRequestInput, CreditGrantInput, WorkflowTaxSettingsInput, SubscriptionPagePaginatedResponseInput, SubscriptionChangeResponseInput, 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-9e9d6f374fdd";
1
+ export declare const SDK_VERSION = "1.0.0-beta-44d4608e596a";
@@ -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-9e9d6f374fdd';
5
+ export const SDK_VERSION = '1.0.0-beta-44d4608e596a';
@@ -0,0 +1,9 @@
1
+ import type { AcceptDateStrings } from '../../lib/wire.js';
2
+ import type { CursorPaginationQueryPage, EntitlementAccessQueryRequestInput, EntitlementAccessQueryResponse } from '../types.js';
3
+ export interface QueryEntitlementAccessQuery {
4
+ page?: CursorPaginationQueryPage;
5
+ }
6
+ export type QueryEntitlementAccessRequest = AcceptDateStrings<{
7
+ body: EntitlementAccessQueryRequestInput;
8
+ } & QueryEntitlementAccessQuery>;
9
+ export type QueryEntitlementAccessResponse = EntitlementAccessQueryResponse;
@@ -429,20 +429,20 @@ export declare const addonStatus: z.ZodEnum<{
429
429
  archived: "archived";
430
430
  draft: "draft";
431
431
  }>;
432
- export declare const governanceQueryRequestCustomers: z.ZodObject<{
432
+ export declare const entitlementAccessQueryRequestCustomers: z.ZodObject<{
433
433
  keys: z.ZodArray<z.ZodString>;
434
434
  }, z.core.$strip>;
435
- export declare const governanceQueryRequestFeatures: z.ZodObject<{
435
+ export declare const entitlementAccessQueryRequestFeatures: z.ZodObject<{
436
436
  keys: z.ZodArray<z.ZodString>;
437
437
  }, z.core.$strip>;
438
- export declare const governanceFeatureAccessReasonCode: z.ZodEnum<{
438
+ export declare const entitlementFeatureAccessReasonCode: z.ZodEnum<{
439
439
  feature_not_found: "feature_not_found";
440
440
  feature_unavailable: "feature_unavailable";
441
441
  no_credit_available: "no_credit_available";
442
442
  unknown: "unknown";
443
443
  usage_limit_reached: "usage_limit_reached";
444
444
  }>;
445
- export declare const governanceQueryErrorCode: z.ZodEnum<{
445
+ export declare const entitlementAccessQueryErrorCode: z.ZodEnum<{
446
446
  customer_not_found: "customer_not_found";
447
447
  unknown: "unknown";
448
448
  }>;
@@ -1579,7 +1579,7 @@ export declare const listCurrenciesParamsFilter: z.ZodObject<{
1579
1579
  exists: z.ZodOptional<z.ZodBoolean>;
1580
1580
  }, z.core.$strip>]>>;
1581
1581
  }, z.core.$strip>;
1582
- export declare const governanceQueryRequest: z.ZodObject<{
1582
+ export declare const entitlementAccessQueryRequest: z.ZodObject<{
1583
1583
  includeCredits: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1584
1584
  customer: z.ZodObject<{
1585
1585
  keys: z.ZodArray<z.ZodString>;
@@ -1588,7 +1588,7 @@ export declare const governanceQueryRequest: z.ZodObject<{
1588
1588
  keys: z.ZodArray<z.ZodString>;
1589
1589
  }, z.core.$strip>>;
1590
1590
  }, z.core.$strip>;
1591
- export declare const governanceFeatureAccessReason: z.ZodObject<{
1591
+ export declare const entitlementFeatureAccessReason: z.ZodObject<{
1592
1592
  code: z.ZodEnum<{
1593
1593
  feature_not_found: "feature_not_found";
1594
1594
  feature_unavailable: "feature_unavailable";
@@ -1599,7 +1599,7 @@ export declare const governanceFeatureAccessReason: z.ZodObject<{
1599
1599
  message: z.ZodString;
1600
1600
  attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1601
1601
  }, z.core.$strip>;
1602
- export declare const governanceQueryError: z.ZodObject<{
1602
+ export declare const entitlementAccessQueryError: z.ZodObject<{
1603
1603
  code: z.ZodEnum<{
1604
1604
  customer_not_found: "customer_not_found";
1605
1605
  unknown: "unknown";
@@ -2981,7 +2981,7 @@ export declare const updateBillingInvoiceWorkflow: z.ZodObject<{
2981
2981
  dueAfter: z.ZodDefault<z.ZodOptional<z.ZodString>>;
2982
2982
  }, z.core.$strip>], "collectionMethod">>;
2983
2983
  }, z.core.$strip>;
2984
- export declare const governanceFeatureAccess: z.ZodObject<{
2984
+ export declare const entitlementFeatureAccess: z.ZodObject<{
2985
2985
  hasAccess: z.ZodBoolean;
2986
2986
  reason: z.ZodOptional<z.ZodObject<{
2987
2987
  code: z.ZodEnum<{
@@ -4117,7 +4117,7 @@ export declare const updateInvoiceWorkflowSettings: z.ZodObject<{
4117
4117
  }, z.core.$strip>], "collectionMethod">>;
4118
4118
  }, z.core.$strip>;
4119
4119
  }, z.core.$strip>;
4120
- export declare const governanceQueryResult: z.ZodObject<{
4120
+ export declare const entitlementAccessQueryResult: z.ZodObject<{
4121
4121
  matched: z.ZodArray<z.ZodString>;
4122
4122
  customer: z.ZodObject<{
4123
4123
  id: z.ZodString;
@@ -4887,7 +4887,7 @@ export declare const app: z.ZodDiscriminatedUnion<[z.ZodObject<{
4887
4887
  enableDraftSyncHook: z.ZodBoolean;
4888
4888
  enableIssuingSyncHook: z.ZodBoolean;
4889
4889
  }, z.core.$strip>], "type">;
4890
- export declare const governanceQueryResponse: z.ZodObject<{
4890
+ export declare const entitlementAccessQueryResponse: z.ZodObject<{
4891
4891
  data: z.ZodArray<z.ZodObject<{
4892
4892
  matched: z.ZodArray<z.ZodString>;
4893
4893
  customer: z.ZodObject<{
@@ -20693,14 +20693,14 @@ export declare const updateOrganizationDefaultTaxCodesResponse: z.ZodObject<{
20693
20693
  createdAt: z.ZodDate;
20694
20694
  updatedAt: z.ZodDate;
20695
20695
  }, z.core.$strip>;
20696
- export declare const queryGovernanceAccessQueryParams: z.ZodObject<{
20696
+ export declare const queryEntitlementAccessQueryParams: z.ZodObject<{
20697
20697
  page: z.ZodOptional<z.ZodObject<{
20698
20698
  size: z.ZodOptional<z.ZodNumber>;
20699
20699
  after: z.ZodOptional<z.ZodString>;
20700
20700
  before: z.ZodOptional<z.ZodString>;
20701
20701
  }, z.core.$strip>>;
20702
20702
  }, z.core.$strip>;
20703
- export declare const queryGovernanceAccessBody: z.ZodObject<{
20703
+ export declare const queryEntitlementAccessBody: z.ZodObject<{
20704
20704
  includeCredits: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
20705
20705
  customer: z.ZodObject<{
20706
20706
  keys: z.ZodArray<z.ZodString>;
@@ -20709,7 +20709,7 @@ export declare const queryGovernanceAccessBody: z.ZodObject<{
20709
20709
  keys: z.ZodArray<z.ZodString>;
20710
20710
  }, z.core.$strip>>;
20711
20711
  }, z.core.$strip>;
20712
- export declare const queryGovernanceAccessResponse: z.ZodObject<{
20712
+ export declare const queryEntitlementAccessResponse: z.ZodObject<{
20713
20713
  data: z.ZodArray<z.ZodObject<{
20714
20714
  matched: z.ZodArray<z.ZodString>;
20715
20715
  customer: z.ZodObject<{
@@ -21201,20 +21201,20 @@ export declare const addonStatusWire: z.ZodEnum<{
21201
21201
  archived: "archived";
21202
21202
  draft: "draft";
21203
21203
  }>;
21204
- export declare const governanceQueryRequestCustomersWire: z.ZodObject<{
21204
+ export declare const entitlementAccessQueryRequestCustomersWire: z.ZodObject<{
21205
21205
  keys: z.ZodArray<z.ZodString>;
21206
21206
  }, z.core.$strict>;
21207
- export declare const governanceQueryRequestFeaturesWire: z.ZodObject<{
21207
+ export declare const entitlementAccessQueryRequestFeaturesWire: z.ZodObject<{
21208
21208
  keys: z.ZodArray<z.ZodString>;
21209
21209
  }, z.core.$strict>;
21210
- export declare const governanceFeatureAccessReasonCodeWire: z.ZodEnum<{
21210
+ export declare const entitlementFeatureAccessReasonCodeWire: z.ZodEnum<{
21211
21211
  feature_not_found: "feature_not_found";
21212
21212
  feature_unavailable: "feature_unavailable";
21213
21213
  no_credit_available: "no_credit_available";
21214
21214
  unknown: "unknown";
21215
21215
  usage_limit_reached: "usage_limit_reached";
21216
21216
  }>;
21217
- export declare const governanceQueryErrorCodeWire: z.ZodEnum<{
21217
+ export declare const entitlementAccessQueryErrorCodeWire: z.ZodEnum<{
21218
21218
  customer_not_found: "customer_not_found";
21219
21219
  unknown: "unknown";
21220
21220
  }>;
@@ -22351,7 +22351,7 @@ export declare const listCurrenciesParamsFilterWire: z.ZodObject<{
22351
22351
  exists: z.ZodOptional<z.ZodBoolean>;
22352
22352
  }, z.core.$strict>]>>;
22353
22353
  }, z.core.$strict>;
22354
- export declare const governanceQueryRequestWire: z.ZodObject<{
22354
+ export declare const entitlementAccessQueryRequestWire: z.ZodObject<{
22355
22355
  include_credits: z.ZodOptional<z.ZodBoolean>;
22356
22356
  customer: z.ZodObject<{
22357
22357
  keys: z.ZodArray<z.ZodString>;
@@ -22360,7 +22360,7 @@ export declare const governanceQueryRequestWire: z.ZodObject<{
22360
22360
  keys: z.ZodArray<z.ZodString>;
22361
22361
  }, z.core.$strict>>;
22362
22362
  }, z.core.$strict>;
22363
- export declare const governanceFeatureAccessReasonWire: z.ZodObject<{
22363
+ export declare const entitlementFeatureAccessReasonWire: z.ZodObject<{
22364
22364
  code: z.ZodEnum<{
22365
22365
  feature_not_found: "feature_not_found";
22366
22366
  feature_unavailable: "feature_unavailable";
@@ -22371,7 +22371,7 @@ export declare const governanceFeatureAccessReasonWire: z.ZodObject<{
22371
22371
  message: z.ZodString;
22372
22372
  attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
22373
22373
  }, z.core.$strict>;
22374
- export declare const governanceQueryErrorWire: z.ZodObject<{
22374
+ export declare const entitlementAccessQueryErrorWire: z.ZodObject<{
22375
22375
  code: z.ZodEnum<{
22376
22376
  customer_not_found: "customer_not_found";
22377
22377
  unknown: "unknown";
@@ -23753,7 +23753,7 @@ export declare const updateBillingInvoiceWorkflowWire: z.ZodObject<{
23753
23753
  due_after: z.ZodOptional<z.ZodString>;
23754
23754
  }, z.core.$strict>], "collection_method">>;
23755
23755
  }, z.core.$strict>;
23756
- export declare const governanceFeatureAccessWire: z.ZodObject<{
23756
+ export declare const entitlementFeatureAccessWire: z.ZodObject<{
23757
23757
  has_access: z.ZodBoolean;
23758
23758
  reason: z.ZodOptional<z.ZodObject<{
23759
23759
  code: z.ZodEnum<{
@@ -24889,7 +24889,7 @@ export declare const updateInvoiceWorkflowSettingsWire: z.ZodObject<{
24889
24889
  }, z.core.$strict>], "collection_method">>;
24890
24890
  }, z.core.$strict>;
24891
24891
  }, z.core.$strict>;
24892
- export declare const governanceQueryResultWire: z.ZodObject<{
24892
+ export declare const entitlementAccessQueryResultWire: z.ZodObject<{
24893
24893
  matched: z.ZodArray<z.ZodString>;
24894
24894
  customer: z.ZodObject<{
24895
24895
  id: z.ZodString;
@@ -25659,7 +25659,7 @@ export declare const appWire: z.ZodDiscriminatedUnion<[z.ZodObject<{
25659
25659
  enable_draft_sync_hook: z.ZodBoolean;
25660
25660
  enable_issuing_sync_hook: z.ZodBoolean;
25661
25661
  }, z.core.$strict>], "type">;
25662
- export declare const governanceQueryResponseWire: z.ZodObject<{
25662
+ export declare const entitlementAccessQueryResponseWire: z.ZodObject<{
25663
25663
  data: z.ZodArray<z.ZodObject<{
25664
25664
  matched: z.ZodArray<z.ZodString>;
25665
25665
  customer: z.ZodObject<{
@@ -41429,14 +41429,14 @@ export declare const updateOrganizationDefaultTaxCodesResponseWire: z.ZodObject<
41429
41429
  created_at: z.ZodString;
41430
41430
  updated_at: z.ZodString;
41431
41431
  }, z.core.$strict>;
41432
- export declare const queryGovernanceAccessQueryParamsWire: z.ZodObject<{
41432
+ export declare const queryEntitlementAccessQueryParamsWire: z.ZodObject<{
41433
41433
  page: z.ZodOptional<z.ZodObject<{
41434
41434
  size: z.ZodOptional<z.ZodNumber>;
41435
41435
  after: z.ZodOptional<z.ZodString>;
41436
41436
  before: z.ZodOptional<z.ZodString>;
41437
41437
  }, z.core.$strict>>;
41438
41438
  }, z.core.$strip>;
41439
- export declare const queryGovernanceAccessBodyWire: z.ZodObject<{
41439
+ export declare const queryEntitlementAccessBodyWire: z.ZodObject<{
41440
41440
  include_credits: z.ZodOptional<z.ZodBoolean>;
41441
41441
  customer: z.ZodObject<{
41442
41442
  keys: z.ZodArray<z.ZodString>;
@@ -41445,7 +41445,7 @@ export declare const queryGovernanceAccessBodyWire: z.ZodObject<{
41445
41445
  keys: z.ZodArray<z.ZodString>;
41446
41446
  }, z.core.$strict>>;
41447
41447
  }, z.core.$strict>;
41448
- export declare const queryGovernanceAccessResponseWire: z.ZodObject<{
41448
+ export declare const queryEntitlementAccessResponseWire: z.ZodObject<{
41449
41449
  data: z.ZodArray<z.ZodObject<{
41450
41450
  matched: z.ZodArray<z.ZodString>;
41451
41451
  customer: z.ZodObject<{
@@ -751,7 +751,7 @@ export const addonInstanceType = z
751
751
  export const addonStatus = z
752
752
  .enum(['draft', 'active', 'archived'])
753
753
  .describe('The status of the add-on defined by the `effective_from` and `effective_to` properties. - `draft`: The add-on has not yet been published and can be edited. - `active`: The add-on is published and available for use. - `archived`: The add-on is no longer available for use.');
754
- export const governanceQueryRequestCustomers = z
754
+ export const entitlementAccessQueryRequestCustomers = z
755
755
  .object({
756
756
  keys: z
757
757
  .array(z.string())
@@ -760,7 +760,7 @@ export const governanceQueryRequestCustomers = z
760
760
  .describe('Each entry can be a customer `key` or a usage-attribution subject `key`. Identifiers that cannot be resolved to a customer are reported in the response `errors` array.'),
761
761
  })
762
762
  .describe('List of customer identifiers to evaluate access for.');
763
- export const governanceQueryRequestFeatures = z
763
+ export const entitlementAccessQueryRequestFeatures = z
764
764
  .object({
765
765
  keys: z
766
766
  .array(z.string())
@@ -769,7 +769,7 @@ export const governanceQueryRequestFeatures = z
769
769
  .describe('List of feature keys to evaluate access for.'),
770
770
  })
771
771
  .describe('Optional list of feature keys to evaluate access for. If omitted, all features available in the organization are returned. Providing this list is recommended to reduce the response size and the load on the backend services.');
772
- export const governanceFeatureAccessReasonCode = z
772
+ export const entitlementFeatureAccessReasonCode = z
773
773
  .enum([
774
774
  'unknown',
775
775
  'usage_limit_reached',
@@ -778,9 +778,9 @@ export const governanceFeatureAccessReasonCode = z
778
778
  'no_credit_available',
779
779
  ])
780
780
  .describe('Machine-readable reason code for denied feature access.');
781
- export const governanceQueryErrorCode = z
781
+ export const entitlementAccessQueryErrorCode = z
782
782
  .enum(['unknown', 'customer_not_found'])
783
- .describe('Error code for a governance query failure.');
783
+ .describe('Error code for an entitlement access query failure.');
784
784
  export const queryFilterInteger = z
785
785
  .object({
786
786
  eq: z
@@ -2292,20 +2292,20 @@ export const listCurrenciesParamsFilter = z
2292
2292
  code: stringFieldFilter.optional(),
2293
2293
  })
2294
2294
  .describe('Filter options for listing currencies.');
2295
- export const governanceQueryRequest = z
2295
+ export const entitlementAccessQueryRequest = z
2296
2296
  .object({
2297
2297
  includeCredits: z
2298
2298
  .boolean()
2299
2299
  .optional()
2300
2300
  .default(false)
2301
2301
  .describe('Whether to include credit balance availability for each resolved customer. When true, each feature evaluation includes credit balance checks. Defaults to `false`.'),
2302
- customer: governanceQueryRequestCustomers,
2303
- feature: governanceQueryRequestFeatures.optional(),
2302
+ customer: entitlementAccessQueryRequestCustomers,
2303
+ feature: entitlementAccessQueryRequestFeatures.optional(),
2304
2304
  })
2305
2305
  .describe('Query to evaluate feature access for a list of customers.');
2306
- export const governanceFeatureAccessReason = z
2306
+ export const entitlementFeatureAccessReason = z
2307
2307
  .object({
2308
- code: governanceFeatureAccessReasonCode,
2308
+ code: entitlementFeatureAccessReasonCode,
2309
2309
  message: z.string().describe('Human-readable description of the error.'),
2310
2310
  attributes: z
2311
2311
  .record(z.string(), z.unknown())
@@ -2313,9 +2313,9 @@ export const governanceFeatureAccessReason = z
2313
2313
  .describe('Additional structured context.'),
2314
2314
  })
2315
2315
  .describe('Reason a feature is not accessible to a customer.');
2316
- export const governanceQueryError = z
2316
+ export const entitlementAccessQueryError = z
2317
2317
  .object({
2318
- code: governanceQueryErrorCode,
2318
+ code: entitlementAccessQueryErrorCode,
2319
2319
  message: z.string().describe('Human-readable description of the error.'),
2320
2320
  attributes: z
2321
2321
  .record(z.string(), z.unknown())
@@ -2326,7 +2326,7 @@ export const governanceQueryError = z
2326
2326
  .optional()
2327
2327
  .describe('The customer identifier from the request that produced this error.'),
2328
2328
  })
2329
- .describe('Query error within a partially successful governance query response.');
2329
+ .describe('Query error within a partially successful entitlement access query response.');
2330
2330
  export const appCustomerData = z
2331
2331
  .object({
2332
2332
  stripe: appCustomerDataStripe.optional(),
@@ -3118,12 +3118,12 @@ export const updateBillingInvoiceWorkflow = z
3118
3118
  payment: updateBillingWorkflowPaymentSettings.optional(),
3119
3119
  })
3120
3120
  .describe('Invoice-level snapshot of the workflow configuration. Contains only the settings that are meaningful for an already-created invoice: invoicing behaviour and payment settings. Collection alignment and tax policy are gather-time / profile-wide concerns and are not included.');
3121
- export const governanceFeatureAccess = z
3121
+ export const entitlementFeatureAccess = z
3122
3122
  .object({
3123
3123
  hasAccess: z
3124
3124
  .boolean()
3125
3125
  .describe('Whether the customer currently has access to the feature. `true` for boolean and static entitlements that are available, and for metered entitlements with remaining balance. `false` when the feature is unavailable, the usage limit has been reached, or (when applicable) credits have been exhausted.'),
3126
- reason: governanceFeatureAccessReason.optional(),
3126
+ reason: entitlementFeatureAccessReason.optional(),
3127
3127
  })
3128
3128
  .describe('Access status for a single feature.');
3129
3129
  export const customerData = z
@@ -3594,14 +3594,14 @@ export const updateInvoiceWorkflowSettings = z
3594
3594
  workflow: updateBillingInvoiceWorkflow,
3595
3595
  })
3596
3596
  .describe('Snapshot of the billing workflow configuration captured at invoice creation.');
3597
- export const governanceQueryResult = z
3597
+ export const entitlementAccessQueryResult = z
3598
3598
  .object({
3599
3599
  matched: z
3600
3600
  .array(z.string())
3601
3601
  .describe('The list of identifiers from the request that resolved to this customer. Each entry is either the customer `key` or one of its usage-attribution subject `key`s. Duplicate or aliased identifiers that resolve to the same customer collapse to a single result entry, with every requested identifier listed here.'),
3602
3602
  customer: customer,
3603
3603
  features: z
3604
- .record(z.string(), governanceFeatureAccess)
3604
+ .record(z.string(), entitlementFeatureAccess)
3605
3605
  .describe('Map of features with their access status. Map keys are the feature keys requested in `feature.keys`, or every feature `key` available in the organization when the feature filter was omitted.'),
3606
3606
  updatedAt: dateTime,
3607
3607
  })
@@ -3737,17 +3737,17 @@ export const workflowCollectionSettings = z
3737
3737
  export const app = z
3738
3738
  .discriminatedUnion('type', [appStripe, appSandbox, appExternalInvoicing])
3739
3739
  .describe('Installed application.');
3740
- export const governanceQueryResponse = z
3740
+ export const entitlementAccessQueryResponse = z
3741
3741
  .object({
3742
3742
  data: z
3743
- .array(governanceQueryResult)
3743
+ .array(entitlementAccessQueryResult)
3744
3744
  .describe('Access evaluation results, one entry per resolved customer.'),
3745
3745
  errors: z
3746
- .array(governanceQueryError)
3746
+ .array(entitlementAccessQueryError)
3747
3747
  .describe('Partial errors encountered while processing the request.'),
3748
3748
  meta: cursorMeta,
3749
3749
  })
3750
- .describe('Response of the governance query.');
3750
+ .describe('Response of the entitlement access query.');
3751
3751
  export const chargeFlatFee = z
3752
3752
  .object({
3753
3753
  id: ulid,
@@ -5148,11 +5148,11 @@ export const deletePlanAddonPathParams = z.object({
5148
5148
  export const getOrganizationDefaultTaxCodesResponse = organizationDefaultTaxCodes;
5149
5149
  export const updateOrganizationDefaultTaxCodesBody = updateOrganizationDefaultTaxCodesRequest;
5150
5150
  export const updateOrganizationDefaultTaxCodesResponse = organizationDefaultTaxCodes;
5151
- export const queryGovernanceAccessQueryParams = z.object({
5151
+ export const queryEntitlementAccessQueryParams = z.object({
5152
5152
  page: cursorPaginationQueryPage.optional(),
5153
5153
  });
5154
- export const queryGovernanceAccessBody = governanceQueryRequest;
5155
- export const queryGovernanceAccessResponse = governanceQueryResponse;
5154
+ export const queryEntitlementAccessBody = entitlementAccessQueryRequest;
5155
+ export const queryEntitlementAccessResponse = entitlementAccessQueryResponse;
5156
5156
  export const labelsWire = z
5157
5157
  .record(z.string(), z.string())
5158
5158
  .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 "\\_".');
@@ -5897,7 +5897,7 @@ export const addonInstanceTypeWire = z
5897
5897
  export const addonStatusWire = z
5898
5898
  .enum(['draft', 'active', 'archived'])
5899
5899
  .describe('The status of the add-on defined by the `effective_from` and `effective_to` properties. - `draft`: The add-on has not yet been published and can be edited. - `active`: The add-on is published and available for use. - `archived`: The add-on is no longer available for use.');
5900
- export const governanceQueryRequestCustomersWire = z
5900
+ export const entitlementAccessQueryRequestCustomersWire = z
5901
5901
  .strictObject({
5902
5902
  keys: z
5903
5903
  .array(z.string())
@@ -5906,7 +5906,7 @@ export const governanceQueryRequestCustomersWire = z
5906
5906
  .describe('Each entry can be a customer `key` or a usage-attribution subject `key`. Identifiers that cannot be resolved to a customer are reported in the response `errors` array.'),
5907
5907
  })
5908
5908
  .describe('List of customer identifiers to evaluate access for.');
5909
- export const governanceQueryRequestFeaturesWire = z
5909
+ export const entitlementAccessQueryRequestFeaturesWire = z
5910
5910
  .strictObject({
5911
5911
  keys: z
5912
5912
  .array(z.string())
@@ -5915,7 +5915,7 @@ export const governanceQueryRequestFeaturesWire = z
5915
5915
  .describe('List of feature keys to evaluate access for.'),
5916
5916
  })
5917
5917
  .describe('Optional list of feature keys to evaluate access for. If omitted, all features available in the organization are returned. Providing this list is recommended to reduce the response size and the load on the backend services.');
5918
- export const governanceFeatureAccessReasonCodeWire = z
5918
+ export const entitlementFeatureAccessReasonCodeWire = z
5919
5919
  .enum([
5920
5920
  'unknown',
5921
5921
  'usage_limit_reached',
@@ -5924,9 +5924,9 @@ export const governanceFeatureAccessReasonCodeWire = z
5924
5924
  'no_credit_available',
5925
5925
  ])
5926
5926
  .describe('Machine-readable reason code for denied feature access.');
5927
- export const governanceQueryErrorCodeWire = z
5927
+ export const entitlementAccessQueryErrorCodeWire = z
5928
5928
  .enum(['unknown', 'customer_not_found'])
5929
- .describe('Error code for a governance query failure.');
5929
+ .describe('Error code for an entitlement access query failure.');
5930
5930
  export const queryFilterIntegerWire = z
5931
5931
  .strictObject({
5932
5932
  eq: z
@@ -7415,19 +7415,19 @@ export const listCurrenciesParamsFilterWire = z
7415
7415
  code: stringFieldFilterWire.optional(),
7416
7416
  })
7417
7417
  .describe('Filter options for listing currencies.');
7418
- export const governanceQueryRequestWire = z
7418
+ export const entitlementAccessQueryRequestWire = z
7419
7419
  .strictObject({
7420
7420
  include_credits: z
7421
7421
  .boolean()
7422
7422
  .optional()
7423
7423
  .describe('Whether to include credit balance availability for each resolved customer. When true, each feature evaluation includes credit balance checks. Defaults to `false`.'),
7424
- customer: governanceQueryRequestCustomersWire,
7425
- feature: governanceQueryRequestFeaturesWire.optional(),
7424
+ customer: entitlementAccessQueryRequestCustomersWire,
7425
+ feature: entitlementAccessQueryRequestFeaturesWire.optional(),
7426
7426
  })
7427
7427
  .describe('Query to evaluate feature access for a list of customers.');
7428
- export const governanceFeatureAccessReasonWire = z
7428
+ export const entitlementFeatureAccessReasonWire = z
7429
7429
  .strictObject({
7430
- code: governanceFeatureAccessReasonCodeWire,
7430
+ code: entitlementFeatureAccessReasonCodeWire,
7431
7431
  message: z.string().describe('Human-readable description of the error.'),
7432
7432
  attributes: z
7433
7433
  .record(z.string(), z.unknown())
@@ -7435,9 +7435,9 @@ export const governanceFeatureAccessReasonWire = z
7435
7435
  .describe('Additional structured context.'),
7436
7436
  })
7437
7437
  .describe('Reason a feature is not accessible to a customer.');
7438
- export const governanceQueryErrorWire = z
7438
+ export const entitlementAccessQueryErrorWire = z
7439
7439
  .strictObject({
7440
- code: governanceQueryErrorCodeWire,
7440
+ code: entitlementAccessQueryErrorCodeWire,
7441
7441
  message: z.string().describe('Human-readable description of the error.'),
7442
7442
  attributes: z
7443
7443
  .record(z.string(), z.unknown())
@@ -7448,7 +7448,7 @@ export const governanceQueryErrorWire = z
7448
7448
  .optional()
7449
7449
  .describe('The customer identifier from the request that produced this error.'),
7450
7450
  })
7451
- .describe('Query error within a partially successful governance query response.');
7451
+ .describe('Query error within a partially successful entitlement access query response.');
7452
7452
  export const appCustomerDataWire = z
7453
7453
  .strictObject({
7454
7454
  stripe: appCustomerDataStripeWire.optional(),
@@ -8242,12 +8242,12 @@ export const updateBillingInvoiceWorkflowWire = z
8242
8242
  payment: updateBillingWorkflowPaymentSettingsWire.optional(),
8243
8243
  })
8244
8244
  .describe('Invoice-level snapshot of the workflow configuration. Contains only the settings that are meaningful for an already-created invoice: invoicing behaviour and payment settings. Collection alignment and tax policy are gather-time / profile-wide concerns and are not included.');
8245
- export const governanceFeatureAccessWire = z
8245
+ export const entitlementFeatureAccessWire = z
8246
8246
  .strictObject({
8247
8247
  has_access: z
8248
8248
  .boolean()
8249
8249
  .describe('Whether the customer currently has access to the feature. `true` for boolean and static entitlements that are available, and for metered entitlements with remaining balance. `false` when the feature is unavailable, the usage limit has been reached, or (when applicable) credits have been exhausted.'),
8250
- reason: governanceFeatureAccessReasonWire.optional(),
8250
+ reason: entitlementFeatureAccessReasonWire.optional(),
8251
8251
  })
8252
8252
  .describe('Access status for a single feature.');
8253
8253
  export const customerDataWire = z
@@ -8716,14 +8716,14 @@ export const updateInvoiceWorkflowSettingsWire = z
8716
8716
  workflow: updateBillingInvoiceWorkflowWire,
8717
8717
  })
8718
8718
  .describe('Snapshot of the billing workflow configuration captured at invoice creation.');
8719
- export const governanceQueryResultWire = z
8719
+ export const entitlementAccessQueryResultWire = z
8720
8720
  .strictObject({
8721
8721
  matched: z
8722
8722
  .array(z.string())
8723
8723
  .describe('The list of identifiers from the request that resolved to this customer. Each entry is either the customer `key` or one of its usage-attribution subject `key`s. Duplicate or aliased identifiers that resolve to the same customer collapse to a single result entry, with every requested identifier listed here.'),
8724
8724
  customer: customerWire,
8725
8725
  features: z
8726
- .record(z.string(), governanceFeatureAccessWire)
8726
+ .record(z.string(), entitlementFeatureAccessWire)
8727
8727
  .describe('Map of features with their access status. Map keys are the feature keys requested in `feature.keys`, or every feature `key` available in the organization when the feature filter was omitted.'),
8728
8728
  updated_at: dateTimeWire,
8729
8729
  })
@@ -8864,17 +8864,17 @@ export const appWire = z
8864
8864
  appExternalInvoicingWire,
8865
8865
  ])
8866
8866
  .describe('Installed application.');
8867
- export const governanceQueryResponseWire = z
8867
+ export const entitlementAccessQueryResponseWire = z
8868
8868
  .strictObject({
8869
8869
  data: z
8870
- .array(governanceQueryResultWire)
8870
+ .array(entitlementAccessQueryResultWire)
8871
8871
  .describe('Access evaluation results, one entry per resolved customer.'),
8872
8872
  errors: z
8873
- .array(governanceQueryErrorWire)
8873
+ .array(entitlementAccessQueryErrorWire)
8874
8874
  .describe('Partial errors encountered while processing the request.'),
8875
8875
  meta: cursorMetaWire,
8876
8876
  })
8877
- .describe('Response of the governance query.');
8877
+ .describe('Response of the entitlement access query.');
8878
8878
  export const chargeFlatFeeWire = z
8879
8879
  .strictObject({
8880
8880
  id: ulidWire,
@@ -10309,8 +10309,8 @@ export const deletePlanAddonPathParamsWire = z.object({
10309
10309
  export const getOrganizationDefaultTaxCodesResponseWire = organizationDefaultTaxCodesWire;
10310
10310
  export const updateOrganizationDefaultTaxCodesBodyWire = updateOrganizationDefaultTaxCodesRequestWire;
10311
10311
  export const updateOrganizationDefaultTaxCodesResponseWire = organizationDefaultTaxCodesWire;
10312
- export const queryGovernanceAccessQueryParamsWire = z.object({
10312
+ export const queryEntitlementAccessQueryParamsWire = z.object({
10313
10313
  page: cursorPaginationQueryPageWire.optional(),
10314
10314
  });
10315
- export const queryGovernanceAccessBodyWire = governanceQueryRequestWire;
10316
- export const queryGovernanceAccessResponseWire = governanceQueryResponseWire;
10315
+ export const queryEntitlementAccessBodyWire = entitlementAccessQueryRequestWire;
10316
+ export const queryEntitlementAccessResponseWire = entitlementAccessQueryResponseWire;
@@ -360,7 +360,7 @@ export interface ProductCatalogValidationError {
360
360
  field: string;
361
361
  }
362
362
  /** List of customer identifiers to evaluate access for. */
363
- export interface GovernanceQueryRequestCustomers {
363
+ export interface EntitlementAccessQueryRequestCustomers {
364
364
  /**
365
365
  * Each entry can be a customer `key` or a usage-attribution subject `key`.
366
366
  * Identifiers that cannot be resolved to a customer are reported in the response
@@ -373,7 +373,7 @@ export interface GovernanceQueryRequestCustomers {
373
373
  * available in the organization are returned. Providing this list is recommended
374
374
  * to reduce the response size and the load on the backend services.
375
375
  */
376
- export interface GovernanceQueryRequestFeatures {
376
+ export interface EntitlementAccessQueryRequestFeatures {
377
377
  /** List of feature keys to evaluate access for. */
378
378
  keys: string[];
379
379
  }
@@ -2066,7 +2066,7 @@ export interface ListCurrenciesParamsFilter {
2066
2066
  code?: StringFieldFilter;
2067
2067
  }
2068
2068
  /** Query to evaluate feature access for a list of customers. */
2069
- export interface GovernanceQueryRequest {
2069
+ export interface EntitlementAccessQueryRequest {
2070
2070
  /**
2071
2071
  * Whether to include credit balance availability for each resolved customer. When
2072
2072
  * true, each feature evaluation includes credit balance checks.
@@ -2074,11 +2074,11 @@ export interface GovernanceQueryRequest {
2074
2074
  * Defaults to `false`.
2075
2075
  */
2076
2076
  includeCredits: boolean;
2077
- customer: GovernanceQueryRequestCustomers;
2078
- feature?: GovernanceQueryRequestFeatures;
2077
+ customer: EntitlementAccessQueryRequestCustomers;
2078
+ feature?: EntitlementAccessQueryRequestFeatures;
2079
2079
  }
2080
2080
  /** Reason a feature is not accessible to a customer. */
2081
- export interface GovernanceFeatureAccessReason {
2081
+ export interface EntitlementFeatureAccessReason {
2082
2082
  /** Machine-readable error code. */
2083
2083
  code: 'unknown' | 'usage_limit_reached' | 'feature_unavailable' | 'feature_not_found' | 'no_credit_available';
2084
2084
  /** Human-readable description of the error. */
@@ -2086,8 +2086,8 @@ export interface GovernanceFeatureAccessReason {
2086
2086
  /** Additional structured context. */
2087
2087
  attributes?: Record<string, unknown>;
2088
2088
  }
2089
- /** Query error within a partially successful governance query response. */
2090
- export interface GovernanceQueryError {
2089
+ /** Query error within a partially successful entitlement access query response. */
2090
+ export interface EntitlementAccessQueryError {
2091
2091
  /** Machine-readable error code. */
2092
2092
  code: 'unknown' | 'customer_not_found';
2093
2093
  /** Human-readable description of the error. */
@@ -3173,7 +3173,7 @@ export interface UpdateBillingInvoiceWorkflow {
3173
3173
  payment?: UpdateBillingWorkflowPaymentSettings;
3174
3174
  }
3175
3175
  /** Access status for a single feature. */
3176
- export interface GovernanceFeatureAccess {
3176
+ export interface EntitlementFeatureAccess {
3177
3177
  /**
3178
3178
  * Whether the customer currently has access to the feature.
3179
3179
  *
@@ -3187,7 +3187,7 @@ export interface GovernanceFeatureAccess {
3187
3187
  * Optional reason when the customer does not have access to the feature. Populated
3188
3188
  * when `has_access` is `false`.
3189
3189
  */
3190
- reason?: GovernanceFeatureAccessReason;
3190
+ reason?: EntitlementFeatureAccessReason;
3191
3191
  }
3192
3192
  /** Billing customer data. */
3193
3193
  export interface CustomerData {
@@ -3904,7 +3904,7 @@ export interface UpdateInvoiceWorkflowSettings {
3904
3904
  workflow: UpdateBillingInvoiceWorkflow;
3905
3905
  }
3906
3906
  /** Access evaluation result for a single resolved customer. */
3907
- export interface GovernanceQueryResult {
3907
+ export interface EntitlementAccessQueryResult {
3908
3908
  /**
3909
3909
  * The list of identifiers from the request that resolved to this customer. Each
3910
3910
  * entry is either the customer `key` or one of its usage-attribution subject
@@ -3922,7 +3922,7 @@ export interface GovernanceQueryResult {
3922
3922
  * Map keys are the feature keys requested in `feature.keys`, or every feature
3923
3923
  * `key` available in the organization when the feature filter was omitted.
3924
3924
  */
3925
- features: Record<string, GovernanceFeatureAccess>;
3925
+ features: Record<string, EntitlementFeatureAccess>;
3926
3926
  /**
3927
3927
  * Timestamp of the most recent change to the customer's access state reflected in
3928
3928
  * this result.
@@ -4103,12 +4103,12 @@ export interface WorkflowCollectionSettings {
4103
4103
  */
4104
4104
  interval: string;
4105
4105
  }
4106
- /** Response of the governance query. */
4107
- export interface GovernanceQueryResponse {
4106
+ /** Response of the entitlement access query. */
4107
+ export interface EntitlementAccessQueryResponse {
4108
4108
  /** Access evaluation results, one entry per resolved customer. */
4109
- data: GovernanceQueryResult[];
4109
+ data: EntitlementAccessQueryResult[];
4110
4110
  /** Partial errors encountered while processing the request. */
4111
- errors: GovernanceQueryError[];
4111
+ errors: EntitlementAccessQueryError[];
4112
4112
  /**
4113
4113
  * Pagination metadata. The endpoint may return a partial response if the full
4114
4114
  * response would exceed server-side limits.
@@ -5645,7 +5645,7 @@ export interface WorkflowInvoicingSettingsInput {
5645
5645
  subscriptionEndProrationMode?: 'bill_full_period' | 'bill_actual_period';
5646
5646
  }
5647
5647
  /** Query to evaluate feature access for a list of customers. */
5648
- export interface GovernanceQueryRequestInput {
5648
+ export interface EntitlementAccessQueryRequestInput {
5649
5649
  /**
5650
5650
  * Whether to include credit balance availability for each resolved customer. When
5651
5651
  * true, each feature evaluation includes credit balance checks.
@@ -5653,8 +5653,8 @@ export interface GovernanceQueryRequestInput {
5653
5653
  * Defaults to `false`.
5654
5654
  */
5655
5655
  includeCredits?: boolean;
5656
- customer: GovernanceQueryRequestCustomers;
5657
- feature?: GovernanceQueryRequestFeatures;
5656
+ customer: EntitlementAccessQueryRequestCustomers;
5657
+ feature?: EntitlementAccessQueryRequestFeatures;
5658
5658
  }
5659
5659
  /** Subscription. */
5660
5660
  export interface SubscriptionInput {
@@ -5,7 +5,7 @@ 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 { QueryGovernanceAccessRequest, QueryGovernanceAccessResponse } from '../models/operations/governance.js';
8
+ import type { QueryEntitlementAccessRequest, QueryEntitlementAccessResponse } from '../models/operations/entitlementAccess.js';
9
9
  import type { App, AppCatalogItem, CostBasis, Currency, Invoice } from '../models/types.js';
10
10
  /**
11
11
  * Operations marked internal in the API definition. They are not part of
@@ -25,8 +25,8 @@ export declare class Internal {
25
25
  get invoices(): InternalInvoices;
26
26
  private _currencies?;
27
27
  get currencies(): InternalCurrencies;
28
- private _governance?;
29
- get governance(): InternalGovernance;
28
+ private _entitlementAccess?;
29
+ get entitlementAccess(): InternalEntitlementAccess;
30
30
  }
31
31
  export declare class InternalCustomers {
32
32
  private readonly _client;
@@ -342,11 +342,11 @@ export declare class InternalCurrencies {
342
342
  */
343
343
  createCostBasis(request: CreateCostBasisRequest, options?: RequestOptions): Promise<CreateCostBasisResponse>;
344
344
  }
345
- export declare class InternalGovernance {
345
+ export declare class InternalEntitlementAccess {
346
346
  private readonly _client;
347
347
  constructor(_client: Client);
348
348
  /**
349
- * Query governance access
349
+ * Query entitlement access
350
350
  *
351
351
  * Query feature access for a list of customers.
352
352
  *
@@ -357,7 +357,7 @@ export declare class InternalGovernance {
357
357
  * _Designed to be called on a fixed refresh interval and the query response is
358
358
  * intended to be cached._
359
359
  *
360
- * POST /openmeter/governance/query
360
+ * POST /openmeter/entitlement-access/query
361
361
  */
362
- queryAccess(request: QueryGovernanceAccessRequest, options?: RequestOptions): Promise<QueryGovernanceAccessResponse>;
362
+ query(request: QueryEntitlementAccessRequest, options?: RequestOptions): Promise<QueryEntitlementAccessResponse>;
363
363
  }
@@ -6,7 +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 { queryGovernanceAccess } from '../funcs/governance.js';
9
+ import { queryEntitlementAccess } from '../funcs/entitlementAccess.js';
10
10
  /**
11
11
  * Operations marked internal in the API definition. They are not part of
12
12
  * the customer surface: they may require additional permissions, and they
@@ -37,9 +37,9 @@ export class Internal {
37
37
  get currencies() {
38
38
  return (this._currencies ??= new InternalCurrencies(this._client));
39
39
  }
40
- _governance;
41
- get governance() {
42
- return (this._governance ??= new InternalGovernance(this._client));
40
+ _entitlementAccess;
41
+ get entitlementAccess() {
42
+ return (this._entitlementAccess ??= new InternalEntitlementAccess(this._client));
43
43
  }
44
44
  }
45
45
  export class InternalCustomers {
@@ -428,13 +428,13 @@ export class InternalCurrencies {
428
428
  return unwrap(await createCostBasis(this._client, request, options));
429
429
  }
430
430
  }
431
- export class InternalGovernance {
431
+ export class InternalEntitlementAccess {
432
432
  _client;
433
433
  constructor(_client) {
434
434
  this._client = _client;
435
435
  }
436
436
  /**
437
- * Query governance access
437
+ * Query entitlement access
438
438
  *
439
439
  * Query feature access for a list of customers.
440
440
  *
@@ -445,9 +445,9 @@ export class InternalGovernance {
445
445
  * _Designed to be called on a fixed refresh interval and the query response is
446
446
  * intended to be cached._
447
447
  *
448
- * POST /openmeter/governance/query
448
+ * POST /openmeter/entitlement-access/query
449
449
  */
450
- async queryAccess(request, options) {
451
- return unwrap(await queryGovernanceAccess(this._client, request, options));
450
+ async query(request, options) {
451
+ return unwrap(await queryEntitlementAccess(this._client, request, options));
452
452
  }
453
453
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openmeter/client",
3
- "version": "1.0.0-beta-9e9d6f374fdd",
3
+ "version": "1.0.0-beta-44d4608e596a",
4
4
  "description": "Official TypeScript SDK for the OpenMeter API — usage metering and billing",
5
5
  "keywords": [
6
6
  "openmeter",
@@ -1,9 +0,0 @@
1
- import type { AcceptDateStrings } from '../../lib/wire.js';
2
- import type { CursorPaginationQueryPage, GovernanceQueryRequestInput, GovernanceQueryResponse } from '../types.js';
3
- export interface QueryGovernanceAccessQuery {
4
- page?: CursorPaginationQueryPage;
5
- }
6
- export type QueryGovernanceAccessRequest = AcceptDateStrings<{
7
- body: GovernanceQueryRequestInput;
8
- } & QueryGovernanceAccessQuery>;
9
- export type QueryGovernanceAccessResponse = GovernanceQueryResponse;