@camstack/addon-auth 1.2.95 → 1.2.97

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.
@@ -20517,6 +20517,22 @@ var occupancyRecheckFramesField = {
20517
20517
  step: 1
20518
20518
  };
20519
20519
  /**
20520
+ * Frames one PRE-ROLL catch-up burst may send to inference at session open.
20521
+ *
20522
+ * The default of 12 over a ~4 s retained window is one frame per ~333 ms of
20523
+ * footage, and costs ~480 ms of ONE inference permit at the 40 ms/frame this
20524
+ * fleet measures — one-shot, and only ever taken while a permit would still be
20525
+ * spare for live. `0` turns the burst off entirely (the history is still
20526
+ * decoded, because that is how the dial reaches a decodable GOP, and is then
20527
+ * discarded — the pre-D411 behaviour).
20528
+ */
20529
+ var preRollInferenceFramesField = {
20530
+ min: 0,
20531
+ max: 30,
20532
+ default: 12,
20533
+ step: 1
20534
+ };
20535
+ /**
20520
20536
  * Source enum for motion signals fed to the runner. Extensible — add
20521
20537
  * new variants here when new motion-trigger paths are wired in
20522
20538
  * (`wasm-cross-camera`, `event-bus-relay`, etc.). The runner uses
@@ -20757,6 +20773,31 @@ var RunnerCameraConfigSchema = object({
20757
20773
  * to every occupancy rule until something moved in front of it. The churn is
20758
20774
  * now paid on the interval instead — see `occupancyRecheckSecField`.
20759
20775
  */
20776
+ /**
20777
+ * Infer the session's PRE-ROLL — the retained history the restreamer replays
20778
+ * at session open — instead of decoding it and throwing it away.
20779
+ *
20780
+ * DEFAULT `true`, and the default is the argument. This is not a new
20781
+ * capability being offered cautiously: the pre-roll is ALREADY requested,
20782
+ * already served, already decoded and already paid for on every on-motion
20783
+ * detection session that asks for history. What shipped was a last-moment
20784
+ * discard — `FrameSlot`'s throttle compares wall clocks, and ~4 s of media
20785
+ * arriving inside a few hundred ms of wall clock looks to it like one frame's
20786
+ * worth. Device 617, 2026-09-08: a re-run of the SAME model over the stored
20787
+ * recording scored the subject `vehicle 0.5669` — above the 0.50 floor —
20788
+ * 1.68 s BEFORE the live track was born, on a frame that was in the pre-roll,
20789
+ * was decoded, and was freed.
20790
+ *
20791
+ * Shipping that as opt-in would ship the bug: an operator cannot discover a
20792
+ * setting whose absence looks exactly like a camera that noticed the cyclist
20793
+ * late. What makes ON safe is not a switch but the BOUND —
20794
+ * `preRollInferenceFrames`, a wall-clock ceiling, and a lane that never takes
20795
+ * the last inference permit — so the switch exists for the camera where the
20796
+ * history is worthless (a doorbell whose subject is always already at the
20797
+ * door), not as a hedge against the feature.
20798
+ */
20799
+ preRollInferenceEnabled: boolean().default(true),
20800
+ preRollInferenceFrames: number().min(preRollInferenceFramesField.min).max(preRollInferenceFramesField.max).default(preRollInferenceFramesField.default),
20760
20801
  occupancyRecheckEnabled: boolean().default(true),
20761
20802
  occupancyRecheckSec: number().min(occupancyRecheckSecField.min).max(occupancyRecheckSecField.max).default(occupancyRecheckSecField.default),
20762
20803
  occupancyRecheckFrames: number().min(occupancyRecheckFramesField.min).max(occupancyRecheckFramesField.max).default(occupancyRecheckFramesField.default),
@@ -20785,7 +20826,7 @@ var RunnerCameraConfigSchema = object({
20785
20826
  */
20786
20827
  inferenceDevices: array(RunnerInferenceDeviceSchema).readonly().optional()
20787
20828
  });
