@camstack/addon-auth 1.2.61 → 1.2.63

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.
@@ -19014,7 +19014,20 @@ var RecentTracksQueryInput = object({
19014
19014
  projection: TrackProjectionSchema.optional(),
19015
19015
  /** Include stationary-promoted rows (parked objects). Default false: the
19016
19016
  * feed lists passages; parking records live on the stationary registry. */
19017
- includeStationary: boolean().optional()
19017
+ includeStationary: boolean().optional(),
19018
+ /**
19019
+ * Restrict to these track classes. ABSENT or EMPTY means no filter.
19020
+ *
19021
+ * The same filter `listTracks` takes, because the timeline's class chips must
19022
+ * mean the same thing whether the scope is one camera or twelve. Until this
19023
+ * existed the scoped feed downloaded a page and narrowed it on the phone
19024
+ * while the single-camera path narrowed the read — one filter, two costs.
19025
+ *
19026
+ * A SUPERSET prefilter on `classes[]`, like its single-camera twin: rows
19027
+ * whose class list is unreadable are kept, and the client's rule stays the
19028
+ * exact one.
19029
+ */
19030
+ classes: array(string()).optional()
19018
19031
  });
19019
19032
  var RecentTracksPageSchema = object({
19020
19033
  /** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
@@ -19401,7 +19414,21 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
19401
19414
  /** Include stationary-promoted rows (parked objects handed to the
19402
19415
  * stationary registry). Default false: the timeline lists passages,
19403
19416
  * not parking records (operator decision, 2026-08-15). */
19404
- includeStationary: boolean().optional()
19417
+ includeStationary: boolean().optional(),
19418
+ /**
19419
+ * Restrict to these track classes. ABSENT or EMPTY means no filter.
19420
+ *
19421
+ * Added 2026-09-03: the timeline's class chips filtered in the CLIENT,
19422
+ * on a day of rows already downloaded. The zone filter had been moved
19423
+ * here for exactly that reason — and it is also what lets the rows come
19424
+ * back `slim` — but the class filter was left behind, so a narrow
19425
+ * selection was still a wide read followed by a wide discard.
19426
+ *
19427
+ * Empty is "show all", not "nothing matches": a chip row with nothing
19428
+ * selected is an operator who has not narrowed anything, and an empty
19429
+ * timeline would read as a camera that saw nothing.
19430
+ */
19431
+ classes: array(string()).optional()
19405
19432
  }), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(object({ deviceId: number() }), _void(), {
19406
19433
  kind: "mutation",
19407
19434
  auth: "admin"
@@ -23073,8 +23100,22 @@ DeviceType.Automation, method(object({ deviceId: number().int().nonnegative() })
23073
23100
  * threshold.
23074
23101
  */
23075
23102
  var BatteryStatusSchema = object({
23076
- /** 0..100 inclusive. Firmware-reported. */
23077
- percentage: number().min(0).max(100),
23103
+ /**
23104
+ * 0..100 inclusive, firmware-reported. **`null` means NOT YET KNOWN** — the
23105
+ * provider has registered the capability but no reading has landed.
23106
+ *
23107
+ * It is nullable because it was not, and the only value a provider could
23108
+ * seed with was `0`. A battery camera behind an NVR therefore announced
23109
+ * itself at 0% on every start and corrected itself a moment later, which is
23110
+ * indistinguishable from a real flat battery: it fires the low-battery alert
23111
+ * every time the hub restarts. Unknown is not empty (D315), and on a battery
23112
+ * reading the difference is an alarm.
23113
+ *
23114
+ * `vacuum-control` and `lawn-mower-control` already model it this way.
23115
+ * Consumers must SKIP a null rather than coerce it — `battery-band` already
23116
+ * declines to band a non-finite reading, which is the correct shape.
23117
+ */
23118
+ percentage: number().min(0).max(100).nullable(),
23078
23119
  /**
23079
23120
  * Charging source. `'dc'` covers wall/USB adapters; `'solar'` is
23080
23121
  * Reolink-specific for the Solar Panel 2 accessory (will become
@@ -19014,7 +19014,20 @@ var RecentTracksQueryInput = object({
19014
19014
  projection: TrackProjectionSchema.optional(),
19015
19015
  /** Include stationary-promoted rows (parked objects). Default false: the
19016
19016
  * feed lists passages; parking records live on the stationary registry. */
19017
- includeStationary: boolean().optional()
19017
+ includeStationary: boolean().optional(),
19018
+ /**
19019
+ * Restrict to these track classes. ABSENT or EMPTY means no filter.
19020
+ *
19021
+ * The same filter `listTracks` takes, because the timeline's class chips must
19022
+ * mean the same thing whether the scope is one camera or twelve. Until this
19023
+ * existed the scoped feed downloaded a page and narrowed it on the phone
19024
+ * while the single-camera path narrowed the read — one filter, two costs.
19025
+ *
19026
+ * A SUPERSET prefilter on `classes[]`, like its single-camera twin: rows
19027
+ * whose class list is unreadable are kept, and the client's rule stays the
19028
+ * exact one.
19029
+ */
19030
+ classes: array(string()).optional()
19018
19031
  });
19019
19032
  var RecentTracksPageSchema = object({
19020
19033
  /** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
@@ -19401,7 +19414,21 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
19401
19414
  /** Include stationary-promoted rows (parked objects handed to the
19402
19415
  * stationary registry). Default false: the timeline lists passages,
19403
19416
  * not parking records (operator decision, 2026-08-15). */
19404
- includeStationary: boolean().optional()
19417
+ includeStationary: boolean().optional(),
19418
+ /**
19419
+ * Restrict to these track classes. ABSENT or EMPTY means no filter.
19420
+ *
19421
+ * Added 2026-09-03: the timeline's class chips filtered in the CLIENT,
19422
+ * on a day of rows already downloaded. The zone filter had been moved
19423
+ * here for exactly that reason — and it is also what lets the rows come
19424
+ * back `slim` — but the class filter was left behind, so a narrow
19425
+ * selection was still a wide read followed by a wide discard.
19426
+ *
19427
+ * Empty is "show all", not "nothing matches": a chip row with nothing
19428
+ * selected is an operator who has not narrowed anything, and an empty
19429
+ * timeline would read as a camera that saw nothing.
19430
+ */
19431
+ classes: array(string()).optional()
19405
19432
  }), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(object({ deviceId: number() }), _void(), {
19406
19433
  kind: "mutation",
19407
19434
  auth: "admin"
@@ -23073,8 +23100,22 @@ DeviceType.Automation, method(object({ deviceId: number().int().nonnegative() })
23073
23100
  * threshold.
23074
23101
  */
23075
23102
  var BatteryStatusSchema = object({
23076
- /** 0..100 inclusive. Firmware-reported. */
23077
- percentage: number().min(0).max(100),
23103
+ /**
23104
+ * 0..100 inclusive, firmware-reported. **`null` means NOT YET KNOWN** — the
23105
+ * provider has registered the capability but no reading has landed.
23106
+ *
23107
+ * It is nullable because it was not, and the only value a provider could
23108
+ * seed with was `0`. A battery camera behind an NVR therefore announced
23109
+ * itself at 0% on every start and corrected itself a moment later, which is
23110
+ * indistinguishable from a real flat battery: it fires the low-battery alert
23111
+ * every time the hub restarts. Unknown is not empty (D315), and on a battery
23112
+ * reading the difference is an alarm.
23113
+ *
23114
+ * `vacuum-control` and `lawn-mower-control` already model it this way.
23115
+ * Consumers must SKIP a null rather than coerce it — `battery-band` already
23116
+ * declines to band a non-finite reading, which is the correct shape.
23117
+ */
23118
+ percentage: number().min(0).max(100).nullable(),
23078
23119
  /**
23079
23120
  * Charging source. `'dc'` covers wall/USB adapters; `'solar'` is
23080
23121
  * Reolink-specific for the Solar Panel 2 accessory (will become
@@ -3,7 +3,7 @@ Object.defineProperties(exports, {
3
3
  [Symbol.toStringTag]: { value: "Module" }
4
4
  });
5
5
  require("../chunk-Cek0wNdY.js");
6
- const require_dist = require("../dist-D-GLV3zq.js");
6
+ const require_dist = require("../dist-DGbBe-WW.js");
7
7
  //#region src/magic-link/auth-magic-link.addon.ts
8
8
  /**
9
9
  * Magic-link authentication addon.
@@ -1,4 +1,4 @@
1
- import { a as loginMethodCapability, c as BaseAddon, i as buildAddonRouteProvider, r as authProviderCapability, s as errMsg, t as addonRoutesCapability } from "../dist-WPb6YjER.mjs";
1
+ import { a as loginMethodCapability, c as BaseAddon, i as buildAddonRouteProvider, r as authProviderCapability, s as errMsg, t as addonRoutesCapability } from "../dist-CmNaK9D0.mjs";
2
2
  //#region src/magic-link/auth-magic-link.addon.ts
3
3
  /**
4
4
  * Magic-link authentication addon.
@@ -3,7 +3,7 @@ Object.defineProperties(exports, {
3
3
  [Symbol.toStringTag]: { value: "Module" }
4
4
  });
5
5
  const require_chunk = require("../chunk-Cek0wNdY.js");
6
- const require_dist = require("../dist-D-GLV3zq.js");
6
+ const require_dist = require("../dist-DGbBe-WW.js");
7
7
  let node_crypto = require("node:crypto");
8
8
  node_crypto = require_chunk.__toESM(node_crypto);
9
9
  //#region node_modules/jose/dist/webapi/lib/buffer_utils.js
@@ -1,4 +1,4 @@
1
- import { a as loginMethodCapability, c as BaseAddon, i as buildAddonRouteProvider, r as authProviderCapability, s as errMsg, t as addonRoutesCapability } from "../dist-WPb6YjER.mjs";
1
+ import { a as loginMethodCapability, c as BaseAddon, i as buildAddonRouteProvider, r as authProviderCapability, s as errMsg, t as addonRoutesCapability } from "../dist-CmNaK9D0.mjs";
2
2
  import * as crypto$1 from "node:crypto";
3
3
  //#region node_modules/jose/dist/webapi/lib/buffer_utils.js
4
4
  var encoder = new TextEncoder();
@@ -3,7 +3,7 @@ import "./dist-CYZr2fwk.mjs";
3
3
  var e = {
4
4
  "@camstack/sdk": {
5
5
  name: "@camstack/sdk",
6
- version: "1.2.59",
6
+ version: "1.2.61",
7
7
  scope: ["default"],
8
8
  loaded: !1,
9
9
  from: "addon_auth_webauthn_widgets",
@@ -18,7 +18,7 @@ var e = {
18
18
  },
19
19
  "@camstack/types": {
20
20
  name: "@camstack/types",
21
- version: "1.2.139",
21
+ version: "1.2.141",
22
22
  scope: ["default"],
23
23
  loaded: !1,
24
24
  from: "addon_auth_webauthn_widgets",
@@ -33,7 +33,7 @@ var e = {
33
33
  },
34
34
  "@camstack/ui-library": {
35
35
  name: "@camstack/ui-library",
36
- version: "1.2.105",
36
+ version: "1.2.107",
37
37
  scope: ["default"],
38
38
  loaded: !1,
39
39
  from: "addon_auth_webauthn_widgets",
@@ -3,7 +3,7 @@ Object.defineProperties(exports, {
3
3
  [Symbol.toStringTag]: { value: "Module" }
4
4
  });
5
5
  const require_chunk = require("../chunk-Cek0wNdY.js");
6
- const require_dist = require("../dist-D-GLV3zq.js");
6
+ const require_dist = require("../dist-DGbBe-WW.js");
7
7
  let stream = require("stream");
8
8
  stream = require_chunk.__toESM(stream, 1);
9
9
  let http = require("http");
@@ -1,4 +1,4 @@
1
- import { a as loginMethodCapability, c as BaseAddon, d as number, f as object, l as array, n as addonWidgetsSourceCapability, o as userPasskeysCapability, p as string, u as boolean } from "../dist-WPb6YjER.mjs";
1
+ import { a as loginMethodCapability, c as BaseAddon, d as number, f as object, l as array, n as addonWidgetsSourceCapability, o as userPasskeysCapability, p as string, u as boolean } from "../dist-CmNaK9D0.mjs";
2
2
  import { createRequire } from "node:module";
3
3
  import Stream from "stream";
4
4
  import http from "http";
@@ -36,7 +36,7 @@ async function r() {
36
36
  }
37
37
  },
38
38
  "@camstack/types": {
39
- version: "1.2.139",
39
+ version: "1.2.141",
40
40
  scope: "default",
41
41
  shareConfig: {
42
42
  singleton: !0,
@@ -45,7 +45,7 @@ async function r() {
45
45
  }
46
46
  },
47
47
  "@camstack/sdk": {
48
- version: "1.2.59",
48
+ version: "1.2.61",
49
49
  scope: "default",
50
50
  shareConfig: {
51
51
  singleton: !0,
@@ -81,7 +81,7 @@ async function r() {
81
81
  }
82
82
  },
83
83
  "@camstack/ui-library": {
84
- version: "1.2.105",
84
+ version: "1.2.107",
85
85
  scope: "default",
86
86
  shareConfig: {
87
87
  singleton: !0,
@@ -30,7 +30,7 @@ async function d(e) {
30
30
  }
31
31
  }
32
32
  async function f() {
33
- return l ||= d(() => import("./_virtual_mf-localSharedImportMap___mfe_internal__addon_auth_webauthn_widgets-DyRYaJAn.mjs")).catch((e) => {
33
+ return l ||= d(() => import("./_virtual_mf-localSharedImportMap___mfe_internal__addon_auth_webauthn_widgets-Vqq1ISfO.mjs")).catch((e) => {
34
34
  throw l = void 0, e;
35
35
  }), l;
36
36
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-auth",
3
- "version": "1.2.61",
3
+ "version": "1.2.63",
4
4
  "description": "Authentication bundle — magic-link, OIDC, and WebAuthn/passkey. Multi-entry npm package shipping 3 addons under a single bundle; each addon keeps its own id, capabilities, and runner.",
5
5
  "keywords": [
6
6
  "camstack",