@camstack/addon-auth 1.2.23 → 1.2.25

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.
@@ -20057,6 +20057,14 @@ var ClipSchema = object({
20057
20057
  endMs: number()
20058
20058
  }),
20059
20059
  /**
20060
+ * Distinct object classes attached to this visit (`person`, `car`, …),
20061
+ * dominant first, capped at {@link MAX_CLIP_LABELS}. The ribbon renders these
20062
+ * instead of the bare kind — "Object" tells the operator nothing a colour bar
20063
+ * did not. Absent (never empty) when the visit attached no classified object
20064
+ * event, so a motion/audio-only visit keeps its kind label.
20065
+ */
20066
+ labels: array(string()).max(3).optional(),
20067
+ /**
20060
20068
  * Lazy thumbnail URL, never inlined.
20061
20069
  *
20062
20070
  * Recording-derived clips (events-mode keep-window, and the prepared
@@ -24391,9 +24399,21 @@ var RecordingLocationUsageSchema = object({
24391
24399
  * previously rendered as two identical "disks" with a nonsensical used
24392
24400
  * split — hydrate attribution across aliases is arbitrary by nature. */
24393
24401
  locationIds: array(string()).optional(),
24394
- /** Bytes of recordings stored on this PHYSICAL volume (all aliases). */
24402
+ /**
24403
+ * Filesystem root of the physical volume this row accounts — the only
24404
+ * operator-legible identity when a location has no `displayName` yet, and
24405
+ * what a "which disk is full" alert has to name. OPTIONAL for the same
24406
+ * train-skew reason as `oldestMs`: a recorder that predates the field omits
24407
+ * it, and this schema must keep validating that older provider's payload.
24408
+ */
24409
+ root: string().optional(),
24410
+ /** Bytes of recordings stored on this PHYSICAL volume (all aliases). This is
24411
+ * the footage's SHARE of the volume, not how full the volume is — the disk
24412
+ * also holds everything that is not recordings. Volume fill is
24413
+ * `(totalBytes - availableBytes) / totalBytes`. */
24395
24414
  usedBytes: number(),
24396
- /** Free bytes on the location's volume; null when capacity is unknown (remote). */
24415
+ /** Free bytes on the location's volume; null when capacity is unknown
24416
+ * (remote/unstattable — the recorder logs the statfs failure with the root). */
24397
24417
  availableBytes: number().nullable(),
24398
24418
  /** Total bytes of the location's volume; null when unknown. */
24399
24419
  totalBytes: number().nullable()
@@ -24405,7 +24425,15 @@ var RecordingStorageUsageSchema = object({
24405
24425
  nodeId: string(),
24406
24426
  totalUsedBytes: number(),
24407
24427
  devices: array(RecordingDeviceUsageSchema),
24408
- locations: array(RecordingLocationUsageSchema)
24428
+ /**
24429
+ * Per-physical-volume capacity. OPTIONAL, and consumers must render the rest
24430
+ * of the payload without it: the hub serves this method through a BAKED
24431
+ * router, so a hub whose framework train predates a change to this array
24432
+ * strips it out of an answer a newer recorder happily produced. A UI that
24433
+ * dereferences it unconditionally crashes the whole Storage page over a
24434
+ * missing disk bar.
24435
+ */
24436
+ locations: array(RecordingLocationUsageSchema).optional()
24409
24437
  });
24410
24438
  /**
24411
24439
  * The OPERATOR-ARMED half of multi-location recordings (D116).
@@ -33521,8 +33549,14 @@ Object.freeze({
33521
33549
  "network-access": "ingress",
33522
33550
  "smtp-provider": "email"
33523
33551
  });
33552
+ /** Schema defaults — an untouched sub-field must author exactly these. */
33553
+ var NC_AUDIO_DEFAULTS = {
33554
+ hitPercent: 60,
33555
+ samplingSeconds: 10
33556
+ };
33524
33557
  new Map(AUDIO_MACRO_LABELS.flatMap((macro) => macro.icon === void 0 ? [] : [[macro.id, macro.icon]]));
33525
33558
  new Set(["devices", "classes"]);
33559
+ NC_AUDIO_DEFAULTS.hitPercent, NC_AUDIO_DEFAULTS.samplingSeconds;
33526
33560
  /**
33527
33561
  * TimelapseRule — the STANDALONE scheduled timelapse producer's rule model.
33528
33562
  *
@@ -20057,6 +20057,14 @@ var ClipSchema = object({
20057
20057
  endMs: number()
20058
20058
  }),
20059
20059
  /**
20060
+ * Distinct object classes attached to this visit (`person`, `car`, …),
20061
+ * dominant first, capped at {@link MAX_CLIP_LABELS}. The ribbon renders these
20062
+ * instead of the bare kind — "Object" tells the operator nothing a colour bar
20063
+ * did not. Absent (never empty) when the visit attached no classified object
20064
+ * event, so a motion/audio-only visit keeps its kind label.
20065
+ */
20066
+ labels: array(string()).max(3).optional(),
20067
+ /**
20060
20068
  * Lazy thumbnail URL, never inlined.
20061
20069
  *
20062
20070
  * Recording-derived clips (events-mode keep-window, and the prepared
@@ -24391,9 +24399,21 @@ var RecordingLocationUsageSchema = object({
24391
24399
  * previously rendered as two identical "disks" with a nonsensical used
24392
24400
  * split — hydrate attribution across aliases is arbitrary by nature. */
