@camstack/addon-remote-storage 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/s3.addon.js CHANGED
@@ -2,7 +2,7 @@ Object.defineProperties(exports, {
2
2
  __esModule: { value: true },
3
3
  [Symbol.toStringTag]: { value: "Module" }
4
4
  });
5
- const require_shared = require("./shared-0jYjizzs.js");
5
+ const require_shared = require("./shared-wn3VaEXo.js");
6
6
  let node_stream = require("node:stream");
7
7
  let _aws_sdk_client_s3 = require("@aws-sdk/client-s3");
8
8
  let _aws_sdk_lib_storage = require("@aws-sdk/lib-storage");
package/dist/s3.addon.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { c as BaseAddon, i as rearmIdleAbort, n as getOptionalBasePath, o as scheduleIdleAbort, s as storageProviderCapability, t as createSessionId } from "./shared-BpCkqZUj.mjs";
1
+ import { c as BaseAddon, i as rearmIdleAbort, n as getOptionalBasePath, o as scheduleIdleAbort, s as storageProviderCapability, t as createSessionId } from "./shared-SaMdZBGZ.mjs";
2
2
  import { PassThrough } from "node:stream";
3
3
  import { DeleteObjectCommand, GetObjectCommand, HeadBucketCommand, HeadObjectCommand, ListObjectsV2Command, PutObjectCommand, S3Client } from "@aws-sdk/client-s3";
4
4
  import { Upload } from "@aws-sdk/lib-storage";
@@ -2,7 +2,7 @@ Object.defineProperties(exports, {
2
2
  __esModule: { value: true },
3
3
  [Symbol.toStringTag]: { value: "Module" }
4
4
  });
5
- const require_shared = require("./shared-0jYjizzs.js");
5
+ const require_shared = require("./shared-wn3VaEXo.js");
6
6
  let ssh2 = require("ssh2");
7
7
  let node_path = require("node:path");
8
8
  node_path = require_shared.__toESM(node_path);
@@ -1,4 +1,4 @@
1
- import { a as safeJoinRemotePath, c as BaseAddon, i as rearmIdleAbort, o as scheduleIdleAbort, r as getRequiredBasePath, s as storageProviderCapability, t as createSessionId } from "./shared-BpCkqZUj.mjs";
1
+ import { a as safeJoinRemotePath, c as BaseAddon, i as rearmIdleAbort, o as scheduleIdleAbort, r as getRequiredBasePath, s as storageProviderCapability, t as createSessionId } from "./shared-SaMdZBGZ.mjs";
2
2
  import { Client } from "ssh2";
3
3
  import * as path from "node:path";
4
4
  //#region src/providers/sftp/sftp-config-schema.ts
@@ -18826,7 +18826,20 @@ var RecentTracksQueryInput = object({
18826
18826
  projection: TrackProjectionSchema.optional(),
18827
18827
  /** Include stationary-promoted rows (parked objects). Default false: the
18828
18828
  * feed lists passages; parking records live on the stationary registry. */
18829
- includeStationary: boolean().optional()
18829
+ includeStationary: boolean().optional(),
18830
+ /**
18831
+ * Restrict to these track classes. ABSENT or EMPTY means no filter.
18832
+ *
18833
+ * The same filter `listTracks` takes, because the timeline's class chips must
18834
+ * mean the same thing whether the scope is one camera or twelve. Until this
18835
+ * existed the scoped feed downloaded a page and narrowed it on the phone
18836
+ * while the single-camera path narrowed the read — one filter, two costs.
18837
+ *
18838
+ * A SUPERSET prefilter on `classes[]`, like its single-camera twin: rows
18839
+ * whose class list is unreadable are kept, and the client's rule stays the
18840
+ * exact one.
18841
+ */
18842
+ classes: array(string()).optional()
18830
18843
  });
