@camstack/addon-smtp-nodemailer 1.2.56 → 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.
@@ -18862,7 +18862,20 @@ var RecentTracksQueryInput = object({
18862
18862
  projection: TrackProjectionSchema.optional(),
18863
18863
  /** Include stationary-promoted rows (parked objects). Default false: the
18864
18864
  * feed lists passages; parking records live on the stationary registry. */
18865
- includeStationary: boolean().optional()
18865
+ includeStationary: boolean().optional(),
18866
+ /**
18867
+ * Restrict to these track classes. ABSENT or EMPTY means no filter.
18868
+ *
18869
+ * The same filter `listTracks` takes, because the timeline's class chips must
18870
+ * mean the same thing whether the scope is one camera or twelve. Until this
18871
+ * existed the scoped feed downloaded a page and narrowed it on the phone
18872
+ * while the single-camera path narrowed the read — one filter, two costs.
18873
+ *
18874
+ * A SUPERSET prefilter on `classes[]`, like its single-camera twin: rows
18875
+ * whose class list is unreadable are kept, and the client's rule stays the
18876
+ * exact one.
18877
+ */
18878
+ classes: array(string()).optional()
18866
18879
  });
18867
18880
  var RecentTracksPageSchema = object({
18868
18881
  /** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
@@ -22913,8 +22926,22 @@ DeviceType.Automation, method(object({ deviceId: number().int().nonnegative() })
22913
22926
  * threshold.
22914
22927
  */
22915
22928
  var BatteryStatusSchema = object({
22916
- /** 0..100 inclusive. Firmware-reported. */
22917
- percentage: number().min(0).max(100),
22929
+ /**
22930
+ * 0..100 inclusive, firmware-reported. **`null` means NOT YET KNOWN** — the
22931
+ * provider has registered the capability but no reading has landed.
22932
+ *
22933
+ * It is nullable because it was not, and the only value a provider could
22934
+ * seed with was `0`. A battery camera behind an NVR therefore announced
22935
+ * itself at 0% on every start and corrected itself a moment later, which is
22936
+ * indistinguishable from a real flat battery: it fires the low-battery alert
22937
+ * every time the hub restarts. Unknown is not empty (D315), and on a battery
22938
+ * reading the difference is an alarm.
22939
+ *
22940
+ * `vacuum-control` and `lawn-mower-control` already model it this way.
22941
+ * Consumers must SKIP a null rather than coerce it — `battery-band` already
22942
+ * declines to band a non-finite reading, which is the correct shape.
22943
+ */
22944
+ percentage: number().min(0).max(100).nullable(),
22918
22945
  /**
22919
22946
  * Charging source. `'dc'` covers wall/USB adapters; `'solar'` is
22920
22947
  * Reolink-specific for the Solar Panel 2 accessory (will become
@@ -18860,7 +18860,20 @@ var RecentTracksQueryInput = object({
18860
18860
  projection: TrackProjectionSchema.optional(),
18861
18861
  /** Include stationary-promoted rows (parked objects). Default false: the
18862
18862
  * feed lists passages; parking records live on the stationary registry. */
18863
- includeStationary: boolean().optional()
18863
+ includeStationary: boolean().optional(),
18864
+ /**
18865
+ * Restrict to these track classes. ABSENT or EMPTY means no filter.
18866
+ *
18867
+ * The same filter `listTracks` takes, because the timeline's class chips must
18868
+ * mean the same thing whether the scope is one camera or twelve. Until this
18869
+ * existed the scoped feed downloaded a page and narrowed it on the phone
18870
+ * while the single-camera path narrowed the read — one filter, two costs.
18871
+ *
18872
+ * A SUPERSET prefilter on `classes[]`, like its single-camera twin: rows
18873
+ * whose class list is unreadable are kept, and the client's rule stays the
18874
+ * exact one.
18875
+ */
18876
+ classes: array(string()).optional()
18864
18877
  });
18865
18878
  var RecentTracksPageSchema = object({
18866
18879
  /** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
@@ -22911,8 +22924,22 @@ DeviceType.Automation, method(object({ deviceId: number().int().nonnegative() })
22911
22924
  * threshold.
22912
22925
  */
22913
22926
  var BatteryStatusSchema = object({
22914
- /** 0..100 inclusive. Firmware-reported. */
22915
- percentage: number().min(0).max(100),
22927
+ /**
22928
+ * 0..100 inclusive, firmware-reported. **`null` means NOT YET KNOWN** — the
22929
+ * provider has registered the capability but no reading has landed.
22930
+ *
22931
+ * It is nullable because it was not, and the only value a provider could
22932
+ * seed with was `0`. A battery camera behind an NVR therefore announced
22933
+ * itself at 0% on every start and corrected itself a moment later, which is
22934
+ * indistinguishable from a real flat battery: it fires the low-battery alert
22935
+ * every time the hub restarts. Unknown is not empty (D315), and on a battery
22936
+ * reading the difference is an alarm.
22937
+ *
22938
+ * `vacuum-control` and `lawn-mower-control` already model it this way.
22939
+ * Consumers must SKIP a null rather than coerce it — `battery-band` already
22940
+ * declines to band a non-finite reading, which is the correct shape.
22941
+ */
22942
+ percentage: number().min(0).max(100).nullable(),
22916
22943
  /**
22917
22944
  * Charging source. `'dc'` covers wall/USB adapters; `'solar'` is
22918
22945
  * 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-smtp-nodemailer",
3
- "version": "1.2.56",
3
+ "version": "1.2.57",
4
4
  "description": "SMTP email provider addon for CamStack — wraps `nodemailer` and registers a `smtp-provider` cap collection entry. Used by magic-link login + notifier addons.",
5
5
  "keywords": [
6
6
  "camstack",