@camstack/addon-tailscale 1.2.22 → 1.2.23

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.
@@ -24,7 +24,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
24
24
  enumerable: true
25
25
  }) : target, mod));
26
26
  //#endregion
27
- const require_dist = require("../dist-B_l6CtRR.js");
27
+ const require_dist = require("../dist-CEnhGxlH.js");
28
28
  let node_child_process = require("node:child_process");
29
29
  let node_util = require("node:util");
30
30
  let node_fs = require("node:fs");
@@ -1,4 +1,4 @@
1
- import { a as EventCategory, i as BaseAddon, n as networkAccessCapability, r as BOOT_RECOVERY_BACKOFF_MS, t as meshNetworkCapability } from "../dist-LUO_d3xF.mjs";
1
+ import { a as EventCategory, i as BaseAddon, n as networkAccessCapability, r as BOOT_RECOVERY_BACKOFF_MS, t as meshNetworkCapability } from "../dist-DAzZw-t7.mjs";
2
2
  import { execFile, spawn } from "node:child_process";
3
3
  import { promisify } from "node:util";
4
4
  import * as fs from "node:fs";
@@ -24317,9 +24317,21 @@ var RecordingLocationUsageSchema = object({
24317
24317
  * previously rendered as two identical "disks" with a nonsensical used
24318
24318
  * split — hydrate attribution across aliases is arbitrary by nature. */
24319
24319
  locationIds: array(string()).optional(),
24320
- /** Bytes of recordings stored on this PHYSICAL volume (all aliases). */
24320
+ /**
24321
+ * Filesystem root of the physical volume this row accounts — the only
24322
+ * operator-legible identity when a location has no `displayName` yet, and
24323
+ * what a "which disk is full" alert has to name. OPTIONAL for the same
24324
+ * train-skew reason as `oldestMs`: a recorder that predates the field omits
24325
+ * it, and this schema must keep validating that older provider's payload.
24326
+ */
24327
+ root: string().optional(),
24328
+ /** Bytes of recordings stored on this PHYSICAL volume (all aliases). This is
24329
+ * the footage's SHARE of the volume, not how full the volume is — the disk
24330
+ * also holds everything that is not recordings. Volume fill is
24331
+ * `(totalBytes - availableBytes) / totalBytes`. */
24321
24332
  usedBytes: number(),
24322
- /** Free bytes on the location's volume; null when capacity is unknown (remote). */
24333
+ /** Free bytes on the location's volume; null when capacity is unknown
24334
+ * (remote/unstattable — the recorder logs the statfs failure with the root). */
24323
24335
  availableBytes: number().nullable(),
24324
24336
  /** Total bytes of the location's volume; null when unknown. */
24325
24337
  totalBytes: number().nullable()
@@ -24331,7 +24343,15 @@ var RecordingStorageUsageSchema = object({
24331
24343
  nodeId: string(),
24332
24344
  totalUsedBytes: number(),
24333
24345
  devices: array(RecordingDeviceUsageSchema),
24334
- locations: array(RecordingLocationUsageSchema)
24346
+ /**
24347
+ * Per-physical-volume capacity. OPTIONAL, and consumers must render the rest
24348
+ * of the payload without it: the hub serves this method through a BAKED
24349
+ * router, so a hub whose framework train predates a change to this array
24350
+ * strips it out of an answer a newer recorder happily produced. A UI that
24351
+ * dereferences it unconditionally crashes the whole Storage page over a
24352
+ * missing disk bar.
24353
+ */
24354
+ locations: array(RecordingLocationUsageSchema).optional()
24335
24355
  });
24336
24356
  /**
24337
24357
  * The OPERATOR-ARMED half of multi-location recordings (D116).
@@ -33447,8 +33467,14 @@ Object.freeze({
33447
33467
  "network-access": "ingress",
33448
33468
  "smtp-provider": "email"
33449
33469
  });
33470
+ /** Schema defaults — an untouched sub-field must author exactly these. */
33471
+ var NC_AUDIO_DEFAULTS = {
33472
+ hitPercent: 60,
33473
+ samplingSeconds: 10
33474
+ };
33450
33475
  new Map(AUDIO_MACRO_LABELS.flatMap((macro) => macro.icon === void 0 ? [] : [[macro.id, macro.icon]]));
33451
33476
  new Set(["devices", "classes"]);
33477
+ NC_AUDIO_DEFAULTS.hitPercent, NC_AUDIO_DEFAULTS.samplingSeconds;
33452
33478
  /**
33453
33479
  * TimelapseRule — the STANDALONE scheduled timelapse producer's rule model.
33454
33480
  *
@@ -24317,9 +24317,21 @@ var RecordingLocationUsageSchema = object({
24317
24317
  * previously rendered as two identical "disks" with a nonsensical used
24318
24318
  * split — hydrate attribution across aliases is arbitrary by nature. */
24319
24319
  locationIds: array(string()).optional(),
24320
- /** Bytes of recordings stored on this PHYSICAL volume (all aliases). */
24320
+ /**
24321
+ * Filesystem root of the physical volume this row accounts — the only
24322
+ * operator-legible identity when a location has no `displayName` yet, and
24323
+ * what a "which disk is full" alert has to name. OPTIONAL for the same
24324
+ * train-skew reason as `oldestMs`: a recorder that predates the field omits
24325
+ * it, and this schema must keep validating that older provider's payload.
24326
+ */
24327
+ root: string().optional(),
24328
+ /** Bytes of recordings stored on this PHYSICAL volume (all aliases). This is
24329
+ * the footage's SHARE of the volume, not how full the volume is — the disk
24330
+ * also holds everything that is not recordings. Volume fill is
24331
+ * `(totalBytes - availableBytes) / totalBytes`. */
24321
24332
  usedBytes: number(),
24322
- /** Free bytes on the location's volume; null when capacity is unknown (remote). */
24333
+ /** Free bytes on the location's volume; null when capacity is unknown
24334
+ * (remote/unstattable — the recorder logs the statfs failure with the root). */
24323
24335
  availableBytes: number().nullable(),
24324
24336
  /** Total bytes of the location's volume; null when unknown. */
24325
24337
  totalBytes: number().nullable()
@@ -24331,7 +24343,15 @@ var RecordingStorageUsageSchema = object({
24331
24343
  nodeId: string(),
24332
24344
  totalUsedBytes: number(),
24333
24345
  devices: array(RecordingDeviceUsageSchema),
24334
- locations: array(RecordingLocationUsageSchema)
24346
+ /**
24347
+ * Per-physical-volume capacity. OPTIONAL, and consumers must render the rest
24348
+ * of the payload without it: the hub serves this method through a BAKED
24349
+ * router, so a hub whose framework train predates a change to this array
24350
+ * strips it out of an answer a newer recorder happily produced. A UI that
24351
+ * dereferences it unconditionally crashes the whole Storage page over a
24352
+ * missing disk bar.
24353
+ */
24354
+ locations: array(RecordingLocationUsageSchema).optional()
24335
24355
  });
24336
24356
  /**
24337
24357
  * The OPERATOR-ARMED half of multi-location recordings (D116).
@@ -33447,8 +33467,14 @@ Object.freeze({
33447
33467
  "network-access": "ingress",
33448
33468
  "smtp-provider": "email"
33449
33469
  });
33470
+ /** Schema defaults — an untouched sub-field must author exactly these. */
33471
+ var NC_AUDIO_DEFAULTS = {
33472
+ hitPercent: 60,
33473
+ samplingSeconds: 10
33474
+ };
33450
33475
  new Map(AUDIO_MACRO_LABELS.flatMap((macro) => macro.icon === void 0 ? [] : [[macro.id, macro.icon]]));
33451
33476
  new Set(["devices", "classes"]);
33477
+ NC_AUDIO_DEFAULTS.hitPercent, NC_AUDIO_DEFAULTS.samplingSeconds;
33452
33478
  /**
33453
33479
  * TimelapseRule — the STANDALONE scheduled timelapse producer's rule model.
33454
33480
  *
@@ -2,7 +2,7 @@ Object.defineProperties(exports, {
2
2
  __esModule: { value: true },
3
3
  [Symbol.toStringTag]: { value: "Module" }
4
4
  });
5
- const require_dist = require("../dist-B_l6CtRR.js");
5
+ const require_dist = require("../dist-CEnhGxlH.js");
6
6
  let node_crypto = require("node:crypto");
7
7
  let node_child_process = require("node:child_process");
8
8
  //#region src/ingress/tailscale-cli.ts
@@ -1,4 +1,4 @@
1
- import { a as EventCategory, i as BaseAddon, n as networkAccessCapability } from "../dist-LUO_d3xF.mjs";
1
+ import { a as EventCategory, i as BaseAddon, n as networkAccessCapability } from "../dist-DAzZw-t7.mjs";
2
2
  import { randomUUID } from "node:crypto";
3
3
  import { execFile } from "node:child_process";
4
4
  import { promisify } from "node:util";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-tailscale",
3
- "version": "1.2.22",
3
+ "version": "1.2.23",
4
4
  "description": "Tailscale bundle for CamStack — joins the host to a tailnet (client) and exposes the hub via Serve/Funnel (ingress). Multi-entry npm package shipping 2 addons under a single bundle.",
5
5
  "keywords": [
6
6
  "camstack",