@camstack/addon-agent-ui 1.2.59 → 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 +46 -5
  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). */
@@ -19231,7 +19244,21 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
19231
19244
  /** Include stationary-promoted rows (parked objects handed to the
19232
19245
  * stationary registry). Default false: the timeline lists passages,
19233
19246
  * not parking records (operator decision, 2026-08-15). */
19234
- includeStationary: boolean().optional()
19247
+ includeStationary: boolean().optional(),
19248
+ /**
19249
+ * Restrict to these track classes. ABSENT or EMPTY means no filter.
19250
+ *
19251
+ * Added 2026-09-03: the timeline's class chips filtered in the CLIENT,
19252
+ * on a day of rows already downloaded. The zone filter had been moved
19253
+ * here for exactly that reason — and it is also what lets the rows come
19254
+ * back `slim` — but the class filter was left behind, so a narrow
19255
+ * selection was still a wide read followed by a wide discard.
19256
+ *
19257
+ * Empty is "show all", not "nothing matches": a chip row with nothing
19258
+ * selected is an operator who has not narrowed anything, and an empty
19259
+ * timeline would read as a camera that saw nothing.
19260
+ */
19261
+ classes: array(string()).optional()
19235
19262
  }), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(object({ deviceId: number() }), _void(), {
19236
19263
  kind: "mutation",
19237
19264
  auth: "admin"
@@ -22868,8 +22895,22 @@ DeviceType.Automation, method(object({ deviceId: number().int().nonnegative() })
22868
22895
  * threshold.
22869
22896
  */
22870
22897
  var BatteryStatusSchema = object({
22871
- /** 0..100 inclusive. Firmware-reported. */
22872
- 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(),
22873
22914
  /**
22874
22915
  * Charging source. `'dc'` covers wall/USB adapters; `'solar'` is
22875
22916
  * Reolink-specific for the Solar Panel 2 accessory (will become
@@ -37172,7 +37213,7 @@ var AgentUIAddon = class extends BaseAddon {
37172
37213
  capability: adminUiCapability,
37173
37214
  provider: {
37174
37215
  getStaticDir: async () => ({ staticDir: path.resolve(__dirname) }),
37175
- getVersion: async () => ({ version: "1.2.59" })
37216
+ getVersion: async () => ({ version: "1.2.61" })
37176
37217
  }
37177
37218
  }];
37178
37219
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-agent-ui",
3
- "version": "1.2.59",
3
+ "version": "1.2.61",
4
4
  "description": "Agent UI — lightweight status dashboard served by every agent node",
5
5
  "keywords": [
6
6
  "camstack",