@camstack/addon-provider-amcrest 0.2.58 → 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). */
@@ -23450,8 +23463,22 @@ var automationControlCapability = {
23450
23463
  * threshold.
23451
23464
  */
23452
23465
  var BatteryStatusSchema = object({
23453
- /** 0..100 inclusive. Firmware-reported. */
23454
- 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(),
23455
23482
  /**
23456
23483
  * Charging source. `'dc'` covers wall/USB adapters; `'solar'` is
23457
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). */
@@ -23451,8 +23464,22 @@ var automationControlCapability = {
23451
23464
  * threshold.
23452
23465
  */
23453
23466
  var BatteryStatusSchema = object({
23454
- /** 0..100 inclusive. Firmware-reported. */
23455
- 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(),
23456
23483
  /**
23457
23484
  * Charging source. `'dc'` covers wall/USB adapters; `'solar'` is
23458
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.58",
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",