18831
18844
  var RecentTracksPageSchema = object({
18832
18845
  /** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
@@ -19213,7 +19226,21 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
19213
19226
  /** Include stationary-promoted rows (parked objects handed to the
19214
19227
  * stationary registry). Default false: the timeline lists passages,
19215
19228
  * not parking records (operator decision, 2026-08-15). */
19216
- includeStationary: boolean().optional()
19229
+ includeStationary: boolean().optional(),
19230
+ /**
19231
+ * Restrict to these track classes. ABSENT or EMPTY means no filter.
19232
+ *
19233
+ * Added 2026-09-03: the timeline's class chips filtered in the CLIENT,
19234
+ * on a day of rows already downloaded. The zone filter had been moved
19235
+ * here for exactly that reason — and it is also what lets the rows come
19236
+ * back `slim` — but the class filter was left behind, so a narrow
19237
+ * selection was still a wide read followed by a wide discard.
19238
+ *
19239
+ * Empty is "show all", not "nothing matches": a chip row with nothing
19240
+ * selected is an operator who has not narrowed anything, and an empty
19241
+ * timeline would read as a camera that saw nothing.
19242
+ */
19243
+ classes: array(string()).optional()
19217
19244
  }), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(object({ deviceId: number() }), _void(), {
19218
19245
  kind: "mutation",
19219
19246
  auth: "admin"
@@ -22910,8 +22937,22 @@ DeviceType.Automation, method(object({ deviceId: number().int().nonnegative() })
22910
22937
  * threshold.
22911
22938
  */
22912
22939
  var BatteryStatusSchema = object({
22913
- /** 0..100 inclusive. Firmware-reported. */
22914
- percentage: number().min(0).max(100),
22940
+ /**
22941
+ * 0..100 inclusive, firmware-reported. **`null` means NOT YET KNOWN** — the
22942
+ * provider has registered the capability but no reading has landed.
22943
+ *
22944
+ * It is nullable because it was not, and the only value a provider could
22945
+ * seed with was `0`. A battery camera behind an NVR therefore announced
22946
+ * itself at 0% on every start and corrected itself a moment later, which is
22947
+ * indistinguishable from a real flat battery: it fires the low-battery alert
22948
+ * every time the hub restarts. Unknown is not empty (D315), and on a battery
22949
+ * reading the difference is an alarm.
22950
+ *
22951
+ * `vacuum-control` and `lawn-mower-control` already model it this way.
22952
+ * Consumers must SKIP a null rather than coerce it — `battery-band` already
22953
+ * declines to band a non-finite reading, which is the correct shape.
22954
+ */
22955
+ percentage: number().min(0).max(100).nullable(),
22915
22956
  /**
22916
22957
  * Charging source. `'dc'` covers wall/USB adapters; `'solar'` is
22917
22958
  * Reolink-specific for the Solar Panel 2 accessory (will become
@@ -18849,7 +18849,20 @@ var RecentTracksQueryInput = object({
18849
18849
  projection: TrackProjectionSchema.optional(),
18850
18850
  /** Include stationary-promoted rows (parked objects). Default false: the
18851
18851
  * feed lists passages; parking records live on the stationary registry. */
18852
- includeStationary: boolean().optional()
18852
+ includeStationary: boolean().optional(),
18853
+ /**
18854
+ * Restrict to these track classes. ABSENT or EMPTY means no filter.
18855
+ *
18856
+ * The same filter `listTracks` takes, because the timeline's class chips must
18857
+ * mean the same thing whether the scope is one camera or twelve. Until this
18858
+ * existed the scoped feed downloaded a page and narrowed it on the phone
18859
+ * while the single-camera path narrowed the read — one filter, two costs.
18860
+ *
18861
+ * A SUPERSET prefilter on `classes[]`, like its single-camera twin: rows
18862
+ * whose class list is unreadable are kept, and the client's rule stays the
18863
+ * exact one.
18864
+ */
18865
+ classes: array(string()).optional()
18853
18866
  });
18854
18867
  var RecentTracksPageSchema = object({
18855
18868
  /** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
@@ -19236,7 +19249,21 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
19236
19249
  /** Include stationary-promoted rows (parked objects handed to the
19237
19250
  * stationary registry). Default false: the timeline lists passages,
19238
19251
  * not parking records (operator decision, 2026-08-15). */
19239
- includeStationary: boolean().optional()
19252
+ includeStationary: boolean().optional(),
19253
+ /**
19254
+ * Restrict to these track classes. ABSENT or EMPTY means no filter.
19255
+ *
19256
+ * Added 2026-09-03: the timeline's class chips filtered in the CLIENT,
19257
+ * on a day of rows already downloaded. The zone filter had been moved
19258
+ * here for exactly that reason — and it is also what lets the rows come
19259
+ * back `slim` — but the class filter was left behind, so a narrow
19260
+ * selection was still a wide read followed by a wide discard.
19261
+ *
19262
+ * Empty is "show all", not "nothing matches": a chip row with nothing
19263
+ * selected is an operator who has not narrowed anything, and an empty
19264
+ * timeline would read as a camera that saw nothing.
19265
+ */
19266
+ classes: array(string()).optional()
19240
19267
  }), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(object({ deviceId: number() }), _void(), {
19241
19268
  kind: "mutation",
19242
19269
  auth: "admin"
@@ -22933,8 +22960,22 @@ DeviceType.Automation, method(object({ deviceId: number().int().nonnegative() })
22933
22960
  * threshold.
22934
22961
  */
22935
22962
  var BatteryStatusSchema = object({
22936
- /** 0..100 inclusive. Firmware-reported. */
22937
- percentage: number().min(0).max(100),
22963
+ /**
22964
+ * 0..100 inclusive, firmware-reported. **`null` means NOT YET KNOWN** — the
22965
+ * provider has registered the capability but no reading has landed.
22966
+ *
22967
+ * It is nullable because it was not, and the only value a provider could
22968
+ * seed with was `0`. A battery camera behind an NVR therefore announced
22969
+ * itself at 0% on every start and corrected itself a moment later, which is
22970
+ * indistinguishable from a real flat battery: it fires the low-battery alert
22971
+ * every time the hub restarts. Unknown is not empty (D315), and on a battery
22972
+ * reading the difference is an alarm.
22973
+ *
22974
+ * `vacuum-control` and `lawn-mower-control` already model it this way.
22975
+ * Consumers must SKIP a null rather than coerce it — `battery-band` already
22976
+ * declines to band a non-finite reading, which is the correct shape.
22977
+ */
22978
+ percentage: number().min(0).max(100).nullable(),
22938
22979
  /**
22939
22980
  * Charging source. `'dc'` covers wall/USB adapters; `'solar'` is
22940
22981
  * Reolink-specific for the Solar Panel 2 accessory (will become
package/dist/smb.addon.js CHANGED
@@ -2,7 +2,7 @@ Object.defineProperties(exports, {
2
2
  __esModule: { value: true },
3
3
  [Symbol.toStringTag]: { value: "Module" }
4
4
  });
5
- const require_shared = require("./shared-0jYjizzs.js");
5
+ const require_shared = require("./shared-wn3VaEXo.js");
6
6
  let node_crypto = require("node:crypto");
7
7
  let node_path = require("node:path");
8
8
  node_path = require_shared.__toESM(node_path);
@@ -1,4 +1,4 @@
1
- import { c as BaseAddon, i as rearmIdleAbort, o as scheduleIdleAbort, s as storageProviderCapability } from "./shared-BpCkqZUj.mjs";
1
+ import { c as BaseAddon, i as rearmIdleAbort, o as scheduleIdleAbort, s as storageProviderCapability } from "./shared-SaMdZBGZ.mjs";
2
2
  import { randomUUID } from "node:crypto";
3
3
  import * as path from "node:path";
4
4
  import * as fsp from "node:fs/promises";
@@ -2,7 +2,7 @@ Object.defineProperties(exports, {
2
2
  __esModule: { value: true },
3
3
  [Symbol.toStringTag]: { value: "Module" }
4
4
  });
5
- const require_shared = require("./shared-0jYjizzs.js");
5
+ const require_shared = require("./shared-wn3VaEXo.js");
6
6
  let node_stream = require("node:stream");
7
7
  let webdav = require("webdav");
8
8
  //#region src/providers/webdav/webdav-config-schema.ts
@@ -1,4 +1,4 @@
1
- import { a as safeJoinRemotePath, c as BaseAddon, i as rearmIdleAbort, o as scheduleIdleAbort, r as getRequiredBasePath, s as storageProviderCapability, t as createSessionId } from "./shared-BpCkqZUj.mjs";
1
+ import { a as safeJoinRemotePath, c as BaseAddon, i as rearmIdleAbort, o as scheduleIdleAbort, r as getRequiredBasePath, s as storageProviderCapability, t as createSessionId } from "./shared-SaMdZBGZ.mjs";
2
2
  import { PassThrough } from "node:stream";
3
3
  import { AuthType, createClient } from "webdav";
4
4
  //#region src/providers/webdav/webdav-config-schema.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-remote-storage",
3
- "version": "1.2.55",
3
+ "version": "1.2.57",
4
4
  "description": "Remote storage providers (SFTP, S3, WebDAV, SMB) — unifies remote backends behind the storage-provider cap",
5
5
  "keywords": [
6
6
  "camstack",