@nirvana-labs/nirvana 1.17.3 → 1.18.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 +50 -0
- package/bin/cli +4 -10
- package/client.d.mts +1 -1
- package/client.d.ts +1 -1
- package/client.js +3 -3
- package/client.js.map +1 -1
- package/client.mjs +3 -3
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/api-keys.d.mts +25 -13
- package/resources/api-keys.d.mts.map +1 -1
- package/resources/api-keys.d.ts +25 -13
- package/resources/api-keys.d.ts.map +1 -1
- package/resources/compute/vms/availability.d.mts +3 -3
- package/resources/compute/vms/availability.d.ts +3 -3
- package/resources/compute/vms/vms.d.mts +3 -3
- package/resources/compute/vms/vms.d.ts +3 -3
- package/resources/compute/volumes/availability.d.mts +5 -5
- package/resources/compute/volumes/availability.d.ts +5 -5
- package/resources/compute/volumes/volumes.d.mts +14 -14
- package/resources/compute/volumes/volumes.d.ts +14 -14
- package/resources/connect/connect.d.mts +4 -4
- package/resources/connect/connect.d.mts.map +1 -1
- package/resources/connect/connect.d.ts +4 -4
- package/resources/connect/connect.d.ts.map +1 -1
- package/resources/connect/connect.js +4 -4
- package/resources/connect/connect.js.map +1 -1
- package/resources/connect/connect.mjs +4 -4
- package/resources/connect/connect.mjs.map +1 -1
- package/resources/connect/flux/flux.d.mts +204 -0
- package/resources/connect/flux/flux.d.mts.map +1 -0
- package/resources/connect/flux/flux.d.ts +204 -0
- package/resources/connect/flux/flux.d.ts.map +1 -0
- package/resources/connect/flux/flux.js +83 -0
- package/resources/connect/flux/flux.js.map +1 -0
- package/resources/connect/flux/flux.mjs +78 -0
- package/resources/connect/flux/flux.mjs.map +1 -0
- package/resources/connect/flux/index.d.mts +3 -0
- package/resources/connect/flux/index.d.mts.map +1 -0
- package/resources/connect/flux/index.d.ts +3 -0
- package/resources/connect/flux/index.d.ts.map +1 -0
- package/resources/connect/flux/index.js +9 -0
- package/resources/connect/flux/index.js.map +1 -0
- package/resources/connect/flux/index.mjs +4 -0
- package/resources/connect/flux/index.mjs.map +1 -0
- package/resources/connect/flux/providers.d.mts +17 -0
- package/resources/connect/flux/providers.d.mts.map +1 -0
- package/resources/connect/flux/providers.d.ts +17 -0
- package/resources/connect/flux/providers.d.ts.map +1 -0
- package/resources/connect/flux/providers.js +21 -0
- package/resources/connect/flux/providers.js.map +1 -0
- package/resources/connect/flux/providers.mjs +17 -0
- package/resources/connect/flux/providers.mjs.map +1 -0
- package/resources/connect/flux.d.mts +1 -69
- package/resources/connect/flux.d.mts.map +1 -1
- package/resources/connect/flux.d.ts +1 -69
- package/resources/connect/flux.d.ts.map +1 -1
- package/resources/connect/flux.js +2 -18
- package/resources/connect/flux.js.map +1 -1
- package/resources/connect/flux.mjs +1 -16
- package/resources/connect/flux.mjs.map +1 -1
- package/resources/connect/index.d.mts +1 -1
- package/resources/connect/index.d.mts.map +1 -1
- package/resources/connect/index.d.ts +1 -1
- package/resources/connect/index.d.ts.map +1 -1
- package/resources/connect/index.js +3 -3
- package/resources/connect/index.js.map +1 -1
- package/resources/connect/index.mjs +1 -1
- package/resources/connect/index.mjs.map +1 -1
- package/resources/networking/firewall-rules.d.mts +19 -19
- package/resources/networking/firewall-rules.d.ts +19 -19
- package/resources/networking/vpcs/vpcs.d.mts +5 -5
- package/resources/networking/vpcs/vpcs.d.ts +5 -5
- package/resources/operations.d.mts +10 -10
- package/resources/operations.d.ts +10 -10
- package/resources/rpc-nodes/dedicated/blockchains.d.mts +1 -1
- package/resources/rpc-nodes/dedicated/blockchains.d.mts.map +1 -1
- package/resources/rpc-nodes/dedicated/blockchains.d.ts +1 -1
- package/resources/rpc-nodes/dedicated/blockchains.d.ts.map +1 -1
- package/resources/rpc-nodes/dedicated/dedicated.d.mts +12 -12
- package/resources/rpc-nodes/dedicated/dedicated.d.mts.map +1 -1
- package/resources/rpc-nodes/dedicated/dedicated.d.ts +12 -12
- package/resources/rpc-nodes/dedicated/dedicated.d.ts.map +1 -1
- package/resources/rpc-nodes/dedicated/dedicated.js +4 -4
- package/resources/rpc-nodes/dedicated/dedicated.js.map +1 -1
- package/resources/rpc-nodes/dedicated/dedicated.mjs +2 -2
- package/resources/rpc-nodes/dedicated/dedicated.mjs.map +1 -1
- package/resources/rpc-nodes/dedicated/index.d.mts +1 -1
- package/resources/rpc-nodes/dedicated/index.d.mts.map +1 -1
- package/resources/rpc-nodes/dedicated/index.d.ts +1 -1
- package/resources/rpc-nodes/dedicated/index.d.ts.map +1 -1
- package/resources/rpc-nodes/dedicated/index.js +2 -2
- package/resources/rpc-nodes/dedicated/index.js.map +1 -1
- package/resources/rpc-nodes/dedicated/index.mjs +1 -1
- package/resources/rpc-nodes/dedicated/index.mjs.map +1 -1
- package/resources/rpc-nodes/flex/blockchains.d.mts +1 -1
- package/resources/rpc-nodes/flex/blockchains.d.mts.map +1 -1
- package/resources/rpc-nodes/flex/blockchains.d.ts +1 -1
- package/resources/rpc-nodes/flex/blockchains.d.ts.map +1 -1
- package/resources/rpc-nodes/flex/flex.d.mts +12 -12
- package/resources/rpc-nodes/flex/flex.d.mts.map +1 -1
- package/resources/rpc-nodes/flex/flex.d.ts +12 -12
- package/resources/rpc-nodes/flex/flex.d.ts.map +1 -1
- package/resources/rpc-nodes/flex/flex.js +4 -4
- package/resources/rpc-nodes/flex/flex.js.map +1 -1
- package/resources/rpc-nodes/flex/flex.mjs +2 -2
- package/resources/rpc-nodes/flex/flex.mjs.map +1 -1
- package/resources/rpc-nodes/flex/index.d.mts +1 -1
- package/resources/rpc-nodes/flex/index.d.mts.map +1 -1
- package/resources/rpc-nodes/flex/index.d.ts +1 -1
- package/resources/rpc-nodes/flex/index.d.ts.map +1 -1
- package/resources/rpc-nodes/flex/index.js +2 -2
- package/resources/rpc-nodes/flex/index.js.map +1 -1
- package/resources/rpc-nodes/flex/index.mjs +1 -1
- package/resources/rpc-nodes/flex/index.mjs.map +1 -1
- package/resources/rpc-nodes/index.d.mts +2 -2
- package/resources/rpc-nodes/index.d.mts.map +1 -1
- package/resources/rpc-nodes/index.d.ts +2 -2
- package/resources/rpc-nodes/index.d.ts.map +1 -1
- package/resources/rpc-nodes/index.js +3 -3
- package/resources/rpc-nodes/index.js.map +1 -1
- package/resources/rpc-nodes/index.mjs +2 -2
- package/resources/rpc-nodes/index.mjs.map +1 -1
- package/resources/rpc-nodes/rpc-nodes.d.mts +6 -6
- package/resources/rpc-nodes/rpc-nodes.d.mts.map +1 -1
- package/resources/rpc-nodes/rpc-nodes.d.ts +6 -6
- package/resources/rpc-nodes/rpc-nodes.d.ts.map +1 -1
- package/resources/rpc-nodes/rpc-nodes.js +4 -4
- package/resources/rpc-nodes/rpc-nodes.js.map +1 -1
- package/resources/rpc-nodes/rpc-nodes.mjs +6 -6
- package/resources/rpc-nodes/rpc-nodes.mjs.map +1 -1
- package/resources/user.d.mts +6 -3
- package/resources/user.d.mts.map +1 -1
- package/resources/user.d.ts +6 -3
- package/resources/user.d.ts.map +1 -1
- package/src/client.ts +3 -3
- package/src/resources/api-keys.ts +28 -13
- package/src/resources/compute/vms/availability.ts +3 -3
- package/src/resources/compute/vms/vms.ts +3 -3
- package/src/resources/compute/volumes/availability.ts +5 -5
- package/src/resources/compute/volumes/volumes.ts +14 -14
- package/src/resources/connect/connect.ts +25 -5
- package/src/resources/connect/flux/flux.ts +267 -0
- package/src/resources/connect/flux/index.ts +14 -0
- package/src/resources/connect/flux/providers.ts +21 -0
- package/src/resources/connect/flux.ts +1 -89
- package/src/resources/connect/index.ts +11 -1
- package/src/resources/networking/firewall-rules.ts +19 -19
- package/src/resources/networking/vpcs/vpcs.ts +5 -5
- package/src/resources/operations.ts +10 -10
- package/src/resources/rpc-nodes/dedicated/blockchains.ts +1 -1
- package/src/resources/rpc-nodes/dedicated/dedicated.ts +16 -16
- package/src/resources/rpc-nodes/dedicated/index.ts +5 -5
- package/src/resources/rpc-nodes/flex/blockchains.ts +1 -1
- package/src/resources/rpc-nodes/flex/flex.ts +16 -16
- package/src/resources/rpc-nodes/flex/index.ts +1 -7
- package/src/resources/rpc-nodes/index.ts +10 -10
- package/src/resources/rpc-nodes/rpc-nodes.ts +19 -25
- package/src/resources/user.ts +6 -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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rpc-nodes.d.ts","sourceRoot":"","sources":["../../src/resources/rpc-nodes/rpc-nodes.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,YAAY;OACjB,EACL,SAAS,EACT,
|
|
1
|
+
{"version":3,"file":"rpc-nodes.d.ts","sourceRoot":"","sources":["../../src/resources/rpc-nodes/rpc-nodes.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,YAAY;OACjB,EACL,SAAS,EACT,mBAAmB,EACnB,uBAAuB,EACvB,aAAa,EACb,iBAAiB,EAClB;OACM,KAAK,OAAO;OACZ,EAAE,IAAI,EAAE,cAAc,EAAE,kBAAkB,EAAE,QAAQ,EAAE,YAAY,EAAE;AAE3E,qBAAa,QAAS,SAAQ,WAAW;IACvC,IAAI,EAAE,OAAO,CAAC,YAAY,CAA0C;IACpE,SAAS,EAAE,YAAY,CAAC,iBAAiB,CAAoD;CAC9F;AAKD,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,YAAY,IAAI,YAAY,EAC5B,KAAK,IAAI,IAAI,IAAI,EACjB,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,QAAQ,IAAI,QAAQ,GAC1B,CAAC;IAEF,OAAO,EACL,iBAAiB,IAAI,iBAAiB,EACtC,KAAK,SAAS,IAAI,SAAS,EAC3B,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,aAAa,IAAI,aAAa,GACpC,CAAC;CACH"}
|
|
@@ -11,11 +11,11 @@ const flex_1 = require("./flex/flex.js");
|
|
|
11
11
|
class RPCNodes extends resource_1.APIResource {
|
|
12
12
|
constructor() {
|
|
13
13
|
super(...arguments);
|
|
14
|
-
this.flex = new FlexAPI.
|
|
15
|
-
this.dedicated = new DedicatedAPI.
|
|
14
|
+
this.flex = new FlexAPI.FlexResource(this._client);
|
|
15
|
+
this.dedicated = new DedicatedAPI.DedicatedResource(this._client);
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
18
|
exports.RPCNodes = RPCNodes;
|
|
19
|
-
RPCNodes.
|
|
20
|
-
RPCNodes.
|
|
19
|
+
RPCNodes.FlexResource = flex_1.FlexResource;
|
|
20
|
+
RPCNodes.DedicatedResource = dedicated_1.DedicatedResource;
|
|
21
21
|
//# sourceMappingURL=rpc-nodes.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rpc-nodes.js","sourceRoot":"","sources":["../../src/resources/rpc-nodes/rpc-nodes.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,+EAAsD;AACtD,wDAM+B;AAC/B,gEAAuC;AACvC,
|
|
1
|
+
{"version":3,"file":"rpc-nodes.js","sourceRoot":"","sources":["../../src/resources/rpc-nodes/rpc-nodes.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,+EAAsD;AACtD,wDAM+B;AAC/B,gEAAuC;AACvC,yCAA+F;AAE/F,MAAa,QAAS,SAAQ,sBAAW;IAAzC;;QACE,SAAI,GAAyB,IAAI,OAAO,CAAC,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACpE,cAAS,GAAmC,IAAI,YAAY,CAAC,iBAAiB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC/F,CAAC;CAAA;AAHD,4BAGC;AAED,QAAQ,CAAC,YAAY,GAAG,mBAAY,CAAC;AACrC,QAAQ,CAAC,iBAAiB,GAAG,6BAAiB,CAAC"}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
import { APIResource } from "../../core/resource.mjs";
|
|
3
3
|
import * as DedicatedAPI from "./dedicated/dedicated.mjs";
|
|
4
|
-
import {
|
|
4
|
+
import { DedicatedResource, } from "./dedicated/dedicated.mjs";
|
|
5
5
|
import * as FlexAPI from "./flex/flex.mjs";
|
|
6
|
-
import {
|
|
6
|
+
import { FlexResource } from "./flex/flex.mjs";
|
|
7
7
|
export class RPCNodes extends APIResource {
|
|
8
8
|
constructor() {
|
|
9
9
|
super(...arguments);
|
|
10
|
-
this.flex = new FlexAPI.
|
|
11
|
-
this.dedicated = new DedicatedAPI.
|
|
10
|
+
this.flex = new FlexAPI.FlexResource(this._client);
|
|
11
|
+
this.dedicated = new DedicatedAPI.DedicatedResource(this._client);
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
|
-
RPCNodes.
|
|
15
|
-
RPCNodes.
|
|
14
|
+
RPCNodes.FlexResource = FlexResource;
|
|
15
|
+
RPCNodes.DedicatedResource = DedicatedResource;
|
|
16
16
|
//# sourceMappingURL=rpc-nodes.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rpc-nodes.mjs","sourceRoot":"","sources":["../../src/resources/rpc-nodes/rpc-nodes.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,YAAY;OACjB,
|
|
1
|
+
{"version":3,"file":"rpc-nodes.mjs","sourceRoot":"","sources":["../../src/resources/rpc-nodes/rpc-nodes.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,YAAY;OACjB,EAKL,iBAAiB,GAClB;OACM,KAAK,OAAO;OACZ,EAAsD,YAAY,EAAE;AAE3E,MAAM,OAAO,QAAS,SAAQ,WAAW;IAAzC;;QACE,SAAI,GAAyB,IAAI,OAAO,CAAC,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACpE,cAAS,GAAmC,IAAI,YAAY,CAAC,iBAAiB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC/F,CAAC;CAAA;AAED,QAAQ,CAAC,YAAY,GAAG,YAAY,CAAC;AACrC,QAAQ,CAAC,iBAAiB,GAAG,iBAAiB,CAAC"}
|
package/resources/user.d.mts
CHANGED
|
@@ -7,9 +7,12 @@ export declare class UserResource extends APIResource {
|
|
|
7
7
|
*/
|
|
8
8
|
get(options?: RequestOptions): APIPromise<User>;
|
|
9
9
|
}
|
|
10
|
+
/**
|
|
11
|
+
* User details.
|
|
12
|
+
*/
|
|
10
13
|
export interface User {
|
|
11
14
|
/**
|
|
12
|
-
* Unique identifier for the
|
|
15
|
+
* Unique identifier for the User.
|
|
13
16
|
*/
|
|
14
17
|
id: string;
|
|
15
18
|
/**
|
|
@@ -17,13 +20,13 @@ export interface User {
|
|
|
17
20
|
*/
|
|
18
21
|
email: string;
|
|
19
22
|
/**
|
|
20
|
-
* Services that the
|
|
23
|
+
* Services that the User has access to.
|
|
21
24
|
*/
|
|
22
25
|
services: User.Services;
|
|
23
26
|
}
|
|
24
27
|
export declare namespace User {
|
|
25
28
|
/**
|
|
26
|
-
* Services that the
|
|
29
|
+
* Services that the User has access to.
|
|
27
30
|
*/
|
|
28
31
|
interface Services {
|
|
29
32
|
cloud?: boolean;
|
package/resources/user.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.d.mts","sourceRoot":"","sources":["../src/resources/user.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;OAEG;IACH,GAAG,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;CAGhD;AAED,MAAM,WAAW,IAAI;IACnB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC;CACzB;AAED,yBAAiB,IAAI,CAAC;IACpB;;OAEG;IACH,UAAiB,QAAQ;QACvB,KAAK,CAAC,EAAE,OAAO,CAAC;KACjB;CACF;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EAAE,KAAK,IAAI,IAAI,IAAI,EAAE,CAAC;CAC9B"}
|
|
1
|
+
{"version":3,"file":"user.d.mts","sourceRoot":"","sources":["../src/resources/user.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;OAEG;IACH,GAAG,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;CAGhD;AAED;;GAEG;AACH,MAAM,WAAW,IAAI;IACnB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC;CACzB;AAED,yBAAiB,IAAI,CAAC;IACpB;;OAEG;IACH,UAAiB,QAAQ;QACvB,KAAK,CAAC,EAAE,OAAO,CAAC;KACjB;CACF;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EAAE,KAAK,IAAI,IAAI,IAAI,EAAE,CAAC;CAC9B"}
|
package/resources/user.d.ts
CHANGED
|
@@ -7,9 +7,12 @@ export declare class UserResource extends APIResource {
|
|
|
7
7
|
*/
|
|
8
8
|
get(options?: RequestOptions): APIPromise<User>;
|
|
9
9
|
}
|
|
10
|
+
/**
|
|
11
|
+
* User details.
|
|
12
|
+
*/
|
|
10
13
|
export interface User {
|
|
11
14
|
/**
|
|
12
|
-
* Unique identifier for the
|
|
15
|
+
* Unique identifier for the User.
|
|
13
16
|
*/
|
|
14
17
|
id: string;
|
|
15
18
|
/**
|
|
@@ -17,13 +20,13 @@ export interface User {
|
|
|
17
20
|
*/
|
|
18
21
|
email: string;
|
|
19
22
|
/**
|
|
20
|
-
* Services that the
|
|
23
|
+
* Services that the User has access to.
|
|
21
24
|
*/
|
|
22
25
|
services: User.Services;
|
|
23
26
|
}
|
|
24
27
|
export declare namespace User {
|
|
25
28
|
/**
|
|
26
|
-
* Services that the
|
|
29
|
+
* Services that the User has access to.
|
|
27
30
|
*/
|
|
28
31
|
interface Services {
|
|
29
32
|
cloud?: boolean;
|
package/resources/user.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../src/resources/user.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;OAEG;IACH,GAAG,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;CAGhD;AAED,MAAM,WAAW,IAAI;IACnB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC;CACzB;AAED,yBAAiB,IAAI,CAAC;IACpB;;OAEG;IACH,UAAiB,QAAQ;QACvB,KAAK,CAAC,EAAE,OAAO,CAAC;KACjB;CACF;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EAAE,KAAK,IAAI,IAAI,IAAI,EAAE,CAAC;CAC9B"}
|
|
1
|
+
{"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../src/resources/user.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;OAEG;IACH,GAAG,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;CAGhD;AAED;;GAEG;AACH,MAAM,WAAW,IAAI;IACnB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC;CACzB;AAED,yBAAiB,IAAI,CAAC;IACpB;;OAEG;IACH,UAAiB,QAAQ;QACvB,KAAK,CAAC,EAAE,OAAO,CAAC;KACjB;CACF;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EAAE,KAAK,IAAI,IAAI,IAAI,EAAE,CAAC;CAC9B"}
|
package/src/client.ts
CHANGED
|
@@ -134,7 +134,7 @@ export class NirvanaLabs {
|
|
|
134
134
|
* API Client for interfacing with the Nirvana Labs API.
|
|
135
135
|
*
|
|
136
136
|
* @param {string | undefined} [opts.apiKey=process.env['NIRVANA_LABS_API_KEY'] ?? undefined]
|
|
137
|
-
* @param {string} [opts.baseURL=process.env['NIRVANA_LABS_BASE_URL'] ?? https://api.nirvanalabs.io
|
|
137
|
+
* @param {string} [opts.baseURL=process.env['NIRVANA_LABS_BASE_URL'] ?? https://api.nirvanalabs.io] - Override the default base URL for the API.
|
|
138
138
|
* @param {number} [opts.timeout=1 minute] - The maximum amount of time (in milliseconds) the client will wait for a response before timing out.
|
|
139
139
|
* @param {MergedRequestInit} [opts.fetchOptions] - Additional `RequestInit` options to be passed to `fetch` calls.
|
|
140
140
|
* @param {Fetch} [opts.fetch] - Specify a custom `fetch` function implementation.
|
|
@@ -156,7 +156,7 @@ export class NirvanaLabs {
|
|
|
156
156
|
const options: ClientOptions = {
|
|
157
157
|
apiKey,
|
|
158
158
|
...opts,
|
|
159
|
-
baseURL: baseURL || `https://api.nirvanalabs.io
|
|
159
|
+
baseURL: baseURL || `https://api.nirvanalabs.io`,
|
|
160
160
|
};
|
|
161
161
|
|
|
162
162
|
this.baseURL = options.baseURL!;
|
|
@@ -202,7 +202,7 @@ export class NirvanaLabs {
|
|
|
202
202
|
* Check whether the base URL is set to its default.
|
|
203
203
|
*/
|
|
204
204
|
#baseURLOverridden(): boolean {
|
|
205
|
-
return this.baseURL !== 'https://api.nirvanalabs.io
|
|
205
|
+
return this.baseURL !== 'https://api.nirvanalabs.io';
|
|
206
206
|
}
|
|
207
207
|
|
|
208
208
|
protected defaultQuery(): Record<string, string | undefined> | undefined {
|
|
@@ -75,46 +75,51 @@ export class APIKeys extends APIResource {
|
|
|
75
75
|
}
|
|
76
76
|
|
|
77
77
|
/**
|
|
78
|
-
* API
|
|
78
|
+
* API Key response.
|
|
79
79
|
*/
|
|
80
80
|
export interface APIKey {
|
|
81
81
|
/**
|
|
82
|
-
* API
|
|
82
|
+
* API Key ID.
|
|
83
83
|
*/
|
|
84
84
|
id: string;
|
|
85
85
|
|
|
86
86
|
/**
|
|
87
|
-
* When the API
|
|
87
|
+
* When the API Key was created.
|
|
88
88
|
*/
|
|
89
89
|
created_at: string;
|
|
90
90
|
|
|
91
91
|
/**
|
|
92
|
-
* When the API
|
|
92
|
+
* When the API Key expires and is no longer valid.
|
|
93
93
|
*/
|
|
94
94
|
expires_at: string;
|
|
95
95
|
|
|
96
96
|
/**
|
|
97
|
-
* API
|
|
97
|
+
* API Key name.
|
|
98
98
|
*/
|
|
99
99
|
name: string;
|
|
100
100
|
|
|
101
101
|
/**
|
|
102
|
-
* Status of the API
|
|
102
|
+
* Status of the API Key.
|
|
103
103
|
*/
|
|
104
104
|
status: 'active' | 'inactive' | 'expired';
|
|
105
105
|
|
|
106
106
|
/**
|
|
107
|
-
*
|
|
107
|
+
* Tags to attach to the API Key.
|
|
108
|
+
*/
|
|
109
|
+
tags: Array<string>;
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* When the API Key was updated.
|
|
108
113
|
*/
|
|
109
114
|
updated_at: string;
|
|
110
115
|
|
|
111
116
|
/**
|
|
112
|
-
* API
|
|
117
|
+
* API Key. Only returned on creation.
|
|
113
118
|
*/
|
|
114
119
|
key?: string;
|
|
115
120
|
|
|
116
121
|
/**
|
|
117
|
-
* When the API
|
|
122
|
+
* When the API Key starts to be valid.
|
|
118
123
|
*/
|
|
119
124
|
starts_at?: string;
|
|
120
125
|
}
|
|
@@ -125,26 +130,36 @@ export interface APIKeyList {
|
|
|
125
130
|
|
|
126
131
|
export interface APIKeyCreateParams {
|
|
127
132
|
/**
|
|
128
|
-
* When the API
|
|
133
|
+
* When the API Key expires and is no longer valid.
|
|
129
134
|
*/
|
|
130
135
|
expires_at: string;
|
|
131
136
|
|
|
132
137
|
/**
|
|
133
|
-
* API
|
|
138
|
+
* API Key name.
|
|
134
139
|
*/
|
|
135
140
|
name: string;
|
|
136
141
|
|
|
137
142
|
/**
|
|
138
|
-
* When the API
|
|
143
|
+
* When the API Key starts to be valid.
|
|
139
144
|
*/
|
|
140
145
|
starts_at?: string;
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* Tags to attach to the API Key.
|
|
149
|
+
*/
|
|
150
|
+
tags?: Array<string>;
|
|
141
151
|
}
|
|
142
152
|
|
|
143
153
|
export interface APIKeyUpdateParams {
|
|
144
154
|
/**
|
|
145
|
-
* API
|
|
155
|
+
* API Key name.
|
|
146
156
|
*/
|
|
147
157
|
name?: string;
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* Tags to attach to the API Key.
|
|
161
|
+
*/
|
|
162
|
+
tags?: Array<string>;
|
|
148
163
|
}
|
|
149
164
|
|
|
150
165
|
export declare namespace APIKeys {
|
|
@@ -119,7 +119,7 @@ export namespace AvailabilityCreateParams {
|
|
|
119
119
|
*/
|
|
120
120
|
export interface BootVolume {
|
|
121
121
|
/**
|
|
122
|
-
* Size of the
|
|
122
|
+
* Size of the Volume in GB.
|
|
123
123
|
*/
|
|
124
124
|
size: number;
|
|
125
125
|
}
|
|
@@ -129,12 +129,12 @@ export namespace AvailabilityCreateParams {
|
|
|
129
129
|
*/
|
|
130
130
|
export interface DataVolume {
|
|
131
131
|
/**
|
|
132
|
-
* Name of the
|
|
132
|
+
* Name of the Volume.
|
|
133
133
|
*/
|
|
134
134
|
name: string;
|
|
135
135
|
|
|
136
136
|
/**
|
|
137
|
-
* Size of the
|
|
137
|
+
* Size of the Volume in GB.
|
|
138
138
|
*/
|
|
139
139
|
size: number;
|
|
140
140
|
}
|
|
@@ -327,7 +327,7 @@ export namespace VMCreateParams {
|
|
|
327
327
|
*/
|
|
328
328
|
export interface BootVolume {
|
|
329
329
|
/**
|
|
330
|
-
* Size of the
|
|
330
|
+
* Size of the Volume in GB.
|
|
331
331
|
*/
|
|
332
332
|
size: number;
|
|
333
333
|
}
|
|
@@ -337,12 +337,12 @@ export namespace VMCreateParams {
|
|
|
337
337
|
*/
|
|
338
338
|
export interface DataVolume {
|
|
339
339
|
/**
|
|
340
|
-
* Name of the
|
|
340
|
+
* Name of the Volume.
|
|
341
341
|
*/
|
|
342
342
|
name: string;
|
|
343
343
|
|
|
344
344
|
/**
|
|
345
|
-
* Size of the
|
|
345
|
+
* Size of the Volume in GB.
|
|
346
346
|
*/
|
|
347
347
|
size: number;
|
|
348
348
|
}
|
|
@@ -54,29 +54,29 @@ export type AvailabilityUpdateResponse = string;
|
|
|
54
54
|
|
|
55
55
|
export interface AvailabilityCreateParams {
|
|
56
56
|
/**
|
|
57
|
-
* Name of the
|
|
57
|
+
* Name of the Volume.
|
|
58
58
|
*/
|
|
59
59
|
name: string;
|
|
60
60
|
|
|
61
61
|
/**
|
|
62
|
-
* Size of the
|
|
62
|
+
* Size of the Volume in GB.
|
|
63
63
|
*/
|
|
64
64
|
size: number;
|
|
65
65
|
|
|
66
66
|
/**
|
|
67
|
-
* ID of the VM the
|
|
67
|
+
* ID of the VM the Volume is attached to.
|
|
68
68
|
*/
|
|
69
69
|
vm_id: string;
|
|
70
70
|
}
|
|
71
71
|
|
|
72
72
|
export interface AvailabilityUpdateParams {
|
|
73
73
|
/**
|
|
74
|
-
* Name of the
|
|
74
|
+
* Name of the Volume.
|
|
75
75
|
*/
|
|
76
76
|
name?: string;
|
|
77
77
|
|
|
78
78
|
/**
|
|
79
|
-
* Size of the
|
|
79
|
+
* Size of the Volume in GB.
|
|
80
80
|
*/
|
|
81
81
|
size?: number;
|
|
82
82
|
}
|
|
@@ -94,7 +94,7 @@ export class Volumes extends APIResource {
|
|
|
94
94
|
}
|
|
95
95
|
|
|
96
96
|
/**
|
|
97
|
-
* Storage type the
|
|
97
|
+
* Storage type the Volume is using.
|
|
98
98
|
*/
|
|
99
99
|
export type StorageType = 'nvme';
|
|
100
100
|
|
|
@@ -103,12 +103,12 @@ export type StorageType = 'nvme';
|
|
|
103
103
|
*/
|
|
104
104
|
export interface Volume {
|
|
105
105
|
/**
|
|
106
|
-
* Unique identifier for the
|
|
106
|
+
* Unique identifier for the Volume.
|
|
107
107
|
*/
|
|
108
108
|
id: string;
|
|
109
109
|
|
|
110
110
|
/**
|
|
111
|
-
* When the
|
|
111
|
+
* When the Volume was created.
|
|
112
112
|
*/
|
|
113
113
|
created_at: string;
|
|
114
114
|
|
|
@@ -118,12 +118,12 @@ export interface Volume {
|
|
|
118
118
|
kind: VolumeKind;
|
|
119
119
|
|
|
120
120
|
/**
|
|
121
|
-
* Name of the
|
|
121
|
+
* Name of the Volume.
|
|
122
122
|
*/
|
|
123
123
|
name: string;
|
|
124
124
|
|
|
125
125
|
/**
|
|
126
|
-
* Size of the
|
|
126
|
+
* Size of the Volume in GB.
|
|
127
127
|
*/
|
|
128
128
|
size: number;
|
|
129
129
|
|
|
@@ -133,22 +133,22 @@ export interface Volume {
|
|
|
133
133
|
status: Shared.ResourceStatus;
|
|
134
134
|
|
|
135
135
|
/**
|
|
136
|
-
* Storage type the
|
|
136
|
+
* Storage type the Volume is using.
|
|
137
137
|
*/
|
|
138
138
|
type: StorageType;
|
|
139
139
|
|
|
140
140
|
/**
|
|
141
|
-
* When the
|
|
141
|
+
* When the Volume was updated.
|
|
142
142
|
*/
|
|
143
143
|
updated_at: string;
|
|
144
144
|
|
|
145
145
|
/**
|
|
146
|
-
* ID of the VM the
|
|
146
|
+
* ID of the VM the Volume is attached to.
|
|
147
147
|
*/
|
|
148
148
|
vm_id: string | null;
|
|
149
149
|
|
|
150
150
|
/**
|
|
151
|
-
* Name of the VM the
|
|
151
|
+
* Name of the VM the Volume is attached to.
|
|
152
152
|
*/
|
|
153
153
|
vm_name: string | null;
|
|
154
154
|
}
|
|
@@ -164,29 +164,29 @@ export interface VolumeList {
|
|
|
164
164
|
|
|
165
165
|
export interface VolumeCreateParams {
|
|
166
166
|
/**
|
|
167
|
-
* Name of the
|
|
167
|
+
* Name of the Volume.
|
|
168
168
|
*/
|
|
169
169
|
name: string;
|
|
170
170
|
|
|
171
171
|
/**
|
|
172
|
-
* Size of the
|
|
172
|
+
* Size of the Volume in GB.
|
|
173
173
|
*/
|
|
174
174
|
size: number;
|
|
175
175
|
|
|
176
176
|
/**
|
|
177
|
-
* ID of the VM the
|
|
177
|
+
* ID of the VM the Volume is attached to.
|
|
178
178
|
*/
|
|
179
179
|
vm_id: string;
|
|
180
180
|
}
|
|
181
181
|
|
|
182
182
|
export interface VolumeUpdateParams {
|
|
183
183
|
/**
|
|
184
|
-
* Name of the
|
|
184
|
+
* Name of the Volume.
|
|
185
185
|
*/
|
|
186
186
|
name?: string;
|
|
187
187
|
|
|
188
188
|
/**
|
|
189
|
-
* Size of the
|
|
189
|
+
* Size of the Volume in GB.
|
|
190
190
|
*/
|
|
191
191
|
size?: number;
|
|
192
192
|
}
|
|
@@ -1,15 +1,35 @@
|
|
|
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 FluxAPI from './flux';
|
|
5
|
-
import {
|
|
4
|
+
import * as FluxAPI from './flux/flux';
|
|
5
|
+
import {
|
|
6
|
+
Flux,
|
|
7
|
+
FluxCreateParams,
|
|
8
|
+
FluxList,
|
|
9
|
+
FluxProvider,
|
|
10
|
+
FluxProviderAWSConfig,
|
|
11
|
+
FluxProviderAWSConfigRequest,
|
|
12
|
+
FluxProviderList,
|
|
13
|
+
FluxResource,
|
|
14
|
+
FluxUpdateParams,
|
|
15
|
+
} from './flux/flux';
|
|
6
16
|
|
|
7
17
|
export class Connect extends APIResource {
|
|
8
|
-
flux: FluxAPI.
|
|
18
|
+
flux: FluxAPI.FluxResource = new FluxAPI.FluxResource(this._client);
|
|
9
19
|
}
|
|
10
20
|
|
|
11
|
-
Connect.
|
|
21
|
+
Connect.FluxResource = FluxResource;
|
|
12
22
|
|
|
13
23
|
export declare namespace Connect {
|
|
14
|
-
export {
|
|
24
|
+
export {
|
|
25
|
+
FluxResource as FluxResource,
|
|
26
|
+
type Flux as Flux,
|
|
27
|
+
type FluxList as FluxList,
|
|
28
|
+
type FluxProvider as FluxProvider,
|
|
29
|
+
type FluxProviderAWSConfig as FluxProviderAWSConfig,
|
|
30
|
+
type FluxProviderAWSConfigRequest as FluxProviderAWSConfigRequest,
|
|
31
|
+
type FluxProviderList as FluxProviderList,
|
|
32
|
+
type FluxCreateParams as FluxCreateParams,
|
|
33
|
+
type FluxUpdateParams as FluxUpdateParams,
|
|
34
|
+
};
|
|
15
35
|
}
|