@nirvana-labs/nirvana 1.1.2 → 1.3.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.
Files changed (137) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/README.md +7 -12
  3. package/package.json +1 -1
  4. package/resources/compute/compute.d.mts +2 -2
  5. package/resources/compute/compute.d.mts.map +1 -1
  6. package/resources/compute/compute.d.ts +2 -2
  7. package/resources/compute/compute.d.ts.map +1 -1
  8. package/resources/compute/compute.js +2 -2
  9. package/resources/compute/compute.js.map +1 -1
  10. package/resources/compute/compute.mjs +2 -2
  11. package/resources/compute/compute.mjs.map +1 -1
  12. package/resources/compute/index.d.mts +1 -1
  13. package/resources/compute/index.d.ts +1 -1
  14. package/resources/compute/index.js +2 -2
  15. package/resources/compute/index.js.map +1 -1
  16. package/resources/compute/index.mjs +1 -1
  17. package/resources/compute/vms/availability.d.mts +130 -0
  18. package/resources/compute/vms/availability.d.mts.map +1 -0
  19. package/resources/compute/vms/availability.d.ts +130 -0
  20. package/resources/compute/vms/availability.d.ts.map +1 -0
  21. package/resources/compute/vms/availability.js +56 -0
  22. package/resources/compute/vms/availability.js.map +1 -0
  23. package/resources/compute/vms/availability.mjs +52 -0
  24. package/resources/compute/vms/availability.mjs.map +1 -0
  25. package/resources/compute/vms/index.d.mts +1 -0
  26. package/resources/compute/vms/index.d.mts.map +1 -1
  27. package/resources/compute/vms/index.d.ts +1 -0
  28. package/resources/compute/vms/index.d.ts.map +1 -1
  29. package/resources/compute/vms/index.js +3 -1
  30. package/resources/compute/vms/index.js.map +1 -1
  31. package/resources/compute/vms/index.mjs +1 -0
  32. package/resources/compute/vms/index.mjs.map +1 -1
  33. package/resources/compute/vms/vms.d.mts +5 -1
  34. package/resources/compute/vms/vms.d.mts.map +1 -1
  35. package/resources/compute/vms/vms.d.ts +5 -1
  36. package/resources/compute/vms/vms.d.ts.map +1 -1
  37. package/resources/compute/vms/vms.js +5 -1
  38. package/resources/compute/vms/vms.js.map +1 -1
  39. package/resources/compute/vms/vms.mjs +5 -1
  40. package/resources/compute/vms/vms.mjs.map +1 -1
  41. package/resources/compute/vms/volumes.d.mts +1 -1
  42. package/resources/compute/vms/volumes.d.ts +1 -1
  43. package/resources/compute/volumes/availability.d.mts +61 -0
  44. package/resources/compute/volumes/availability.d.mts.map +1 -0
  45. package/resources/compute/volumes/availability.d.ts +61 -0
  46. package/resources/compute/volumes/availability.d.ts.map +1 -0
  47. package/resources/compute/volumes/availability.js +49 -0
  48. package/resources/compute/volumes/availability.js.map +1 -0
  49. package/resources/compute/volumes/availability.mjs +45 -0
  50. package/resources/compute/volumes/availability.mjs.map +1 -0
  51. package/resources/compute/volumes/index.d.mts +3 -0
  52. package/resources/compute/volumes/index.d.mts.map +1 -0
  53. package/resources/compute/volumes/index.d.ts +3 -0
  54. package/resources/compute/volumes/index.d.ts.map +1 -0
  55. package/resources/compute/volumes/index.js +9 -0
  56. package/resources/compute/volumes/index.js.map +1 -0
  57. package/resources/compute/volumes/index.mjs +4 -0
  58. package/resources/compute/volumes/index.mjs.map +1 -0
  59. package/resources/compute/volumes/volumes.d.mts +150 -0
  60. package/resources/compute/volumes/volumes.d.mts.map +1 -0
  61. package/resources/compute/volumes/volumes.d.ts +150 -0
  62. package/resources/compute/volumes/volumes.d.ts.map +1 -0
  63. package/resources/compute/volumes/volumes.js +83 -0
  64. package/resources/compute/volumes/volumes.js.map +1 -0
  65. package/resources/compute/volumes/volumes.mjs +78 -0
  66. package/resources/compute/volumes/volumes.mjs.map +1 -0
  67. package/resources/compute/volumes.d.mts +1 -145
  68. package/resources/compute/volumes.d.mts.map +1 -1
  69. package/resources/compute/volumes.d.ts +1 -145
  70. package/resources/compute/volumes.d.ts.map +1 -1
  71. package/resources/compute/volumes.js +2 -71
  72. package/resources/compute/volumes.js.map +1 -1
  73. package/resources/compute/volumes.mjs +1 -69
  74. package/resources/compute/volumes.mjs.map +1 -1
  75. package/resources/networking/index.d.mts +1 -1
  76. package/resources/networking/index.d.ts +1 -1
  77. package/resources/networking/index.js +2 -2
  78. package/resources/networking/index.js.map +1 -1
  79. package/resources/networking/index.mjs +1 -1
  80. package/resources/networking/networking.d.mts +2 -2
  81. package/resources/networking/networking.d.ts +2 -2
  82. package/resources/networking/networking.js +2 -2
  83. package/resources/networking/networking.js.map +1 -1
  84. package/resources/networking/networking.mjs +2 -2
  85. package/resources/networking/vpcs/availability.d.mts +62 -0
  86. package/resources/networking/vpcs/availability.d.mts.map +1 -0
  87. package/resources/networking/vpcs/availability.d.ts +62 -0
  88. package/resources/networking/vpcs/availability.d.ts.map +1 -0
  89. package/resources/networking/vpcs/availability.js +40 -0
  90. package/resources/networking/vpcs/availability.js.map +1 -0
  91. package/resources/networking/vpcs/availability.mjs +36 -0
  92. package/resources/networking/vpcs/availability.mjs.map +1 -0
  93. package/resources/networking/vpcs/index.d.mts +3 -0
  94. package/resources/networking/vpcs/index.d.mts.map +1 -0
  95. package/resources/networking/vpcs/index.d.ts +3 -0
  96. package/resources/networking/vpcs/index.d.ts.map +1 -0
  97. package/resources/networking/vpcs/index.js +9 -0
  98. package/resources/networking/vpcs/index.js.map +1 -0
  99. package/resources/networking/vpcs/index.mjs +4 -0
  100. package/resources/networking/vpcs/index.mjs.map +1 -0
  101. package/resources/networking/vpcs/vpcs.d.mts +157 -0
  102. package/resources/networking/vpcs/vpcs.d.mts.map +1 -0
  103. package/resources/networking/vpcs/vpcs.d.ts +157 -0
  104. package/resources/networking/vpcs/vpcs.d.ts.map +1 -0
  105. package/resources/networking/vpcs/vpcs.js +81 -0
  106. package/resources/networking/vpcs/vpcs.js.map +1 -0
  107. package/resources/networking/vpcs/vpcs.mjs +76 -0
  108. package/resources/networking/vpcs/vpcs.mjs.map +1 -0
  109. package/resources/networking/vpcs.d.mts +1 -152
  110. package/resources/networking/vpcs.d.mts.map +1 -1
  111. package/resources/networking/vpcs.d.ts +1 -152
  112. package/resources/networking/vpcs.d.ts.map +1 -1
  113. package/resources/networking/vpcs.js +2 -69
  114. package/resources/networking/vpcs.js.map +1 -1
  115. package/resources/networking/vpcs.mjs +1 -67
  116. package/resources/networking/vpcs.mjs.map +1 -1
  117. package/src/resources/compute/compute.ts +10 -10
  118. package/src/resources/compute/index.ts +1 -1
  119. package/src/resources/compute/vms/availability.ts +172 -0
  120. package/src/resources/compute/vms/index.ts +7 -0
  121. package/src/resources/compute/vms/vms.ts +19 -1
  122. package/src/resources/compute/vms/volumes.ts +1 -1
  123. package/src/resources/compute/volumes/availability.ts +91 -0
  124. package/src/resources/compute/volumes/index.ts +18 -0
  125. package/src/resources/compute/volumes/volumes.ts +213 -0
  126. package/src/resources/compute/volumes.ts +1 -191
  127. package/src/resources/networking/index.ts +1 -1
  128. package/src/resources/networking/networking.ts +2 -2
  129. package/src/resources/networking/vpcs/availability.ts +83 -0
  130. package/src/resources/networking/vpcs/index.ts +17 -0
  131. package/src/resources/networking/vpcs/vpcs.ts +220 -0
  132. package/src/resources/networking/vpcs.ts +1 -198
  133. package/src/version.ts +1 -1
  134. package/version.d.mts +1 -1
  135. package/version.d.ts +1 -1
  136. package/version.js +1 -1
  137. package/version.mjs +1 -1
