@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
|
@@ -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
|
}
|
|
@@ -4,6 +4,7 @@ import { APIResource } from '../../core/resource';
|
|
|
4
4
|
import * as FluxAPI from './flux/flux';
|
|
5
5
|
import {
|
|
6
6
|
Flux,
|
|
7
|
+
FluxBandwidthMbps,
|
|
7
8
|
FluxCreateParams,
|
|
8
9
|
FluxList,
|
|
9
10
|
FluxProvider,
|
|
@@ -24,6 +25,7 @@ export declare namespace Connect {
|
|
|
24
25
|
export {
|
|
25
26
|
FluxResource as FluxResource,
|
|
26
27
|
type Flux as Flux,
|
|
28
|
+
type FluxBandwidthMbps as FluxBandwidthMbps,
|
|
27
29
|
type FluxList as FluxList,
|
|
28
30
|
type FluxProvider as FluxProvider,
|
|
29
31
|
type FluxProviderAWSConfig as FluxProviderAWSConfig,
|
|
@@ -109,7 +109,7 @@ export interface Flux {
|
|
|
109
109
|
/**
|
|
110
110
|
* Connect Flux speed in Mbps
|
|
111
111
|
*/
|
|
112
|
-
bandwidth_mbps:
|
|
112
|
+
bandwidth_mbps: FluxBandwidthMbps;
|
|
113
113
|
|
|
114
114
|
/**
|
|
115
115
|
* CIDRs for the Connect Flux
|
|
@@ -162,6 +162,11 @@ export interface Flux {
|
|
|
162
162
|
updated_at: string;
|
|
163
163
|
}
|
|
164
164
|
|
|
165
|
+
/**
|
|
166
|
+
* Connect Flux speed in Mbps
|
|
167
|
+
*/
|
|
168
|
+
export type FluxBandwidthMbps = 50 | 200 | 500 | 1000 | 2000;
|
|
169
|
+
|
|
165
170
|
export interface FluxList {
|
|
166
171
|
items: Array<Flux>;
|
|
167
172
|
}
|
|
@@ -214,7 +219,7 @@ export interface FluxCreateParams {
|
|
|
214
219
|
/**
|
|
215
220
|
* Connect Flux speed in Mbps
|
|
216
221
|
*/
|
|
217
|
-
bandwidth_mbps:
|
|
222
|
+
bandwidth_mbps: FluxBandwidthMbps;
|
|
218
223
|
|
|
219
224
|
/**
|
|
220
225
|
* CIDRs for the Connect Flux
|
|
@@ -254,6 +259,7 @@ FluxResource.Providers = Providers;
|
|
|
254
259
|
export declare namespace FluxResource {
|
|
255
260
|
export {
|
|
256
261
|
type Flux as Flux,
|
|
262
|
+
type FluxBandwidthMbps as FluxBandwidthMbps,
|
|
257
263
|
type FluxList as FluxList,
|
|
258
264
|
type FluxProvider as FluxProvider,
|
|
259
265
|
type FluxProviderAWSConfig as FluxProviderAWSConfig,
|
|
@@ -116,37 +116,37 @@ export class FirewallRules extends APIResource {
|
|
|
116
116
|
*/
|
|
117
117
|
export interface FirewallRule {
|
|
118
118
|
/**
|
|
119
|
-
* Unique identifier for the
|
|
119
|
+
* Unique identifier for the Firewall Rule.
|
|
120
120
|
*/
|
|
121
121
|
id: string;
|
|
122
122
|
|
|
123
123
|
/**
|
|
124
|
-
* When the
|
|
124
|
+
* When the Firewall Rule was created.
|
|
125
125
|
*/
|
|
126
126
|
created_at: string;
|
|
127
127
|
|
|
128
128
|
/**
|
|
129
|
-
* Destination address of the
|
|
129
|
+
* Destination address of the Firewall Rule. Either VPC CIDR or VM in VPC.
|
|
130
130
|
*/
|
|
131
131
|
destination_address: string;
|
|
132
132
|
|
|
133
133
|
/**
|
|
134
|
-
* Destination ports of the
|
|
134
|
+
* Destination ports of the Firewall Rule.
|
|
135
135
|
*/
|
|
136
136
|
destination_ports: Array<string>;
|
|
137
137
|
|
|
138
138
|
/**
|
|
139
|
-
* Name of the
|
|
139
|
+
* Name of the Firewall Rule.
|
|
140
140
|
*/
|
|
141
141
|
name: string;
|
|
142
142
|
|
|
143
143
|
/**
|
|
144
|
-
* Protocol of the
|
|
144
|
+
* Protocol of the Firewall Rule.
|
|
145
145
|
*/
|
|
146
146
|
protocol: 'tcp' | 'udp';
|
|
147
147
|
|
|
148
148
|
/**
|
|
149
|
-
* Source address of the
|
|
149
|
+
* Source address of the Firewall Rule. Address of 0.0.0.0 requires a CIDR mask
|
|
150
150
|
* of 0.
|
|
151
151
|
*/
|
|
152
152
|
source_address: string;
|
|
@@ -157,12 +157,12 @@ export interface FirewallRule {
|
|
|
157
157
|
status: Shared.ResourceStatus;
|
|
158
158
|
|
|
159
159
|
/**
|
|
160
|
-
* When the
|
|
160
|
+
* When the Firewall Rule was updated.
|
|
161
161
|
*/
|
|
162
162
|
updated_at: string;
|
|
163
163
|
|
|
164
164
|
/**
|
|
165
|
-
* ID of the VPC the
|
|
165
|
+
* ID of the VPC the Firewall Rule belongs to.
|
|
166
166
|
*/
|
|
167
167
|
vpc_id: string;
|
|
168
168
|
}
|
|
@@ -173,27 +173,27 @@ export interface FirewallRuleList {
|
|
|
173
173
|
|
|
174
174
|
export interface FirewallRuleCreateParams {
|
|
175
175
|
/**
|
|
176
|
-
* Destination address of the
|
|
176
|
+
* Destination address of the Firewall Rule. Either VPC CIDR or VM in VPC.
|
|
177
177
|
*/
|
|
178
178
|
destination_address: string;
|
|
179
179
|
|
|
180
180
|
/**
|
|
181
|
-
* Destination ports of the
|
|
181
|
+
* Destination ports of the Firewall Rule.
|
|
182
182
|
*/
|
|
183
183
|
destination_ports: Array<string>;
|
|
184
184
|
|
|
185
185
|
/**
|
|
186
|
-
* Name of the
|
|
186
|
+
* Name of the Firewall Rule.
|
|
187
187
|
*/
|
|
188
188
|
name: string;
|
|
189
189
|
|
|
190
190
|
/**
|
|
191
|
-
* Protocol of the
|
|
191
|
+
* Protocol of the Firewall Rule.
|
|
192
192
|
*/
|
|
193
193
|
protocol: 'tcp' | 'udp';
|
|
194
194
|
|
|
195
195
|
/**
|
|
196
|
-
* Source address of the
|
|
196
|
+
* Source address of the Firewall Rule. Address of 0.0.0.0 requires a CIDR mask
|
|
197
197
|
* of 0.
|
|
198
198
|
*/
|
|
199
199
|
source_address: string;
|
|
@@ -206,28 +206,28 @@ export interface FirewallRuleUpdateParams {
|
|
|
206
206
|
vpc_id: string;
|
|
207
207
|
|
|
208
208
|
/**
|
|
209
|
-
* Body param: Destination address of the
|
|
209
|
+
* Body param: Destination address of the Firewall Rule. Either VPC CIDR or VM in
|
|
210
210
|
* VPC.
|
|
211
211
|
*/
|
|
212
212
|
destination_address?: string;
|
|
213
213
|
|
|
214
214
|
/**
|
|
215
|
-
* Body param: Destination ports of the
|
|
215
|
+
* Body param: Destination ports of the Firewall Rule.
|
|
216
216
|
*/
|
|
217
217
|
destination_ports?: Array<string>;
|
|
218
218
|
|
|
219
219
|
/**
|
|
220
|
-
* Body param: Name of the
|
|
220
|
+
* Body param: Name of the Firewall Rule.
|
|
221
221
|
*/
|
|
222
222
|
name?: string;
|
|
223
223
|
|
|
224
224
|
/**
|
|
225
|
-
* Body param: Protocol of the
|
|
225
|
+
* Body param: Protocol of the Firewall Rule.
|
|
226
226
|
*/
|
|
227
227
|
protocol?: 'tcp' | 'udp';
|
|
228
228
|
|
|
229
229
|
/**
|
|
230
|
-
* Body param: Source address of the
|
|
230
|
+
* Body param: Source address of the Firewall Rule. Address of 0.0.0.0 requires a
|
|
231
231
|
* CIDR mask of 0.
|
|
232
232
|
*/
|
|
233
233
|
source_address?: string;
|
|
@@ -101,22 +101,22 @@ export interface Subnet {
|
|
|
101
101
|
id: string;
|
|
102
102
|
|
|
103
103
|
/**
|
|
104
|
-
* CIDR block for the
|
|
104
|
+
* CIDR block for the Subnet.
|
|
105
105
|
*/
|
|
106
106
|
cidr: string;
|
|
107
107
|
|
|
108
108
|
/**
|
|
109
|
-
* When the
|
|
109
|
+
* When the Subnet was created.
|
|
110
110
|
*/
|
|
111
111
|
created_at: string;
|
|
112
112
|
|
|
113
113
|
/**
|
|
114
|
-
* Name of the
|
|
114
|
+
* Name of the Subnet.
|
|
115
115
|
*/
|
|
116
116
|
name: string;
|
|
117
117
|
|
|
118
118
|
/**
|
|
119
|
-
* When the
|
|
119
|
+
* When the Subnet was updated.
|
|
120
120
|
*/
|
|
121
121
|
updated_at: string;
|
|
122
122
|
}
|
|
@@ -136,7 +136,7 @@ export interface VPC {
|
|
|
136
136
|
created_at: string;
|
|
137
137
|
|
|
138
138
|
/**
|
|
139
|
-
* IDs of the
|
|
139
|
+
* IDs of the Firewall Rules associated with the VPC.
|
|
140
140
|
*/
|
|
141
141
|
firewall_rule_ids: Array<string>;
|
|
142
142
|
|
|
@@ -26,43 +26,43 @@ export class Operations extends APIResource {
|
|
|
26
26
|
*/
|
|
27
27
|
export interface Operation {
|
|
28
28
|
/**
|
|
29
|
-
* Unique identifier for the
|
|
29
|
+
* Unique identifier for the Operation.
|
|
30
30
|
*/
|
|
31
31
|
id: string;
|
|
32
32
|
|
|
33
33
|
/**
|
|
34
|
-
* When the
|
|
34
|
+
* When the Operation was created.
|
|
35
35
|
*/
|
|
36
36
|
created_at: string;
|
|
37
37
|
|
|
38
38
|
/**
|
|
39
|
-
* Kind of
|
|
39
|
+
* Kind of Operation.
|
|
40
40
|
*/
|
|
41
41
|
kind: OperationKind;
|
|
42
42
|
|
|
43
43
|
/**
|
|
44
|
-
* ID of the resource that the
|
|
44
|
+
* ID of the resource that the Operation is acting on.
|
|
45
45
|
*/
|
|
46
46
|
resource_id: string;
|
|
47
47
|
|
|
48
48
|
/**
|
|
49
|
-
* Status of the
|
|
49
|
+
* Status of the Operation.
|
|
50
50
|
*/
|
|
51
51
|
status: OperationStatus;
|
|
52
52
|
|
|
53
53
|
/**
|
|
54
|
-
* Type of
|
|
54
|
+
* Type of Operation.
|
|
55
55
|
*/
|
|
56
56
|
type: OperationType;
|
|
57
57
|
|
|
58
58
|
/**
|
|
59
|
-
* When the
|
|
59
|
+
* When the Operation was updated.
|
|
60
60
|
*/
|
|
61
61
|
updated_at: string;
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
/**
|
|
65
|
-
* Kind of
|
|
65
|
+
* Kind of Operation.
|
|
66
66
|
*/
|
|
67
67
|
export type OperationKind = 'vm' | 'volume' | 'vpc' | 'firewall_rule';
|
|
68
68
|
|
|
@@ -71,12 +71,12 @@ export interface OperationList {
|
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
/**
|
|
74
|
-
* Status of the
|
|
74
|
+
* Status of the Operation.
|
|
75
75
|
*/
|
|
76
76
|
export type OperationStatus = 'pending' | 'running' | 'done' | 'failed' | 'unknown';
|
|
77
77
|
|
|
78
78
|
/**
|
|
79
|
-
* Type of
|
|
79
|
+
* Type of Operation.
|
|
80
80
|
*/
|
|
81
81
|
export type OperationType = 'create' | 'update' | 'delete' | 'restart';
|
|
82
82
|
|
package/src/resources/user.ts
CHANGED
|
@@ -13,9 +13,12 @@ export class UserResource extends APIResource {
|
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
+
/**
|
|
17
|
+
* User details.
|
|
18
|
+
*/
|
|
16
19
|
export interface User {
|
|
17
20
|
/**
|
|
18
|
-
* Unique identifier for the
|
|
21
|
+
* Unique identifier for the User.
|
|
19
22
|
*/
|
|
20
23
|
id: string;
|
|
21
24
|
|
|
@@ -25,14 +28,14 @@ export interface User {
|
|
|
25
28
|
email: string;
|
|
26
29
|
|
|
27
30
|
/**
|
|
28
|
-
* Services that the
|
|
31
|
+
* Services that the User has access to.
|
|
29
32
|
*/
|
|
30
33
|
services: User.Services;
|
|
31
34
|
}
|
|
32
35
|
|
|
33
36
|
export namespace User {
|
|
34
37
|
/**
|
|
35
|
-
* Services that the
|
|
38
|
+
* Services that the User has access to.
|
|
36
39
|
*/
|
|
37
40
|
export interface Services {
|
|
38
41
|
cloud?: boolean;
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '1.
|
|
1
|
+
export const VERSION = '1.18.1'; // 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.18.1";
|
|
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.18.1";
|
|
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.18.1'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|