@camstack/addon-import-alexa 0.2.56 → 0.2.57

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
@@ -19426,7 +19426,20 @@ var RecentTracksQueryInput = object({
19426
19426
  projection: TrackProjectionSchema.optional(),
19427
19427
  /** Include stationary-promoted rows (parked objects). Default false: the
19428
19428
  * feed lists passages; parking records live on the stationary registry. */
19429
- includeStationary: boolean().optional()
19429
+ includeStationary: boolean().optional(),
19430
+ /**
19431
+ * Restrict to these track classes. ABSENT or EMPTY means no filter.
19432
+ *
19433
+ * The same filter `listTracks` takes, because the timeline's class chips must
19434
+ * mean the same thing whether the scope is one camera or twelve. Until this
19435
+ * existed the scoped feed downloaded a page and narrowed it on the phone
19436
+ * while the single-camera path narrowed the read — one filter, two costs.
19437
+ *
19438
+ * A SUPERSET prefilter on `classes[]`, like its single-camera twin: rows
19439
+ * whose class list is unreadable are kept, and the client's rule stays the
19440
+ * exact one.
19441
+ */
19442
+ classes: array(string()).optional()
19430
19443
  });
19431
19444
  var RecentTracksPageSchema = object({
19432
19445
  /** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
@@ -23596,8 +23609,22 @@ var automationControlCapability = {
23596
23609
  * threshold.
23597
23610
  */
23598
23611
  var BatteryStatusSchema = object({
23599
- /** 0..100 inclusive. Firmware-reported. */
23600
- percentage: number().min(0).max(100),
23612
+ /**
23613
+ * 0..100 inclusive, firmware-reported. **`null` means NOT YET KNOWN** — the
23614
+ * provider has registered the capability but no reading has landed.
23615
+ *
23616
+ * It is nullable because it was not, and the only value a provider could
23617
+ * seed with was `0`. A battery camera behind an NVR therefore announced
23618
+ * itself at 0% on every start and corrected itself a moment later, which is
23619
+ * indistinguishable from a real flat battery: it fires the low-battery alert
23620
+ * every time the hub restarts. Unknown is not empty (D315), and on a battery
23621
+ * reading the difference is an alarm.
23622
+ *
23623
+ * `vacuum-control` and `lawn-mower-control` already model it this way.
23624
+ * Consumers must SKIP a null rather than coerce it — `battery-band` already
23625
+ * declines to band a non-finite reading, which is the correct shape.
23626
+ */
23627
+ percentage: number().min(0).max(100).nullable(),
23601
23628
  /**
23602
23629
  * Charging source. `'dc'` covers wall/USB adapters; `'solar'` is
23603
23630
  * Reolink-specific for the Solar Panel 2 accessory (will become
package/dist/addon.mjs CHANGED
@@ -19426,7 +19426,20 @@ var RecentTracksQueryInput = object({
19426
19426
  projection: TrackProjectionSchema.optional(),
19427
19427
  /** Include stationary-promoted rows (parked objects). Default false: the
19428
19428
  * feed lists passages; parking records live on the stationary registry. */
19429
- includeStationary: boolean().optional()
19429
+ includeStationary: boolean().optional(),
19430
+ /**
19431
+ * Restrict to these track classes. ABSENT or EMPTY means no filter.
19432
+ *
19433
+ * The same filter `listTracks` takes, because the timeline's class chips must
19434
+ * mean the same thing whether the scope is one camera or twelve. Until this
19435
+ * existed the scoped feed downloaded a page and narrowed it on the phone
19436
+ * while the single-camera path narrowed the read — one filter, two costs.
19437
+ *
19438
+ * A SUPERSET prefilter on `classes[]`, like its single-camera twin: rows
19439
+ * whose class list is unreadable are kept, and the client's rule stays the
19440
+ * exact one.
19441
+ */
19442
+ classes: array(string()).optional()
19430
19443
  });
19431
19444
  var RecentTracksPageSchema = object({
19432
19445
  /** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
@@ -23596,8 +23609,22 @@ var automationControlCapability = {
23596
23609
  * threshold.
23597
23610
  */
23598
23611
  var BatteryStatusSchema = object({
23599
- /** 0..100 inclusive. Firmware-reported. */
23600
- percentage: number().min(0).max(100),
23612
+ /**
23613
+ * 0..100 inclusive, firmware-reported. **`null` means NOT YET KNOWN** — the
23614
+ * provider has registered the capability but no reading has landed.
23615
+ *
23616
+ * It is nullable because it was not, and the only value a provider could
23617
+ * seed with was `0`. A battery camera behind an NVR therefore announced
23618
+ * itself at 0% on every start and corrected itself a moment later, which is
23619
+ * indistinguishable from a real flat battery: it fires the low-battery alert
23620
+ * every time the hub restarts. Unknown is not empty (D315), and on a battery
23621
+ * reading the difference is an alarm.
23622
+ *
23623
+ * `vacuum-control` and `lawn-mower-control` already model it this way.
23624
+ * Consumers must SKIP a null rather than coerce it — `battery-band` already
23625
+ * declines to band a non-finite reading, which is the correct shape.
23626
+ */
23627
+ percentage: number().min(0).max(100).nullable(),
23601
23628
  /**
23602
23629
  * Charging source. `'dc'` covers wall/USB adapters; `'solar'` is
23603
23630
  * 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-import-alexa",
3
- "version": "0.2.56",
3
+ "version": "0.2.57",
4
4
  "description": "Alexa device-import provider for CamStack — imports the smart-home devices in a user's Alexa account via the unofficial alexa-remote2 cookie/token client (the inverse of the Alexa exporter)",
5
5
  "keywords": [
6
6
  "camstack",