@nirvana-labs/nirvana 0.1.0-alpha.38 → 0.1.0-alpha.40

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 CHANGED
@@ -1,5 +1,35 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.0-alpha.40 (2025-03-17)
4
+
5
+ Full Changelog: [v0.1.0-alpha.39...v0.1.0-alpha.40](https://github.com/nirvana-labs/nirvana-node/compare/v0.1.0-alpha.39...v0.1.0-alpha.40)
6
+
7
+ ### Features
8
+
9
+ * **api:** api update ([#128](https://github.com/nirvana-labs/nirvana-node/issues/128)) ([41caae6](https://github.com/nirvana-labs/nirvana-node/commit/41caae6d321200f8d75d617869cfe1edaaeaceda))
10
+ * **api:** api update ([#138](https://github.com/nirvana-labs/nirvana-node/issues/138)) ([7bb521d](https://github.com/nirvana-labs/nirvana-node/commit/7bb521d1a91d18f3f152be42255b148d7c8e452a))
11
+ * **api:** api update ([#141](https://github.com/nirvana-labs/nirvana-node/issues/141)) ([c58902d](https://github.com/nirvana-labs/nirvana-node/commit/c58902d5325339490b76042416c4293256ecfd8b))
12
+
13
+ ## 0.1.0-alpha.39 (2025-03-14)
14
+
15
+ Full Changelog: [v0.1.0-alpha.38...v0.1.0-alpha.39](https://github.com/nirvana-labs/nirvana-node/compare/v0.1.0-alpha.38...v0.1.0-alpha.39)
16
+
17
+ ### Features
18
+
19
+ * **api:** api update ([#128](https://github.com/nirvana-labs/nirvana-node/issues/128)) ([1445dcc](https://github.com/nirvana-labs/nirvana-node/commit/1445dccc9cfa7f211a93032179c81e2bf4f3d52c))
20
+ * **api:** api update ([#138](https://github.com/nirvana-labs/nirvana-node/issues/138)) ([b9c7592](https://github.com/nirvana-labs/nirvana-node/commit/b9c7592b714b1b71e28985cad1e85c250c2307fb))
21
+ * **api:** manual updates ([#126](https://github.com/nirvana-labs/nirvana-node/issues/126)) ([26b31a6](https://github.com/nirvana-labs/nirvana-node/commit/26b31a630ee0fe026d308fdb3b45b4d0143ea392))
22
+
23
+
24
+ ### Bug Fixes
25
+
26
+ * **exports:** ensure resource imports don't require /index ([#137](https://github.com/nirvana-labs/nirvana-node/issues/137)) ([711fbb6](https://github.com/nirvana-labs/nirvana-node/commit/711fbb68a16a55a2eb9731adcac27cc530799ead))
27
+
28
+
29
+ ### Chores
30
+
31
+ * **internal:** remove extra empty newlines ([#136](https://github.com/nirvana-labs/nirvana-node/issues/136)) ([6771334](https://github.com/nirvana-labs/nirvana-node/commit/6771334e761c53a3b770089ca7af9a3f05ab9ebe))
32
+
3
33
  ## 0.1.0-alpha.38 (2025-03-13)
4
34
 
5
35
  Full Changelog: [v0.1.0-alpha.37...v0.1.0-alpha.38](https://github.com/nirvana-labs/nirvana-node/compare/v0.1.0-alpha.37...v0.1.0-alpha.38)
package/README.md CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  This library provides convenient access to the Nirvana Labs REST API from server-side TypeScript or JavaScript.
6
6
 
7
- The REST API documentation can be found on [docs.nirvanalabs.io](https://docs.nirvanalabs.io/). The full API of this library can be found in [api.md](api.md).
7
+ The REST API documentation can be found on [docs.nirvanalabs.io](https://docs.nirvanalabs.io). The full API of this library can be found in [api.md](api.md).
8
8
 
9
9
  ## Installation
10
10
 
@@ -30,7 +30,7 @@ async function main() {
30
30
  cpu_config: { vcpu: 2 },
31
31
  memory_config: { size: 2 },
32
32
  name: 'my-vm',
33
- os_image_name: 'noble-2024-12-06',
33
+ os_image_name: 'noble-2025-03-04',
34
34
  public_ip_enabled: true,
35
35
  region: 'us-sea-1',
36
36
  ssh_key: {
@@ -64,7 +64,7 @@ async function main() {
64
64
  cpu_config: { vcpu: 2 },
65
65
  memory_config: { size: 2 },
66
66
  name: 'my-vm',
67
- os_image_name: 'noble-2024-12-06',
67
+ os_image_name: 'noble-2025-03-04',
68
68
  public_ip_enabled: true,
69
69
  region: 'us-sea-1',
70
70
  ssh_key: {
@@ -96,7 +96,7 @@ async function main() {
96
96
  cpu_config: { vcpu: 2 },
97
97
  memory_config: { size: 2 },
98
98
  name: 'my-vm',
99
- os_image_name: 'noble-2024-12-06',
99
+ os_image_name: 'noble-2025-03-04',
100
100
  public_ip_enabled: true,
101
101
  region: 'us-sea-1',
102
102
  ssh_key: {
@@ -148,7 +148,7 @@ const client = new NirvanaLabs({
148
148
  });
149
149
 
150
150
  // Or, configure per-request:
151
- await client.compute.vms.create({ boot_volume: { size: 100 }, cpu_config: { vcpu: 2 }, memory_config: { size: 2 }, name: 'my-vm', os_image_name: 'noble-2024-12-06', public_ip_enabled: true, region: 'us-sea-1', ssh_key: { public_key: 'ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAgQDJiJabIUkXw7VrQG+yBohvhEsyoKEYvejZc4RFzV5maybqQei1punVsoe4r6gJttMM1Gr3cNr3OfepikCQAhAchw5ww94ZWqDsDYIqMrlDFbqhGTXDNzFAjeVIKptCOlz9k+7aM69YtLXJ6gFUCq1fbK9PjY+AK28UpMfKYUcyHQ== noname' }, subnet_id: '123e4567-e89b-12d3-a456-426614174000' }, {
151
+ await client.compute.vms.create({ boot_volume: { size: 100 }, cpu_config: { vcpu: 2 }, memory_config: { size: 2 }, name: 'my-vm', os_image_name: 'noble-2025-03-04', public_ip_enabled: true, region: 'us-sea-1', ssh_key: { public_key: 'ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAgQDJiJabIUkXw7VrQG+yBohvhEsyoKEYvejZc4RFzV5maybqQei1punVsoe4r6gJttMM1Gr3cNr3OfepikCQAhAchw5ww94ZWqDsDYIqMrlDFbqhGTXDNzFAjeVIKptCOlz9k+7aM69YtLXJ6gFUCq1fbK9PjY+AK28UpMfKYUcyHQ== noname' }, subnet_id: '123e4567-e89b-12d3-a456-426614174000' }, {
152
152
  maxRetries: 5,
153
153
  });
154
154
  ```
@@ -165,7 +165,7 @@ const client = new NirvanaLabs({
165
165
  });
166
166
 
167
167
  // Override per-request:
168
- await client.compute.vms.create({ boot_volume: { size: 100 }, cpu_config: { vcpu: 2 }, memory_config: { size: 2 }, name: 'my-vm', os_image_name: 'noble-2024-12-06', public_ip_enabled: true, region: 'us-sea-1', ssh_key: { public_key: 'ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAgQDJiJabIUkXw7VrQG+yBohvhEsyoKEYvejZc4RFzV5maybqQei1punVsoe4r6gJttMM1Gr3cNr3OfepikCQAhAchw5ww94ZWqDsDYIqMrlDFbqhGTXDNzFAjeVIKptCOlz9k+7aM69YtLXJ6gFUCq1fbK9PjY+AK28UpMfKYUcyHQ== noname' }, subnet_id: '123e4567-e89b-12d3-a456-426614174000' }, {
168
+ await client.compute.vms.create({ boot_volume: { size: 100 }, cpu_config: { vcpu: 2 }, memory_config: { size: 2 }, name: 'my-vm', os_image_name: 'noble-2025-03-04', public_ip_enabled: true, region: 'us-sea-1', ssh_key: { public_key: 'ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAgQDJiJabIUkXw7VrQG+yBohvhEsyoKEYvejZc4RFzV5maybqQei1punVsoe4r6gJttMM1Gr3cNr3OfepikCQAhAchw5ww94ZWqDsDYIqMrlDFbqhGTXDNzFAjeVIKptCOlz9k+7aM69YtLXJ6gFUCq1fbK9PjY+AK28UpMfKYUcyHQ== noname' }, subnet_id: '123e4567-e89b-12d3-a456-426614174000' }, {
169
169
  timeout: 5 * 1000,
170
170
  });
171
171
  ```
@@ -192,7 +192,7 @@ const response = await client.compute.vms
192
192
  cpu_config: { vcpu: 2 },
193
193
  memory_config: { size: 2 },
194
194
  name: 'my-vm',
195
- os_image_name: 'noble-2024-12-06',
195
+ os_image_name: 'noble-2025-03-04',
196
196
  public_ip_enabled: true,
197
197
  region: 'us-sea-1',
198
198
  ssh_key: {
@@ -211,7 +211,7 @@ const { data: operation, response: raw } = await client.compute.vms
211
211
  cpu_config: { vcpu: 2 },
212
212
  memory_config: { size: 2 },
213
213
  name: 'my-vm',
214
- os_image_name: 'noble-2024-12-06',
214
+ os_image_name: 'noble-2025-03-04',
215
215
  public_ip_enabled: true,
216
216
  region: 'us-sea-1',
217
217
  ssh_key: {
@@ -332,7 +332,7 @@ await client.compute.vms.create(
332
332
  cpu_config: { vcpu: 2 },
333
333
  memory_config: { size: 2 },
334
334
  name: 'my-vm',
335
- os_image_name: 'noble-2024-12-06',
335
+ os_image_name: 'noble-2025-03-04',
336
336
  public_ip_enabled: true,
337
337
  region: 'us-sea-1',
338
338
  ssh_key: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nirvana-labs/nirvana",
3
- "version": "0.1.0-alpha.38",
3
+ "version": "0.1.0-alpha.40",
4
4
  "description": "The official TypeScript library for the Nirvana Labs API",
5
5
  "author": "Nirvana Labs <engineering@nirvanalabs.io>",
6
6
  "types": "./index.d.ts",
@@ -0,0 +1,2 @@
1
+ export * from "./vms/index.js";
2
+ //# sourceMappingURL=vms.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vms.d.ts","sourceRoot":"","sources":["../../src/resources/compute/vms.ts"],"names":[],"mappings":"AAEA,cAAc,aAAa,CAAC"}
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
16
+ };
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ __exportStar(require("./vms/index.js"), exports);
19
+ //# sourceMappingURL=vms.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vms.js","sourceRoot":"","sources":["../../src/resources/compute/vms.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;AAEtF,iDAA4B"}
@@ -0,0 +1,3 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ export * from "./vms/index.mjs";
3
+ //# sourceMappingURL=vms.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vms.mjs","sourceRoot":"","sources":["../../src/resources/compute/vms.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
@@ -0,0 +1,2 @@
1
+ export * from "./compute/index.js";
2
+ //# sourceMappingURL=compute.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"compute.d.ts","sourceRoot":"","sources":["../src/resources/compute.ts"],"names":[],"mappings":"AAEA,cAAc,iBAAiB,CAAC"}
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
16
+ };
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ __exportStar(require("./compute/index.js"), exports);
19
+ //# sourceMappingURL=compute.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"compute.js","sourceRoot":"","sources":["../src/resources/compute.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;AAEtF,qDAAgC"}
@@ -0,0 +1,3 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ export * from "./compute/index.mjs";
3
+ //# sourceMappingURL=compute.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"compute.mjs","sourceRoot":"","sources":["../src/resources/compute.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
@@ -0,0 +1,2 @@
1
+ export * from "./networking/index.js";
2
+ //# sourceMappingURL=networking.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"networking.d.ts","sourceRoot":"","sources":["../src/resources/networking.ts"],"names":[],"mappings":"AAEA,cAAc,oBAAoB,CAAC"}
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
16
+ };
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ __exportStar(require("./networking/index.js"), exports);
19
+ //# sourceMappingURL=networking.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"networking.js","sourceRoot":"","sources":["../src/resources/networking.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;AAEtF,wDAAmC"}
@@ -0,0 +1,3 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ export * from "./networking/index.mjs";
3
+ //# sourceMappingURL=networking.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"networking.mjs","sourceRoot":"","sources":["../src/resources/networking.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
@@ -0,0 +1,3 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ export * from './vms/index';
@@ -0,0 +1,3 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ export * from './compute/index';
@@ -0,0 +1,3 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ export * from './networking/index';
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.1.0-alpha.38'; // x-release-please-version
1
+ export const VERSION = '0.1.0-alpha.40'; // x-release-please-version
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.1.0-alpha.38";
1
+ export declare const VERSION = "0.1.0-alpha.40";
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 = '0.1.0-alpha.38'; // x-release-please-version
4
+ exports.VERSION = '0.1.0-alpha.40'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.1.0-alpha.38'; // x-release-please-version
1
+ export const VERSION = '0.1.0-alpha.40'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map