@camstack/addon-matter-broker 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
@@ -19263,7 +19263,20 @@ var RecentTracksQueryInput = object({
19263
19263
  projection: TrackProjectionSchema.optional(),
19264
19264
  /** Include stationary-promoted rows (parked objects). Default false: the
19265
19265
  * feed lists passages; parking records live on the stationary registry. */
19266
- includeStationary: boolean().optional()
19266
+ includeStationary: boolean().optional(),
19267
+ /**
19268
+ * Restrict to these track classes. ABSENT or EMPTY means no filter.
19269
+ *
19270
+ * The same filter `listTracks` takes, because the timeline's class chips must
19271
+ * mean the same thing whether the scope is one camera or twelve. Until this
19272
+ * existed the scoped feed downloaded a page and narrowed it on the phone
19273
+ * while the single-camera path narrowed the read — one filter, two costs.
19274
+ *
19275
+ * A SUPERSET prefilter on `classes[]`, like its single-camera twin: rows
19276
+ * whose class list is unreadable are kept, and the client's rule stays the
19277
+ * exact one.
19278
+ */
19279
+ classes: array(string$2()).optional()
19267
19280
  });
19268
19281
  var RecentTracksPageSchema = object({
19269
19282
  /** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
@@ -19650,7 +19663,21 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
19650
19663
  /** Include stationary-promoted rows (parked objects handed to the
19651
19664
  * stationary registry). Default false: the timeline lists passages,
19652
19665
  * not parking records (operator decision, 2026-08-15). */
19653
- includeStationary: boolean().optional()
19666
+ includeStationary: boolean().optional(),
19667
+ /**
19668
+ * Restrict to these track classes. ABSENT or EMPTY means no filter.
19669
+ *
19670
+ * Added 2026-09-03: the timeline's class chips filtered in the CLIENT,
19671
+ * on a day of rows already downloaded. The zone filter had been moved
19672
+ * here for exactly that reason — and it is also what lets the rows come
19673
+ * back `slim` — but the class filter was left behind, so a narrow
19674
+ * selection was still a wide read followed by a wide discard.
19675
+ *
19676
+ * Empty is "show all", not "nothing matches": a chip row with nothing
19677
+ * selected is an operator who has not narrowed anything, and an empty
19678
+ * timeline would read as a camera that saw nothing.
19679
+ */
19680
+ classes: array(string$2()).optional()
19654
19681
  }), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(object({ deviceId: number() }), _void(), {
19655
19682
  kind: "mutation",
19656
19683
  auth: "admin"
@@ -23419,8 +23446,22 @@ var automationControlCapability = {
23419
23446
  * threshold.
23420
23447
  */
23421
23448
  var BatteryStatusSchema = object({
23422
- /** 0..100 inclusive. Firmware-reported. */
23423
- percentage: number().min(0).max(100),
23449
+ /**
23450
+ * 0..100 inclusive, firmware-reported. **`null` means NOT YET KNOWN** — the
23451
+ * provider has registered the capability but no reading has landed.
23452
+ *
23453
+ * It is nullable because it was not, and the only value a provider could
23454
+ * seed with was `0`. A battery camera behind an NVR therefore announced
23455
+ * itself at 0% on every start and corrected itself a moment later, which is
23456
+ * indistinguishable from a real flat battery: it fires the low-battery alert
23457
+ * every time the hub restarts. Unknown is not empty (D315), and on a battery
23458
+ * reading the difference is an alarm.
23459
+ *
23460
+ * `vacuum-control` and `lawn-mower-control` already model it this way.
23461
+ * Consumers must SKIP a null rather than coerce it — `battery-band` already
23462
+ * declines to band a non-finite reading, which is the correct shape.
23463
+ */
23464
+ percentage: number().min(0).max(100).nullable(),
23424
23465
  /**
23425
23466
  * Charging source. `'dc'` covers wall/USB adapters; `'solar'` is
23426
23467
  * Reolink-specific for the Solar Panel 2 accessory (will become
package/dist/addon.mjs CHANGED
@@ -19261,7 +19261,20 @@ var RecentTracksQueryInput = object({
19261
19261
  projection: TrackProjectionSchema.optional(),
19262
19262
  /** Include stationary-promoted rows (parked objects). Default false: the
19263
19263
  * feed lists passages; parking records live on the stationary registry. */
19264
- includeStationary: boolean().optional()
19264
+ includeStationary: boolean().optional(),
19265
+ /**
19266
+ * Restrict to these track classes. ABSENT or EMPTY means no filter.
19267
+ *
19268
+ * The same filter `listTracks` takes, because the timeline's class chips must
19269
+ * mean the same thing whether the scope is one camera or twelve. Until this
19270
+ * existed the scoped feed downloaded a page and narrowed it on the phone
19271
+ * while the single-camera path narrowed the read — one filter, two costs.
19272
+ *
19273
+ * A SUPERSET prefilter on `classes[]`, like its single-camera twin: rows
19274
+ * whose class list is unreadable are kept, and the client's rule stays the
19275
+ * exact one.
19276
+ */
19277
+ classes: array(string$2()).optional()
19265
19278
  });
19266
19279
  var RecentTracksPageSchema = object({
19267
19280
  /** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
@@ -19648,7 +19661,21 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
19648
19661
  /** Include stationary-promoted rows (parked objects handed to the
19649
19662
  * stationary registry). Default false: the timeline lists passages,
19650
19663
  * not parking records (operator decision, 2026-08-15). */
19651
- includeStationary: boolean().optional()
19664
+ includeStationary: boolean().optional(),
19665
+ /**
19666
+ * Restrict to these track classes. ABSENT or EMPTY means no filter.
19667
+ *
19668
+ * Added 2026-09-03: the timeline's class chips filtered in the CLIENT,
19669
+ * on a day of rows already downloaded. The zone filter had been moved
19670
+ * here for exactly that reason — and it is also what lets the rows come
19671
+ * back `slim` — but the class filter was left behind, so a narrow
19672
+ * selection was still a wide read followed by a wide discard.
19673
+ *
19674
+ * Empty is "show all", not "nothing matches": a chip row with nothing
19675
+ * selected is an operator who has not narrowed anything, and an empty
19676
+ * timeline would read as a camera that saw nothing.
19677
+ */
19678
+ classes: array(string$2()).optional()
19652
19679
  }), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(object({ deviceId: number() }), _void(), {
19653
19680
  kind: "mutation",
19654
19681
  auth: "admin"
@@ -23417,8 +23444,22 @@ var automationControlCapability = {
23417
23444
  * threshold.
23418
23445
  */
23419
23446
  var BatteryStatusSchema = object({
23420
- /** 0..100 inclusive. Firmware-reported. */
23421
- percentage: number().min(0).max(100),
23447
+ /**
23448
+ * 0..100 inclusive, firmware-reported. **`null` means NOT YET KNOWN** — the
23449
+ * provider has registered the capability but no reading has landed.
23450
+ *
23451
+ * It is nullable because it was not, and the only value a provider could
23452
+ * seed with was `0`. A battery camera behind an NVR therefore announced
23453
+ * itself at 0% on every start and corrected itself a moment later, which is
23454
+ * indistinguishable from a real flat battery: it fires the low-battery alert
23455
+ * every time the hub restarts. Unknown is not empty (D315), and on a battery
23456
+ * reading the difference is an alarm.
23457
+ *
23458
+ * `vacuum-control` and `lawn-mower-control` already model it this way.
23459
+ * Consumers must SKIP a null rather than coerce it — `battery-band` already
23460
+ * declines to band a non-finite reading, which is the correct shape.
23461
+ */
23462
+ percentage: number().min(0).max(100).nullable(),
23422
23463
  /**
23423
23464
  * Charging source. `'dc'` covers wall/USB adapters; `'solar'` is
23424
23465
  * 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-matter-broker",
3
- "version": "0.2.55",
3
+ "version": "0.2.57",
4
4
  "description": "Matter broker addon for CamStack — owns a Matter fabric (commissioning + the long-lived controller) via the matter.js controller and brokers commissioned Matter nodes into CamStack",
5
5
  "keywords": [
6
6
  "camstack",