20788
- motionFpsField.min, motionFpsField.max, motionFpsField.step, motionFpsField.default, detectionFpsField.min, detectionFpsField.max, detectionFpsField.step, detectionFpsField.default, motionCooldownMsField.min, motionCooldownMsField.max, motionCooldownMsField.step, motionCooldownMsField.default, maxSessionHoldMsField.min, maxSessionHoldMsField.max, maxSessionHoldMsField.step, maxSessionHoldMsField.default, audioMotionWindowMsField.min, audioMotionWindowMsField.max, audioMotionWindowMsField.step, audioMotionWindowMsField.default, occupancyRecheckSecField.min, occupancyRecheckSecField.max, occupancyRecheckSecField.step, occupancyRecheckSecField.default, occupancyRecheckFramesField.min, occupancyRecheckFramesField.max, occupancyRecheckFramesField.step, occupancyRecheckFramesField.default;
20829
+ motionFpsField.min, motionFpsField.max, motionFpsField.step, motionFpsField.default, detectionFpsField.min, detectionFpsField.max, detectionFpsField.step, detectionFpsField.default, motionCooldownMsField.min, motionCooldownMsField.max, motionCooldownMsField.step, motionCooldownMsField.default, maxSessionHoldMsField.min, maxSessionHoldMsField.max, maxSessionHoldMsField.step, maxSessionHoldMsField.default, audioMotionWindowMsField.min, audioMotionWindowMsField.max, audioMotionWindowMsField.step, audioMotionWindowMsField.default, preRollInferenceFramesField.min, preRollInferenceFramesField.max, preRollInferenceFramesField.step, preRollInferenceFramesField.default, occupancyRecheckSecField.min, occupancyRecheckSecField.max, occupancyRecheckSecField.step, occupancyRecheckSecField.default, occupancyRecheckFramesField.min, occupancyRecheckFramesField.max, occupancyRecheckFramesField.step, occupancyRecheckFramesField.default;
20789
20830
  /**
20790
20831
  * Runtime load summary returned by `getLocalLoad`. Used by the orchestrator's
20791
20832
  * load-balancing levels (L2 capacity-based, L3 hardware-aware) to decide
@@ -20517,6 +20517,22 @@ var occupancyRecheckFramesField = {
20517
20517
  step: 1
20518
20518
  };
20519
20519
  /**
20520
+ * Frames one PRE-ROLL catch-up burst may send to inference at session open.
20521
+ *
20522
+ * The default of 12 over a ~4 s retained window is one frame per ~333 ms of
20523
+ * footage, and costs ~480 ms of ONE inference permit at the 40 ms/frame this
20524
+ * fleet measures — one-shot, and only ever taken while a permit would still be
20525
+ * spare for live. `0` turns the burst off entirely (the history is still
20526
+ * decoded, because that is how the dial reaches a decodable GOP, and is then
20527
+ * discarded — the pre-D411 behaviour).
20528
+ */
20529
+ var preRollInferenceFramesField = {
20530
+ min: 0,
20531
+ max: 30,
20532
+ default: 12,
20533
+ step: 1
20534
+ };
20535
+ /**
20520
20536
  * Source enum for motion signals fed to the runner. Extensible — add
20521
20537
  * new variants here when new motion-trigger paths are wired in
20522
20538
  * (`wasm-cross-camera`, `event-bus-relay`, etc.). The runner uses
@@ -20757,6 +20773,31 @@ var RunnerCameraConfigSchema = object({
20757
20773
  * to every occupancy rule until something moved in front of it. The churn is
20758
20774
  * now paid on the interval instead — see `occupancyRecheckSecField`.
20759
20775
  */
20776
+ /**
20777
+ * Infer the session's PRE-ROLL — the retained history the restreamer replays
20778
+ * at session open — instead of decoding it and throwing it away.
20779
+ *
20780
+ * DEFAULT `true`, and the default is the argument. This is not a new
20781
+ * capability being offered cautiously: the pre-roll is ALREADY requested,
20782
+ * already served, already decoded and already paid for on every on-motion
20783
+ * detection session that asks for history. What shipped was a last-moment
20784
+ * discard — `FrameSlot`'s throttle compares wall clocks, and ~4 s of media
20785
+ * arriving inside a few hundred ms of wall clock looks to it like one frame's
20786
+ * worth. Device 617, 2026-09-08: a re-run of the SAME model over the stored
20787
+ * recording scored the subject `vehicle 0.5669` — above the 0.50 floor —
20788
+ * 1.68 s BEFORE the live track was born, on a frame that was in the pre-roll,
20789
+ * was decoded, and was freed.
20790
+ *
20791
+ * Shipping that as opt-in would ship the bug: an operator cannot discover a
20792
+ * setting whose absence looks exactly like a camera that noticed the cyclist
20793
+ * late. What makes ON safe is not a switch but the BOUND —
20794
+ * `preRollInferenceFrames`, a wall-clock ceiling, and a lane that never takes
20795
+ * the last inference permit — so the switch exists for the camera where the
20796
+ * history is worthless (a doorbell whose subject is always already at the
20797
+ * door), not as a hedge against the feature.
20798
+ */
20799
+ preRollInferenceEnabled: boolean().default(true),
20800
+ preRollInferenceFrames: number().min(preRollInferenceFramesField.min).max(preRollInferenceFramesField.max).default(preRollInferenceFramesField.default),
20760
20801
  occupancyRecheckEnabled: boolean().default(true),
