@camstack/addon-agent-ui 1.2.73 → 1.2.74

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.
Files changed (2) hide show
  1. package/dist/addon.js +42 -2
  2. package/package.json +1 -1
package/dist/addon.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import path from "node:path";
2
2
  import { fileURLToPath } from "node:url";
3
- //#region ../types/dist/event-category-BZL-fdNj.mjs
3
+ //#region ../types/dist/event-category-zAv7pMUz.mjs
4
4
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
5
5
  EventCategory["SystemBoot"] = "system.boot";
6
6
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -372,6 +372,13 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
372
372
  */
373
373
  EventCategory["BatteryOnStatusChanged"] = "battery.onStatusChanged";
374
374
  /**
375
+ * Cap event fired by every device that registers the `network-link`
376
+ * capability. Mirrors the cap definition's `onStatusChanged`. Carries
377
+ * `{ deviceId, status: NetworkLinkStatus }` — a link switch or a signal
378
+ * reading that moved.
379
+ */
380
+ EventCategory["NetworkLinkOnStatusChanged"] = "network-link.onStatusChanged";
381
+ /**
375
382
  * Emitted by the battery cap provider WHEN `wakeForStream` enters the
376
383
  * "wake in progress" window — between the Baichuan wake-up issue and
377
384
  * the camera's first dialed-back RTP packet. The stream-broker
@@ -23184,6 +23191,39 @@ DeviceType.Camera, DeviceType.Sensor, DeviceType.Button, DeviceType.Switch, meth
23184
23191
  deviceId: number(),
23185
23192
  status: BatteryStatusSchema
23186
23193
  });
23194
+ /**
23195
+ * Network-link snapshot. Same shape for every provider (a Reolink wifi
23196
+ * camera, a Home Assistant device with a signal-strength sensor, a Tapo
23197
+ * plug): one slice under `device.runtimeState['network-link']`, one badge,
23198
+ * one Home Assistant projection.
23199
+ */
23200
+ var NetworkLinkStatusSchema = object({
23201
+ /** The link the device is on. `'unknown'` = not read yet, not "no link". */
23202
+ type: _enum([
23203
+ "wifi",
23204
+ "ethernet",
23205
+ "cellular",
23206
+ "unknown"
23207
+ ]),
23208
+ /**
23209
+ * Link quality, 0..100 inclusive, normalised by the provider from whatever
23210
+ * the firmware reports (bars, RSSI, a vendor scale). **`null` means NOT
23211
+ * KNOWN or NOT APPLICABLE** — a wired link has no signal, and a wireless
23212
+ * one whose reading has not landed must not be drawn at 0 %. Consumers
23213
+ * SKIP a null rather than coerce it.
23214
+ */
23215
+ signalPercent: number().min(0).max(100).nullable(),
23216
+ /** Raw received signal strength in dBm, when the firmware reports one. */
23217
+ rssiDbm: number().optional(),
23218
+ /** Network name of a wireless link, when the firmware reports it. */
23219
+ ssid: string().optional(),
23220
+ /** Ms epoch of the last observation. Lets consumers reason about freshness. */
23221
+ lastUpdated: number()
23222
+ });
23223
+ DeviceType.Camera, DeviceType.Sensor, DeviceType.Button, DeviceType.Switch, DeviceType.Light, DeviceType.Lock, DeviceType.Siren, object({
23224
+ deviceId: number(),
23225
+ status: NetworkLinkStatusSchema
23226
+ });
23187
23227
  object({
23188
23228
  on: boolean(),
23189
23229
  /** Ms epoch of the last transition. 0 if never observed. */
@@ -37480,7 +37520,7 @@ var AgentUIAddon = class extends BaseAddon {
37480
37520
  capability: adminUiCapability,
37481
37521
  provider: {
37482
37522
  getStaticDir: async () => ({ staticDir: path.resolve(__dirname) }),
37483
- getVersion: async () => ({ version: "1.2.73" })
37523
+ getVersion: async () => ({ version: "1.2.74" })
37484
37524
  }
37485
37525
  }];
37486
37526
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-agent-ui",
3
- "version": "1.2.73",
3
+ "version": "1.2.74",
4
4
  "description": "Agent UI — lightweight status dashboard served by every agent node",
5
5
  "keywords": [
6
6
  "camstack",