@kvbox/server 0.5.26 → 0.5.27

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.
@@ -459,6 +459,19 @@ var SubdomainSchema = z3.object({
459
459
  url: z3.string(),
460
460
  routes: z3.array(z3.object({ name: z3.string(), port: BoxPortSchema, url: z3.string() }))
461
461
  });
462
+ var AddDomainRequest = z3.object({ domain: z3.string(), port: BoxPortSchema.optional() });
463
+ var DomainSchema = z3.object({
464
+ owner: z3.string(),
465
+ box: z3.string(),
466
+ domain: z3.string(),
467
+ port: BoxPortSchema,
468
+ status: z3.enum(["pending", "live"]),
469
+ www: z3.boolean(),
470
+ url: z3.string(),
471
+ error: z3.string().nullable(),
472
+ records: z3.array(z3.object({ type: z3.enum(["A", "TXT", "CNAME"]), name: z3.string(), value: z3.string() })),
473
+ createdAt: z3.string()
474
+ });
462
475
  var MachineSchema = z3.object({
463
476
  /** Host-unique short id (the tap is `kv-<id>`). Missing only on a box made before ids that has not restarted since. */
464
477
  id: z3.string(),
@@ -3596,7 +3609,7 @@ function versionOf(srcFileUrl, injected) {
3596
3609
  }
3597
3610
 
3598
3611
  // src/version.ts
3599
- var VERSION = versionOf(import.meta.url, true ? "0.5.26" : void 0);
3612
+ var VERSION = versionOf(import.meta.url, true ? "0.5.27" : void 0);
3600
3613
 
3601
3614
  // src/caller.ts
3602
3615
  import { createHash as createHash2, timingSafeEqual } from "node:crypto";