@@ -0,0 +1,220 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../../../core/resource';
4
+ import * as OperationsAPI from '../../operations';
5
+ import * as Shared from '../../shared';
6
+ import * as AvailabilityAPI from './availability';
7
+ import {
8
+ Availability,
9
+ AvailabilityCreateParams,
10
+ AvailabilityCreateResponse,
11
+ AvailabilityUpdateParams,
12
+ AvailabilityUpdateResponse,
13
+ } from './availability';
14
+ import { APIPromise } from '../../../core/api-promise';
15
+ import { RequestOptions } from '../../../internal/request-options';
16
+ import { path } from '../../../internal/utils/path';
17
+
18
+ export class VPCs extends APIResource {
19
+ availability: AvailabilityAPI.Availability = new AvailabilityAPI.Availability(this._client);
20
+
21
+ /**
22
+ * Create a VPC
23
+ *
24
+ * @example
25
+ * ```ts
26
+ * const operation = await client.networking.vpcs.create({
27
+ * name: 'my-vpc',
28
+ * region: 'us-wdc-1',
29
+ * subnet_name: 'my-subnet',
30
+ * });
31
+ * ```
32
+ */
33
+ create(body: VPCCreateParams, options?: RequestOptions): APIPromise<OperationsAPI.Operation> {
34
+ return this._client.post('/v1/networking/vpcs', { body, ...options });
35
+ }
36
+
37
+ /**
38
+ * Update a VPC
39
+ *
40
+ * @example
41
+ * ```ts
42
+ * const operation = await client.networking.vpcs.update(
43
+ * 'vpc_id',
44
+ * );
45
+ * ```
46
+ */
47
+ update(
48
+ vpcID: string,
49
+ body: VPCUpdateParams,
50
+ options?: RequestOptions,
51
+ ): APIPromise<OperationsAPI.Operation> {
52
+ return this._client.patch(path`/v1/networking/vpcs/${vpcID}`, { body, ...options });
53
+ }
54
+
55
+ /**
56
+ * List all VPCs
57
+ *
58
+ * @example
59
+ * ```ts
60
+ * const vpcList = await client.networking.vpcs.list();
61
+ * ```
62
+ */
63
+ list(options?: RequestOptions): APIPromise<VPCList> {
64
+ return this._client.get('/v1/networking/vpcs', options);
65
+ }
66
+
67
+ /**
68
+ * Delete a VPC
69
+ *
70
+ * @example
71
+ * ```ts
72
+ * const operation = await client.networking.vpcs.delete(
73
+ * 'vpc_id',
74
+ * );
75
+ * ```
76
+ */
77
+ delete(vpcID: string, options?: RequestOptions): APIPromise<OperationsAPI.Operation> {
78
+ return this._client.delete(path`/v1/networking/vpcs/${vpcID}`, options);
79
+ }
80
+
81
+ /**
82
+ * Get details about a VPC
83
+ *
84
+ * @example
85
+ * ```ts
86
+ * const vpc = await client.networking.vpcs.get('vpc_id');
87
+ * ```
88
+ */
89
+ get(vpcID: string, options?: RequestOptions): APIPromise<VPC> {
90
+ return this._client.get(path`/v1/networking/vpcs/${vpcID}`, options);
91
+ }
92
+ }
93
+
94
+ /**
95
+ * Subnet of the VPC.
96
+ */
97
+ export interface Subnet {
98
+ /**
99
+ * Unique identifier for the subnet.
100
+ */
101
+ id: string;
102
+
103
+ /**
104
+ * CIDR block for the subnet.
105
+ */
106
+ cidr: string;
107
+
108
+ /**
109
+ * When the subnet was created.
110
+ */
111
+ created_at: string;
112
+
113
+ /**
114
+ * Name of the subnet.
115
+ */
116
+ name: string;
117
+
118
+ /**
119
+ * When the subnet was updated.
120
+ */
121
+ updated_at: string;
122
+ }
123
+
124
+ /**
125
+ * VPC details.
126
+ */
127
+ export interface VPC {
128
+ /**
129
+ * Unique identifier for the VPC.
130
+ */
131
+ id: string;
132
+
133
+ /**
134
+ * When the VPC was created.
135
+ */
136
+ created_at: string;
137
+
138
+ /**
139
+ * IDs of the firewall rules associated with the VPC.
140
+ */
141
+ firewall_rule_ids: Array<string>;
142
+
143
+ /**
144
+ * Name of the VPC.
145
+ */
146
+ name: string;
147
+
148
+ /**
149
+ * Region the resource is in.
150
+ */
151
+ region: Shared.RegionName;
152
+
153
+ /**
154
+ * Status of the resource.
155
+ */
156
+ status: Shared.ResourceStatus;
157
+
158
+ /**
159
+ * Subnet of the VPC.
160
+ */
161
+ subnet: Subnet;
162
+
163
+ /**
164
+ * When the VPC was updated.
165
+ */
166
+ updated_at: string;
167
+ }
168
+
169
+ export interface VPCList {
170
+ items: Array<VPC>;
171
+ }
172
+
173
+ export interface VPCCreateParams {
174
+ /**
175
+ * Name of the VPC.
176
+ */
177
+ name: string;
178
+
179
+ /**
180
+ * Region the resource is in.
181
+ */
182
+ region: Shared.RegionName;
183
+
184
+ /**
185
+ * Name of the subnet to create.
186
+ */
187
+ subnet_name: string;
188
+ }
189
+
190
+ export interface VPCUpdateParams {
191
+ /**
192
+ * Name of the VPC.
193
+ */
194
+ name?: string;
195
+
196
+ /**
197
+ * Name of the subnet to create.
198
+ */
199
+ subnet_name?: string;
200
+ }
201
+
202
+ VPCs.Availability = Availability;
203
+
204
+ export declare namespace VPCs {
205
+ export {
206
+ type Subnet as Subnet,
207
+ type VPC as VPC,
208
+ type VPCList as VPCList,
209
+ type VPCCreateParams as VPCCreateParams,
210
+ type VPCUpdateParams as VPCUpdateParams,
211
+ };
212
+
213
+ export {
214
+ Availability as Availability,
215
+ type AvailabilityCreateResponse as AvailabilityCreateResponse,
216
+ type AvailabilityUpdateResponse as AvailabilityUpdateResponse,
217
+ type AvailabilityCreateParams as AvailabilityCreateParams,
218
+ type AvailabilityUpdateParams as AvailabilityUpdateParams,
219
+ };
220
+ }
@@ -1,200 +1,3 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
- import { APIResource } from '../../core/resource';
4
- import * as OperationsAPI from '../operations';
5
- import * as Shared from '../shared';
6
- import { APIPromise } from '../../core/api-promise';
7
- import { RequestOptions } from '../../internal/request-options';
8
- import { path } from '../../internal/utils/path';
9
-
10
- export class VPCs extends APIResource {
11
- /**
12
- * Create a VPC
13
- *
14
- * @example
15
- * ```ts
16
- * const operation = await client.networking.vpcs.create({
17
- * name: 'my-vpc',
18
- * region: 'us-wdc-1',
19
- * subnet_name: 'my-subnet',
20
- * });
21
- * ```
22
- */
23
- create(body: VPCCreateParams, options?: RequestOptions): APIPromise<OperationsAPI.Operation> {
24
- return this._client.post('/v1/networking/vpcs', { body, ...options });
25
- }
26
-
27
- /**
28
- * Update a VPC
29
- *
30
- * @example
31
- * ```ts
32
- * const operation = await client.networking.vpcs.update(
33
- * 'vpc_id',
34
- * );
35
- * ```
36
- */
37
- update(
38
- vpcID: string,
39
- body: VPCUpdateParams,
40
- options?: RequestOptions,
41
- ): APIPromise<OperationsAPI.Operation> {
42
- return this._client.patch(path`/v1/networking/vpcs/${vpcID}`, { body, ...options });
43
- }
44
-
45
- /**
46
- * List all VPCs
47
- *
48
- * @example
49
- * ```ts
50
- * const vpcList = await client.networking.vpcs.list();
51
- * ```
52
- */
53
- list(options?: RequestOptions): APIPromise<VPCList> {
54
- return this._client.get('/v1/networking/vpcs', options);
55
- }
56
-
57
- /**
58
- * Delete a VPC
59
- *
60
- * @example
61
- * ```ts
62
- * const operation = await client.networking.vpcs.delete(
63
- * 'vpc_id',
64
- * );
65
- * ```
66
- */
67
- delete(vpcID: string, options?: RequestOptions): APIPromise<OperationsAPI.Operation> {
68
- return this._client.delete(path`/v1/networking/vpcs/${vpcID}`, options);
69
- }
70
-
71
- /**
72
- * Get details about a VPC
73
- *
74
- * @example
75
- * ```ts
76
- * const vpc = await client.networking.vpcs.get('vpc_id');
77
- * ```
78
- */
79
- get(vpcID: string, options?: RequestOptions): APIPromise<VPC> {
80
- return this._client.get(path`/v1/networking/vpcs/${vpcID}`, options);
81
- }
82
- }
83
-
84
- /**
85
- * Subnet of the VPC.
86
- */
87
- export interface Subnet {
88
- /**
89
- * Unique identifier for the subnet.
90
- */
91
- id: string;
92
-
93
- /**
94
- * CIDR block for the subnet.
95
- */
96
- cidr: string;
97
-
98
- /**
99
- * When the subnet was created.
100
- */
101
- created_at: string;
102
-
103
- /**
104
- * Name of the subnet.
105
- */
106
- name: string;
107
-
108
- /**
109
- * When the subnet was updated.
110
- */
111
- updated_at: string;
112
- }
113
-
114
- /**
115
- * VPC details.
116
- */
117
- export interface VPC {
118
- /**
119
- * Unique identifier for the VPC.
120
- */
121
- id: string;
122
-
123
- /**
124
- * When the VPC was created.
125
- */
126
- created_at: string;
127
-
128
- /**
129
- * IDs of the firewall rules associated with the VPC.
130
- */
131
- firewall_rule_ids: Array<string>;
132
-
133
- /**
134
- * Name of the VPC.
135
- */
136
- name: string;
137
-
138
- /**
139
- * Region the resource is in.
140
- */
141
- region: Shared.RegionName;
142
-
143
- /**
144
- * Status of the resource.
145
- */
146
- status: Shared.ResourceStatus;
147
-
148
- /**
149
- * Subnet of the VPC.
150
- */
151
- subnet: Subnet;
152
-
153
- /**
154
- * When the VPC was updated.
155
- */
156
- updated_at: string;
157
- }
158
-
159
- export interface VPCList {
160
- items: Array<VPC>;
161
- }
162
-
163
- export interface VPCCreateParams {
164
- /**
165
- * Name of the VPC.
166
- */
167
- name: string;
168
-
169
- /**
170
- * Region the resource is in.
171
- */
172
- region: Shared.RegionName;
173
-
174
- /**
175
- * Name of the subnet to create.
176
- */
177
- subnet_name: string;
178
- }
179
-
180
- export interface VPCUpdateParams {
181
- /**
182
- * Name of the VPC.
183
- */
184
- name?: string;
185
-
186
- /**
187
- * Name of the subnet to create.
188
- */
189
- subnet_name?: string;
190
- }
191
-
192
- export declare namespace VPCs {
193
- export {
194
- type Subnet as Subnet,
195
- type VPC as VPC,
196
- type VPCList as VPCList,
197
- type VPCCreateParams as VPCCreateParams,
198
- type VPCUpdateParams as VPCUpdateParams,
199
- };
200
- }
3
+ export * from './vpcs/index';
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '1.1.2'; // x-release-please-version
1
+ export const VERSION = '1.3.0'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "1.1.2";
1
+ export declare const VERSION = "1.3.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "1.1.2";
1
+ export declare const VERSION = "1.3.0";
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.1.2'; // x-release-please-version
4
+ exports.VERSION = '1.3.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '1.1.2'; // x-release-please-version
1
+ export const VERSION = '1.3.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map