@camstack/addon-provider-rtsp 1.2.56 → 1.2.58

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.
package/dist/addon.js CHANGED
@@ -19239,7 +19239,20 @@ var RecentTracksQueryInput = object({
19239
19239
  projection: TrackProjectionSchema.optional(),
19240
19240
  /** Include stationary-promoted rows (parked objects). Default false: the
19241
19241
  * feed lists passages; parking records live on the stationary registry. */
19242
- includeStationary: boolean().optional()
19242
+ includeStationary: boolean().optional(),
19243
+ /**
19244
+ * Restrict to these track classes. ABSENT or EMPTY means no filter.
19245
+ *
19246
+ * The same filter `listTracks` takes, because the timeline's class chips must
19247
+ * mean the same thing whether the scope is one camera or twelve. Until this
19248
+ * existed the scoped feed downloaded a page and narrowed it on the phone
19249
+ * while the single-camera path narrowed the read — one filter, two costs.
19250
+ *
19251
+ * A SUPERSET prefilter on `classes[]`, like its single-camera twin: rows
19252
+ * whose class list is unreadable are kept, and the client's rule stays the
19253
+ * exact one.
19254
+ */
19255
+ classes: array(string()).optional()
19243
19256
  });
19244
19257
  var RecentTracksPageSchema = object({
19245
19258
  /** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
@@ -19626,7 +19639,21 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
19626
19639
  /** Include stationary-promoted rows (parked objects handed to the
19627
19640
  * stationary registry). Default false: the timeline lists passages,
19628
19641
  * not parking records (operator decision, 2026-08-15). */
19629
- includeStationary: boolean().optional()
19642
+ includeStationary: boolean().optional(),
19643
+ /**
19644
+ * Restrict to these track classes. ABSENT or EMPTY means no filter.
19645
+ *
19646
+ * Added 2026-09-03: the timeline's class chips filtered in the CLIENT,
19647
+ * on a day of rows already downloaded. The zone filter had been moved
19648
+ * here for exactly that reason — and it is also what lets the rows come
19649
+ * back `slim` — but the class filter was left behind, so a narrow
19650
+ * selection was still a wide read followed by a wide discard.
19651
+ *
19652
+ * Empty is "show all", not "nothing matches": a chip row with nothing
19653
+ * selected is an operator who has not narrowed anything, and an empty
19654
+ * timeline would read as a camera that saw nothing.
19655
+ */
19656
+ classes: array(string()).optional()
19630
19657
  }), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(object({ deviceId: number() }), _void(), {
19631
19658
  kind: "mutation",
19632
19659
  auth: "admin"
@@ -23499,8 +23526,22 @@ var automationControlCapability = {
23499
23526
  * threshold.
23500
23527
  */
23501
23528
  var BatteryStatusSchema = object({
23502
- /** 0..100 inclusive. Firmware-reported. */
23503
- percentage: number().min(0).max(100),
23529
+ /**
23530
+ * 0..100 inclusive, firmware-reported. **`null` means NOT YET KNOWN** — the
23531
+ * provider has registered the capability but no reading has landed.
23532
+ *
23533
+ * It is nullable because it was not, and the only value a provider could
23534
+ * seed with was `0`. A battery camera behind an NVR therefore announced
23535
+ * itself at 0% on every start and corrected itself a moment later, which is
23536
+ * indistinguishable from a real flat battery: it fires the low-battery alert
23537
+ * every time the hub restarts. Unknown is not empty (D315), and on a battery
23538
+ * reading the difference is an alarm.
23539
+ *
23540
+ * `vacuum-control` and `lawn-mower-control` already model it this way.
23541
+ * Consumers must SKIP a null rather than coerce it — `battery-band` already
23542
+ * declines to band a non-finite reading, which is the correct shape.
23543
+ */
23544
+ percentage: number().min(0).max(100).nullable(),
23504
23545
  /**
23505
23546
  * Charging source. `'dc'` covers wall/USB adapters; `'solar'` is
23506
23547
  * Reolink-specific for the Solar Panel 2 accessory (will become
package/dist/addon.mjs CHANGED
@@ -19215,7 +19215,20 @@ var RecentTracksQueryInput = object({
19215
19215
  projection: TrackProjectionSchema.optional(),
19216
19216
  /** Include stationary-promoted rows (parked objects). Default false: the
19217
19217
  * feed lists passages; parking records live on the stationary registry. */
19218
- includeStationary: boolean().optional()
19218
+ includeStationary: boolean().optional(),
19219
+ /**
19220
+ * Restrict to these track classes. ABSENT or EMPTY means no filter.
19221
+ *
19222
+ * The same filter `listTracks` takes, because the timeline's class chips must
19223
+ * mean the same thing whether the scope is one camera or twelve. Until this
19224
+ * existed the scoped feed downloaded a page and narrowed it on the phone
19225
+ * while the single-camera path narrowed the read — one filter, two costs.
19226
+ *
19227
+ * A SUPERSET prefilter on `classes[]`, like its single-camera twin: rows
19228
+ * whose class list is unreadable are kept, and the client's rule stays the
19229
+ * exact one.
19230
+ */
19231
+ classes: array(string()).optional()
19219
19232
  });
19220
19233
  var RecentTracksPageSchema = object({
19221
19234
  /** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
@@ -19602,7 +19615,21 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
19602
19615
  /** Include stationary-promoted rows (parked objects handed to the
19603
19616
  * stationary registry). Default false: the timeline lists passages,
19604
19617
  * not parking records (operator decision, 2026-08-15). */
19605
- includeStationary: boolean().optional()
19618
+ includeStationary: boolean().optional(),
19619
+ /**
19620
+ * Restrict to these track classes. ABSENT or EMPTY means no filter.
19621
+ *
19622
+ * Added 2026-09-03: the timeline's class chips filtered in the CLIENT,
19623
+ * on a day of rows already downloaded. The zone filter had been moved
19624
+ * here for exactly that reason — and it is also what lets the rows come
19625
+ * back `slim` — but the class filter was left behind, so a narrow
19626
+ * selection was still a wide read followed by a wide discard.
19627
+ *
19628
+ * Empty is "show all", not "nothing matches": a chip row with nothing
19629
+ * selected is an operator who has not narrowed anything, and an empty
19630
+ * timeline would read as a camera that saw nothing.
19631
+ */
19632
+ classes: array(string()).optional()
19606
19633
  }), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(object({ deviceId: number() }), _void(), {
19607
19634
  kind: "mutation",
19608
19635
  auth: "admin"
@@ -23475,8 +23502,22 @@ var automationControlCapability = {
23475
23502
  * threshold.
23476
23503
  */
23477
23504
  var BatteryStatusSchema = object({
23478
- /** 0..100 inclusive. Firmware-reported. */
23479
- percentage: number().min(0).max(100),
23505
+ /**
23506
+ * 0..100 inclusive, firmware-reported. **`null` means NOT YET KNOWN** — the
23507
+ * provider has registered the capability but no reading has landed.
23508
+ *
23509
+ * It is nullable because it was not, and the only value a provider could
23510
+ * seed with was `0`. A battery camera behind an NVR therefore announced
23511
+ * itself at 0% on every start and corrected itself a moment later, which is
23512
+ * indistinguishable from a real flat battery: it fires the low-battery alert
23513
+ * every time the hub restarts. Unknown is not empty (D315), and on a battery
23514
+ * reading the difference is an alarm.
23515
+ *
23516
+ * `vacuum-control` and `lawn-mower-control` already model it this way.
23517
+ * Consumers must SKIP a null rather than coerce it — `battery-band` already
23518
+ * declines to band a non-finite reading, which is the correct shape.
23519
+ */
23520
+ percentage: number().min(0).max(100).nullable(),
23480
23521
  /**
23481
23522
  * Charging source. `'dc'` covers wall/USB adapters; `'solar'` is
23482
23523
  * Reolink-specific for the Solar Panel 2 accessory (will become
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-rtsp",
3
- "version": "1.2.56",
3
+ "version": "1.2.58",
4
4
  "description": "Generic RTSP camera device provider addon for CamStack",
5
5
  "keywords": [
6
6
  "camstack",