@camstack/addon-tailscale 1.2.21 → 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-BclSVGVD.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-Bs4xKAvQ.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";
@@ -19914,6 +19914,14 @@ var ClipSchema = object({
19914
19914
  endMs: number()
19915
19915
  }),
19916
19916
  /**
19917
+ * Distinct object classes attached to this visit (`person`, `car`, …),
19918
+ * dominant first, capped at {@link MAX_CLIP_LABELS}. The ribbon renders these
19919
+ * instead of the bare kind — "Object" tells the operator nothing a colour bar
19920
+ * did not. Absent (never empty) when the visit attached no classified object
19921
+ * event, so a motion/audio-only visit keeps its kind label.
19922
+ */
19923
+ labels: array(string()).max(3).optional(),
19924
+ /**
19917
19925
  * Lazy thumbnail URL, never inlined.
19918
19926
  *
19919
19927
  * Recording-derived clips (events-mode keep-window, and the prepared
@@ -24309,9 +24317,21 @@ var RecordingLocationUsageSchema = object({
24309
24317
  * previously rendered as two identical "disks" with a nonsensical used
24310
24318
  * split — hydrate attribution across aliases is arbitrary by nature. */
24311
24319
  locationIds: array(string()).optional(),
24312
- /** 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`. */
24313
24332
  usedBytes: number(),
24314
- /** 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). */
24315
24335
  availableBytes: number().nullable(),
24316
24336
  /** Total bytes of the location's volume; null when unknown. */
24317
24337
  totalBytes: number().nullable()
@@ -24323,7 +24343,15 @@ var RecordingStorageUsageSchema = object({
24323
24343
  nodeId: string(),
24324
24344
  totalUsedBytes: number(),
24325
24345
  devices: array(RecordingDeviceUsageSchema),
24326
- 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()
24327
24355
  });
24328
24356
  /**
24329
24357
  * The OPERATOR-ARMED half of multi-location recordings (D116).
@@ -33439,8 +33467,14 @@ Object.freeze({
33439
33467
  "network-access": "ingress",
33440
33468
  "smtp-provider": "email"
33441
33469
  });
33470
+ /** Schema defaults — an untouched sub-field must author exactly these. */
33471
+ var NC_AUDIO_DEFAULTS = {
33472
+ hitPercent: 60,
33473
+ samplingSeconds: 10
33474
+ };
33442
33475
  new Map(AUDIO_MACRO_LABELS.flatMap((macro) => macro.icon === void 0 ? [] : [[macro.id, macro.icon]]));
33443
33476
  new Set(["devices", "classes"]);
33477
+ NC_AUDIO_DEFAULTS.hitPercent, NC_AUDIO_DEFAULTS.samplingSeconds;
33444
33478
  /**
33445
33479
  * TimelapseRule — the STANDALONE scheduled timelapse producer's rule model.
33446
33480
  *
@@ -19914,6 +19914,14 @@ var ClipSchema = object({
19914
19914
  endMs: number()
19915
19915
  }),
19916
19916
  /**
19917
+ * Distinct object classes attached to this visit (`person`, `car`, …),
19918
+ * dominant first, capped at {@link MAX_CLIP_LABELS}. The ribbon renders these
19919
+ * instead of the bare kind — "Object" tells the operator nothing a colour bar
19920
+ * did not. Absent (never empty) when the visit attached no classified object
19921
+ * event, so a motion/audio-only visit keeps its kind label.
19922
+ */
19923
+ labels: array(string()).max(3).optional(),
19924
+ /**
19917
19925
  * Lazy thumbnail URL, never inlined.
19918
19926
  *
19919
19927
  * Recording-derived clips (events-mode keep-window, and the prepared
@@ -24309,9 +24317,21 @@ var RecordingLocationUsageSchema = object({
24309
24317
  * previously rendered as two identical "disks" with a nonsensical used
24310
24318
  * split — hydrate attribution across aliases is arbitrary by nature. */
24311
24319
  locationIds: array(string()).optional(),
24312
- /** 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`. */
24313
24332
  usedBytes: number(),
24314
- /** 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). */
24315
24335
  availableBytes: number().nullable(),
24316
24336
  /** Total bytes of the location's volume; null when unknown. */
24317
24337
  totalBytes: number().nullable()
@@ -24323,7 +24343,15 @@ var RecordingStorageUsageSchema = object({
24323
24343
  nodeId: string(),
24324
24344
  totalUsedBytes: number(),
24325
24345
  devices: array(RecordingDeviceUsageSchema),
24326
- 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()
24327
24355
  });
24328
24356
  /**
24329
24357
  * The OPERATOR-ARMED half of multi-location recordings (D116).
@@ -33439,8 +33467,14 @@ Object.freeze({
33439
33467
  "network-access": "ingress",
33440
33468
  "smtp-provider": "email"
33441
33469
  });
33470
+ /** Schema defaults — an untouched sub-field must author exactly these. */
33471
+ var NC_AUDIO_DEFAULTS = {
33472
+ hitPercent: 60,
33473
+ samplingSeconds: 10
33474
+ };
33442
33475
  new Map(AUDIO_MACRO_LABELS.flatMap((macro) => macro.icon === void 0 ? [] : [[macro.id, macro.icon]]));
33443
33476
  new Set(["devices", "classes"]);
33477
+ NC_AUDIO_DEFAULTS.hitPercent, NC_AUDIO_DEFAULTS.samplingSeconds;
33444
33478
  /**
33445
33479
  * TimelapseRule — the STANDALONE scheduled timelapse producer's rule model.
33446
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-BclSVGVD.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-Bs4xKAvQ.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.21",
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",