@camstack/addon-tailscale 1.2.64 → 1.2.66

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-C-HpGclR.js");
27
+ const require_dist = require("../dist-C1ivZASR.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-CwE5GhC9.mjs";
1
+ import { a as EventCategory, i as BaseAddon, n as networkAccessCapability, r as BOOT_RECOVERY_BACKOFF_MS, t as meshNetworkCapability } from "../dist-CAA5j948.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";
@@ -7570,7 +7570,8 @@ var CameraSwitchAuthoritySchema = discriminatedUnion("kind", [
7570
7570
  var CameraSwitchUnavailableReasonSchema = _enum([
7571
7571
  "no-provider",
7572
7572
  "source-unreachable",
7573
- "not-configured"
7573
+ "not-configured",
7574
+ "device-disabled"
7574
7575
  ]);
7575
7576
  /**
7576
7577
  * One switch, resolved for one camera.
@@ -12770,7 +12771,12 @@ var ConfigEntrySchema = object({
12770
12771
  value: unknown(),
12771
12772
  description: string().optional()
12772
12773
  });
12773
- var LinkedDevicesModeSchema = _enum(["auto", "manual"]);
12774
+ /**
12775
+ * Only `manual` since D356: the operator picks, nothing links itself. The
12776
+ * field survives on the wire because a viewer already OTA'd parses it —
12777
+ * drop it once no shipped client reads `mode`.
12778
+ */
12779
+ var LinkedDevicesModeSchema = _enum(["manual"]);
12774
12780
  /** One resolved linked device — the compact projection consumers need. */
12775
12781
  var LinkedDeviceSchema = object({
12776
12782
  deviceId: number(),
@@ -23105,12 +23111,20 @@ var BatteryStatusSchema = object({
23105
23111
  * Charging source. `'dc'` covers wall/USB adapters; `'solar'` is
23106
23112
  * Reolink-specific for the Solar Panel 2 accessory (will become
23107
23113
  * common on other battery cams). `'none'` means running on battery
23108
- * alone.
23114
+ * alone — a NEGATIVE the firmware actually reported.
23115
+ *
23116
+ * `'unknown'` is the absence of an answer: the provider has not read the
23117
+ * power fields yet, or the firmware reported neither. Before it existed,
23118
+ * two unreadable fields produced `'none'`, and a camera nobody had reached
23119
+ * was drawn "on battery alone" — the same D315 defect `percentage` closed
23120
+ * by going nullable. Consumers SKIP it (no charger state published, no
23121
+ * glyph, no HomeKit ChargingState) rather than coerce it either way.
23109
23122
  */
23110
23123
  charging: _enum([
23111
23124
  "dc",
23112
23125
  "solar",
23113
- "none"
23126
+ "none",
23127
+ "unknown"
23114
23128
  ]),
23115
23129
  /**
23116
23130
  * True when the camera firmware has gone into low-power mode. Battery
@@ -7570,7 +7570,8 @@ var CameraSwitchAuthoritySchema = discriminatedUnion("kind", [
7570
7570
  var CameraSwitchUnavailableReasonSchema = _enum([
7571
7571
  "no-provider",
7572
7572
  "source-unreachable",
7573
- "not-configured"
7573
+ "not-configured",
7574
+ "device-disabled"
7574
7575
  ]);
7575
7576
  /**
7576
7577
  * One switch, resolved for one camera.
@@ -12770,7 +12771,12 @@ var ConfigEntrySchema = object({
12770
12771
  value: unknown(),
12771
12772
  description: string().optional()
12772
12773
  });
12773
- var LinkedDevicesModeSchema = _enum(["auto", "manual"]);
12774
+ /**
12775
+ * Only `manual` since D356: the operator picks, nothing links itself. The
12776
+ * field survives on the wire because a viewer already OTA'd parses it —
12777
+ * drop it once no shipped client reads `mode`.
12778
+ */
12779
+ var LinkedDevicesModeSchema = _enum(["manual"]);
12774
12780
  /** One resolved linked device — the compact projection consumers need. */
12775
12781
  var LinkedDeviceSchema = object({
12776
12782
  deviceId: number(),
@@ -23105,12 +23111,20 @@ var BatteryStatusSchema = object({
23105
23111
  * Charging source. `'dc'` covers wall/USB adapters; `'solar'` is
23106
23112
  * Reolink-specific for the Solar Panel 2 accessory (will become
23107
23113
  * common on other battery cams). `'none'` means running on battery
23108
- * alone.
23114
+ * alone — a NEGATIVE the firmware actually reported.
23115
+ *
23116
+ * `'unknown'` is the absence of an answer: the provider has not read the
23117
+ * power fields yet, or the firmware reported neither. Before it existed,
23118
+ * two unreadable fields produced `'none'`, and a camera nobody had reached
23119
+ * was drawn "on battery alone" — the same D315 defect `percentage` closed
23120
+ * by going nullable. Consumers SKIP it (no charger state published, no
23121
+ * glyph, no HomeKit ChargingState) rather than coerce it either way.
23109
23122
  */
23110
23123
  charging: _enum([
23111
23124
  "dc",
23112
23125
  "solar",
23113
- "none"
23126
+ "none",
23127
+ "unknown"
23114
23128
  ]),
23115
23129
  /**
23116
23130
  * True when the camera firmware has gone into low-power mode. Battery
@@ -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-C-HpGclR.js");
5
+ const require_dist = require("../dist-C1ivZASR.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-CwE5GhC9.mjs";
1
+ import { a as EventCategory, i as BaseAddon, n as networkAccessCapability } from "../dist-CAA5j948.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.64",
3
+ "version": "1.2.66",
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",