@camstack/addon-export-google 0.1.20 → 0.1.22

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.
@@ -19123,7 +19123,20 @@ var RecentTracksQueryInput = object({
19123
19123
  projection: TrackProjectionSchema.optional(),
19124
19124
  /** Include stationary-promoted rows (parked objects). Default false: the
19125
19125
  * feed lists passages; parking records live on the stationary registry. */
19126
- includeStationary: boolean().optional()
19126
+ includeStationary: boolean().optional(),
19127
+ /**
19128
+ * Restrict to these track classes. ABSENT or EMPTY means no filter.
19129
+ *
19130
+ * The same filter `listTracks` takes, because the timeline's class chips must
19131
+ * mean the same thing whether the scope is one camera or twelve. Until this
19132
+ * existed the scoped feed downloaded a page and narrowed it on the phone
19133
+ * while the single-camera path narrowed the read — one filter, two costs.
19134
+ *
19135
+ * A SUPERSET prefilter on `classes[]`, like its single-camera twin: rows
19136
+ * whose class list is unreadable are kept, and the client's rule stays the
19137
+ * exact one.
19138
+ */
19139
+ classes: array(string()).optional()
19127
19140
  });
19128
19141
  var RecentTracksPageSchema = object({
19129
19142
  /** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
@@ -19510,7 +19523,21 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
19510
19523
  /** Include stationary-promoted rows (parked objects handed to the
19511
19524
  * stationary registry). Default false: the timeline lists passages,
19512
19525
  * not parking records (operator decision, 2026-08-15). */
19513
- includeStationary: boolean().optional()
19526
+ includeStationary: boolean().optional(),
19527
+ /**
19528
+ * Restrict to these track classes. ABSENT or EMPTY means no filter.
19529
+ *
19530
+ * Added 2026-09-03: the timeline's class chips filtered in the CLIENT,
19531
+ * on a day of rows already downloaded. The zone filter had been moved
19532
+ * here for exactly that reason — and it is also what lets the rows come
19533
+ * back `slim` — but the class filter was left behind, so a narrow
19534
+ * selection was still a wide read followed by a wide discard.
19535
+ *
19536
+ * Empty is "show all", not "nothing matches": a chip row with nothing
19537
+ * selected is an operator who has not narrowed anything, and an empty
19538
+ * timeline would read as a camera that saw nothing.
19539
+ */
19540
+ classes: array(string()).optional()
19514
19541
  }), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(object({ deviceId: number() }), _void(), {
19515
19542
  kind: "mutation",
19516
19543
  auth: "admin"
@@ -23147,8 +23174,22 @@ DeviceType.Automation, method(object({ deviceId: number().int().nonnegative() })
23147
23174
  * threshold.
23148
23175
  */
23149
23176
  var BatteryStatusSchema = object({
23150
- /** 0..100 inclusive. Firmware-reported. */
23151
- percentage: number().min(0).max(100),
23177
+ /**
23178
+ * 0..100 inclusive, firmware-reported. **`null` means NOT YET KNOWN** — the
23179
+ * provider has registered the capability but no reading has landed.
23180
+ *
23181
+ * It is nullable because it was not, and the only value a provider could
23182
+ * seed with was `0`. A battery camera behind an NVR therefore announced
23183
+ * itself at 0% on every start and corrected itself a moment later, which is
23184
+ * indistinguishable from a real flat battery: it fires the low-battery alert
23185
+ * every time the hub restarts. Unknown is not empty (D315), and on a battery
23186
+ * reading the difference is an alarm.
23187
+ *
23188
+ * `vacuum-control` and `lawn-mower-control` already model it this way.
23189
+ * Consumers must SKIP a null rather than coerce it — `battery-band` already
23190
+ * declines to band a non-finite reading, which is the correct shape.
23191
+ */
23192
+ percentage: number().min(0).max(100).nullable(),
23152
23193
  /**
23153
23194
  * Charging source. `'dc'` covers wall/USB adapters; `'solar'` is
23154
23195
  * Reolink-specific for the Solar Panel 2 accessory (will become
@@ -19119,7 +19119,20 @@ var RecentTracksQueryInput = object({
19119
19119
  projection: TrackProjectionSchema.optional(),
19120
19120
  /** Include stationary-promoted rows (parked objects). Default false: the
19121
19121
  * feed lists passages; parking records live on the stationary registry. */
19122
- includeStationary: boolean().optional()
19122
+ includeStationary: boolean().optional(),
19123
+ /**
19124
+ * Restrict to these track classes. ABSENT or EMPTY means no filter.
19125
+ *
19126
+ * The same filter `listTracks` takes, because the timeline's class chips must
19127
+ * mean the same thing whether the scope is one camera or twelve. Until this
19128
+ * existed the scoped feed downloaded a page and narrowed it on the phone
19129
+ * while the single-camera path narrowed the read — one filter, two costs.
19130
+ *
19131
+ * A SUPERSET prefilter on `classes[]`, like its single-camera twin: rows
19132
+ * whose class list is unreadable are kept, and the client's rule stays the
19133
+ * exact one.
19134
+ */
19135
+ classes: array(string()).optional()
19123
19136
  });
19124
19137
  var RecentTracksPageSchema = object({
19125
19138
  /** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
@@ -19506,7 +19519,21 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
19506
19519
  /** Include stationary-promoted rows (parked objects handed to the
19507
19520
  * stationary registry). Default false: the timeline lists passages,
19508
19521
  * not parking records (operator decision, 2026-08-15). */
19509
- includeStationary: boolean().optional()
19522
+ includeStationary: boolean().optional(),
19523
+ /**
19524
+ * Restrict to these track classes. ABSENT or EMPTY means no filter.
19525
+ *
19526
+ * Added 2026-09-03: the timeline's class chips filtered in the CLIENT,
19527
+ * on a day of rows already downloaded. The zone filter had been moved
19528
+ * here for exactly that reason — and it is also what lets the rows come
19529
+ * back `slim` — but the class filter was left behind, so a narrow
19530
+ * selection was still a wide read followed by a wide discard.
19531
+ *
19532
+ * Empty is "show all", not "nothing matches": a chip row with nothing
19533
+ * selected is an operator who has not narrowed anything, and an empty
19534
+ * timeline would read as a camera that saw nothing.
19535
+ */
19536
+ classes: array(string()).optional()
19510
19537
  }), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(object({ deviceId: number() }), _void(), {
19511
19538
  kind: "mutation",
19512
19539
  auth: "admin"
@@ -23143,8 +23170,22 @@ DeviceType.Automation, method(object({ deviceId: number().int().nonnegative() })
23143
23170
  * threshold.
23144
23171
  */
23145
23172
  var BatteryStatusSchema = object({
23146
- /** 0..100 inclusive. Firmware-reported. */
23147
- percentage: number().min(0).max(100),
23173
+ /**
23174
+ * 0..100 inclusive, firmware-reported. **`null` means NOT YET KNOWN** — the
23175
+ * provider has registered the capability but no reading has landed.
23176
+ *
23177
+ * It is nullable because it was not, and the only value a provider could
23178
+ * seed with was `0`. A battery camera behind an NVR therefore announced
23179
+ * itself at 0% on every start and corrected itself a moment later, which is
23180
+ * indistinguishable from a real flat battery: it fires the low-battery alert
23181
+ * every time the hub restarts. Unknown is not empty (D315), and on a battery
23182
+ * reading the difference is an alarm.
23183
+ *
23184
+ * `vacuum-control` and `lawn-mower-control` already model it this way.
23185
+ * Consumers must SKIP a null rather than coerce it — `battery-band` already
23186
+ * declines to band a non-finite reading, which is the correct shape.
23187
+ */
23188
+ percentage: number().min(0).max(100).nullable(),
23148
23189
  /**
23149
23190
  * Charging source. `'dc'` covers wall/USB adapters; `'solar'` is
23150
23191
  * 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-export-google",
3
- "version": "0.1.20",
3
+ "version": "0.1.22",
4
4
  "description": "Google Home export — hub-side smart-home fulfillment (SYNC / QUERY / EXECUTE / DISCONNECT) for the non-camera fleet, served over the hub's own OAuth account link. No Google credential is stored, sent or required.",
5
5
  "keywords": [
6
6
  "camstack",