@openmeter/client 1.0.0-beta.237 → 1.0.0-beta.238
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -3
- package/dist/funcs/charges.d.ts +11 -1
- package/dist/funcs/charges.js +45 -1
- package/dist/index.d.ts +1 -1
- package/dist/lib/paginate.d.ts +12 -6
- package/dist/lib/paginate.js +23 -9
- package/dist/lib/version.d.ts +1 -1
- package/dist/lib/version.js +1 -1
- package/dist/models/operations/charges.d.ts +16 -3
- package/dist/models/operations/customers.d.ts +4 -2
- package/dist/models/operations/entitlementAccess.d.ts +3 -2
- package/dist/models/operations/events.d.ts +3 -2
- package/dist/models/schemas.d.ts +4639 -1789
- package/dist/models/schemas.js +586 -76
- package/dist/models/types.d.ts +140 -5
- package/dist/sdk/charges.d.ts +11 -1
- package/dist/sdk/charges.js +13 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -390,9 +390,10 @@ The full call path, HTTP route, and a short description are listed below.
|
|
|
390
390
|
|
|
391
391
|
### Charges
|
|
392
392
|
|
|
393
|
-
| Method | HTTP
|
|
394
|
-
| --------------------- |
|
|
395
|
-
| `client.charges.
|
|
393
|
+
| Method | HTTP | Description |
|
|
394
|
+
| --------------------- | ----------------------------------- | ------------------------------------------------------------------------------------------------------------------- |
|
|
395
|
+
| `client.charges.get` | `GET /openmeter/charges/{chargeId}` | Get a flat fee or usage-based charge by ID. Deleted charges are returned with their status and realization history. |
|
|
396
|
+
| `client.charges.list` | `GET /openmeter/charges` | List charges. Returns the charges of every customer that are represented as either flat fee or usage-based charges. |
|
|
396
397
|
|
|
397
398
|
### Tax
|
|
398
399
|
|
package/dist/funcs/charges.d.ts
CHANGED
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
import { type Client } from '../core.js';
|
|
2
2
|
import { type Result, type RequestOptions } from '../lib/types.js';
|
|
3
|
-
import type { ListChargesRequest, ListChargesResponse } from '../models/operations/charges.js';
|
|
3
|
+
import type { GetChargeRequest, GetChargeResponse, ListChargesRequest, ListChargesResponse } from '../models/operations/charges.js';
|
|
4
|
+
/**
|
|
5
|
+
* Get charge
|
|
6
|
+
*
|
|
7
|
+
* Get a flat fee or usage-based charge by ID.
|
|
8
|
+
*
|
|
9
|
+
* Deleted charges are returned with their status and realization history.
|
|
10
|
+
*
|
|
11
|
+
* GET /openmeter/charges/{chargeId}
|
|
12
|
+
*/
|
|
13
|
+
export declare function getCharge(client: Client, req: GetChargeRequest, options?: RequestOptions): Promise<Result<GetChargeResponse>>;
|
|
4
14
|
/**
|
|
5
15
|
* List charges
|
|
6
16
|
*
|
package/dist/funcs/charges.js
CHANGED
|
@@ -2,8 +2,52 @@
|
|
|
2
2
|
import { http } from '../core.js';
|
|
3
3
|
import { request } from '../lib/request.js';
|
|
4
4
|
import { toURLSearchParams, encodeSort } from '../lib/encodings.js';
|
|
5
|
-
import { toWire, fromWire, assertValid, toSnakeCase } from '../lib/wire.js';
|
|
5
|
+
import { toWire, toPathWire, fromWire, assertValid, toSnakeCase, } from '../lib/wire.js';
|
|
6
6
|
import * as schemas from '../models/schemas.js';
|
|
7
|
+
/**
|
|
8
|
+
* Get charge
|
|
9
|
+
*
|
|
10
|
+
* Get a flat fee or usage-based charge by ID.
|
|
11
|
+
*
|
|
12
|
+
* Deleted charges are returned with their status and realization history.
|
|
13
|
+
*
|
|
14
|
+
* GET /openmeter/charges/{chargeId}
|
|
15
|
+
*/
|
|
16
|
+
export function getCharge(client, req, options) {
|
|
17
|
+
return request(() => {
|
|
18
|
+
const pathParamsInput = {
|
|
19
|
+
chargeId: req.chargeId,
|
|
20
|
+
};
|
|
21
|
+
const pathParams = client._options.validate
|
|
22
|
+
? toPathWire(pathParamsInput, schemas.getChargePathParams)
|
|
23
|
+
: pathParamsInput;
|
|
24
|
+
if (client._options.validate) {
|
|
25
|
+
assertValid(schemas.getChargePathParamsWire, pathParams);
|
|
26
|
+
}
|
|
27
|
+
const path = `openmeter/charges/${(() => {
|
|
28
|
+
if (pathParams.chargeId === undefined) {
|
|
29
|
+
throw new Error('missing path parameter: chargeId');
|
|
30
|
+
}
|
|
31
|
+
return encodeURIComponent(String(pathParams.chargeId));
|
|
32
|
+
})()}`;
|
|
33
|
+
const query = toWire({
|
|
34
|
+
expand: req.expand,
|
|
35
|
+
}, schemas.getChargeQueryParams);
|
|
36
|
+
if (client._options.validate) {
|
|
37
|
+
assertValid(schemas.getChargeQueryParamsWire, query);
|
|
38
|
+
}
|
|
39
|
+
const searchParams = toURLSearchParams(query);
|
|
40
|
+
return http(client)
|
|
41
|
+
.get(path, { ...options, searchParams })
|
|
42
|
+
.json()
|
|
43
|
+
.then((data) => {
|
|
44
|
+
if (client._options.validate) {
|
|
45
|
+
assertValid(schemas.getChargeResponseWire, data);
|
|
46
|
+
}
|
|
47
|
+
return fromWire(data, schemas.getChargeResponse);
|
|
48
|
+
});
|
|
49
|
+
});
|
|
50
|
+
}
|
|
7
51
|
/**
|
|
8
52
|
* List charges
|
|
9
53
|
*
|
package/dist/index.d.ts
CHANGED
|
@@ -50,4 +50,4 @@ export type * from './models/operations/planAddons.js';
|
|
|
50
50
|
export type * from './models/operations/defaults.js';
|
|
51
51
|
export type * from './models/operations/entitlementAccess.js';
|
|
52
52
|
export type * from './models/operations/notifications.js';
|
|
53
|
-
export type { Labels, CursorPaginationQueryPage, SortQuery, IngestedEventValidationError, CursorMetaPage, BaseError, PageMeta, QueryFilterString, AppStripeCheckoutSessionCustomTextParams, AppStripeCreateCustomerPortalSessionOptions, CreateLabels, CreateVersionFilter, VersionFilter, PriceFree, RateCardStaticEntitlement, RateCardBooleanEntitlement, TaxConfigStripe, TaxConfigExternalInvoicing, InvoiceExternalReferences, InvoiceAvailableActionDetails, InvoiceWorkflowInvoicingSettings, WorkflowPaymentChargeAutomaticallySettings, WorkflowPaymentSendInvoiceSettings, ChargeFlatFeeDiscounts, InvoiceLineExternalReferences, SubscriptionEditRemoveItem, SubscriptionEditUnscheduleEdit, UpdateLabels, AppReconcileWebhookEventsActionRequest, InstallAppStripeWithApiKey, InstallAppSandbox, InstallAppExternalInvoicing, WorkflowCollectionAlignmentSubscription, UpdateBillingInvoiceWorkflowInvoicingSettings, UpdateBillingWorkflowPaymentChargeAutomaticallySettings, UpdateBillingWorkflowPaymentSendInvoiceSettings, UpdatePriceFree, LlmCostProvider, LlmCostModel, ProductCatalogValidationError, EntitlementAccessQueryRequestCustomers, EntitlementAccessQueryRequestFeatures, NotificationEventDeliveryAttemptResponse, NotificationEventV1Metadata, NotificationEventV1Annotations, NotificationEventV1Period, NotificationEventV1FilterString, NotificationEventV1Subject, NotificationEventV1EntitlementValue, NotificationEventV1CustomerUsageAttribution, NotificationEventV1Alignment, NotificationEventV1PlanReference, NotificationEventV1InvoiceAvailableActionDetails, NotificationEventV1InvoiceAvailableActionInvoiceDetails, NotificationEventV1BillingWorkflowCollectionAlignmentSubscription, NotificationEventV1StripeTaxConfig, NotificationEventV1CustomInvoicingTaxConfig, NotificationEventV1BillingWorkflowTaxSettings, NotificationEventV1DiscountReasonMaximumSpend, NotificationEventV1InvoiceLineAppExternalIds, NotificationEventV1IdResource, NotificationEventV1PaymentTermInstant, NotificationEventV1InvoiceAppExternalIds, QueryFilterInteger, QueryFilterFloat, QueryFilterBoolean, PagePaginationQuery, PublicLabels, InvoiceCreatedV1RuleConfig, InvoiceUpdatedV1RuleConfig, SystemAccountAccessToken, PersonalAccessToken, KonnectAccessToken, AppCustomerDataStripe, AppCustomerDataExternalInvoicing, CreateChargeCostBasisDynamic, ChargeCostBasisDynamic, CurrencyFiat, ListCostBasesParamsFilter, CreateCurrencyCustomRequest, EntitlementAccessValue, EntitlementIssueAfterReset, EntitlementBurndownBalance, EntitlementBurndownGrantBalances, CreateChargeCostBasisManual, ChargeCostBasisManual, PriceFlat, PriceUnit, SpendCommitments, RateCardDiscounts, Totals, ChargeRealizationDetailedLineCreditApplied, ChargeRealizationAmountDiscount, FeatureManualUnitCost, FeatureLlmUnitCostPricing, InvoiceLineCreditsApplied, InvoiceUsageQuantityDetail, UpdatePriceFlat, UpdatePriceUnit, UpdateDiscounts, LlmCostModelPricing, FiatCurrencyAmount, QueryFilterNumeric, CursorPaginationQuery, ListMetersParamsFilter, ListLlmCostPricesParamsFilter, LabelsFieldFilter, CustomerReference, ProfileReference, FeatureReference, EntitlementGrantUsage, CreateChargeCostBasisPinned, CreateResourceReference, CurrencyCustomReference, ChargeCostBasisPinned, TaxCodeReference, CreditGrantInvoiceReference, SubscriptionCostBasisPin, SubscriptionReference, AppReference, ChargeRealizationInvoiceReference, ChargeReference, AddonReference, UpdateResourceReference, NotificationChannelReference, BillingCustomerReference, ChargeFeature, Event, MeterQueryRow, AppStripeCreateCustomerPortalSessionResult, ClosedPeriod, ChargeResolvedCostBasis, InvoiceCustomerChargesInput, 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, SubscriptionPlanReference, UpsertPlanAddonRequest, ResourceWithKey, Meter, PaginatedMeta, QueryFilterStringMapItem, CustomerKeyReference, CustomerUsageAttribution, UpdateCustomerUsageAttribution, Address, UpdateAddress, AppStripeCreateCheckoutSessionCustomerUpdate, AppStripeCreateCheckoutSessionConsentCollectionPaymentMethodReuseAgreement, AppStripeCreateCheckoutSessionTaxIdCollection, AppStripeCreateCheckoutSessionResult, CustomerStripeCreateCustomerPortalSessionRequest, EntitlementAccessCheckResult, RecurringPeriodInput, RecurringPeriod, RateCardMeteredEntitlement, SubscriptionPhaseCreate, SubscriptionEditStretchPhase, GetCreditBalanceParamsFilter, ListPlansParamsFilter, CreateCreditGrantPlanFilter, CreditGrantPlanFilter, ValidationIssue, SubscriptionProRatingConfig, RateCardProrationConfiguration, UnitConfig, PartyTaxIdentity, UpdateBillingPartyTaxIdentity, InvoiceAvailableActions, ChargeRealizationPayment, InvoiceLineAmountDiscount, InvoiceLineUsageDiscount, InvoiceLineBaseDiscount, SubscriptionEditRemovePhase, TaxCodeAppMapping, AppCapability, AppAction, UpdateAppStripeRequest, UpdateAppSandboxRequest, UpdateAppExternalInvoicingRequest, WorkflowInvoicingSettings, ListCurrenciesParamsFilter, EntitlementAccessQueryRequest, EntitlementFeatureAccessReason, EntitlementAccessQueryError, NotificationChannel, CreateNotificationChannelRequest, NotificationBalanceThreshold, NotificationRuleReference, NotificationEventDeliveryAttempt, NotificationEventV1FeatureManualUnitCost, NotificationEventV1FeatureLlmUnitCostPricing, NotificationEventV1InvoiceTotals, NotificationEventV1DiscountReasonRatecardUsage, NotificationEventV1InvoiceLineCreditAllocation, NotificationEventV1UnitPriceWithCommitments, NotificationEventV1FlatPrice, NotificationEventV1UnitPrice, NotificationEventV1DynamicPriceWithCommitments, NotificationEventV1PackagePriceWithCommitments, NotificationEventV1BillingDiscountUsage, NotificationEventV1SubscriptionCostBasisPin, NotificationEventV1Address, NotificationEventV1ProRatingConfig, NotificationEventV1RuleBalanceThresholdValue, NotificationEventV1BillingPartyTaxIdentity, NotificationEventV1InvoiceReference, NotificationEventV1InvoiceDocumentRef, NotificationEventV1InvoiceGenericDocumentRef, NotificationEventV1InvoiceAvailableActions, NotificationEventV1AppCapability, NotificationEventV1TaxConfig, NotificationEventV1BillingWorkflowPaymentSettings, NotificationEventV1DiscountReasonRatecardPercentage, NotificationEventV1BillingDiscountPercentage, NotificationEventV1PaymentDueDate, NotificationEventV1InvoiceLineSubscriptionReference, NotificationEventV1FlatPriceWithPaymentTerm, NotificationEventV1ValidationIssue, AppCustomerData, UpsertAppCustomerDataRequest, CreditAdjustment, ListCreditGrantsParamsFilter, ListCreditTransactionsParamsFilter, CurrencyAmount, EntitlementValueResult, EntitlementFeatureValueResult, PriceTier, ChargeTotals, FeatureLlmUnitCost, UpdatePriceTier, LlmCostPrice, LlmCostOverrideCreate, ListCustomersParamsFilter, ListCustomerEntitlementsParamsFilter, ListEntitlementsParamsFilter, ListGrantsParamsFilter, ListSubscriptionsParamsFilter, ListAppsParamsFilter, ListBillingProfilesParamsFilter, ListFeatureParamsFilter, ListAddonsParamsFilter, ListPlanAddonsParamsFilter, UpsertCustomerBillingProfileRequest, CustomerProfile, EntitlementFeaturesRuleConfig, EntitlementUsagePeriodResetV1RuleConfig, CreateTaxCodeConfig, CreditBalance, CreditTransaction, TaxCodeConfig, TaxConfig, OrganizationDefaultTaxCodes, InvoiceWorkflowAppsReferences, ProfileAppReferences, PlanAddon, UpdateTaxCodeConfig, NotificationRuleEntitlementReset, NotificationRuleInvoiceCreated, NotificationRuleInvoiceUpdated, NotificationRuleEntitlementResetRequest, NotificationRuleInvoiceCreatedRequest, NotificationRuleInvoiceUpdatedRequest, ListEventsParamsFilter, ListCustomerChargesParamsFilter, ListInvoicesParamsFilter, ListChargesParamsFilter, ListNotificationChannelsParamsFilter, ListNotificationRulesParamsFilter, ListNotificationEventsParamsFilter, ResourceFilters, FieldFilters, IngestedEvent, MeterQueryResult, EntitlementHistoryWindow, EntitlementBurndownSegment, ChargeRealizationDetailedLineFlatFee, ChargeRealizationDetailedLineUsageBased, CurrencyCustom, FeatureCostQueryResult, MeterPagePaginatedResponse, CostBasisPagePaginatedResponse, MeterQueryFilters, FeatureMeterReference, Customer, PartyAddresses, InvoiceCustomer, UpdateBillingPartyAddresses, UpdateInvoiceCustomer, AppStripeCreateCheckoutSessionConsentCollection, EntitlementGrantCreateRequest, CreateEntitlementStaticRequest, CreateEntitlementBooleanRequest, EntitlementMetered, EntitlementStatic, EntitlementBoolean, EntitlementGrant, WorkflowCollectionAlignmentAnchored, SubscriptionEditAddPhase, CreateCreditGrantFilters, CreditGrantFilters, SubscriptionBase, InvoiceStatusDetails, InvoiceWorkflow, InvoiceLineDiscounts, SubscriptionCancel, SubscriptionMigrate, SubscriptionAddonUpdate, TaxCode, AppCatalogItem, UpdateBillingInvoiceWorkflow, EntitlementFeatureAccess, NotificationChannelPagePaginatedResponse, NotificationRuleBalanceThreshold, NotificationRuleBalanceThresholdRequest, EntitlementBalanceThresholdTriggeredV1RuleConfig, NotificationEventDeliveryStatus, NotificationEventV1RecurringPeriod, NotificationEventV1RecurringPeriodV2, NotificationEventV1FeatureLlmUnitCost, NotificationEventV1PriceTier, NotificationEventV1Subscription, NotificationEventV1BillingParty, NotificationEventV1BillingInvoiceCustomerExtendedDetails, NotificationEventV1InvoiceStatusDetails, NotificationEventV1MarketplaceListing, NotificationEventV1BillingWorkflowInvoicingSettings, NotificationEventV1InvoiceLineTaxItem, NotificationEventV1BillingDiscounts, NotificationEventV1PaymentTermDueDate, CustomerData, UpsertCustomerBillingDataRequest, ChargeFlatFeeSystemIntent, ListCustomerEntitlementAccessResponseData, PriceGraduated, PriceVolume, UpdatePriceGraduated, UpdatePriceVolume, PricePagePaginatedResponse, CreateCreditGrantPurchase, CreditBalances, CreditTransactionPaginatedResponse, CreditGrantPurchase, CreateChargeFlatFeeRequest, WorkflowTaxSettings, PlanAddonPagePaginatedResponse, IngestedEventPaginatedResponse, EntitlementHistory, InvalidParameters, MeterQueryRequest, CustomerPagePaginatedResponse, Supplier, Party, UpdateSupplier, AppStripeCreateCheckoutSessionRequestOptions, CreateEntitlementMeteredRequest, EntitlementGrantPagePaginatedResponse, InvoiceWorkflowSettings, InvoiceDetailedLine, TaxCodePagePaginatedResponse, AppStripe, AppSandbox, AppExternalInvoicing, AppCatalogItemPagePaginatedResponse, InstalledAppStripe, InstalledAppSandbox, InstalledAppExternalInvoicing, UpdateInvoiceWorkflowSettings, EntitlementAccessQueryResult, NotificationEventV1EntitlementMetered, NotificationEventV1BillingWorkflowCollectionAlignmentAnchored, NotificationEventV1TieredPriceWithCommitments, NotificationEventV1Customer, NotificationEventV1StripeApp, NotificationEventV1SandboxApp, NotificationEventV1CustomInvoicingApp, NotificationEventV1InvoiceLineAmountDiscount, NotificationEventV1InvoiceLineUsageDiscount, NotificationEventV1InvoiceDetailedLineRateCard, Feature, CreditGrant, CurrencyPagePaginatedResponse, BadRequest, InvoiceBase, CustomerStripeCreateCheckoutSessionRequest, EntitlementPagePaginatedResponse, WorkflowCollectionSettings, ChargeRealizationInvoice, EntitlementAccessQueryResponse, NotificationRulePagePaginatedResponse, NotificationEventV1Feature, NotificationEventV1InvoiceLineDiscounts, NotificationEventV1InvoicePaymentTerms, RateCard, InvoiceLineRateCard, ChargeUsageBasedSystemIntent, CreateChargeUsageBasedRequest, FeaturePagePaginatedResponse, UpdateInvoiceLineRateCard, CreditGrantPagePaginatedResponse, Workflow, AppPagePaginatedResponse, ProfileApps, NotificationEventV1BillingWorkflowCollectionSettings, EntitlementBalanceThresholdTriggeredV1Payload, EntitlementUsagePeriodResetV1Payload, NotificationEventV1BalanceThresholdPayloadData, NotificationEventV1EntitlementValuePayloadBase, NotificationEventV1InvoiceUsageBasedRateCard, NotificationEventV1BillingProfileApps, NotificationEventV1InvoiceDetailedLine, SubscriptionItem, PlanPhase, SubscriptionEditAddItem, SubscriptionAddonRateCard, Addon, UpsertAddonRequest, InvoiceStandardLine, UpdateInvoiceStandardLine, Profile, UpsertBillingProfileRequest, ChargeRealization, NotificationEventV1BillingWorkflow, NotificationEventBalanceThresholdPayload, NotificationEventResetPayload, NotificationEventV1InvoiceLine, SubscriptionPhase, SubscriptionCustomPlan, Plan, UpsertPlanRequest, SubscriptionAddon, AddonPagePaginatedResponse, ProfilePagePaginatedResponse, NotificationEventV1InvoiceWorkflowSettings, Subscription, SubscriptionCreate, SubscriptionChange, PlanPagePaginatedResponse, SubscriptionEdit, SubscriptionAddonPagePaginatedResponse, InvoiceStandard, UpdateInvoiceStandardRequest, InvoiceCreatedV1Payload, InvoiceUpdatedV1Payload, NotificationEventV1Invoice, SubscriptionPagePaginatedResponse, SubscriptionChangeResponse, SubscriptionMigrateResponse, NotificationEventInvoiceCreatedPayload, NotificationEventInvoiceUpdatedPayload, ChargeFlatFee, ChargeUsageBased, InvoiceCustomerChargesResult, InvoicePagePaginatedResponse, NotificationEvent, ChargePagePaginatedResponse, NotificationEventPagePaginatedResponse, StringFieldFilter, MeterAggregation, MeterQueryGranularity, EntitlementHistoryWindowSize, StringFieldFilterExact, PricePaymentTerm, BooleanFieldFilter, BillingCurrencyCode, CreateCurrencyCode, UlidFieldFilter, DateTimeFieldFilter, EntitlementMeasureUsageFrom, WorkflowPaymentSettings, SubscriptionCreateTiming, SubscriptionEditTiming, AppActionRequest, UpdateBillingWorkflowPaymentSettings, NotificationEventV1RecurringPeriodInterval, CreateChargeCostBasis, ChargeCostBasis, InvalidParameter, RateCardEntitlement, NotificationEventV1BillingDiscountReason, FeatureUnitCost, ChargeRealizationDetailedLine, Currency, CustomerOrReference, Entitlement, WorkflowCollectionAlignment, NotificationRule, NotificationRuleRequest, NotificationEventV1FeatureUnitCost, NotificationEventV1PaymentTerms, Price, PriceUsageBased, UpdatePrice, CreateEntitlementRequest, App, BillingInstallAppResponse, NotificationEventV1BillingWorkflowCollectionAlignment, NotificationEventV1RateCardUsageBasedPrice, NotificationEventV1App, FeatureOrReference, ChargeRealizationInvoiceOrReference, CreateChargeRequest, SubscriptionEditOperation, InvoiceLine, UpdateInvoiceLine, SubscriptionOrReference, Invoice, NotificationEventPayload, Charge, SortQueryInput, BaseErrorInput, InvoiceWorkflowInvoicingSettingsInput, WorkflowPaymentSendInvoiceSettingsInput, UpdateBillingInvoiceWorkflowInvoicingSettingsInput, UpdateBillingWorkflowPaymentSendInvoiceSettingsInput, EntitlementIssueAfterResetInput, EventInput, ResetCustomerEntitlementUsageRequestInput, UnauthorizedInput, ForbiddenInput, NotFoundInput, GoneInput, ConflictInput, PayloadTooLargeInput, UnsupportedMediaTypeInput, UnprocessableContentInput, TooManyRequestsInput, InternalInput, NotImplementedInput, NotAvailableInput, AppStripeCreateCheckoutSessionCustomerUpdateInput, AppStripeCreateCheckoutSessionTaxIdCollectionInput, RateCardMeteredEntitlementInput, VoidCreditGrantRequestInput, UnitConfigInput, WorkflowInvoicingSettingsInput, EntitlementAccessQueryRequestInput, NotificationChannelInput, CreateNotificationChannelRequestInput, UpdateBillingNotificationChannelRequestInput, NotificationRuleEntitlementResetInput, NotificationRuleInvoiceCreatedInput, NotificationRuleInvoiceUpdatedInput, NotificationRuleEntitlementResetRequestInput, NotificationRuleInvoiceCreatedRequestInput, NotificationRuleInvoiceUpdatedRequestInput, IngestedEventInput, EntitlementMeteredInput, SubscriptionBaseInput, InvoiceWorkflowInput, SubscriptionCancelInput, SubscriptionMigrateInput, UpdateBillingInvoiceWorkflowInput, NotificationChannelPagePaginatedResponseInput, NotificationRuleBalanceThresholdInput, NotificationRuleBalanceThresholdRequestInput, CreateCreditGrantPurchaseInput, CreditGrantPurchaseInput, WorkflowTaxSettingsInput, IngestedEventPaginatedResponseInput, MeterQueryRequestInput, AppStripeCreateCheckoutSessionRequestOptionsInput, CreateEntitlementMeteredRequestInput, InvoiceWorkflowSettingsInput, InvoiceDetailedLineInput, UpdateInvoiceWorkflowSettingsInput, CreateCreditGrantRequestInput, CreditGrantInput, BadRequestInput, CustomerStripeCreateCheckoutSessionRequestInput, EntitlementPagePaginatedResponseInput, WorkflowCollectionSettingsInput, ChargeRealizationInvoiceInput, NotificationRulePagePaginatedResponseInput, RateCardInput, InvoiceLineRateCardInput, ChargeUsageBasedSystemIntentInput, CreateChargeUsageBasedRequestInput, CreditGrantPagePaginatedResponseInput, WorkflowInput, SubscriptionItemInput, PlanPhaseInput, SubscriptionEditAddItemInput, SubscriptionAddonRateCardInput, AddonInput, CreateAddonRequestInput, UpsertAddonRequestInput, InvoiceStandardLineInput, ProfileInput, CreateBillingProfileRequestInput, UpsertBillingProfileRequestInput, ChargeRealizationInput, SubscriptionPhaseInput, SubscriptionCustomPlanInput, PlanInput, CreatePlanRequestInput, UpsertPlanRequestInput, SubscriptionAddonInput, AddonPagePaginatedResponseInput, ProfilePagePaginatedResponseInput, SubscriptionInput, SubscriptionCreateInput, SubscriptionChangeInput, PlanPagePaginatedResponseInput, SubscriptionEditInput, SubscriptionAddonPagePaginatedResponseInput, InvoiceStandardInput, UpdateInvoiceStandardRequestInput, SubscriptionPagePaginatedResponseInput, SubscriptionChangeResponseInput, SubscriptionMigrateResponseInput, ChargeFlatFeeInput, ChargeUsageBasedInput, InvoiceCustomerChargesResultInput, InvoicePagePaginatedResponseInput, ChargePagePaginatedResponseInput, WorkflowPaymentSettingsInput, UpdateBillingWorkflowPaymentSettingsInput, RateCardEntitlementInput, EntitlementInput, NotificationRuleInput, NotificationRuleRequestInput, CreateEntitlementRequestInput, ChargeRealizationInvoiceOrReferenceInput, CreateChargeRequestInput, SubscriptionEditOperationInput, InvoiceLineInput, SubscriptionOrReferenceInput, InvoiceInput, UpdateInvoiceRequestInput, ChargeInput, } from './models/types.js';
|
|
53
|
+
export type { Labels, ListEventsPage, SortQuery, IngestedEventValidationError, CursorMetaPage, BaseError, PageMeta, QueryFilterString, AppStripeCheckoutSessionCustomTextParams, AppStripeCreateCustomerPortalSessionOptions, CreateLabels, CreateVersionFilter, VersionFilter, CursorPaginationQueryPage, PriceFree, RateCardStaticEntitlement, RateCardBooleanEntitlement, TaxConfigStripe, TaxConfigExternalInvoicing, InvoiceExternalReferences, InvoiceAvailableActionDetails, InvoiceWorkflowInvoicingSettings, WorkflowPaymentChargeAutomaticallySettings, WorkflowPaymentSendInvoiceSettings, ChargeFlatFeeDiscounts, InvoiceLineExternalReferences, SubscriptionEditRemoveItem, SubscriptionEditUnscheduleEdit, UpdateLabels, AppReconcileWebhookEventsActionRequest, InstallAppStripeWithApiKey, InstallAppSandbox, InstallAppExternalInvoicing, WorkflowCollectionAlignmentSubscription, UpdateBillingInvoiceWorkflowInvoicingSettings, UpdateBillingWorkflowPaymentChargeAutomaticallySettings, UpdateBillingWorkflowPaymentSendInvoiceSettings, UpdatePriceFree, LlmCostProvider, LlmCostModel, ProductCatalogValidationError, EntitlementAccessQueryPage, EntitlementAccessQueryRequestCustomers, EntitlementAccessQueryRequestFeatures, NotificationEventDeliveryAttemptResponse, NotificationEventV1Metadata, NotificationEventV1Annotations, NotificationEventV1Period, NotificationEventV1FilterString, NotificationEventV1Subject, NotificationEventV1EntitlementValue, NotificationEventV1CustomerUsageAttribution, NotificationEventV1Alignment, NotificationEventV1PlanReference, NotificationEventV1InvoiceAvailableActionDetails, NotificationEventV1InvoiceAvailableActionInvoiceDetails, NotificationEventV1BillingWorkflowCollectionAlignmentSubscription, NotificationEventV1StripeTaxConfig, NotificationEventV1CustomInvoicingTaxConfig, NotificationEventV1BillingWorkflowTaxSettings, NotificationEventV1DiscountReasonMaximumSpend, NotificationEventV1InvoiceLineAppExternalIds, NotificationEventV1IdResource, NotificationEventV1PaymentTermInstant, NotificationEventV1InvoiceAppExternalIds, QueryFilterInteger, QueryFilterFloat, QueryFilterBoolean, PagePaginationQuery, PublicLabels, InvoiceCreatedV1RuleConfig, InvoiceUpdatedV1RuleConfig, SystemAccountAccessToken, PersonalAccessToken, KonnectAccessToken, AppCustomerDataStripe, AppCustomerDataExternalInvoicing, CreateChargeCostBasisDynamic, ChargeCostBasisDynamic, CurrencyFiat, ListCostBasesParamsFilter, CreateCurrencyCustomRequest, EntitlementAccessValue, EntitlementIssueAfterReset, EntitlementBurndownBalance, EntitlementBurndownGrantBalances, CreateChargeCostBasisManual, ChargeCostBasisManual, PriceFlat, PriceUnit, SpendCommitments, RateCardDiscounts, Totals, ChargeRealizationDetailedLineCreditApplied, ChargeRealizationAmountDiscount, FeatureManualUnitCost, FeatureLlmUnitCostPricing, InvoiceLineCreditsApplied, InvoiceUsageQuantityDetail, UpdatePriceFlat, UpdatePriceUnit, UpdateDiscounts, LlmCostModelPricing, FiatCurrencyAmount, QueryFilterNumeric, ListEventsPagination, ListMetersParamsFilter, ListLlmCostPricesParamsFilter, LabelsFieldFilter, CustomerReference, ProfileReference, FeatureReference, EntitlementGrantUsage, CreateChargeCostBasisPinned, CreateResourceReference, CurrencyCustomReference, ChargeCostBasisPinned, TaxCodeReference, CreditGrantInvoiceReference, SubscriptionCostBasisPin, SubscriptionReference, AppReference, ChargeRealizationInvoiceReference, ChargeReference, AddonReference, UpdateResourceReference, NotificationChannelReference, BillingCustomerReference, ChargeFeature, Event, MeterQueryRow, AppStripeCreateCustomerPortalSessionResult, ClosedPeriod, ChargeResolvedCostBasis, InvoiceCustomerChargesInput, 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, SubscriptionPlanReference, UpsertPlanAddonRequest, ResourceWithKey, Meter, PaginatedMeta, QueryFilterStringMapItem, CustomerKeyReference, CustomerUsageAttribution, UpdateCustomerUsageAttribution, Address, UpdateAddress, AppStripeCreateCheckoutSessionCustomerUpdate, AppStripeCreateCheckoutSessionConsentCollectionPaymentMethodReuseAgreement, AppStripeCreateCheckoutSessionTaxIdCollection, AppStripeCreateCheckoutSessionResult, CustomerStripeCreateCustomerPortalSessionRequest, EntitlementAccessCheckResult, RecurringPeriodInput, RecurringPeriod, RateCardMeteredEntitlement, SubscriptionPhaseCreate, SubscriptionEditStretchPhase, GetCreditBalanceParamsFilter, ListPlansParamsFilter, CreateCreditGrantPlanFilter, CreditGrantPlanFilter, ValidationIssue, CursorPaginationQuery, SubscriptionProRatingConfig, RateCardProrationConfiguration, UnitConfig, PartyTaxIdentity, UpdateBillingPartyTaxIdentity, InvoiceAvailableActions, ChargeRealizationPayment, InvoiceLineAmountDiscount, InvoiceLineUsageDiscount, InvoiceLineBaseDiscount, SubscriptionEditRemovePhase, TaxCodeAppMapping, AppCapability, AppAction, UpdateAppStripeRequest, UpdateAppSandboxRequest, UpdateAppExternalInvoicingRequest, WorkflowInvoicingSettings, ListCurrenciesParamsFilter, EntitlementAccessQueryPagination, EntitlementAccessQueryRequest, EntitlementFeatureAccessReason, EntitlementAccessQueryError, NotificationChannel, CreateNotificationChannelRequest, NotificationBalanceThreshold, NotificationRuleReference, NotificationEventDeliveryAttempt, NotificationEventV1FeatureManualUnitCost, NotificationEventV1FeatureLlmUnitCostPricing, NotificationEventV1InvoiceTotals, NotificationEventV1DiscountReasonRatecardUsage, NotificationEventV1InvoiceLineCreditAllocation, NotificationEventV1UnitPriceWithCommitments, NotificationEventV1FlatPrice, NotificationEventV1UnitPrice, NotificationEventV1DynamicPriceWithCommitments, NotificationEventV1PackagePriceWithCommitments, NotificationEventV1BillingDiscountUsage, NotificationEventV1SubscriptionCostBasisPin, NotificationEventV1Address, NotificationEventV1ProRatingConfig, NotificationEventV1RuleBalanceThresholdValue, NotificationEventV1BillingPartyTaxIdentity, NotificationEventV1InvoiceReference, NotificationEventV1InvoiceDocumentRef, NotificationEventV1InvoiceGenericDocumentRef, NotificationEventV1InvoiceAvailableActions, NotificationEventV1AppCapability, NotificationEventV1TaxConfig, NotificationEventV1BillingWorkflowPaymentSettings, NotificationEventV1DiscountReasonRatecardPercentage, NotificationEventV1BillingDiscountPercentage, NotificationEventV1PaymentDueDate, NotificationEventV1InvoiceLineSubscriptionReference, NotificationEventV1FlatPriceWithPaymentTerm, NotificationEventV1ValidationIssue, AppCustomerData, UpsertAppCustomerDataRequest, CreditAdjustment, ListCreditGrantsParamsFilter, ListCreditTransactionsParamsFilter, CurrencyAmount, EntitlementValueResult, EntitlementFeatureValueResult, PriceTier, ChargeTotals, FeatureLlmUnitCost, UpdatePriceTier, LlmCostPrice, LlmCostOverrideCreate, ListCustomersParamsFilter, ListCustomerEntitlementsParamsFilter, ListEntitlementsParamsFilter, ListGrantsParamsFilter, ListSubscriptionsParamsFilter, ListAppsParamsFilter, ListBillingProfilesParamsFilter, ListFeatureParamsFilter, ListAddonsParamsFilter, ListPlanAddonsParamsFilter, UpsertCustomerBillingProfileRequest, CustomerProfile, EntitlementFeaturesRuleConfig, EntitlementUsagePeriodResetV1RuleConfig, CreateTaxCodeConfig, CreditBalance, CreditTransaction, TaxCodeConfig, TaxConfig, OrganizationDefaultTaxCodes, InvoiceWorkflowAppsReferences, ProfileAppReferences, PlanAddon, UpdateTaxCodeConfig, NotificationRuleEntitlementReset, NotificationRuleInvoiceCreated, NotificationRuleInvoiceUpdated, NotificationRuleEntitlementResetRequest, NotificationRuleInvoiceCreatedRequest, NotificationRuleInvoiceUpdatedRequest, ListEventsParamsFilter, ListCustomerChargesParamsFilter, ListInvoicesParamsFilter, ListChargesParamsFilter, ListNotificationChannelsParamsFilter, ListNotificationRulesParamsFilter, ListNotificationEventsParamsFilter, ResourceFilters, FieldFilters, IngestedEvent, MeterQueryResult, EntitlementHistoryWindow, EntitlementBurndownSegment, ChargeRealizationDetailedLineFlatFee, ChargeRealizationDetailedLineUsageBased, CurrencyCustom, FeatureCostQueryResult, MeterPagePaginatedResponse, CostBasisPagePaginatedResponse, MeterQueryFilters, FeatureMeterReference, Customer, PartyAddresses, InvoiceCustomer, UpdateBillingPartyAddresses, UpdateInvoiceCustomer, AppStripeCreateCheckoutSessionConsentCollection, EntitlementGrantCreateRequest, CreateEntitlementStaticRequest, CreateEntitlementBooleanRequest, EntitlementMetered, EntitlementStatic, EntitlementBoolean, EntitlementGrant, WorkflowCollectionAlignmentAnchored, SubscriptionEditAddPhase, CreateCreditGrantFilters, CreditGrantFilters, SubscriptionBase, InvoiceStatusDetails, InvoiceWorkflow, InvoiceLineDiscounts, SubscriptionCancel, SubscriptionMigrate, SubscriptionAddonUpdate, TaxCode, AppCatalogItem, UpdateBillingInvoiceWorkflow, EntitlementFeatureAccess, NotificationChannelPagePaginatedResponse, NotificationRuleBalanceThreshold, NotificationRuleBalanceThresholdRequest, EntitlementBalanceThresholdTriggeredV1RuleConfig, NotificationEventDeliveryStatus, NotificationEventV1RecurringPeriod, NotificationEventV1RecurringPeriodV2, NotificationEventV1FeatureLlmUnitCost, NotificationEventV1PriceTier, NotificationEventV1Subscription, NotificationEventV1BillingParty, NotificationEventV1BillingInvoiceCustomerExtendedDetails, NotificationEventV1InvoiceStatusDetails, NotificationEventV1MarketplaceListing, NotificationEventV1BillingWorkflowInvoicingSettings, NotificationEventV1InvoiceLineTaxItem, NotificationEventV1BillingDiscounts, NotificationEventV1PaymentTermDueDate, CustomerData, UpsertCustomerBillingDataRequest, ChargeFlatFeeSystemIntent, ListCustomerEntitlementAccessResponseData, PriceGraduated, PriceVolume, UpdatePriceGraduated, UpdatePriceVolume, PricePagePaginatedResponse, CreateCreditGrantPurchase, CreditBalances, CreditTransactionPaginatedResponse, CreditGrantPurchase, CreateChargeFlatFeeRequest, WorkflowTaxSettings, PlanAddonPagePaginatedResponse, IngestedEventPaginatedResponse, EntitlementHistory, InvalidParameters, MeterQueryRequest, CustomerPagePaginatedResponse, Supplier, Party, UpdateSupplier, AppStripeCreateCheckoutSessionRequestOptions, CreateEntitlementMeteredRequest, EntitlementGrantPagePaginatedResponse, InvoiceWorkflowSettings, InvoiceDetailedLine, TaxCodePagePaginatedResponse, AppStripe, AppSandbox, AppExternalInvoicing, AppCatalogItemPagePaginatedResponse, InstalledAppStripe, InstalledAppSandbox, InstalledAppExternalInvoicing, UpdateInvoiceWorkflowSettings, EntitlementAccessQueryResult, NotificationEventV1EntitlementMetered, NotificationEventV1BillingWorkflowCollectionAlignmentAnchored, NotificationEventV1TieredPriceWithCommitments, NotificationEventV1Customer, NotificationEventV1StripeApp, NotificationEventV1SandboxApp, NotificationEventV1CustomInvoicingApp, NotificationEventV1InvoiceLineAmountDiscount, NotificationEventV1InvoiceLineUsageDiscount, NotificationEventV1InvoiceDetailedLineRateCard, Feature, CreditGrant, CurrencyPagePaginatedResponse, BadRequest, InvoiceBase, CustomerStripeCreateCheckoutSessionRequest, EntitlementPagePaginatedResponse, WorkflowCollectionSettings, ChargeRealizationInvoice, EntitlementAccessQueryResponse, NotificationRulePagePaginatedResponse, NotificationEventV1Feature, NotificationEventV1InvoiceLineDiscounts, NotificationEventV1InvoicePaymentTerms, RateCard, InvoiceLineRateCard, ChargeUsageBasedSystemIntent, CreateChargeUsageBasedRequest, FeaturePagePaginatedResponse, UpdateInvoiceLineRateCard, CreditGrantPagePaginatedResponse, Workflow, AppPagePaginatedResponse, ProfileApps, NotificationEventV1BillingWorkflowCollectionSettings, EntitlementBalanceThresholdTriggeredV1Payload, EntitlementUsagePeriodResetV1Payload, NotificationEventV1BalanceThresholdPayloadData, NotificationEventV1EntitlementValuePayloadBase, NotificationEventV1InvoiceUsageBasedRateCard, NotificationEventV1BillingProfileApps, NotificationEventV1InvoiceDetailedLine, SubscriptionItem, PlanPhase, SubscriptionEditAddItem, SubscriptionAddonRateCard, Addon, UpsertAddonRequest, InvoiceStandardLine, UpdateInvoiceStandardLine, Profile, UpsertBillingProfileRequest, ChargeRealization, NotificationEventV1BillingWorkflow, NotificationEventBalanceThresholdPayload, NotificationEventResetPayload, NotificationEventV1InvoiceLine, SubscriptionPhase, SubscriptionCustomPlan, Plan, UpsertPlanRequest, SubscriptionAddon, AddonPagePaginatedResponse, ProfilePagePaginatedResponse, NotificationEventV1InvoiceWorkflowSettings, Subscription, SubscriptionCreate, SubscriptionChange, PlanPagePaginatedResponse, SubscriptionEdit, SubscriptionAddonPagePaginatedResponse, InvoiceStandard, UpdateInvoiceStandardRequest, InvoiceCreatedV1Payload, InvoiceUpdatedV1Payload, NotificationEventV1Invoice, SubscriptionPagePaginatedResponse, SubscriptionChangeResponse, SubscriptionMigrateResponse, NotificationEventInvoiceCreatedPayload, NotificationEventInvoiceUpdatedPayload, ChargeFlatFee, ChargeUsageBased, InvoiceCustomerChargesResult, InvoicePagePaginatedResponse, NotificationEvent, ChargePagePaginatedResponse, NotificationEventPagePaginatedResponse, StringFieldFilter, MeterAggregation, MeterQueryGranularity, EntitlementHistoryWindowSize, StringFieldFilterExact, PricePaymentTerm, BooleanFieldFilter, BillingCurrencyCode, CreateCurrencyCode, UlidFieldFilter, DateTimeFieldFilter, EntitlementMeasureUsageFrom, WorkflowPaymentSettings, SubscriptionCreateTiming, SubscriptionEditTiming, AppActionRequest, UpdateBillingWorkflowPaymentSettings, NotificationEventV1RecurringPeriodInterval, CreateChargeCostBasis, ChargeCostBasis, InvalidParameter, RateCardEntitlement, NotificationEventV1BillingDiscountReason, FeatureUnitCost, ChargeRealizationDetailedLine, Currency, CustomerOrReference, Entitlement, WorkflowCollectionAlignment, NotificationRule, NotificationRuleRequest, NotificationEventV1FeatureUnitCost, NotificationEventV1PaymentTerms, Price, PriceUsageBased, UpdatePrice, CreateEntitlementRequest, App, BillingInstallAppResponse, NotificationEventV1BillingWorkflowCollectionAlignment, NotificationEventV1RateCardUsageBasedPrice, NotificationEventV1App, FeatureOrReference, ChargeRealizationInvoiceOrReference, CreateChargeRequest, SubscriptionEditOperation, InvoiceLine, UpdateInvoiceLine, SubscriptionOrReference, Invoice, NotificationEventPayload, Charge, SortQueryInput, BaseErrorInput, InvoiceWorkflowInvoicingSettingsInput, WorkflowPaymentSendInvoiceSettingsInput, UpdateBillingInvoiceWorkflowInvoicingSettingsInput, UpdateBillingWorkflowPaymentSendInvoiceSettingsInput, EntitlementIssueAfterResetInput, EventInput, ResetCustomerEntitlementUsageRequestInput, UnauthorizedInput, ForbiddenInput, NotFoundInput, GoneInput, ConflictInput, PayloadTooLargeInput, UnsupportedMediaTypeInput, UnprocessableContentInput, TooManyRequestsInput, InternalInput, NotImplementedInput, NotAvailableInput, AppStripeCreateCheckoutSessionCustomerUpdateInput, AppStripeCreateCheckoutSessionTaxIdCollectionInput, RateCardMeteredEntitlementInput, VoidCreditGrantRequestInput, UnitConfigInput, WorkflowInvoicingSettingsInput, EntitlementAccessQueryRequestInput, NotificationChannelInput, CreateNotificationChannelRequestInput, UpdateBillingNotificationChannelRequestInput, NotificationRuleEntitlementResetInput, NotificationRuleInvoiceCreatedInput, NotificationRuleInvoiceUpdatedInput, NotificationRuleEntitlementResetRequestInput, NotificationRuleInvoiceCreatedRequestInput, NotificationRuleInvoiceUpdatedRequestInput, IngestedEventInput, EntitlementMeteredInput, SubscriptionBaseInput, InvoiceWorkflowInput, SubscriptionCancelInput, SubscriptionMigrateInput, UpdateBillingInvoiceWorkflowInput, NotificationChannelPagePaginatedResponseInput, NotificationRuleBalanceThresholdInput, NotificationRuleBalanceThresholdRequestInput, CreateCreditGrantPurchaseInput, CreditGrantPurchaseInput, WorkflowTaxSettingsInput, IngestedEventPaginatedResponseInput, MeterQueryRequestInput, AppStripeCreateCheckoutSessionRequestOptionsInput, CreateEntitlementMeteredRequestInput, InvoiceWorkflowSettingsInput, InvoiceDetailedLineInput, UpdateInvoiceWorkflowSettingsInput, CreateCreditGrantRequestInput, CreditGrantInput, BadRequestInput, CustomerStripeCreateCheckoutSessionRequestInput, EntitlementPagePaginatedResponseInput, WorkflowCollectionSettingsInput, ChargeRealizationInvoiceInput, NotificationRulePagePaginatedResponseInput, RateCardInput, InvoiceLineRateCardInput, ChargeUsageBasedSystemIntentInput, CreateChargeUsageBasedRequestInput, CreditGrantPagePaginatedResponseInput, WorkflowInput, SubscriptionItemInput, PlanPhaseInput, SubscriptionEditAddItemInput, SubscriptionAddonRateCardInput, AddonInput, CreateAddonRequestInput, UpsertAddonRequestInput, InvoiceStandardLineInput, ProfileInput, CreateBillingProfileRequestInput, UpsertBillingProfileRequestInput, ChargeRealizationInput, SubscriptionPhaseInput, SubscriptionCustomPlanInput, PlanInput, CreatePlanRequestInput, UpsertPlanRequestInput, SubscriptionAddonInput, AddonPagePaginatedResponseInput, ProfilePagePaginatedResponseInput, SubscriptionInput, SubscriptionCreateInput, SubscriptionChangeInput, PlanPagePaginatedResponseInput, SubscriptionEditInput, SubscriptionAddonPagePaginatedResponseInput, InvoiceStandardInput, UpdateInvoiceStandardRequestInput, SubscriptionPagePaginatedResponseInput, SubscriptionChangeResponseInput, SubscriptionMigrateResponseInput, ChargeFlatFeeInput, ChargeUsageBasedInput, InvoiceCustomerChargesResultInput, InvoicePagePaginatedResponseInput, ChargePagePaginatedResponseInput, WorkflowPaymentSettingsInput, UpdateBillingWorkflowPaymentSettingsInput, RateCardEntitlementInput, EntitlementInput, NotificationRuleInput, NotificationRuleRequestInput, CreateEntitlementRequestInput, ChargeRealizationInvoiceOrReferenceInput, CreateChargeRequestInput, SubscriptionEditOperationInput, InvoiceLineInput, SubscriptionOrReferenceInput, InvoiceInput, UpdateInvoiceRequestInput, ChargeInput, } from './models/types.js';
|
package/dist/lib/paginate.d.ts
CHANGED
|
@@ -34,6 +34,7 @@ interface CursorEnvelope<TItem> {
|
|
|
34
34
|
meta: {
|
|
35
35
|
page: {
|
|
36
36
|
next: string | null;
|
|
37
|
+
previous?: string | null;
|
|
37
38
|
};
|
|
38
39
|
};
|
|
39
40
|
}
|
|
@@ -45,12 +46,17 @@ interface CursorRequest {
|
|
|
45
46
|
};
|
|
46
47
|
}
|
|
47
48
|
/**
|
|
48
|
-
* Iterates every item of a cursor-paginated list operation
|
|
49
|
-
* `
|
|
50
|
-
*
|
|
51
|
-
*
|
|
52
|
-
*
|
|
53
|
-
*
|
|
49
|
+
* Iterates every item of a cursor-paginated list operation. Despite carrying a
|
|
50
|
+
* `format: uri` annotation in the spec, `next` and `previous` are the opaque
|
|
51
|
+
* cursor tokens the API expects back verbatim in `page.after` or
|
|
52
|
+
* `page.before` on the following request — not URIs to fetch directly.
|
|
53
|
+
*
|
|
54
|
+
* The caller's request picks the direction. With `page.before`, the walk goes
|
|
55
|
+
* backward: it follows `meta.page.previous` through `page.before`, so it never
|
|
56
|
+
* returns items past the caller's bound. Otherwise it follows `meta.page.next`
|
|
57
|
+
* through `page.after`. A page request never carries both cursors, which the
|
|
58
|
+
* API rejects; a request that starts with both throws before any fetch. Every
|
|
59
|
+
* other field on `request` is sent unchanged on every page fetch.
|
|
54
60
|
*/
|
|
55
61
|
export declare function paginateCursor<TItem, TReq extends CursorRequest>(fetchPage: (req: TReq, options?: RequestOptions) => Promise<Result<CursorEnvelope<TItem>>>, request: TReq, options?: RequestOptions): AsyncGenerator<TItem, void, undefined>;
|
|
56
62
|
export {};
|
package/dist/lib/paginate.js
CHANGED
|
@@ -38,23 +38,37 @@ export async function* paginatePages(fetchPage, request, options) {
|
|
|
38
38
|
throw new PaginationLimitExceededError(MAX_PAGINATION_PAGES);
|
|
39
39
|
}
|
|
40
40
|
/**
|
|
41
|
-
* Iterates every item of a cursor-paginated list operation
|
|
42
|
-
* `
|
|
43
|
-
*
|
|
44
|
-
*
|
|
45
|
-
*
|
|
46
|
-
*
|
|
41
|
+
* Iterates every item of a cursor-paginated list operation. Despite carrying a
|
|
42
|
+
* `format: uri` annotation in the spec, `next` and `previous` are the opaque
|
|
43
|
+
* cursor tokens the API expects back verbatim in `page.after` or
|
|
44
|
+
* `page.before` on the following request — not URIs to fetch directly.
|
|
45
|
+
*
|
|
46
|
+
* The caller's request picks the direction. With `page.before`, the walk goes
|
|
47
|
+
* backward: it follows `meta.page.previous` through `page.before`, so it never
|
|
48
|
+
* returns items past the caller's bound. Otherwise it follows `meta.page.next`
|
|
49
|
+
* through `page.after`. A page request never carries both cursors, which the
|
|
50
|
+
* API rejects; a request that starts with both throws before any fetch. Every
|
|
51
|
+
* other field on `request` is sent unchanged on every page fetch.
|
|
47
52
|
*/
|
|
48
53
|
export async function* paginateCursor(fetchPage, request, options) {
|
|
54
|
+
if (request.page?.after !== undefined && request.page?.before !== undefined) {
|
|
55
|
+
throw new Error('cursor pagination cannot use both page.after and page.before');
|
|
56
|
+
}
|
|
57
|
+
const backward = request.page?.before !== undefined;
|
|
49
58
|
let req = request;
|
|
50
59
|
for (let page = 0; page < MAX_PAGINATION_PAGES; page++) {
|
|
51
60
|
const res = unwrap(await fetchPage(req, options));
|
|
52
61
|
yield* res.data;
|
|
53
|
-
const
|
|
54
|
-
if (!
|
|
62
|
+
const cursor = backward ? res.meta.page.previous : res.meta.page.next;
|
|
63
|
+
if (!cursor || res.data.length === 0) {
|
|
55
64
|
return;
|
|
56
65
|
}
|
|
57
|
-
req = {
|
|
66
|
+
req = {
|
|
67
|
+
...req,
|
|
68
|
+
page: backward
|
|
69
|
+
? { ...req.page, before: cursor }
|
|
70
|
+
: { ...req.page, after: cursor },
|
|
71
|
+
};
|
|
58
72
|
}
|
|
59
73
|
throw new PaginationLimitExceededError(MAX_PAGINATION_PAGES);
|
|
60
74
|
}
|
package/dist/lib/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "v1.0.0-beta.
|
|
1
|
+
export declare const SDK_VERSION = "v1.0.0-beta.238";
|
package/dist/lib/version.js
CHANGED
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
// The committed value is a dev placeholder. The publish flow
|
|
3
3
|
// (`make -C api/spec publish-aip-sdk`) stamps the real release version here
|
|
4
4
|
// before `pnpm publish`, after `pnpm version` updates package.json.
|
|
5
|
-
export const SDK_VERSION = 'v1.0.0-beta.
|
|
5
|
+
export const SDK_VERSION = 'v1.0.0-beta.238';
|
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
import type { AcceptDateStrings } from '../../lib/wire.js';
|
|
2
|
-
import type { ChargePagePaginatedResponse, ListChargesParamsFilter, SortQueryInput } from '../types.js';
|
|
2
|
+
import type { Charge, ChargePagePaginatedResponse, ListChargesParamsFilter, SortQueryInput } from '../types.js';
|
|
3
|
+
export interface GetChargeQuery {
|
|
4
|
+
/** Expand related entities, realization details, or real-time usage. */
|
|
5
|
+
expand?: ('real_time_usage' | 'customer' | 'feature' | 'subscription' | 'realization.invoice' | 'realization.totals' | 'realization.detailed_lines')[];
|
|
6
|
+
}
|
|
7
|
+
export type GetChargeRequest = AcceptDateStrings<GetChargeQuery & {
|
|
8
|
+
chargeId: string;
|
|
9
|
+
}>;
|
|
10
|
+
export type GetChargeResponse = Charge;
|
|
3
11
|
export interface ListChargesQuery {
|
|
4
12
|
/** Determines which page of the collection to retrieve. */
|
|
5
13
|
page?: {
|
|
@@ -23,6 +31,9 @@ export interface ListChargesQuery {
|
|
|
23
31
|
* To filter charges by customer add the following query param:
|
|
24
32
|
* `filter[customer_id][eq]=<id>` or `filter[customer_id][oeq]=<id>,<id>`.
|
|
25
33
|
*
|
|
34
|
+
* To filter charges by subscription, use `filter[subscription_id][eq]=<id>` or
|
|
35
|
+
* `filter[subscription_id][oeq]=<id>,<id>`.
|
|
36
|
+
*
|
|
26
37
|
* To filter charges by status add the following query param:
|
|
27
38
|
* `filter[status][oeq]=created,active`
|
|
28
39
|
*
|
|
@@ -38,8 +49,10 @@ export interface ListChargesQuery {
|
|
|
38
49
|
*
|
|
39
50
|
* Supported values are:
|
|
40
51
|
*
|
|
41
|
-
* - `real_time_usage`:
|
|
42
|
-
* and
|
|
52
|
+
* - `real_time_usage`: Set `usage` and `totals.realtime` for active usage-based
|
|
53
|
+
* charges and created usage-based charges whose effective service period
|
|
54
|
+
* contains the current time (inclusive start, exclusive end). Deleted charges
|
|
55
|
+
* are skipped.
|
|
43
56
|
* - `customer`: Expand the charge's customer to the complete entity.
|
|
44
57
|
* - `feature`: Expand the charge's feature to the complete entity.
|
|
45
58
|
* - `subscription`: Expand the charge's subscription to the complete entity.
|
|
@@ -284,8 +284,10 @@ export interface ListCustomerChargesQuery {
|
|
|
284
284
|
*
|
|
285
285
|
* Supported values are:
|
|
286
286
|
*
|
|
287
|
-
* - `real_time_usage`:
|
|
288
|
-
* and
|
|
287
|
+
* - `real_time_usage`: Set `usage` and `totals.realtime` for active usage-based
|
|
288
|
+
* charges and created usage-based charges whose effective service period
|
|
289
|
+
* contains the current time (inclusive start, exclusive end). Deleted charges
|
|
290
|
+
* are skipped.
|
|
289
291
|
* - `customer`: Expand the charge's customer to the complete entity.
|
|
290
292
|
* - `feature`: Expand the charge's feature to the complete entity.
|
|
291
293
|
* - `subscription`: Expand the charge's subscription to the complete entity.
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type { AcceptDateStrings } from '../../lib/wire.js';
|
|
2
|
-
import type {
|
|
2
|
+
import type { EntitlementAccessQueryPage, EntitlementAccessQueryRequestInput, EntitlementAccessQueryResponse } from '../types.js';
|
|
3
3
|
export interface QueryEntitlementAccessQuery {
|
|
4
|
-
page
|
|
4
|
+
/** Determines which page of the collection to retrieve. */
|
|
5
|
+
page?: EntitlementAccessQueryPage;
|
|
5
6
|
}
|
|
6
7
|
export type QueryEntitlementAccessRequest = AcceptDateStrings<{
|
|
7
8
|
body: EntitlementAccessQueryRequestInput;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type { AcceptDateStrings } from '../../lib/wire.js';
|
|
2
|
-
import type {
|
|
2
|
+
import type { EventInput, IngestedEventPaginatedResponse, ListEventsPage, ListEventsParamsFilter, SortQueryInput } from '../types.js';
|
|
3
3
|
export interface ListMeteringEventsQuery {
|
|
4
|
-
page
|
|
4
|
+
/** Determines which page of the collection to retrieve. */
|
|
5
|
+
page?: ListEventsPage;
|
|
5
6
|
/**
|
|
6
7
|
* Filter events returned in the response.
|
|
7
8
|
*
|