@camstack/addon-matter-broker 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
@@ -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). */
@@ -23433,8 +23446,22 @@ var automationControlCapability = {
23433
23446
  * threshold.
23434
23447
  */
23435
23448
  var BatteryStatusSchema = object({
23436
- /** 0..100 inclusive. Firmware-reported. */
23437
- 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(),
23438
23465
  /**
23439
23466
  * Charging source. `'dc'` covers wall/USB adapters; `'solar'` is
23440
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). */
@@ -23431,8 +23444,22 @@ var automationControlCapability = {
23431
23444
  * threshold.
23432
23445
  */
23433
23446
  var BatteryStatusSchema = object({
23434
- /** 0..100 inclusive. Firmware-reported. */
23435
- 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(),
23436
23463
  /**
23437
23464
  * Charging source. `'dc'` covers wall/USB adapters; `'solar'` is
23438
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.56",
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",