@stigg/typescript 0.1.0-beta.23 → 0.1.0-beta.25
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/client.d.mts.map +1 -1
- package/client.d.ts.map +1 -1
- package/client.js +9 -1
- package/client.js.map +1 -1
- package/client.mjs +9 -1
- package/client.mjs.map +1 -1
- 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/src/client.ts +9 -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/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
|
@@ -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;QAC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,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,iCAAi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pB;;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
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/events/events.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,kCAA+B;AACrD,OAAO,KAAK,aAAa,qCAAkC;AAC3D,OAAO,EACL,UAAU,EACV,+BAA+B,EAC/B,iCAAiC,EACjC,2BAA2B,EAC3B,6BAA6B,EAC9B,qCAAkC;AACnC,OAAO,EAAE,UAAU,EAAE,qCAAkC;AAEvD,OAAO,EAAE,cAAc,EAAE,6CAA0C;AAEnE;;GAEG;AACH,qBAAa,MAAO,SAAQ,WAAW;IACrC,UAAU,EAAE,aAAa,CAAC,UAAU,CAA8C;
|
|
1
|
+
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/events/events.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,kCAA+B;AACrD,OAAO,KAAK,OAAO,uBAAoB;AACvC,OAAO,EAAE,IAAI,EAAE,uBAAoB;AACnC,OAAO,KAAK,aAAa,qCAAkC;AAC3D,OAAO,EACL,UAAU,EACV,+BAA+B,EAC/B,iCAAiC,EACjC,2BAA2B,EAC3B,6BAA6B,EAC9B,q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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"}
|
|
@@ -4,6 +4,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
4
4
|
exports.Events = void 0;
|
|
5
5
|
const tslib_1 = require("../../../internal/tslib.js");
|
|
6
6
|
const resource_1 = require("../../../core/resource.js");
|
|
7
|
+
const BetaAPI = tslib_1.__importStar(require("./beta/beta.js"));
|
|
8
|
+
const beta_1 = require("./beta/beta.js");
|
|
7
9
|
const DataExportAPI = tslib_1.__importStar(require("./data-export/data-export.js"));
|
|
8
10
|
const data_export_1 = require("./data-export/data-export.js");
|
|
9
11
|
const headers_1 = require("../../../internal/headers.js");
|
|
@@ -14,6 +16,7 @@ class Events extends resource_1.APIResource {
|
|
|
14
16
|
constructor() {
|
|
15
17
|
super(...arguments);
|
|
16
18
|
this.dataExport = new DataExportAPI.DataExport(this._client);
|
|
19
|
+
this.beta = new BetaAPI.Beta(this._client);
|
|
17
20
|
}
|
|
18
21
|
/**
|
|
19
22
|
* Reports raw usage events for event-based metering. Events are ingested
|
|
@@ -36,4 +39,5 @@ class Events extends resource_1.APIResource {
|
|
|
36
39
|
}
|
|
37
40
|
exports.Events = Events;
|
|
38
41
|
Events.DataExport = data_export_1.DataExport;
|
|
42
|
+
Events.Beta = beta_1.Beta;
|
|
39
43
|
//# sourceMappingURL=events.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.js","sourceRoot":"","sources":["../../../src/resources/v1/events/events.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,wDAAqD;AACrD,oFAA2D;AAC3D,8DAMmC;AAEnC,0DAAyD;AAGzD;;GAEG;AACH,MAAa,MAAO,SAAQ,s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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
|
+
import * as BetaAPI from "./beta/beta.mjs";
|
|
4
|
+
import { Beta } from "./beta/beta.mjs";
|
|
3
5
|
import * as DataExportAPI from "./data-export/data-export.mjs";
|
|
4
6
|
import { DataExport, } from "./data-export/data-export.mjs";
|
|
5
7
|
import { buildHeaders } from "../../../internal/headers.mjs";
|
|
@@ -10,6 +12,7 @@ export class Events extends APIResource {
|
|
|
10
12
|
constructor() {
|
|
11
13
|
super(...arguments);
|
|
12
14
|
this.dataExport = new DataExportAPI.DataExport(this._client);
|
|
15
|
+
this.beta = new BetaAPI.Beta(this._client);
|
|
13
16
|
}
|
|
14
17
|
/**
|
|
15
18
|
* Reports raw usage events for event-based metering. Events are ingested
|
|
@@ -31,4 +34,5 @@ export class Events extends APIResource {
|
|
|
31
34
|
}
|
|
32
35
|
}
|
|
33
36
|
Events.DataExport = DataExport;
|
|
37
|
+
Events.Beta = Beta;
|
|
34
38
|
//# sourceMappingURL=events.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.mjs","sourceRoot":"","sources":["../../../src/resources/v1/events/events.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,mCAA+B;AACrD,OAAO,KAAK,aAAa,sCAAkC;AAC3D,OAAO,EACL,UAAU,GAKX,sCAAkC;AAEnC,OAAO,EAAE,YAAY,EAAE,sCAAkC;AAGzD;;GAEG;AACH,MAAM,OAAO,MAAO,SAAQ,WAAW;IAAvC;;QACE,eAAU,GAA6B,IAAI,aAAa,CAAC,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"events.mjs","sourceRoot":"","sources":["../../../src/resources/v1/events/events.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,E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DataExportMintScopedTokenParams, type DataExportTriggerSyncParams, } from "./data-export/index.mjs";
|
|
2
3
|
export { Events, type EventReportResponse, type EventReportParams } from "./events.mjs";
|
|
3
4
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/events/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,UAAU,EACV,KAAK,iCAAiC,EACtC,KAAK,6BAA6B,EAClC,KAAK,+BAA+B,EACpC,KAAK,2BAA2B,GACjC,gCAA4B;AAC7B,OAAO,EAAE,MAAM,EAAE,KAAK,mBAAmB,EAAE,KAAK,iBAAiB,EAAE,qBAAiB"}
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/events/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,yBAAqB;AACpC,OAAO,EACL,UAAU,EACV,KAAK,iCAAiC,EACtC,KAAK,6BAA6B,EAClC,KAAK,+BAA+B,EACpC,KAAK,2BAA2B,GACjC,gCAA4B;AAC7B,OAAO,EAAE,MAAM,EAAE,KAAK,mBAAmB,EAAE,KAAK,iBAAiB,EAAE,qBAAiB"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export { Beta } from "./beta/index.js";
|
|
1
2
|
export { DataExport, type DataExportMintScopedTokenResponse, type DataExportTriggerSyncResponse, type DataExportMintScopedTokenParams, type DataExportTriggerSyncParams, } from "./data-export/index.js";
|
|
2
3
|
export { Events, type EventReportResponse, type EventReportParams } from "./events.js";
|
|
3
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/events/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,UAAU,EACV,KAAK,iCAAiC,EACtC,KAAK,6BAA6B,EAClC,KAAK,+BAA+B,EACpC,KAAK,2BAA2B,GACjC,+BAA4B;AAC7B,OAAO,EAAE,MAAM,EAAE,KAAK,mBAAmB,EAAE,KAAK,iBAAiB,EAAE,oBAAiB"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/events/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,wBAAqB;AACpC,OAAO,EACL,UAAU,EACV,KAAK,iCAAiC,EACtC,KAAK,6BAA6B,EAClC,KAAK,+BAA+B,EACpC,KAAK,2BAA2B,GACjC,+BAA4B;AAC7B,OAAO,EAAE,MAAM,EAAE,KAAK,mBAAmB,EAAE,KAAK,iBAAiB,EAAE,oBAAiB"}
|
|
@@ -1,9 +1,11 @@
|
|
|
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.Events = exports.DataExport = void 0;
|
|
5
|
-
var index_1 = require("./
|
|
6
|
-
Object.defineProperty(exports, "
|
|
4
|
+
exports.Events = exports.DataExport = exports.Beta = void 0;
|
|
5
|
+
var index_1 = require("./beta/index.js");
|
|
6
|
+
Object.defineProperty(exports, "Beta", { enumerable: true, get: function () { return index_1.Beta; } });
|
|
7
|
+
var index_2 = require("./data-export/index.js");
|
|
8
|
+
Object.defineProperty(exports, "DataExport", { enumerable: true, get: function () { return index_2.DataExport; } });
|
|
7
9
|
var events_1 = require("./events.js");
|
|
8
10
|
Object.defineProperty(exports, "Events", { enumerable: true, get: function () { return events_1.Events; } });
|
|
9
11
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/v1/events/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAM6B;AAL3B,mGAAA,UAAU,OAAA;AAMZ,sCAAoF;AAA3E,gGAAA,MAAM,OAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/v1/events/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,yCAAoC;AAA3B,6FAAA,IAAI,OAAA;AACb,gDAM6B;AAL3B,mGAAA,UAAU,OAAA;AAMZ,sCAAoF;AAA3E,gGAAA,MAAM,OAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/v1/events/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EACL,UAAU,GAKX,gCAA4B;AAC7B,OAAO,EAAE,MAAM,EAAoD,qBAAiB"}
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/v1/events/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,IAAI,EAAE,yBAAqB;AACpC,OAAO,EACL,UAAU,GAKX,gCAA4B;AAC7B,OAAO,EAAE,MAAM,EAAoD,qBAAiB"}
|
package/src/client.ts
CHANGED
|
@@ -690,11 +690,19 @@ export class Stigg {
|
|
|
690
690
|
return () => controller.abort();
|
|
691
691
|
}
|
|
692
692
|
|
|
693
|
-
private buildBody({ options
|
|
693
|
+
private buildBody({ options }: { options: FinalRequestOptions }): {
|
|
694
694
|
bodyHeaders: HeadersLike;
|
|
695
695
|
body: BodyInit | undefined;
|
|
696
696
|
} {
|
|
697
|
+
const { body, headers: rawHeaders } = options;
|
|
697
698
|
if (!body) {
|
|
699
|
+
// A resource method always passes a `body` key when its operation defines a
|
|
700
|
+
// request body, even if the caller omitted an optional body param. Keep the
|
|
701
|
+
// content-type for those, and only elide it for operations with no body at
|
|
702
|
+
// all (e.g. GET/DELETE).
|
|
703
|
+
if (body == null && 'body' in options) {
|
|
704
|
+
return this.#encoder({ body, headers: buildHeaders([rawHeaders]) });
|
|
705
|
+
}
|
|
698
706
|
return { bodyHeaders: undefined, body: undefined };
|
|
699
707
|
}
|
|
700
708
|
const headers = buildHeaders([rawHeaders]);
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../../../core/resource';
|
|
4
|
+
import * as CustomersAPI from './customers';
|
|
5
|
+
import { CustomerRetrieveGovernanceParams, CustomerRetrieveGovernanceResponse, Customers } from './customers';
|
|
6
|
+
|
|
7
|
+
export class Beta extends APIResource {
|
|
8
|
+
customers: CustomersAPI.Customers = new CustomersAPI.Customers(this._client);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
Beta.Customers = Customers;
|
|
12
|
+
|
|
13
|
+
export declare namespace Beta {
|
|
14
|
+
export {
|
|
15
|
+
Customers as Customers,
|
|
16
|
+
type CustomerRetrieveGovernanceResponse as CustomerRetrieveGovernanceResponse,
|
|
17
|
+
type CustomerRetrieveGovernanceParams as CustomerRetrieveGovernanceParams,
|
|
18
|
+
};
|
|
19
|
+
}
|