@camstack/addon-import-alexa 0.2.55 → 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). */
@@ -19813,7 +19826,21 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
19813
19826
  /** Include stationary-promoted rows (parked objects handed to the
19814
19827
  * stationary registry). Default false: the timeline lists passages,
19815
19828
  * not parking records (operator decision, 2026-08-15). */
19816
- includeStationary: boolean().optional()
19829
+ includeStationary: boolean().optional(),
19830
+ /**
19831
+ * Restrict to these track classes. ABSENT or EMPTY means no filter.
19832
+ *
19833
+ * Added 2026-09-03: the timeline's class chips filtered in the CLIENT,
19834
+ * on a day of rows already downloaded. The zone filter had been moved
19835
+ * here for exactly that reason — and it is also what lets the rows come
19836
+ * back `slim` — but the class filter was left behind, so a narrow
19837
+ * selection was still a wide read followed by a wide discard.
19838
+ *
19839
+ * Empty is "show all", not "nothing matches": a chip row with nothing
19840
+ * selected is an operator who has not narrowed anything, and an empty
19841
+ * timeline would read as a camera that saw nothing.
19842
+ */
19843
+ classes: array(string()).optional()
19817
19844
  }), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(object({ deviceId: number() }), _void(), {
19818
19845
  kind: "mutation",
19819
19846
  auth: "admin"
@@ -23582,8 +23609,22 @@ var automationControlCapability = {
23582
23609
  * threshold.
23583
23610
  */
23584
23611
  var BatteryStatusSchema = object({
23585
- /** 0..100 inclusive. Firmware-reported. */
23586
- 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(),
23587
23628
  /**
23588
23629
  * Charging source. `'dc'` covers wall/USB adapters; `'solar'` is
23589
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). */
@@ -19813,7 +19826,21 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
19813
19826
  /** Include stationary-promoted rows (parked objects handed to the
19814
19827
  * stationary registry). Default false: the timeline lists passages,
19815
19828
  * not parking records (operator decision, 2026-08-15). */
19816
- includeStationary: boolean().optional()
19829
+ includeStationary: boolean().optional(),
19830
+ /**
19831
+ * Restrict to these track classes. ABSENT or EMPTY means no filter.
19832
+ *
19833
+ * Added 2026-09-03: the timeline's class chips filtered in the CLIENT,
19834
+ * on a day of rows already downloaded. The zone filter had been moved
19835
+ * here for exactly that reason — and it is also what lets the rows come
19836
+ * back `slim` — but the class filter was left behind, so a narrow
19837
+ * selection was still a wide read followed by a wide discard.
19838
+ *
19839
+ * Empty is "show all", not "nothing matches": a chip row with nothing
19840
+ * selected is an operator who has not narrowed anything, and an empty
19841
+ * timeline would read as a camera that saw nothing.
19842
+ */
19843
+ classes: array(string()).optional()
19817
19844
  }), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(object({ deviceId: number() }), _void(), {
19818
19845
  kind: "mutation",
19819
19846
  auth: "admin"
@@ -23582,8 +23609,22 @@ var automationControlCapability = {
23582
23609
  * threshold.
23583
23610
  */
23584
23611
  var BatteryStatusSchema = object({
23585
- /** 0..100 inclusive. Firmware-reported. */
23586
- 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(),
23587
23628
  /**
23588
23629
  * Charging source. `'dc'` covers wall/USB adapters; `'solar'` is
23589
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.55",
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",