@camstack/addon-provider-rtsp 1.2.57 → 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). */
@@ -23513,8 +23526,22 @@ var automationControlCapability = {
23513
23526
  * threshold.
23514
23527
  */
23515
23528
  var BatteryStatusSchema = object({
23516
- /** 0..100 inclusive. Firmware-reported. */
23517
- 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(),
23518
23545
  /**
23519
23546
  * Charging source. `'dc'` covers wall/USB adapters; `'solar'` is
23520
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). */
@@ -23489,8 +23502,22 @@ var automationControlCapability = {
23489
23502
  * threshold.
23490
23503
  */
23491
23504
  var BatteryStatusSchema = object({
23492
- /** 0..100 inclusive. Firmware-reported. */
23493
- 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(),
23494
23521
  /**
23495
23522
  * Charging source. `'dc'` covers wall/USB adapters; `'solar'` is
23496
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.57",
3
+ "version": "1.2.58",
4
4
  "description": "Generic RTSP camera device provider addon for CamStack",
5
5
  "keywords": [
6
6
  "camstack",