@krovacloud/sdk 0.3.2 → 0.3.4
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/README.md +3 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -82,7 +82,7 @@ new KrovaClient({
|
|
|
82
82
|
});
|
|
83
83
|
```
|
|
84
84
|
|
|
85
|
-
Throws if `apiKey` is missing. Exposes `client.baseUrl` (the resolved base URL), `client.getSpace()`, `client.cubes`, `client.
|
|
85
|
+
Throws if `apiKey` is missing. Exposes `client.baseUrl` (the resolved base URL), `client.getSpace()`, and the resource helpers `client.cubes`, `client.domains`, `client.snapshots`, `client.tcpMappings`, `client.imports`, `client.backups`, `client.catalog` (each documented in its section below), plus the raw typed client `client.raw`.
|
|
86
86
|
|
|
87
87
|
### `client.getSpace()`
|
|
88
88
|
|
|
@@ -107,6 +107,7 @@ Ergonomic helpers for the Cube lifecycle. Each unwraps the response body and thr
|
|
|
107
107
|
| `sleep` | `(spaceId, cubeId)` | enqueues sleep |
|
|
108
108
|
| `wake` | `(spaceId, cubeId)` | enqueues wake |
|
|
109
109
|
| `ssh` | `(spaceId, cubeId)` | the Cube's SSH connection info (`host`, `port`, `user`, `hostKeys`) |
|
|
110
|
+
| `restore` | `(spaceId, cubeId, snapshotId)` | enqueues a restore — replaces the Cube's disk from a snapshot |
|
|
110
111
|
|
|
111
112
|
```ts
|
|
112
113
|
// create — sshPublicKey is required; region + userData (cloud-init) are optional.
|
|
@@ -292,7 +293,7 @@ The package ships its own type declarations — no `@types/*` install needed. `C
|
|
|
292
293
|
|
|
293
294
|
## Contributing
|
|
294
295
|
|
|
295
|
-
See [CONTRIBUTING.md](
|
|
296
|
+
See [CONTRIBUTING.md](https://github.com/krovacloud/krova-node/blob/main/CONTRIBUTING.md). Report security issues privately per [SECURITY.md](https://github.com/krovacloud/krova-node/blob/main/SECURITY.md).
|
|
296
297
|
|
|
297
298
|
## License
|
|
298
299
|
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@krovacloud/sdk",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.4",
|
|
4
4
|
"description": "Official TypeScript SDK for Krova Cloud — a typed client for provisioning and managing Cubes (Firecracker microVMs) with dedicated resources.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"author": "Krova Inc.",
|
|
8
|
-
"homepage": "https://
|
|
8
|
+
"homepage": "https://krova.cloud/developers",
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
11
11
|
"url": "git+https://github.com/krovacloud/krova-node.git",
|