@stigg/typescript 0.1.0-beta.20 → 0.1.0-beta.21
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/CHANGELOG.md +8 -0
- package/package.json +1 -1
- package/resources/v1/addons/addons.d.mts +143 -33
- package/resources/v1/addons/addons.d.mts.map +1 -1
- package/resources/v1/addons/addons.d.ts +143 -33
- package/resources/v1/addons/addons.d.ts.map +1 -1
- package/resources/v1/addons/addons.js +110 -17
- package/resources/v1/addons/addons.js.map +1 -1
- package/resources/v1/addons/addons.mjs +110 -17
- package/resources/v1/addons/addons.mjs.map +1 -1
- package/resources/v1/addons/entitlements.d.mts +62 -5
- package/resources/v1/addons/entitlements.d.mts.map +1 -1
- package/resources/v1/addons/entitlements.d.ts +62 -5
- package/resources/v1/addons/entitlements.d.ts.map +1 -1
- package/resources/v1/addons/entitlements.js +49 -8
- package/resources/v1/addons/entitlements.js.map +1 -1
- package/resources/v1/addons/entitlements.mjs +49 -8
- package/resources/v1/addons/entitlements.mjs.map +1 -1
- package/resources/v1/addons/index.d.mts +2 -2
- package/resources/v1/addons/index.d.mts.map +1 -1
- package/resources/v1/addons/index.d.ts +2 -2
- package/resources/v1/addons/index.d.ts.map +1 -1
- package/resources/v1/addons/index.js.map +1 -1
- package/resources/v1/addons/index.mjs.map +1 -1
- package/resources/v1/coupons.d.mts +80 -20
- package/resources/v1/coupons.d.mts.map +1 -1
- package/resources/v1/coupons.d.ts +80 -20
- package/resources/v1/coupons.d.ts.map +1 -1
- package/resources/v1/coupons.js +60 -9
- package/resources/v1/coupons.js.map +1 -1
- package/resources/v1/coupons.mjs +60 -9
- package/resources/v1/coupons.mjs.map +1 -1
- package/resources/v1/credits/credits.d.mts +59 -26
- package/resources/v1/credits/credits.d.mts.map +1 -1
- package/resources/v1/credits/credits.d.ts +59 -26
- package/resources/v1/credits/credits.d.ts.map +1 -1
- package/resources/v1/credits/credits.js +36 -5
- package/resources/v1/credits/credits.js.map +1 -1
- package/resources/v1/credits/credits.mjs +36 -5
- package/resources/v1/credits/credits.mjs.map +1 -1
- package/resources/v1/credits/custom-currencies.d.mts +96 -23
- package/resources/v1/credits/custom-currencies.d.mts.map +1 -1
- package/resources/v1/credits/custom-currencies.d.ts +96 -23
- package/resources/v1/credits/custom-currencies.d.ts.map +1 -1
- package/resources/v1/credits/custom-currencies.js +76 -12
- package/resources/v1/credits/custom-currencies.js.map +1 -1
- package/resources/v1/credits/custom-currencies.mjs +76 -12
- package/resources/v1/credits/custom-currencies.mjs.map +1 -1
- package/resources/v1/credits/grants.d.mts +60 -23
- package/resources/v1/credits/grants.d.mts.map +1 -1
- package/resources/v1/credits/grants.d.ts +60 -23
- package/resources/v1/credits/grants.d.ts.map +1 -1
- package/resources/v1/credits/grants.js +35 -5
- package/resources/v1/credits/grants.js.map +1 -1
- package/resources/v1/credits/grants.mjs +35 -5
- package/resources/v1/credits/grants.mjs.map +1 -1
- package/resources/v1/credits/index.d.mts +2 -2
- package/resources/v1/credits/index.d.mts.map +1 -1
- package/resources/v1/credits/index.d.ts +2 -2
- package/resources/v1/credits/index.d.ts.map +1 -1
- package/resources/v1/credits/index.js.map +1 -1
- package/resources/v1/credits/index.mjs.map +1 -1
- package/resources/v1/customers/customers.d.mts +165 -48
- package/resources/v1/customers/customers.d.mts.map +1 -1
- package/resources/v1/customers/customers.d.ts +165 -48
- package/resources/v1/customers/customers.d.ts.map +1 -1
- package/resources/v1/customers/customers.js +124 -19
- package/resources/v1/customers/customers.js.map +1 -1
- package/resources/v1/customers/customers.mjs +124 -19
- package/resources/v1/customers/customers.mjs.map +1 -1
- package/resources/v1/customers/index.d.mts +2 -2
- package/resources/v1/customers/index.d.mts.map +1 -1
- package/resources/v1/customers/index.d.ts +2 -2
- package/resources/v1/customers/index.d.ts.map +1 -1
- package/resources/v1/customers/index.js.map +1 -1
- package/resources/v1/customers/index.mjs +1 -1
- package/resources/v1/customers/index.mjs.map +1 -1
- package/resources/v1/customers/integrations.d.mts +64 -9
- package/resources/v1/customers/integrations.d.mts.map +1 -1
- package/resources/v1/customers/integrations.d.ts +64 -9
- package/resources/v1/customers/integrations.d.ts.map +1 -1
- package/resources/v1/customers/integrations.js +57 -9
- package/resources/v1/customers/integrations.js.map +1 -1
- package/resources/v1/customers/integrations.mjs +57 -9
- package/resources/v1/customers/integrations.mjs.map +1 -1
- package/resources/v1/customers/payment-method.d.mts +31 -7
- package/resources/v1/customers/payment-method.d.mts.map +1 -1
- package/resources/v1/customers/payment-method.d.ts +31 -7
- package/resources/v1/customers/payment-method.d.ts.map +1 -1
- package/resources/v1/customers/payment-method.js +26 -4
- package/resources/v1/customers/payment-method.js.map +1 -1
- package/resources/v1/customers/payment-method.mjs +26 -4
- package/resources/v1/customers/payment-method.mjs.map +1 -1
- package/resources/v1/customers/promotional-entitlements.d.mts +40 -7
- package/resources/v1/customers/promotional-entitlements.d.mts.map +1 -1
- package/resources/v1/customers/promotional-entitlements.d.ts +40 -7
- package/resources/v1/customers/promotional-entitlements.d.ts.map +1 -1
- package/resources/v1/customers/promotional-entitlements.js +38 -6
- package/resources/v1/customers/promotional-entitlements.js.map +1 -1
- package/resources/v1/customers/promotional-entitlements.mjs +38 -6
- package/resources/v1/customers/promotional-entitlements.mjs.map +1 -1
- package/resources/v1/events/beta/customers/assignments.d.mts +27 -5
- package/resources/v1/events/beta/customers/assignments.d.mts.map +1 -1
- package/resources/v1/events/beta/customers/assignments.d.ts +27 -5
- package/resources/v1/events/beta/customers/assignments.d.ts.map +1 -1
- package/resources/v1/events/beta/customers/assignments.js +27 -4
- package/resources/v1/events/beta/customers/assignments.js.map +1 -1
- package/resources/v1/events/beta/customers/assignments.mjs +27 -4
- package/resources/v1/events/beta/customers/assignments.mjs.map +1 -1
- package/resources/v1/events/beta/customers/entities.d.mts +66 -10
- package/resources/v1/events/beta/customers/entities.d.mts.map +1 -1
- package/resources/v1/events/beta/customers/entities.d.ts +66 -10
- package/resources/v1/events/beta/customers/entities.d.ts.map +1 -1
- package/resources/v1/events/beta/customers/entities.js +64 -10
- package/resources/v1/events/beta/customers/entities.js.map +1 -1
- package/resources/v1/events/beta/customers/entities.mjs +64 -10
- package/resources/v1/events/beta/customers/entities.mjs.map +1 -1
- package/resources/v1/events/beta/customers/entitlements.d.mts +23 -10
- package/resources/v1/events/beta/customers/entitlements.d.mts.map +1 -1
- package/resources/v1/events/beta/customers/entitlements.d.ts +23 -10
- package/resources/v1/events/beta/customers/entitlements.d.ts.map +1 -1
- package/resources/v1/events/beta/customers/entitlements.js +14 -2
- package/resources/v1/events/beta/customers/entitlements.js.map +1 -1
- package/resources/v1/events/beta/customers/entitlements.mjs +14 -2
- package/resources/v1/events/beta/customers/entitlements.mjs.map +1 -1
- package/resources/v1/events/beta/entity-types.d.mts +25 -3
- package/resources/v1/events/beta/entity-types.d.mts.map +1 -1
- package/resources/v1/events/beta/entity-types.d.ts +25 -3
- package/resources/v1/events/beta/entity-types.d.ts.map +1 -1
- package/resources/v1/events/beta/entity-types.js +23 -3
- package/resources/v1/events/beta/entity-types.js.map +1 -1
- package/resources/v1/events/beta/entity-types.mjs +23 -3
- package/resources/v1/events/beta/entity-types.mjs.map +1 -1
- package/resources/v1/events/events.d.mts +13 -2
- package/resources/v1/events/events.d.mts.map +1 -1
- package/resources/v1/events/events.d.ts +13 -2
- package/resources/v1/events/events.d.ts.map +1 -1
- package/resources/v1/events/events.js +14 -2
- package/resources/v1/events/events.js.map +1 -1
- package/resources/v1/events/events.mjs +14 -2
- package/resources/v1/events/events.mjs.map +1 -1
- package/resources/v1/features.d.mts +108 -30
- package/resources/v1/features.d.mts.map +1 -1
- package/resources/v1/features.d.ts +108 -30
- package/resources/v1/features.d.ts.map +1 -1
- package/resources/v1/features.js +72 -11
- package/resources/v1/features.js.map +1 -1
- package/resources/v1/features.mjs +72 -11
- package/resources/v1/features.mjs.map +1 -1
- package/resources/v1/index.d.mts +7 -7
- package/resources/v1/index.d.mts.map +1 -1
- package/resources/v1/index.d.ts +7 -7
- package/resources/v1/index.d.ts.map +1 -1
- package/resources/v1/index.js.map +1 -1
- package/resources/v1/index.mjs.map +1 -1
- package/resources/v1/plans/entitlements.d.mts +62 -5
- package/resources/v1/plans/entitlements.d.mts.map +1 -1
- package/resources/v1/plans/entitlements.d.ts +62 -5
- package/resources/v1/plans/entitlements.d.ts.map +1 -1
- package/resources/v1/plans/entitlements.js +49 -8
- package/resources/v1/plans/entitlements.js.map +1 -1
- package/resources/v1/plans/entitlements.mjs +49 -8
- package/resources/v1/plans/entitlements.mjs.map +1 -1
- package/resources/v1/plans/index.d.mts +2 -2
- package/resources/v1/plans/index.d.mts.map +1 -1
- package/resources/v1/plans/index.d.ts +2 -2
- package/resources/v1/plans/index.d.ts.map +1 -1
- package/resources/v1/plans/index.js.map +1 -1
- package/resources/v1/plans/index.mjs.map +1 -1
- package/resources/v1/plans/plans.d.mts +156 -34
- package/resources/v1/plans/plans.d.mts.map +1 -1
- package/resources/v1/plans/plans.d.ts +156 -34
- package/resources/v1/plans/plans.d.ts.map +1 -1
- package/resources/v1/plans/plans.js +127 -20
- package/resources/v1/plans/plans.js.map +1 -1
- package/resources/v1/plans/plans.mjs +127 -20
- package/resources/v1/plans/plans.mjs.map +1 -1
- package/resources/v1/products.d.mts +97 -23
- package/resources/v1/products.d.mts.map +1 -1
- package/resources/v1/products.d.ts +97 -23
- package/resources/v1/products.d.ts.map +1 -1
- package/resources/v1/products.js +73 -11
- package/resources/v1/products.js.map +1 -1
- package/resources/v1/products.mjs +73 -11
- package/resources/v1/products.mjs.map +1 -1
- package/resources/v1/subscriptions/future-update.d.mts +29 -3
- package/resources/v1/subscriptions/future-update.d.mts.map +1 -1
- package/resources/v1/subscriptions/future-update.d.ts +29 -3
- package/resources/v1/subscriptions/future-update.d.ts.map +1 -1
- package/resources/v1/subscriptions/future-update.js +25 -4
- package/resources/v1/subscriptions/future-update.js.map +1 -1
- package/resources/v1/subscriptions/future-update.mjs +25 -4
- package/resources/v1/subscriptions/future-update.mjs.map +1 -1
- package/resources/v1/subscriptions/index.d.mts +4 -4
- package/resources/v1/subscriptions/index.d.mts.map +1 -1
- package/resources/v1/subscriptions/index.d.ts +4 -4
- package/resources/v1/subscriptions/index.d.ts.map +1 -1
- package/resources/v1/subscriptions/index.js.map +1 -1
- package/resources/v1/subscriptions/index.mjs +1 -1
- package/resources/v1/subscriptions/index.mjs.map +1 -1
- package/resources/v1/subscriptions/invoice.d.mts +15 -2
- package/resources/v1/subscriptions/invoice.d.mts.map +1 -1
- package/resources/v1/subscriptions/invoice.d.ts +15 -2
- package/resources/v1/subscriptions/invoice.d.ts.map +1 -1
- package/resources/v1/subscriptions/invoice.js +13 -2
- package/resources/v1/subscriptions/invoice.js.map +1 -1
- package/resources/v1/subscriptions/invoice.mjs +13 -2
- package/resources/v1/subscriptions/invoice.mjs.map +1 -1
- package/resources/v1/subscriptions/subscriptions.d.mts +242 -78
- package/resources/v1/subscriptions/subscriptions.d.mts.map +1 -1
- package/resources/v1/subscriptions/subscriptions.d.ts +242 -78
- package/resources/v1/subscriptions/subscriptions.d.ts.map +1 -1
- package/resources/v1/subscriptions/subscriptions.js +126 -19
- package/resources/v1/subscriptions/subscriptions.js.map +1 -1
- package/resources/v1/subscriptions/subscriptions.mjs +128 -21
- package/resources/v1/subscriptions/subscriptions.mjs.map +1 -1
- package/resources/v1/subscriptions/usage.d.mts +29 -4
- package/resources/v1/subscriptions/usage.d.mts.map +1 -1
- package/resources/v1/subscriptions/usage.d.ts +29 -4
- package/resources/v1/subscriptions/usage.d.ts.map +1 -1
- package/resources/v1/subscriptions/usage.js +26 -4
- package/resources/v1/subscriptions/usage.js.map +1 -1
- package/resources/v1/subscriptions/usage.mjs +26 -4
- package/resources/v1/subscriptions/usage.mjs.map +1 -1
- package/resources/v1/usage.d.mts +24 -2
- package/resources/v1/usage.d.mts.map +1 -1
- package/resources/v1/usage.d.ts +24 -2
- package/resources/v1/usage.d.ts.map +1 -1
- package/resources/v1/usage.js +26 -4
- package/resources/v1/usage.js.map +1 -1
- package/resources/v1/usage.mjs +26 -4
- package/resources/v1/usage.mjs.map +1 -1
- package/resources/v1/v1.d.mts +14 -14
- package/resources/v1/v1.d.mts.map +1 -1
- package/resources/v1/v1.d.ts +14 -14
- package/resources/v1/v1.d.ts.map +1 -1
- package/resources/v1/v1.js.map +1 -1
- package/resources/v1/v1.mjs.map +1 -1
- package/src/resources/v1/addons/addons.ts +286 -39
- package/src/resources/v1/addons/entitlements.ts +123 -10
- package/src/resources/v1/addons/index.ts +5 -0
- package/src/resources/v1/coupons.ts +154 -23
- package/src/resources/v1/credits/credits.ts +102 -24
- package/src/resources/v1/credits/custom-currencies.ts +188 -30
- package/src/resources/v1/credits/grants.ts +102 -24
- package/src/resources/v1/credits/index.ts +4 -0
- package/src/resources/v1/customers/customers.ts +318 -57
- package/src/resources/v1/customers/index.ts +8 -1
- package/src/resources/v1/customers/integrations.ts +129 -16
- package/src/resources/v1/customers/payment-method.ts +66 -9
- package/src/resources/v1/customers/promotional-entitlements.ts +82 -11
- package/src/resources/v1/events/beta/customers/assignments.ts +56 -7
- package/src/resources/v1/events/beta/customers/entities.ts +136 -16
- package/src/resources/v1/events/beta/customers/entitlements.ts +38 -11
- package/src/resources/v1/events/beta/entity-types.ts +51 -5
- package/src/resources/v1/events/events.ts +28 -3
- package/src/resources/v1/features.ts +204 -34
- package/src/resources/v1/index.ts +19 -0
- package/src/resources/v1/plans/entitlements.ts +123 -10
- package/src/resources/v1/plans/index.ts +5 -0
- package/src/resources/v1/plans/plans.ts +314 -43
- package/src/resources/v1/products.ts +189 -27
- package/src/resources/v1/subscriptions/future-update.ts +68 -5
- package/src/resources/v1/subscriptions/index.ts +9 -2
- package/src/resources/v1/subscriptions/invoice.ts +36 -3
- package/src/resources/v1/subscriptions/subscriptions.ts +410 -85
- package/src/resources/v1/subscriptions/usage.ts +61 -5
- package/src/resources/v1/usage.ts +53 -5
- package/src/resources/v1/v1.ts +38 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"features.d.mts","sourceRoot":"","sources":["../../src/resources/v1/features.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,KAAK,oBAAoB,EAAE,WAAW,EAAE,kCAA8B;
|
|
1
|
+
{"version":3,"file":"features.d.mts","sourceRoot":"","sources":["../../src/resources/v1/features.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,KAAK,oBAAoB,EAAE,WAAW,EAAE,kCAA8B;AAE/F,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE;;GAEG;AACH,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;OASG;IACH,cAAc,CACZ,EAAE,EAAE,MAAM,EACV,MAAM,GAAE,2BAA2B,GAAG,IAAI,GAAG,SAAc,EAC3D,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,OAAO,CAAC;IActB;;;;;;;;;;;OAWG;IACH,aAAa,CAAC,MAAM,EAAE,0BAA0B,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,OAAO,CAAC;IAehG;;;;;;;;;;OAUG;IACH,YAAY,CACV,MAAM,GAAE,yBAAyB,GAAG,IAAI,GAAG,SAAc,EACzD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,0CAA0C,EAAE,2BAA2B,CAAC;IAevF;;;;;;;;;OASG;IACH,eAAe,CACb,EAAE,EAAE,MAAM,EACV,MAAM,GAAE,4BAA4B,GAAG,IAAI,GAAG,SAAc,EAC5D,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,OAAO,CAAC;IActB;;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2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;CACH"}
|
|
@@ -16,7 +16,7 @@ export declare class Features extends APIResource {
|
|
|
16
16
|
* );
|
|
17
17
|
* ```
|
|
18
18
|
*/
|
|
19
|
-
archiveFeature(id: string, options?: RequestOptions): APIPromise<Feature>;
|
|
19
|
+
archiveFeature(id: string, params?: FeatureArchiveFeatureParams | null | undefined, options?: RequestOptions): APIPromise<Feature>;
|
|
20
20
|
/**
|
|
21
21
|
* Creates a new feature with the specified type, metering, and configuration.
|
|
22
22
|
*
|
|
@@ -29,7 +29,7 @@ export declare class Features extends APIResource {
|
|
|
29
29
|
* });
|
|
30
30
|
* ```
|
|
31
31
|
*/
|
|
32
|
-
createFeature(
|
|
32
|
+
createFeature(params: FeatureCreateFeatureParams, options?: RequestOptions): APIPromise<Feature>;
|
|
33
33
|
/**
|
|
34
34
|
* Retrieves a paginated list of features in the environment.
|
|
35
35
|
*
|
|
@@ -41,7 +41,7 @@ export declare class Features extends APIResource {
|
|
|
41
41
|
* }
|
|
42
42
|
* ```
|
|
43
43
|
*/
|
|
44
|
-
listFeatures(
|
|
44
|
+
listFeatures(params?: FeatureListFeaturesParams | null | undefined, options?: RequestOptions): PagePromise<FeatureListFeaturesResponsesMyCursorIDPage, FeatureListFeaturesResponse>;
|
|
45
45
|
/**
|
|
46
46
|
* Retrieves a feature by its unique identifier.
|
|
47
47
|
*
|
|
@@ -52,7 +52,7 @@ export declare class Features extends APIResource {
|
|
|
52
52
|
* );
|
|
53
53
|
* ```
|
|
54
54
|
*/
|
|
55
|
-
retrieveFeature(id: string, options?: RequestOptions): APIPromise<Feature>;
|
|
55
|
+
retrieveFeature(id: string, params?: FeatureRetrieveFeatureParams | null | undefined, options?: RequestOptions): APIPromise<Feature>;
|
|
56
56
|
/**
|
|
57
57
|
* Restores an archived feature, allowing it to be used in entitlements again.
|
|
58
58
|
*
|
|
@@ -63,7 +63,7 @@ export declare class Features extends APIResource {
|
|
|
63
63
|
* );
|
|
64
64
|
* ```
|
|
65
65
|
*/
|
|
66
|
-
unarchiveFeature(id: string, options?: RequestOptions): APIPromise<Feature>;
|
|
66
|
+
unarchiveFeature(id: string, params?: FeatureUnarchiveFeatureParams | null | undefined, options?: RequestOptions): APIPromise<Feature>;
|
|
67
67
|
/**
|
|
68
68
|
* Updates an existing feature's properties such as display name, description, and
|
|
69
69
|
* configuration.
|
|
@@ -73,7 +73,7 @@ export declare class Features extends APIResource {
|
|
|
73
73
|
* const feature = await client.v1.features.updateFeature('x');
|
|
74
74
|
* ```
|
|
75
75
|
*/
|
|
76
|
-
updateFeature(id: string,
|
|
76
|
+
updateFeature(id: string, params: FeatureUpdateFeatureParams, options?: RequestOptions): APIPromise<Feature>;
|
|
77
77
|
}
|
|
78
78
|
export type FeatureListFeaturesResponsesMyCursorIDPage = MyCursorIDPage<FeatureListFeaturesResponse>;
|
|
79
79
|
/**
|
|
@@ -271,53 +271,77 @@ export declare namespace FeatureListFeaturesResponse {
|
|
|
271
271
|
round: 'UP' | 'DOWN';
|
|
272
272
|
}
|
|
273
273
|
}
|
|
274
|
+
export interface FeatureArchiveFeatureParams {
|
|
275
|
+
/**
|
|
276
|
+
* Account ID — optional when authenticating with a user JWT (Bearer token); falls
|
|
277
|
+
* back to the user's first membership. Ignored for API-key auth.
|
|
278
|
+
*/
|
|
279
|
+
'X-ACCOUNT-ID'?: string;
|
|
280
|
+
/**
|
|
281
|
+
* Environment ID — required when authenticating with a user JWT (Bearer token) on
|
|
282
|
+
* environment-scoped endpoints. Ignored for API-key auth (env is intrinsic to the
|
|
283
|
+
* key).
|
|
284
|
+
*/
|
|
285
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
286
|
+
}
|
|
274
287
|
export interface FeatureCreateFeatureParams {
|
|
275
288
|
/**
|
|
276
|
-
* The unique identifier for the feature
|
|
289
|
+
* Body param: The unique identifier for the feature
|
|
277
290
|
*/
|
|
278
291
|
id: string;
|
|
279
292
|
/**
|
|
280
|
-
* The display name for the feature
|
|
293
|
+
* Body param: The display name for the feature
|
|
281
294
|
*/
|
|
282
295
|
displayName: string;
|
|
283
296
|
/**
|
|
284
|
-
* The type of the feature
|
|
297
|
+
* Body param: The type of the feature
|
|
285
298
|
*/
|
|
286
299
|
featureType: 'BOOLEAN' | 'NUMBER' | 'ENUM';
|
|
287
300
|
/**
|
|
288
|
-
* The description for the feature
|
|
301
|
+
* Body param: The description for the feature
|
|
289
302
|
*/
|
|
290
303
|
description?: string;
|
|
291
304
|
/**
|
|
292
|
-
* The configuration data for the feature
|
|
305
|
+
* Body param: The configuration data for the feature
|
|
293
306
|
*/
|
|
294
307
|
enumConfiguration?: Array<FeatureCreateFeatureParams.EnumConfiguration>;
|
|
295
308
|
/**
|
|
296
|
-
* The status of the feature
|
|
309
|
+
* Body param: The status of the feature
|
|
297
310
|
*/
|
|
298
311
|
featureStatus?: 'NEW' | 'SUSPENDED' | 'ACTIVE';
|
|
299
312
|
/**
|
|
300
|
-
* The units for the feature
|
|
313
|
+
* Body param: The units for the feature
|
|
301
314
|
*/
|
|
302
315
|
featureUnits?: string;
|
|
303
316
|
/**
|
|
304
|
-
* The plural units for the feature
|
|
317
|
+
* Body param: The plural units for the feature
|
|
305
318
|
*/
|
|
306
319
|
featureUnitsPlural?: string;
|
|
307
320
|
/**
|
|
308
|
-
* The additional metadata for the feature
|
|
321
|
+
* Body param: The additional metadata for the feature
|
|
309
322
|
*/
|
|
310
323
|
metadata?: {
|
|
311
324
|
[key: string]: string;
|
|
312
325
|
};
|
|
313
326
|
/**
|
|
314
|
-
* The meter type for the feature
|
|
327
|
+
* Body param: The meter type for the feature
|
|
315
328
|
*/
|
|
316
329
|
meterType?: 'None' | 'FLUCTUATING' | 'INCREMENTAL';
|
|
317
330
|
/**
|
|
318
|
-
* Unit transformation to be applied to the reported usage
|
|
331
|
+
* Body param: Unit transformation to be applied to the reported usage
|
|
319
332
|
*/
|
|
320
333
|
unitTransformation?: FeatureCreateFeatureParams.UnitTransformation | null;
|
|
334
|
+
/**
|
|
335
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
336
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
337
|
+
*/
|
|
338
|
+
'X-ACCOUNT-ID'?: string;
|
|
339
|
+
/**
|
|
340
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
341
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
342
|
+
* intrinsic to the key).
|
|
343
|
+
*/
|
|
344
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
321
345
|
}
|
|
322
346
|
export declare namespace FeatureCreateFeatureParams {
|
|
323
347
|
interface EnumConfiguration {
|
|
@@ -354,25 +378,39 @@ export declare namespace FeatureCreateFeatureParams {
|
|
|
354
378
|
}
|
|
355
379
|
export interface FeatureListFeaturesParams extends MyCursorIDPageParams {
|
|
356
380
|
/**
|
|
357
|
-
* Filter by entity ID
|
|
381
|
+
* Query param: Filter by entity ID
|
|
358
382
|
*/
|
|
359
383
|
id?: string;
|
|
360
384
|
/**
|
|
361
|
-
* Filter by creation date using range operators: gt, gte, lt, lte
|
|
385
|
+
* Query param: Filter by creation date using range operators: gt, gte, lt, lte
|
|
362
386
|
*/
|
|
363
387
|
createdAt?: FeatureListFeaturesParams.CreatedAt;
|
|
364
388
|
/**
|
|
365
|
-
* Filter by feature type. Supports comma-separated values for
|
|
389
|
+
* Query param: Filter by feature type. Supports comma-separated values for
|
|
390
|
+
* multiple types
|
|
366
391
|
*/
|
|
367
392
|
featureType?: Array<'BOOLEAN' | 'NUMBER' | 'ENUM'>;
|
|
368
393
|
/**
|
|
369
|
-
* Filter by meter type. Supports comma-separated values for multiple
|
|
394
|
+
* Query param: Filter by meter type. Supports comma-separated values for multiple
|
|
395
|
+
* types
|
|
370
396
|
*/
|
|
371
397
|
meterType?: Array<'None' | 'FLUCTUATING' | 'INCREMENTAL'>;
|
|
372
398
|
/**
|
|
373
|
-
* Filter by feature status. Supports comma-separated values for
|
|
399
|
+
* Query param: Filter by feature status. Supports comma-separated values for
|
|
400
|
+
* multiple statuses
|
|
374
401
|
*/
|
|
375
402
|
status?: Array<'NEW' | 'SUSPENDED' | 'ACTIVE'>;
|
|
403
|
+
/**
|
|
404
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
405
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
406
|
+
*/
|
|
407
|
+
'X-ACCOUNT-ID'?: string;
|
|
408
|
+
/**
|
|
409
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
410
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
411
|
+
* intrinsic to the key).
|
|
412
|
+
*/
|
|
413
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
376
414
|
}
|
|
377
415
|
export declare namespace FeatureListFeaturesParams {
|
|
378
416
|
/**
|
|
@@ -397,38 +435,78 @@ export declare namespace FeatureListFeaturesParams {
|
|
|
397
435
|
lte?: string;
|
|
398
436
|
}
|
|
399
437
|
}
|
|
438
|
+
export interface FeatureRetrieveFeatureParams {
|
|
439
|
+
/**
|
|
440
|
+
* Account ID — optional when authenticating with a user JWT (Bearer token); falls
|
|
441
|
+
* back to the user's first membership. Ignored for API-key auth.
|
|
442
|
+
*/
|
|
443
|
+
'X-ACCOUNT-ID'?: string;
|
|
444
|
+
/**
|
|
445
|
+
* Environment ID — required when authenticating with a user JWT (Bearer token) on
|
|
446
|
+
* environment-scoped endpoints. Ignored for API-key auth (env is intrinsic to the
|
|
447
|
+
* key).
|
|
448
|
+
*/
|
|
449
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
450
|
+
}
|
|
451
|
+
export interface FeatureUnarchiveFeatureParams {
|
|
452
|
+
/**
|
|
453
|
+
* Account ID — optional when authenticating with a user JWT (Bearer token); falls
|
|
454
|
+
* back to the user's first membership. Ignored for API-key auth.
|
|
455
|
+
*/
|
|
456
|
+
'X-ACCOUNT-ID'?: string;
|
|
457
|
+
/**
|
|
458
|
+
* Environment ID — required when authenticating with a user JWT (Bearer token) on
|
|
459
|
+
* environment-scoped endpoints. Ignored for API-key auth (env is intrinsic to the
|
|
460
|
+
* key).
|
|
461
|
+
*/
|
|
462
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
463
|
+
}
|
|
400
464
|
export interface FeatureUpdateFeatureParams {
|
|
401
465
|
/**
|
|
402
|
-
* The description for the feature
|
|
466
|
+
* Body param: The description for the feature
|
|
403
467
|
*/
|
|
404
468
|
description?: string;
|
|
405
469
|
/**
|
|
406
|
-
* The display name for the feature
|
|
470
|
+
* Body param: The display name for the feature
|
|
407
471
|
*/
|
|
408
472
|
displayName?: string;
|
|
409
473
|
/**
|
|
410
|
-
* The configuration data for the feature
|
|
474
|
+
* Body param: The configuration data for the feature
|
|
411
475
|
*/
|
|
412
476
|
enumConfiguration?: Array<FeatureUpdateFeatureParams.EnumConfiguration>;
|
|
413
477
|
/**
|
|
414
|
-
* The units for the feature
|
|
478
|
+
* Body param: The units for the feature
|
|
415
479
|
*/
|
|
416
480
|
featureUnits?: string;
|
|
417
481
|
/**
|
|
418
|
-
* The plural units for the feature
|
|
482
|
+
* Body param: The plural units for the feature
|
|
419
483
|
*/
|
|
420
484
|
featureUnitsPlural?: string;
|
|
421
485
|
/**
|
|
422
|
-
* The additional metadata for the feature
|
|
486
|
+
* Body param: The additional metadata for the feature
|
|
423
487
|
*/
|
|
424
488
|
metadata?: {
|
|
425
489
|
[key: string]: string;
|
|
426
490
|
};
|
|
491
|
+
/**
|
|
492
|
+
* Body param
|
|
493
|
+
*/
|
|
427
494
|
meter?: FeatureUpdateFeatureParams.Meter;
|
|
428
495
|
/**
|
|
429
|
-
* Unit transformation to be applied to the reported usage
|
|
496
|
+
* Body param: Unit transformation to be applied to the reported usage
|
|
430
497
|
*/
|
|
431
498
|
unitTransformation?: FeatureUpdateFeatureParams.UnitTransformation | null;
|
|
499
|
+
/**
|
|
500
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
501
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
502
|
+
*/
|
|
503
|
+
'X-ACCOUNT-ID'?: string;
|
|
504
|
+
/**
|
|
505
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
506
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
507
|
+
* intrinsic to the key).
|
|
508
|
+
*/
|
|
509
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
432
510
|
}
|
|
433
511
|
export declare namespace FeatureUpdateFeatureParams {
|
|
434
512
|
interface EnumConfiguration {
|
|
@@ -494,6 +572,6 @@ export declare namespace FeatureUpdateFeatureParams {
|
|
|
494
572
|
}
|
|
495
573
|
}
|
|
496
574
|
export declare namespace Features {
|
|
497
|
-
export { type Feature as Feature, type FeatureListFeaturesResponse as FeatureListFeaturesResponse, type FeatureListFeaturesResponsesMyCursorIDPage as FeatureListFeaturesResponsesMyCursorIDPage, type FeatureCreateFeatureParams as FeatureCreateFeatureParams, type FeatureListFeaturesParams as FeatureListFeaturesParams, type FeatureUpdateFeatureParams as FeatureUpdateFeatureParams, };
|
|
575
|
+
export { type Feature as Feature, type FeatureListFeaturesResponse as FeatureListFeaturesResponse, type FeatureListFeaturesResponsesMyCursorIDPage as FeatureListFeaturesResponsesMyCursorIDPage, type FeatureArchiveFeatureParams as FeatureArchiveFeatureParams, type FeatureCreateFeatureParams as FeatureCreateFeatureParams, type FeatureListFeaturesParams as FeatureListFeaturesParams, type FeatureRetrieveFeatureParams as FeatureRetrieveFeatureParams, type FeatureUnarchiveFeatureParams as FeatureUnarchiveFeatureParams, type FeatureUpdateFeatureParams as FeatureUpdateFeatureParams, };
|
|
498
576
|
}
|
|
499
577
|
//# sourceMappingURL=features.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"features.d.ts","sourceRoot":"","sources":["../../src/resources/v1/features.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,KAAK,oBAAoB,EAAE,WAAW,EAAE,iCAA8B;
|
|
1
|
+
{"version":3,"file":"features.d.ts","sourceRoot":"","sources":["../../src/resources/v1/features.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,KAAK,oBAAoB,EAAE,WAAW,EAAE,iCAA8B;AAE/F,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE;;GAEG;AACH,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;OASG;IACH,cAAc,CACZ,EAAE,EAAE,MAAM,EACV,MAAM,GAAE,2BAA2B,GAAG,IAAI,GAAG,SAAc,EAC3D,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,OAAO,CAAC;IActB;;;;;;;;;;;OAWG;IACH,aAAa,CAAC,MAAM,EAAE,0BAA0B,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,OAAO,CAAC;IAehG;;;;;;;;;;OAUG;IACH,YAAY,CACV,MAAM,GAAE,yBAAyB,GAAG,IAAI,GAAG,SAAc,EACzD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,0CAA0C,EAAE,2BAA2B,CAAC;IAevF;;;;;;;;;OASG;IACH,eAAe,CACb,EAAE,EAAE,MAAM,EACV,MAAM,GAAE,4BAA4B,GAAG,IAAI,GAAG,SAAc,EAC5D,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,OAAO,CAAC;IActB;;;;;;;;;OASG;IACH,gBAAgB,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/D,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;CACH"}
|
package/resources/v1/features.js
CHANGED
|
@@ -4,6 +4,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
4
4
|
exports.Features = void 0;
|
|
5
5
|
const resource_1 = require("../../core/resource.js");
|
|
6
6
|
const pagination_1 = require("../../core/pagination.js");
|
|
7
|
+
const headers_1 = require("../../internal/headers.js");
|
|
7
8
|
const path_1 = require("../../internal/utils/path.js");
|
|
8
9
|
/**
|
|
9
10
|
* Operations related to features
|
|
@@ -19,8 +20,18 @@ class Features extends resource_1.APIResource {
|
|
|
19
20
|
* );
|
|
20
21
|
* ```
|
|
21
22
|
*/
|
|
22
|
-
archiveFeature(id, options) {
|
|
23
|
-
|
|
23
|
+
archiveFeature(id, params = {}, options) {
|
|
24
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID } = params ?? {};
|
|
25
|
+
return this._client.post((0, path_1.path) `/api/v1/features/${id}/archive`, {
|
|
26
|
+
...options,
|
|
27
|
+
headers: (0, headers_1.buildHeaders)([
|
|
28
|
+
{
|
|
29
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
30
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
31
|
+
},
|
|
32
|
+
options?.headers,
|
|
33
|
+
]),
|
|
34
|
+
});
|
|
24
35
|
}
|
|
25
36
|
/**
|
|
26
37
|
* Creates a new feature with the specified type, metering, and configuration.
|
|
@@ -34,8 +45,19 @@ class Features extends resource_1.APIResource {
|
|
|
34
45
|
* });
|
|
35
46
|
* ```
|
|
36
47
|
*/
|
|
37
|
-
createFeature(
|
|
38
|
-
|
|
48
|
+
createFeature(params, options) {
|
|
49
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
|
|
50
|
+
return this._client.post('/api/v1/features', {
|
|
51
|
+
body,
|
|
52
|
+
...options,
|
|
53
|
+
headers: (0, headers_1.buildHeaders)([
|
|
54
|
+
{
|
|
55
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
56
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
57
|
+
},
|
|
58
|
+
options?.headers,
|
|
59
|
+
]),
|
|
60
|
+
});
|
|
39
61
|
}
|
|
40
62
|
/**
|
|
41
63
|
* Retrieves a paginated list of features in the environment.
|
|
@@ -48,10 +70,18 @@ class Features extends resource_1.APIResource {
|
|
|
48
70
|
* }
|
|
49
71
|
* ```
|
|
50
72
|
*/
|
|
51
|
-
listFeatures(
|
|
73
|
+
listFeatures(params = {}, options) {
|
|
74
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...query } = params ?? {};
|
|
52
75
|
return this._client.getAPIList('/api/v1/features', (pagination_1.MyCursorIDPage), {
|
|
53
76
|
query,
|
|
54
77
|
...options,
|
|
78
|
+
headers: (0, headers_1.buildHeaders)([
|
|
79
|
+
{
|
|
80
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
81
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
82
|
+
},
|
|
83
|
+
options?.headers,
|
|
84
|
+
]),
|
|
55
85
|
});
|
|
56
86
|
}
|
|
57
87
|
/**
|
|
@@ -64,8 +94,18 @@ class Features extends resource_1.APIResource {
|
|
|
64
94
|
* );
|
|
65
95
|
* ```
|
|
66
96
|
*/
|
|
67
|
-
retrieveFeature(id, options) {
|
|
68
|
-
|
|
97
|
+
retrieveFeature(id, params = {}, options) {
|
|
98
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID } = params ?? {};
|
|
99
|
+
return this._client.get((0, path_1.path) `/api/v1/features/${id}`, {
|
|
100
|
+
...options,
|
|
101
|
+
headers: (0, headers_1.buildHeaders)([
|
|
102
|
+
{
|
|
103
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
104
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
105
|
+
},
|
|
106
|
+
options?.headers,
|
|
107
|
+
]),
|
|
108
|
+
});
|
|
69
109
|
}
|
|
70
110
|
/**
|
|
71
111
|
* Restores an archived feature, allowing it to be used in entitlements again.
|
|
@@ -77,8 +117,18 @@ class Features extends resource_1.APIResource {
|
|
|
77
117
|
* );
|
|
78
118
|
* ```
|
|
79
119
|
*/
|
|
80
|
-
unarchiveFeature(id, options) {
|
|
81
|
-
|
|
120
|
+
unarchiveFeature(id, params = {}, options) {
|
|
121
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID } = params ?? {};
|
|
122
|
+
return this._client.post((0, path_1.path) `/api/v1/features/${id}/unarchive`, {
|
|
123
|
+
...options,
|
|
124
|
+
headers: (0, headers_1.buildHeaders)([
|
|
125
|
+
{
|
|
126
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
127
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
128
|
+
},
|
|
129
|
+
options?.headers,
|
|
130
|
+
]),
|
|
131
|
+
});
|
|
82
132
|
}
|
|
83
133
|
/**
|
|
84
134
|
* Updates an existing feature's properties such as display name, description, and
|
|
@@ -89,8 +139,19 @@ class Features extends resource_1.APIResource {
|
|
|
89
139
|
* const feature = await client.v1.features.updateFeature('x');
|
|
90
140
|
* ```
|
|
91
141
|
*/
|
|
92
|
-
updateFeature(id,
|
|
93
|
-
|
|
142
|
+
updateFeature(id, params, options) {
|
|
143
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
|
|
144
|
+
return this._client.patch((0, path_1.path) `/api/v1/features/${id}`, {
|
|
145
|
+
body,
|
|
146
|
+
...options,
|
|
147
|
+
headers: (0, headers_1.buildHeaders)([
|
|
148
|
+
{
|
|
149
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
150
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
151
|
+
},
|
|
152
|
+
options?.headers,
|
|
153
|
+
]),
|
|
154
|
+
});
|
|
94
155
|
}
|
|
95
156
|
}
|
|
96
157
|
exports.Features = Features;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"features.js","sourceRoot":"","sources":["../../src/resources/v1/features.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAElD,yDAA+F;
|
|
1
|
+
{"version":3,"file":"features.js","sourceRoot":"","sources":["../../src/resources/v1/features.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAElD,yDAA+F;AAC/F,uDAAsD;AAEtD,uDAAiD;AAEjD;;GAEG;AACH,MAAa,QAAS,SAAQ,sBAAW;IACvC;;;;;;;;;OASG;IACH,cAAc,CACZ,EAAU,EACV,SAAyD,EAAE,EAC3D,OAAwB;QAExB,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,kBAAkB,EAAE,cAAc,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QACxF,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,oBAAoB,EAAE,UAAU,EAAE;YAC7D,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC;gBACpB;oBACE,GAAG,CAAC,UAAU,IAAI,IAAI,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,EAAC;gBACpB;oBACE,GAAG,CAAC,UAAU,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,cAAc,EAAE,UAAU,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;oBACpE,GAAG,CAAC,cAAc,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,kBAAkB,EAAE,cAAc,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;iBACjF;gBACD,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;OAQG;IACH,aAAa,CACX,EAAU,EACV,MAAkC,EAClC,OAAwB;QAExB,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,kBAAkB,EAAE,cAAc,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QAC3F,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,oBAAoB,EAAE,EAAE,EAAE;YACtD,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC;gBACpB;oBACE,GAAG,CAAC,UAAU,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,cAAc,EAAE,UAAU,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;oBACpE,GAAG,CAAC,cAAc,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,kBAAkB,EAAE,cAAc,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;iBACjF;gBACD,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;CACF;AAxKD,4BAwKC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
import { APIResource } from "../../core/resource.mjs";
|
|
3
3
|
import { MyCursorIDPage } from "../../core/pagination.mjs";
|
|
4
|
+
import { buildHeaders } from "../../internal/headers.mjs";
|
|
4
5
|
import { path } from "../../internal/utils/path.mjs";
|
|
5
6
|
/**
|
|
6
7
|
* Operations related to features
|
|
@@ -16,8 +17,18 @@ export class Features extends APIResource {
|
|
|
16
17
|
* );
|
|
17
18
|
* ```
|
|
18
19
|
*/
|
|
19
|
-
archiveFeature(id, options) {
|
|
20
|
-
|
|
20
|
+
archiveFeature(id, params = {}, options) {
|
|
21
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID } = params ?? {};
|
|
22
|
+
return this._client.post(path `/api/v1/features/${id}/archive`, {
|
|
23
|
+
...options,
|
|
24
|
+
headers: buildHeaders([
|
|
25
|
+
{
|
|
26
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
27
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
28
|
+
},
|
|
29
|
+
options?.headers,
|
|
30
|
+
]),
|
|
31
|
+
});
|
|
21
32
|
}
|
|
22
33
|
/**
|
|
23
34
|
* Creates a new feature with the specified type, metering, and configuration.
|
|
@@ -31,8 +42,19 @@ export class Features extends APIResource {
|
|
|
31
42
|
* });
|
|
32
43
|
* ```
|
|
33
44
|
*/
|
|
34
|
-
createFeature(
|
|
35
|
-
|
|
45
|
+
createFeature(params, options) {
|
|
46
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
|
|
47
|
+
return this._client.post('/api/v1/features', {
|
|
48
|
+
body,
|
|
49
|
+
...options,
|
|
50
|
+
headers: buildHeaders([
|
|
51
|
+
{
|
|
52
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
53
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
54
|
+
},
|
|
55
|
+
options?.headers,
|
|
56
|
+
]),
|
|
57
|
+
});
|
|
36
58
|
}
|
|
37
59
|
/**
|
|
38
60
|
* Retrieves a paginated list of features in the environment.
|
|
@@ -45,10 +67,18 @@ export class Features extends APIResource {
|
|
|
45
67
|
* }
|
|
46
68
|
* ```
|
|
47
69
|
*/
|
|
48
|
-
listFeatures(
|
|
70
|
+
listFeatures(params = {}, options) {
|
|
71
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...query } = params ?? {};
|
|
49
72
|
return this._client.getAPIList('/api/v1/features', (MyCursorIDPage), {
|
|
50
73
|
query,
|
|
51
74
|
...options,
|
|
75
|
+
headers: buildHeaders([
|
|
76
|
+
{
|
|
77
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
78
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
79
|
+
},
|
|
80
|
+
options?.headers,
|
|
81
|
+
]),
|
|
52
82
|
});
|
|
53
83
|
}
|
|
54
84
|
/**
|
|
@@ -61,8 +91,18 @@ export class Features extends APIResource {
|
|
|
61
91
|
* );
|
|
62
92
|
* ```
|
|
63
93
|
*/
|
|
64
|
-
retrieveFeature(id, options) {
|
|
65
|
-
|
|
94
|
+
retrieveFeature(id, params = {}, options) {
|
|
95
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID } = params ?? {};
|
|
96
|
+
return this._client.get(path `/api/v1/features/${id}`, {
|
|
97
|
+
...options,
|
|
98
|
+
headers: buildHeaders([
|
|
99
|
+
{
|
|
100
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
101
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
102
|
+
},
|
|
103
|
+
options?.headers,
|
|
104
|
+
]),
|
|
105
|
+
});
|
|
66
106
|
}
|
|
67
107
|
/**
|
|
68
108
|
* Restores an archived feature, allowing it to be used in entitlements again.
|
|
@@ -74,8 +114,18 @@ export class Features extends APIResource {
|
|
|
74
114
|
* );
|
|
75
115
|
* ```
|
|
76
116
|
*/
|
|
77
|
-
unarchiveFeature(id, options) {
|
|
78
|
-
|
|
117
|
+
unarchiveFeature(id, params = {}, options) {
|
|
118
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID } = params ?? {};
|
|
119
|
+
return this._client.post(path `/api/v1/features/${id}/unarchive`, {
|
|
120
|
+
...options,
|
|
121
|
+
headers: buildHeaders([
|
|
122
|
+
{
|
|
123
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
124
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
125
|
+
},
|
|
126
|
+
options?.headers,
|
|
127
|
+
]),
|
|
128
|
+
});
|
|
79
129
|
}
|
|
80
130
|
/**
|
|
81
131
|
* Updates an existing feature's properties such as display name, description, and
|
|
@@ -86,8 +136,19 @@ export class Features extends APIResource {
|
|
|
86
136
|
* const feature = await client.v1.features.updateFeature('x');
|
|
87
137
|
* ```
|
|
88
138
|
*/
|
|
89
|
-
updateFeature(id,
|
|
90
|
-
|
|
139
|
+
updateFeature(id, params, options) {
|
|
140
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
|
|
141
|
+
return this._client.patch(path `/api/v1/features/${id}`, {
|
|
142
|
+
body,
|
|
143
|
+
...options,
|
|
144
|
+
headers: buildHeaders([
|
|
145
|
+
{
|
|
146
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
147
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
148
|
+
},
|
|
149
|
+
options?.headers,
|
|
150
|
+
]),
|
|
151
|
+
});
|
|
91
152
|
}
|
|
92
153
|
}
|
|
93
154
|
//# sourceMappingURL=features.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"features.mjs","sourceRoot":"","sources":["../../src/resources/v1/features.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAElD,OAAO,EAAE,cAAc,EAA0C,kCAA8B;
|
|
1
|
+
{"version":3,"file":"features.mjs","sourceRoot":"","sources":["../../src/resources/v1/features.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAElD,OAAO,EAAE,cAAc,EAA0C,kCAA8B;AAC/F,OAAO,EAAE,YAAY,EAAE,mCAA+B;AAEtD,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD;;GAEG;AACH,MAAM,OAAO,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;OASG;IACH,cAAc,CACZ,EAAU,EACV,SAAyD,EAAE,EAC3D,OAAwB;QAExB,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,kBAAkB,EAAE,cAAc,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QACxF,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,oBAAoB,EAAE,UAAU,EAAE;YAC7D,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC;gBACpB;oBACE,GAAG,CAAC,UAAU,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,cAAc,EAAE,UAAU,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;oBACpE,GAAG,CAAC,cAAc,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,kBAAkB,EAAE,cAAc,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;iBACjF;gBACD,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;OAWG;IACH,aAAa,CAAC,MAAkC,EAAE,OAAwB;QACxE,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,kBAAkB,EAAE,cAAc,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QAC3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