@camstack/addon-provider-amcrest 0.2.57 → 0.2.59

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
@@ -19176,7 +19176,20 @@ var RecentTracksQueryInput = object({
19176
19176
  projection: TrackProjectionSchema.optional(),
19177
19177
  /** Include stationary-promoted rows (parked objects). Default false: the
19178
19178
  * feed lists passages; parking records live on the stationary registry. */
19179
- includeStationary: boolean().optional()
19179
+ includeStationary: boolean().optional(),
19180
+ /**
19181
+ * Restrict to these track classes. ABSENT or EMPTY means no filter.
19182
+ *
19183
+ * The same filter `listTracks` takes, because the timeline's class chips must
19184
+ * mean the same thing whether the scope is one camera or twelve. Until this
19185
+ * existed the scoped feed downloaded a page and narrowed it on the phone
19186
+ * while the single-camera path narrowed the read — one filter, two costs.
19187
+ *
19188
+ * A SUPERSET prefilter on `classes[]`, like its single-camera twin: rows
19189
+ * whose class list is unreadable are kept, and the client's rule stays the
19190
+ * exact one.
19191
+ */
19192
+ classes: array(string()).optional()
19180
19193
  });
19181
19194
  var RecentTracksPageSchema = object({
19182
19195
  /** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
@@ -19563,7 +19576,21 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
19563
19576
  /** Include stationary-promoted rows (parked objects handed to the
19564
19577
  * stationary registry). Default false: the timeline lists passages,
19565
19578
  * not parking records (operator decision, 2026-08-15). */
19566
- includeStationary: boolean().optional()
19579
+ includeStationary: boolean().optional(),
19580
+ /**
19581
+ * Restrict to these track classes. ABSENT or EMPTY means no filter.
19582
+ *
19583
+ * Added 2026-09-03: the timeline's class chips filtered in the CLIENT,
19584
+ * on a day of rows already downloaded. The zone filter had been moved
19585
+ * here for exactly that reason — and it is also what lets the rows come
19586
+ * back `slim` — but the class filter was left behind, so a narrow
19587
+ * selection was still a wide read followed by a wide discard.
19588
+ *
19589
+ * Empty is "show all", not "nothing matches": a chip row with nothing
19590
+ * selected is an operator who has not narrowed anything, and an empty
19591
+ * timeline would read as a camera that saw nothing.
19592
+ */
19593
+ classes: array(string()).optional()
19567
19594
  }), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(object({ deviceId: number() }), _void(), {
19568
19595
  kind: "mutation",
19569
19596
  auth: "admin"
@@ -23436,8 +23463,22 @@ var automationControlCapability = {
23436
23463
  * threshold.
23437
23464
  */
23438
23465
  var BatteryStatusSchema = object({
23439
- /** 0..100 inclusive. Firmware-reported. */
23440
- percentage: number().min(0).max(100),
23466
+ /**
23467
+ * 0..100 inclusive, firmware-reported. **`null` means NOT YET KNOWN** — the
23468
+ * provider has registered the capability but no reading has landed.
23469
+ *
23470
+ * It is nullable because it was not, and the only value a provider could
23471
+ * seed with was `0`. A battery camera behind an NVR therefore announced
23472
+ * itself at 0% on every start and corrected itself a moment later, which is
23473
+ * indistinguishable from a real flat battery: it fires the low-battery alert
23474
+ * every time the hub restarts. Unknown is not empty (D315), and on a battery
23475
+ * reading the difference is an alarm.
23476
+ *
23477
+ * `vacuum-control` and `lawn-mower-control` already model it this way.
23478
+ * Consumers must SKIP a null rather than coerce it — `battery-band` already
23479
+ * declines to band a non-finite reading, which is the correct shape.
23480
+ */
23481
+ percentage: number().min(0).max(100).nullable(),
23441
23482
  /**
23442
23483
  * Charging source. `'dc'` covers wall/USB adapters; `'solar'` is
23443
23484
  * Reolink-specific for the Solar Panel 2 accessory (will become
package/dist/addon.mjs CHANGED
@@ -19177,7 +19177,20 @@ var RecentTracksQueryInput = object({
19177
19177
  projection: TrackProjectionSchema.optional(),
19178
19178
  /** Include stationary-promoted rows (parked objects). Default false: the
19179
19179
  * feed lists passages; parking records live on the stationary registry. */
19180
- includeStationary: boolean().optional()
19180
+ includeStationary: boolean().optional(),
19181
+ /**
19182
+ * Restrict to these track classes. ABSENT or EMPTY means no filter.
19183
+ *
19184
+ * The same filter `listTracks` takes, because the timeline's class chips must
19185
+ * mean the same thing whether the scope is one camera or twelve. Until this
19186
+ * existed the scoped feed downloaded a page and narrowed it on the phone
19187
+ * while the single-camera path narrowed the read — one filter, two costs.
19188
+ *
19189
+ * A SUPERSET prefilter on `classes[]`, like its single-camera twin: rows
19190
+ * whose class list is unreadable are kept, and the client's rule stays the
19191
+ * exact one.
19192
+ */
19193
+ classes: array(string()).optional()
19181
19194
  });
19182
19195
  var RecentTracksPageSchema = object({
19183
19196
  /** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
@@ -19564,7 +19577,21 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
19564
19577
  /** Include stationary-promoted rows (parked objects handed to the
19565
19578
  * stationary registry). Default false: the timeline lists passages,
19566
19579
  * not parking records (operator decision, 2026-08-15). */
19567
- includeStationary: boolean().optional()
19580
+ includeStationary: boolean().optional(),
19581
+ /**
19582
+ * Restrict to these track classes. ABSENT or EMPTY means no filter.
19583
+ *
19584
+ * Added 2026-09-03: the timeline's class chips filtered in the CLIENT,
19585
+ * on a day of rows already downloaded. The zone filter had been moved
19586
+ * here for exactly that reason — and it is also what lets the rows come
19587
+ * back `slim` — but the class filter was left behind, so a narrow
19588
+ * selection was still a wide read followed by a wide discard.
19589
+ *
19590
+ * Empty is "show all", not "nothing matches": a chip row with nothing
19591
+ * selected is an operator who has not narrowed anything, and an empty
19592
+ * timeline would read as a camera that saw nothing.
19593
+ */
19594
+ classes: array(string()).optional()
19568
19595
  }), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(object({ deviceId: number() }), _void(), {
19569
19596
  kind: "mutation",
19570
19597
  auth: "admin"
@@ -23437,8 +23464,22 @@ var automationControlCapability = {
23437
23464
  * threshold.
23438
23465
  */
23439
23466
  var BatteryStatusSchema = object({
23440
- /** 0..100 inclusive. Firmware-reported. */
23441
- percentage: number().min(0).max(100),
23467
+ /**
23468
+ * 0..100 inclusive, firmware-reported. **`null` means NOT YET KNOWN** — the
23469
+ * provider has registered the capability but no reading has landed.
23470
+ *
23471
+ * It is nullable because it was not, and the only value a provider could
23472
+ * seed with was `0`. A battery camera behind an NVR therefore announced
23473
+ * itself at 0% on every start and corrected itself a moment later, which is
23474
+ * indistinguishable from a real flat battery: it fires the low-battery alert
23475
+ * every time the hub restarts. Unknown is not empty (D315), and on a battery
23476
+ * reading the difference is an alarm.
23477
+ *
23478
+ * `vacuum-control` and `lawn-mower-control` already model it this way.
23479
+ * Consumers must SKIP a null rather than coerce it — `battery-band` already
23480
+ * declines to band a non-finite reading, which is the correct shape.
23481
+ */
23482
+ percentage: number().min(0).max(100).nullable(),
23442
23483
  /**
23443
23484
  * Charging source. `'dc'` covers wall/USB adapters; `'solar'` is
23444
23485
  * 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-amcrest",
3
- "version": "0.2.57",
3
+ "version": "0.2.59",
4
4
  "description": "Amcrest/Dahua camera device provider addon for CamStack — Dahua CGI over HTTP(S) with digest auth (snapshot, RTSP catalog, PTZ, image/day-night config)",
5
5
  "keywords": [
6
6
  "camstack",