@camstack/addon-provider-petkit 0.2.56 → 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
@@ -20302,7 +20302,20 @@ var RecentTracksQueryInput = object({
20302
20302
  projection: TrackProjectionSchema.optional(),
20303
20303
  /** Include stationary-promoted rows (parked objects). Default false: the
20304
20304
  * feed lists passages; parking records live on the stationary registry. */
20305
- includeStationary: boolean().optional()
20305
+ includeStationary: boolean().optional(),
20306
+ /**
20307
+ * Restrict to these track classes. ABSENT or EMPTY means no filter.
20308
+ *
20309
+ * The same filter `listTracks` takes, because the timeline's class chips must
20310
+ * mean the same thing whether the scope is one camera or twelve. Until this
20311
+ * existed the scoped feed downloaded a page and narrowed it on the phone
20312
+ * while the single-camera path narrowed the read — one filter, two costs.
20313
+ *
20314
+ * A SUPERSET prefilter on `classes[]`, like its single-camera twin: rows
20315
+ * whose class list is unreadable are kept, and the client's rule stays the
20316
+ * exact one.
20317
+ */
20318
+ classes: array(string()).optional()
20306
20319
  });
20307
20320
  var RecentTracksPageSchema = object({
20308
20321
  /** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
@@ -20689,7 +20702,21 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
20689
20702
  /** Include stationary-promoted rows (parked objects handed to the
20690
20703
  * stationary registry). Default false: the timeline lists passages,
20691
20704
  * not parking records (operator decision, 2026-08-15). */
20692
- includeStationary: boolean().optional()
20705
+ includeStationary: boolean().optional(),
20706
+ /**
20707
+ * Restrict to these track classes. ABSENT or EMPTY means no filter.
20708
+ *
20709
+ * Added 2026-09-03: the timeline's class chips filtered in the CLIENT,
20710
+ * on a day of rows already downloaded. The zone filter had been moved
20711
+ * here for exactly that reason — and it is also what lets the rows come
20712
+ * back `slim` — but the class filter was left behind, so a narrow
20713
+ * selection was still a wide read followed by a wide discard.
20714
+ *
20715
+ * Empty is "show all", not "nothing matches": a chip row with nothing
20716
+ * selected is an operator who has not narrowed anything, and an empty
20717
+ * timeline would read as a camera that saw nothing.
20718
+ */
20719
+ classes: array(string()).optional()
20693
20720
  }), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(object({ deviceId: number() }), _void(), {
20694
20721
  kind: "mutation",
20695
20722
  auth: "admin"
@@ -24458,8 +24485,22 @@ var automationControlCapability = {
24458
24485
  * threshold.
24459
24486
  */
24460
24487
  var BatteryStatusSchema = object({
24461
- /** 0..100 inclusive. Firmware-reported. */
24462
- percentage: number().min(0).max(100),
24488
+ /**
24489
+ * 0..100 inclusive, firmware-reported. **`null` means NOT YET KNOWN** — the
24490
+ * provider has registered the capability but no reading has landed.
24491
+ *
24492
+ * It is nullable because it was not, and the only value a provider could
24493
+ * seed with was `0`. A battery camera behind an NVR therefore announced
24494
+ * itself at 0% on every start and corrected itself a moment later, which is
24495
+ * indistinguishable from a real flat battery: it fires the low-battery alert
24496
+ * every time the hub restarts. Unknown is not empty (D315), and on a battery
24497
+ * reading the difference is an alarm.
24498
+ *
24499
+ * `vacuum-control` and `lawn-mower-control` already model it this way.
24500
+ * Consumers must SKIP a null rather than coerce it — `battery-band` already
24501
+ * declines to band a non-finite reading, which is the correct shape.
24502
+ */
24503
+ percentage: number().min(0).max(100).nullable(),
24463
24504
  /**
24464
24505
  * Charging source. `'dc'` covers wall/USB adapters; `'solar'` is
24465
24506
  * Reolink-specific for the Solar Panel 2 accessory (will become
package/dist/addon.mjs CHANGED
@@ -20301,7 +20301,20 @@ var RecentTracksQueryInput = object({
20301
20301
  projection: TrackProjectionSchema.optional(),
20302
20302
  /** Include stationary-promoted rows (parked objects). Default false: the
20303
20303
  * feed lists passages; parking records live on the stationary registry. */
20304
- includeStationary: boolean().optional()
20304
+ includeStationary: boolean().optional(),
20305
+ /**
20306
+ * Restrict to these track classes. ABSENT or EMPTY means no filter.
20307
+ *
20308
+ * The same filter `listTracks` takes, because the timeline's class chips must
20309
+ * mean the same thing whether the scope is one camera or twelve. Until this
20310
+ * existed the scoped feed downloaded a page and narrowed it on the phone
20311
+ * while the single-camera path narrowed the read — one filter, two costs.
20312
+ *
20313
+ * A SUPERSET prefilter on `classes[]`, like its single-camera twin: rows
20314
+ * whose class list is unreadable are kept, and the client's rule stays the
20315
+ * exact one.
20316
+ */
20317
+ classes: array(string()).optional()
20305
20318
  });
20306
20319
  var RecentTracksPageSchema = object({
20307
20320
  /** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
@@ -20688,7 +20701,21 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
20688
20701
  /** Include stationary-promoted rows (parked objects handed to the
20689
20702
  * stationary registry). Default false: the timeline lists passages,
20690
20703
  * not parking records (operator decision, 2026-08-15). */
20691
- includeStationary: boolean().optional()
20704
+ includeStationary: boolean().optional(),
20705
+ /**
20706
+ * Restrict to these track classes. ABSENT or EMPTY means no filter.
20707
+ *
20708
+ * Added 2026-09-03: the timeline's class chips filtered in the CLIENT,
20709
+ * on a day of rows already downloaded. The zone filter had been moved
20710
+ * here for exactly that reason — and it is also what lets the rows come
20711
+ * back `slim` — but the class filter was left behind, so a narrow
20712
+ * selection was still a wide read followed by a wide discard.
20713
+ *
20714
+ * Empty is "show all", not "nothing matches": a chip row with nothing
20715
+ * selected is an operator who has not narrowed anything, and an empty
20716
+ * timeline would read as a camera that saw nothing.
20717
+ */
20718
+ classes: array(string()).optional()
20692
20719
  }), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(object({ deviceId: number() }), _void(), {
20693
20720
  kind: "mutation",
20694
20721
  auth: "admin"
@@ -24457,8 +24484,22 @@ var automationControlCapability = {
24457
24484
  * threshold.
24458
24485
  */
24459
24486
  var BatteryStatusSchema = object({
24460
- /** 0..100 inclusive. Firmware-reported. */
24461
- percentage: number().min(0).max(100),
24487
+ /**
24488
+ * 0..100 inclusive, firmware-reported. **`null` means NOT YET KNOWN** — the
24489
+ * provider has registered the capability but no reading has landed.
24490
+ *
24491
+ * It is nullable because it was not, and the only value a provider could
24492
+ * seed with was `0`. A battery camera behind an NVR therefore announced
24493
+ * itself at 0% on every start and corrected itself a moment later, which is
24494
+ * indistinguishable from a real flat battery: it fires the low-battery alert
24495
+ * every time the hub restarts. Unknown is not empty (D315), and on a battery
24496
+ * reading the difference is an alarm.
24497
+ *
24498
+ * `vacuum-control` and `lawn-mower-control` already model it this way.
24499
+ * Consumers must SKIP a null rather than coerce it — `battery-band` already
24500
+ * declines to band a non-finite reading, which is the correct shape.
24501
+ */
24502
+ percentage: number().min(0).max(100).nullable(),
24462
24503
  /**
24463
24504
  * Charging source. `'dc'` covers wall/USB adapters; `'solar'` is
24464
24505
  * 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-petkit",
3
- "version": "0.2.56",
3
+ "version": "0.2.58",
4
4
  "description": "PetKit smart-feeder device-provider addon for CamStack — wraps the @apocaliss92/nodepetkit PetKit cloud client",
5
5
  "keywords": [
6
6
  "camstack",