20761
20802
  occupancyRecheckSec: number().min(occupancyRecheckSecField.min).max(occupancyRecheckSecField.max).default(occupancyRecheckSecField.default),
20762
20803
  occupancyRecheckFrames: number().min(occupancyRecheckFramesField.min).max(occupancyRecheckFramesField.max).default(occupancyRecheckFramesField.default),
@@ -20785,7 +20826,7 @@ var RunnerCameraConfigSchema = object({
20785
20826
  */
20786
20827
  inferenceDevices: array(RunnerInferenceDeviceSchema).readonly().optional()
20787
20828
  });
20788
- motionFpsField.min, motionFpsField.max, motionFpsField.step, motionFpsField.default, detectionFpsField.min, detectionFpsField.max, detectionFpsField.step, detectionFpsField.default, motionCooldownMsField.min, motionCooldownMsField.max, motionCooldownMsField.step, motionCooldownMsField.default, maxSessionHoldMsField.min, maxSessionHoldMsField.max, maxSessionHoldMsField.step, maxSessionHoldMsField.default, audioMotionWindowMsField.min, audioMotionWindowMsField.max, audioMotionWindowMsField.step, audioMotionWindowMsField.default, occupancyRecheckSecField.min, occupancyRecheckSecField.max, occupancyRecheckSecField.step, occupancyRecheckSecField.default, occupancyRecheckFramesField.min, occupancyRecheckFramesField.max, occupancyRecheckFramesField.step, occupancyRecheckFramesField.default;
20829
+ motionFpsField.min, motionFpsField.max, motionFpsField.step, motionFpsField.default, detectionFpsField.min, detectionFpsField.max, detectionFpsField.step, detectionFpsField.default, motionCooldownMsField.min, motionCooldownMsField.max, motionCooldownMsField.step, motionCooldownMsField.default, maxSessionHoldMsField.min, maxSessionHoldMsField.max, maxSessionHoldMsField.step, maxSessionHoldMsField.default, audioMotionWindowMsField.min, audioMotionWindowMsField.max, audioMotionWindowMsField.step, audioMotionWindowMsField.default, preRollInferenceFramesField.min, preRollInferenceFramesField.max, preRollInferenceFramesField.step, preRollInferenceFramesField.default, occupancyRecheckSecField.min, occupancyRecheckSecField.max, occupancyRecheckSecField.step, occupancyRecheckSecField.default, occupancyRecheckFramesField.min, occupancyRecheckFramesField.max, occupancyRecheckFramesField.step, occupancyRecheckFramesField.default;
20789
20830
  /**
20790
20831
  * Runtime load summary returned by `getLocalLoad`. Used by the orchestrator's
20791
20832
  * load-balancing levels (L2 capacity-based, L3 hardware-aware) to decide
@@ -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-DZxRKu83.js");
6
+ const require_dist = require("../dist-BOZNxI-F.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-CnrVCrin.mjs";
1
+ import { a as loginMethodCapability, c as BaseAddon, i as buildAddonRouteProvider, r as authProviderCapability, s as errMsg, t as addonRoutesCapability } from "../dist-DEIm5SAW.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-DZxRKu83.js");
6
+ const require_dist = require("../dist-BOZNxI-F.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-CnrVCrin.mjs";
1
+ import { a as loginMethodCapability, c as BaseAddon, i as buildAddonRouteProvider, r as authProviderCapability, s as errMsg, t as addonRoutesCapability } from "../dist-DEIm5SAW.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.91",
6
+ version: "1.2.93",
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.171",
21
+ version: "1.2.173",
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.139",
36
+ version: "1.2.141",
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-DZxRKu83.js");
6
+ const require_dist = require("../dist-BOZNxI-F.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-CnrVCrin.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-DEIm5SAW.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.171",
39
+ version: "1.2.173",
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.91",
48
+ version: "1.2.93",
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.139",
84
+ version: "1.2.141",
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-BaLnoDnG.mjs")).catch((e) => {
33
+ return l ||= d(() => import("./_virtual_mf-localSharedImportMap___mfe_internal__addon_auth_webauthn_widgets-B9jWn3Rm.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.95",
3
+ "version": "1.2.97",
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",