@openmeter/sdk 1.0.0-beta-cd605a45b9c2 → 1.0.0-beta-724de446d76c
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/dist/cjs/src/client/schemas.d.cts +257 -0
- package/dist/cjs/src/zod/index.cjs +76 -2
- package/dist/cjs/src/zod/index.d.cts +62 -0
- package/dist/cjs/src/zod/index.js.map +1 -1
- package/dist/cjs/{tsconfig.1a89218d.tsbuildinfo → tsconfig.1801eae0.tsbuildinfo} +1 -1
- package/dist/cjs/{tsconfig.36e18d93.tsbuildinfo → tsconfig.2e37035d.tsbuildinfo} +1 -1
- package/dist/src/client/schemas.d.ts +257 -0
- package/dist/src/zod/index.d.ts +62 -0
- package/dist/src/zod/index.js +74 -0
- package/dist/src/zod/index.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -2331,6 +2331,47 @@ export interface paths {
|
|
|
2331
2331
|
patch?: never;
|
|
2332
2332
|
trace?: never;
|
|
2333
2333
|
};
|
|
2334
|
+
'/api/v2/entitlements': {
|
|
2335
|
+
parameters: {
|
|
2336
|
+
query?: never;
|
|
2337
|
+
header?: never;
|
|
2338
|
+
path?: never;
|
|
2339
|
+
cookie?: never;
|
|
2340
|
+
};
|
|
2341
|
+
/**
|
|
2342
|
+
* List all entitlements
|
|
2343
|
+
* @description List all entitlements for all the customers and features. This endpoint is intended for administrative purposes only.
|
|
2344
|
+
* To fetch the entitlements of a specific subject please use the /api/v2/customers/{customerIdOrKey}/entitlements endpoint.
|
|
2345
|
+
*/
|
|
2346
|
+
get: operations['listEntitlementsV2'];
|
|
2347
|
+
put?: never;
|
|
2348
|
+
post?: never;
|
|
2349
|
+
delete?: never;
|
|
2350
|
+
options?: never;
|
|
2351
|
+
head?: never;
|
|
2352
|
+
patch?: never;
|
|
2353
|
+
trace?: never;
|
|
2354
|
+
};
|
|
2355
|
+
'/api/v2/entitlements/{entitlementId}': {
|
|
2356
|
+
parameters: {
|
|
2357
|
+
query?: never;
|
|
2358
|
+
header?: never;
|
|
2359
|
+
path?: never;
|
|
2360
|
+
cookie?: never;
|
|
2361
|
+
};
|
|
2362
|
+
/**
|
|
2363
|
+
* Get entitlement by id
|
|
2364
|
+
* @description Get entitlement by id.
|
|
2365
|
+
*/
|
|
2366
|
+
get: operations['getEntitlementByIdV2'];
|
|
2367
|
+
put?: never;
|
|
2368
|
+
post?: never;
|
|
2369
|
+
delete?: never;
|
|
2370
|
+
options?: never;
|
|
2371
|
+
head?: never;
|
|
2372
|
+
patch?: never;
|
|
2373
|
+
trace?: never;
|
|
2374
|
+
};
|
|
2334
2375
|
'/api/v2/events': {
|
|
2335
2376
|
parameters: {
|
|
2336
2377
|
query?: never;
|
|
@@ -25572,6 +25613,222 @@ export interface operations {
|
|
|
25572
25613
|
};
|
|
25573
25614
|
};
|
|
25574
25615
|
};
|
|
25616
|
+
listEntitlementsV2: {
|
|
25617
|
+
parameters: {
|
|
25618
|
+
query?: {
|
|
25619
|
+
/** @description Filtering by multiple features.
|
|
25620
|
+
*
|
|
25621
|
+
* Usage: `?feature=feature-1&feature=feature-2` */
|
|
25622
|
+
feature?: string[];
|
|
25623
|
+
/** @description Filtering by multiple customers.
|
|
25624
|
+
*
|
|
25625
|
+
* Usage: `?customerKeys=customer-1&customerKeys=customer-3` */
|
|
25626
|
+
customerKeys?: string[];
|
|
25627
|
+
/** @description Filtering by multiple customers.
|
|
25628
|
+
*
|
|
25629
|
+
* Usage: `?customerIds=01K4WAQ0J99ZZ0MD75HXR112H8&customerIds=01K4WAQ0J99ZZ0MD75HXR112H9` */
|
|
25630
|
+
customerIds?: string[];
|
|
25631
|
+
/** @description Filtering by multiple entitlement types.
|
|
25632
|
+
*
|
|
25633
|
+
* Usage: `?entitlementType=metered&entitlementType=boolean` */
|
|
25634
|
+
entitlementType?: components['schemas']['EntitlementType'][];
|
|
25635
|
+
/** @description Exclude inactive entitlements in the response (those scheduled for later or earlier) */
|
|
25636
|
+
excludeInactive?: boolean;
|
|
25637
|
+
/** @description Page index.
|
|
25638
|
+
*
|
|
25639
|
+
* Default is 1. */
|
|
25640
|
+
page?: components['parameters']['Pagination.page'];
|
|
25641
|
+
/** @description The maximum number of items per page.
|
|
25642
|
+
*
|
|
25643
|
+
* Default is 100. */
|
|
25644
|
+
pageSize?: components['parameters']['Pagination.pageSize'];
|
|
25645
|
+
/** @description Number of items to skip.
|
|
25646
|
+
*
|
|
25647
|
+
* Default is 0. */
|
|
25648
|
+
offset?: components['parameters']['LimitOffset.offset'];
|
|
25649
|
+
/** @description Number of items to return.
|
|
25650
|
+
*
|
|
25651
|
+
* Default is 100. */
|
|
25652
|
+
limit?: components['parameters']['LimitOffset.limit'];
|
|
25653
|
+
/** @description The order direction. */
|
|
25654
|
+
order?: components['parameters']['EntitlementOrderByOrdering.order'];
|
|
25655
|
+
/** @description The order by field. */
|
|
25656
|
+
orderBy?: components['parameters']['EntitlementOrderByOrdering.orderBy'];
|
|
25657
|
+
};
|
|
25658
|
+
header?: never;
|
|
25659
|
+
path?: never;
|
|
25660
|
+
cookie?: never;
|
|
25661
|
+
};
|
|
25662
|
+
requestBody?: never;
|
|
25663
|
+
responses: {
|
|
25664
|
+
/** @description The request has succeeded. */
|
|
25665
|
+
200: {
|
|
25666
|
+
headers: {
|
|
25667
|
+
[name: string]: unknown;
|
|
25668
|
+
};
|
|
25669
|
+
content: {
|
|
25670
|
+
'application/json': components['schemas']['EntitlementV2PaginatedResponse'];
|
|
25671
|
+
};
|
|
25672
|
+
};
|
|
25673
|
+
/** @description The server cannot or will not process the request due to something that is perceived to be a client error (e.g., malformed request syntax, invalid request message framing, or deceptive request routing). */
|
|
25674
|
+
400: {
|
|
25675
|
+
headers: {
|
|
25676
|
+
[name: string]: unknown;
|
|
25677
|
+
};
|
|
25678
|
+
content: {
|
|
25679
|
+
'application/problem+json': components['schemas']['BadRequestProblemResponse'];
|
|
25680
|
+
};
|
|
25681
|
+
};
|
|
25682
|
+
/** @description The request has not been applied because it lacks valid authentication credentials for the target resource. */
|
|
25683
|
+
401: {
|
|
25684
|
+
headers: {
|
|
25685
|
+
[name: string]: unknown;
|
|
25686
|
+
};
|
|
25687
|
+
content: {
|
|
25688
|
+
'application/problem+json': components['schemas']['UnauthorizedProblemResponse'];
|
|
25689
|
+
};
|
|
25690
|
+
};
|
|
25691
|
+
/** @description The server understood the request but refuses to authorize it. */
|
|
25692
|
+
403: {
|
|
25693
|
+
headers: {
|
|
25694
|
+
[name: string]: unknown;
|
|
25695
|
+
};
|
|
25696
|
+
content: {
|
|
25697
|
+
'application/problem+json': components['schemas']['ForbiddenProblemResponse'];
|
|
25698
|
+
};
|
|
25699
|
+
};
|
|
25700
|
+
/** @description One or more conditions given in the request header fields evaluated to false when tested on the server. */
|
|
25701
|
+
412: {
|
|
25702
|
+
headers: {
|
|
25703
|
+
[name: string]: unknown;
|
|
25704
|
+
};
|
|
25705
|
+
content: {
|
|
25706
|
+
'application/problem+json': components['schemas']['PreconditionFailedProblemResponse'];
|
|
25707
|
+
};
|
|
25708
|
+
};
|
|
25709
|
+
/** @description The server encountered an unexpected condition that prevented it from fulfilling the request. */
|
|
25710
|
+
500: {
|
|
25711
|
+
headers: {
|
|
25712
|
+
[name: string]: unknown;
|
|
25713
|
+
};
|
|
25714
|
+
content: {
|
|
25715
|
+
'application/problem+json': components['schemas']['InternalServerErrorProblemResponse'];
|
|
25716
|
+
};
|
|
25717
|
+
};
|
|
25718
|
+
/** @description The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, which will likely be alleviated after some delay. */
|
|
25719
|
+
503: {
|
|
25720
|
+
headers: {
|
|
25721
|
+
[name: string]: unknown;
|
|
25722
|
+
};
|
|
25723
|
+
content: {
|
|
25724
|
+
'application/problem+json': components['schemas']['ServiceUnavailableProblemResponse'];
|
|
25725
|
+
};
|
|
25726
|
+
};
|
|
25727
|
+
/** @description An unexpected error response. */
|
|
25728
|
+
default: {
|
|
25729
|
+
headers: {
|
|
25730
|
+
[name: string]: unknown;
|
|
25731
|
+
};
|
|
25732
|
+
content: {
|
|
25733
|
+
'application/problem+json': components['schemas']['UnexpectedProblemResponse'];
|
|
25734
|
+
};
|
|
25735
|
+
};
|
|
25736
|
+
};
|
|
25737
|
+
};
|
|
25738
|
+
getEntitlementByIdV2: {
|
|
25739
|
+
parameters: {
|
|
25740
|
+
query?: never;
|
|
25741
|
+
header?: never;
|
|
25742
|
+
path: {
|
|
25743
|
+
entitlementId: string;
|
|
25744
|
+
};
|
|
25745
|
+
cookie?: never;
|
|
25746
|
+
};
|
|
25747
|
+
requestBody?: never;
|
|
25748
|
+
responses: {
|
|
25749
|
+
/** @description The request has succeeded. */
|
|
25750
|
+
200: {
|
|
25751
|
+
headers: {
|
|
25752
|
+
[name: string]: unknown;
|
|
25753
|
+
};
|
|
25754
|
+
content: {
|
|
25755
|
+
'application/json': components['schemas']['EntitlementV2'];
|
|
25756
|
+
};
|
|
25757
|
+
};
|
|
25758
|
+
/** @description The server cannot or will not process the request due to something that is perceived to be a client error (e.g., malformed request syntax, invalid request message framing, or deceptive request routing). */
|
|
25759
|
+
400: {
|
|
25760
|
+
headers: {
|
|
25761
|
+
[name: string]: unknown;
|
|
25762
|
+
};
|
|
25763
|
+
content: {
|
|
25764
|
+
'application/problem+json': components['schemas']['BadRequestProblemResponse'];
|
|
25765
|
+
};
|
|
25766
|
+
};
|
|
25767
|
+
/** @description The request has not been applied because it lacks valid authentication credentials for the target resource. */
|
|
25768
|
+
401: {
|
|
25769
|
+
headers: {
|
|
25770
|
+
[name: string]: unknown;
|
|
25771
|
+
};
|
|
25772
|
+
content: {
|
|
25773
|
+
'application/problem+json': components['schemas']['UnauthorizedProblemResponse'];
|
|
25774
|
+
};
|
|
25775
|
+
};
|
|
25776
|
+
/** @description The server understood the request but refuses to authorize it. */
|
|
25777
|
+
403: {
|
|
25778
|
+
headers: {
|
|
25779
|
+
[name: string]: unknown;
|
|
25780
|
+
};
|
|
25781
|
+
content: {
|
|
25782
|
+
'application/problem+json': components['schemas']['ForbiddenProblemResponse'];
|
|
25783
|
+
};
|
|
25784
|
+
};
|
|
25785
|
+
/** @description The origin server did not find a current representation for the target resource or is not willing to disclose that one exists. */
|
|
25786
|
+
404: {
|
|
25787
|
+
headers: {
|
|
25788
|
+
[name: string]: unknown;
|
|
25789
|
+
};
|
|
25790
|
+
content: {
|
|
25791
|
+
'application/problem+json': components['schemas']['NotFoundProblemResponse'];
|
|
25792
|
+
};
|
|
25793
|
+
};
|
|
25794
|
+
/** @description One or more conditions given in the request header fields evaluated to false when tested on the server. */
|
|
25795
|
+
412: {
|
|
25796
|
+
headers: {
|
|
25797
|
+
[name: string]: unknown;
|
|
25798
|
+
};
|
|
25799
|
+
content: {
|
|
25800
|
+
'application/problem+json': components['schemas']['PreconditionFailedProblemResponse'];
|
|
25801
|
+
};
|
|
25802
|
+
};
|
|
25803
|
+
/** @description The server encountered an unexpected condition that prevented it from fulfilling the request. */
|
|
25804
|
+
500: {
|
|
25805
|
+
headers: {
|
|
25806
|
+
[name: string]: unknown;
|
|
25807
|
+
};
|
|
25808
|
+
content: {
|
|
25809
|
+
'application/problem+json': components['schemas']['InternalServerErrorProblemResponse'];
|
|
25810
|
+
};
|
|
25811
|
+
};
|
|
25812
|
+
/** @description The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, which will likely be alleviated after some delay. */
|
|
25813
|
+
503: {
|
|
25814
|
+
headers: {
|
|
25815
|
+
[name: string]: unknown;
|
|
25816
|
+
};
|
|
25817
|
+
content: {
|
|
25818
|
+
'application/problem+json': components['schemas']['ServiceUnavailableProblemResponse'];
|
|
25819
|
+
};
|
|
25820
|
+
};
|
|
25821
|
+
/** @description An unexpected error response. */
|
|
25822
|
+
default: {
|
|
25823
|
+
headers: {
|
|
25824
|
+
[name: string]: unknown;
|
|
25825
|
+
};
|
|
25826
|
+
content: {
|
|
25827
|
+
'application/problem+json': components['schemas']['UnexpectedProblemResponse'];
|
|
25828
|
+
};
|
|
25829
|
+
};
|
|
25830
|
+
};
|
|
25831
|
+
};
|
|
25575
25832
|
listEventsV2: {
|
|
25576
25833
|
parameters: {
|
|
25577
25834
|
query?: {
|
|
@@ -24,8 +24,8 @@ exports.editSubscriptionBodyCustomizationsItemRateCardPriceTiersItemUpToAmountRe
|
|
|
24
24
|
exports.changeSubscriptionBodyCustomPlanCurrencyMaxOne = exports.changeSubscriptionBodyCustomPlanCurrencyMinOne = exports.changeSubscriptionBodyCustomPlanDescriptionMax = exports.changeSubscriptionBodyCustomPlanNameMax = exports.changeSubscriptionBodyPlanKeyRegExp = exports.changeSubscriptionBodyPlanKeyMax = exports.changeSubscriptionParams = exports.changeSubscriptionPathSubscriptionIdRegExp = exports.cancelSubscriptionBody = exports.cancelSubscriptionParams = exports.cancelSubscriptionPathSubscriptionIdRegExp = exports.updateSubscriptionAddonBody = exports.updateSubscriptionAddonBodyQuantityMin = exports.updateSubscriptionAddonBodyDescriptionMax = exports.updateSubscriptionAddonBodyNameMax = exports.updateSubscriptionAddonParams = exports.updateSubscriptionAddonPathSubscriptionAddonIdRegExp = exports.updateSubscriptionAddonPathSubscriptionIdRegExp = exports.getSubscriptionAddonParams = exports.getSubscriptionAddonPathSubscriptionAddonIdRegExp = exports.getSubscriptionAddonPathSubscriptionIdRegExp = exports.listSubscriptionAddonsParams = exports.listSubscriptionAddonsPathSubscriptionIdRegExp = exports.createSubscriptionAddonBody = exports.createSubscriptionAddonBodyAddonIdRegExp = exports.createSubscriptionAddonBodyQuantityMin = exports.createSubscriptionAddonBodyDescriptionMax = exports.createSubscriptionAddonBodyNameMax = exports.createSubscriptionAddonParams = exports.createSubscriptionAddonPathSubscriptionIdRegExp = exports.deleteSubscriptionParams = exports.deleteSubscriptionPathSubscriptionIdRegExp = exports.editSubscriptionBody = exports.editSubscriptionBodyCustomizationsMax = exports.editSubscriptionBodyCustomizationsItemPhaseKeyRegExpTwo = exports.editSubscriptionBodyCustomizationsItemPhaseKeyMaxTwo = exports.editSubscriptionBodyCustomizationsItemPhaseDiscountsUsageQuantityRegExpOne = exports.editSubscriptionBodyCustomizationsItemRateCardDiscountsUsageQuantityRegExpThree = exports.editSubscriptionBodyCustomizationsItemRateCardPriceMaximumAmountRegExpSeven = exports.editSubscriptionBodyCustomizationsItemRateCardPriceMinimumAmountRegExpSeven = exports.editSubscriptionBodyCustomizationsItemRateCardPriceQuantityPerPackageRegExpOne = exports.editSubscriptionBodyCustomizationsItemRateCardPriceAmountRegExpSeven = exports.editSubscriptionBodyCustomizationsItemRateCardPriceMaximumAmountRegExpFive = exports.editSubscriptionBodyCustomizationsItemRateCardPriceMinimumAmountRegExpFive = exports.editSubscriptionBodyCustomizationsItemRateCardPriceMultiplierDefault = exports.editSubscriptionBodyCustomizationsItemRateCardPriceMultiplierRegExpOne = exports.editSubscriptionBodyCustomizationsItemRateCardPriceMaximumAmountRegExpThree = exports.editSubscriptionBodyCustomizationsItemRateCardPriceMinimumAmountRegExpThree = exports.editSubscriptionBodyCustomizationsItemRateCardPriceTiersItemUnitPriceAmountRegExpOne = exports.editSubscriptionBodyCustomizationsItemRateCardPriceTiersItemFlatPriceAmountRegExpOne = void 0;
|
|
25
25
|
exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceMaximumAmountRegExpFive = exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceMinimumAmountRegExpFive = exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceMultiplierDefault = exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceMultiplierRegExpOne = exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceMaximumAmountRegExpThree = exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceMinimumAmountRegExpThree = exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceTiersItemUnitPriceAmountRegExpOne = exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceTiersItemFlatPriceAmountRegExpOne = exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceTiersItemUpToAmountRegExpOne = exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceMaximumAmountRegExpOne = exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceMinimumAmountRegExpOne = exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceAmountRegExpFive = exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemPricePaymentTermDefaultTwo = exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceAmountRegExpThree = exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemTaxConfigStripeCodeRegExpOne = exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemEntitlementTemplatePreserveOverageAtResetDefaultOne = exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemEntitlementTemplateIssueAfterResetPriorityMaxOne = exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemEntitlementTemplateIssueAfterResetPriorityDefaultOne = exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemEntitlementTemplateIssueAfterResetMinOne = exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemEntitlementTemplateIsSoftLimitDefaultOne = exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemFeatureKeyRegExpOne = exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemFeatureKeyMaxOne = exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemDescriptionMaxOne = exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemNameMaxOne = exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemKeyRegExpOne = exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemKeyMaxOne = exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemDiscountsUsageQuantityRegExpOne = exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemPricePaymentTermDefault = exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceAmountRegExpOne = exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemTaxConfigStripeCodeRegExp = exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemEntitlementTemplatePreserveOverageAtResetDefault = exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemEntitlementTemplateIssueAfterResetPriorityMax = exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemEntitlementTemplateIssueAfterResetPriorityDefault = exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemEntitlementTemplateIssueAfterResetMin = exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemEntitlementTemplateIsSoftLimitDefault = exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemFeatureKeyRegExp = exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemFeatureKeyMax = exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemDescriptionMax = exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemNameMax = exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemKeyRegExp = exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemKeyMax = exports.changeSubscriptionBodyCustomPlanPhasesItemDescriptionMax = exports.changeSubscriptionBodyCustomPlanPhasesItemNameMax = exports.changeSubscriptionBodyCustomPlanPhasesItemKeyRegExp = exports.changeSubscriptionBodyCustomPlanPhasesItemKeyMax = exports.changeSubscriptionBodyCustomPlanProRatingConfigDefault = exports.changeSubscriptionBodyCustomPlanProRatingConfigModeDefault = exports.changeSubscriptionBodyCustomPlanProRatingConfigEnabledDefault = exports.changeSubscriptionBodyCustomPlanCurrencyDefault = exports.changeSubscriptionBodyCustomPlanCurrencyRegExpOne = void 0;
|
|
26
26
|
exports.listCustomerEntitlementGrantsV2Params = exports.listCustomerEntitlementGrantsV2PathEntitlementIdOrFeatureKeyRegExp = exports.listCustomerEntitlementGrantsV2PathEntitlementIdOrFeatureKeyMax = exports.deleteCustomerEntitlementV2Params = exports.deleteCustomerEntitlementV2PathEntitlementIdOrFeatureKeyRegExp = exports.deleteCustomerEntitlementV2PathEntitlementIdOrFeatureKeyMax = exports.getCustomerEntitlementV2Params = exports.getCustomerEntitlementV2PathEntitlementIdOrFeatureKeyRegExp = exports.getCustomerEntitlementV2PathEntitlementIdOrFeatureKeyMax = exports.listCustomerEntitlementsV2QueryParams = exports.listCustomerEntitlementsV2QueryLimitMax = exports.listCustomerEntitlementsV2QueryLimitDefault = exports.listCustomerEntitlementsV2QueryOffsetMin = exports.listCustomerEntitlementsV2QueryOffsetDefault = exports.listCustomerEntitlementsV2QueryPageSizeMax = exports.listCustomerEntitlementsV2QueryPageSizeDefault = exports.listCustomerEntitlementsV2QueryPageDefault = exports.listCustomerEntitlementsV2QueryIncludeDeletedDefault = exports.listCustomerEntitlementsV2Params = exports.createCustomerEntitlementV2Body = exports.createCustomerEntitlementV2BodyFeatureIdRegExpTwo = exports.createCustomerEntitlementV2BodyFeatureKeyRegExpTwo = exports.createCustomerEntitlementV2BodyFeatureKeyMaxTwo = exports.createCustomerEntitlementV2BodyFeatureIdRegExpOne = exports.createCustomerEntitlementV2BodyFeatureKeyRegExpOne = exports.createCustomerEntitlementV2BodyFeatureKeyMaxOne = exports.createCustomerEntitlementV2BodyPreserveOverageAtResetDefault = exports.createCustomerEntitlementV2BodyIssueAfterResetPriorityMax = exports.createCustomerEntitlementV2BodyIssueAfterResetPriorityDefault = exports.createCustomerEntitlementV2BodyIssueAfterResetMin = exports.createCustomerEntitlementV2BodyIsUnlimitedDefault = exports.createCustomerEntitlementV2BodyIsSoftLimitDefault = exports.createCustomerEntitlementV2BodyFeatureIdRegExp = exports.createCustomerEntitlementV2BodyFeatureKeyRegExp = exports.createCustomerEntitlementV2BodyFeatureKeyMax = exports.createCustomerEntitlementV2Params = exports.unscheduleCancelationParams = exports.unscheduleCancelationPathSubscriptionIdRegExp = exports.restoreSubscriptionParams = exports.restoreSubscriptionPathSubscriptionIdRegExp = exports.migrateSubscriptionBody = exports.migrateSubscriptionBodyTimingDefault = exports.migrateSubscriptionParams = exports.migrateSubscriptionPathSubscriptionIdRegExp = exports.changeSubscriptionBody = exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemDiscountsUsageQuantityRegExpThree = exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceMaximumAmountRegExpSeven = exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceMinimumAmountRegExpSeven = exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceQuantityPerPackageRegExpOne = exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceAmountRegExpSeven = void 0;
|
|
27
|
-
exports.
|
|
28
|
-
exports.listGrantsV2QueryParams = exports.listGrantsV2QueryLimitMax = exports.listGrantsV2QueryLimitDefault = exports.listGrantsV2QueryOffsetMin = exports.listGrantsV2QueryOffsetDefault = exports.listGrantsV2QueryPageSizeMax = exports.listGrantsV2QueryPageSizeDefault = exports.listGrantsV2QueryPageDefault = exports.listGrantsV2QueryIncludeDeletedDefault = exports.listEventsV2QueryParams = exports.listEventsV2QueryClientIdMax = void 0;
|
|
27
|
+
exports.listEntitlementsV2QueryPageDefault = exports.listEntitlementsV2QueryExcludeInactiveDefault = exports.getCustomerEntitlementValueV2QueryParams = exports.getCustomerEntitlementValueV2Params = exports.getCustomerEntitlementValueV2PathEntitlementIdOrFeatureKeyRegExp = exports.getCustomerEntitlementValueV2PathEntitlementIdOrFeatureKeyMax = exports.resetCustomerEntitlementUsageV2Body = exports.resetCustomerEntitlementUsageV2Params = exports.resetCustomerEntitlementUsageV2PathEntitlementIdOrFeatureKeyRegExp = exports.resetCustomerEntitlementUsageV2PathEntitlementIdOrFeatureKeyMax = exports.overrideCustomerEntitlementV2Body = exports.overrideCustomerEntitlementV2BodyFeatureIdRegExpTwo = exports.overrideCustomerEntitlementV2BodyFeatureKeyRegExpTwo = exports.overrideCustomerEntitlementV2BodyFeatureKeyMaxTwo = exports.overrideCustomerEntitlementV2BodyFeatureIdRegExpOne = exports.overrideCustomerEntitlementV2BodyFeatureKeyRegExpOne = exports.overrideCustomerEntitlementV2BodyFeatureKeyMaxOne = exports.overrideCustomerEntitlementV2BodyPreserveOverageAtResetDefault = exports.overrideCustomerEntitlementV2BodyIssueAfterResetPriorityMax = exports.overrideCustomerEntitlementV2BodyIssueAfterResetPriorityDefault = exports.overrideCustomerEntitlementV2BodyIssueAfterResetMin = exports.overrideCustomerEntitlementV2BodyIsUnlimitedDefault = exports.overrideCustomerEntitlementV2BodyIsSoftLimitDefault = exports.overrideCustomerEntitlementV2BodyFeatureIdRegExp = exports.overrideCustomerEntitlementV2BodyFeatureKeyRegExp = exports.overrideCustomerEntitlementV2BodyFeatureKeyMax = exports.overrideCustomerEntitlementV2Params = exports.getCustomerEntitlementHistoryV2QueryParams = exports.getCustomerEntitlementHistoryV2QueryWindowTimeZoneDefault = exports.getCustomerEntitlementHistoryV2Params = exports.getCustomerEntitlementHistoryV2PathEntitlementIdOrFeatureKeyRegExp = exports.getCustomerEntitlementHistoryV2PathEntitlementIdOrFeatureKeyMax = exports.createCustomerEntitlementGrantV2Body = exports.createCustomerEntitlementGrantV2BodyMinRolloverAmountDefault = exports.createCustomerEntitlementGrantV2BodyMaxRolloverAmountDefault = exports.createCustomerEntitlementGrantV2BodyExpirationCountMax = exports.createCustomerEntitlementGrantV2BodyPriorityMax = exports.createCustomerEntitlementGrantV2BodyAmountMin = exports.createCustomerEntitlementGrantV2Params = exports.createCustomerEntitlementGrantV2PathEntitlementIdOrFeatureKeyRegExp = exports.createCustomerEntitlementGrantV2PathEntitlementIdOrFeatureKeyMax = exports.listCustomerEntitlementGrantsV2QueryParams = exports.listCustomerEntitlementGrantsV2QueryLimitMax = exports.listCustomerEntitlementGrantsV2QueryLimitDefault = exports.listCustomerEntitlementGrantsV2QueryOffsetMin = exports.listCustomerEntitlementGrantsV2QueryOffsetDefault = exports.listCustomerEntitlementGrantsV2QueryPageSizeMax = exports.listCustomerEntitlementGrantsV2QueryPageSizeDefault = exports.listCustomerEntitlementGrantsV2QueryPageDefault = exports.listCustomerEntitlementGrantsV2QueryIncludeDeletedDefault = void 0;
|
|
28
|
+
exports.listGrantsV2QueryParams = exports.listGrantsV2QueryLimitMax = exports.listGrantsV2QueryLimitDefault = exports.listGrantsV2QueryOffsetMin = exports.listGrantsV2QueryOffsetDefault = exports.listGrantsV2QueryPageSizeMax = exports.listGrantsV2QueryPageSizeDefault = exports.listGrantsV2QueryPageDefault = exports.listGrantsV2QueryIncludeDeletedDefault = exports.listEventsV2QueryParams = exports.listEventsV2QueryClientIdMax = exports.listEventsV2QueryLimitMax = exports.listEventsV2QueryLimitDefault = exports.getEntitlementByIdV2Params = exports.getEntitlementByIdV2PathEntitlementIdRegExp = exports.listEntitlementsV2QueryParams = exports.listEntitlementsV2QueryLimitMax = exports.listEntitlementsV2QueryLimitDefault = exports.listEntitlementsV2QueryOffsetMin = exports.listEntitlementsV2QueryOffsetDefault = exports.listEntitlementsV2QueryPageSizeMax = exports.listEntitlementsV2QueryPageSizeDefault = void 0;
|
|
29
29
|
/* eslint-disable no-useless-escape */
|
|
30
30
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
31
31
|
// @ts-nocheck
|
|
@@ -12305,6 +12305,80 @@ exports.getCustomerEntitlementValueV2Params = zod_1.z.object({
|
|
|
12305
12305
|
exports.getCustomerEntitlementValueV2QueryParams = zod_1.z.object({
|
|
12306
12306
|
time: zod_1.z.coerce.date().optional(),
|
|
12307
12307
|
});
|
|
12308
|
+
/**
|
|
12309
|
+
* List all entitlements for all the customers and features. This endpoint is intended for administrative purposes only.
|
|
12310
|
+
To fetch the entitlements of a specific subject please use the /api/v2/customers/{customerIdOrKey}/entitlements endpoint.
|
|
12311
|
+
* @summary List all entitlements
|
|
12312
|
+
*/
|
|
12313
|
+
exports.listEntitlementsV2QueryExcludeInactiveDefault = false;
|
|
12314
|
+
exports.listEntitlementsV2QueryPageDefault = 1;
|
|
12315
|
+
exports.listEntitlementsV2QueryPageSizeDefault = 100;
|
|
12316
|
+
exports.listEntitlementsV2QueryPageSizeMax = 1000;
|
|
12317
|
+
exports.listEntitlementsV2QueryOffsetDefault = 0;
|
|
12318
|
+
exports.listEntitlementsV2QueryOffsetMin = 0;
|
|
12319
|
+
exports.listEntitlementsV2QueryLimitDefault = 100;
|
|
12320
|
+
exports.listEntitlementsV2QueryLimitMax = 1000;
|
|
12321
|
+
exports.listEntitlementsV2QueryParams = zod_1.z.object({
|
|
12322
|
+
customerIds: zod_1.z
|
|
12323
|
+
.array(zod_1.z.coerce.string())
|
|
12324
|
+
.optional()
|
|
12325
|
+
.describe('Filtering by multiple customers.\n\nUsage: `?customerIds=01K4WAQ0J99ZZ0MD75HXR112H8&customerIds=01K4WAQ0J99ZZ0MD75HXR112H9`'),
|
|
12326
|
+
customerKeys: zod_1.z
|
|
12327
|
+
.array(zod_1.z.coerce.string())
|
|
12328
|
+
.optional()
|
|
12329
|
+
.describe('Filtering by multiple customers.\n\nUsage: `?customerKeys=customer-1&customerKeys=customer-3`'),
|
|
12330
|
+
entitlementType: zod_1.z
|
|
12331
|
+
.array(zod_1.z
|
|
12332
|
+
.enum(['metered', 'boolean', 'static'])
|
|
12333
|
+
.describe('Type of the entitlement.'))
|
|
12334
|
+
.optional()
|
|
12335
|
+
.describe('Filtering by multiple entitlement types.\n\nUsage: `?entitlementType=metered&entitlementType=boolean`'),
|
|
12336
|
+
excludeInactive: zod_1.z.coerce
|
|
12337
|
+
.boolean()
|
|
12338
|
+
.optional()
|
|
12339
|
+
.describe('Exclude inactive entitlements in the response (those scheduled for later or earlier)'),
|
|
12340
|
+
feature: zod_1.z
|
|
12341
|
+
.array(zod_1.z.coerce.string())
|
|
12342
|
+
.optional()
|
|
12343
|
+
.describe('Filtering by multiple features.\n\nUsage: `?feature=feature-1&feature=feature-2`'),
|
|
12344
|
+
limit: zod_1.z.coerce
|
|
12345
|
+
.number()
|
|
12346
|
+
.min(1)
|
|
12347
|
+
.max(exports.listEntitlementsV2QueryLimitMax)
|
|
12348
|
+
.default(exports.listEntitlementsV2QueryLimitDefault)
|
|
12349
|
+
.describe('Number of items to return.\n\nDefault is 100.'),
|
|
12350
|
+
offset: zod_1.z.coerce
|
|
12351
|
+
.number()
|
|
12352
|
+
.min(exports.listEntitlementsV2QueryOffsetMin)
|
|
12353
|
+
.optional()
|
|
12354
|
+
.describe('Number of items to skip.\n\nDefault is 0.'),
|
|
12355
|
+
order: zod_1.z.enum(['ASC', 'DESC']).optional().describe('The order direction.'),
|
|
12356
|
+
orderBy: zod_1.z
|
|
12357
|
+
.enum(['createdAt', 'updatedAt'])
|
|
12358
|
+
.optional()
|
|
12359
|
+
.describe('The order by field.'),
|
|
12360
|
+
page: zod_1.z.coerce
|
|
12361
|
+
.number()
|
|
12362
|
+
.min(1)
|
|
12363
|
+
.default(exports.listEntitlementsV2QueryPageDefault)
|
|
12364
|
+
.describe('Page index.\n\nDefault is 1.'),
|
|
12365
|
+
pageSize: zod_1.z.coerce
|
|
12366
|
+
.number()
|
|
12367
|
+
.min(1)
|
|
12368
|
+
.max(exports.listEntitlementsV2QueryPageSizeMax)
|
|
12369
|
+
.default(exports.listEntitlementsV2QueryPageSizeDefault)
|
|
12370
|
+
.describe('The maximum number of items per page.\n\nDefault is 100.'),
|
|
12371
|
+
});
|
|
12372
|
+
/**
|
|
12373
|
+
* Get entitlement by id.
|
|
12374
|
+
* @summary Get entitlement by id
|
|
12375
|
+
*/
|
|
12376
|
+
exports.getEntitlementByIdV2PathEntitlementIdRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
|
|
12377
|
+
exports.getEntitlementByIdV2Params = zod_1.z.object({
|
|
12378
|
+
entitlementId: zod_1.z.coerce
|
|
12379
|
+
.string()
|
|
12380
|
+
.regex(exports.getEntitlementByIdV2PathEntitlementIdRegExp),
|
|
12381
|
+
});
|
|
12308
12382
|
/**
|
|
12309
12383
|
* List ingested events with advanced filtering and cursor pagination.
|
|
12310
12384
|
* @summary List ingested events
|
|
@@ -19186,6 +19186,68 @@ export declare const getCustomerEntitlementValueV2QueryParams: zod.ZodObject<{
|
|
|
19186
19186
|
}, {
|
|
19187
19187
|
time?: Date | undefined;
|
|
19188
19188
|
}>;
|
|
19189
|
+
/**
|
|
19190
|
+
* List all entitlements for all the customers and features. This endpoint is intended for administrative purposes only.
|
|
19191
|
+
To fetch the entitlements of a specific subject please use the /api/v2/customers/{customerIdOrKey}/entitlements endpoint.
|
|
19192
|
+
* @summary List all entitlements
|
|
19193
|
+
*/
|
|
19194
|
+
export declare const listEntitlementsV2QueryExcludeInactiveDefault = false;
|
|
19195
|
+
export declare const listEntitlementsV2QueryPageDefault = 1;
|
|
19196
|
+
export declare const listEntitlementsV2QueryPageSizeDefault = 100;
|
|
19197
|
+
export declare const listEntitlementsV2QueryPageSizeMax = 1000;
|
|
19198
|
+
export declare const listEntitlementsV2QueryOffsetDefault = 0;
|
|
19199
|
+
export declare const listEntitlementsV2QueryOffsetMin = 0;
|
|
19200
|
+
export declare const listEntitlementsV2QueryLimitDefault = 100;
|
|
19201
|
+
export declare const listEntitlementsV2QueryLimitMax = 1000;
|
|
19202
|
+
export declare const listEntitlementsV2QueryParams: zod.ZodObject<{
|
|
19203
|
+
customerIds: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
|
|
19204
|
+
customerKeys: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
|
|
19205
|
+
entitlementType: zod.ZodOptional<zod.ZodArray<zod.ZodEnum<["metered", "boolean", "static"]>, "many">>;
|
|
19206
|
+
excludeInactive: zod.ZodOptional<zod.ZodBoolean>;
|
|
19207
|
+
feature: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
|
|
19208
|
+
limit: zod.ZodDefault<zod.ZodNumber>;
|
|
19209
|
+
offset: zod.ZodOptional<zod.ZodNumber>;
|
|
19210
|
+
order: zod.ZodOptional<zod.ZodEnum<["ASC", "DESC"]>>;
|
|
19211
|
+
orderBy: zod.ZodOptional<zod.ZodEnum<["createdAt", "updatedAt"]>>;
|
|
19212
|
+
page: zod.ZodDefault<zod.ZodNumber>;
|
|
19213
|
+
pageSize: zod.ZodDefault<zod.ZodNumber>;
|
|
19214
|
+
}, "strip", zod.ZodTypeAny, {
|
|
19215
|
+
page: number;
|
|
19216
|
+
pageSize: number;
|
|
19217
|
+
limit: number;
|
|
19218
|
+
feature?: string[] | undefined;
|
|
19219
|
+
entitlementType?: ("boolean" | "metered" | "static")[] | undefined;
|
|
19220
|
+
excludeInactive?: boolean | undefined;
|
|
19221
|
+
offset?: number | undefined;
|
|
19222
|
+
order?: "ASC" | "DESC" | undefined;
|
|
19223
|
+
orderBy?: "createdAt" | "updatedAt" | undefined;
|
|
19224
|
+
customerIds?: string[] | undefined;
|
|
19225
|
+
customerKeys?: string[] | undefined;
|
|
19226
|
+
}, {
|
|
19227
|
+
page?: number | undefined;
|
|
19228
|
+
pageSize?: number | undefined;
|
|
19229
|
+
feature?: string[] | undefined;
|
|
19230
|
+
entitlementType?: ("boolean" | "metered" | "static")[] | undefined;
|
|
19231
|
+
excludeInactive?: boolean | undefined;
|
|
19232
|
+
offset?: number | undefined;
|
|
19233
|
+
limit?: number | undefined;
|
|
19234
|
+
order?: "ASC" | "DESC" | undefined;
|
|
19235
|
+
orderBy?: "createdAt" | "updatedAt" | undefined;
|
|
19236
|
+
customerIds?: string[] | undefined;
|
|
19237
|
+
customerKeys?: string[] | undefined;
|
|
19238
|
+
}>;
|
|
19239
|
+
/**
|
|
19240
|
+
* Get entitlement by id.
|
|
19241
|
+
* @summary Get entitlement by id
|
|
19242
|
+
*/
|
|
19243
|
+
export declare const getEntitlementByIdV2PathEntitlementIdRegExp: RegExp;
|
|
19244
|
+
export declare const getEntitlementByIdV2Params: zod.ZodObject<{
|
|
19245
|
+
entitlementId: zod.ZodString;
|
|
19246
|
+
}, "strip", zod.ZodTypeAny, {
|
|
19247
|
+
entitlementId: string;
|
|
19248
|
+
}, {
|
|
19249
|
+
entitlementId: string;
|
|
19250
|
+
}>;
|
|
19189
19251
|
/**
|
|
19190
19252
|
* List ingested events with advanced filtering and cursor pagination.
|
|
19191
19253
|
* @summary List ingested events
|