@nirvana-labs/nirvana 0.10.1 → 1.0.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 +19 -0
- package/package.json +1 -1
- package/resources/api-keys.d.mts +6 -6
- package/resources/api-keys.d.ts +6 -6
- package/resources/compute/vms/vms.d.mts +101 -14
- package/resources/compute/vms/vms.d.mts.map +1 -1
- package/resources/compute/vms/vms.d.ts +101 -14
- package/resources/compute/vms/vms.d.ts.map +1 -1
- package/resources/compute/vms/vms.js.map +1 -1
- package/resources/compute/vms/vms.mjs.map +1 -1
- package/resources/compute/volumes.d.mts +41 -2
- package/resources/compute/volumes.d.mts.map +1 -1
- package/resources/compute/volumes.d.ts +41 -2
- package/resources/compute/volumes.d.ts.map +1 -1
- package/resources/networking/firewall-rules.d.mts +46 -7
- package/resources/networking/firewall-rules.d.mts.map +1 -1
- package/resources/networking/firewall-rules.d.ts +46 -7
- package/resources/networking/firewall-rules.d.ts.map +1 -1
- package/resources/networking/vpcs.d.mts +53 -2
- package/resources/networking/vpcs.d.mts.map +1 -1
- package/resources/networking/vpcs.d.ts +53 -2
- package/resources/networking/vpcs.d.ts.map +1 -1
- package/resources/operations.d.mts +30 -0
- package/resources/operations.d.mts.map +1 -1
- package/resources/operations.d.ts +30 -0
- package/resources/operations.d.ts.map +1 -1
- package/resources/shared.d.mts +6 -0
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +6 -0
- package/resources/shared.d.ts.map +1 -1
- package/resources/user.d.mts +12 -0
- package/resources/user.d.mts.map +1 -1
- package/resources/user.d.ts +12 -0
- package/resources/user.d.ts.map +1 -1
- package/src/resources/api-keys.ts +6 -6
- package/src/resources/compute/vms/vms.ts +101 -14
- package/src/resources/compute/volumes.ts +41 -2
- package/src/resources/networking/firewall-rules.ts +46 -7
- package/src/resources/networking/vpcs.ts +53 -2
- package/src/resources/operations.ts +30 -0
- package/src/resources/shared.ts +6 -0
- package/src/resources/user.ts +12 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.mts.map +1 -1
- package/version.d.ts +1 -1
- package/version.d.ts.map +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- package/version.mjs +1 -1
- package/version.mjs.map +1 -1
|
@@ -49,17 +49,32 @@ export class VPCs extends APIResource {
|
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
/**
|
|
52
|
-
* Subnet
|
|
52
|
+
* Subnet of the VPC.
|
|
53
53
|
*/
|
|
54
54
|
export interface Subnet {
|
|
55
|
+
/**
|
|
56
|
+
* Unique identifier for the subnet.
|
|
57
|
+
*/
|
|
55
58
|
id: string;
|
|
56
59
|
|
|
60
|
+
/**
|
|
61
|
+
* CIDR block for the subnet.
|
|
62
|
+
*/
|
|
57
63
|
cidr: string;
|
|
58
64
|
|
|
65
|
+
/**
|
|
66
|
+
* When the subnet was created.
|
|
67
|
+
*/
|
|
59
68
|
created_at: string;
|
|
60
69
|
|
|
70
|
+
/**
|
|
71
|
+
* Name of the subnet.
|
|
72
|
+
*/
|
|
61
73
|
name: string;
|
|
62
74
|
|
|
75
|
+
/**
|
|
76
|
+
* When the subnet was updated.
|
|
77
|
+
*/
|
|
63
78
|
updated_at: string;
|
|
64
79
|
}
|
|
65
80
|
|
|
@@ -67,23 +82,44 @@ export interface Subnet {
|
|
|
67
82
|
* VPC details.
|
|
68
83
|
*/
|
|
69
84
|
export interface VPC {
|
|
85
|
+
/**
|
|
86
|
+
* Unique identifier for the VPC.
|
|
87
|
+
*/
|
|
70
88
|
id: string;
|
|
71
89
|
|
|
90
|
+
/**
|
|
91
|
+
* When the VPC was created.
|
|
92
|
+
*/
|
|
72
93
|
created_at: string;
|
|
73
94
|
|
|
95
|
+
/**
|
|
96
|
+
* IDs of the firewall rules associated with the VPC.
|
|
97
|
+
*/
|
|
74
98
|
firewall_rule_ids: Array<string>;
|
|
75
99
|
|
|
100
|
+
/**
|
|
101
|
+
* Name of the VPC.
|
|
102
|
+
*/
|
|
76
103
|
name: string;
|
|
77
104
|
|
|
105
|
+
/**
|
|
106
|
+
* Region the resource is in.
|
|
107
|
+
*/
|
|
78
108
|
region: Shared.RegionName;
|
|
79
109
|
|
|
110
|
+
/**
|
|
111
|
+
* Status of the resource.
|
|
112
|
+
*/
|
|
80
113
|
status: Shared.ResourceStatus;
|
|
81
114
|
|
|
82
115
|
/**
|
|
83
|
-
* Subnet
|
|
116
|
+
* Subnet of the VPC.
|
|
84
117
|
*/
|
|
85
118
|
subnet: Subnet;
|
|
86
119
|
|
|
120
|
+
/**
|
|
121
|
+
* When the VPC was updated.
|
|
122
|
+
*/
|
|
87
123
|
updated_at: string;
|
|
88
124
|
}
|
|
89
125
|
|
|
@@ -92,16 +128,31 @@ export interface VPCList {
|
|
|
92
128
|
}
|
|
93
129
|
|
|
94
130
|
export interface VPCCreateParams {
|
|
131
|
+
/**
|
|
132
|
+
* Name of the VPC.
|
|
133
|
+
*/
|
|
95
134
|
name: string;
|
|
96
135
|
|
|
136
|
+
/**
|
|
137
|
+
* Region the resource is in.
|
|
138
|
+
*/
|
|
97
139
|
region: Shared.RegionName;
|
|
98
140
|
|
|
141
|
+
/**
|
|
142
|
+
* Name of the subnet to create.
|
|
143
|
+
*/
|
|
99
144
|
subnet_name: string;
|
|
100
145
|
}
|
|
101
146
|
|
|
102
147
|
export interface VPCUpdateParams {
|
|
148
|
+
/**
|
|
149
|
+
* Name of the VPC.
|
|
150
|
+
*/
|
|
103
151
|
name?: string;
|
|
104
152
|
|
|
153
|
+
/**
|
|
154
|
+
* Name of the subnet to create.
|
|
155
|
+
*/
|
|
105
156
|
subnet_name?: string;
|
|
106
157
|
}
|
|
107
158
|
|
|
@@ -25,29 +25,59 @@ export class Operations extends APIResource {
|
|
|
25
25
|
* Operation details.
|
|
26
26
|
*/
|
|
27
27
|
export interface Operation {
|
|
28
|
+
/**
|
|
29
|
+
* Unique identifier for the operation.
|
|
30
|
+
*/
|
|
28
31
|
id: string;
|
|
29
32
|
|
|
33
|
+
/**
|
|
34
|
+
* When the operation was created.
|
|
35
|
+
*/
|
|
30
36
|
created_at: string;
|
|
31
37
|
|
|
38
|
+
/**
|
|
39
|
+
* Kind of operation.
|
|
40
|
+
*/
|
|
32
41
|
kind: OperationKind;
|
|
33
42
|
|
|
43
|
+
/**
|
|
44
|
+
* ID of the resource that the operation is acting on.
|
|
45
|
+
*/
|
|
34
46
|
resource_id: string;
|
|
35
47
|
|
|
48
|
+
/**
|
|
49
|
+
* Status of the operation.
|
|
50
|
+
*/
|
|
36
51
|
status: OperationStatus;
|
|
37
52
|
|
|
53
|
+
/**
|
|
54
|
+
* Type of operation.
|
|
55
|
+
*/
|
|
38
56
|
type: OperationType;
|
|
39
57
|
|
|
58
|
+
/**
|
|
59
|
+
* When the operation was updated.
|
|
60
|
+
*/
|
|
40
61
|
updated_at: string;
|
|
41
62
|
}
|
|
42
63
|
|
|
64
|
+
/**
|
|
65
|
+
* Kind of operation.
|
|
66
|
+
*/
|
|
43
67
|
export type OperationKind = 'vm' | 'volume' | 'vpc' | 'firewall_rule';
|
|
44
68
|
|
|
45
69
|
export interface OperationList {
|
|
46
70
|
items: Array<Operation>;
|
|
47
71
|
}
|
|
48
72
|
|
|
73
|
+
/**
|
|
74
|
+
* Status of the operation.
|
|
75
|
+
*/
|
|
49
76
|
export type OperationStatus = 'pending' | 'running' | 'done' | 'failed' | 'unknown';
|
|
50
77
|
|
|
78
|
+
/**
|
|
79
|
+
* Type of operation.
|
|
80
|
+
*/
|
|
51
81
|
export type OperationType = 'create' | 'update' | 'delete';
|
|
52
82
|
|
|
53
83
|
export declare namespace Operations {
|
package/src/resources/shared.ts
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
+
/**
|
|
4
|
+
* Region the resource is in.
|
|
5
|
+
*/
|
|
3
6
|
export type RegionName =
|
|
4
7
|
| 'us-sea-1'
|
|
5
8
|
| 'us-sva-1'
|
|
@@ -12,4 +15,7 @@ export type RegionName =
|
|
|
12
15
|
| 'ap-seo-1'
|
|
13
16
|
| 'ap-tyo-1';
|
|
14
17
|
|
|
18
|
+
/**
|
|
19
|
+
* Status of the resource.
|
|
20
|
+
*/
|
|
15
21
|
export type ResourceStatus = 'pending' | 'creating' | 'updating' | 'ready' | 'deleting' | 'deleted' | 'error';
|
package/src/resources/user.ts
CHANGED
|
@@ -14,14 +14,26 @@ export class UserResource extends APIResource {
|
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
export interface User {
|
|
17
|
+
/**
|
|
18
|
+
* Unique identifier for the user.
|
|
19
|
+
*/
|
|
17
20
|
id: string;
|
|
18
21
|
|
|
22
|
+
/**
|
|
23
|
+
* Email address of the user.
|
|
24
|
+
*/
|
|
19
25
|
email: string;
|
|
20
26
|
|
|
27
|
+
/**
|
|
28
|
+
* Services that the user has access to.
|
|
29
|
+
*/
|
|
21
30
|
services: User.Services;
|
|
22
31
|
}
|
|
23
32
|
|
|
24
33
|
export namespace User {
|
|
34
|
+
/**
|
|
35
|
+
* Services that the user has access to.
|
|
36
|
+
*/
|
|
25
37
|
export interface Services {
|
|
26
38
|
cloud?: boolean;
|
|
27
39
|
}
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '1.0.1'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "1.0.1";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.d.mts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"version.d.mts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,UAAU,CAAC"}
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "1.0.1";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,UAAU,CAAC"}
|
package/version.js
CHANGED
package/version.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":";;;AAAa,QAAA,OAAO,GAAG,
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":";;;AAAa,QAAA,OAAO,GAAG,OAAO,CAAC,CAAC,2BAA2B"}
|
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '1.0.1'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|
package/version.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.mjs","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG,
|
|
1
|
+
{"version":3,"file":"version.mjs","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG,OAAO,CAAC,CAAC,2BAA2B"}
|