@camstack/addon-tailscale 1.2.65 → 1.2.67

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-DzYEFQ3h.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-BN95UccC.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.
@@ -23110,12 +23111,20 @@ var BatteryStatusSchema = object({
23110
23111
  * Charging source. `'dc'` covers wall/USB adapters; `'solar'` is
23111
23112
  * Reolink-specific for the Solar Panel 2 accessory (will become
23112
23113
  * common on other battery cams). `'none'` means running on battery
23113
- * 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.
23114
23122
  */
23115
23123
  charging: _enum([
23116
23124
  "dc",
23117
23125
  "solar",
23118
- "none"
23126
+ "none",
23127
+ "unknown"
23119
23128
  ]),
23120
23129
  /**
23121
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.
@@ -23110,12 +23111,20 @@ var BatteryStatusSchema = object({
23110
23111
  * Charging source. `'dc'` covers wall/USB adapters; `'solar'` is
23111
23112
  * Reolink-specific for the Solar Panel 2 accessory (will become
23112
23113
  * common on other battery cams). `'none'` means running on battery
23113
- * 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.
23114
23122
  */
23115
23123
  charging: _enum([
23116
23124
  "dc",
23117
23125
  "solar",
23118
- "none"
23126
+ "none",
23127
+ "unknown"
23119
23128
  ]),
23120
23129
  /**
23121
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-DzYEFQ3h.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-BN95UccC.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.65",
3
+ "version": "1.2.67",
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",