@camstack/addon-provider-onvif 1.2.55 → 1.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
@@ -18895,7 +18895,20 @@ var RecentTracksQueryInput = object({
18895
18895
  projection: TrackProjectionSchema.optional(),
18896
18896
  /** Include stationary-promoted rows (parked objects). Default false: the
18897
18897
  * feed lists passages; parking records live on the stationary registry. */
18898
- includeStationary: boolean().optional()
18898
+ includeStationary: boolean().optional(),
18899
+ /**
18900
+ * Restrict to these track classes. ABSENT or EMPTY means no filter.
18901
+ *
18902
+ * The same filter `listTracks` takes, because the timeline's class chips must
18903
+ * mean the same thing whether the scope is one camera or twelve. Until this
18904
+ * existed the scoped feed downloaded a page and narrowed it on the phone
18905
+ * while the single-camera path narrowed the read — one filter, two costs.
18906
+ *
18907
+ * A SUPERSET prefilter on `classes[]`, like its single-camera twin: rows
18908
+ * whose class list is unreadable are kept, and the client's rule stays the
18909
+ * exact one.
18910
+ */
18911
+ classes: array(string()).optional()
18899
18912
  });
18900
18913
  var RecentTracksPageSchema = object({
18901
18914
  /** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
@@ -19282,7 +19295,21 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
19282
19295
  /** Include stationary-promoted rows (parked objects handed to the
19283
19296
  * stationary registry). Default false: the timeline lists passages,
19284
19297
  * not parking records (operator decision, 2026-08-15). */
19285
- includeStationary: boolean().optional()
19298
+ includeStationary: boolean().optional(),
19299
+ /**
19300
+ * Restrict to these track classes. ABSENT or EMPTY means no filter.
19301
+ *
19302
+ * Added 2026-09-03: the timeline's class chips filtered in the CLIENT,
19303
+ * on a day of rows already downloaded. The zone filter had been moved
19304
+ * here for exactly that reason — and it is also what lets the rows come
19305
+ * back `slim` — but the class filter was left behind, so a narrow
19306
+ * selection was still a wide read followed by a wide discard.
19307
+ *
19308
+ * Empty is "show all", not "nothing matches": a chip row with nothing
19309
+ * selected is an operator who has not narrowed anything, and an empty
19310
+ * timeline would read as a camera that saw nothing.
19311
+ */
19312
+ classes: array(string()).optional()
19286
19313
  }), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(object({ deviceId: number() }), _void(), {
19287
19314
  kind: "mutation",
19288
19315
  auth: "admin"
@@ -23023,8 +23050,22 @@ DeviceType.Automation, method(object({ deviceId: number().int().nonnegative() })
23023
23050
  * threshold.
23024
23051
  */
23025
23052
  var BatteryStatusSchema = object({
23026
- /** 0..100 inclusive. Firmware-reported. */
23027
- percentage: number().min(0).max(100),
23053
+ /**
23054
+ * 0..100 inclusive, firmware-reported. **`null` means NOT YET KNOWN** — the
23055
+ * provider has registered the capability but no reading has landed.
23056
+ *
23057
+ * It is nullable because it was not, and the only value a provider could
23058
+ * seed with was `0`. A battery camera behind an NVR therefore announced
23059
+ * itself at 0% on every start and corrected itself a moment later, which is
23060
+ * indistinguishable from a real flat battery: it fires the low-battery alert
23061
+ * every time the hub restarts. Unknown is not empty (D315), and on a battery
23062
+ * reading the difference is an alarm.
23063
+ *
23064
+ * `vacuum-control` and `lawn-mower-control` already model it this way.
23065
+ * Consumers must SKIP a null rather than coerce it — `battery-band` already
23066
+ * declines to band a non-finite reading, which is the correct shape.
23067
+ */
23068
+ percentage: number().min(0).max(100).nullable(),
23028
23069
  /**
23029
23070
  * Charging source. `'dc'` covers wall/USB adapters; `'solar'` is
23030
23071
  * Reolink-specific for the Solar Panel 2 accessory (will become
package/dist/addon.mjs CHANGED
@@ -18896,7 +18896,20 @@ var RecentTracksQueryInput = object({
18896
18896
  projection: TrackProjectionSchema.optional(),
18897
18897
  /** Include stationary-promoted rows (parked objects). Default false: the
18898
18898
  * feed lists passages; parking records live on the stationary registry. */
18899
- includeStationary: boolean().optional()
18899
+ includeStationary: boolean().optional(),
18900
+ /**
18901
+ * Restrict to these track classes. ABSENT or EMPTY means no filter.
18902
+ *
18903
+ * The same filter `listTracks` takes, because the timeline's class chips must
18904
+ * mean the same thing whether the scope is one camera or twelve. Until this
18905
+ * existed the scoped feed downloaded a page and narrowed it on the phone
18906
+ * while the single-camera path narrowed the read — one filter, two costs.
18907
+ *
18908
+ * A SUPERSET prefilter on `classes[]`, like its single-camera twin: rows
18909
+ * whose class list is unreadable are kept, and the client's rule stays the
18910
+ * exact one.
18911
+ */
18912
+ classes: array(string()).optional()
18900
18913
  });
18901
18914
  var RecentTracksPageSchema = object({
18902
18915
  /** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
@@ -19283,7 +19296,21 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
19283
19296
  /** Include stationary-promoted rows (parked objects handed to the
19284
19297
  * stationary registry). Default false: the timeline lists passages,
19285
19298
  * not parking records (operator decision, 2026-08-15). */
19286
- includeStationary: boolean().optional()
19299
+ includeStationary: boolean().optional(),
19300
+ /**
19301
+ * Restrict to these track classes. ABSENT or EMPTY means no filter.
19302
+ *
19303
+ * Added 2026-09-03: the timeline's class chips filtered in the CLIENT,
19304
+ * on a day of rows already downloaded. The zone filter had been moved
19305
+ * here for exactly that reason — and it is also what lets the rows come
19306
+ * back `slim` — but the class filter was left behind, so a narrow
19307
+ * selection was still a wide read followed by a wide discard.
19308
+ *
19309
+ * Empty is "show all", not "nothing matches": a chip row with nothing
19310
+ * selected is an operator who has not narrowed anything, and an empty
19311
+ * timeline would read as a camera that saw nothing.
19312
+ */
19313
+ classes: array(string()).optional()
19287
19314
  }), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(object({ deviceId: number() }), _void(), {
19288
19315
  kind: "mutation",
19289
19316
  auth: "admin"
@@ -23024,8 +23051,22 @@ DeviceType.Automation, method(object({ deviceId: number().int().nonnegative() })
23024
23051
  * threshold.
23025
23052
  */
23026
23053
  var BatteryStatusSchema = object({
23027
- /** 0..100 inclusive. Firmware-reported. */
23028
- percentage: number().min(0).max(100),
23054
+ /**
23055
+ * 0..100 inclusive, firmware-reported. **`null` means NOT YET KNOWN** — the
23056
+ * provider has registered the capability but no reading has landed.
23057
+ *
23058
+ * It is nullable because it was not, and the only value a provider could
23059
+ * seed with was `0`. A battery camera behind an NVR therefore announced
23060
+ * itself at 0% on every start and corrected itself a moment later, which is
23061
+ * indistinguishable from a real flat battery: it fires the low-battery alert
23062
+ * every time the hub restarts. Unknown is not empty (D315), and on a battery
23063
+ * reading the difference is an alarm.
23064
+ *
23065
+ * `vacuum-control` and `lawn-mower-control` already model it this way.
23066
+ * Consumers must SKIP a null rather than coerce it — `battery-band` already
23067
+ * declines to band a non-finite reading, which is the correct shape.
23068
+ */
23069
+ percentage: number().min(0).max(100).nullable(),
23029
23070
  /**
23030
23071
  * Charging source. `'dc'` covers wall/USB adapters; `'solar'` is
23031
23072
  * 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-onvif",
3
- "version": "1.2.55",
3
+ "version": "1.2.57",
4
4
  "description": "ONVIF camera device provider addon for CamStack",
5
5
  "keywords": [
6
6
  "camstack",