@stigg/typescript 0.1.0-beta.61 → 0.1.0-beta.63
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 +57 -0
- package/package.json +1 -1
- package/resources/v1/addons/addons.d.mts +1 -1
- package/resources/v1/addons/addons.d.ts +1 -1
- package/resources/v1/credits/credits.d.mts +77 -2
- package/resources/v1/credits/credits.d.mts.map +1 -1
- package/resources/v1/credits/credits.d.ts +77 -2
- package/resources/v1/credits/credits.d.ts.map +1 -1
- package/resources/v1/credits/credits.js +4 -0
- package/resources/v1/credits/credits.js.map +1 -1
- package/resources/v1/credits/credits.mjs +4 -0
- package/resources/v1/credits/credits.mjs.map +1 -1
- package/resources/v1/credits/index.d.mts +1 -0
- package/resources/v1/credits/index.d.mts.map +1 -1
- package/resources/v1/credits/index.d.ts +1 -0
- package/resources/v1/credits/index.d.ts.map +1 -1
- package/resources/v1/credits/index.js +3 -1
- package/resources/v1/credits/index.js.map +1 -1
- package/resources/v1/credits/index.mjs +1 -0
- package/resources/v1/credits/index.mjs.map +1 -1
- package/resources/v1/credits/reservations.d.mts +128 -0
- package/resources/v1/credits/reservations.d.mts.map +1 -0
- package/resources/v1/credits/reservations.d.ts +128 -0
- package/resources/v1/credits/reservations.d.ts.map +1 -0
- package/resources/v1/credits/reservations.js +30 -0
- package/resources/v1/credits/reservations.js.map +1 -0
- package/resources/v1/credits/reservations.mjs +26 -0
- package/resources/v1/credits/reservations.mjs.map +1 -0
- package/resources/v1/customers/customers.d.mts +27 -2
- package/resources/v1/customers/customers.d.mts.map +1 -1
- package/resources/v1/customers/customers.d.ts +27 -2
- package/resources/v1/customers/customers.d.ts.map +1 -1
- package/resources/v1/customers/customers.js.map +1 -1
- package/resources/v1/customers/customers.mjs.map +1 -1
- package/resources/v1/events/beta/customers.d.mts +18 -7
- package/resources/v1/events/beta/customers.d.mts.map +1 -1
- package/resources/v1/events/beta/customers.d.ts +18 -7
- package/resources/v1/events/beta/customers.d.ts.map +1 -1
- package/resources/v1/plans/plans.d.mts +1 -1
- package/resources/v1/plans/plans.d.ts +1 -1
- package/resources/v1/subscriptions/subscriptions.d.mts +1 -1
- package/resources/v1/subscriptions/subscriptions.d.mts.map +1 -1
- package/resources/v1/subscriptions/subscriptions.d.ts +1 -1
- package/resources/v1/subscriptions/subscriptions.d.ts.map +1 -1
- package/resources/v1/usage.d.mts +8 -7
- package/resources/v1/usage.d.mts.map +1 -1
- package/resources/v1/usage.d.ts +8 -7
- package/resources/v1/usage.d.ts.map +1 -1
- package/resources/v1-beta/customers/assignments.d.mts +2 -1
- package/resources/v1-beta/customers/assignments.d.mts.map +1 -1
- package/resources/v1-beta/customers/assignments.d.ts +2 -1
- package/resources/v1-beta/customers/assignments.d.ts.map +1 -1
- package/resources/v1-beta/customers/customers.d.mts +4 -0
- package/resources/v1-beta/customers/customers.d.mts.map +1 -1
- package/resources/v1-beta/customers/customers.d.ts +4 -0
- package/resources/v1-beta/customers/customers.d.ts.map +1 -1
- package/resources/v1-beta/customers/customers.js +4 -0
- package/resources/v1-beta/customers/customers.js.map +1 -1
- package/resources/v1-beta/customers/customers.mjs +4 -0
- package/resources/v1-beta/customers/customers.mjs.map +1 -1
- package/resources/v1-beta/customers/entitlements.d.mts +1 -1
- package/resources/v1-beta/customers/entitlements.d.mts.map +1 -1
- package/resources/v1-beta/customers/entitlements.d.ts +1 -1
- package/resources/v1-beta/customers/entitlements.d.ts.map +1 -1
- package/resources/v1-beta/customers/governance.d.mts +156 -0
- package/resources/v1-beta/customers/governance.d.mts.map +1 -0
- package/resources/v1-beta/customers/governance.d.ts +156 -0
- package/resources/v1-beta/customers/governance.d.ts.map +1 -0
- package/resources/v1-beta/customers/governance.js +43 -0
- package/resources/v1-beta/customers/governance.js.map +1 -0
- package/resources/v1-beta/customers/governance.mjs +39 -0
- package/resources/v1-beta/customers/governance.mjs.map +1 -0
- package/resources/v1-beta/customers/index.d.mts +1 -0
- package/resources/v1-beta/customers/index.d.mts.map +1 -1
- package/resources/v1-beta/customers/index.d.ts +1 -0
- package/resources/v1-beta/customers/index.d.ts.map +1 -1
- package/resources/v1-beta/customers/index.js +3 -1
- package/resources/v1-beta/customers/index.js.map +1 -1
- package/resources/v1-beta/customers/index.mjs +1 -0
- package/resources/v1-beta/customers/index.mjs.map +1 -1
- package/resources/v2/usage.d.mts +4 -3
- package/resources/v2/usage.d.mts.map +1 -1
- package/resources/v2/usage.d.ts +4 -3
- package/resources/v2/usage.d.ts.map +1 -1
- package/src/resources/v1/addons/addons.ts +1 -1
- package/src/resources/v1/credits/credits.ts +109 -2
- package/src/resources/v1/credits/index.ts +1 -0
- package/src/resources/v1/credits/reservations.ts +172 -0
- package/src/resources/v1/customers/customers.ts +32 -2
- package/src/resources/v1/events/beta/customers.ts +20 -7
- package/src/resources/v1/plans/plans.ts +1 -1
- package/src/resources/v1/subscriptions/subscriptions.ts +1 -1
- package/src/resources/v1/usage.ts +8 -7
- package/src/resources/v1-beta/customers/assignments.ts +2 -1
- package/src/resources/v1-beta/customers/customers.ts +16 -0
- package/src/resources/v1-beta/customers/entitlements.ts +1 -1
- package/src/resources/v1-beta/customers/governance.ts +210 -0
- package/src/resources/v1-beta/customers/index.ts +6 -0
- package/src/resources/v2/usage.ts +4 -3
- 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
|
@@ -6,15 +6,19 @@ import * as EntitiesAPI from "./entities.mjs";
|
|
|
6
6
|
import { Entities, } from "./entities.mjs";
|
|
7
7
|
import * as EntitlementsAPI from "./entitlements.mjs";
|
|
8
8
|
import { Entitlements } from "./entitlements.mjs";
|
|
9
|
+
import * as GovernanceAPI from "./governance.mjs";
|
|
10
|
+
import { Governance, } from "./governance.mjs";
|
|
9
11
|
export class Customers extends APIResource {
|
|
10
12
|
constructor() {
|
|
11
13
|
super(...arguments);
|
|
12
14
|
this.entitlements = new EntitlementsAPI.Entitlements(this._client);
|
|
13
15
|
this.entities = new EntitiesAPI.Entities(this._client);
|
|
14
16
|
this.assignments = new AssignmentsAPI.Assignments(this._client);
|
|
17
|
+
this.governance = new GovernanceAPI.Governance(this._client);
|
|
15
18
|
}
|
|
16
19
|
}
|
|
17
20
|
Customers.Entitlements = Entitlements;
|
|
18
21
|
Customers.Entities = Entities;
|
|
19
22
|
Customers.Assignments = Assignments;
|
|
23
|
+
Customers.Governance = Governance;
|
|
20
24
|
//# sourceMappingURL=customers.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customers.mjs","sourceRoot":"","sources":["../../../src/resources/v1-beta/customers/customers.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,mCAA+B;AACrD,OAAO,KAAK,cAAc,0BAAsB;AAChD,OAAO,EAML,WAAW,GACZ,0BAAsB;AACvB,OAAO,KAAK,WAAW,uBAAmB;AAC1C,OAAO,EACL,QAAQ,GAYT,uBAAmB;AACpB,OAAO,KAAK,eAAe,2BAAuB;AAClD,OAAO,EAAoD,YAAY,EAAE,2BAAuB;
|
|
1
|
+
{"version":3,"file":"customers.mjs","sourceRoot":"","sources":["../../../src/resources/v1-beta/customers/customers.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,mCAA+B;AACrD,OAAO,KAAK,cAAc,0BAAsB;AAChD,OAAO,EAML,WAAW,GACZ,0BAAsB;AACvB,OAAO,KAAK,WAAW,uBAAmB;AAC1C,OAAO,EACL,QAAQ,GAYT,uBAAmB;AACpB,OAAO,KAAK,eAAe,2BAAuB;AAClD,OAAO,EAAoD,YAAY,EAAE,2BAAuB;AAChG,OAAO,KAAK,aAAa,yBAAqB;AAC9C,OAAO,EACL,UAAU,GAIX,yBAAqB;AAEtB,MAAM,OAAO,SAAU,SAAQ,WAAW;IAA1C;;QACE,iBAAY,GAAiC,IAAI,eAAe,CAAC,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC5F,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxE,gBAAW,GAA+B,IAAI,cAAc,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACvF,eAAU,GAA6B,IAAI,aAAa,CAAC,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACpF,CAAC;CAAA;AAED,SAAS,CAAC,YAAY,GAAG,YAAY,CAAC;AACtC,SAAS,CAAC,QAAQ,GAAG,QAAQ,CAAC;AAC9B,SAAS,CAAC,WAAW,GAAG,WAAW,CAAC;AACpC,SAAS,CAAC,UAAU,GAAG,UAAU,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entitlements.d.mts","sourceRoot":"","sources":["../../../src/resources/v1-beta/customers/entitlements.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,mCAA+B;AACrD,OAAO,EAAE,UAAU,EAAE,sCAAkC;AAEvD,OAAO,EAAE,cAAc,EAAE,8CAA0C;AAGnE,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;;;OAUG;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,UAAiB,OAAO;QACtB,kBAAkB,EACd,iBAAiB,GACjB,kBAAkB,GAClB,oBAAoB,GACpB,0BAA0B,GAC1B,sBAAsB,GACtB,oCAAoC,GACpC,8BAA8B,GAC9B,yBAAyB,GACzB,gBAAgB,GA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EG;YACH,QAAQ,CAAC,EAAE;gBAAE,CAAC,GAAG,EAAE,MAAM,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;;;;eAIG;YACH,cAAc,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;YAE9B;;eAEG;YACH,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;SAC3B;QAED;;;WAGG;QACH,UAAiB,WAAW;YAC1B;;eAEG;YACH,EAAE,EAAE,MAAM,CAAC;YAEX;;eAEG;YACH,MAAM,EAAE,MAAM,CAAC;YAEf;;;eAGG;YACH,SAAS,EAAE,MAAM,CAAC;YAElB;;eAEG;YACH,MAAM,EAAE,QAAQ,GAAG,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"entitlements.d.mts","sourceRoot":"","sources":["../../../src/resources/v1-beta/customers/entitlements.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,mCAA+B;AACrD,OAAO,EAAE,UAAU,EAAE,sCAAkC;AAEvD,OAAO,EAAE,cAAc,EAAE,8CAA0C;AAGnE,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;;;OAUG;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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,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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entitlements.d.ts","sourceRoot":"","sources":["../../../src/resources/v1-beta/customers/entitlements.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,kCAA+B;AACrD,OAAO,EAAE,UAAU,EAAE,qCAAkC;AAEvD,OAAO,EAAE,cAAc,EAAE,6CAA0C;AAGnE,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;;;OAUG;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,UAAiB,OAAO;QACtB,kBAAkB,EACd,iBAAiB,GACjB,kBAAkB,GAClB,oBAAoB,GACpB,0BAA0B,GAC1B,sBAAsB,GACtB,oCAAoC,GACpC,8BAA8B,GAC9B,yBAAyB,GACzB,gBAAgB,GAChB,SAAS,GACT,qBAAq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,EAAE;gBAAE,CAAC,GAAG,EAAE,MAAM,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;;;;eAIG;YACH,cAAc,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;YAE9B;;eAEG;YACH,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;SAC3B;QAED;;;WAGG;QACH,UAAiB,WAAW;YAC1B;;eAEG;YACH,EAAE,EAAE,MAAM,CAAC;YAEX;;eAEG;YACH,MAAM,EAAE,MAAM,CAAC;YAEf;;;eAGG;YACH,SAAS,EAAE,MAAM,CAAC;YAElB;;eAEG;YACH,MAAM,EAAE,QAAQ,GAAG,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"entitlements.d.ts","sourceRoot":"","sources":["../../../src/resources/v1-beta/customers/entitlements.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,kCAA+B;AACrD,OAAO,EAAE,UAAU,EAAE,qCAAkC;AAEvD,OAAO,EAAE,cAAc,EAAE,6CAA0C;AAGnE,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;;;OAUG;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,w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;;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"}
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
import { APIResource } from "../../../core/resource.mjs";
|
|
2
|
+
import { MyCursorIDPage, type MyCursorIDPageParams, PagePromise } from "../../../core/pagination.mjs";
|
|
3
|
+
import { RequestOptions } from "../../../internal/request-options.mjs";
|
|
4
|
+
export declare class Governance extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Queries the customer's governance hierarchy tree, returning a cursor-paginated
|
|
7
|
+
* list of nodes with their usage configuration (limit, cadence, scope) and current
|
|
8
|
+
* usage, sortable and filterable by usage. Each node carries `parentId` so the
|
|
9
|
+
* tree can be rebuilt client-side. Usage is read from a periodically-refreshed
|
|
10
|
+
* read model and never gates access.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* // Automatically fetches more pages as needed.
|
|
15
|
+
* for await (const governanceListResponse of client.v1Beta.customers.governance.list(
|
|
16
|
+
* 'id',
|
|
17
|
+
* )) {
|
|
18
|
+
* // ...
|
|
19
|
+
* }
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
list(id: string, params?: GovernanceListParams | null | undefined, options?: RequestOptions): PagePromise<GovernanceListResponsesMyCursorIDPage, GovernanceListResponse>;
|
|
23
|
+
}
|
|
24
|
+
export type GovernanceListResponsesMyCursorIDPage = MyCursorIDPage<GovernanceListResponse>;
|
|
25
|
+
/**
|
|
26
|
+
* A node of the governance hierarchy tree with its usage configuration (limit,
|
|
27
|
+
* cadence, scope) and current usage. Usage is read from a periodically-refreshed
|
|
28
|
+
* read model and may lag the live counter by a short interval; it never gates
|
|
29
|
+
* access.
|
|
30
|
+
*/
|
|
31
|
+
export interface GovernanceListResponse {
|
|
32
|
+
/**
|
|
33
|
+
* Usage-reset cadence as an ISO-8601 single-unit duration, e.g. `P1M`, `P30D`,
|
|
34
|
+
* `PT1M`; `null` when the node has no usage configuration.
|
|
35
|
+
*/
|
|
36
|
+
cadence: string | null;
|
|
37
|
+
/**
|
|
38
|
+
* Usage consumed in the current cadence period (may lag the live counter by a
|
|
39
|
+
* short interval).
|
|
40
|
+
*/
|
|
41
|
+
currentUsage: number | null;
|
|
42
|
+
/**
|
|
43
|
+
* Human-readable name of the entity, or null when none is set (display the entity
|
|
44
|
+
* id instead).
|
|
45
|
+
*/
|
|
46
|
+
displayName: string | null;
|
|
47
|
+
/**
|
|
48
|
+
* External id of the entity at this node.
|
|
49
|
+
*/
|
|
50
|
+
entityId: string;
|
|
51
|
+
/**
|
|
52
|
+
* External id of the entity type (e.g. `team`, `user`).
|
|
53
|
+
*/
|
|
54
|
+
entityTypeId: string;
|
|
55
|
+
/**
|
|
56
|
+
* External id of the parent entity in the tree. `null` means the entity is either
|
|
57
|
+
* a root or not yet placed in the hierarchy — placement rides on an assignment, so
|
|
58
|
+
* an entity with no limits set has no parent yet. Both render at the top level;
|
|
59
|
+
* use it to rebuild the tree.
|
|
60
|
+
*/
|
|
61
|
+
parentId: string | null;
|
|
62
|
+
/**
|
|
63
|
+
* The configuration scope (entity ids). Empty is the node-wide configuration; a
|
|
64
|
+
* non-empty set is a dimension-scoped sub-configuration.
|
|
65
|
+
*/
|
|
66
|
+
scopeEntityIds: Array<string>;
|
|
67
|
+
/**
|
|
68
|
+
* Hard usage limit for this node per cadence period.
|
|
69
|
+
*/
|
|
70
|
+
usageLimit: number | null;
|
|
71
|
+
/**
|
|
72
|
+
* Exclusive end of the cadence period in progress now — when usage resets. `null`
|
|
73
|
+
* when the node has no usage configuration, or when a stored cadence cannot be
|
|
74
|
+
* parsed.
|
|
75
|
+
*/
|
|
76
|
+
usagePeriodEnd: string | null;
|
|
77
|
+
/**
|
|
78
|
+
* Start of the cadence period in progress now, derived from the cadence and the
|
|
79
|
+
* assignment anchor — it stays correct across a rollover. `null` when the node has
|
|
80
|
+
* no usage configuration, or when a stored cadence cannot be parsed.
|
|
81
|
+
*/
|
|
82
|
+
usagePeriodStart: string | null;
|
|
83
|
+
/**
|
|
84
|
+
* `currentUsage / usageLimit` (1 when usageLimit is 0 — always at limit). The
|
|
85
|
+
* cross-capability-safe sort key.
|
|
86
|
+
*/
|
|
87
|
+
utilization: number | null;
|
|
88
|
+
/**
|
|
89
|
+
* The metered currency ID (present when the configured capability is a credit
|
|
90
|
+
* currency).
|
|
91
|
+
*/
|
|
92
|
+
currencyId?: string;
|
|
93
|
+
/**
|
|
94
|
+
* The metered feature ID (present when the configured capability is a feature).
|
|
95
|
+
*/
|
|
96
|
+
featureId?: string;
|
|
97
|
+
}
|
|
98
|
+
export interface GovernanceListParams extends MyCursorIDPageParams {
|
|
99
|
+
/**
|
|
100
|
+
* Query param: Currency ids to include, comma-separated (e.g.
|
|
101
|
+
* `?currencyIds=credits`), up to 100. Omit both featureIds and currencyIds for
|
|
102
|
+
* tree mode.
|
|
103
|
+
*/
|
|
104
|
+
currencyIds?: Array<string>;
|
|
105
|
+
/**
|
|
106
|
+
* Query param: Case-insensitive substring match on the entity id or its display
|
|
107
|
+
* name (`%`/`_` matched literally).
|
|
108
|
+
*/
|
|
109
|
+
entityIdSearch?: string;
|
|
110
|
+
/**
|
|
111
|
+
* Query param: Filter to one or more entity types, comma-separated (e.g.
|
|
112
|
+
* `?entityTypeIds=team,user`), up to 100.
|
|
113
|
+
*/
|
|
114
|
+
entityTypeIds?: Array<string>;
|
|
115
|
+
/**
|
|
116
|
+
* Query param: Feature ids to include, comma-separated (e.g.
|
|
117
|
+
* `?featureIds=ai-tokens,seats`), up to 100. Omit both featureIds and currencyIds
|
|
118
|
+
* for tree mode — every node in the hierarchy with no usage configuration
|
|
119
|
+
* attached.
|
|
120
|
+
*/
|
|
121
|
+
featureIds?: Array<string>;
|
|
122
|
+
/**
|
|
123
|
+
* Query param: Only nodes with utilization ≥ this value (e.g. 0.8 for ≥80%, 1 for
|
|
124
|
+
* at/over limit).
|
|
125
|
+
*/
|
|
126
|
+
minUtilization?: number;
|
|
127
|
+
/**
|
|
128
|
+
* Query param: Sort direction: `asc` or `desc` (default `desc`).
|
|
129
|
+
*/
|
|
130
|
+
order?: 'asc' | 'desc';
|
|
131
|
+
/**
|
|
132
|
+
* Query param: Filter by configuration scope: `all` (default), `nodeWide` (`[]`
|
|
133
|
+
* only), or `scoped` (non-empty only).
|
|
134
|
+
*/
|
|
135
|
+
scope?: 'all' | 'nodeWide' | 'scoped';
|
|
136
|
+
/**
|
|
137
|
+
* Query param: Sort key: `utilization` (default, cross-capability-safe),
|
|
138
|
+
* `currentUsage`, `usageLimit`, `scopeSize`, `id`, or `createdAt`.
|
|
139
|
+
*/
|
|
140
|
+
sortBy?: 'utilization' | 'currentUsage' | 'usageLimit' | 'scopeSize' | 'id' | 'createdAt';
|
|
141
|
+
/**
|
|
142
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
143
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
144
|
+
*/
|
|
145
|
+
'X-ACCOUNT-ID'?: string;
|
|
146
|
+
/**
|
|
147
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
148
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
149
|
+
* intrinsic to the key).
|
|
150
|
+
*/
|
|
151
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
152
|
+
}
|
|
153
|
+
export declare namespace Governance {
|
|
154
|
+
export { type GovernanceListResponse as GovernanceListResponse, type GovernanceListResponsesMyCursorIDPage as GovernanceListResponsesMyCursorIDPage, type GovernanceListParams as GovernanceListParams, };
|
|
155
|
+
}
|
|
156
|
+
//# sourceMappingURL=governance.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"governance.d.mts","sourceRoot":"","sources":["../../../src/resources/v1-beta/customers/governance.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,mCAA+B;AACrD,OAAO,EAAE,cAAc,EAAE,KAAK,oBAAoB,EAAE,WAAW,EAAE,qCAAiC;AAElG,OAAO,EAAE,cAAc,EAAE,8CAA0C;AAGnE,qBAAa,UAAW,SAAQ,WAAW;IACzC;;;;;;;;;;;;;;;;OAgBG;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;CAkB9E;AAED,MAAM,MAAM,qCAAqC,GAAG,cAAc,CAAC,sBAAsB,CAAC,CAAC;AAE3F;;;;;GAKG;AACH,MAAM,WAAW,sBAAsB;IACrC;;;OAGG;IACH,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAEvB;;;OAGG;IACH,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAE5B;;;OAGG;IACH,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAE3B;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;;;;OAKG;IACH,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IAExB;;;OAGG;IACH,cAAc,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAE9B;;OAEG;IACH,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAE1B;;;;OAIG;IACH,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAE9B;;;;OAIG;IACH,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAEhC;;;OAGG;IACH,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAE3B;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,oBAAqB,SAAQ,oBAAoB;IAChE;;;;OAIG;IACH,WAAW,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAE5B;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;;OAGG;IACH,aAAa,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAE9B;;;;;OAKG;IACH,UAAU,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAE3B;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;IAEvB;;;OAGG;IACH,KAAK,CAAC,EAAE,KAAK,GAAG,UAAU,GAAG,QAAQ,CAAC;IAEtC;;;OAGG;IACH,MAAM,CAAC,EAAE,aAAa,GAAG,cAAc,GAAG,YAAY,GAAG,WAAW,GAAG,IAAI,GAAG,WAAW,CAAC;IAE1F;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED,MAAM,CAAC,OAAO,WAAW,UAAU,CAAC;IAClC,OAAO,EACL,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,qCAAqC,IAAI,qCAAqC,EACnF,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;CACH"}
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
import { APIResource } from "../../../core/resource.js";
|
|
2
|
+
import { MyCursorIDPage, type MyCursorIDPageParams, PagePromise } from "../../../core/pagination.js";
|
|
3
|
+
import { RequestOptions } from "../../../internal/request-options.js";
|
|
4
|
+
export declare class Governance extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Queries the customer's governance hierarchy tree, returning a cursor-paginated
|
|
7
|
+
* list of nodes with their usage configuration (limit, cadence, scope) and current
|
|
8
|
+
* usage, sortable and filterable by usage. Each node carries `parentId` so the
|
|
9
|
+
* tree can be rebuilt client-side. Usage is read from a periodically-refreshed
|
|
10
|
+
* read model and never gates access.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* // Automatically fetches more pages as needed.
|
|
15
|
+
* for await (const governanceListResponse of client.v1Beta.customers.governance.list(
|
|
16
|
+
* 'id',
|
|
17
|
+
* )) {
|
|
18
|
+
* // ...
|
|
19
|
+
* }
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
list(id: string, params?: GovernanceListParams | null | undefined, options?: RequestOptions): PagePromise<GovernanceListResponsesMyCursorIDPage, GovernanceListResponse>;
|
|
23
|
+
}
|
|
24
|
+
export type GovernanceListResponsesMyCursorIDPage = MyCursorIDPage<GovernanceListResponse>;
|
|
25
|
+
/**
|
|
26
|
+
* A node of the governance hierarchy tree with its usage configuration (limit,
|
|
27
|
+
* cadence, scope) and current usage. Usage is read from a periodically-refreshed
|
|
28
|
+
* read model and may lag the live counter by a short interval; it never gates
|
|
29
|
+
* access.
|
|
30
|
+
*/
|
|
31
|
+
export interface GovernanceListResponse {
|
|
32
|
+
/**
|
|
33
|
+
* Usage-reset cadence as an ISO-8601 single-unit duration, e.g. `P1M`, `P30D`,
|
|
34
|
+
* `PT1M`; `null` when the node has no usage configuration.
|
|
35
|
+
*/
|
|
36
|
+
cadence: string | null;
|
|
37
|
+
/**
|
|
38
|
+
* Usage consumed in the current cadence period (may lag the live counter by a
|
|
39
|
+
* short interval).
|
|
40
|
+
*/
|
|
41
|
+
currentUsage: number | null;
|
|
42
|
+
/**
|
|
43
|
+
* Human-readable name of the entity, or null when none is set (display the entity
|
|
44
|
+
* id instead).
|
|
45
|
+
*/
|
|
46
|
+
displayName: string | null;
|
|
47
|
+
/**
|
|
48
|
+
* External id of the entity at this node.
|
|
49
|
+
*/
|
|
50
|
+
entityId: string;
|
|
51
|
+
/**
|
|
52
|
+
* External id of the entity type (e.g. `team`, `user`).
|
|
53
|
+
*/
|
|
54
|
+
entityTypeId: string;
|
|
55
|
+
/**
|
|
56
|
+
* External id of the parent entity in the tree. `null` means the entity is either
|
|
57
|
+
* a root or not yet placed in the hierarchy — placement rides on an assignment, so
|
|
58
|
+
* an entity with no limits set has no parent yet. Both render at the top level;
|
|
59
|
+
* use it to rebuild the tree.
|
|
60
|
+
*/
|
|
61
|
+
parentId: string | null;
|
|
62
|
+
/**
|
|
63
|
+
* The configuration scope (entity ids). Empty is the node-wide configuration; a
|
|
64
|
+
* non-empty set is a dimension-scoped sub-configuration.
|
|
65
|
+
*/
|
|
66
|
+
scopeEntityIds: Array<string>;
|
|
67
|
+
/**
|
|
68
|
+
* Hard usage limit for this node per cadence period.
|
|
69
|
+
*/
|
|
70
|
+
usageLimit: number | null;
|
|
71
|
+
/**
|
|
72
|
+
* Exclusive end of the cadence period in progress now — when usage resets. `null`
|
|
73
|
+
* when the node has no usage configuration, or when a stored cadence cannot be
|
|
74
|
+
* parsed.
|
|
75
|
+
*/
|
|
76
|
+
usagePeriodEnd: string | null;
|
|
77
|
+
/**
|
|
78
|
+
* Start of the cadence period in progress now, derived from the cadence and the
|
|
79
|
+
* assignment anchor — it stays correct across a rollover. `null` when the node has
|
|
80
|
+
* no usage configuration, or when a stored cadence cannot be parsed.
|
|
81
|
+
*/
|
|
82
|
+
usagePeriodStart: string | null;
|
|
83
|
+
/**
|
|
84
|
+
* `currentUsage / usageLimit` (1 when usageLimit is 0 — always at limit). The
|
|
85
|
+
* cross-capability-safe sort key.
|
|
86
|
+
*/
|
|
87
|
+
utilization: number | null;
|
|
88
|
+
/**
|
|
89
|
+
* The metered currency ID (present when the configured capability is a credit
|
|
90
|
+
* currency).
|
|
91
|
+
*/
|
|
92
|
+
currencyId?: string;
|
|
93
|
+
/**
|
|
94
|
+
* The metered feature ID (present when the configured capability is a feature).
|
|
95
|
+
*/
|
|
96
|
+
featureId?: string;
|
|
97
|
+
}
|
|
98
|
+
export interface GovernanceListParams extends MyCursorIDPageParams {
|
|
99
|
+
/**
|
|
100
|
+
* Query param: Currency ids to include, comma-separated (e.g.
|
|
101
|
+
* `?currencyIds=credits`), up to 100. Omit both featureIds and currencyIds for
|
|
102
|
+
* tree mode.
|
|
103
|
+
*/
|
|
104
|
+
currencyIds?: Array<string>;
|
|
105
|
+
/**
|
|
106
|
+
* Query param: Case-insensitive substring match on the entity id or its display
|
|
107
|
+
* name (`%`/`_` matched literally).
|
|
108
|
+
*/
|
|
109
|
+
entityIdSearch?: string;
|
|
110
|
+
/**
|
|
111
|
+
* Query param: Filter to one or more entity types, comma-separated (e.g.
|
|
112
|
+
* `?entityTypeIds=team,user`), up to 100.
|
|
113
|
+
*/
|
|
114
|
+
entityTypeIds?: Array<string>;
|
|
115
|
+
/**
|
|
116
|
+
* Query param: Feature ids to include, comma-separated (e.g.
|
|
117
|
+
* `?featureIds=ai-tokens,seats`), up to 100. Omit both featureIds and currencyIds
|
|
118
|
+
* for tree mode — every node in the hierarchy with no usage configuration
|
|
119
|
+
* attached.
|
|
120
|
+
*/
|
|
121
|
+
featureIds?: Array<string>;
|
|
122
|
+
/**
|
|
123
|
+
* Query param: Only nodes with utilization ≥ this value (e.g. 0.8 for ≥80%, 1 for
|
|
124
|
+
* at/over limit).
|
|
125
|
+
*/
|
|
126
|
+
minUtilization?: number;
|
|
127
|
+
/**
|
|
128
|
+
* Query param: Sort direction: `asc` or `desc` (default `desc`).
|
|
129
|
+
*/
|
|
130
|
+
order?: 'asc' | 'desc';
|
|
131
|
+
/**
|
|
132
|
+
* Query param: Filter by configuration scope: `all` (default), `nodeWide` (`[]`
|
|
133
|
+
* only), or `scoped` (non-empty only).
|
|
134
|
+
*/
|
|
135
|
+
scope?: 'all' | 'nodeWide' | 'scoped';
|
|
136
|
+
/**
|
|
137
|
+
* Query param: Sort key: `utilization` (default, cross-capability-safe),
|
|
138
|
+
* `currentUsage`, `usageLimit`, `scopeSize`, `id`, or `createdAt`.
|
|
139
|
+
*/
|
|
140
|
+
sortBy?: 'utilization' | 'currentUsage' | 'usageLimit' | 'scopeSize' | 'id' | 'createdAt';
|
|
141
|
+
/**
|
|
142
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
143
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
144
|
+
*/
|
|
145
|
+
'X-ACCOUNT-ID'?: string;
|
|
146
|
+
/**
|
|
147
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
148
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
149
|
+
* intrinsic to the key).
|
|
150
|
+
*/
|
|
151
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
152
|
+
}
|
|
153
|
+
export declare namespace Governance {
|
|
154
|
+
export { type GovernanceListResponse as GovernanceListResponse, type GovernanceListResponsesMyCursorIDPage as GovernanceListResponsesMyCursorIDPage, type GovernanceListParams as GovernanceListParams, };
|
|
155
|
+
}
|
|
156
|
+
//# sourceMappingURL=governance.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"governance.d.ts","sourceRoot":"","sources":["../../../src/resources/v1-beta/customers/governance.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,kCAA+B;AACrD,OAAO,EAAE,cAAc,EAAE,KAAK,oBAAoB,EAAE,WAAW,EAAE,oCAAiC;AAElG,OAAO,EAAE,cAAc,EAAE,6CAA0C;AAGnE,qBAAa,UAAW,SAAQ,WAAW;IACzC;;;;;;;;;;;;;;;;OAgBG;IACH,IAAI,CACF,EAAE,EAAE,MAAM,EACV,MAAM,GAAE,oBAAoB,GAAG,IAAI,GAAG,SAAc,EACpD,OAAO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AAM,CAAC;IAExB;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;IAEvB;;;OAGG;IACH,KAAK,CAAC,EAAE,KAAK,GAAG,UAAU,GAAG,QAAQ,CAAC;IAEtC;;;OAGG;IACH,MAAM,CAAC,EAAE,aAAa,GAAG,cAAc,GAAG,YAAY,GAAG,WAAW,GAAG,IAAI,GAAG,WAAW,CAAC;IAE1F;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED,MAAM,CAAC,OAAO,WAAW,UAAU,CAAC;IAClC,OAAO,EACL,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,qCAAqC,IAAI,qCAAqC,EACnF,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;CACH"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Governance = void 0;
|
|
5
|
+
const resource_1 = require("../../../core/resource.js");
|
|
6
|
+
const pagination_1 = require("../../../core/pagination.js");
|
|
7
|
+
const headers_1 = require("../../../internal/headers.js");
|
|
8
|
+
const path_1 = require("../../../internal/utils/path.js");
|
|
9
|
+
class Governance extends resource_1.APIResource {
|
|
10
|
+
/**
|
|
11
|
+
* Queries the customer's governance hierarchy tree, returning a cursor-paginated
|
|
12
|
+
* list of nodes with their usage configuration (limit, cadence, scope) and current
|
|
13
|
+
* usage, sortable and filterable by usage. Each node carries `parentId` so the
|
|
14
|
+
* tree can be rebuilt client-side. Usage is read from a periodically-refreshed
|
|
15
|
+
* read model and never gates access.
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```ts
|
|
19
|
+
* // Automatically fetches more pages as needed.
|
|
20
|
+
* for await (const governanceListResponse of client.v1Beta.customers.governance.list(
|
|
21
|
+
* 'id',
|
|
22
|
+
* )) {
|
|
23
|
+
* // ...
|
|
24
|
+
* }
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
27
|
+
list(id, params = {}, options) {
|
|
28
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...query } = params ?? {};
|
|
29
|
+
return this._client.getAPIList((0, path_1.path) `/api/v1-beta/customers/${id}/governance`, (pagination_1.MyCursorIDPage), {
|
|
30
|
+
query,
|
|
31
|
+
...options,
|
|
32
|
+
headers: (0, headers_1.buildHeaders)([
|
|
33
|
+
{
|
|
34
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
35
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
36
|
+
},
|
|
37
|
+
options?.headers,
|
|
38
|
+
]),
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
exports.Governance = Governance;
|
|
43
|
+
//# sourceMappingURL=governance.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"governance.js","sourceRoot":"","sources":["../../../src/resources/v1-beta/customers/governance.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AACrD,4DAAkG;AAClG,0DAAyD;AAEzD,0DAAoD;AAEpD,MAAa,UAAW,SAAQ,sBAAW;IACzC;;;;;;;;;;;;;;;;OAgBG;IACH,IAAI,CACF,EAAU,EACV,SAAkD,EAAE,EACpD,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,CAC5B,IAAA,WAAI,EAAA,0BAA0B,EAAE,aAAa,EAC7C,CAAA,2BAAsC,CAAA,EACtC;YACE,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,CACF,CAAC;IACJ,CAAC;CACF;AAxCD,gCAwCC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../../core/resource.mjs";
|
|
3
|
+
import { MyCursorIDPage } from "../../../core/pagination.mjs";
|
|
4
|
+
import { buildHeaders } from "../../../internal/headers.mjs";
|
|
5
|
+
import { path } from "../../../internal/utils/path.mjs";
|
|
6
|
+
export class Governance extends APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* Queries the customer's governance hierarchy tree, returning a cursor-paginated
|
|
9
|
+
* list of nodes with their usage configuration (limit, cadence, scope) and current
|
|
10
|
+
* usage, sortable and filterable by usage. Each node carries `parentId` so the
|
|
11
|
+
* tree can be rebuilt client-side. Usage is read from a periodically-refreshed
|
|
12
|
+
* read model and never gates access.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```ts
|
|
16
|
+
* // Automatically fetches more pages as needed.
|
|
17
|
+
* for await (const governanceListResponse of client.v1Beta.customers.governance.list(
|
|
18
|
+
* 'id',
|
|
19
|
+
* )) {
|
|
20
|
+
* // ...
|
|
21
|
+
* }
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
list(id, params = {}, options) {
|
|
25
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...query } = params ?? {};
|
|
26
|
+
return this._client.getAPIList(path `/api/v1-beta/customers/${id}/governance`, (MyCursorIDPage), {
|
|
27
|
+
query,
|
|
28
|
+
...options,
|
|
29
|
+
headers: buildHeaders([
|
|
30
|
+
{
|
|
31
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
32
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
33
|
+
},
|
|
34
|
+
options?.headers,
|
|
35
|
+
]),
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
//# sourceMappingURL=governance.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"governance.mjs","sourceRoot":"","sources":["../../../src/resources/v1-beta/customers/governance.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,mCAA+B;AACrD,OAAO,EAAE,cAAc,EAA0C,qCAAiC;AAClG,OAAO,EAAE,YAAY,EAAE,sCAAkC;AAEzD,OAAO,EAAE,IAAI,EAAE,yCAAqC;AAEpD,MAAM,OAAO,UAAW,SAAQ,WAAW;IACzC;;;;;;;;;;;;;;;;OAgBG;IACH,IAAI,CACF,EAAU,EACV,SAAkD,EAAE,EACpD,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,CAC5B,IAAI,CAAA,0BAA0B,EAAE,aAAa,EAC7C,CAAA,cAAsC,CAAA,EACtC;YACE,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,CACF,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -2,4 +2,5 @@ export { Assignments, type AssignmentListResponse, type AssignmentUpsertResponse
|
|
|
2
2
|
export { Customers } from "./customers.mjs";
|
|
3
3
|
export { Entities, type EntityRetrieveResponse, type EntityListResponse, type EntityArchiveResponse, type EntityUnarchiveResponse, type EntityUpsertResponse, type EntityRetrieveParams, type EntityListParams, type EntityArchiveParams, type EntityUnarchiveParams, type EntityUpsertParams, type EntityListResponsesMyCursorIDPage, } from "./entities.mjs";
|
|
4
4
|
export { Entitlements, type EntitlementCheckResponse, type EntitlementCheckParams } from "./entitlements.mjs";
|
|
5
|
+
export { Governance, type GovernanceListResponse, type GovernanceListParams, type GovernanceListResponsesMyCursorIDPage, } from "./governance.mjs";
|
|
5
6
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/v1-beta/customers/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,WAAW,EACX,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,qCAAqC,GAC3C,0BAAsB;AACvB,OAAO,EAAE,SAAS,EAAE,wBAAoB;AACxC,OAAO,EACL,QAAQ,EACR,KAAK,sBAAsB,EAC3B,KAAK,kBAAkB,EACvB,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,gBAAgB,EACrB,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,kBAAkB,EACvB,KAAK,iCAAiC,GACvC,uBAAmB;AACpB,OAAO,EAAE,YAAY,EAAE,KAAK,wBAAwB,EAAE,KAAK,sBAAsB,EAAE,2BAAuB"}
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/v1-beta/customers/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,WAAW,EACX,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,qCAAqC,GAC3C,0BAAsB;AACvB,OAAO,EAAE,SAAS,EAAE,wBAAoB;AACxC,OAAO,EACL,QAAQ,EACR,KAAK,sBAAsB,EAC3B,KAAK,kBAAkB,EACvB,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,gBAAgB,EACrB,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,kBAAkB,EACvB,KAAK,iCAAiC,GACvC,uBAAmB;AACpB,OAAO,EAAE,YAAY,EAAE,KAAK,wBAAwB,EAAE,KAAK,sBAAsB,EAAE,2BAAuB;AAC1G,OAAO,EACL,UAAU,EACV,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,qCAAqC,GAC3C,yBAAqB"}
|
|
@@ -2,4 +2,5 @@ export { Assignments, type AssignmentListResponse, type AssignmentUpsertResponse
|
|
|
2
2
|
export { Customers } from "./customers.js";
|
|
3
3
|
export { Entities, type EntityRetrieveResponse, type EntityListResponse, type EntityArchiveResponse, type EntityUnarchiveResponse, type EntityUpsertResponse, type EntityRetrieveParams, type EntityListParams, type EntityArchiveParams, type EntityUnarchiveParams, type EntityUpsertParams, type EntityListResponsesMyCursorIDPage, } from "./entities.js";
|
|
4
4
|
export { Entitlements, type EntitlementCheckResponse, type EntitlementCheckParams } from "./entitlements.js";
|
|
5
|
+
export { Governance, type GovernanceListResponse, type GovernanceListParams, type GovernanceListResponsesMyCursorIDPage, } from "./governance.js";
|
|
5
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/v1-beta/customers/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,WAAW,EACX,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,qCAAqC,GAC3C,yBAAsB;AACvB,OAAO,EAAE,SAAS,EAAE,uBAAoB;AACxC,OAAO,EACL,QAAQ,EACR,KAAK,sBAAsB,EAC3B,KAAK,kBAAkB,EACvB,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,gBAAgB,EACrB,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,kBAAkB,EACvB,KAAK,iCAAiC,GACvC,sBAAmB;AACpB,OAAO,EAAE,YAAY,EAAE,KAAK,wBAAwB,EAAE,KAAK,sBAAsB,EAAE,0BAAuB"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/v1-beta/customers/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,WAAW,EACX,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,qCAAqC,GAC3C,yBAAsB;AACvB,OAAO,EAAE,SAAS,EAAE,uBAAoB;AACxC,OAAO,EACL,QAAQ,EACR,KAAK,sBAAsB,EAC3B,KAAK,kBAAkB,EACvB,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,gBAAgB,EACrB,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,kBAAkB,EACvB,KAAK,iCAAiC,GACvC,sBAAmB;AACpB,OAAO,EAAE,YAAY,EAAE,KAAK,wBAAwB,EAAE,KAAK,sBAAsB,EAAE,0BAAuB;AAC1G,OAAO,EACL,UAAU,EACV,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,qCAAqC,GAC3C,wBAAqB"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.Entitlements = exports.Entities = exports.Customers = exports.Assignments = void 0;
|
|
4
|
+
exports.Governance = exports.Entitlements = exports.Entities = exports.Customers = exports.Assignments = void 0;
|
|
5
5
|
var assignments_1 = require("./assignments.js");
|
|
6
6
|
Object.defineProperty(exports, "Assignments", { enumerable: true, get: function () { return assignments_1.Assignments; } });
|
|
7
7
|
var customers_1 = require("./customers.js");
|
|
@@ -10,4 +10,6 @@ var entities_1 = require("./entities.js");
|
|
|
10
10
|
Object.defineProperty(exports, "Entities", { enumerable: true, get: function () { return entities_1.Entities; } });
|
|
11
11
|
var entitlements_1 = require("./entitlements.js");
|
|
12
12
|
Object.defineProperty(exports, "Entitlements", { enumerable: true, get: function () { return entitlements_1.Entitlements; } });
|
|
13
|
+
var governance_1 = require("./governance.js");
|
|
14
|
+
Object.defineProperty(exports, "Governance", { enumerable: true, get: function () { return governance_1.Governance; } });
|
|
13
15
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/v1-beta/customers/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAOuB;AANrB,0GAAA,WAAW,OAAA;AAOb,4CAAwC;AAA/B,sGAAA,SAAS,OAAA;AAClB,0CAaoB;AAZlB,oGAAA,QAAQ,OAAA;AAaV,kDAA0G;AAAjG,4GAAA,YAAY,OAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/v1-beta/customers/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAOuB;AANrB,0GAAA,WAAW,OAAA;AAOb,4CAAwC;AAA/B,sGAAA,SAAS,OAAA;AAClB,0CAaoB;AAZlB,oGAAA,QAAQ,OAAA;AAaV,kDAA0G;AAAjG,4GAAA,YAAY,OAAA;AACrB,8CAKsB;AAJpB,wGAAA,UAAU,OAAA"}
|
|
@@ -3,4 +3,5 @@ export { Assignments, } from "./assignments.mjs";
|
|
|
3
3
|
export { Customers } from "./customers.mjs";
|
|
4
4
|
export { Entities, } from "./entities.mjs";
|
|
5
5
|
export { Entitlements } from "./entitlements.mjs";
|
|
6
|
+
export { Governance, } from "./governance.mjs";
|
|
6
7
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/v1-beta/customers/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EACL,WAAW,GAMZ,0BAAsB;AACvB,OAAO,EAAE,SAAS,EAAE,wBAAoB;AACxC,OAAO,EACL,QAAQ,GAYT,uBAAmB;AACpB,OAAO,EAAE,YAAY,EAA8D,2BAAuB"}
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/v1-beta/customers/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EACL,WAAW,GAMZ,0BAAsB;AACvB,OAAO,EAAE,SAAS,EAAE,wBAAoB;AACxC,OAAO,EACL,QAAQ,GAYT,uBAAmB;AACpB,OAAO,EAAE,YAAY,EAA8D,2BAAuB;AAC1G,OAAO,EACL,UAAU,GAIX,yBAAqB"}
|
package/resources/v2/usage.d.mts
CHANGED
|
@@ -242,9 +242,10 @@ export declare namespace UsageReportParams {
|
|
|
242
242
|
*/
|
|
243
243
|
featureId: string;
|
|
244
244
|
/**
|
|
245
|
-
* The value to report for usage.
|
|
246
|
-
*
|
|
247
|
-
*
|
|
245
|
+
* The value to report for usage. Fractional values are accepted and rounded half
|
|
246
|
+
* away from zero to 5 decimal places. A value with a fractional part must have an
|
|
247
|
+
* absolute value below 34,359,738,368 (2^35); whole numbers are accepted up to
|
|
248
|
+
* ±9,007,199,254,740,991.
|
|
248
249
|
*/
|
|
249
250
|
value: number;
|
|
250
251
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usage.d.mts","sourceRoot":"","sources":["../../src/resources/v2/usage.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,mCAA+B;AAEpD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAEhE;;GAEG;AACH,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;;OAIG;IACH,MAAM,CAAC,MAAM,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,mBAAmB,CAAC;CAc7F;AAED;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,IAAI,EAAE,mBAAmB,CAAC,IAAI,CAAC;CAChC;AAED,yBAAiB,mBAAmB,CAAC;IACnC;;OAEG;IACH,UAAiB,IAAI;QACnB;;WAEG;QACH,MAAM,EAAE,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAE1B;;;;WAIG;QACH,OAAO,CAAC,EAAE,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAE7B;;;;;WAKG;QACH,QAAQ,CAAC,EAAE,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;KAC/B;IAED,UAAiB,IAAI,CAAC;QACpB;;WAEG;QACH,UAAiB,KAAK;YACpB;;eAEG;YACH,EAAE,EAAE,MAAM,CAAC;YAEX;;eAEG;YACH,SAAS,EAAE,MAAM,CAAC;YAElB;;eAEG;YACH,UAAU,EAAE,MAAM,CAAC;YAEnB;;eAEG;YAC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,OAAO,CAAA;SAAE,CAAC;QAE1D;;;;WAIG;QACH,cAAc,CAAC,EAAE,MAAM,CAAC;QAExB;;;;;WAKG;QACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QAE3B;;;;WAIG;QACH,cAAc,CAAC,EAAE,OAAO,GAAG,KAAK,CAAC;KAClC;CACF;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EAAE,KAAK,mBAAmB,IAAI,mBAAmB,EAAE,KAAK,iBAAiB,IAAI,iBAAiB,EAAE,CAAC;CACzG"}
|
package/resources/v2/usage.d.ts
CHANGED
|
@@ -242,9 +242,10 @@ export declare namespace UsageReportParams {
|
|
|
242
242
|
*/
|
|
243
243
|
featureId: string;
|
|
244
244
|
/**
|
|
245
|
-
* The value to report for usage.
|
|
246
|
-
*
|
|
247
|
-
*
|
|
245
|
+
* The value to report for usage. Fractional values are accepted and rounded half
|
|
246
|
+
* away from zero to 5 decimal places. A value with a fractional part must have an
|
|
247
|
+
* absolute value below 34,359,738,368 (2^35); whole numbers are accepted up to
|
|
248
|
+
* ±9,007,199,254,740,991.
|
|
248
249
|
*/
|
|
249
250
|
value: number;
|
|
250
251
|
/**
|