@camstack/addon-auth 1.2.110 → 1.2.111

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.
@@ -19212,13 +19212,26 @@ var TrackAudioLabelSchema = object({
19212
19212
  * - `audio` — an audio event on the camera itself that was anomalous for
19213
19213
  * THAT camera, loud, and heard while nothing visual was happening (D62).
19214
19214
  *
19215
+ * - `onboard` — the CAMERA's own firmware, paired with a decoded frame in
19216
+ * that frame's pixel space. A real root detector and a SPATIAL one: its
19217
+ * boxes are the same kind of fact `pipeline`'s are, produced by a different
19218
+ * detector.
19219
+ *
19220
+ * `onboard` was missing here while `DetectionSourceSchema` already had it, so
19221
+ * a persisted onboard track failed `safeParse` on read and came back with NO
19222
+ * source at all — which `isSpatialTrack` then admitted by accident, through the
19223
+ * `undefined` arm rather than by anybody's decision, and which `excludeSources`
19224
+ * could not name.
19225
+ *
19215
19226
  * The spatial subsystems (tracker association, occupancy count, re-id /
19216
19227
  * embedding, resurrection) MUST skip every synthetic source. Test for that
19217
- * with `isSpatialTrack`, which allow-lists `pipeline` — a `!== 'sensor'`
19218
- * check silently readmits every source added after it was written.
19228
+ * with `isSpatialTrack`, which allow-lists the spatial sources explicitly — a
19229
+ * `!== 'sensor'` check silently readmits every source added after it was
19230
+ * written.
19219
19231
  */
19220
19232
  var TrackSourceSchema = _enum([
19221
19233
  "pipeline",
19234
+ "onboard",
19222
19235
  "sensor",
19223
19236
  "audio"
19224
19237
  ]);
@@ -21300,13 +21313,39 @@ var MotionSourceEnum = _enum([
21300
21313
  */
21301
21314
  var MotionSourcesSchema = array(MotionSourceEnum);
21302
21315
  /**
21303
- * Which root detectors a camera runs. Deliberately the SAME vocabulary
21304
- * post-analysis already tags every detection with (`DetectionSource`) rather
21305
- * than a second spelling of the same two ideas — the value an operator picks
21306
- * here is the value that comes back on the track, the overlay and the debug
21307
- * row.
21316
+ * Which root detector a camera runs — EXACTLY ONE.
21317
+ *
21318
+ * Deliberately the SAME vocabulary post-analysis already tags every detection
21319
+ * with (`DetectionSource`) rather than a second spelling of the same two
21320
+ * ideas: the value an operator picks here is the value that comes back on the
21321
+ * track, the overlay and the debug row.
21322
+ *
21323
+ * ## Why one, and why it is still an array
21324
+ *
21325
+ * Two roots on one camera is a capability nobody asked for and the operator has
21326
+ * since ruled out. It was never free: both planes feed the SAME per-device
21327
+ * stationary registry, both can promote the same parked object, and the two
21328
+ * detectors disagree about the same box by construction — which is the
21329
+ * disagreement D505 had to arbitrate. Removing the case removes the arbitration.
21330
+ *
21331
+ * The ARRAY shape survives because the stored settings and the attach payload
21332
+ * already speak it on every camera of every fleet, and a cap input that
21333
+ * suddenly refuses a stored value makes the camera un-attachable — a fail-closed
21334
+ * in the one direction that costs an operator their cameras. So the wire stays
21335
+ * tolerant and the TYPE is exact: a longer list is truncated to its first
21336
+ * element rather than refused, and `max(1)` is what every consumer can then
21337
+ * rely on.
21338
+ *
21339
+ * AT MOST one, not exactly one. The EMPTY list is a legal, deliberate pick —
21340
+ * a camera an operator left with no root detector — and `planDetectionSources`
21341
+ * has always said so: inventing a root for them is how a default acts without
21342
+ * anybody choosing it. Tightening this to `length(1)` broke that, and the
21343
+ * suite caught it.
21344
+ *
21345
+ * Measured before tightening (2026-09-15, this fleet, 6 h of attaches): 3327
21346
+ * `["pipeline"]` and 2 `["onboard"]`. Not one camera had two.
21308
21347
  */
21309
- var DetectionSourcesSchema = array(DetectionSourceSchema);
21348
+ var DetectionSourcesSchema = preprocess((value) => Array.isArray(value) && value.length > 1 ? value.slice(0, 1) : value, array(DetectionSourceSchema).max(1));
21310
21349
  /**
21311
21350
  * Input shape for `pipeline-runner.reportMotion` cap method. Exported
21312
21351
  * so cap-side consumers (the orchestrator forward, the runner addon's
@@ -19212,13 +19212,26 @@ var TrackAudioLabelSchema = object({
19212
19212
  * - `audio` — an audio event on the camera itself that was anomalous for
19213
19213
  * THAT camera, loud, and heard while nothing visual was happening (D62).
19214
19214
  *
19215
+ * - `onboard` — the CAMERA's own firmware, paired with a decoded frame in
19216
+ * that frame's pixel space. A real root detector and a SPATIAL one: its
19217
+ * boxes are the same kind of fact `pipeline`'s are, produced by a different
19218
+ * detector.
19219
+ *
19220
+ * `onboard` was missing here while `DetectionSourceSchema` already had it, so
19221
+ * a persisted onboard track failed `safeParse` on read and came back with NO
19222
+ * source at all — which `isSpatialTrack` then admitted by accident, through the
19223
+ * `undefined` arm rather than by anybody's decision, and which `excludeSources`
19224
+ * could not name.
19225
+ *
19215
19226
  * The spatial subsystems (tracker association, occupancy count, re-id /
19216
19227
  * embedding, resurrection) MUST skip every synthetic source. Test for that
19217
- * with `isSpatialTrack`, which allow-lists `pipeline` — a `!== 'sensor'`
19218
- * check silently readmits every source added after it was written.
19228
+ * with `isSpatialTrack`, which allow-lists the spatial sources explicitly — a
19229
+ * `!== 'sensor'` check silently readmits every source added after it was
19230
+ * written.
19219
19231
  */
19220
19232
  var TrackSourceSchema = _enum([
19221
19233
  "pipeline",
19234
+ "onboard",
19222
19235
  "sensor",
19223
19236
  "audio"
19224
19237
  ]);
@@ -21300,13 +21313,39 @@ var MotionSourceEnum = _enum([
21300
21313
  */
21301
21314
  var MotionSourcesSchema = array(MotionSourceEnum);
21302
21315
  /**
21303
- * Which root detectors a camera runs. Deliberately the SAME vocabulary
21304
- * post-analysis already tags every detection with (`DetectionSource`) rather
21305
- * than a second spelling of the same two ideas — the value an operator picks
21306
- * here is the value that comes back on the track, the overlay and the debug
21307
- * row.
21316
+ * Which root detector a camera runs — EXACTLY ONE.
21317
+ *
21318
+ * Deliberately the SAME vocabulary post-analysis already tags every detection
21319
+ * with (`DetectionSource`) rather than a second spelling of the same two
21320
+ * ideas: the value an operator picks here is the value that comes back on the
21321
+ * track, the overlay and the debug row.
21322
+ *
21323
+ * ## Why one, and why it is still an array
21324
+ *
21325
+ * Two roots on one camera is a capability nobody asked for and the operator has
21326
+ * since ruled out. It was never free: both planes feed the SAME per-device
21327
+ * stationary registry, both can promote the same parked object, and the two
21328
+ * detectors disagree about the same box by construction — which is the
21329
+ * disagreement D505 had to arbitrate. Removing the case removes the arbitration.
21330
+ *
21331
+ * The ARRAY shape survives because the stored settings and the attach payload
21332
+ * already speak it on every camera of every fleet, and a cap input that
21333
+ * suddenly refuses a stored value makes the camera un-attachable — a fail-closed
21334
+ * in the one direction that costs an operator their cameras. So the wire stays
21335
+ * tolerant and the TYPE is exact: a longer list is truncated to its first
21336
+ * element rather than refused, and `max(1)` is what every consumer can then
21337
+ * rely on.
21338
+ *
21339
+ * AT MOST one, not exactly one. The EMPTY list is a legal, deliberate pick —
21340
+ * a camera an operator left with no root detector — and `planDetectionSources`
21341
+ * has always said so: inventing a root for them is how a default acts without
21342
+ * anybody choosing it. Tightening this to `length(1)` broke that, and the
21343
+ * suite caught it.
21344
+ *
21345
+ * Measured before tightening (2026-09-15, this fleet, 6 h of attaches): 3327
21346
+ * `["pipeline"]` and 2 `["onboard"]`. Not one camera had two.
21308
21347
  */
21309
- var DetectionSourcesSchema = array(DetectionSourceSchema);
21348
+ var DetectionSourcesSchema = preprocess((value) => Array.isArray(value) && value.length > 1 ? value.slice(0, 1) : value, array(DetectionSourceSchema).max(1));
21310
21349
  /**
21311
21350
  * Input shape for `pipeline-runner.reportMotion` cap method. Exported
21312
21351
  * so cap-side consumers (the orchestrator forward, the runner addon's
@@ -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-_zDxzv.js");
6
+ const require_dist = require("../dist-BA-7DefN.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-gKEDOFlI.mjs";
1
+ import { a as loginMethodCapability, c as BaseAddon, i as buildAddonRouteProvider, r as authProviderCapability, s as errMsg, t as addonRoutesCapability } from "../dist-CmrGyCgI.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-_zDxzv.js");
6
+ const require_dist = require("../dist-BA-7DefN.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-gKEDOFlI.mjs";
1
+ import { a as loginMethodCapability, c as BaseAddon, i as buildAddonRouteProvider, r as authProviderCapability, s as errMsg, t as addonRoutesCapability } from "../dist-CmrGyCgI.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.106",
6
+ version: "1.2.107",
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.200",
21
+ version: "1.2.201",
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.165",
36
+ version: "1.2.166",
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-_zDxzv.js");
6
+ const require_dist = require("../dist-BA-7DefN.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-gKEDOFlI.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-CmrGyCgI.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.200",
39
+ version: "1.2.201",
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.106",
48
+ version: "1.2.107",
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.165",
84
+ version: "1.2.166",
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-iIeUqbIB.mjs")).catch((e) => {
33
+ return l ||= d(() => import("./_virtual_mf-localSharedImportMap___mfe_internal__addon_auth_webauthn_widgets-Cx0tpSMq.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.110",
3
+ "version": "1.2.111",
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",