@camstack/addon-provider-unifi 0.2.57 → 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
@@ -19183,7 +19183,20 @@ var RecentTracksQueryInput = object({
19183
19183
  projection: TrackProjectionSchema.optional(),
19184
19184
  /** Include stationary-promoted rows (parked objects). Default false: the
19185
19185
  * feed lists passages; parking records live on the stationary registry. */
19186
- includeStationary: boolean().optional()
19186
+ includeStationary: boolean().optional(),
19187
+ /**
19188
+ * Restrict to these track classes. ABSENT or EMPTY means no filter.
19189
+ *
19190
+ * The same filter `listTracks` takes, because the timeline's class chips must
19191
+ * mean the same thing whether the scope is one camera or twelve. Until this
19192
+ * existed the scoped feed downloaded a page and narrowed it on the phone
19193
+ * while the single-camera path narrowed the read — one filter, two costs.
19194
+ *
19195
+ * A SUPERSET prefilter on `classes[]`, like its single-camera twin: rows
19196
+ * whose class list is unreadable are kept, and the client's rule stays the
19197
+ * exact one.
19198
+ */
19199
+ classes: array(string()).optional()
19187
19200
  });
19188
19201
  var RecentTracksPageSchema = object({
19189
19202
  /** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
@@ -23353,8 +23366,22 @@ var automationControlCapability = {
23353
23366
  * threshold.
23354
23367
  */
23355
23368
  var BatteryStatusSchema = object({
23356
- /** 0..100 inclusive. Firmware-reported. */
23357
- percentage: number().min(0).max(100),
23369
+ /**
23370
+ * 0..100 inclusive, firmware-reported. **`null` means NOT YET KNOWN** — the
23371
+ * provider has registered the capability but no reading has landed.
23372
+ *
23373
+ * It is nullable because it was not, and the only value a provider could
23374
+ * seed with was `0`. A battery camera behind an NVR therefore announced
23375
+ * itself at 0% on every start and corrected itself a moment later, which is
23376
+ * indistinguishable from a real flat battery: it fires the low-battery alert
23377
+ * every time the hub restarts. Unknown is not empty (D315), and on a battery
23378
+ * reading the difference is an alarm.
23379
+ *
23380
+ * `vacuum-control` and `lawn-mower-control` already model it this way.
23381
+ * Consumers must SKIP a null rather than coerce it — `battery-band` already
23382
+ * declines to band a non-finite reading, which is the correct shape.
23383
+ */
23384
+ percentage: number().min(0).max(100).nullable(),
23358
23385
  /**
23359
23386
  * Charging source. `'dc'` covers wall/USB adapters; `'solar'` is
23360
23387
  * Reolink-specific for the Solar Panel 2 accessory (will become
package/dist/addon.mjs CHANGED
@@ -19182,7 +19182,20 @@ var RecentTracksQueryInput = object({
19182
19182
  projection: TrackProjectionSchema.optional(),
19183
19183
  /** Include stationary-promoted rows (parked objects). Default false: the
19184
19184
  * feed lists passages; parking records live on the stationary registry. */
19185
- includeStationary: boolean().optional()
19185
+ includeStationary: boolean().optional(),
19186
+ /**
19187
+ * Restrict to these track classes. ABSENT or EMPTY means no filter.
19188
+ *
19189
+ * The same filter `listTracks` takes, because the timeline's class chips must
19190
+ * mean the same thing whether the scope is one camera or twelve. Until this
19191
+ * existed the scoped feed downloaded a page and narrowed it on the phone
19192
+ * while the single-camera path narrowed the read — one filter, two costs.
19193
+ *
19194
+ * A SUPERSET prefilter on `classes[]`, like its single-camera twin: rows
19195
+ * whose class list is unreadable are kept, and the client's rule stays the
19196
+ * exact one.
19197
+ */
19198
+ classes: array(string()).optional()
19186
19199
  });
19187
19200
  var RecentTracksPageSchema = object({
19188
19201
  /** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
@@ -23352,8 +23365,22 @@ var automationControlCapability = {
23352
23365
  * threshold.
23353
23366
  */
23354
23367
  var BatteryStatusSchema = object({
23355
- /** 0..100 inclusive. Firmware-reported. */
23356
- percentage: number().min(0).max(100),
23368
+ /**
23369
+ * 0..100 inclusive, firmware-reported. **`null` means NOT YET KNOWN** — the
23370
+ * provider has registered the capability but no reading has landed.
23371
+ *
23372
+ * It is nullable because it was not, and the only value a provider could
23373
+ * seed with was `0`. A battery camera behind an NVR therefore announced
23374
+ * itself at 0% on every start and corrected itself a moment later, which is
23375
+ * indistinguishable from a real flat battery: it fires the low-battery alert
23376
+ * every time the hub restarts. Unknown is not empty (D315), and on a battery
23377
+ * reading the difference is an alarm.
23378
+ *
23379
+ * `vacuum-control` and `lawn-mower-control` already model it this way.
23380
+ * Consumers must SKIP a null rather than coerce it — `battery-band` already
23381
+ * declines to band a non-finite reading, which is the correct shape.
23382
+ */
23383
+ percentage: number().min(0).max(100).nullable(),
23357
23384
  /**
23358
23385
  * Charging source. `'dc'` covers wall/USB adapters; `'solar'` is
23359
23386
  * 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-unifi",
3
- "version": "0.2.57",
3
+ "version": "0.2.58",
4
4
  "description": "UniFi Network controller device-provider addon for CamStack — local-controller infra switches/APs (as containers) + network-client presence. NO cameras/Protect.",
5
5
  "keywords": [
6
6
  "camstack",