@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.
Files changed (80) hide show
  1. package/CHANGELOG.md +42 -0
  2. package/bin/cli +4 -10
  3. package/client.d.mts +1 -1
  4. package/client.d.ts +1 -1
  5. package/client.js +3 -3
  6. package/client.js.map +1 -1
  7. package/client.mjs +3 -3
  8. package/client.mjs.map +1 -1
  9. package/package.json +1 -1
  10. package/resources/api-keys.d.mts +25 -13
  11. package/resources/api-keys.d.mts.map +1 -1
  12. package/resources/api-keys.d.ts +25 -13
  13. package/resources/api-keys.d.ts.map +1 -1
  14. package/resources/compute/vms/availability.d.mts +3 -3
  15. package/resources/compute/vms/availability.d.ts +3 -3
  16. package/resources/compute/vms/vms.d.mts +3 -3
  17. package/resources/compute/vms/vms.d.ts +3 -3
  18. package/resources/compute/volumes/availability.d.mts +5 -5
  19. package/resources/compute/volumes/availability.d.ts +5 -5
  20. package/resources/compute/volumes/volumes.d.mts +14 -14
  21. package/resources/compute/volumes/volumes.d.ts +14 -14
  22. package/resources/connect/connect.d.mts +2 -2
  23. package/resources/connect/connect.d.mts.map +1 -1
  24. package/resources/connect/connect.d.ts +2 -2
  25. package/resources/connect/connect.d.ts.map +1 -1
  26. package/resources/connect/connect.js.map +1 -1
  27. package/resources/connect/connect.mjs.map +1 -1
  28. package/resources/connect/flux/flux.d.mts +7 -3
  29. package/resources/connect/flux/flux.d.mts.map +1 -1
  30. package/resources/connect/flux/flux.d.ts +7 -3
  31. package/resources/connect/flux/flux.d.ts.map +1 -1
  32. package/resources/connect/flux/flux.js.map +1 -1
  33. package/resources/connect/flux/flux.mjs.map +1 -1
  34. package/resources/connect/flux/index.d.mts +1 -1
  35. package/resources/connect/flux/index.d.mts.map +1 -1
  36. package/resources/connect/flux/index.d.ts +1 -1
  37. package/resources/connect/flux/index.d.ts.map +1 -1
  38. package/resources/connect/flux/index.js.map +1 -1
  39. package/resources/connect/flux/index.mjs.map +1 -1
  40. package/resources/connect/index.d.mts +1 -1
  41. package/resources/connect/index.d.mts.map +1 -1
  42. package/resources/connect/index.d.ts +1 -1
  43. package/resources/connect/index.d.ts.map +1 -1
  44. package/resources/connect/index.js.map +1 -1
  45. package/resources/connect/index.mjs.map +1 -1
  46. package/resources/networking/firewall-rules.d.mts +19 -19
  47. package/resources/networking/firewall-rules.d.ts +19 -19
  48. package/resources/networking/vpcs/vpcs.d.mts +5 -5
  49. package/resources/networking/vpcs/vpcs.d.ts +5 -5
  50. package/resources/operations.d.mts +10 -10
  51. package/resources/operations.d.ts +10 -10
  52. package/resources/rpc-nodes/dedicated/dedicated.d.mts +1 -1
  53. package/resources/rpc-nodes/dedicated/dedicated.d.ts +1 -1
  54. package/resources/rpc-nodes/flex/flex.d.mts +1 -1
  55. package/resources/rpc-nodes/flex/flex.d.ts +1 -1
  56. package/resources/user.d.mts +6 -3
  57. package/resources/user.d.mts.map +1 -1
  58. package/resources/user.d.ts +6 -3
  59. package/resources/user.d.ts.map +1 -1
  60. package/src/client.ts +3 -3
  61. package/src/resources/api-keys.ts +28 -13
  62. package/src/resources/compute/vms/availability.ts +3 -3
  63. package/src/resources/compute/vms/vms.ts +3 -3
  64. package/src/resources/compute/volumes/availability.ts +5 -5
  65. package/src/resources/compute/volumes/volumes.ts +14 -14
  66. package/src/resources/connect/connect.ts +2 -0
  67. package/src/resources/connect/flux/flux.ts +8 -2
  68. package/src/resources/connect/flux/index.ts +1 -0
  69. package/src/resources/connect/index.ts +1 -0
  70. package/src/resources/networking/firewall-rules.ts +19 -19
  71. package/src/resources/networking/vpcs/vpcs.ts +5 -5
  72. package/src/resources/operations.ts +10 -10
  73. package/src/resources/rpc-nodes/dedicated/dedicated.ts +1 -1
  74. package/src/resources/rpc-nodes/flex/flex.ts +1 -1
  75. package/src/resources/user.ts +6 -3
  76. package/src/version.ts +1 -1
  77. package/version.d.mts +1 -1
  78. package/version.d.ts +1 -1
  79. package/version.js +1 -1
  80. package/version.mjs +1 -1