24393
24401
  locationIds: array(string()).optional(),
24394
- /** Bytes of recordings stored on this PHYSICAL volume (all aliases). */
24402
+ /**
24403
+ * Filesystem root of the physical volume this row accounts — the only
24404
+ * operator-legible identity when a location has no `displayName` yet, and
24405
+ * what a "which disk is full" alert has to name. OPTIONAL for the same
24406
+ * train-skew reason as `oldestMs`: a recorder that predates the field omits
24407
+ * it, and this schema must keep validating that older provider's payload.
24408
+ */
24409
+ root: string().optional(),
24410
+ /** Bytes of recordings stored on this PHYSICAL volume (all aliases). This is
24411
+ * the footage's SHARE of the volume, not how full the volume is — the disk
24412
+ * also holds everything that is not recordings. Volume fill is
24413
+ * `(totalBytes - availableBytes) / totalBytes`. */
24395
24414
  usedBytes: number(),
24396
- /** Free bytes on the location's volume; null when capacity is unknown (remote). */
24415
+ /** Free bytes on the location's volume; null when capacity is unknown
24416
+ * (remote/unstattable — the recorder logs the statfs failure with the root). */
24397
24417
  availableBytes: number().nullable(),
24398
24418
  /** Total bytes of the location's volume; null when unknown. */
24399
24419
  totalBytes: number().nullable()
@@ -24405,7 +24425,15 @@ var RecordingStorageUsageSchema = object({
24405
24425
  nodeId: string(),
24406
24426
  totalUsedBytes: number(),
24407
24427
  devices: array(RecordingDeviceUsageSchema),
24408
- locations: array(RecordingLocationUsageSchema)
24428
+ /**
24429
+ * Per-physical-volume capacity. OPTIONAL, and consumers must render the rest
24430
+ * of the payload without it: the hub serves this method through a BAKED
24431
+ * router, so a hub whose framework train predates a change to this array
24432
+ * strips it out of an answer a newer recorder happily produced. A UI that
24433
+ * dereferences it unconditionally crashes the whole Storage page over a
24434
+ * missing disk bar.
24435
+ */
24436
+ locations: array(RecordingLocationUsageSchema).optional()
24409
24437
  });
24410
24438
  /**
24411
24439
  * The OPERATOR-ARMED half of multi-location recordings (D116).
@@ -33521,8 +33549,14 @@ Object.freeze({
33521
33549
  "network-access": "ingress",
33522
33550
  "smtp-provider": "email"
33523
33551
  });
33552
+ /** Schema defaults — an untouched sub-field must author exactly these. */
33553
+ var NC_AUDIO_DEFAULTS = {
33554
+ hitPercent: 60,
33555
+ samplingSeconds: 10
33556
+ };
33524
33557
  new Map(AUDIO_MACRO_LABELS.flatMap((macro) => macro.icon === void 0 ? [] : [[macro.id, macro.icon]]));
33525
33558
  new Set(["devices", "classes"]);
33559
+ NC_AUDIO_DEFAULTS.hitPercent, NC_AUDIO_DEFAULTS.samplingSeconds;
33526
33560
  /**
33527
33561
  * TimelapseRule — the STANDALONE scheduled timelapse producer's rule model.
33528
33562
  *
@@ -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-B2pdYy32.js");
6
+ const require_dist = require("../dist-DwFrw_t5.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-Bzl5cwWC.mjs";
1
+ import { a as loginMethodCapability, c as BaseAddon, i as buildAddonRouteProvider, r as authProviderCapability, s as errMsg, t as addonRoutesCapability } from "../dist-WXZYDzKC.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-B2pdYy32.js");
6
+ const require_dist = require("../dist-DwFrw_t5.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-Bzl5cwWC.mjs";
1
+ import { a as loginMethodCapability, c as BaseAddon, i as buildAddonRouteProvider, r as authProviderCapability, s as errMsg, t as addonRoutesCapability } from "../dist-WXZYDzKC.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.23",
6
+ version: "1.2.25",
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.87",
21
+ version: "1.2.89",
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.59",
36
+ version: "1.2.61",
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-B2pdYy32.js");
6
+ const require_dist = require("../dist-DwFrw_t5.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-Bzl5cwWC.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-WXZYDzKC.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.87",
39
+ version: "1.2.89",
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.23",
48
+ version: "1.2.25",
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.59",
84
+ version: "1.2.61",
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-BM-dL2u6.mjs")).catch((e) => {
33
+ return l ||= d(() => import("./_virtual_mf-localSharedImportMap___mfe_internal__addon_auth_webauthn_widgets-B8IAFTts.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.23",
3
+ "version": "1.2.25",
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",