@nirvana-labs/nirvana 1.17.4 → 1.18.1
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 +42 -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 +2 -2
- package/resources/connect/connect.d.mts.map +1 -1
- package/resources/connect/connect.d.ts +2 -2
- package/resources/connect/connect.d.ts.map +1 -1
- package/resources/connect/connect.js.map +1 -1
- package/resources/connect/connect.mjs.map +1 -1
- package/resources/connect/flux/flux.d.mts +7 -3
- package/resources/connect/flux/flux.d.mts.map +1 -1
- package/resources/connect/flux/flux.d.ts +7 -3
- package/resources/connect/flux/flux.d.ts.map +1 -1
- package/resources/connect/flux/flux.js.map +1 -1
- package/resources/connect/flux/flux.mjs.map +1 -1
- package/resources/connect/flux/index.d.mts +1 -1
- package/resources/connect/flux/index.d.mts.map +1 -1
- package/resources/connect/flux/index.d.ts +1 -1
- package/resources/connect/flux/index.d.ts.map +1 -1
- package/resources/connect/flux/index.js.map +1 -1
- package/resources/connect/flux/index.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.map +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/dedicated.d.mts +1 -1
- package/resources/rpc-nodes/dedicated/dedicated.d.ts +1 -1
- package/resources/rpc-nodes/flex/flex.d.mts +1 -1
- package/resources/rpc-nodes/flex/flex.d.ts +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 +2 -0
- package/src/resources/connect/flux/flux.ts +8 -2
- package/src/resources/connect/flux/index.ts +1 -0
- package/src/resources/connect/index.ts +1 -0
- 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/dedicated.ts +1 -1
- package/src/resources/rpc-nodes/flex/flex.ts +1 -1
- 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
|
@@ -75,31 +75,31 @@ export declare class FirewallRules extends APIResource {
|
|
|
75
75
|
*/
|
|
76
76
|
export interface FirewallRule {
|
|
77
77
|
/**
|
|
78
|
-
* Unique identifier for the
|
|
78
|
+
* Unique identifier for the Firewall Rule.
|
|
79
79
|
*/
|
|
80
80
|
id: string;
|
|
81
81
|
/**
|
|
82
|
-
* When the
|
|
82
|
+
* When the Firewall Rule was created.
|
|
83
83
|
*/
|
|
84
84
|
created_at: string;
|
|
85
85
|
/**
|
|
86
|
-
* Destination address of the
|
|
86
|
+
* Destination address of the Firewall Rule. Either VPC CIDR or VM in VPC.
|
|
87
87
|
*/
|
|
88
88
|
destination_address: string;
|
|
89
89
|
/**
|
|
90
|
-
* Destination ports of the
|
|
90
|
+
* Destination ports of the Firewall Rule.
|
|
91
91
|
*/
|
|
92
92
|
destination_ports: Array<string>;
|
|
93
93
|
/**
|
|
94
|
-
* Name of the
|
|
94
|
+
* Name of the Firewall Rule.
|
|
95
95
|
*/
|
|
96
96
|
name: string;
|
|
97
97
|
/**
|
|
98
|
-
* Protocol of the
|
|
98
|
+
* Protocol of the Firewall Rule.
|
|
99
99
|
*/
|
|
100
100
|
protocol: 'tcp' | 'udp';
|
|
101
101
|
/**
|
|
102
|
-
* Source address of the
|
|
102
|
+
* Source address of the Firewall Rule. Address of 0.0.0.0 requires a CIDR mask
|
|
103
103
|
* of 0.
|
|
104
104
|
*/
|
|
105
105
|
source_address: string;
|
|
@@ -108,11 +108,11 @@ export interface FirewallRule {
|
|
|
108
108
|
*/
|
|
109
109
|
status: Shared.ResourceStatus;
|
|
110
110
|
/**
|
|
111
|
-
* When the
|
|
111
|
+
* When the Firewall Rule was updated.
|
|
112
112
|
*/
|
|
113
113
|
updated_at: string;
|
|
114
114
|
/**
|
|
115
|
-
* ID of the VPC the
|
|
115
|
+
* ID of the VPC the Firewall Rule belongs to.
|
|
116
116
|
*/
|
|
117
117
|
vpc_id: string;
|
|
118
118
|
}
|
|
@@ -121,23 +121,23 @@ export interface FirewallRuleList {
|
|
|
121
121
|
}
|
|
122
122
|
export interface FirewallRuleCreateParams {
|
|
123
123
|
/**
|
|
124
|
-
* Destination address of the
|
|
124
|
+
* Destination address of the Firewall Rule. Either VPC CIDR or VM in VPC.
|
|
125
125
|
*/
|
|
126
126
|
destination_address: string;
|
|
127
127
|
/**
|
|
128
|
-
* Destination ports of the
|
|
128
|
+
* Destination ports of the Firewall Rule.
|
|
129
129
|
*/
|
|
130
130
|
destination_ports: Array<string>;
|
|
131
131
|
/**
|
|
132
|
-
* Name of the
|
|
132
|
+
* Name of the Firewall Rule.
|
|
133
133
|
*/
|
|
134
134
|
name: string;
|
|
135
135
|
/**
|
|
136
|
-
* Protocol of the
|
|
136
|
+
* Protocol of the Firewall Rule.
|
|
137
137
|
*/
|
|
138
138
|
protocol: 'tcp' | 'udp';
|
|
139
139
|
/**
|
|
140
|
-
* Source address of the
|
|
140
|
+
* Source address of the Firewall Rule. Address of 0.0.0.0 requires a CIDR mask
|
|
141
141
|
* of 0.
|
|
142
142
|
*/
|
|
143
143
|
source_address: string;
|
|
@@ -148,24 +148,24 @@ export interface FirewallRuleUpdateParams {
|
|
|
148
148
|
*/
|
|
149
149
|
vpc_id: string;
|
|
150
150
|
/**
|
|
151
|
-
* Body param: Destination address of the
|
|
151
|
+
* Body param: Destination address of the Firewall Rule. Either VPC CIDR or VM in
|
|
152
152
|
* VPC.
|
|
153
153
|
*/
|
|
154
154
|
destination_address?: string;
|
|
155
155
|
/**
|
|
156
|
-
* Body param: Destination ports of the
|
|
156
|
+
* Body param: Destination ports of the Firewall Rule.
|
|
157
157
|
*/
|
|
158
158
|
destination_ports?: Array<string>;
|
|
159
159
|
/**
|
|
160
|
-
* Body param: Name of the
|
|
160
|
+
* Body param: Name of the Firewall Rule.
|
|
161
161
|
*/
|
|
162
162
|
name?: string;
|
|
163
163
|
/**
|
|
164
|
-
* Body param: Protocol of the
|
|
164
|
+
* Body param: Protocol of the Firewall Rule.
|
|
165
165
|
*/
|
|
166
166
|
protocol?: 'tcp' | 'udp';
|
|
167
167
|
/**
|
|
168
|
-
* Body param: Source address of the
|
|
168
|
+
* Body param: Source address of the Firewall Rule. Address of 0.0.0.0 requires a
|
|
169
169
|
* CIDR mask of 0.
|
|
170
170
|
*/
|
|
171
171
|
source_address?: string;
|
|
@@ -70,19 +70,19 @@ export interface Subnet {
|
|
|
70
70
|
*/
|
|
71
71
|
id: string;
|
|
72
72
|
/**
|
|
73
|
-
* CIDR block for the
|
|
73
|
+
* CIDR block for the Subnet.
|
|
74
74
|
*/
|
|
75
75
|
cidr: string;
|
|
76
76
|
/**
|
|
77
|
-
* When the
|
|
77
|
+
* When the Subnet was created.
|
|
78
78
|
*/
|
|
79
79
|
created_at: string;
|
|
80
80
|
/**
|
|
81
|
-
* Name of the
|
|
81
|
+
* Name of the Subnet.
|
|
82
82
|
*/
|
|
83
83
|
name: string;
|
|
84
84
|
/**
|
|
85
|
-
* When the
|
|
85
|
+
* When the Subnet was updated.
|
|
86
86
|
*/
|
|
87
87
|
updated_at: string;
|
|
88
88
|
}
|
|
@@ -99,7 +99,7 @@ export interface VPC {
|
|
|
99
99
|
*/
|
|
100
100
|
created_at: string;
|
|
101
101
|
/**
|
|
102
|
-
* IDs of the
|
|
102
|
+
* IDs of the Firewall Rules associated with the VPC.
|
|
103
103
|
*/
|
|
104
104
|
firewall_rule_ids: Array<string>;
|
|
105
105
|
/**
|
|
@@ -70,19 +70,19 @@ export interface Subnet {
|
|
|
70
70
|
*/
|
|
71
71
|
id: string;
|
|
72
72
|
/**
|
|
73
|
-
* CIDR block for the
|
|
73
|
+
* CIDR block for the Subnet.
|
|
74
74
|
*/
|
|
75
75
|
cidr: string;
|
|
76
76
|
/**
|
|
77
|
-
* When the
|
|
77
|
+
* When the Subnet was created.
|
|
78
78
|
*/
|
|
79
79
|
created_at: string;
|
|
80
80
|
/**
|
|
81
|
-
* Name of the
|
|
81
|
+
* Name of the Subnet.
|
|
82
82
|
*/
|
|
83
83
|
name: string;
|
|
84
84
|
/**
|
|
85
|
-
* When the
|
|
85
|
+
* When the Subnet was updated.
|
|
86
86
|
*/
|
|
87
87
|
updated_at: string;
|
|
88
88
|
}
|
|
@@ -99,7 +99,7 @@ export interface VPC {
|
|
|
99
99
|
*/
|
|
100
100
|
created_at: string;
|
|
101
101
|
/**
|
|
102
|
-
* IDs of the
|
|
102
|
+
* IDs of the Firewall Rules associated with the VPC.
|
|
103
103
|
*/
|
|
104
104
|
firewall_rule_ids: Array<string>;
|
|
105
105
|
/**
|
|
@@ -16,47 +16,47 @@ export declare class Operations extends APIResource {
|
|
|
16
16
|
*/
|
|
17
17
|
export interface Operation {
|
|
18
18
|
/**
|
|
19
|
-
* Unique identifier for the
|
|
19
|
+
* Unique identifier for the Operation.
|
|
20
20
|
*/
|
|
21
21
|
id: string;
|
|
22
22
|
/**
|
|
23
|
-
* When the
|
|
23
|
+
* When the Operation was created.
|
|
24
24
|
*/
|
|
25
25
|
created_at: string;
|
|
26
26
|
/**
|
|
27
|
-
* Kind of
|
|
27
|
+
* Kind of Operation.
|
|
28
28
|
*/
|
|
29
29
|
kind: OperationKind;
|
|
30
30
|
/**
|
|
31
|
-
* ID of the resource that the
|
|
31
|
+
* ID of the resource that the Operation is acting on.
|
|
32
32
|
*/
|
|
33
33
|
resource_id: string;
|
|
34
34
|
/**
|
|
35
|
-
* Status of the
|
|
35
|
+
* Status of the Operation.
|
|
36
36
|
*/
|
|
37
37
|
status: OperationStatus;
|
|
38
38
|
/**
|
|
39
|
-
* Type of
|
|
39
|
+
* Type of Operation.
|
|
40
40
|
*/
|
|
41
41
|
type: OperationType;
|
|
42
42
|
/**
|
|
43
|
-
* When the
|
|
43
|
+
* When the Operation was updated.
|
|
44
44
|
*/
|
|
45
45
|
updated_at: string;
|
|
46
46
|
}
|
|
47
47
|
/**
|
|
48
|
-
* Kind of
|
|
48
|
+
* Kind of Operation.
|
|
49
49
|
*/
|
|
50
50
|
export type OperationKind = 'vm' | 'volume' | 'vpc' | 'firewall_rule';
|
|
51
51
|
export interface OperationList {
|
|
52
52
|
items: Array<Operation>;
|
|
53
53
|
}
|
|
54
54
|
/**
|
|
55
|
-
* Status of the
|
|
55
|
+
* Status of the Operation.
|
|
56
56
|
*/
|
|
57
57
|
export type OperationStatus = 'pending' | 'running' | 'done' | 'failed' | 'unknown';
|
|
58
58
|
/**
|
|
59
|
-
* Type of
|
|
59
|
+
* Type of Operation.
|
|
60
60
|
*/
|
|
61
61
|
export type OperationType = 'create' | 'update' | 'delete' | 'restart';
|
|
62
62
|
export declare namespace Operations {
|
|
@@ -16,47 +16,47 @@ export declare class Operations extends APIResource {
|
|
|
16
16
|
*/
|
|
17
17
|
export interface Operation {
|
|
18
18
|
/**
|
|
19
|
-
* Unique identifier for the
|
|
19
|
+
* Unique identifier for the Operation.
|
|
20
20
|
*/
|
|
21
21
|
id: string;
|
|
22
22
|
/**
|
|
23
|
-
* When the
|
|
23
|
+
* When the Operation was created.
|
|
24
24
|
*/
|
|
25
25
|
created_at: string;
|
|
26
26
|
/**
|
|
27
|
-
* Kind of
|
|
27
|
+
* Kind of Operation.
|
|
28
28
|
*/
|
|
29
29
|
kind: OperationKind;
|
|
30
30
|
/**
|
|
31
|
-
* ID of the resource that the
|
|
31
|
+
* ID of the resource that the Operation is acting on.
|
|
32
32
|
*/
|
|
33
33
|
resource_id: string;
|
|
34
34
|
/**
|
|
35
|
-
* Status of the
|
|
35
|
+
* Status of the Operation.
|
|
36
36
|
*/
|
|
37
37
|
status: OperationStatus;
|
|
38
38
|
/**
|
|
39
|
-
* Type of
|
|
39
|
+
* Type of Operation.
|
|
40
40
|
*/
|
|
41
41
|
type: OperationType;
|
|
42
42
|
/**
|
|
43
|
-
* When the
|
|
43
|
+
* When the Operation was updated.
|
|
44
44
|
*/
|
|
45
45
|
updated_at: string;
|
|
46
46
|
}
|
|
47
47
|
/**
|
|
48
|
-
* Kind of
|
|
48
|
+
* Kind of Operation.
|
|
49
49
|
*/
|
|
50
50
|
export type OperationKind = 'vm' | 'volume' | 'vpc' | 'firewall_rule';
|
|
51
51
|
export interface OperationList {
|
|
52
52
|
items: Array<Operation>;
|
|
53
53
|
}
|
|
54
54
|
/**
|
|
55
|
-
* Status of the
|
|
55
|
+
* Status of the Operation.
|
|
56
56
|
*/
|
|
57
57
|
export type OperationStatus = 'pending' | 'running' | 'done' | 'failed' | 'unknown';
|
|
58
58
|
/**
|
|
59
|
-
* Type of
|
|
59
|
+
* Type of Operation.
|
|
60
60
|
*/
|
|
61
61
|
export type OperationType = 'create' | 'update' | 'delete' | 'restart';
|
|
62
62
|
export declare namespace Operations {
|
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
|
}
|