@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":"entities.d.ts","sourceRoot":"","sources":["../../../../../src/resources/v1/events/beta/customers/entities.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,wCAAqC;AAC3D,OAAO,EAAE,UAAU,EAAE,2CAAwC;AAC7D,OAAO,EAAE,cAAc,EAAE,KAAK,oBAAoB,EAAE,WAAW,EAAE,0CAAuC;
|
|
1
|
+
{"version":3,"file":"entities.d.ts","sourceRoot":"","sources":["../../../../../src/resources/v1/events/beta/customers/entities.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,wCAAqC;AAC3D,OAAO,EAAE,UAAU,EAAE,2CAAwC;AAC7D,OAAO,EAAE,cAAc,EAAE,KAAK,oBAAoB,EAAE,WAAW,EAAE,0CAAuC;AAExG,OAAO,EAAE,cAAc,EAAE,mDAAgD;AAGzE,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;;OAWG;IACH,QAAQ,CACN,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,oBAAoB,EAC5B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,sBAAsB,CAAC;IAcrC;;;;;;;;;;;;OAYG;IACH,IAAI,CACF,EAAE,EAAE,MAAM,EACV,MAAM,GAAE,gBAAgB,GAAG,IAAI,GAAG,SAAc,EAChD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,iCAAiC,EAAE,kBAAkB,CAAC;IAmBrE;;;;;;;;;;;OAWG;IACH,OAAO,CACL,EAAE,EAAE,MAAM,EACV,MAAM,EAAE,mBAAmB,EAC3B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,qBAAqB,CAAC;IAepC;;;;;;;;;;;OAWG;IACH,SAAS,CACP,EAAE,EAAE,MAAM,EACV,MAAM,EAAE,qBAAqB,EAC7B,OAAO,CAAC,EAAE,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gBAAgB,IAAI,gBAAgB,EACzC,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"}
|
|
@@ -4,6 +4,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
4
4
|
exports.Entities = 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
|
class Entities extends resource_1.APIResource {
|
|
9
10
|
/**
|
|
@@ -19,8 +20,17 @@ class Entities extends resource_1.APIResource {
|
|
|
19
20
|
* ```
|
|
20
21
|
*/
|
|
21
22
|
retrieve(entityID, params, options) {
|
|
22
|
-
const { id } = params;
|
|
23
|
-
return this._client.get((0, path_1.path) `/api/v1-beta/customers/${id}/entities/${entityID}`,
|
|
23
|
+
const { id, 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID } = params;
|
|
24
|
+
return this._client.get((0, path_1.path) `/api/v1-beta/customers/${id}/entities/${entityID}`, {
|
|
25
|
+
...options,
|
|
26
|
+
headers: (0, headers_1.buildHeaders)([
|
|
27
|
+
{
|
|
28
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
29
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
30
|
+
},
|
|
31
|
+
options?.headers,
|
|
32
|
+
]),
|
|
33
|
+
});
|
|
24
34
|
}
|
|
25
35
|
/**
|
|
26
36
|
* Retrieves a paginated list of entities for the given customer.
|
|
@@ -35,8 +45,19 @@ class Entities extends resource_1.APIResource {
|
|
|
35
45
|
* }
|
|
36
46
|
* ```
|
|
37
47
|
*/
|
|
38
|
-
list(id,
|
|
39
|
-
|
|
48
|
+
list(id, params = {}, options) {
|
|
49
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...query } = params ?? {};
|
|
50
|
+
return this._client.getAPIList((0, path_1.path) `/api/v1-beta/customers/${id}/entities`, (pagination_1.MyCursorIDPage), {
|
|
51
|
+
query,
|
|
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
|
+
});
|
|
40
61
|
}
|
|
41
62
|
/**
|
|
42
63
|
* Archives entities in bulk for the given customer by id.
|
|
@@ -50,8 +71,19 @@ class Entities extends resource_1.APIResource {
|
|
|
50
71
|
* );
|
|
51
72
|
* ```
|
|
52
73
|
*/
|
|
53
|
-
archive(id,
|
|
54
|
-
|
|
74
|
+
archive(id, params, options) {
|
|
75
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
|
|
76
|
+
return this._client.post((0, path_1.path) `/api/v1-beta/customers/${id}/entities/archive`, {
|
|
77
|
+
body,
|
|
78
|
+
...options,
|
|
79
|
+
headers: (0, headers_1.buildHeaders)([
|
|
80
|
+
{
|
|
81
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
82
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
83
|
+
},
|
|
84
|
+
options?.headers,
|
|
85
|
+
]),
|
|
86
|
+
});
|
|
55
87
|
}
|
|
56
88
|
/**
|
|
57
89
|
* Restores previously archived entities in bulk for the given customer by id.
|
|
@@ -65,8 +97,19 @@ class Entities extends resource_1.APIResource {
|
|
|
65
97
|
* );
|
|
66
98
|
* ```
|
|
67
99
|
*/
|
|
68
|
-
unarchive(id,
|
|
69
|
-
|
|
100
|
+
unarchive(id, params, options) {
|
|
101
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
|
|
102
|
+
return this._client.post((0, path_1.path) `/api/v1-beta/customers/${id}/entities/unarchive`, {
|
|
103
|
+
body,
|
|
104
|
+
...options,
|
|
105
|
+
headers: (0, headers_1.buildHeaders)([
|
|
106
|
+
{
|
|
107
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
108
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
109
|
+
},
|
|
110
|
+
options?.headers,
|
|
111
|
+
]),
|
|
112
|
+
});
|
|
70
113
|
}
|
|
71
114
|
/**
|
|
72
115
|
* Creates or updates entities in bulk for the given customer. Existing entities
|
|
@@ -97,8 +140,19 @@ class Entities extends resource_1.APIResource {
|
|
|
97
140
|
* );
|
|
98
141
|
* ```
|
|
99
142
|
*/
|
|
100
|
-
upsert(id,
|
|
101
|
-
|
|
143
|
+
upsert(id, params, options) {
|
|
144
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
|
|
145
|
+
return this._client.put((0, path_1.path) `/api/v1-beta/customers/${id}/entities`, {
|
|
146
|
+
body,
|
|
147
|
+
...options,
|
|
148
|
+
headers: (0, headers_1.buildHeaders)([
|
|
149
|
+
{
|
|
150
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
151
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
152
|
+
},
|
|
153
|
+
options?.headers,
|
|
154
|
+
]),
|
|
155
|
+
});
|
|
102
156
|
}
|
|
103
157
|
}
|
|
104
158
|
exports.Entities = Entities;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entities.js","sourceRoot":"","sources":["../../../../../src/resources/v1/events/beta/customers/entities.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,8DAA2D;AAE3D,kEAAwG;
|
|
1
|
+
{"version":3,"file":"entities.js","sourceRoot":"","sources":["../../../../../src/resources/v1/events/beta/customers/entities.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,8DAA2D;AAE3D,kEAAwG;AACxG,gEAA+D;AAE/D,gEAA0D;AAE1D,MAAa,QAAS,SAAQ,sBAAW;IACvC;;;;;;;;;;;OAWG;IACH,QAAQ,CACN,QAAgB,EAChB,MAA4B,EAC5B,OAAwB;QAExB,MAAM,EAAE,EAAE,EAAE,cAAc,EAAE,UAAU,EAAE,kBAAkB,EAAE,cAAc,EAAE,GAAG,MAAM,CAAC;QACtF,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,0BAA0B,EAAE,aAAa,QAAQ,EAAE,EAAE;YAC/E,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;IAED;;;;;;;;;;;;OAYG;IACH,IAAI,CACF,EAAU,EACV,SAA8C,EAAE,EAChD,OAAwB;QAExB,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,kBAAkB,EAAE,cAAc,EAAE,GAAG,KAAK,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QAClG,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,C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@@
|
|
|
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
|
export class Entities extends APIResource {
|
|
6
7
|
/**
|
|
@@ -16,8 +17,17 @@ export class Entities extends APIResource {
|
|
|
16
17
|
* ```
|
|
17
18
|
*/
|
|
18
19
|
retrieve(entityID, params, options) {
|
|
19
|
-
const { id } = params;
|
|
20
|
-
return this._client.get(path `/api/v1-beta/customers/${id}/entities/${entityID}`,
|
|
20
|
+
const { id, 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID } = params;
|
|
21
|
+
return this._client.get(path `/api/v1-beta/customers/${id}/entities/${entityID}`, {
|
|
22
|
+
...options,
|
|
23
|
+
headers: buildHeaders([
|
|
24
|
+
{
|
|
25
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
26
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
27
|
+
},
|
|
28
|
+
options?.headers,
|
|
29
|
+
]),
|
|
30
|
+
});
|
|
21
31
|
}
|
|
22
32
|
/**
|
|
23
33
|
* Retrieves a paginated list of entities for the given customer.
|
|
@@ -32,8 +42,19 @@ export class Entities extends APIResource {
|
|
|
32
42
|
* }
|
|
33
43
|
* ```
|
|
34
44
|
*/
|
|
35
|
-
list(id,
|
|
36
|
-
|
|
45
|
+
list(id, params = {}, options) {
|
|
46
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...query } = params ?? {};
|
|
47
|
+
return this._client.getAPIList(path `/api/v1-beta/customers/${id}/entities`, (MyCursorIDPage), {
|
|
48
|
+
query,
|
|
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
|
+
});
|
|
37
58
|
}
|
|
38
59
|
/**
|
|
39
60
|
* Archives entities in bulk for the given customer by id.
|
|
@@ -47,8 +68,19 @@ export class Entities extends APIResource {
|
|
|
47
68
|
* );
|
|
48
69
|
* ```
|
|
49
70
|
*/
|
|
50
|
-
archive(id,
|
|
51
|
-
|
|
71
|
+
archive(id, params, options) {
|
|
72
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
|
|
73
|
+
return this._client.post(path `/api/v1-beta/customers/${id}/entities/archive`, {
|
|
74
|
+
body,
|
|
75
|
+
...options,
|
|
76
|
+
headers: buildHeaders([
|
|
77
|
+
{
|
|
78
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
79
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
80
|
+
},
|
|
81
|
+
options?.headers,
|
|
82
|
+
]),
|
|
83
|
+
});
|
|
52
84
|
}
|
|
53
85
|
/**
|
|
54
86
|
* Restores previously archived entities in bulk for the given customer by id.
|
|
@@ -62,8 +94,19 @@ export class Entities extends APIResource {
|
|
|
62
94
|
* );
|
|
63
95
|
* ```
|
|
64
96
|
*/
|
|
65
|
-
unarchive(id,
|
|
66
|
-
|
|
97
|
+
unarchive(id, params, options) {
|
|
98
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
|
|
99
|
+
return this._client.post(path `/api/v1-beta/customers/${id}/entities/unarchive`, {
|
|
100
|
+
body,
|
|
101
|
+
...options,
|
|
102
|
+
headers: buildHeaders([
|
|
103
|
+
{
|
|
104
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
105
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
106
|
+
},
|
|
107
|
+
options?.headers,
|
|
108
|
+
]),
|
|
109
|
+
});
|
|
67
110
|
}
|
|
68
111
|
/**
|
|
69
112
|
* Creates or updates entities in bulk for the given customer. Existing entities
|
|
@@ -94,8 +137,19 @@ export class Entities extends APIResource {
|
|
|
94
137
|
* );
|
|
95
138
|
* ```
|
|
96
139
|
*/
|
|
97
|
-
upsert(id,
|
|
98
|
-
|
|
140
|
+
upsert(id, params, options) {
|
|
141
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
|
|
142
|
+
return this._client.put(path `/api/v1-beta/customers/${id}/entities`, {
|
|
143
|
+
body,
|
|
144
|
+
...options,
|
|
145
|
+
headers: buildHeaders([
|
|
146
|
+
{
|
|
147
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
148
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
149
|
+
},
|
|
150
|
+
options?.headers,
|
|
151
|
+
]),
|
|
152
|
+
});
|
|
99
153
|
}
|
|
100
154
|
}
|
|
101
155
|
//# sourceMappingURL=entities.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entities.mjs","sourceRoot":"","sources":["../../../../../src/resources/v1/events/beta/customers/entities.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,yCAAqC;AAE3D,OAAO,EAAE,cAAc,EAA0C,2CAAuC;
|
|
1
|
+
{"version":3,"file":"entities.mjs","sourceRoot":"","sources":["../../../../../src/resources/v1/events/beta/customers/entities.ts"],"names":[],"mappings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O,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA4BG;IACH,MAAM,CAAC,EAAU,EAAE,MAA0B,EAAE,OAAwB;QACrE,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,kBAAkB,EAAE,cAAc,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QAC3F,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,0BAA0B,EAAE,WAAW,EAAE;YACnE,IAAI;YACJ,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;CACF"}
|
|
@@ -15,7 +15,7 @@ export declare class Entitlements extends APIResource {
|
|
|
15
15
|
* );
|
|
16
16
|
* ```
|
|
17
17
|
*/
|
|
18
|
-
check(id: string,
|
|
18
|
+
check(id: string, params?: EntitlementCheckParams | null | undefined, options?: RequestOptions): APIPromise<EntitlementCheckResponse>;
|
|
19
19
|
}
|
|
20
20
|
/**
|
|
21
21
|
* Response object
|
|
@@ -203,34 +203,47 @@ export declare namespace EntitlementCheckResponse {
|
|
|
203
203
|
}
|
|
204
204
|
export interface EntitlementCheckParams {
|
|
205
205
|
/**
|
|
206
|
-
* Currency ID (refId) to check for credit entitlements. Mutually
|
|
207
|
-
* `featureId`.
|
|
206
|
+
* Query param: Currency ID (refId) to check for credit entitlements. Mutually
|
|
207
|
+
* exclusive with `featureId`.
|
|
208
208
|
*/
|
|
209
209
|
currencyId?: string;
|
|
210
210
|
/**
|
|
211
|
-
* Optional attribution map (e.g. `dimensions[userId]=u1`). When
|
|
212
|
-
* response includes a `chains` array with per-entity governance
|
|
211
|
+
* Query param: Optional attribution map (e.g. `dimensions[userId]=u1`). When
|
|
212
|
+
* provided, the response includes a `chains` array with per-entity governance
|
|
213
|
+
* limits.
|
|
213
214
|
*/
|
|
214
215
|
dimensions?: {
|
|
215
216
|
[key: string]: string;
|
|
216
217
|
};
|
|
217
218
|
/**
|
|
218
|
-
* Feature ID (refId) to check. Mutually exclusive with `currencyId`.
|
|
219
|
+
* Query param: Feature ID (refId) to check. Mutually exclusive with `currencyId`.
|
|
219
220
|
*/
|
|
220
221
|
featureId?: string;
|
|
221
222
|
/**
|
|
222
|
-
* Requested usage amount to evaluate against the entitlement limit
|
|
223
|
-
* features only)
|
|
223
|
+
* Query param: Requested usage amount to evaluate against the entitlement limit
|
|
224
|
+
* (numeric features only)
|
|
224
225
|
*/
|
|
225
226
|
requestedUsage?: number;
|
|
226
227
|
/**
|
|
227
|
-
* Requested values to evaluate against allowed values (enum features
|
|
228
|
+
* Query param: Requested values to evaluate against allowed values (enum features
|
|
229
|
+
* only)
|
|
228
230
|
*/
|
|
229
231
|
requestedValues?: Array<string>;
|
|
230
232
|
/**
|
|
231
|
-
* Resource ID to scope the entitlement check to a specific resource
|
|
233
|
+
* Query param: Resource ID to scope the entitlement check to a specific resource
|
|
232
234
|
*/
|
|
233
235
|
resourceId?: string;
|
|
236
|
+
/**
|
|
237
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
238
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
239
|
+
*/
|
|
240
|
+
'X-ACCOUNT-ID'?: string;
|
|
241
|
+
/**
|
|
242
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
243
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
244
|
+
* intrinsic to the key).
|
|
245
|
+
*/
|
|
246
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
234
247
|
}
|
|
235
248
|
export declare namespace Entitlements {
|
|
236
249
|
export { type EntitlementCheckResponse as EntitlementCheckResponse, type EntitlementCheckParams as EntitlementCheckParams, };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entitlements.d.mts","sourceRoot":"","sources":["../../../../../src/resources/v1/events/beta/customers/entitlements.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,yCAAqC;AAC3D,OAAO,EAAE,UAAU,EAAE,4CAAwC;
|
|
1
|
+
{"version":3,"file":"entitlements.d.mts","sourceRoot":"","sources":["../../../../../src/resources/v1/events/beta/customers/entitlements.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,yCAAqC;AAC3D,OAAO,EAAE,UAAU,EAAE,4CAAwC;AAE7D,OAAO,EAAE,cAAc,EAAE,oDAAgD;AAGzE,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;;;;;OAYG;IACH,KAAK,CACH,EAAE,EAAE,MAAM,EACV,MAAM,GAAE,sBAAsB,GAAG,IAAI,GAAG,SAAc,EACtD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,wBAAwB,CAAC;CAcxC;AAED;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,IAAI,EAAE,wBAAwB,CAAC,OAAO,GAAG,wBAAwB,CAAC,MAAM,CAAC;CAC1E;AAED,yBAAiB,wBAAwB,CAAC;IACxC;;OAEG;IACH,UA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GAAG,IAAI,CAAC;YAE5C;;eAEG;YACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;YAE3B;;eAEG;YACH,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;SAC9B;QAED;;;WAGG;QACH,UAAiB,KAAK;YACpB;;eAEG;YACH,YAAY,EAAE,MAAM,CAAC;YAErB;;eAEG;YACH,QAAQ,EAAE,MAAM,CAAC;YAEjB;;eAEG;YACH,SAAS,EAAE,OAAO,CAAC;YAEnB;;eAEG;YACH,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;SAC3B;KACF;CACF;AAED,MAAM,WAAW,sBAAsB;IACrC;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;;;OAIG;IACH,UAAU,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;IAEvC;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;;OAGG;IACH,eAAe,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAEhC;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
|
|
@@ -15,7 +15,7 @@ export declare class Entitlements extends APIResource {
|
|
|
15
15
|
* );
|
|
16
16
|
* ```
|
|
17
17
|
*/
|
|
18
|
-
check(id: string,
|
|
18
|
+
check(id: string, params?: EntitlementCheckParams | null | undefined, options?: RequestOptions): APIPromise<EntitlementCheckResponse>;
|
|
19
19
|
}
|
|
20
20
|
/**
|
|
21
21
|
* Response object
|
|
@@ -203,34 +203,47 @@ export declare namespace EntitlementCheckResponse {
|
|
|
203
203
|
}
|
|
204
204
|
export interface EntitlementCheckParams {
|
|
205
205
|
/**
|
|
206
|
-
* Currency ID (refId) to check for credit entitlements. Mutually
|
|
207
|
-
* `featureId`.
|
|
206
|
+
* Query param: Currency ID (refId) to check for credit entitlements. Mutually
|
|
207
|
+
* exclusive with `featureId`.
|
|
208
208
|
*/
|
|
209
209
|
currencyId?: string;
|
|
210
210
|
/**
|
|
211
|
-
* Optional attribution map (e.g. `dimensions[userId]=u1`). When
|
|
212
|
-
* response includes a `chains` array with per-entity governance
|
|
211
|
+
* Query param: Optional attribution map (e.g. `dimensions[userId]=u1`). When
|
|
212
|
+
* provided, the response includes a `chains` array with per-entity governance
|
|
213
|
+
* limits.
|
|
213
214
|
*/
|
|
214
215
|
dimensions?: {
|
|
215
216
|
[key: string]: string;
|
|
216
217
|
};
|
|
217
218
|
/**
|
|
218
|
-
* Feature ID (refId) to check. Mutually exclusive with `currencyId`.
|
|
219
|
+
* Query param: Feature ID (refId) to check. Mutually exclusive with `currencyId`.
|
|
219
220
|
*/
|
|
220
221
|
featureId?: string;
|
|
221
222
|
/**
|
|
222
|
-
* Requested usage amount to evaluate against the entitlement limit
|
|
223
|
-
* features only)
|
|
223
|
+
* Query param: Requested usage amount to evaluate against the entitlement limit
|
|
224
|
+
* (numeric features only)
|
|
224
225
|
*/
|
|
225
226
|
requestedUsage?: number;
|
|
226
227
|
/**
|
|
227
|
-
* Requested values to evaluate against allowed values (enum features
|
|
228
|
+
* Query param: Requested values to evaluate against allowed values (enum features
|
|
229
|
+
* only)
|
|
228
230
|
*/
|
|
229
231
|
requestedValues?: Array<string>;
|
|
230
232
|
/**
|
|
231
|
-
* Resource ID to scope the entitlement check to a specific resource
|
|
233
|
+
* Query param: Resource ID to scope the entitlement check to a specific resource
|
|
232
234
|
*/
|
|
233
235
|
resourceId?: string;
|
|
236
|
+
/**
|
|
237
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
238
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
239
|
+
*/
|
|
240
|
+
'X-ACCOUNT-ID'?: string;
|
|
241
|
+
/**
|
|
242
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
243
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
244
|
+
* intrinsic to the key).
|
|
245
|
+
*/
|
|
246
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
234
247
|
}
|
|
235
248
|
export declare namespace Entitlements {
|
|
236
249
|
export { type EntitlementCheckResponse as EntitlementCheckResponse, type EntitlementCheckParams as EntitlementCheckParams, };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entitlements.d.ts","sourceRoot":"","sources":["../../../../../src/resources/v1/events/beta/customers/entitlements.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,wCAAqC;AAC3D,OAAO,EAAE,UAAU,EAAE,2CAAwC;
|
|
1
|
+
{"version":3,"file":"entitlements.d.ts","sourceRoot":"","sources":["../../../../../src/resources/v1/events/beta/customers/entitlements.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,wCAAqC;AAC3D,OAAO,EAAE,UAAU,EAAE,2CAAwC;AAE7D,OAAO,EAAE,cAAc,EAAE,mDAAgD;AAGzE,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;;;;;OAYG;IACH,KAAK,CACH,EAAE,EAAE,MAAM,EACV,MAAM,GAAE,sBAAsB,GAAG,IAAI,GAAG,SAAc,EACtD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,wBAAwB,CAAC;CAcxC;AAED;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,IAAI,EAAE,wBAAwB,CAAC,OAAO,GAAG,wBAAwB,CAAC,MAAM,CAAC;CAC1E;AAED,yBAAiB,wBAAw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AAM,GAAG,MAAM,CAAA;aAAE,GAAG,IAAI,CAAC;YAE5C;;eAEG;YACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;YAE3B;;eAEG;YACH,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;SAC9B;QAED;;;WAGG;QACH,UAAiB,KAAK;YACpB;;eAEG;YACH,YAAY,EAAE,MAAM,CAAC;YAErB;;eAEG;YACH,QAAQ,EAAE,MAAM,CAAC;YAEjB;;eAEG;YACH,SAAS,EAAE,OAAO,CAAC;YAEnB;;eAEG;YACH,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;SAC3B;KACF;CACF;AAED,MAAM,WAAW,sBAAsB;IACrC;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;;;OAIG;IACH,UAAU,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;IAEvC;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;;OAGG;IACH,eAAe,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAEhC;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.Entitlements = void 0;
|
|
5
5
|
const resource_1 = require("../../../../../core/resource.js");
|
|
6
|
+
const headers_1 = require("../../../../../internal/headers.js");
|
|
6
7
|
const path_1 = require("../../../../../internal/utils/path.js");
|
|
7
8
|
class Entitlements extends resource_1.APIResource {
|
|
8
9
|
/**
|
|
@@ -18,8 +19,19 @@ class Entitlements extends resource_1.APIResource {
|
|
|
18
19
|
* );
|
|
19
20
|
* ```
|
|
20
21
|
*/
|
|
21
|
-
check(id,
|
|
22
|
-
|
|
22
|
+
check(id, params = {}, options) {
|
|
23
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...query } = params ?? {};
|
|
24
|
+
return this._client.get((0, path_1.path) `/api/v1-beta/customers/${id}/entitlements/check`, {
|
|
25
|
+
query,
|
|
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
|
+
});
|
|
23
35
|
}
|
|
24
36
|
}
|
|
25
37
|
exports.Entitlements = Entitlements;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entitlements.js","sourceRoot":"","sources":["../../../../../src/resources/v1/events/beta/customers/entitlements.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,8DAA2D;
|
|
1
|
+
{"version":3,"file":"entitlements.js","sourceRoot":"","sources":["../../../../../src/resources/v1/events/beta/customers/entitlements.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,8DAA2D;AAE3D,gEAA+D;AAE/D,gEAA0D;AAE1D,MAAa,YAAa,SAAQ,sBAAW;IAC3C;;;;;;;;;;;;OAYG;IACH,KAAK,CACH,EAAU,EACV,SAAoD,EAAE,EACtD,OAAwB;QAExB,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,kBAAkB,EAAE,cAAc,EAAE,GAAG,KAAK,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QAClG,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,0BAA0B,EAAE,qBAAqB,EAAE;YAC7E,KAAK;YACL,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;AAhCD,oCAgCC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
import { APIResource } from "../../../../../core/resource.mjs";
|
|
3
|
+
import { buildHeaders } from "../../../../../internal/headers.mjs";
|
|
3
4
|
import { path } from "../../../../../internal/utils/path.mjs";
|
|
4
5
|
export class Entitlements extends APIResource {
|
|
5
6
|
/**
|
|
@@ -15,8 +16,19 @@ export class Entitlements extends APIResource {
|
|
|
15
16
|
* );
|
|
16
17
|
* ```
|
|
17
18
|
*/
|
|
18
|
-
check(id,
|
|
19
|
-
|
|
19
|
+
check(id, params = {}, options) {
|
|
20
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...query } = params ?? {};
|
|
21
|
+
return this._client.get(path `/api/v1-beta/customers/${id}/entitlements/check`, {
|
|
22
|
+
query,
|
|
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
|
+
});
|
|
20
32
|
}
|
|
21
33
|
}
|
|
22
34
|
//# sourceMappingURL=entitlements.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entitlements.mjs","sourceRoot":"","sources":["../../../../../src/resources/v1/events/beta/customers/entitlements.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,yCAAqC;
|
|
1
|
+
{"version":3,"file":"entitlements.mjs","sourceRoot":"","sources":["../../../../../src/resources/v1/events/beta/customers/entitlements.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,yCAAqC;AAE3D,OAAO,EAAE,YAAY,EAAE,4CAAwC;AAE/D,OAAO,EAAE,IAAI,EAAE,+CAA2C;AAE1D,MAAM,OAAO,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;;;;;OAYG;IACH,KAAK,CACH,EAAU,EACV,SAAoD,EAAE,EACtD,OAAwB;QAExB,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,kBAAkB,EAAE,cAAc,EAAE,GAAG,KAAK,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QAClG,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,0BAA0B,EAAE,qBAAqB,EAAE;YAC7E,KAAK;YACL,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;CACF"}
|
|
@@ -16,7 +16,7 @@ export declare class EntityTypes extends APIResource {
|
|
|
16
16
|
* }
|
|
17
17
|
* ```
|
|
18
18
|
*/
|
|
19
|
-
list(
|
|
19
|
+
list(params?: EntityTypeListParams | null | undefined, options?: RequestOptions): PagePromise<EntityTypeListResponsesMyCursorIDPage, EntityTypeListResponse>;
|
|
20
20
|
/**
|
|
21
21
|
* Batched create-or-update of entity types. Existing types matched by id are
|
|
22
22
|
* updated; new ids are created. Idempotent — re-submitting the same payload
|
|
@@ -41,7 +41,7 @@ export declare class EntityTypes extends APIResource {
|
|
|
41
41
|
* });
|
|
42
42
|
* ```
|
|
43
43
|
*/
|
|
44
|
-
upsert(
|
|
44
|
+
upsert(params: EntityTypeUpsertParams, options?: RequestOptions): APIPromise<EntityTypeUpsertResponse>;
|
|
45
45
|
}
|
|
46
46
|
export type EntityTypeListResponsesMyCursorIDPage = MyCursorIDPage<EntityTypeListResponse>;
|
|
47
47
|
/**
|
|
@@ -111,12 +111,34 @@ export declare namespace EntityTypeUpsertResponse {
|
|
|
111
111
|
}
|
|
112
112
|
}
|
|
113
113
|
export interface EntityTypeListParams extends MyCursorIDPageParams {
|
|
114
|
+
/**
|
|
115
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
116
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
117
|
+
*/
|
|
118
|
+
'X-ACCOUNT-ID'?: string;
|
|
119
|
+
/**
|
|
120
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
121
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
122
|
+
* intrinsic to the key).
|
|
123
|
+
*/
|
|
124
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
114
125
|
}
|
|
115
126
|
export interface EntityTypeUpsertParams {
|
|
116
127
|
/**
|
|
117
|
-
* Entity types to upsert (1–100 per request)
|
|
128
|
+
* Body param: Entity types to upsert (1–100 per request)
|
|
118
129
|
*/
|
|
119
130
|
types: Array<EntityTypeUpsertParams.Type>;
|
|
131
|
+
/**
|
|
132
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
133
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
134
|
+
*/
|
|
135
|
+
'X-ACCOUNT-ID'?: string;
|
|
136
|
+
/**
|
|
137
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
138
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
139
|
+
* intrinsic to the key).
|
|
140
|
+
*/
|
|
141
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
120
142
|
}
|
|
121
143
|
export declare namespace EntityTypeUpsertParams {
|
|
122
144
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entity-types.d.mts","sourceRoot":"","sources":["../../../../src/resources/v1/events/beta/entity-types.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,sCAAkC;AACxD,OAAO,EAAE,UAAU,EAAE,yCAAqC;AAC1D,OAAO,EAAE,cAAc,EAAE,KAAK,oBAAoB,EAAE,WAAW,EAAE,wCAAoC;
|
|
1
|
+
{"version":3,"file":"entity-types.d.mts","sourceRoot":"","sources":["../../../../src/resources/v1/events/beta/entity-types.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,sCAAkC;AACxD,OAAO,EAAE,UAAU,EAAE,yCAAqC;AAC1D,OAAO,EAAE,cAAc,EAAE,KAAK,oBAAoB,EAAE,WAAW,EAAE,wCAAoC;AAErG,OAAO,EAAE,cAAc,EAAE,iDAA6C;AAEtE,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;;;;;;;;;;;OAYG;IACH,IAAI,CACF,MAAM,GAAE,oBAAoB,GAAG,IAAI,GAAG,SAAc,EACpD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,qCAAqC,EAAE,sBAAsB,CAA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