@krovacloud/sdk 0.5.4 → 0.5.5
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.
|
@@ -1178,7 +1178,7 @@ interface paths {
|
|
|
1178
1178
|
head?: never;
|
|
1179
1179
|
/**
|
|
1180
1180
|
* Update a Cube (rename, termination protection, idle auto-stop)
|
|
1181
|
-
* @description Idempotent. The PATCHable fields are `name`, `terminationProtection` and `idleTimeoutMinutes`; send any
|
|
1181
|
+
* @description Idempotent. The PATCHable fields are `name`, `terminationProtection` and `idleTimeoutMinutes`; send any combination. Sending a value a field already has returns the Cube unchanged and writes no audit row. Sending none of them is a 400 rather than a no-op, so a typo in a field name cannot look like success. Renaming and changing the idle auto-stop timeout need the `cube.manage` permission and changing termination protection needs `cube.termination_protection`; a request with several fields needs every matching permission. Every supplied field is validated before any is applied. Names are not unique within a space. Renaming is metadata only: the hostname inside a running Cube changes on its next cold restart. To change vCPU, RAM or disk use `POST .../resize`.
|
|
1182
1182
|
*/
|
|
1183
1183
|
patch: {
|
|
1184
1184
|
parameters: {
|
|
@@ -2471,6 +2471,7 @@ interface components {
|
|
|
2471
2471
|
};
|
|
2472
2472
|
/** @description The hostname of the server currently hosting this Cube (e.g. `mango.krova.cloud`), shared by every Cube on that server. This is NOT the Cube's own SSH target — use `host` from GET .../ssh for that, which is the Cube's own stable hostname and survives migration to another server. Null when the Cube has no server assigned. Only present on the single-Cube GET; list and create responses omit it. */
|
|
2473
2473
|
serverDomain?: string | null;
|
|
2474
|
+
/** @description The account to SSH in as: `ubuntu` or `debian` on Cubes created from images that ship a default user, `root` on Cubes created before that change or imported from a rootfs without one. The same value on create, GET and GET .../ssh (`user`). Recorded while the Cube provisions; the create response reports the image's default user, which is what the recorded value will be. */
|
|
2474
2475
|
sshUser: string;
|
|
2475
2476
|
/** @enum {string} */
|
|
2476
2477
|
state: "pending" | "booting" | "running" | "stopped" | "stopping" | "resizing" | "error" | "deleted";
|
|
@@ -1178,7 +1178,7 @@ interface paths {
|
|
|
1178
1178
|
head?: never;
|
|
1179
1179
|
/**
|
|
1180
1180
|
* Update a Cube (rename, termination protection, idle auto-stop)
|
|
1181
|
-
* @description Idempotent. The PATCHable fields are `name`, `terminationProtection` and `idleTimeoutMinutes`; send any
|
|
1181
|
+
* @description Idempotent. The PATCHable fields are `name`, `terminationProtection` and `idleTimeoutMinutes`; send any combination. Sending a value a field already has returns the Cube unchanged and writes no audit row. Sending none of them is a 400 rather than a no-op, so a typo in a field name cannot look like success. Renaming and changing the idle auto-stop timeout need the `cube.manage` permission and changing termination protection needs `cube.termination_protection`; a request with several fields needs every matching permission. Every supplied field is validated before any is applied. Names are not unique within a space. Renaming is metadata only: the hostname inside a running Cube changes on its next cold restart. To change vCPU, RAM or disk use `POST .../resize`.
|
|
1182
1182
|
*/
|
|
1183
1183
|
patch: {
|
|
1184
1184
|
parameters: {
|
|
@@ -2471,6 +2471,7 @@ interface components {
|
|
|
2471
2471
|
};
|
|
2472
2472
|
/** @description The hostname of the server currently hosting this Cube (e.g. `mango.krova.cloud`), shared by every Cube on that server. This is NOT the Cube's own SSH target — use `host` from GET .../ssh for that, which is the Cube's own stable hostname and survives migration to another server. Null when the Cube has no server assigned. Only present on the single-Cube GET; list and create responses omit it. */
|
|
2473
2473
|
serverDomain?: string | null;
|
|
2474
|
+
/** @description The account to SSH in as: `ubuntu` or `debian` on Cubes created from images that ship a default user, `root` on Cubes created before that change or imported from a rootfs without one. The same value on create, GET and GET .../ssh (`user`). Recorded while the Cube provisions; the create response reports the image's default user, which is what the recorded value will be. */
|
|
2474
2475
|
sshUser: string;
|
|
2475
2476
|
/** @enum {string} */
|
|
2476
2477
|
state: "pending" | "booting" | "running" | "stopped" | "stopping" | "resizing" | "error" | "deleted";
|
package/dist/index.d.cts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* const cubes = await krova.cubes.list("space_123");
|
|
10
10
|
* ```
|
|
11
11
|
*/
|
|
12
|
-
import { C as TcpMapping, E as paths, S as Space, T as components, _ as PricingTier, a as BackupShareList, b as ResizeCubeResult, c as CreateTcpMappingInput, d as DEFAULT_BASE_URL, f as Domain, g as Pagination, h as KrovaClientOptions, i as BackupShare, l as Cube, m as KrovaClient, n as AuthScheme, o as CreateCubeInput, p as Image, r as Backup, s as CreateDomainInput, t as AcceptedBackupShare, u as CubeSshInfo, v as Region, w as UpdateDomainInput, x as Snapshot, y as ResizeCubeInput } from "./client-
|
|
12
|
+
import { C as TcpMapping, E as paths, S as Space, T as components, _ as PricingTier, a as BackupShareList, b as ResizeCubeResult, c as CreateTcpMappingInput, d as DEFAULT_BASE_URL, f as Domain, g as Pagination, h as KrovaClientOptions, i as BackupShare, l as Cube, m as KrovaClient, n as AuthScheme, o as CreateCubeInput, p as Image, r as Backup, s as CreateDomainInput, t as AcceptedBackupShare, u as CubeSshInfo, v as Region, w as UpdateDomainInput, x as Snapshot, y as ResizeCubeInput } from "./client-B-W-PIAp.cjs";
|
|
13
13
|
/**
|
|
14
14
|
* The error body shape returned by the Krova Cloud API.
|
|
15
15
|
*
|
package/dist/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* const cubes = await krova.cubes.list("space_123");
|
|
10
10
|
* ```
|
|
11
11
|
*/
|
|
12
|
-
import { C as TcpMapping, E as paths, S as Space, T as components, _ as PricingTier, a as BackupShareList, b as ResizeCubeResult, c as CreateTcpMappingInput, d as DEFAULT_BASE_URL, f as Domain, g as Pagination, h as KrovaClientOptions, i as BackupShare, l as Cube, m as KrovaClient, n as AuthScheme, o as CreateCubeInput, p as Image, r as Backup, s as CreateDomainInput, t as AcceptedBackupShare, u as CubeSshInfo, v as Region, w as UpdateDomainInput, x as Snapshot, y as ResizeCubeInput } from "./client-
|
|
12
|
+
import { C as TcpMapping, E as paths, S as Space, T as components, _ as PricingTier, a as BackupShareList, b as ResizeCubeResult, c as CreateTcpMappingInput, d as DEFAULT_BASE_URL, f as Domain, g as Pagination, h as KrovaClientOptions, i as BackupShare, l as Cube, m as KrovaClient, n as AuthScheme, o as CreateCubeInput, p as Image, r as Backup, s as CreateDomainInput, t as AcceptedBackupShare, u as CubeSshInfo, v as Region, w as UpdateDomainInput, x as Snapshot, y as ResizeCubeInput } from "./client-B-W-PIAp.js";
|
|
13
13
|
/**
|
|
14
14
|
* The error body shape returned by the Krova Cloud API.
|
|
15
15
|
*
|
package/dist/ssh.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { u as CubeSshInfo } from "./client-
|
|
1
|
+
import { u as CubeSshInfo } from "./client-B-W-PIAp.cjs";
|
|
2
2
|
import { Client, SFTPWrapper } from "ssh2";
|
|
3
3
|
/** A host public key as the Krova API returns it: `key` is the base64 blob of the OpenSSH `.pub` line. */
|
|
4
4
|
export interface HostKey {
|
package/dist/ssh.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { u as CubeSshInfo } from "./client-
|
|
1
|
+
import { u as CubeSshInfo } from "./client-B-W-PIAp.js";
|
|
2
2
|
import { Client, SFTPWrapper } from "ssh2";
|
|
3
3
|
/** A host public key as the Krova API returns it: `key` is the base64 blob of the OpenSSH `.pub` line. */
|
|
4
4
|
export interface HostKey {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@krovacloud/sdk",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.5",
|
|
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",
|