@@ -94,7 +94,7 @@ export class Volumes extends APIResource {
94
94
  }
95
95
 
96
96
  /**
97
- * Storage type the volume is using.
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 volume.
106
+ * Unique identifier for the Volume.
107
107
  */
108
108
  id: string;
109
109
 
110
110
  /**
111
- * When the volume was created.
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 volume.
121
+ * Name of the Volume.
122
122
  */
123
123
  name: string;
124
124
 
125
125
  /**
126
- * Size of the volume in GB.
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 volume is using.
136
+ * Storage type the Volume is using.
137
137
  */
138
138
  type: StorageType;
139
139
 
140
140
  /**
141
- * When the volume was updated.
141
+ * When the Volume was updated.
142
142
  */
143
143
  updated_at: string;
144
144
 
145
145
  /**
146
- * ID of the VM the volume is attached to.
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 volume is attached to.
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 volume.
167
+ * Name of the Volume.
168
168
  */
169
169
  name: string;
170
170
 
171
171
  /**
172
- * Size of the volume in GB.
172
+ * Size of the Volume in GB.
173
173
  */
174
174
  size: number;
175
175
 
176
176
  /**
177
- * ID of the VM the volume is attached to.
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 volume.
184
+ * Name of the Volume.
185
185
  */
186
186
  name?: string;
187
187
 
188
188
  /**
189
- * Size of the volume in GB.
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: 50 | 200 | 500;
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: 50 | 200 | 500;
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,
@@ -3,6 +3,7 @@
3
3
  export {
4
4
  FluxResource,
5
5
  type Flux,
6
+ type FluxBandwidthMbps,
6
7
  type FluxList,
7
8
  type FluxProvider,
8
9
  type FluxProviderAWSConfig,
@@ -4,6 +4,7 @@ export { Connect } from './connect';
4
4
  export {
5
5
  FluxResource,
6
6
  type Flux,
7
+ type FluxBandwidthMbps,
7
8
  type FluxList,
8
9
  type FluxProvider,
9
10
  type FluxProviderAWSConfig,
@@ -116,37 +116,37 @@ export class FirewallRules extends APIResource {
116
116
  */
