@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,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 promotional entitlements
|
|
@@ -42,8 +43,19 @@ export class PromotionalEntitlements extends APIResource {
|
|
|
42
43
|
* );
|
|
43
44
|
* ```
|
|
44
45
|
*/
|
|
45
|
-
create(id,
|
|
46
|
-
|
|
46
|
+
create(id, params, options) {
|
|
47
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
|
|
48
|
+
return this._client.post(path `/api/v1/customers/${id}/promotional-entitlements`, {
|
|
49
|
+
body,
|
|
50
|
+
...options,
|
|
51
|
+
headers: buildHeaders([
|
|
52
|
+
{
|
|
53
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
54
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
55
|
+
},
|
|
56
|
+
options?.headers,
|
|
57
|
+
]),
|
|
58
|
+
});
|
|
47
59
|
}
|
|
48
60
|
/**
|
|
49
61
|
* Retrieves a paginated list of a customer's promotional entitlements.
|
|
@@ -58,8 +70,19 @@ export class PromotionalEntitlements extends APIResource {
|
|
|
58
70
|
* }
|
|
59
71
|
* ```
|
|
60
72
|
*/
|
|
61
|
-
list(id,
|
|
62
|
-
|
|
73
|
+
list(id, params = {}, options) {
|
|
74
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...query } = params ?? {};
|
|
75
|
+
return this._client.getAPIList(path `/api/v1/customers/${id}/promotional-entitlements`, (MyCursorIDPage), {
|
|
76
|
+
query,
|
|
77
|
+
...options,
|
|
78
|
+
headers: buildHeaders([
|
|
79
|
+
{
|
|
80
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
81
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
82
|
+
},
|
|
83
|
+
options?.headers,
|
|
84
|
+
]),
|
|
85
|
+
});
|
|
63
86
|
}
|
|
64
87
|
/**
|
|
65
88
|
* Revokes a previously granted promotional entitlement from a customer for a
|
|
@@ -75,8 +98,17 @@ export class PromotionalEntitlements extends APIResource {
|
|
|
75
98
|
* ```
|
|
76
99
|
*/
|
|
77
100
|
revoke(featureID, params, options) {
|
|
78
|
-
const { id } = params;
|
|
79
|
-
return this._client.delete(path `/api/v1/customers/${id}/promotional-entitlements/${featureID}`,
|
|
101
|
+
const { id, 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID } = params;
|
|
102
|
+
return this._client.delete(path `/api/v1/customers/${id}/promotional-entitlements/${featureID}`, {
|
|
103
|
+
...options,
|
|
104
|
+
headers: buildHeaders([
|
|
105
|
+
{
|
|
106
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
107
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
108
|
+
},
|
|
109
|
+
options?.headers,
|
|
110
|
+
]),
|
|
111
|
+
});
|
|
80
112
|
}
|
|
81
113
|
}
|
|
82
114
|
//# sourceMappingURL=promotional-entitlements.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"promotional-entitlements.mjs","sourceRoot":"","sources":["../../../src/resources/v1/customers/promotional-entitlements.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,mCAA+B;AAErD,OAAO,EAAE,cAAc,EAA0C,qCAAiC;
|
|
1
|
+
{"version":3,"file":"promotional-entitlements.mjs","sourceRoot":"","sources":["../../../src/resources/v1/customers/promotional-entitlements.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,mCAA+B;AAErD,OAAO,EAAE,cAAc,EAA0C,qCAAiC;AAClG,OAAO,EAAE,YAAY,EAAE,sCAAkC;AAEzD,OAAO,EAAE,IAAI,EAAE,yCAAqC;AAEpD;;GAEG;AACH,MAAM,OAAO,uBAAwB,SAAQ,WAAW;IACtD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAmCG;IACH,MAAM,CACJ,EAAU,EACV,MAA0C,EAC1C,OAAwB;QAExB,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,kBAAkB,EAAE,cAAc,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QAC3F,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,qBAAqB,EAAE,2BAA2B,EAAE;YAC/E,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;IAED;;;;;;;;;;;;OAYG;IACH,IAAI,CACF,EAAU,EACV,SAA8D,EAAE,EAChE,OAAwB;QAExB,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,kBAAkB,EAAE,cAAc,EAAE,GAAG,KAAK,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QAClG,OAAO,IAAI,CAAC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string, params?: AssignmentListParams | null | undefined, options?: RequestOptions): PagePromise<AssignmentListResponsesMyCursorIDPage, AssignmentListResponse>;
|
|
22
22
|
/**
|
|
23
23
|
* Batched create-or-update of capability assignments. Existing assignments matched
|
|
24
24
|
* by (entityId, capabilityId) are updated; new pairs are created. On update,
|
|
@@ -49,7 +49,7 @@ export declare class Assignments extends APIResource {
|
|
|
49
49
|
* );
|
|
50
50
|
* ```
|
|
51
51
|
*/
|
|
52
|
-
upsert(id: string,
|
|
52
|
+
upsert(id: string, params: AssignmentUpsertParams, options?: RequestOptions): APIPromise<AssignmentUpsertResponse>;
|
|
53
53
|
}
|
|
54
54
|
export type AssignmentListResponsesMyCursorIDPage = MyCursorIDPage<AssignmentListResponse>;
|
|
55
55
|
/**
|
|
@@ -132,19 +132,41 @@ export declare namespace AssignmentUpsertResponse {
|
|
|
132
132
|
}
|
|
133
133
|
export interface AssignmentListParams extends MyCursorIDPageParams {
|
|
134
134
|
/**
|
|
135
|
-
* Filter assignments to a specific capability refId
|
|
135
|
+
* Query param: Filter assignments to a specific capability refId
|
|
136
136
|
*/
|
|
137
137
|
capabilityId?: string;
|
|
138
138
|
/**
|
|
139
|
-
* Filter assignments to a specific entity refId
|
|
139
|
+
* Query param: Filter assignments to a specific entity refId
|
|
140
140
|
*/
|
|
141
141
|
entityId?: string;
|
|
142
|
+
/**
|
|
143
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
144
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
145
|
+
*/
|
|
146
|
+
'X-ACCOUNT-ID'?: string;
|
|
147
|
+
/**
|
|
148
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
149
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
150
|
+
* intrinsic to the key).
|
|
151
|
+
*/
|
|
152
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
142
153
|
}
|
|
143
154
|
export interface AssignmentUpsertParams {
|
|
144
155
|
/**
|
|
145
|
-
* Assignments to upsert (1–100 per request)
|
|
156
|
+
* Body param: Assignments to upsert (1–100 per request)
|
|
146
157
|
*/
|
|
147
158
|
assignments: Array<AssignmentUpsertParams.Assignment>;
|
|
159
|
+
/**
|
|
160
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
161
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
162
|
+
*/
|
|
163
|
+
'X-ACCOUNT-ID'?: string;
|
|
164
|
+
/**
|
|
165
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
166
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
167
|
+
* intrinsic to the key).
|
|
168
|
+
*/
|
|
169
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
148
170
|
}
|
|
149
171
|
export declare namespace AssignmentUpsertParams {
|
|
150
172
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assignments.d.mts","sourceRoot":"","sources":["../../../../../src/resources/v1/events/beta/customers/assignments.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,yCAAqC;AAC3D,OAAO,EAAE,UAAU,EAAE,4CAAwC;AAC7D,OAAO,EAAE,cAAc,EAAE,KAAK,oBAAoB,EAAE,WAAW,EAAE,2CAAuC;
|
|
1
|
+
{"version":3,"file":"assignments.d.mts","sourceRoot":"","sources":["../../../../../src/resources/v1/events/beta/customers/assignments.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,yCAAqC;AAC3D,OAAO,EAAE,UAAU,EAAE,4CAAwC;AAC7D,OAAO,EAAE,cAAc,EAAE,KAAK,oBAAoB,EAAE,WAAW,EAAE,2CAAuC;AAExG,OAAO,EAAE,cAAc,EAAE,oDAAgD;AAGzE,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;;;;;;;;;;;;;OAcG;IACH,IAAI,CACF,EAAE,EAAE,MAAM,EACV,MAAM,GAAE,oBAAoB,GAAG,IAAI,G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,MAAM,CAAC;IAEtB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,WAAW,EAAE,KAAK,CAAC,sBAAsB,CAAC,UAAU,CAAC,CAAC;IAEtD;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED,yBAAiB,sBAAsB,CAAC;IACtC;;;;;OAKG;IACH,UAAiB,UAAU;QACzB;;WAEG;QACH,YAAY,EAAE,MAAM,CAAC;QAErB;;WAEG;QACH,QAAQ,EAAE,MAAM,CAAC;QAEjB;;WAEG;QACH,OAAO,CAAC,EAAE,OAAO,CAAC;QAElB;;WAEG;QACH,UAAU,CAAC,EAAE,MAAM,CAAC;KACrB;CACF;AAED,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,qCAAqC,IAAI,qCAAqC,EACnF,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
|
|
@@ -18,7 +18,7 @@ export declare class Assignments extends APIResource {
|
|
|
18
18
|
* }
|
|
19
19
|
* ```
|
|
20
20
|
*/
|
|
21
|
-
list(id: string,
|
|
21
|
+
list(id: string, params?: AssignmentListParams | null | undefined, options?: RequestOptions): PagePromise<AssignmentListResponsesMyCursorIDPage, AssignmentListResponse>;
|
|
22
22
|
/**
|
|
23
23
|
* Batched create-or-update of capability assignments. Existing assignments matched
|
|
24
24
|
* by (entityId, capabilityId) are updated; new pairs are created. On update,
|
|
@@ -49,7 +49,7 @@ export declare class Assignments extends APIResource {
|
|
|
49
49
|
* );
|
|
50
50
|
* ```
|
|
51
51
|
*/
|
|
52
|
-
upsert(id: string,
|
|
52
|
+
upsert(id: string, params: AssignmentUpsertParams, options?: RequestOptions): APIPromise<AssignmentUpsertResponse>;
|
|
53
53
|
}
|
|
54
54
|
export type AssignmentListResponsesMyCursorIDPage = MyCursorIDPage<AssignmentListResponse>;
|
|
55
55
|
/**
|
|
@@ -132,19 +132,41 @@ export declare namespace AssignmentUpsertResponse {
|
|
|
132
132
|
}
|
|
133
133
|
export interface AssignmentListParams extends MyCursorIDPageParams {
|
|
134
134
|
/**
|
|
135
|
-
* Filter assignments to a specific capability refId
|
|
135
|
+
* Query param: Filter assignments to a specific capability refId
|
|
136
136
|
*/
|
|
137
137
|
capabilityId?: string;
|
|
138
138
|
/**
|
|
139
|
-
* Filter assignments to a specific entity refId
|
|
139
|
+
* Query param: Filter assignments to a specific entity refId
|
|
140
140
|
*/
|
|
141
141
|
entityId?: string;
|
|
142
|
+
/**
|
|
143
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
144
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
145
|
+
*/
|
|
146
|
+
'X-ACCOUNT-ID'?: string;
|
|
147
|
+
/**
|
|
148
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
149
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
150
|
+
* intrinsic to the key).
|
|
151
|
+
*/
|
|
152
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
142
153
|
}
|
|
143
154
|
export interface AssignmentUpsertParams {
|
|
144
155
|
/**
|
|
145
|
-
* Assignments to upsert (1–100 per request)
|
|
156
|
+
* Body param: Assignments to upsert (1–100 per request)
|
|
146
157
|
*/
|
|
147
158
|
assignments: Array<AssignmentUpsertParams.Assignment>;
|
|
159
|
+
/**
|
|
160
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
161
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
162
|
+
*/
|
|
163
|
+
'X-ACCOUNT-ID'?: string;
|
|
164
|
+
/**
|
|
165
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
166
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
167
|
+
* intrinsic to the key).
|
|
168
|
+
*/
|
|
169
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
148
170
|
}
|
|
149
171
|
export declare namespace AssignmentUpsertParams {
|
|
150
172
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assignments.d.ts","sourceRoot":"","sources":["../../../../../src/resources/v1/events/beta/customers/assignments.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":"assignments.d.ts","sourceRoot":"","sources":["../../../../../src/resources/v1/events/beta/customers/assignments.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,WAAY,SAAQ,WAAW;IAC1C;;;;;;;;;;;;;;OAcG;IACH,IAAI,CACF,EAAE,EAAE,MAAM,EACV,MAAM,GAAE,oBAAoB,GAAG,IAAI,GAAG,SAAc,EACpD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,qCAAqC,EAAE,sBAAsB,CAAC;IAmB7E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA6BG;IACH,MAAM,CACJ,EAAE,EAAE,MAAM,EACV,MAAM,EAAE,sBAAsB,EAC9B,OAAO,CAAC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,WAAW,EAAE,KAAK,CAAC,sBAAsB,CAAC,UAAU,CAAC,CAAC;IAEtD;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED,yBAAiB,sBAAsB,CAAC;IACtC;;;;;OAKG;IACH,UAAiB,UAAU;QACzB;;WAEG;QACH,YAAY,EAAE,MAAM,CAAC;QAErB;;WAEG;QACH,QAAQ,EAAE,MAAM,CAAC;QAEjB;;WAEG;QACH,OAAO,CAAC,EAAE,OAAO,CAAC;QAElB;;WAEG;QACH,UAAU,CAAC,EAAE,MAAM,CAAC;KACrB;CACF;AAED,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,qCAAqC,IAAI,qCAAqC,EACnF,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
|
|
@@ -4,6 +4,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
4
4
|
exports.Assignments = 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 Assignments extends resource_1.APIResource {
|
|
9
10
|
/**
|
|
@@ -21,8 +22,19 @@ class Assignments extends resource_1.APIResource {
|
|
|
21
22
|
* }
|
|
22
23
|
* ```
|
|
23
24
|
*/
|
|
24
|
-
list(id,
|
|
25
|
-
|
|
25
|
+
list(id, params = {}, options) {
|
|
26
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...query } = params ?? {};
|
|
27
|
+
return this._client.getAPIList((0, path_1.path) `/api/v1-beta/customers/${id}/assignments`, (pagination_1.MyCursorIDPage), {
|
|
28
|
+
query,
|
|
29
|
+
...options,
|
|
30
|
+
headers: (0, headers_1.buildHeaders)([
|
|
31
|
+
{
|
|
32
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
33
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
34
|
+
},
|
|
35
|
+
options?.headers,
|
|
36
|
+
]),
|
|
37
|
+
});
|
|
26
38
|
}
|
|
27
39
|
/**
|
|
28
40
|
* Batched create-or-update of capability assignments. Existing assignments matched
|
|
@@ -54,8 +66,19 @@ class Assignments extends resource_1.APIResource {
|
|
|
54
66
|
* );
|
|
55
67
|
* ```
|
|
56
68
|
*/
|
|
57
|
-
upsert(id,
|
|
58
|
-
|
|
69
|
+
upsert(id, params, options) {
|
|
70
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
|
|
71
|
+
return this._client.put((0, path_1.path) `/api/v1-beta/customers/${id}/assignments`, {
|
|
72
|
+
body,
|
|
73
|
+
...options,
|
|
74
|
+
headers: (0, headers_1.buildHeaders)([
|
|
75
|
+
{
|
|
76
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
77
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
78
|
+
},
|
|
79
|
+
options?.headers,
|
|
80
|
+
]),
|
|
81
|
+
});
|
|
59
82
|
}
|
|
60
83
|
}
|
|
61
84
|
exports.Assignments = Assignments;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assignments.js","sourceRoot":"","sources":["../../../../../src/resources/v1/events/beta/customers/assignments.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,8DAA2D;AAE3D,kEAAwG;
|
|
1
|
+
{"version":3,"file":"assignments.js","sourceR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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;AAvFD,kCAuFC"}
|
|
@@ -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
|
export class Assignments extends APIResource {
|
|
6
7
|
/**
|
|
@@ -18,8 +19,19 @@ export class Assignments extends APIResource {
|
|
|
18
19
|
* }
|
|
19
20
|
* ```
|
|
20
21
|
*/
|
|
21
|
-
list(id,
|
|
22
|
-
|
|
22
|
+
list(id, params = {}, options) {
|
|
23
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...query } = params ?? {};
|
|
24
|
+
return this._client.getAPIList(path `/api/v1-beta/customers/${id}/assignments`, (MyCursorIDPage), {
|
|
25
|
+
query,
|
|
26
|
+
...options,
|
|
27
|
+
headers: 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
|
* Batched create-or-update of capability assignments. Existing assignments matched
|
|
@@ -51,8 +63,19 @@ export class Assignments extends APIResource {
|
|
|
51
63
|
* );
|
|
52
64
|
* ```
|
|
53
65
|
*/
|
|
54
|
-
upsert(id,
|
|
55
|
-
|
|
66
|
+
upsert(id, params, options) {
|
|
67
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
|
|
68
|
+
return this._client.put(path `/api/v1-beta/customers/${id}/assignments`, {
|
|
69
|
+
body,
|
|
70
|
+
...options,
|
|
71
|
+
headers: buildHeaders([
|
|
72
|
+
{
|
|
73
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
74
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
75
|
+
},
|
|
76
|
+
options?.headers,
|
|
77
|
+
]),
|
|
78
|
+
});
|
|
56
79
|
}
|
|
57
80
|
}
|
|
58
81
|
//# sourceMappingURL=assignments.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assignments.mjs","sourceRoot":"","sources":["../../../../../src/resources/v1/events/beta/customers/assignments.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,yCAAqC;AAE3D,OAAO,EAAE,cAAc,EAA0C,2CAAuC;
|
|
1
|
+
{"version":3,"file":"assignments.mjs","sourceRoot":"","sources":["../../../../../src/resources/v1/events/beta/customers/assignments.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,yCAAqC;AAE3D,OAAO,EAAE,cAAc,EAA0C,2CAAuC;AACxG,OAAO,EAAE,YAAY,EAAE,4CAAwC;AAE/D,OAAO,EAAE,IAAI,EAAE,+CAA2C;AAE1D,MAAM,OAAO,WAAY,SAAQ,WAAW;IAC1C;;;;;;;;;;;;;;OAcG;IACH,IAAI,CACF,EAAU,EACV,SAAk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AAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -29,7 +29,7 @@ export declare class Entities extends APIResource {
|
|
|
29
29
|
* }
|
|
30
30
|
* ```
|
|
31
31
|
*/
|
|
32
|
-
list(id: string,
|
|
32
|
+
list(id: string, params?: EntityListParams | null | undefined, options?: RequestOptions): PagePromise<EntityListResponsesMyCursorIDPage, EntityListResponse>;
|
|
33
33
|
/**
|
|
34
34
|
* Archives entities in bulk for the given customer by id.
|
|
35
35
|
*
|
|
@@ -42,7 +42,7 @@ export declare class Entities extends APIResource {
|
|
|
42
42
|
* );
|
|
43
43
|
* ```
|
|
44
44
|
*/
|
|
45
|
-
archive(id: string,
|
|
45
|
+
archive(id: string, params: EntityArchiveParams, options?: RequestOptions): APIPromise<EntityArchiveResponse>;
|
|
46
46
|
/**
|
|
47
47
|
* Restores previously archived entities in bulk for the given customer by id.
|
|
48
48
|
*
|
|
@@ -55,7 +55,7 @@ export declare class Entities extends APIResource {
|
|
|
55
55
|
* );
|
|
56
56
|
* ```
|
|
57
57
|
*/
|
|
58
|
-
unarchive(id: string,
|
|
58
|
+
unarchive(id: string, params: EntityUnarchiveParams, options?: RequestOptions): APIPromise<EntityUnarchiveResponse>;
|
|
59
59
|
/**
|
|
60
60
|
* Creates or updates entities in bulk for the given customer. Existing entities
|
|
61
61
|
* matched by id are updated; new ids are created.
|
|
@@ -85,7 +85,7 @@ export declare class Entities extends APIResource {
|
|
|
85
85
|
* );
|
|
86
86
|
* ```
|
|
87
87
|
*/
|
|
88
|
-
upsert(id: string,
|
|
88
|
+
upsert(id: string, params: EntityUpsertParams, options?: RequestOptions): APIPromise<EntityUpsertResponse>;
|
|
89
89
|
}
|
|
90
90
|
export type EntityListResponsesMyCursorIDPage = MyCursorIDPage<EntityListResponse>;
|
|
91
91
|
/**
|
|
@@ -242,37 +242,93 @@ export declare namespace EntityUpsertResponse {
|
|
|
242
242
|
}
|
|
243
243
|
export interface EntityRetrieveParams {
|
|
244
244
|
/**
|
|
245
|
-
* The customer identifier (owner) the entity belongs to
|
|
245
|
+
* Path param: The customer identifier (owner) the entity belongs to
|
|
246
246
|
*/
|
|
247
247
|
id: string;
|
|
248
|
+
/**
|
|
249
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
250
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
251
|
+
*/
|
|
252
|
+
'X-ACCOUNT-ID'?: string;
|
|
253
|
+
/**
|
|
254
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
255
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
256
|
+
* intrinsic to the key).
|
|
257
|
+
*/
|
|
258
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
248
259
|
}
|
|
249
260
|
export interface EntityListParams extends MyCursorIDPageParams {
|
|
250
261
|
/**
|
|
251
|
-
* Whether to include archived entities. One of: true, false
|
|
262
|
+
* Query param: Whether to include archived entities. One of: true, false
|
|
252
263
|
*/
|
|
253
264
|
includeArchived?: 'true' | 'false';
|
|
254
265
|
/**
|
|
255
|
-
* Filter results to entities of a specific entity type, by the type's
|
|
266
|
+
* Query param: Filter results to entities of a specific entity type, by the type's
|
|
267
|
+
* refId
|
|
256
268
|
*/
|
|
257
269
|
typeRefId?: string;
|
|
270
|
+
/**
|
|
271
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
272
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
273
|
+
*/
|
|
274
|
+
'X-ACCOUNT-ID'?: string;
|
|
275
|
+
/**
|
|
276
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
277
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
278
|
+
* intrinsic to the key).
|
|
279
|
+
*/
|
|
280
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
258
281
|
}
|
|
259
282
|
export interface EntityArchiveParams {
|
|
260
283
|
/**
|
|
261
|
-
* Entity identifiers to act on
|
|
284
|
+
* Body param: Entity identifiers to act on
|
|
262
285
|
*/
|
|
263
286
|
ids: Array<string>;
|
|
287
|
+
/**
|
|
288
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
289
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
290
|
+
*/
|
|
291
|
+
'X-ACCOUNT-ID'?: string;
|
|
292
|
+
/**
|
|
293
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
294
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
295
|
+
* intrinsic to the key).
|
|
296
|
+
*/
|
|
297
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
264
298
|
}
|
|
265
299
|
export interface EntityUnarchiveParams {
|
|
266
300
|
/**
|
|
267
|
-
* Entity identifiers to act on
|
|
301
|
+
* Body param: Entity identifiers to act on
|
|
268
302
|
*/
|
|
269
303
|
ids: Array<string>;
|
|
304
|
+
/**
|
|
305
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
306
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
307
|
+
*/
|
|
308
|
+
'X-ACCOUNT-ID'?: string;
|
|
309
|
+
/**
|
|
310
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
311
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
312
|
+
* intrinsic to the key).
|
|
313
|
+
*/
|
|
314
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
270
315
|
}
|
|
271
316
|
export interface EntityUpsertParams {
|
|
272
317
|
/**
|
|
273
|
-
* List of entities to create or update (1-100 entries)
|
|
318
|
+
* Body param: List of entities to create or update (1-100 entries)
|
|
274
319
|
*/
|
|
275
320
|
entities: Array<EntityUpsertParams.Entity>;
|
|
321
|
+
/**
|
|
322
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
323
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
324
|
+
*/
|
|
325
|
+
'X-ACCOUNT-ID'?: string;
|
|
326
|
+
/**
|
|
327
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
328
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
329
|
+
* intrinsic to the key).
|
|
330
|
+
*/
|
|
331
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
276
332
|
}
|
|
277
333
|
export declare namespace EntityUpsertParams {
|
|
278
334
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entities.d.mts","sourceRoot":"","sources":["../../../../../src/resources/v1/events/beta/customers/entities.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,yCAAqC;AAC3D,OAAO,EAAE,UAAU,EAAE,4CAAwC;AAC7D,OAAO,EAAE,cAAc,EAAE,KAAK,oBAAoB,EAAE,WAAW,EAAE,2CAAuC;
|
|
1
|
+
{"version":3,"file":"entities.d.mts","sourceRoot":"","sources":["../../../../../src/resources/v1/events/beta/customers/entities.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,yCAAqC;AAC3D,OAAO,EAAE,UAAU,EAAE,4CAAwC;AAC7D,OAAO,EAAE,cAAc,EAAE,KAAK,oBAAoB,EAAE,WAAW,EAAE,2CAAuC;AAExG,OAAO,EAAE,cAAc,EAAE,oDAAgD;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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sBAAsB,EACrD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,iCAAiC,IAAI,iCAAiC,EAC3E,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"}
|
|
@@ -29,7 +29,7 @@ export declare class Entities extends APIResource {
|
|
|
29
29
|
* }
|
|
30
30
|
* ```
|
|
31
31
|
*/
|
|
32
|
-
list(id: string,
|
|
32
|
+
list(id: string, params?: EntityListParams | null | undefined, options?: RequestOptions): PagePromise<EntityListResponsesMyCursorIDPage, EntityListResponse>;
|
|
33
33
|
/**
|
|
34
34
|
* Archives entities in bulk for the given customer by id.
|
|
35
35
|
*
|
|
@@ -42,7 +42,7 @@ export declare class Entities extends APIResource {
|
|
|
42
42
|
* );
|
|
43
43
|
* ```
|
|
44
44
|
*/
|
|
45
|
-
archive(id: string,
|
|
45
|
+
archive(id: string, params: EntityArchiveParams, options?: RequestOptions): APIPromise<EntityArchiveResponse>;
|
|
46
46
|
/**
|
|
47
47
|
* Restores previously archived entities in bulk for the given customer by id.
|
|
48
48
|
*
|
|
@@ -55,7 +55,7 @@ export declare class Entities extends APIResource {
|
|
|
55
55
|
* );
|
|
56
56
|
* ```
|
|
57
57
|
*/
|
|
58
|
-
unarchive(id: string,
|
|
58
|
+
unarchive(id: string, params: EntityUnarchiveParams, options?: RequestOptions): APIPromise<EntityUnarchiveResponse>;
|
|
59
59
|
/**
|
|
60
60
|
* Creates or updates entities in bulk for the given customer. Existing entities
|
|
61
61
|
* matched by id are updated; new ids are created.
|
|
@@ -85,7 +85,7 @@ export declare class Entities extends APIResource {
|
|
|
85
85
|
* );
|
|
86
86
|
* ```
|
|
87
87
|
*/
|
|
88
|
-
upsert(id: string,
|
|
88
|
+
upsert(id: string, params: EntityUpsertParams, options?: RequestOptions): APIPromise<EntityUpsertResponse>;
|
|
89
89
|
}
|
|
90
90
|
export type EntityListResponsesMyCursorIDPage = MyCursorIDPage<EntityListResponse>;
|
|
91
91
|
/**
|
|
@@ -242,37 +242,93 @@ export declare namespace EntityUpsertResponse {
|
|
|
242
242
|
}
|
|
243
243
|
export interface EntityRetrieveParams {
|
|
244
244
|
/**
|
|
245
|
-
* The customer identifier (owner) the entity belongs to
|
|
245
|
+
* Path param: The customer identifier (owner) the entity belongs to
|
|
246
246
|
*/
|
|
247
247
|
id: string;
|
|
248
|
+
/**
|
|
249
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
250
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
251
|
+
*/
|
|
252
|
+
'X-ACCOUNT-ID'?: string;
|
|
253
|
+
/**
|
|
254
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
255
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
256
|
+
* intrinsic to the key).
|
|
257
|
+
*/
|
|
258
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
248
259
|
}
|
|
249
260
|
export interface EntityListParams extends MyCursorIDPageParams {
|
|
250
261
|
/**
|
|
251
|
-
* Whether to include archived entities. One of: true, false
|
|
262
|
+
* Query param: Whether to include archived entities. One of: true, false
|
|
252
263
|
*/
|
|
253
264
|
includeArchived?: 'true' | 'false';
|
|
254
265
|
/**
|
|
255
|
-
* Filter results to entities of a specific entity type, by the type's
|
|
266
|
+
* Query param: Filter results to entities of a specific entity type, by the type's
|
|
267
|
+
* refId
|
|
256
268
|
*/
|
|
257
269
|
typeRefId?: string;
|
|
270
|
+
/**
|
|
271
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
272
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
273
|
+
*/
|
|
274
|
+
'X-ACCOUNT-ID'?: string;
|
|
275
|
+
/**
|
|
276
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
277
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
278
|
+
* intrinsic to the key).
|
|
279
|
+
*/
|
|
280
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
258
281
|
}
|
|
259
282
|
export interface EntityArchiveParams {
|
|
260
283
|
/**
|
|
261
|
-
* Entity identifiers to act on
|
|
284
|
+
* Body param: Entity identifiers to act on
|
|
262
285
|
*/
|
|
263
286
|
ids: Array<string>;
|
|
287
|
+
/**
|
|
288
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
289
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
290
|
+
*/
|
|
291
|
+
'X-ACCOUNT-ID'?: string;
|
|
292
|
+
/**
|
|
293
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
294
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
295
|
+
* intrinsic to the key).
|
|
296
|
+
*/
|
|
297
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
264
298
|
}
|
|
265
299
|
export interface EntityUnarchiveParams {
|
|
266
300
|
/**
|
|
267
|
-
* Entity identifiers to act on
|
|
301
|
+
* Body param: Entity identifiers to act on
|
|
268
302
|
*/
|
|
269
303
|
ids: Array<string>;
|
|
304
|
+
/**
|
|
305
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
306
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
307
|
+
*/
|
|
308
|
+
'X-ACCOUNT-ID'?: string;
|
|
309
|
+
/**
|
|
310
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
311
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
312
|
+
* intrinsic to the key).
|
|
313
|
+
*/
|
|
314
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
270
315
|
}
|
|
271
316
|
export interface EntityUpsertParams {
|
|
272
317
|
/**
|
|
273
|
-
* List of entities to create or update (1-100 entries)
|
|
318
|
+
* Body param: List of entities to create or update (1-100 entries)
|
|
274
319
|
*/
|
|
275
320
|
entities: Array<EntityUpsertParams.Entity>;
|
|
321
|
+
/**
|
|
322
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
323
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
324
|
+
*/
|
|
325
|
+
'X-ACCOUNT-ID'?: string;
|
|
326
|
+
/**
|
|
327
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
328
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
329
|
+
* intrinsic to the key).
|
|
330
|
+
*/
|
|
331
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
276
332
|
}
|
|
277
333
|
export declare namespace EntityUpsertParams {
|
|
278
334
|
/**
|