@stigg/typescript 0.1.0-beta.24 → 0.1.0-beta.26
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 +16 -0
- package/package.json +1 -1
- package/resources/v1/events/beta/beta.d.mts +10 -0
- package/resources/v1/events/beta/beta.d.mts.map +1 -0
- package/resources/v1/events/beta/beta.d.ts +10 -0
- package/resources/v1/events/beta/beta.d.ts.map +1 -0
- package/resources/v1/events/beta/beta.js +17 -0
- package/resources/v1/events/beta/beta.js.map +1 -0
- package/resources/v1/events/beta/beta.mjs +12 -0
- package/resources/v1/events/beta/beta.mjs.map +1 -0
- package/resources/v1/events/beta/customers.d.mts +159 -0
- package/resources/v1/events/beta/customers.d.mts.map +1 -0
- package/resources/v1/events/beta/customers.d.ts +159 -0
- package/resources/v1/events/beta/customers.d.ts.map +1 -0
- package/resources/v1/events/beta/customers.js +32 -0
- package/resources/v1/events/beta/customers.js.map +1 -0
- package/resources/v1/events/beta/customers.mjs +28 -0
- package/resources/v1/events/beta/customers.mjs.map +1 -0
- package/resources/v1/events/beta/index.d.mts +3 -0
- package/resources/v1/events/beta/index.d.mts.map +1 -0
- package/resources/v1/events/beta/index.d.ts +3 -0
- package/resources/v1/events/beta/index.d.ts.map +1 -0
- package/resources/v1/events/beta/index.js +9 -0
- package/resources/v1/events/beta/index.js.map +1 -0
- package/resources/v1/events/beta/index.mjs +4 -0
- package/resources/v1/events/beta/index.mjs.map +1 -0
- package/resources/v1/events/beta.d.mts +2 -0
- package/resources/v1/events/beta.d.mts.map +1 -0
- package/resources/v1/events/beta.d.ts +2 -0
- package/resources/v1/events/beta.d.ts.map +1 -0
- package/resources/v1/events/beta.js +6 -0
- package/resources/v1/events/beta.js.map +1 -0
- package/resources/v1/events/beta.mjs +3 -0
- package/resources/v1/events/beta.mjs.map +1 -0
- package/resources/v1/events/events.d.mts +4 -0
- package/resources/v1/events/events.d.mts.map +1 -1
- package/resources/v1/events/events.d.ts +4 -0
- package/resources/v1/events/events.d.ts.map +1 -1
- package/resources/v1/events/events.js +4 -0
- package/resources/v1/events/events.js.map +1 -1
- package/resources/v1/events/events.mjs +4 -0
- package/resources/v1/events/events.mjs.map +1 -1
- package/resources/v1/events/index.d.mts +1 -0
- package/resources/v1/events/index.d.mts.map +1 -1
- package/resources/v1/events/index.d.ts +1 -0
- package/resources/v1/events/index.d.ts.map +1 -1
- package/resources/v1/events/index.js +5 -3
- package/resources/v1/events/index.js.map +1 -1
- package/resources/v1/events/index.mjs +1 -0
- package/resources/v1/events/index.mjs.map +1 -1
- package/resources/v1-beta/customers/assignments.d.mts +3 -3
- package/resources/v1-beta/customers/assignments.d.mts.map +1 -1
- package/resources/v1-beta/customers/assignments.d.ts +3 -3
- package/resources/v1-beta/customers/assignments.d.ts.map +1 -1
- package/src/resources/v1/events/beta/beta.ts +19 -0
- package/src/resources/v1/events/beta/customers.ts +211 -0
- package/src/resources/v1/events/beta/index.ts +8 -0
- package/src/resources/v1/events/beta.ts +3 -0
- package/src/resources/v1/events/events.ts +6 -0
- package/src/resources/v1/events/index.ts +1 -0
- package/src/resources/v1-beta/customers/assignments.ts +3 -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
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.1.0-beta.26 (2026-06-18)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.1.0-beta.25...v0.1.0-beta.26](https://github.com/stiggio/stigg-typescript/compare/v0.1.0-beta.25...v0.1.0-beta.26)
|
|
6
|
+
|
|
7
|
+
### Bug Fixes
|
|
8
|
+
|
|
9
|
+
* **types:** make usageLimit nullable in assignments ([e3354ca](https://github.com/stiggio/stigg-typescript/commit/e3354ca97b716b45f9cb49359486406feb065792))
|
|
10
|
+
|
|
11
|
+
## 0.1.0-beta.25 (2026-06-18)
|
|
12
|
+
|
|
13
|
+
Full Changelog: [v0.1.0-beta.24...v0.1.0-beta.25](https://github.com/stiggio/stigg-typescript/compare/v0.1.0-beta.24...v0.1.0-beta.25)
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* **api:** add retrieveGovernance method to v1.events.beta.customers ([1ac7cef](https://github.com/stiggio/stigg-typescript/commit/1ac7cef39f76059aa9d0f48ec6f8000aafafcc36))
|
|
18
|
+
|
|
3
19
|
## 0.1.0-beta.24 (2026-06-17)
|
|
4
20
|
|
|
5
21
|
Full Changelog: [v0.1.0-beta.23...v0.1.0-beta.24](https://github.com/stiggio/stigg-typescript/compare/v0.1.0-beta.23...v0.1.0-beta.24)
|
package/package.json
CHANGED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { APIResource } from "../../../../core/resource.mjs";
|
|
2
|
+
import * as CustomersAPI from "./customers.mjs";
|
|
3
|
+
import { CustomerRetrieveGovernanceParams, CustomerRetrieveGovernanceResponse, Customers } from "./customers.mjs";
|
|
4
|
+
export declare class Beta extends APIResource {
|
|
5
|
+
customers: CustomersAPI.Customers;
|
|
6
|
+
}
|
|
7
|
+
export declare namespace Beta {
|
|
8
|
+
export { Customers as Customers, type CustomerRetrieveGovernanceResponse as CustomerRetrieveGovernanceResponse, type CustomerRetrieveGovernanceParams as CustomerRetrieveGovernanceParams, };
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=beta.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"beta.d.mts","sourceRoot":"","sources":["../../../../src/resources/v1/events/beta/beta.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,sCAAkC;AACxD,OAAO,KAAK,YAAY,wBAAoB;AAC5C,OAAO,EAAE,gCAAgC,EAAE,kCAAkC,EAAE,SAAS,EAAE,wBAAoB;AAE9G,qBAAa,IAAK,SAAQ,WAAW;IACnC,SAAS,EAAE,YAAY,CAAC,SAAS,CAA4C;CAC9E;AAID,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,OAAO,EACL,SAAS,IAAI,SAAS,EACtB,KAAK,kCAAkC,IAAI,kCAAkC,EAC7E,KAAK,gCAAgC,IAAI,gCAAgC,GAC1E,CAAC;CACH"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { APIResource } from "../../../../core/resource.js";
|
|
2
|
+
import * as CustomersAPI from "./customers.js";
|
|
3
|
+
import { CustomerRetrieveGovernanceParams, CustomerRetrieveGovernanceResponse, Customers } from "./customers.js";
|
|
4
|
+
export declare class Beta extends APIResource {
|
|
5
|
+
customers: CustomersAPI.Customers;
|
|
6
|
+
}
|
|
7
|
+
export declare namespace Beta {
|
|
8
|
+
export { Customers as Customers, type CustomerRetrieveGovernanceResponse as CustomerRetrieveGovernanceResponse, type CustomerRetrieveGovernanceParams as CustomerRetrieveGovernanceParams, };
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=beta.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"beta.d.ts","sourceRoot":"","sources":["../../../../src/resources/v1/events/beta/beta.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,qCAAkC;AACxD,OAAO,KAAK,YAAY,uBAAoB;AAC5C,OAAO,EAAE,gCAAgC,EAAE,kCAAkC,EAAE,SAAS,EAAE,uBAAoB;AAE9G,qBAAa,IAAK,SAAQ,WAAW;IACnC,SAAS,EAAE,YAAY,CAAC,SAAS,CAA4C;CAC9E;AAID,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,OAAO,EACL,SAAS,IAAI,SAAS,EACtB,KAAK,kCAAkC,IAAI,kCAAkC,EAC7E,KAAK,gCAAgC,IAAI,gCAAgC,GAC1E,CAAC;CACH"}
|
|
@@ -0,0 +1,17 @@
|
|
|
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.Beta = void 0;
|
|
5
|
+
const tslib_1 = require("../../../../internal/tslib.js");
|
|
6
|
+
const resource_1 = require("../../../../core/resource.js");
|
|
7
|
+
const CustomersAPI = tslib_1.__importStar(require("./customers.js"));
|
|
8
|
+
const customers_1 = require("./customers.js");
|
|
9
|
+
class Beta extends resource_1.APIResource {
|
|
10
|
+
constructor() {
|
|
11
|
+
super(...arguments);
|
|
12
|
+
this.customers = new CustomersAPI.Customers(this._client);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
exports.Beta = Beta;
|
|
16
|
+
Beta.Customers = customers_1.Customers;
|
|
17
|
+
//# sourceMappingURL=beta.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"beta.js","sourceRoot":"","sources":["../../../../src/resources/v1/events/beta/beta.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,2DAAwD;AACxD,qEAA4C;AAC5C,8CAA8G;AAE9G,MAAa,IAAK,SAAQ,sBAAW;IAArC;;QACE,cAAS,GAA2B,IAAI,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC/E,CAAC;CAAA;AAFD,oBAEC;AAED,IAAI,CAAC,SAAS,GAAG,qBAAS,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../../../core/resource.mjs";
|
|
3
|
+
import * as CustomersAPI from "./customers.mjs";
|
|
4
|
+
import { Customers } from "./customers.mjs";
|
|
5
|
+
export class Beta extends APIResource {
|
|
6
|
+
constructor() {
|
|
7
|
+
super(...arguments);
|
|
8
|
+
this.customers = new CustomersAPI.Customers(this._client);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
Beta.Customers = Customers;
|
|
12
|
+
//# sourceMappingURL=beta.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"beta.mjs","sourceRoot":"","sources":["../../../../src/resources/v1/events/beta/beta.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,sCAAkC;AACxD,OAAO,KAAK,YAAY,wBAAoB;AAC5C,OAAO,EAAwE,SAAS,EAAE,wBAAoB;AAE9G,MAAM,OAAO,IAAK,SAAQ,WAAW;IAArC;;QACE,cAAS,GAA2B,IAAI,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC/E,CAAC;CAAA;AAED,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC"}
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
import { APIResource } from "../../../../core/resource.mjs";
|
|
2
|
+
import { APIPromise } from "../../../../core/api-promise.mjs";
|
|
3
|
+
import { RequestOptions } from "../../../../internal/request-options.mjs";
|
|
4
|
+
export declare class Customers 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
|
+
retrieveGovernance(id: string, params?: CustomerRetrieveGovernanceParams | null | undefined, options?: RequestOptions): APIPromise<CustomerRetrieveGovernanceResponse>;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Paginated list of governance tree nodes, each with its usage configuration and
|
|
16
|
+
* current usage.
|
|
17
|
+
*/
|
|
18
|
+
export interface CustomerRetrieveGovernanceResponse {
|
|
19
|
+
data: Array<CustomerRetrieveGovernanceResponse.Data>;
|
|
20
|
+
pagination: CustomerRetrieveGovernanceResponse.Pagination;
|
|
21
|
+
}
|
|
22
|
+
export declare namespace CustomerRetrieveGovernanceResponse {
|
|
23
|
+
/**
|
|
24
|
+
* A node of the governance hierarchy tree with its usage configuration (limit,
|
|
25
|
+
* cadence, scope) and current usage. Usage is read from a periodically-refreshed
|
|
26
|
+
* read model and may lag the live counter by a short interval; it never gates
|
|
27
|
+
* access.
|
|
28
|
+
*/
|
|
29
|
+
interface Data {
|
|
30
|
+
/**
|
|
31
|
+
* Usage-reset cadence. Currently only `MONTH` is supported.
|
|
32
|
+
*/
|
|
33
|
+
cadence: 'MONTH' | null;
|
|
34
|
+
/**
|
|
35
|
+
* Usage consumed in the current cadence period (may lag the live counter by a
|
|
36
|
+
* short interval).
|
|
37
|
+
*/
|
|
38
|
+
currentUsage: number | null;
|
|
39
|
+
/**
|
|
40
|
+
* External id of the entity at this node.
|
|
41
|
+
*/
|
|
42
|
+
entityId: string;
|
|
43
|
+
/**
|
|
44
|
+
* External id of the entity type (e.g. `team`, `user`).
|
|
45
|
+
*/
|
|
46
|
+
entityType: string;
|
|
47
|
+
/**
|
|
48
|
+
* External id of the parent entity in the tree; `null` for a root. Use it to
|
|
49
|
+
* rebuild the tree.
|
|
50
|
+
*/
|
|
51
|
+
parentId: string | null;
|
|
52
|
+
/**
|
|
53
|
+
* The configuration scope (entity ids). Empty is the node-wide configuration; a
|
|
54
|
+
* non-empty set is a dimension-scoped sub-configuration.
|
|
55
|
+
*/
|
|
56
|
+
scopeEntityIds: Array<string>;
|
|
57
|
+
/**
|
|
58
|
+
* Hard usage limit for this node per cadence period.
|
|
59
|
+
*/
|
|
60
|
+
usageLimit: number | null;
|
|
61
|
+
/**
|
|
62
|
+
* Exclusive end of the cadence period — when usage resets; `null` once the period
|
|
63
|
+
* has rolled over.
|
|
64
|
+
*/
|
|
65
|
+
usagePeriodEnd: string | null;
|
|
66
|
+
/**
|
|
67
|
+
* Start of the cadence period the usage snapshot belongs to; `null` once the
|
|
68
|
+
* period has rolled over.
|
|
69
|
+
*/
|
|
70
|
+
usagePeriodStart: string | null;
|
|
71
|
+
/**
|
|
72
|
+
* `currentUsage / usageLimit` (1 when usageLimit is 0 — always at limit). The
|
|
73
|
+
* cross-capability-safe sort key.
|
|
74
|
+
*/
|
|
75
|
+
utilization: number | null;
|
|
76
|
+
/**
|
|
77
|
+
* The metered currency refId (present when the configured capability is a credit
|
|
78
|
+
* currency).
|
|
79
|
+
*/
|
|
80
|
+
currencyId?: string;
|
|
81
|
+
/**
|
|
82
|
+
* The metered feature refId (present when the configured capability is a feature).
|
|
83
|
+
*/
|
|
84
|
+
featureId?: string;
|
|
85
|
+
}
|
|
86
|
+
interface Pagination {
|
|
87
|
+
/**
|
|
88
|
+
* Cursor for fetching the next page of results, or null if no additional pages
|
|
89
|
+
* exist
|
|
90
|
+
*/
|
|
91
|
+
next: string | null;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
export interface CustomerRetrieveGovernanceParams {
|
|
95
|
+
/**
|
|
96
|
+
* Query param: Return items that come after this cursor
|
|
97
|
+
*/
|
|
98
|
+
after?: string;
|
|
99
|
+
/**
|
|
100
|
+
* Query param: Currency ids to include, repeated per value (e.g.
|
|
101
|
+
* `?currencyIds=credits`). Omit both featureIds and currencyIds for tree mode.
|
|
102
|
+
*/
|
|
103
|
+
currencyIds?: Array<string>;
|
|
104
|
+
/**
|
|
105
|
+
* Query param: Case-insensitive substring match on the entity id (`%`/`_` matched
|
|
106
|
+
* literally).
|
|
107
|
+
*/
|
|
108
|
+
entityIdSearch?: string;
|
|
109
|
+
/**
|
|
110
|
+
* Query param: Filter to one or more entity types, repeated per value (e.g.
|
|
111
|
+
* `?entityTypeIds=team&entityTypeIds=user`).
|
|
112
|
+
*/
|
|
113
|
+
entityTypeIds?: Array<string>;
|
|
114
|
+
/**
|
|
115
|
+
* Query param: Feature ids to include, repeated per value (e.g.
|
|
116
|
+
* `?featureIds=ai-tokens&featureIds=seats`). Omit both featureIds and currencyIds
|
|
117
|
+
* for tree mode — every node in the hierarchy with no usage configuration
|
|
118
|
+
* attached.
|
|
119
|
+
*/
|
|
120
|
+
featureIds?: Array<string>;
|
|
121
|
+
/**
|
|
122
|
+
* Query param: Maximum number of items to return
|
|
123
|
+
*/
|
|
124
|
+
limit?: number;
|
|
125
|
+
/**
|
|
126
|
+
* Query param: Only nodes with utilization ≥ this value (e.g. 0.8 for ≥80%, 1 for
|
|
127
|
+
* at/over limit).
|
|
128
|
+
*/
|
|
129
|
+
minUtilization?: number;
|
|
130
|
+
/**
|
|
131
|
+
* Query param: Sort direction: `asc` or `desc` (default `desc`).
|
|
132
|
+
*/
|
|
133
|
+
order?: 'asc' | 'desc';
|
|
134
|
+
/**
|
|
135
|
+
* Query param: Filter by configuration scope: `all` (default), `nodeWide` (`[]`
|
|
136
|
+
* only), or `scoped` (non-empty only).
|
|
137
|
+
*/
|
|
138
|
+
scope?: 'all' | 'nodeWide' | 'scoped';
|
|
139
|
+
/**
|
|
140
|
+
* Query param: Sort key: `utilization` (default, cross-capability-safe),
|
|
141
|
+
* `currentUsage`, `usageLimit`, `scopeSize`, `id`, or `createdAt`.
|
|
142
|
+
*/
|
|
143
|
+
sortBy?: 'utilization' | 'currentUsage' | 'usageLimit' | 'scopeSize' | 'id' | 'createdAt';
|
|
144
|
+
/**
|
|
145
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
146
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
147
|
+
*/
|
|
148
|
+
'X-ACCOUNT-ID'?: string;
|
|
149
|
+
/**
|
|
150
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
151
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
152
|
+
* intrinsic to the key).
|
|
153
|
+
*/
|
|
154
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
155
|
+
}
|
|
156
|
+
export declare namespace Customers {
|
|
157
|
+
export { type CustomerRetrieveGovernanceResponse as CustomerRetrieveGovernanceResponse, type CustomerRetrieveGovernanceParams as CustomerRetrieveGovernanceParams, };
|
|
158
|
+
}
|
|
159
|
+
//# sourceMappingURL=customers.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"customers.d.mts","sourceRoot":"","sources":["../../../../src/resources/v1/events/beta/customers.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,sCAAkC;AACxD,OAAO,EAAE,UAAU,EAAE,yCAAqC;AAE1D,OAAO,EAAE,cAAc,EAAE,iDAA6C;AAGtE,qBAAa,SAAU,SAAQ,WAAW;IACxC;;;;;;OAMG;IACH,kBAAkB,CAChB,EAAE,EAAE,MAAM,EACV,MAAM,GAAE,gCAAgC,GAAG,IAAI,GAAG,SAAc,EAChE,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,kCAAkC,CAAC;CAclD;AAED;;;GAGG;AACH,MAAM,WAAW,kCAAkC;IACjD,IAAI,EAAE,KAAK,CAAC,kCAAkC,CAAC,IAAI,CAAC,CAAC;IAErD,UAAU,EAAE,kCAAkC,CAAC,UAAU,CAAC;CAC3D;AAED,yBAAiB,kCAAkC,CAAC;IAClD;;;;;OAKG;IACH,UAAiB,IAAI;QACnB;;WAEG;QACH,OAAO,EAAE,OAAO,GAAG,IAAI,CAAC;QAExB;;;WAGG;QACH,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;QAE5B;;WAEG;QACH,QAAQ,EAAE,MAAM,CAAC;QAEjB;;WAEG;QACH,UAAU,EAAE,MAAM,CAAC;QAEnB;;;WAGG;QACH,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;QAExB;;;WAGG;QACH,cAAc,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;QAE9B;;WAEG;QACH,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;QAE1B;;;WAGG;QACH,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;QAE9B;;;WAGG;QACH,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;QAEhC;;;WAGG;QACH,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;QAE3B;;;WAGG;QACH,UAAU,CAAC,EAAE,MAAM,CAAC;QAEpB;;WAEG;QACH,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB;IAED,UAAiB,UAAU;QACzB;;;WAGG;QACH,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;KACrB;CACF;AAED,MAAM,WAAW,gCAAgC;IAC/C;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;OAGG;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;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;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,SAAS,CAAC;IACjC,OAAO,EACL,KAAK,kCAAkC,IAAI,kCAAkC,EAC7E,KAAK,gCAAgC,IAAI,gCAAgC,GAC1E,CAAC;CACH"}
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
import { APIResource } from "../../../../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../../../../core/api-promise.js";
|
|
3
|
+
import { RequestOptions } from "../../../../internal/request-options.js";
|
|
4
|
+
export declare class Customers 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
|
+
retrieveGovernance(id: string, params?: CustomerRetrieveGovernanceParams | null | undefined, options?: RequestOptions): APIPromise<CustomerRetrieveGovernanceResponse>;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Paginated list of governance tree nodes, each with its usage configuration and
|
|
16
|
+
* current usage.
|
|
17
|
+
*/
|
|
18
|
+
export interface CustomerRetrieveGovernanceResponse {
|
|
19
|
+
data: Array<CustomerRetrieveGovernanceResponse.Data>;
|
|
20
|
+
pagination: CustomerRetrieveGovernanceResponse.Pagination;
|
|
21
|
+
}
|
|
22
|
+
export declare namespace CustomerRetrieveGovernanceResponse {
|
|
23
|
+
/**
|
|
24
|
+
* A node of the governance hierarchy tree with its usage configuration (limit,
|
|
25
|
+
* cadence, scope) and current usage. Usage is read from a periodically-refreshed
|
|
26
|
+
* read model and may lag the live counter by a short interval; it never gates
|
|
27
|
+
* access.
|
|
28
|
+
*/
|
|
29
|
+
interface Data {
|
|
30
|
+
/**
|
|
31
|
+
* Usage-reset cadence. Currently only `MONTH` is supported.
|
|
32
|
+
*/
|
|
33
|
+
cadence: 'MONTH' | null;
|
|
34
|
+
/**
|
|
35
|
+
* Usage consumed in the current cadence period (may lag the live counter by a
|
|
36
|
+
* short interval).
|
|
37
|
+
*/
|
|
38
|
+
currentUsage: number | null;
|
|
39
|
+
/**
|
|
40
|
+
* External id of the entity at this node.
|
|
41
|
+
*/
|
|
42
|
+
entityId: string;
|
|
43
|
+
/**
|
|
44
|
+
* External id of the entity type (e.g. `team`, `user`).
|
|
45
|
+
*/
|
|
46
|
+
entityType: string;
|
|
47
|
+
/**
|
|
48
|
+
* External id of the parent entity in the tree; `null` for a root. Use it to
|
|
49
|
+
* rebuild the tree.
|
|
50
|
+
*/
|
|
51
|
+
parentId: string | null;
|
|
52
|
+
/**
|
|
53
|
+
* The configuration scope (entity ids). Empty is the node-wide configuration; a
|
|
54
|
+
* non-empty set is a dimension-scoped sub-configuration.
|
|
55
|
+
*/
|
|
56
|
+
scopeEntityIds: Array<string>;
|
|
57
|
+
/**
|
|
58
|
+
* Hard usage limit for this node per cadence period.
|
|
59
|
+
*/
|
|
60
|
+
usageLimit: number | null;
|
|
61
|
+
/**
|
|
62
|
+
* Exclusive end of the cadence period — when usage resets; `null` once the period
|
|
63
|
+
* has rolled over.
|
|
64
|
+
*/
|
|
65
|
+
usagePeriodEnd: string | null;
|
|
66
|
+
/**
|
|
67
|
+
* Start of the cadence period the usage snapshot belongs to; `null` once the
|
|
68
|
+
* period has rolled over.
|
|
69
|
+
*/
|
|
70
|
+
usagePeriodStart: string | null;
|
|
71
|
+
/**
|
|
72
|
+
* `currentUsage / usageLimit` (1 when usageLimit is 0 — always at limit). The
|
|
73
|
+
* cross-capability-safe sort key.
|
|
74
|
+
*/
|
|
75
|
+
utilization: number | null;
|
|
76
|
+
/**
|
|
77
|
+
* The metered currency refId (present when the configured capability is a credit
|
|
78
|
+
* currency).
|
|
79
|
+
*/
|
|
80
|
+
currencyId?: string;
|
|
81
|
+
/**
|
|
82
|
+
* The metered feature refId (present when the configured capability is a feature).
|
|
83
|
+
*/
|
|
84
|
+
featureId?: string;
|
|
85
|
+
}
|
|
86
|
+
interface Pagination {
|
|
87
|
+
/**
|
|
88
|
+
* Cursor for fetching the next page of results, or null if no additional pages
|
|
89
|
+
* exist
|
|
90
|
+
*/
|
|
91
|
+
next: string | null;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
export interface CustomerRetrieveGovernanceParams {
|
|
95
|
+
/**
|
|
96
|
+
* Query param: Return items that come after this cursor
|
|
97
|
+
*/
|
|
98
|
+
after?: string;
|
|
99
|
+
/**
|
|
100
|
+
* Query param: Currency ids to include, repeated per value (e.g.
|
|
101
|
+
* `?currencyIds=credits`). Omit both featureIds and currencyIds for tree mode.
|
|
102
|
+
*/
|
|
103
|
+
currencyIds?: Array<string>;
|
|
104
|
+
/**
|
|
105
|
+
* Query param: Case-insensitive substring match on the entity id (`%`/`_` matched
|
|
106
|
+
* literally).
|
|
107
|
+
*/
|
|
108
|
+
entityIdSearch?: string;
|
|
109
|
+
/**
|
|
110
|
+
* Query param: Filter to one or more entity types, repeated per value (e.g.
|
|
111
|
+
* `?entityTypeIds=team&entityTypeIds=user`).
|
|
112
|
+
*/
|
|
113
|
+
entityTypeIds?: Array<string>;
|
|
114
|
+
/**
|
|
115
|
+
* Query param: Feature ids to include, repeated per value (e.g.
|
|
116
|
+
* `?featureIds=ai-tokens&featureIds=seats`). Omit both featureIds and currencyIds
|
|
117
|
+
* for tree mode — every node in the hierarchy with no usage configuration
|
|
118
|
+
* attached.
|
|
119
|
+
*/
|
|
120
|
+
featureIds?: Array<string>;
|
|
121
|
+
/**
|
|
122
|
+
* Query param: Maximum number of items to return
|
|
123
|
+
*/
|
|
124
|
+
limit?: number;
|
|
125
|
+
/**
|
|
126
|
+
* Query param: Only nodes with utilization ≥ this value (e.g. 0.8 for ≥80%, 1 for
|
|
127
|
+
* at/over limit).
|
|
128
|
+
*/
|
|
129
|
+
minUtilization?: number;
|
|
130
|
+
/**
|
|
131
|
+
* Query param: Sort direction: `asc` or `desc` (default `desc`).
|
|
132
|
+
*/
|
|
133
|
+
order?: 'asc' | 'desc';
|
|
134
|
+
/**
|
|
135
|
+
* Query param: Filter by configuration scope: `all` (default), `nodeWide` (`[]`
|
|
136
|
+
* only), or `scoped` (non-empty only).
|
|
137
|
+
*/
|
|
138
|
+
scope?: 'all' | 'nodeWide' | 'scoped';
|
|
139
|
+
/**
|
|
140
|
+
* Query param: Sort key: `utilization` (default, cross-capability-safe),
|
|
141
|
+
* `currentUsage`, `usageLimit`, `scopeSize`, `id`, or `createdAt`.
|
|
142
|
+
*/
|
|
143
|
+
sortBy?: 'utilization' | 'currentUsage' | 'usageLimit' | 'scopeSize' | 'id' | 'createdAt';
|
|
144
|
+
/**
|
|
145
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
146
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
147
|
+
*/
|
|
148
|
+
'X-ACCOUNT-ID'?: string;
|
|
149
|
+
/**
|
|
150
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
151
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
152
|
+
* intrinsic to the key).
|
|
153
|
+
*/
|
|
154
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
155
|
+
}
|
|
156
|
+
export declare namespace Customers {
|
|
157
|
+
export { type CustomerRetrieveGovernanceResponse as CustomerRetrieveGovernanceResponse, type CustomerRetrieveGovernanceParams as CustomerRetrieveGovernanceParams, };
|
|
158
|
+
}
|
|
159
|
+
//# sourceMappingURL=customers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"customers.d.ts","sourceRoot":"","sources":["../../../../src/resources/v1/events/beta/customers.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,qCAAkC;AACxD,OAAO,EAAE,UAAU,EAAE,wCAAqC;AAE1D,OAAO,EAAE,cAAc,EAAE,gDAA6C;AAGtE,qBAAa,SAAU,SAAQ,WAAW;IACxC;;;;;;OAMG;IACH,kBAAkB,CAChB,EAAE,EAAE,MAAM,EACV,MAAM,GAAE,gCAAgC,GAAG,IAAI,GAAG,SAAc,EAChE,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,kCAAkC,CAAC;CAclD;AAED;;;GAGG;AACH,MAAM,WAAW,kCAAkC;IACjD,IAAI,EAAE,KAAK,CAAC,kCAAkC,CAAC,IAAI,CAAC,CAAC;IAErD,UAAU,EAAE,kCAAkC,CAAC,UAAU,CAAC;CAC3D;AAED,yBAAiB,kCAAkC,CAAC;IAClD;;;;;OAKG;IACH,UAAiB,IAAI;QACnB;;WAEG;QACH,OAAO,EAAE,OAAO,GAAG,IAAI,CAAC;QAExB;;;WAGG;QACH,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;QAE5B;;WAEG;QACH,QAAQ,EAAE,MAAM,CAAC;QAEjB;;WAEG;QACH,UAAU,EAAE,MAAM,CAAC;QAEnB;;;WAGG;QACH,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;QAExB;;;WAGG;QACH,cAAc,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;QAE9B;;WAEG;QACH,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;QAE1B;;;WAGG;QACH,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;QAE9B;;;WAGG;QACH,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;QAEhC;;;WAGG;QACH,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;QAE3B;;;WAGG;QACH,UAAU,CAAC,EAAE,MAAM,CAAC;QAEpB;;WAEG;QACH,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB;IAED,UAAiB,UAAU;QACzB;;;WAGG;QACH,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;KACrB;CACF;AAED,MAAM,WAAW,gCAAgC;IAC/C;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;OAGG;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;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;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,SAAS,CAAC;IACjC,OAAO,EACL,KAAK,kCAAkC,IAAI,kCAAkC,EAC7E,KAAK,gCAAgC,IAAI,gCAAgC,GAC1E,CAAC;CACH"}
|
|
@@ -0,0 +1,32 @@
|
|
|
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.Customers = void 0;
|
|
5
|
+
const resource_1 = require("../../../../core/resource.js");
|
|
6
|
+
const headers_1 = require("../../../../internal/headers.js");
|
|
7
|
+
const path_1 = require("../../../../internal/utils/path.js");
|
|
8
|
+
class Customers extends resource_1.APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Queries the customer's governance hierarchy tree, returning a cursor-paginated
|
|
11
|
+
* list of nodes with their usage configuration (limit, cadence, scope) and current
|
|
12
|
+
* usage, sortable and filterable by usage. Each node carries `parentId` so the
|
|
13
|
+
* tree can be rebuilt client-side. Usage is read from a periodically-refreshed
|
|
14
|
+
* read model and never gates access.
|
|
15
|
+
*/
|
|
16
|
+
retrieveGovernance(id, params = {}, options) {
|
|
17
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...query } = params ?? {};
|
|
18
|
+
return this._client.get((0, path_1.path) `/api/v1-beta/customers/${id}/governance`, {
|
|
19
|
+
query,
|
|
20
|
+
...options,
|
|
21
|
+
headers: (0, headers_1.buildHeaders)([
|
|
22
|
+
{
|
|
23
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
24
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
25
|
+
},
|
|
26
|
+
options?.headers,
|
|
27
|
+
]),
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
exports.Customers = Customers;
|
|
32
|
+
//# sourceMappingURL=customers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"customers.js","sourceRoot":"","sources":["../../../../src/resources/v1/events/beta/customers.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,2DAAwD;AAExD,6DAA4D;AAE5D,6DAAuD;AAEvD,MAAa,SAAU,SAAQ,sBAAW;IACxC;;;;;;OAMG;IACH,kBAAkB,CAChB,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,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,0BAA0B,EAAE,aAAa,EAAE;YACrE,KAAK;YACL,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC;gBACpB;oBACE,GAAG,CAAC,UAAU,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,cAAc,EAAE,UAAU,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;oBACpE,GAAG,CAAC,cAAc,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,kBAAkB,EAAE,cAAc,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;iBACjF;gBACD,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;CACF;AA1BD,8BA0BC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../../../core/resource.mjs";
|
|
3
|
+
import { buildHeaders } from "../../../../internal/headers.mjs";
|
|
4
|
+
import { path } from "../../../../internal/utils/path.mjs";
|
|
5
|
+
export class Customers extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* Queries the customer's governance hierarchy tree, returning a cursor-paginated
|
|
8
|
+
* list of nodes with their usage configuration (limit, cadence, scope) and current
|
|
9
|
+
* usage, sortable and filterable by usage. Each node carries `parentId` so the
|
|
10
|
+
* tree can be rebuilt client-side. Usage is read from a periodically-refreshed
|
|
11
|
+
* read model and never gates access.
|
|
12
|
+
*/
|
|
13
|
+
retrieveGovernance(id, params = {}, options) {
|
|
14
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...query } = params ?? {};
|
|
15
|
+
return this._client.get(path `/api/v1-beta/customers/${id}/governance`, {
|
|
16
|
+
query,
|
|
17
|
+
...options,
|
|
18
|
+
headers: buildHeaders([
|
|
19
|
+
{
|
|
20
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
21
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
22
|
+
},
|
|
23
|
+
options?.headers,
|
|
24
|
+
]),
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=customers.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"customers.mjs","sourceRoot":"","sources":["../../../../src/resources/v1/events/beta/customers.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,sCAAkC;AAExD,OAAO,EAAE,YAAY,EAAE,yCAAqC;AAE5D,OAAO,EAAE,IAAI,EAAE,4CAAwC;AAEvD,MAAM,OAAO,SAAU,SAAQ,WAAW;IACxC;;;;;;OAMG;IACH,kBAAkB,CAChB,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,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,0BAA0B,EAAE,aAAa,EAAE;YACrE,KAAK;YACL,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC;gBACpB;oBACE,GAAG,CAAC,UAAU,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,cAAc,EAAE,UAAU,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;oBACpE,GAAG,CAAC,cAAc,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,kBAAkB,EAAE,cAAc,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;iBACjF;gBACD,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../../src/resources/v1/events/beta/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,mBAAe;AAC9B,OAAO,EACL,SAAS,EACT,KAAK,kCAAkC,EACvC,KAAK,gCAAgC,GACtC,wBAAoB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/resources/v1/events/beta/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,kBAAe;AAC9B,OAAO,EACL,SAAS,EACT,KAAK,kCAAkC,EACvC,KAAK,gCAAgC,GACtC,uBAAoB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
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.Customers = exports.Beta = void 0;
|
|
5
|
+
var beta_1 = require("./beta.js");
|
|
6
|
+
Object.defineProperty(exports, "Beta", { enumerable: true, get: function () { return beta_1.Beta; } });
|
|
7
|
+
var customers_1 = require("./customers.js");
|
|
8
|
+
Object.defineProperty(exports, "Customers", { enumerable: true, get: function () { return customers_1.Customers; } });
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/resources/v1/events/beta/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kCAA8B;AAArB,4FAAA,IAAI,OAAA;AACb,4CAIqB;AAHnB,sGAAA,SAAS,OAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../../src/resources/v1/events/beta/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,IAAI,EAAE,mBAAe;AAC9B,OAAO,EACL,SAAS,GAGV,wBAAoB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"beta.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/events/beta.ts"],"names":[],"mappings":"AAEA,iCAA6B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"beta.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/events/beta.ts"],"names":[],"mappings":"AAEA,gCAA6B"}
|
|
@@ -0,0 +1,6 @@
|
|
|
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
|
+
const tslib_1 = require("../../../internal/tslib.js");
|
|
5
|
+
tslib_1.__exportStar(require("./beta/index.js"), exports);
|
|
6
|
+
//# sourceMappingURL=beta.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"beta.js","sourceRoot":"","sources":["../../../src/resources/v1/events/beta.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,0DAA6B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"beta.mjs","sourceRoot":"","sources":["../../../src/resources/v1/events/beta.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,iCAA6B"}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { APIResource } from "../../../core/resource.mjs";
|
|
2
|
+
import * as BetaAPI from "./beta/beta.mjs";
|
|
3
|
+
import { Beta } from "./beta/beta.mjs";
|
|
2
4
|
import * as DataExportAPI from "./data-export/data-export.mjs";
|
|
3
5
|
import { DataExport, DataExportMintScopedTokenParams, DataExportMintScopedTokenResponse, DataExportTriggerSyncParams, DataExportTriggerSyncResponse } from "./data-export/data-export.mjs";
|
|
4
6
|
import { APIPromise } from "../../../core/api-promise.mjs";
|
|
@@ -8,6 +10,7 @@ import { RequestOptions } from "../../../internal/request-options.mjs";
|
|
|
8
10
|
*/
|
|
9
11
|
export declare class Events extends APIResource {
|
|
10
12
|
dataExport: DataExportAPI.DataExport;
|
|
13
|
+
beta: BetaAPI.Beta;
|
|
11
14
|
/**
|
|
12
15
|
* Reports raw usage events for event-based metering. Events are ingested
|
|
13
16
|
* asynchronously and aggregated into usage totals.
|
|
@@ -77,5 +80,6 @@ export declare namespace EventReportParams {
|
|
|
77
80
|
export declare namespace Events {
|
|
78
81
|
export { type EventReportResponse as EventReportResponse, type EventReportParams as EventReportParams };
|
|
79
82
|
export { DataExport as DataExport, type DataExportMintScopedTokenResponse as DataExportMintScopedTokenResponse, type DataExportTriggerSyncResponse as DataExportTriggerSyncResponse, type DataExportMintScopedTokenParams as DataExportMintScopedTokenParams, type DataExportTriggerSyncParams as DataExportTriggerSyncParams, };
|
|
83
|
+
export { Beta as Beta };
|
|
80
84
|
}
|
|
81
85
|
//# sourceMappingURL=events.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/events/events.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,mCAA+B;AACrD,OAAO,KAAK,aAAa,sCAAkC;AAC3D,OAAO,EACL,UAAU,EACV,+BAA+B,EAC/B,iCAAiC,EACjC,2BAA2B,EAC3B,6BAA6B,EAC9B,sCAAkC;AACnC,OAAO,EAAE,UAAU,EAAE,sCAAkC;AAEvD,OAAO,EAAE,cAAc,EAAE,8CAA0C;AAEnE;;GAEG;AACH,qBAAa,MAAO,SAAQ,WAAW;IACrC,UAAU,EAAE,aAAa,CAAC,UAAU,CAA8C;
|
|
1
|
+
{"version":3,"file":"events.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/events/events.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,mCAA+B;AACrD,OAAO,KAAK,OAAO,wBAAoB;AACvC,OAAO,EAAE,IAAI,EAAE,wBAAoB;AACnC,OAAO,KAAK,aAAa,sCAAkC;AAC3D,OAAO,EACL,UAAU,EACV,+BAA+B,EAC/B,iCAAiC,EACjC,2BAA2B,EAC3B,6BAA6B,EAC9B,sCAAkC;AACnC,OAAO,EAAE,UAAU,EAAE,sCAAkC;AAEvD,OAAO,EAAE,cAAc,EAAE,8CAA0C;AAEnE;;GAEG;AACH,qBAAa,MAAO,SAAQ,WAAW;IACrC,UAAU,EAAE,aAAa,CAAC,UAAU,CAA8C;IAClF,IAAI,EAAE,OAAO,CAAC,IAAI,CAAkC;IAEpD;;;OAGG;IACH,MAAM,CAAC,MAAM,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,mBAAmB,CAAC;CAc7F;AAED;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC;;;OAGG;IACH,IAAI,EAAE,OAAO,CAAC;CACf;AAED,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,MAAM,EAAE,KAAK,CAAC,iBAAiB,CAAC,KAAK,CAAC,CAAC;IAEvC;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED,yBAAiB,iBAAiB,CAAC;IACjC;;OAEG;IACH,UAAiB,KAAK;QACpB;;WAEG;QACH,UAAU,EAAE,MAAM,CAAC;QAEnB;;WAEG;QACH,SAAS,EAAE,MAAM,CAAC;QAElB;;WAEG;QACH,cAAc,EAAE,MAAM,CAAC;QAEvB;;WAEG;QACH,UAAU,CAAC,EAAE;YAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAA;SAAE,CAAC;QAE1D;;WAEG;QACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QAE3B;;WAEG;QACH,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB;CACF;AAKD,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EAAE,KAAK,mBAAmB,IAAI,mBAAmB,EAAE,KAAK,iBAAiB,IAAI,iBAAiB,EAAE,CAAC;IAExG,OAAO,EACL,UAAU,IAAI,UAAU,EACxB,KAAK,iCAAiC,IAAI,iCAAiC,EAC3E,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,2BAA2B,IAAI,2BAA2B,GAChE,CAAC;IAEF,OAAO,EAAE,IAAI,IAAI,IAAI,EAAE,CAAC;CACzB"}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { APIResource } from "../../../core/resource.js";
|
|
2
|
+
import * as BetaAPI from "./beta/beta.js";
|
|
3
|
+
import { Beta } from "./beta/beta.js";
|
|
2
4
|
import * as DataExportAPI from "./data-export/data-export.js";
|
|
3
5
|
import { DataExport, DataExportMintScopedTokenParams, DataExportMintScopedTokenResponse, DataExportTriggerSyncParams, DataExportTriggerSyncResponse } from "./data-export/data-export.js";
|
|
4
6
|
import { APIPromise } from "../../../core/api-promise.js";
|
|
@@ -8,6 +10,7 @@ import { RequestOptions } from "../../../internal/request-options.js";
|
|
|
8
10
|
*/
|
|
9
11
|
export declare class Events extends APIResource {
|
|
10
12
|
dataExport: DataExportAPI.DataExport;
|
|
13
|
+
beta: BetaAPI.Beta;
|
|
11
14
|
/**
|
|
12
15
|
* Reports raw usage events for event-based metering. Events are ingested
|
|
13
16
|
* asynchronously and aggregated into usage totals.
|
|
@@ -77,5 +80,6 @@ export declare namespace EventReportParams {
|
|
|
77
80
|
export declare namespace Events {
|
|
78
81
|
export { type EventReportResponse as EventReportResponse, type EventReportParams as EventReportParams };
|
|
79
82
|
export { DataExport as DataExport, type DataExportMintScopedTokenResponse as DataExportMintScopedTokenResponse, type DataExportTriggerSyncResponse as DataExportTriggerSyncResponse, type DataExportMintScopedTokenParams as DataExportMintScopedTokenParams, type DataExportTriggerSyncParams as DataExportTriggerSyncParams, };
|
|
83
|
+
export { Beta as Beta };
|
|
80
84
|
}
|
|
81
85
|
//# sourceMappingURL=events.d.ts.map
|