@camstack/addon-auth 1.2.17 → 1.2.18

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.
@@ -13097,11 +13097,33 @@ var NotificationFormatSchema = _enum([
13097
13097
  * Named by INTENT, never by glyph. "check" would tie the vocabulary to one
13098
13098
  * renderer's icon set; "acknowledge" survives an adapter that draws it
13099
13099
  * differently.
13100
+ *
13101
+ * ── A TOKEN IS NOT A WIRE VALUE ─────────────────────────────────────
13102
+ *
13103
+ * These names are for US. **No adapter may forward one verbatim.** Each maps
13104
+ * the whole set onto its own renderer's vocabulary through a
13105
+ * `Record<NotificationActionIcon, string>` — a Record, never a lookup with a
13106
+ * fallback, so adding a member here fails every adapter's build until someone
13107
+ * decides its glyph, which is the only place that decision can be made
13108
+ * honestly.
13109
+ *
13110
+ * This paragraph is the bug. Zentik declared `actionIcons: true` and passed
13111
+ * `disarm` straight through; iOS feeds that string to
13112
+ * `UNNotificationActionIcon(systemImageName:)`, `disarm` is not an SF Symbol,
13113
+ * and every snooze and alarm button arrived BLANK. A pass-through is not a
13114
+ * mapping, and "the field is documented" is not "the value renders".
13115
+ *
13116
+ * Adding a member is TRAIN-BOUND. The enum lives in the published
13117
+ * `@camstack/server` closure and the cap seam validates against the HUB's copy,
13118
+ * so an addon that emits a token the running hub does not know does not lose an
13119
+ * icon — its whole `send` fails Zod validation and the notification never
13120
+ * arrives. Never emit a new token from an addon before the train carrying it.
13100
13121
  */
13101
13122
  var NotificationActionIconSchema = _enum([
13102
13123
  "acknowledge",
13103
13124
  "dismiss",
13104
13125
  "silence",
13126
+ "snooze",
13105
13127
  "view",
13106
13128
  "play",
13107
13129
  "open",
@@ -13109,9 +13131,13 @@ var NotificationActionIconSchema = _enum([
13109
13131
  "lock",
13110
13132
  "unlock",
13111
13133
  "arm",
13134
+ "arm-home",
13135
+ "arm-away",
13136
+ "arm-night",
13112
13137
  "disarm",
13113
13138
  "light",
13114
- "alert"
13139
+ "alert",
13140
+ "camera"
13115
13141
  ]);
13116
13142
  /** A single tap-through action button. */
13117
13143
  var NotificationActionSchema = object({
@@ -13311,6 +13337,24 @@ method(object({}), array(TargetKindSchema)), method(object({}), array(TargetSche
13311
13337
  targetId: string(),
13312
13338
  enabled: boolean()
13313
13339
  }), _void(), { kind: "mutation" });
13340
+ new Set([
13341
+ {
13342
+ id: "person",
13343
+ name: "Person"
13344
+ },
13345
+ {
13346
+ id: "vehicle",
13347
+ name: "Vehicle"
13348
+ },
13349
+ {
13350
+ id: "animal",
13351
+ name: "Animal"
13352
+ },
13353
+ {
13354
+ id: "package",
13355
+ name: "Package"
13356
+ }
13357
+ ].map((l) => l.id));
13314
13358
  var COCO_TO_MACRO = {
13315
13359
  mapping: {
13316
13360
  person: "person",
@@ -14108,6 +14152,8 @@ var NcSystemEventKindSchema = _enum([
14108
14152
  "alarm-triggered",
14109
14153
  "alarm-armed",
14110
14154
  "alarm-disarmed",
14155
+ "alarm-arming",
14156
+ "alarm-arm-refused",
14111
14157
  "camera-online",
14112
14158
  "camera-offline",
14113
14159
  "camera-disabled",
@@ -17340,6 +17386,22 @@ var detectionFpsField = {
17340
17386
  default: 10,
17341
17387
  step: 1
17342
17388
  };
17389
+ /**
17390
+ * The occupancy re-check interval. DEFAULT 300 s (2026-08-13 — was 30 s).
17391
+ *
17392
+ * The recheck is now on by default (a parked car is invisible to occupancy
17393
+ * rules until the stationary registry has been rebuilt by motion, which after a
17394
+ * restart may be never on a quiet camera). Each cycle re-subscribes a detection
17395
+ * session — an RTSP re-dial — so the switch is only affordable at a WIDE
17396
+ * interval: 300 s is ~12 re-dials an hour per camera, against 120 at the old
17397
+ * 30 s. A parked car is therefore counted within 5 minutes of a restart.
17398
+ *
17399
+ * Why not wider: `max` is 300 and raising it is TRAIN-BOUND, not addon-bound —
17400
+ * the host validates `attachCamera` against ITS copy of this schema, so a
17401
+ * runner asked for 600 would be rejected by the hub until a `@camstack/server`
17402
+ * carrying the wider bound is installed everywhere. 300 is the widest value
17403
+ * that ships with an addon deploy.
17404
+ */
17343
17405
  var occupancyRecheckSecField = {
17344
17406
  min: 0,
17345
17407
  max: 300,
@@ -17541,15 +17603,21 @@ var RunnerCameraConfigSchema = object({
17541
17603
  */
17542
17604
  onboardMotionDrivesAnalyzer: boolean().default(true),
17543
17605
  /**
17544
- * Master toggle for the occupancy re-check. When `false` (DEFAULT) the runner
17545
- * never arms the periodic recheck timer, regardless of `occupancyRecheckSec`
17546
- * this is off by default because the recheck re-subscribes a detection session
17547
- * every N seconds while `watching`, a major source of pull-decoder re-dial
17548
- * churn (each cycle creates+tears a session → RTSP re-dial → latency). The
17606
+ * Master toggle for the occupancy re-check. When `false` the runner never arms
17607
+ * the periodic recheck timer, regardless of `occupancyRecheckSec`; the
17549
17608
  * `occupancyRecheckSec` / `occupancyRecheckFrames` sliders only take effect
17550
17609
  * (and only render) when this is enabled.
17551
- */
17552
- occupancyRecheckEnabled: boolean().default(false),
17610
+ *
17611
+ * DEFAULT `true` since 2026-08-13 (was `false`). It was off because the
17612
+ * recheck re-subscribes a detection session every N seconds while `watching`
17613
+ * — each cycle creates+tears a session ⇒ an RTSP re-dial ⇒ latency, a major
17614
+ * pull-decoder churn source. What that bought was a blind spot: a STATIONARY
17615
+ * object is counted only while the stationary registry holds it, and the
17616
+ * registry rebuilds from motion, so after a restart a parked car was invisible
17617
+ * to every occupancy rule until something moved in front of it. The churn is
17618
+ * now paid on the interval instead — see `occupancyRecheckSecField`.
17619
+ */
17620
+ occupancyRecheckEnabled: boolean().default(true),
17553
17621
  occupancyRecheckSec: number().min(occupancyRecheckSecField.min).max(occupancyRecheckSecField.max).default(occupancyRecheckSecField.default),
17554
17622
  occupancyRecheckFrames: number().min(occupancyRecheckFramesField.min).max(occupancyRecheckFramesField.max).default(occupancyRecheckFramesField.default),
17555
17623
  /**
@@ -13097,11 +13097,33 @@ var NotificationFormatSchema = _enum([
13097
13097
  * Named by INTENT, never by glyph. "check" would tie the vocabulary to one
13098
13098
  * renderer's icon set; "acknowledge" survives an adapter that draws it
13099
13099
  * differently.
13100
+ *
13101
+ * ── A TOKEN IS NOT A WIRE VALUE ─────────────────────────────────────
13102
+ *
13103
+ * These names are for US. **No adapter may forward one verbatim.** Each maps
13104
+ * the whole set onto its own renderer's vocabulary through a
13105
+ * `Record<NotificationActionIcon, string>` — a Record, never a lookup with a
13106
+ * fallback, so adding a member here fails every adapter's build until someone
13107
+ * decides its glyph, which is the only place that decision can be made
13108
+ * honestly.
13109
+ *
13110
+ * This paragraph is the bug. Zentik declared `actionIcons: true` and passed
13111
+ * `disarm` straight through; iOS feeds that string to
13112
+ * `UNNotificationActionIcon(systemImageName:)`, `disarm` is not an SF Symbol,
13113
+ * and every snooze and alarm button arrived BLANK. A pass-through is not a
13114
+ * mapping, and "the field is documented" is not "the value renders".
13115
+ *
13116
+ * Adding a member is TRAIN-BOUND. The enum lives in the published
13117
+ * `@camstack/server` closure and the cap seam validates against the HUB's copy,
13118
+ * so an addon that emits a token the running hub does not know does not lose an
13119
+ * icon — its whole `send` fails Zod validation and the notification never
13120
+ * arrives. Never emit a new token from an addon before the train carrying it.
13100
13121
  */
13101
13122
  var NotificationActionIconSchema = _enum([
13102
13123
  "acknowledge",
13103
13124
  "dismiss",
13104
13125
  "silence",
13126
+ "snooze",
13105
13127
  "view",
13106
13128
  "play",
13107
13129
  "open",
@@ -13109,9 +13131,13 @@ var NotificationActionIconSchema = _enum([
13109
13131
  "lock",
13110
13132
  "unlock",
13111
13133
  "arm",
13134
+ "arm-home",
13135
+ "arm-away",
13136
+ "arm-night",
13112
13137
  "disarm",
13113
13138
  "light",
13114
- "alert"
13139
+ "alert",
13140
+ "camera"
13115
13141
  ]);
13116
13142
  /** A single tap-through action button. */
13117
13143
  var NotificationActionSchema = object({
@@ -13311,6 +13337,24 @@ method(object({}), array(TargetKindSchema)), method(object({}), array(TargetSche
13311
13337
  targetId: string(),
13312
13338
  enabled: boolean()
13313
13339
  }), _void(), { kind: "mutation" });
13340
+ new Set([
13341
+ {
13342
+ id: "person",
13343
+ name: "Person"
13344
+ },
13345
+ {
13346
+ id: "vehicle",
13347
+ name: "Vehicle"
13348
+ },
13349
+ {
13350
+ id: "animal",
13351
+ name: "Animal"
13352
+ },
13353
+ {
13354
+ id: "package",
13355
+ name: "Package"
13356
+ }
13357
+ ].map((l) => l.id));
13314
13358
  var COCO_TO_MACRO = {
13315
13359
  mapping: {
13316
13360
  person: "person",
@@ -14108,6 +14152,8 @@ var NcSystemEventKindSchema = _enum([
14108
14152
  "alarm-triggered",
14109
14153
  "alarm-armed",
14110
14154
  "alarm-disarmed",
14155
+ "alarm-arming",
14156
+ "alarm-arm-refused",
14111
14157
  "camera-online",
14112
14158
  "camera-offline",
14113
14159
  "camera-disabled",
@@ -17340,6 +17386,22 @@ var detectionFpsField = {
17340
17386
  default: 10,
17341
17387
  step: 1
17342
17388
  };
17389
+ /**
17390
+ * The occupancy re-check interval. DEFAULT 300 s (2026-08-13 — was 30 s).
17391
+ *
17392
+ * The recheck is now on by default (a parked car is invisible to occupancy
17393
+ * rules until the stationary registry has been rebuilt by motion, which after a
17394
+ * restart may be never on a quiet camera). Each cycle re-subscribes a detection
17395
+ * session — an RTSP re-dial — so the switch is only affordable at a WIDE
17396
+ * interval: 300 s is ~12 re-dials an hour per camera, against 120 at the old
17397
+ * 30 s. A parked car is therefore counted within 5 minutes of a restart.
17398
+ *
17399
+ * Why not wider: `max` is 300 and raising it is TRAIN-BOUND, not addon-bound —
17400
+ * the host validates `attachCamera` against ITS copy of this schema, so a
17401
+ * runner asked for 600 would be rejected by the hub until a `@camstack/server`
17402
+ * carrying the wider bound is installed everywhere. 300 is the widest value
17403
+ * that ships with an addon deploy.
17404
+ */
17343
17405
  var occupancyRecheckSecField = {
17344
17406
  min: 0,
17345
17407
  max: 300,
@@ -17541,15 +17603,21 @@ var RunnerCameraConfigSchema = object({
17541
17603
  */
17542
17604
  onboardMotionDrivesAnalyzer: boolean().default(true),
17543
17605
  /**
17544
- * Master toggle for the occupancy re-check. When `false` (DEFAULT) the runner
17545
- * never arms the periodic recheck timer, regardless of `occupancyRecheckSec`
17546
- * this is off by default because the recheck re-subscribes a detection session
17547
- * every N seconds while `watching`, a major source of pull-decoder re-dial
17548
- * churn (each cycle creates+tears a session → RTSP re-dial → latency). The
17606
+ * Master toggle for the occupancy re-check. When `false` the runner never arms
17607
+ * the periodic recheck timer, regardless of `occupancyRecheckSec`; the
17549
17608
  * `occupancyRecheckSec` / `occupancyRecheckFrames` sliders only take effect
17550
17609
  * (and only render) when this is enabled.
17551
- */
17552
- occupancyRecheckEnabled: boolean().default(false),
17610
+ *
17611
+ * DEFAULT `true` since 2026-08-13 (was `false`). It was off because the
17612
+ * recheck re-subscribes a detection session every N seconds while `watching`
17613
+ * — each cycle creates+tears a session ⇒ an RTSP re-dial ⇒ latency, a major
17614
+ * pull-decoder churn source. What that bought was a blind spot: a STATIONARY
17615
+ * object is counted only while the stationary registry holds it, and the
17616
+ * registry rebuilds from motion, so after a restart a parked car was invisible
17617
+ * to every occupancy rule until something moved in front of it. The churn is
17618
+ * now paid on the interval instead — see `occupancyRecheckSecField`.
17619
+ */
17620
+ occupancyRecheckEnabled: boolean().default(true),
17553
17621
  occupancyRecheckSec: number().min(occupancyRecheckSecField.min).max(occupancyRecheckSecField.max).default(occupancyRecheckSecField.default),
17554
17622
  occupancyRecheckFrames: number().min(occupancyRecheckFramesField.min).max(occupancyRecheckFramesField.max).default(occupancyRecheckFramesField.default),
17555
17623
  /**
@@ -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-BlMcuSgB.js");
6
+ const require_dist = require("../dist-Tng9asvg.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-BM2KmZVa.mjs";
1
+ import { a as loginMethodCapability, c as BaseAddon, i as buildAddonRouteProvider, r as authProviderCapability, s as errMsg, t as addonRoutesCapability } from "../dist-RQZEyLZg.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-BlMcuSgB.js");
6
+ const require_dist = require("../dist-Tng9asvg.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-BM2KmZVa.mjs";
1
+ import { a as loginMethodCapability, c as BaseAddon, i as buildAddonRouteProvider, r as authProviderCapability, s as errMsg, t as addonRoutesCapability } from "../dist-RQZEyLZg.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.17",
6
+ version: "1.2.18",
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.66",
21
+ version: "1.2.67",
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.45",
36
+ version: "1.2.46",
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-BlMcuSgB.js");
6
+ const require_dist = require("../dist-Tng9asvg.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-BM2KmZVa.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-RQZEyLZg.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.66",
39
+ version: "1.2.67",
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.17",
48
+ version: "1.2.18",
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.45",
84
+ version: "1.2.46",
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-D2wonstM.mjs")).catch((e) => {
33
+ return l ||= d(() => import("./_virtual_mf-localSharedImportMap___mfe_internal__addon_auth_webauthn_widgets-DicoXrsH.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.17",
3
+ "version": "1.2.18",
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",