@camstack/addon-export-google 0.1.21 → 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). */
@@ -23161,8 +23174,22 @@ DeviceType.Automation, method(object({ deviceId: number().int().nonnegative() })
23161
23174
  * threshold.
23162
23175
  */
23163
23176
  var BatteryStatusSchema = object({
23164
- /** 0..100 inclusive. Firmware-reported. */
23165
- 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(),
23166
23193
  /**
23167
23194
  * Charging source. `'dc'` covers wall/USB adapters; `'solar'` is
23168
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). */
@@ -23157,8 +23170,22 @@ DeviceType.Automation, method(object({ deviceId: number().int().nonnegative() })
23157
23170
  * threshold.
23158
23171
  */
23159
23172
  var BatteryStatusSchema = object({
23160
- /** 0..100 inclusive. Firmware-reported. */
23161
- 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(),
23162
23189
  /**
23163
23190
  * Charging source. `'dc'` covers wall/USB adapters; `'solar'` is
23164
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.21",
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",