@camstack/addon-agent-ui 1.2.60 → 1.2.61

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 +31 -4
  2. package/package.json +1 -1
package/dist/addon.js CHANGED
@@ -18844,7 +18844,20 @@ var RecentTracksQueryInput = object({
18844
18844
  projection: TrackProjectionSchema.optional(),
18845
18845
  /** Include stationary-promoted rows (parked objects). Default false: the
18846
18846
  * feed lists passages; parking records live on the stationary registry. */
18847
- includeStationary: boolean().optional()
18847
+ includeStationary: boolean().optional(),
18848
+ /**
18849
+ * Restrict to these track classes. ABSENT or EMPTY means no filter.
18850
+ *
18851
+ * The same filter `listTracks` takes, because the timeline's class chips must
18852
+ * mean the same thing whether the scope is one camera or twelve. Until this
18853
+ * existed the scoped feed downloaded a page and narrowed it on the phone
18854
+ * while the single-camera path narrowed the read — one filter, two costs.
18855
+ *
18856
+ * A SUPERSET prefilter on `classes[]`, like its single-camera twin: rows
18857
+ * whose class list is unreadable are kept, and the client's rule stays the
18858
+ * exact one.
18859
+ */
18860
+ classes: array(string()).optional()
18848
18861
  });
18849
18862
  var RecentTracksPageSchema = object({
18850
18863
  /** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
@@ -22882,8 +22895,22 @@ DeviceType.Automation, method(object({ deviceId: number().int().nonnegative() })
22882
22895
  * threshold.
22883
22896
  */
22884
22897
  var BatteryStatusSchema = object({
22885
- /** 0..100 inclusive. Firmware-reported. */
22886
- percentage: number().min(0).max(100),
22898
+ /**
22899
+ * 0..100 inclusive, firmware-reported. **`null` means NOT YET KNOWN** — the
22900
+ * provider has registered the capability but no reading has landed.
22901
+ *
22902
+ * It is nullable because it was not, and the only value a provider could
22903
+ * seed with was `0`. A battery camera behind an NVR therefore announced
22904
+ * itself at 0% on every start and corrected itself a moment later, which is
22905
+ * indistinguishable from a real flat battery: it fires the low-battery alert
22906
+ * every time the hub restarts. Unknown is not empty (D315), and on a battery
22907
+ * reading the difference is an alarm.
22908
+ *
22909
+ * `vacuum-control` and `lawn-mower-control` already model it this way.
22910
+ * Consumers must SKIP a null rather than coerce it — `battery-band` already
22911
+ * declines to band a non-finite reading, which is the correct shape.
22912
+ */
22913
+ percentage: number().min(0).max(100).nullable(),
22887
22914
  /**
22888
22915
  * Charging source. `'dc'` covers wall/USB adapters; `'solar'` is
22889
22916
  * Reolink-specific for the Solar Panel 2 accessory (will become
@@ -37186,7 +37213,7 @@ var AgentUIAddon = class extends BaseAddon {
37186
37213
  capability: adminUiCapability,
37187
37214
  provider: {
37188
37215
  getStaticDir: async () => ({ staticDir: path.resolve(__dirname) }),
37189
- getVersion: async () => ({ version: "1.2.60" })
37216
+ getVersion: async () => ({ version: "1.2.61" })
37190
37217
  }
37191
37218
  }];
37192
37219
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-agent-ui",
3
- "version": "1.2.60",
3
+ "version": "1.2.61",
4
4
  "description": "Agent UI — lightweight status dashboard served by every agent node",
5
5
  "keywords": [
6
6
  "camstack",