@camstack/addon-provider-dreame 0.2.57 → 0.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
@@ -69705,7 +69705,20 @@ var RecentTracksQueryInput = object({
69705
69705
  projection: TrackProjectionSchema.optional(),
69706
69706
  /** Include stationary-promoted rows (parked objects). Default false: the
69707
69707
  * feed lists passages; parking records live on the stationary registry. */
69708
- includeStationary: boolean().optional()
69708
+ includeStationary: boolean().optional(),
69709
+ /**
69710
+ * Restrict to these track classes. ABSENT or EMPTY means no filter.
69711
+ *
69712
+ * The same filter `listTracks` takes, because the timeline's class chips must
69713
+ * mean the same thing whether the scope is one camera or twelve. Until this
69714
+ * existed the scoped feed downloaded a page and narrowed it on the phone
69715
+ * while the single-camera path narrowed the read — one filter, two costs.
69716
+ *
69717
+ * A SUPERSET prefilter on `classes[]`, like its single-camera twin: rows
69718
+ * whose class list is unreadable are kept, and the client's rule stays the
69719
+ * exact one.
69720
+ */
69721
+ classes: array(string()).optional()
69709
69722
  });
69710
69723
  var RecentTracksPageSchema = object({
69711
69724
  /** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
@@ -73875,8 +73888,22 @@ var automationControlCapability = {
73875
73888
  * threshold.
73876
73889
  */
73877
73890
  var BatteryStatusSchema = object({
73878
- /** 0..100 inclusive. Firmware-reported. */
73879
- percentage: number().min(0).max(100),
73891
+ /**
73892
+ * 0..100 inclusive, firmware-reported. **`null` means NOT YET KNOWN** — the
73893
+ * provider has registered the capability but no reading has landed.
73894
+ *
73895
+ * It is nullable because it was not, and the only value a provider could
73896
+ * seed with was `0`. A battery camera behind an NVR therefore announced
73897
+ * itself at 0% on every start and corrected itself a moment later, which is
73898
+ * indistinguishable from a real flat battery: it fires the low-battery alert
73899
+ * every time the hub restarts. Unknown is not empty (D315), and on a battery
73900
+ * reading the difference is an alarm.
73901
+ *
73902
+ * `vacuum-control` and `lawn-mower-control` already model it this way.
73903
+ * Consumers must SKIP a null rather than coerce it — `battery-band` already
73904
+ * declines to band a non-finite reading, which is the correct shape.
73905
+ */
73906
+ percentage: number().min(0).max(100).nullable(),
73880
73907
  /**
73881
73908
  * Charging source. `'dc'` covers wall/USB adapters; `'solar'` is
73882
73909
  * Reolink-specific for the Solar Panel 2 accessory (will become
package/dist/addon.mjs CHANGED
@@ -69705,7 +69705,20 @@ var RecentTracksQueryInput = object({
69705
69705
  projection: TrackProjectionSchema.optional(),
69706
69706
  /** Include stationary-promoted rows (parked objects). Default false: the
69707
69707
  * feed lists passages; parking records live on the stationary registry. */
69708
- includeStationary: boolean().optional()
69708
+ includeStationary: boolean().optional(),
69709
+ /**
69710
+ * Restrict to these track classes. ABSENT or EMPTY means no filter.
69711
+ *
69712
+ * The same filter `listTracks` takes, because the timeline's class chips must
69713
+ * mean the same thing whether the scope is one camera or twelve. Until this
69714
+ * existed the scoped feed downloaded a page and narrowed it on the phone
69715
+ * while the single-camera path narrowed the read — one filter, two costs.
69716
+ *
69717
+ * A SUPERSET prefilter on `classes[]`, like its single-camera twin: rows
69718
+ * whose class list is unreadable are kept, and the client's rule stays the
69719
+ * exact one.
69720
+ */
69721
+ classes: array(string()).optional()
69709
69722
  });
69710
69723
  var RecentTracksPageSchema = object({
69711
69724
  /** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
@@ -73875,8 +73888,22 @@ var automationControlCapability = {
73875
73888
  * threshold.
73876
73889
  */
73877
73890
  var BatteryStatusSchema = object({
73878
- /** 0..100 inclusive. Firmware-reported. */
73879
- percentage: number().min(0).max(100),
73891
+ /**
73892
+ * 0..100 inclusive, firmware-reported. **`null` means NOT YET KNOWN** — the
73893
+ * provider has registered the capability but no reading has landed.
73894
+ *
73895
+ * It is nullable because it was not, and the only value a provider could
73896
+ * seed with was `0`. A battery camera behind an NVR therefore announced
73897
+ * itself at 0% on every start and corrected itself a moment later, which is
73898
+ * indistinguishable from a real flat battery: it fires the low-battery alert
73899
+ * every time the hub restarts. Unknown is not empty (D315), and on a battery
73900
+ * reading the difference is an alarm.
73901
+ *
73902
+ * `vacuum-control` and `lawn-mower-control` already model it this way.
73903
+ * Consumers must SKIP a null rather than coerce it — `battery-band` already
73904
+ * declines to band a non-finite reading, which is the correct shape.
73905
+ */
73906
+ percentage: number().min(0).max(100).nullable(),
73880
73907
  /**
73881
73908
  * Charging source. `'dc'` covers wall/USB adapters; `'solar'` is
73882
73909
  * 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-dreame",
3
- "version": "0.2.57",
3
+ "version": "0.2.58",
4
4
  "description": "Dreame robot-vacuum / lawn-mower device-provider addon for CamStack — wraps the @apocaliss92/nodedreame Dreamehome cloud client",
5
5
  "keywords": [
6
6
  "camstack",