@nirvana-labs/nirvana 1.56.0 → 1.58.0
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 +21 -0
- package/client.d.mts +1 -0
- package/client.d.mts.map +1 -1
- package/client.d.ts +1 -0
- package/client.d.ts.map +1 -1
- package/package.json +1 -1
- package/resources/api-keys/api-keys.d.mts +87 -17
- package/resources/api-keys/api-keys.d.mts.map +1 -1
- package/resources/api-keys/api-keys.d.ts +87 -17
- package/resources/api-keys/api-keys.d.ts.map +1 -1
- package/resources/api-keys/api-keys.js +7 -0
- package/resources/api-keys/api-keys.js.map +1 -1
- package/resources/api-keys/api-keys.mjs +7 -0
- package/resources/api-keys/api-keys.mjs.map +1 -1
- package/resources/nks/clusters/clusters.d.mts +2 -2
- package/resources/nks/clusters/clusters.d.mts.map +1 -1
- package/resources/nks/clusters/clusters.d.ts +2 -2
- package/resources/nks/clusters/clusters.d.ts.map +1 -1
- package/resources/nks/clusters/clusters.js.map +1 -1
- package/resources/nks/clusters/clusters.mjs.map +1 -1
- package/resources/nks/clusters/index.d.mts +1 -1
- package/resources/nks/clusters/index.d.mts.map +1 -1
- package/resources/nks/clusters/index.d.ts +1 -1
- package/resources/nks/clusters/index.d.ts.map +1 -1
- package/resources/nks/clusters/index.js.map +1 -1
- package/resources/nks/clusters/index.mjs.map +1 -1
- package/resources/nks/clusters/pools/index.d.mts +1 -1
- package/resources/nks/clusters/pools/index.d.mts.map +1 -1
- package/resources/nks/clusters/pools/index.d.ts +1 -1
- package/resources/nks/clusters/pools/index.d.ts.map +1 -1
- package/resources/nks/clusters/pools/index.js.map +1 -1
- package/resources/nks/clusters/pools/index.mjs.map +1 -1
- package/resources/nks/clusters/pools/pools.d.mts +19 -21
- package/resources/nks/clusters/pools/pools.d.mts.map +1 -1
- package/resources/nks/clusters/pools/pools.d.ts +19 -21
- package/resources/nks/clusters/pools/pools.d.ts.map +1 -1
- package/resources/nks/clusters/pools/pools.js.map +1 -1
- package/resources/nks/clusters/pools/pools.mjs.map +1 -1
- package/resources/projects/projects.d.mts +54 -50
- package/resources/projects/projects.d.mts.map +1 -1
- package/resources/projects/projects.d.ts +54 -50
- package/resources/projects/projects.d.ts.map +1 -1
- package/resources/shared.d.mts +14 -1
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +14 -1
- package/resources/shared.d.ts.map +1 -1
- package/resources/user/security.d.mts +1 -16
- package/resources/user/security.d.mts.map +1 -1
- package/resources/user/security.d.ts +1 -16
- package/resources/user/security.d.ts.map +1 -1
- package/src/client.ts +1 -0
- package/src/resources/api-keys/api-keys.ts +113 -18
- package/src/resources/api-keys/api.md +3 -0
- package/src/resources/nks/api.md +1 -0
- package/src/resources/nks/clusters/clusters.ts +2 -0
- package/src/resources/nks/clusters/index.ts +1 -0
- package/src/resources/nks/clusters/pools/index.ts +1 -0
- package/src/resources/nks/clusters/pools/pools.ts +22 -23
- package/src/resources/projects/api.md +3 -0
- package/src/resources/projects/projects.ts +63 -54
- package/src/resources/shared.ts +16 -8
- package/src/resources/user/security.ts +1 -18
- 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
|
@@ -19,7 +19,7 @@ export interface UserSecurity {
|
|
|
19
19
|
/**
|
|
20
20
|
* IP filter rules.
|
|
21
21
|
*/
|
|
22
|
-
source_ip_rule:
|
|
22
|
+
source_ip_rule: Shared.SourceIPRuleResponse;
|
|
23
23
|
/**
|
|
24
24
|
* When the user security settings were created.
|
|
25
25
|
*/
|
|
@@ -29,21 +29,6 @@ export interface UserSecurity {
|
|
|
29
29
|
*/
|
|
30
30
|
updated_at?: string;
|
|
31
31
|
}
|
|
32
|
-
export declare namespace UserSecurity {
|
|
33
|
-
/**
|
|
34
|
-
* IP filter rules.
|
|
35
|
-
*/
|
|
36
|
-
interface SourceIPRule {
|
|
37
|
-
/**
|
|
38
|
-
* List of IPv4 CIDR addresses to allow.
|
|
39
|
-
*/
|
|
40
|
-
allowed: Array<string>;
|
|
41
|
-
/**
|
|
42
|
-
* List of IPv4 CIDR addresses to deny.
|
|
43
|
-
*/
|
|
44
|
-
blocked: Array<string>;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
32
|
export interface SecurityUpdateParams {
|
|
48
33
|
/**
|
|
49
34
|
* IP filter rules.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"security.d.mts","sourceRoot":"","sources":["../../src/resources/user/security.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,QAAS,SAAQ,WAAW;IACvC;;OAEG;IACH,MAAM,CAAC,IAAI,EAAE,oBAAoB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,YAAY,CAAC;IAItF;;OAEG;IACH,GAAG,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,YAAY,CAAC;CAGxD;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B;;OAEG;IACH,cAAc,EAAE,
|
|
1
|
+
{"version":3,"file":"security.d.mts","sourceRoot":"","sources":["../../src/resources/user/security.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,QAAS,SAAQ,WAAW;IACvC;;OAEG;IACH,MAAM,CAAC,IAAI,EAAE,oBAAoB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,YAAY,CAAC;IAItF;;OAEG;IACH,GAAG,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,YAAY,CAAC;CAGxD;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC,oBAAoB,CAAC;IAE5C;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC,YAAY,CAAC;CACtC;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EAAE,KAAK,YAAY,IAAI,YAAY,EAAE,KAAK,oBAAoB,IAAI,oBAAoB,EAAE,CAAC;CACjG"}
|
|
@@ -19,7 +19,7 @@ export interface UserSecurity {
|
|
|
19
19
|
/**
|
|
20
20
|
* IP filter rules.
|
|
21
21
|
*/
|
|
22
|
-
source_ip_rule:
|
|
22
|
+
source_ip_rule: Shared.SourceIPRuleResponse;
|
|
23
23
|
/**
|
|
24
24
|
* When the user security settings were created.
|
|
25
25
|
*/
|
|
@@ -29,21 +29,6 @@ export interface UserSecurity {
|
|
|
29
29
|
*/
|
|
30
30
|
updated_at?: string;
|
|
31
31
|
}
|
|
32
|
-
export declare namespace UserSecurity {
|
|
33
|
-
/**
|
|
34
|
-
* IP filter rules.
|
|
35
|
-
*/
|
|
36
|
-
interface SourceIPRule {
|
|
37
|
-
/**
|
|
38
|
-
* List of IPv4 CIDR addresses to allow.
|
|
39
|
-
*/
|
|
40
|
-
allowed: Array<string>;
|
|
41
|
-
/**
|
|
42
|
-
* List of IPv4 CIDR addresses to deny.
|
|
43
|
-
*/
|
|
44
|
-
blocked: Array<string>;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
32
|
export interface SecurityUpdateParams {
|
|
48
33
|
/**
|
|
49
34
|
* IP filter rules.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"security.d.ts","sourceRoot":"","sources":["../../src/resources/user/security.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,QAAS,SAAQ,WAAW;IACvC;;OAEG;IACH,MAAM,CAAC,IAAI,EAAE,oBAAoB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,YAAY,CAAC;IAItF;;OAEG;IACH,GAAG,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,YAAY,CAAC;CAGxD;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B;;OAEG;IACH,cAAc,EAAE,
|
|
1
|
+
{"version":3,"file":"security.d.ts","sourceRoot":"","sources":["../../src/resources/user/security.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,QAAS,SAAQ,WAAW;IACvC;;OAEG;IACH,MAAM,CAAC,IAAI,EAAE,oBAAoB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,YAAY,CAAC;IAItF;;OAEG;IACH,GAAG,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,YAAY,CAAC;CAGxD;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC,oBAAoB,CAAC;IAE5C;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC,YAAY,CAAC;CACtC;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EAAE,KAAK,YAAY,IAAI,YAAY,EAAE,KAAK,oBAAoB,IAAI,oBAAoB,EAAE,CAAC;CACjG"}
|
package/src/client.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../core/resource';
|
|
4
|
+
import * as APIKeysAPI from './api-keys';
|
|
4
5
|
import * as Shared from '../shared';
|
|
5
6
|
import { APIPromise } from '../../core/api-promise';
|
|
6
7
|
import { Cursor, type CursorParams, PagePromise } from '../../core/pagination';
|
|
@@ -17,6 +18,13 @@ export class APIKeys extends APIResource {
|
|
|
17
18
|
* const apiKey = await client.apiKeys.create({
|
|
18
19
|
* expires_at: '2025-12-31T23:59:59Z',
|
|
19
20
|
* name: 'My API Key',
|
|
21
|
+
* permissions: [
|
|
22
|
+
* { permission: 'edit', resource_type: 'vm' },
|
|
23
|
+
* ],
|
|
24
|
+
* project_ids: [
|
|
25
|
+
* '123e4567-e89b-12d3-a456-426614174000',
|
|
26
|
+
* '123e4567-e89b-12d3-a456-426614174001',
|
|
27
|
+
* ],
|
|
20
28
|
* });
|
|
21
29
|
* ```
|
|
22
30
|
*/
|
|
@@ -108,10 +116,20 @@ export interface APIKey {
|
|
|
108
116
|
*/
|
|
109
117
|
name: string;
|
|
110
118
|
|
|
119
|
+
/**
|
|
120
|
+
* Scoped permissions for this API key.
|
|
121
|
+
*/
|
|
122
|
+
permissions: Array<APIKeyPermission>;
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* Project IDs this API key is scoped to.
|
|
126
|
+
*/
|
|
127
|
+
project_ids: Array<string>;
|
|
128
|
+
|
|
111
129
|
/**
|
|
112
130
|
* IP filter rules.
|
|
113
131
|
*/
|
|
114
|
-
source_ip_rule:
|
|
132
|
+
source_ip_rule: Shared.SourceIPRuleResponse;
|
|
115
133
|
|
|
116
134
|
/**
|
|
117
135
|
* Status of the API Key.
|
|
@@ -139,23 +157,6 @@ export interface APIKey {
|
|
|
139
157
|
starts_at?: string;
|
|
140
158
|
}
|
|
141
159
|
|
|
142
|
-
export namespace APIKey {
|
|
143
|
-
/**
|
|
144
|
-
* IP filter rules.
|
|
145
|
-
*/
|
|
146
|
-
export interface SourceIPRule {
|
|
147
|
-
/**
|
|
148
|
-
* List of IPv4 CIDR addresses to allow.
|
|
149
|
-
*/
|
|
150
|
-
allowed: Array<string>;
|
|
151
|
-
|
|
152
|
-
/**
|
|
153
|
-
* List of IPv4 CIDR addresses to deny.
|
|
154
|
-
*/
|
|
155
|
-
blocked: Array<string>;
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
|
|
159
160
|
export interface APIKeyList {
|
|
160
161
|
items: Array<APIKey>;
|
|
161
162
|
|
|
@@ -165,6 +166,41 @@ export interface APIKeyList {
|
|
|
165
166
|
pagination: Shared.Pagination;
|
|
166
167
|
}
|
|
167
168
|
|
|
169
|
+
/**
|
|
170
|
+
* API Key permission.
|
|
171
|
+
*/
|
|
172
|
+
export interface APIKeyPermission {
|
|
173
|
+
/**
|
|
174
|
+
* Permission level: "read" or "edit".
|
|
175
|
+
*/
|
|
176
|
+
permission: APIPermissionLevel;
|
|
177
|
+
|
|
178
|
+
/**
|
|
179
|
+
* Resource type this permission applies to.
|
|
180
|
+
*/
|
|
181
|
+
resource_type: APIPermissionResourceType;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* Permission level: "read" or "edit".
|
|
186
|
+
*/
|
|
187
|
+
export type APIPermissionLevel = 'read' | 'edit';
|
|
188
|
+
|
|
189
|
+
/**
|
|
190
|
+
* Resource type this permission applies to.
|
|
191
|
+
*/
|
|
192
|
+
export type APIPermissionResourceType =
|
|
193
|
+
| 'vm'
|
|
194
|
+
| 'vpc'
|
|
195
|
+
| 'volume'
|
|
196
|
+
| 'connect_connection'
|
|
197
|
+
| 'rpc_node_dedicated'
|
|
198
|
+
| 'rpc_node_flex'
|
|
199
|
+
| 'nks_cluster'
|
|
200
|
+
| 'nks_node_pool'
|
|
201
|
+
| 'project'
|
|
202
|
+
| 'api_key';
|
|
203
|
+
|
|
168
204
|
export interface APIKeyCreateParams {
|
|
169
205
|
/**
|
|
170
206
|
* When the API Key expires and is no longer valid.
|
|
@@ -176,6 +212,16 @@ export interface APIKeyCreateParams {
|
|
|
176
212
|
*/
|
|
177
213
|
name: string;
|
|
178
214
|
|
|
215
|
+
/**
|
|
216
|
+
* Scoped permissions for this API key. At least one is required.
|
|
217
|
+
*/
|
|
218
|
+
permissions: Array<APIKeyCreateParams.Permission>;
|
|
219
|
+
|
|
220
|
+
/**
|
|
221
|
+
* Project IDs this API key is scoped to. At least one is required.
|
|
222
|
+
*/
|
|
223
|
+
project_ids: Array<string>;
|
|
224
|
+
|
|
179
225
|
/**
|
|
180
226
|
* IP filter rules.
|
|
181
227
|
*/
|
|
@@ -192,12 +238,41 @@ export interface APIKeyCreateParams {
|
|
|
192
238
|
tags?: Array<string>;
|
|
193
239
|
}
|
|
194
240
|
|
|
241
|
+
export namespace APIKeyCreateParams {
|
|
242
|
+
/**
|
|
243
|
+
* API Key permission request.
|
|
244
|
+
*/
|
|
245
|
+
export interface Permission {
|
|
246
|
+
/**
|
|
247
|
+
* Permission level: "read" or "edit".
|
|
248
|
+
*/
|
|
249
|
+
permission: APIKeysAPI.APIPermissionLevel;
|
|
250
|
+
|
|
251
|
+
/**
|
|
252
|
+
* Resource type this permission applies to.
|
|
253
|
+
*/
|
|
254
|
+
resource_type: APIKeysAPI.APIPermissionResourceType;
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
|
|
195
258
|
export interface APIKeyUpdateParams {
|
|
196
259
|
/**
|
|
197
260
|
* API Key name.
|
|
198
261
|
*/
|
|
199
262
|
name?: string;
|
|
200
263
|
|
|
264
|
+
/**
|
|
265
|
+
* Scoped permissions for this API key. When provided, replaces the entire set. At
|
|
266
|
+
* least one is required.
|
|
267
|
+
*/
|
|
268
|
+
permissions?: Array<APIKeyUpdateParams.Permission>;
|
|
269
|
+
|
|
270
|
+
/**
|
|
271
|
+
* Project IDs this API key is scoped to. When provided, replaces the entire set.
|
|
272
|
+
* At least one is required.
|
|
273
|
+
*/
|
|
274
|
+
project_ids?: Array<string>;
|
|
275
|
+
|
|
201
276
|
/**
|
|
202
277
|
* IP filter rules.
|
|
203
278
|
*/
|
|
@@ -209,12 +284,32 @@ export interface APIKeyUpdateParams {
|
|
|
209
284
|
tags?: Array<string>;
|
|
210
285
|
}
|
|
211
286
|
|
|
287
|
+
export namespace APIKeyUpdateParams {
|
|
288
|
+
/**
|
|
289
|
+
* API Key permission request.
|
|
290
|
+
*/
|
|
291
|
+
export interface Permission {
|
|
292
|
+
/**
|
|
293
|
+
* Permission level: "read" or "edit".
|
|
294
|
+
*/
|
|
295
|
+
permission: APIKeysAPI.APIPermissionLevel;
|
|
296
|
+
|
|
297
|
+
/**
|
|
298
|
+
* Resource type this permission applies to.
|
|
299
|
+
*/
|
|
300
|
+
resource_type: APIKeysAPI.APIPermissionResourceType;
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
|
|
212
304
|
export interface APIKeyListParams extends CursorParams {}
|
|
213
305
|
|
|
214
306
|
export declare namespace APIKeys {
|
|
215
307
|
export {
|
|
216
308
|
type APIKey as APIKey,
|
|
217
309
|
type APIKeyList as APIKeyList,
|
|
310
|
+
type APIKeyPermission as APIKeyPermission,
|
|
311
|
+
type APIPermissionLevel as APIPermissionLevel,
|
|
312
|
+
type APIPermissionResourceType as APIPermissionResourceType,
|
|
218
313
|
type APIKeysCursor as APIKeysCursor,
|
|
219
314
|
type APIKeyCreateParams as APIKeyCreateParams,
|
|
220
315
|
type APIKeyUpdateParams as APIKeyUpdateParams,
|
|
@@ -4,6 +4,9 @@ Types:
|
|
|
4
4
|
|
|
5
5
|
- <code><a href="./src/resources/api-keys.ts">APIKey</a></code>
|
|
6
6
|
- <code><a href="./src/resources/api-keys.ts">APIKeyList</a></code>
|
|
7
|
+
- <code><a href="./src/resources/api-keys.ts">APIKeyPermission</a></code>
|
|
8
|
+
- <code><a href="./src/resources/api-keys.ts">APIPermissionLevel</a></code>
|
|
9
|
+
- <code><a href="./src/resources/api-keys.ts">APIPermissionResourceType</a></code>
|
|
7
10
|
|
|
8
11
|
Methods:
|
|
9
12
|
|
package/src/resources/nks/api.md
CHANGED
|
@@ -34,6 +34,7 @@ Methods:
|
|
|
34
34
|
Types:
|
|
35
35
|
|
|
36
36
|
- <code><a href="./src/resources/nks/clusters/pools/pools.ts">NKSNodeConfig</a></code>
|
|
37
|
+
- <code><a href="./src/resources/nks/clusters/pools/pools.ts">NKSNodeConfigResponse</a></code>
|
|
37
38
|
- <code><a href="./src/resources/nks/clusters/pools/pools.ts">NKSNodePool</a></code>
|
|
38
39
|
- <code><a href="./src/resources/nks/clusters/pools/pools.ts">NKSNodePoolList</a></code>
|
|
39
40
|
|
|
@@ -9,6 +9,7 @@ import * as KubeconfigAPI from './kubeconfig';
|
|
|
9
9
|
import * as PoolsAPI from './pools/pools';
|
|
10
10
|
import {
|
|
11
11
|
NKSNodeConfig,
|
|
12
|
+
NKSNodeConfigResponse,
|
|
12
13
|
NKSNodePool,
|
|
13
14
|
NKSNodePoolList,
|
|
14
15
|
NKSNodePoolsCursor,
|
|
@@ -261,6 +262,7 @@ export declare namespace Clusters {
|
|
|
261
262
|
export {
|
|
262
263
|
Pools as Pools,
|
|
263
264
|
type NKSNodeConfig as NKSNodeConfig,
|
|
265
|
+
type NKSNodeConfigResponse as NKSNodeConfigResponse,
|
|
264
266
|
type NKSNodePool as NKSNodePool,
|
|
265
267
|
type NKSNodePoolList as NKSNodePoolList,
|
|
266
268
|
type NKSNodePoolsCursor as NKSNodePoolsCursor,
|
|
@@ -142,6 +142,26 @@ export interface NKSNodeConfig {
|
|
|
142
142
|
vcpu: number;
|
|
143
143
|
}
|
|
144
144
|
|
|
145
|
+
/**
|
|
146
|
+
* Node configuration.
|
|
147
|
+
*/
|
|
148
|
+
export interface NKSNodeConfigResponse {
|
|
149
|
+
/**
|
|
150
|
+
* RAM size in GiB per node.
|
|
151
|
+
*/
|
|
152
|
+
ram_gi: number;
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* Storage size in GiB per node.
|
|
156
|
+
*/
|
|
157
|
+
storage_gi: number;
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* Number of virtual CPUs per node.
|
|
161
|
+
*/
|
|
162
|
+
vcpu: number;
|
|
163
|
+
}
|
|
164
|
+
|
|
145
165
|
/**
|
|
146
166
|
* NKS node pool details.
|
|
147
167
|
*/
|
|
@@ -169,7 +189,7 @@ export interface NKSNodePool {
|
|
|
169
189
|
/**
|
|
170
190
|
* Node configuration.
|
|
171
191
|
*/
|
|
172
|
-
node_config:
|
|
192
|
+
node_config: NKSNodeConfigResponse;
|
|
173
193
|
|
|
174
194
|
/**
|
|
175
195
|
* Number of nodes.
|
|
@@ -192,28 +212,6 @@ export interface NKSNodePool {
|
|
|
192
212
|
updated_at: string;
|
|
193
213
|
}
|
|
194
214
|
|
|
195
|
-
export namespace NKSNodePool {
|
|
196
|
-
/**
|
|
197
|
-
* Node configuration.
|
|
198
|
-
*/
|
|
199
|
-
export interface NodeConfig {
|
|
200
|
-
/**
|
|
201
|
-
* RAM size in GiB per node.
|
|
202
|
-
*/
|
|
203
|
-
ram_gi: number;
|
|
204
|
-
|
|
205
|
-
/**
|
|
206
|
-
* Storage size in GiB per node.
|
|
207
|
-
*/
|
|
208
|
-
storage_gi: number;
|
|
209
|
-
|
|
210
|
-
/**
|
|
211
|
-
* Number of virtual CPUs per node.
|
|
212
|
-
*/
|
|
213
|
-
vcpu: number;
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
|
|
217
215
|
export interface NKSNodePoolList {
|
|
218
216
|
items: Array<NKSNodePool>;
|
|
219
217
|
|
|
@@ -284,6 +282,7 @@ Pools.Nodes = Nodes;
|
|
|
284
282
|
export declare namespace Pools {
|
|
285
283
|
export {
|
|
286
284
|
type NKSNodeConfig as NKSNodeConfig,
|
|
285
|
+
type NKSNodeConfigResponse as NKSNodeConfigResponse,
|
|
287
286
|
type NKSNodePool as NKSNodePool,
|
|
288
287
|
type NKSNodePoolList as NKSNodePoolList,
|
|
289
288
|
type NKSNodePoolsCursor as NKSNodePoolsCursor,
|
|
@@ -3,7 +3,10 @@
|
|
|
3
3
|
Types:
|
|
4
4
|
|
|
5
5
|
- <code><a href="./src/resources/projects.ts">Project</a></code>
|
|
6
|
+
- <code><a href="./src/resources/projects.ts">ProjectBlockchainResources</a></code>
|
|
7
|
+
- <code><a href="./src/resources/projects.ts">ProjectCloudResources</a></code>
|
|
6
8
|
- <code><a href="./src/resources/projects.ts">ProjectList</a></code>
|
|
9
|
+
- <code><a href="./src/resources/projects.ts">ProjectResources</a></code>
|
|
7
10
|
|
|
8
11
|
Methods:
|
|
9
12
|
|
|
@@ -105,7 +105,7 @@ export interface Project {
|
|
|
105
105
|
/**
|
|
106
106
|
* Resource counts for the project.
|
|
107
107
|
*/
|
|
108
|
-
resources:
|
|
108
|
+
resources: ProjectResources;
|
|
109
109
|
|
|
110
110
|
/**
|
|
111
111
|
* Tags attached to the Project.
|
|
@@ -118,63 +118,54 @@ export interface Project {
|
|
|
118
118
|
updated_at: string;
|
|
119
119
|
}
|
|
120
120
|
|
|
121
|
-
|
|
121
|
+
/**
|
|
122
|
+
* Blockchain resources.
|
|
123
|
+
*/
|
|
124
|
+
export interface ProjectBlockchainResources {
|
|
122
125
|
/**
|
|
123
|
-
*
|
|
126
|
+
* Number of dedicated RPC nodes in the project.
|
|
124
127
|
*/
|
|
125
|
-
|
|
126
|
-
/**
|
|
127
|
-
* Blockchain resources.
|
|
128
|
-
*/
|
|
129
|
-
blockchain: Resources.Blockchain;
|
|
128
|
+
rpc_nodes_dedicated: number;
|
|
130
129
|
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
130
|
+
/**
|
|
131
|
+
* Number of flex RPC nodes in the project.
|
|
132
|
+
*/
|
|
133
|
+
rpc_nodes_flex: number;
|
|
134
|
+
}
|
|
136
135
|
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
volumes: number;
|
|
171
|
-
|
|
172
|
-
/**
|
|
173
|
-
* Number of VPCs in the project.
|
|
174
|
-
*/
|
|
175
|
-
vpcs: number;
|
|
176
|
-
}
|
|
177
|
-
}
|
|
136
|
+
/**
|
|
137
|
+
* Cloud infrastructure resources.
|
|
138
|
+
*/
|
|
139
|
+
export interface ProjectCloudResources {
|
|
140
|
+
/**
|
|
141
|
+
* Number of Connect connections in the project.
|
|
142
|
+
*/
|
|
143
|
+
connect_connections: number;
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* Number of NKS clusters in the project.
|
|
147
|
+
*/
|
|
148
|
+
nks_clusters: number;
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* Number of NKS node pools in the project.
|
|
152
|
+
*/
|
|
153
|
+
nks_node_pools: number;
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* Number of VMs in the project.
|
|
157
|
+
*/
|
|
158
|
+
vms: number;
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* Number of volumes in the project.
|
|
162
|
+
*/
|
|
163
|
+
volumes: number;
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* Number of VPCs in the project.
|
|
167
|
+
*/
|
|
168
|
+
vpcs: number;
|
|
178
169
|
}
|
|
179
170
|
|
|
180
171
|
export interface ProjectList {
|
|
@@ -186,6 +177,21 @@ export interface ProjectList {
|
|
|
186
177
|
pagination: Shared.Pagination;
|
|
187
178
|
}
|
|
188
179
|
|
|
180
|
+
/**
|
|
181
|
+
* Resource counts for the project.
|
|
182
|
+
*/
|
|
183
|
+
export interface ProjectResources {
|
|
184
|
+
/**
|
|
185
|
+
* Blockchain resources.
|
|
186
|
+
*/
|
|
187
|
+
blockchain: ProjectBlockchainResources;
|
|
188
|
+
|
|
189
|
+
/**
|
|
190
|
+
* Cloud infrastructure resources.
|
|
191
|
+
*/
|
|
192
|
+
cloud: ProjectCloudResources;
|
|
193
|
+
}
|
|
194
|
+
|
|
189
195
|
export interface ProjectCreateParams {
|
|
190
196
|
/**
|
|
191
197
|
* Project name.
|
|
@@ -215,7 +221,10 @@ export interface ProjectListParams extends CursorParams {}
|
|
|
215
221
|
export declare namespace Projects {
|
|
216
222
|
export {
|
|
217
223
|
type Project as Project,
|
|
224
|
+
type ProjectBlockchainResources as ProjectBlockchainResources,
|
|
225
|
+
type ProjectCloudResources as ProjectCloudResources,
|
|
218
226
|
type ProjectList as ProjectList,
|
|
227
|
+
type ProjectResources as ProjectResources,
|
|
219
228
|
type ProjectsCursor as ProjectsCursor,
|
|
220
229
|
type ProjectCreateParams as ProjectCreateParams,
|
|
221
230
|
type ProjectUpdateParams as ProjectUpdateParams,
|
package/src/resources/shared.ts
CHANGED
|
@@ -14,14 +14,7 @@ export interface Pagination {
|
|
|
14
14
|
/**
|
|
15
15
|
* Region the resource is in.
|
|
16
16
|
*/
|
|
17
|
-
export type RegionName =
|
|
18
|
-
| 'us-sea-1'
|
|
19
|
-
| 'us-sva-1'
|
|
20
|
-
| 'us-sva-2'
|
|
21
|
-
| 'us-chi-1'
|
|
22
|
-
| 'us-wdc-1'
|
|
23
|
-
| 'eu-frk-1'
|
|
24
|
-
| 'ap-sin-1';
|
|
17
|
+
export type RegionName = 'us-sea-1' | 'us-sva-1' | 'us-sva-2' | 'us-chi-1' | 'us-wdc-1';
|
|
25
18
|
|
|
26
19
|
/**
|
|
27
20
|
* Status of the resource.
|
|
@@ -42,3 +35,18 @@ export interface SourceIPRule {
|
|
|
42
35
|
*/
|
|
43
36
|
blocked?: Array<string>;
|
|
44
37
|
}
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* IP filter rules.
|
|
41
|
+
*/
|
|
42
|
+
export interface SourceIPRuleResponse {
|
|
43
|
+
/**
|
|
44
|
+
* List of IPv4 CIDR addresses to allow.
|
|
45
|
+
*/
|
|
46
|
+
allowed: Array<string>;
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* List of IPv4 CIDR addresses to deny.
|
|
50
|
+
*/
|
|
51
|
+
blocked: Array<string>;
|
|
52
|
+
}
|
|
@@ -28,7 +28,7 @@ export interface UserSecurity {
|
|
|
28
28
|
/**
|
|
29
29
|
* IP filter rules.
|
|
30
30
|
*/
|
|
31
|
-
source_ip_rule:
|
|
31
|
+
source_ip_rule: Shared.SourceIPRuleResponse;
|
|
32
32
|
|
|
33
33
|
/**
|
|
34
34
|
* When the user security settings were created.
|
|
@@ -41,23 +41,6 @@ export interface UserSecurity {
|
|
|
41
41
|
updated_at?: string;
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
-
export namespace UserSecurity {
|
|
45
|
-
/**
|
|
46
|
-
* IP filter rules.
|
|
47
|
-
*/
|
|
48
|
-
export interface SourceIPRule {
|
|
49
|
-
/**
|
|
50
|
-
* List of IPv4 CIDR addresses to allow.
|
|
51
|
-
*/
|
|
52
|
-
allowed: Array<string>;
|
|
53
|
-
|
|
54
|
-
/**
|
|
55
|
-
* List of IPv4 CIDR addresses to deny.
|
|
56
|
-
*/
|
|
57
|
-
blocked: Array<string>;
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
|
|
61
44
|
export interface SecurityUpdateParams {
|
|
62
45
|
/**
|
|
63
46
|
* IP filter rules.
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '1.
|
|
1
|
+
export const VERSION = '1.58.0'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "1.
|
|
1
|
+
export declare const VERSION = "1.58.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "1.
|
|
1
|
+
export declare const VERSION = "1.58.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '1.
|
|
1
|
+
export const VERSION = '1.58.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|