@kvbox/server 0.5.37 → 0.5.38
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/dist/kvbox-server.js +10 -2
- package/dist/kvbox-server.js.map +1 -1
- package/package.json +1 -1
package/dist/kvbox-server.js
CHANGED
|
@@ -602,6 +602,11 @@ var MachineSchema = z3.object({
|
|
|
602
602
|
ports: z3.array(PortForwardSchema).optional(),
|
|
603
603
|
/** Whether the owner slug is a user or an org. Only the control plane knows; it fills it in on `GET /machines`. */
|
|
604
604
|
ownerKind: z3.enum(["user", "org"]).optional(),
|
|
605
|
+
/**
|
|
606
|
+
* The name of the host the box runs on. Only the control plane fills it in, on `GET /machines`: a box
|
|
607
|
+
* links to, and a volume attaches to, only a box on the same host.
|
|
608
|
+
*/
|
|
609
|
+
host: z3.string().optional(),
|
|
605
610
|
/** Seconds without network traffic before the host hibernates the box (#47). Absent: never. */
|
|
606
611
|
autoHibernateSec: z3.number().int().positive().optional(),
|
|
607
612
|
/** A script inside the box that says it is idle (#102, exit 0): auto-hibernate asks it instead of watching the traffic. */
|
|
@@ -629,7 +634,9 @@ var VolumeSchema = z3.object({
|
|
|
629
634
|
attachedTo: z3.string().nullable(),
|
|
630
635
|
createdAt: z3.string(),
|
|
631
636
|
/** Whether the owner slug is a user or an org. Only the control plane knows; it fills it in on `GET /volumes`. */
|
|
632
|
-
ownerKind: z3.enum(["user", "org"]).optional()
|
|
637
|
+
ownerKind: z3.enum(["user", "org"]).optional(),
|
|
638
|
+
/** The name of the host the volume lives on; only the control plane fills it in. It attaches only to a box there. */
|
|
639
|
+
host: z3.string().optional()
|
|
633
640
|
});
|
|
634
641
|
var MAX_VOLUME_GIB = 4096;
|
|
635
642
|
var VOLUME_NAME_RE = /^[a-z0-9][a-z0-9-]{0,11}$/;
|
|
@@ -778,6 +785,7 @@ var CapacitySchema = z3.object({
|
|
|
778
785
|
*/
|
|
779
786
|
images: z3.array(z3.object({ name: z3.string(), version: z3.string() })).optional()
|
|
780
787
|
});
|
|
788
|
+
var ImageSchema = z3.object({ name: z3.string(), version: z3.string().nullable() });
|
|
781
789
|
var RecoveryReportSchema = z3.object({
|
|
782
790
|
at: z3.string(),
|
|
783
791
|
booted: z3.array(z3.string()),
|
|
@@ -4690,7 +4698,7 @@ function versionOf(srcFileUrl, injected) {
|
|
|
4690
4698
|
}
|
|
4691
4699
|
|
|
4692
4700
|
// src/version.ts
|
|
4693
|
-
var VERSION = versionOf(import.meta.url, true ? "0.5.
|
|
4701
|
+
var VERSION = versionOf(import.meta.url, true ? "0.5.38" : void 0);
|
|
4694
4702
|
|
|
4695
4703
|
// src/caller.ts
|
|
4696
4704
|
import { createHash as createHash2, timingSafeEqual } from "node:crypto";
|