117
117
  export interface FirewallRule {
118
118
  /**
119
- * Unique identifier for the firewall rule.
119
+ * Unique identifier for the Firewall Rule.
120
120
  */
121
121
  id: string;
122
122
 
123
123
  /**
124
- * When the firewall rule was created.
124
+ * When the Firewall Rule was created.
125
125
  */
126
126
  created_at: string;
127
127
 
128
128
  /**
129
- * Destination address of the firewall rule. Either VPC CIDR or VM in VPC.
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 firewall rule.
134
+ * Destination ports of the Firewall Rule.
135
135
  */
136
136
  destination_ports: Array<string>;
137
137
 
138
138
  /**
139
- * Name of the firewall rule.
139
+ * Name of the Firewall Rule.
140
140
  */
141
141
  name: string;
142
142
 
143
143
  /**
144
- * Protocol of the firewall rule.
144
+ * Protocol of the Firewall Rule.
145
145
  */
146
146
  protocol: 'tcp' | 'udp';
147
147
 
148
148
  /**
149
- * Source address of the firewall rule. Address of 0.0.0.0 requires a CIDR mask
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 firewall rule was updated.
160
+ * When the Firewall Rule was updated.
161
161
  */
162
162
  updated_at: string;
163
163
 
164
164
  /**
165
- * ID of the VPC the firewall rule belongs to.
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 firewall rule. Either VPC CIDR or VM in VPC.
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 firewall rule.
181
+ * Destination ports of the Firewall Rule.
182
182
  */
183
183
  destination_ports: Array<string>;
184
184
 
185
185
  /**
186
- * Name of the firewall rule.
186
+ * Name of the Firewall Rule.
187
187
  */
188
188
  name: string;
189
189
 
190
190
  /**
191
- * Protocol of the firewall rule.
191
+ * Protocol of the Firewall Rule.
192
192
  */
193
193
  protocol: 'tcp' | 'udp';
194
194
 
195
195
  /**
196
- * Source address of the firewall rule. Address of 0.0.0.0 requires a CIDR mask
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 firewall rule. Either VPC CIDR or VM in
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 firewall rule.
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 firewall rule.
220
+ * Body param: Name of the Firewall Rule.
221
221
  */
222
222
  name?: string;
223
223
 
224
224
  /**
225
- * Body param: Protocol of the firewall rule.
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 firewall rule. Address of 0.0.0.0 requires a
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 subnet.
104
+ * CIDR block for the Subnet.
105
105
  */
106
106
  cidr: string;
107
107
 
108
108
  /**
109
- * When the subnet was created.
109
+ * When the Subnet was created.
110
110
  */
111
111
  created_at: string;
112
112
 
113
113
  /**
114
- * Name of the subnet.
114
+ * Name of the Subnet.
115
115
  */
116
116
  name: string;
117
117
 
118
118
  /**
119
- * When the subnet was updated.
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 firewall rules associated with the VPC.
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 operation.
29
+ * Unique identifier for the Operation.
30
30
  */
31
31
  id: string;
32
32
 
33
33
  /**
34
- * When the operation was created.
34
+ * When the Operation was created.
35
35
  */
36
36
  created_at: string;
37
37
 
38
38
  /**
39
- * Kind of operation.
39
+ * Kind of Operation.
40
40
  */
41
41
  kind: OperationKind;
42
42
 
43
43
  /**
44
- * ID of the resource that the operation is acting on.
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 operation.
49
+ * Status of the Operation.
50
50
  */
51
51
  status: OperationStatus;
52
52
 
53
53
  /**
54
- * Type of operation.
54
+ * Type of Operation.
55
55
  */
56
56
  type: OperationType;
57
57
 
58
58
  /**
59
- * When the operation was updated.
59
+ * When the Operation was updated.
60
60
  */
61
61
  updated_at: string;
62
62
  }
63
63
 
64
64
  /**
65
- * Kind of operation.
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 operation.
74
+ * Status of the Operation.
75
75
  */
76
76
  export type OperationStatus = 'pending' | 'running' | 'done' | 'failed' | 'unknown';
77
77
 
78
78
  /**
79
- * Type of operation.
79
+ * Type of Operation.
80
80
  */
81
81
  export type OperationType = 'create' | 'update' | 'delete' | 'restart';
82
82
 
@@ -66,7 +66,7 @@ export interface Dedicated {
66
66
  }
67
67
 
68
68
  /**
69
- * Blockchain supported by the Dedicated RPC Node.
69
+ * Blockchain supported by the RPC Node Dedicated.
70
70
  */
71
71
  export interface DedicatedBlockchain {
72
72
  /**
@@ -66,7 +66,7 @@ export interface Flex {
66
66
  }
67
67
 
68
68
  /**
69
- * Blockchain supported by the Flex RPC Node.
69
+ * Blockchain supported by the RPC Node Flex.
70
70
  */
71
71
  export interface FlexBlockchain {
72
72
  /**
@@ -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 user.
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 user has access to.
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 user has access to.
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.17.4'; // x-release-please-version
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.17.4";
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.17.4";
1
+ export declare const VERSION = "1.18.1";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '1.17.4'; // x-release-please-version
4
+ exports.VERSION = '1.18.1'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '1.17.4'; // x-release-please-version
1
+ export const VERSION = '1.18.1'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map