@camstack/addon-auth 1.2.77 → 1.2.79

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.
@@ -5405,6 +5405,12 @@ Object.fromEntries([
5405
5405
  icon: "move",
5406
5406
  order: 40
5407
5407
  },
5408
+ {
5409
+ id: "navigation",
5410
+ label: "Navigation",
5411
+ icon: "compass",
5412
+ order: 41
5413
+ },
5408
5414
  {
5409
5415
  id: "consumables",
5410
5416
  label: "Consumables",
@@ -6438,6 +6444,21 @@ var CameraStreamSchema = object({
6438
6444
  */
6439
6445
  autoEligible: boolean().optional(),
6440
6446
  /**
6447
+ * The profile slot the PUBLISHER says this stream is: `low` for a stream
6448
+ * whose only sensible role is the low-bandwidth one, `high` for a main
6449
+ * stream. Consulted by the broker's automatic ranking
6450
+ * (`rankInitialAssignment`) BEFORE the pixel-count heuristic, and only there:
6451
+ * an operator's manual assignment still wins, and an absent hint is the
6452
+ * pixel-ranked default every camera had before this field existed.
6453
+ *
6454
+ * Why it exists: a camera with ONE stream ranked to `mid` — the slot no
6455
+ * storage class is written for on its own (`recordings` is high|mid,
6456
+ * `recordingsLow` is low) and the one profile scrub does not read. The robot
6457
+ * camera's single 720p relay is a `low` in every respect except the slot the
6458
+ * heuristic put it in.
6459
+ */
6460
+ profileHint: CamProfileSchema.optional(),
6461
+ /**
6441
6462
  * Transport-specific opaque metadata. The broker passes it through to
6442
6463
  * the source reader without inspecting it. Currently used by
6443
6464
  * `pull-rfc4571` streams to carry the upstream SDP (so the reader can
@@ -8002,7 +8023,22 @@ var RecordingTriggersSchema = object({
8002
8023
  * il livello: un contatto trovato già aperto al riavvio del runner non fa
8003
8024
  * registrare.
8004
8025
  */
8005
- sensorDeviceIds: array(number().int().positive()).min(1).max(16).refine(noDuplicates, { message: "sensorDeviceIds must not repeat a device" }).optional()
8026
+ sensorDeviceIds: array(number().int().positive()).min(1).max(16).refine(noDuplicates, { message: "sensorDeviceIds must not repeat a device" }).optional(),
8027
+ /**
8028
+ * La camera registra per tutta la durata del SEGNALE che lei stessa
8029
+ * pubblica — la cap `recording-signal` (`active: true` mentre il device è in
8030
+ * funzione: un robot che pulisce). È un LIVELLO, non un fronte: la finestra
8031
+ * resta aperta finché il segnale è alto e si chiude `postBufferSec` dopo la
8032
+ * caduta, così una pulizia di quaranta minuti è UNA clip.
8033
+ *
8034
+ * Non nomina un device: il segnale è della camera stessa, tenuto fresco dal
8035
+ * suo provider (D224); il recorder lo ascolta su `DeviceStateChanged` e lo
8036
+ * riconcilia leggendo la slice via RPC, con un tetto oltre il quale un
8037
+ * segnale mai abbassato (un evento perso) non può tenere aperta una
8038
+ * registrazione (D11). Vedi `recorder/addon/band-decision.ts`
8039
+ * (`holdTrigger` / `releaseTrigger`).
8040
+ */
8041
+ deviceSignal: boolean().optional()
8006
8042
  });
8007
8043
  /**
8008
8044
  * Mode of a single recording band — the recorder per-band vocabulary.
@@ -11517,6 +11553,8 @@ method(object({
11517
11553
  label: string().optional(),
11518
11554
  deviceFeatures: array(string()).optional(),
11519
11555
  autoEligible: boolean().optional(),
11556
+ /** The slot the publisher says this stream IS — see `CameraStreamSchema.profileHint`. */
11557
+ profileHint: CamProfileSchema.optional(),
11520
11558
  metadata: record(string(), unknown()).optional(),
11521
11559
  /** Required when kind === 'derived' — the source camStreamId the
11522
11560
  * derived broker reads its encoded plane from.
@@ -27869,6 +27907,47 @@ method(object({
27869
27907
  auth: "protected"
27870
27908
  });
27871
27909
  /**
27910
+ * A camera's own "record me NOW" LEVEL — a signal the device raises while
27911
+ * something it knows about is happening (a robot vacuum cleaning, a machine
27912
+ * running, a gate open) and lowers when it stops.
27913
+ *
27914
+ * It is a level, not an edge. The sensor triggers the recorder already listens
27915
+ * to (`SOURCE_CAP_ACTIVE_FIELD`) fire on a rising edge and record for a fixed
27916
+ * post-buffer; a cleaning lasts forty minutes, and forty minutes of "this is
27917
+ * still happening" cannot be expressed as an edge plus a post-buffer without
27918
+ * either re-triggering on a timer (polling — D224 forbids the consumer keeping
27919
+ * the fact fresh) or picking a post-buffer long enough to cover every job,
27920
+ * which records the dock for that long after every short one. So the recorder
27921
+ * reads the LEVEL: it records for as long as `active` is true, plus the band's
27922
+ * own post-buffer once it falls.
27923
+ *
27924
+ * Who owns the fact: the PROVIDER of the device, which already reads the state
27925
+ * the signal is derived from (the vacuum's lifecycle state, for Dreame). It
27926
+ * writes this slice on every change; consumers subscribe to the kernel's
27927
+ * `DeviceStateChanged` for it and read it back through
27928
+ * `deviceState.getCapSlice` to reconcile — never a second copy, never a poll
27929
+ * against the device (D224, D8/D11).
27930
+ *
27931
+ * Deliberately NOT a `binary` sensor on the camera: a binary sensor is exported
27932
+ * to Home Assistant, HomeKit and the sensor picker as a thing an operator can
27933
+ * bind, and "the camera wants to record" is not a room sensor. It is a fact
27934
+ * about the camera, on the camera.
27935
+ */
27936
+ var RecordingSignalStatusSchema = object({
27937
+ /** True while the device asks to be recorded. */
27938
+ active: boolean(),
27939
+ /**
27940
+ * Why, in the provider's own vocabulary (a vacuum's `cleaning` / `docked`,
27941
+ * …). Free text for the log line and the UI badge; the recorder never
27942
+ * branches on it.
27943
+ */
27944
+ reason: string(),
27945
+ /** Ms epoch of the last `active` transition. 0 if never observed. */
27946
+ lastChangedAt: number()
27947
+ });
27948
+ RecordingSignalStatusSchema.extend({ lastFetchedAt: number() });
27949
+ DeviceType.Camera, method(object({ deviceId: number() }), RecordingSignalStatusSchema);
27950
+ /**
27872
27951
  * scene-monitor — device-scoped reference-region state cap. An operator marks
27873
27952
  * a rect ROI on a camera frame and names one or more states; the engine
27874
27953
  * (pipeline-analytics, designated post-processing node) reports which state is
@@ -28241,6 +28320,8 @@ var CamStreamDescriptorSchema = object({
28241
28320
  deviceFeatures: array(string()).optional(),
28242
28321
  /** Eligible for automatic profile assignment. Absent = `true`. */
28243
28322
  autoEligible: boolean().optional(),
28323
+ /** The slot the publisher says this stream IS — see `CameraStreamSchema.profileHint`. */
28324
+ profileHint: CamProfileSchema.optional(),
28244
28325
  /** Transport-specific opaque metadata (e.g. rfc4571 SDP). */
28245
28326
  metadata: record(string(), unknown()).optional()
28246
28327
  });
@@ -34186,6 +34267,12 @@ Object.freeze({
34186
34267
  addonId: null,
34187
34268
  access: "view"
34188
34269
  },
34270
+ "recordingSignal.getStatus": {
34271
+ capName: "recording-signal",
34272
+ capScope: "device",
34273
+ addonId: null,
34274
+ access: "view"
34275
+ },
34189
34276
  "sceneMonitor.captureReference": {
34190
34277
  capName: "scene-monitor",
34191
34278
  capScope: "device",
@@ -37178,6 +37265,11 @@ Object.freeze({
37178
37265
  form: "single",
37179
37266
  optional: true
37180
37267
  }],
37268
+ "recordingSignal.getStatus": [{
37269
+ name: "deviceId",
37270
+ form: "single",
37271
+ optional: false
37272
+ }],
37181
37273
  "sceneMonitor.captureReference": [{
37182
37274
  name: "deviceId",
37183
37275
  form: "single",
@@ -5405,6 +5405,12 @@ Object.fromEntries([
5405
5405
  icon: "move",
5406
5406
  order: 40
5407
5407
  },
5408
+ {
5409
+ id: "navigation",
5410
+ label: "Navigation",
5411
+ icon: "compass",
5412
+ order: 41
5413
+ },
5408
5414
  {
5409
5415
  id: "consumables",
5410
5416
  label: "Consumables",
@@ -6438,6 +6444,21 @@ var CameraStreamSchema = object({
6438
6444
  */
6439
6445
  autoEligible: boolean().optional(),
6440
6446
  /**
6447
+ * The profile slot the PUBLISHER says this stream is: `low` for a stream
6448
+ * whose only sensible role is the low-bandwidth one, `high` for a main
6449
+ * stream. Consulted by the broker's automatic ranking
6450
+ * (`rankInitialAssignment`) BEFORE the pixel-count heuristic, and only there:
6451
+ * an operator's manual assignment still wins, and an absent hint is the
6452
+ * pixel-ranked default every camera had before this field existed.
6453
+ *
6454
+ * Why it exists: a camera with ONE stream ranked to `mid` — the slot no
6455
+ * storage class is written for on its own (`recordings` is high|mid,
6456
+ * `recordingsLow` is low) and the one profile scrub does not read. The robot
6457
+ * camera's single 720p relay is a `low` in every respect except the slot the
6458
+ * heuristic put it in.
6459
+ */
6460
+ profileHint: CamProfileSchema.optional(),
6461
+ /**
6441
6462
  * Transport-specific opaque metadata. The broker passes it through to
6442
6463
  * the source reader without inspecting it. Currently used by
6443
6464
  * `pull-rfc4571` streams to carry the upstream SDP (so the reader can
@@ -8002,7 +8023,22 @@ var RecordingTriggersSchema = object({
8002
8023
  * il livello: un contatto trovato già aperto al riavvio del runner non fa
8003
8024
  * registrare.
8004
8025
  */
8005
- sensorDeviceIds: array(number().int().positive()).min(1).max(16).refine(noDuplicates, { message: "sensorDeviceIds must not repeat a device" }).optional()
8026
+ sensorDeviceIds: array(number().int().positive()).min(1).max(16).refine(noDuplicates, { message: "sensorDeviceIds must not repeat a device" }).optional(),
8027
+ /**
8028
+ * La camera registra per tutta la durata del SEGNALE che lei stessa
8029
+ * pubblica — la cap `recording-signal` (`active: true` mentre il device è in
8030
+ * funzione: un robot che pulisce). È un LIVELLO, non un fronte: la finestra
8031
+ * resta aperta finché il segnale è alto e si chiude `postBufferSec` dopo la
8032
+ * caduta, così una pulizia di quaranta minuti è UNA clip.
8033
+ *
8034
+ * Non nomina un device: il segnale è della camera stessa, tenuto fresco dal
8035
+ * suo provider (D224); il recorder lo ascolta su `DeviceStateChanged` e lo
8036
+ * riconcilia leggendo la slice via RPC, con un tetto oltre il quale un
8037
+ * segnale mai abbassato (un evento perso) non può tenere aperta una
8038
+ * registrazione (D11). Vedi `recorder/addon/band-decision.ts`
8039
+ * (`holdTrigger` / `releaseTrigger`).
8040
+ */
8041
+ deviceSignal: boolean().optional()
8006
8042
  });
8007
8043
  /**
8008
8044
  * Mode of a single recording band — the recorder per-band vocabulary.
@@ -11517,6 +11553,8 @@ method(object({
11517
11553
  label: string().optional(),
11518
11554
  deviceFeatures: array(string()).optional(),
11519
11555
  autoEligible: boolean().optional(),
11556
+ /** The slot the publisher says this stream IS — see `CameraStreamSchema.profileHint`. */
11557
+ profileHint: CamProfileSchema.optional(),
11520
11558
  metadata: record(string(), unknown()).optional(),
11521
11559
  /** Required when kind === 'derived' — the source camStreamId the
11522
11560
  * derived broker reads its encoded plane from.
@@ -27869,6 +27907,47 @@ method(object({
27869
27907
  auth: "protected"
27870
27908
  });
27871
27909
  /**
27910
+ * A camera's own "record me NOW" LEVEL — a signal the device raises while
27911
+ * something it knows about is happening (a robot vacuum cleaning, a machine
27912
+ * running, a gate open) and lowers when it stops.
27913
+ *
27914
+ * It is a level, not an edge. The sensor triggers the recorder already listens
27915
+ * to (`SOURCE_CAP_ACTIVE_FIELD`) fire on a rising edge and record for a fixed
27916
+ * post-buffer; a cleaning lasts forty minutes, and forty minutes of "this is
27917
+ * still happening" cannot be expressed as an edge plus a post-buffer without
27918
+ * either re-triggering on a timer (polling — D224 forbids the consumer keeping
27919
+ * the fact fresh) or picking a post-buffer long enough to cover every job,
27920
+ * which records the dock for that long after every short one. So the recorder
27921
+ * reads the LEVEL: it records for as long as `active` is true, plus the band's
27922
+ * own post-buffer once it falls.
27923
+ *
27924
+ * Who owns the fact: the PROVIDER of the device, which already reads the state
27925
+ * the signal is derived from (the vacuum's lifecycle state, for Dreame). It
27926
+ * writes this slice on every change; consumers subscribe to the kernel's
27927
+ * `DeviceStateChanged` for it and read it back through
27928
+ * `deviceState.getCapSlice` to reconcile — never a second copy, never a poll
27929
+ * against the device (D224, D8/D11).
27930
+ *
27931
+ * Deliberately NOT a `binary` sensor on the camera: a binary sensor is exported
27932
+ * to Home Assistant, HomeKit and the sensor picker as a thing an operator can
27933
+ * bind, and "the camera wants to record" is not a room sensor. It is a fact
27934
+ * about the camera, on the camera.
27935
+ */
27936
+ var RecordingSignalStatusSchema = object({
27937
+ /** True while the device asks to be recorded. */
27938
+ active: boolean(),
27939
+ /**
27940
+ * Why, in the provider's own vocabulary (a vacuum's `cleaning` / `docked`,
27941
+ * …). Free text for the log line and the UI badge; the recorder never
27942
+ * branches on it.
27943
+ */
27944
+ reason: string(),
27945
+ /** Ms epoch of the last `active` transition. 0 if never observed. */
27946
+ lastChangedAt: number()
27947
+ });
27948
+ RecordingSignalStatusSchema.extend({ lastFetchedAt: number() });
27949
+ DeviceType.Camera, method(object({ deviceId: number() }), RecordingSignalStatusSchema);
27950
+ /**
27872
27951
  * scene-monitor — device-scoped reference-region state cap. An operator marks
27873
27952
  * a rect ROI on a camera frame and names one or more states; the engine
27874
27953
  * (pipeline-analytics, designated post-processing node) reports which state is
@@ -28241,6 +28320,8 @@ var CamStreamDescriptorSchema = object({
28241
28320
  deviceFeatures: array(string()).optional(),
28242
28321
  /** Eligible for automatic profile assignment. Absent = `true`. */
28243
28322
  autoEligible: boolean().optional(),
28323
+ /** The slot the publisher says this stream IS — see `CameraStreamSchema.profileHint`. */
28324
+ profileHint: CamProfileSchema.optional(),
28244
28325
  /** Transport-specific opaque metadata (e.g. rfc4571 SDP). */
28245
28326
  metadata: record(string(), unknown()).optional()
28246
28327
  });
@@ -34186,6 +34267,12 @@ Object.freeze({
34186
34267
  addonId: null,
34187
34268
  access: "view"
34188
34269
  },
34270
+ "recordingSignal.getStatus": {
34271
+ capName: "recording-signal",
34272
+ capScope: "device",
34273
+ addonId: null,
34274
+ access: "view"
34275
+ },
34189
34276
  "sceneMonitor.captureReference": {
34190
34277
  capName: "scene-monitor",
34191
34278
  capScope: "device",
@@ -37178,6 +37265,11 @@ Object.freeze({
37178
37265
  form: "single",
37179
37266
  optional: true
37180
37267
  }],
37268
+ "recordingSignal.getStatus": [{
37269
+ name: "deviceId",
37270
+ form: "single",
37271
+ optional: false
37272
+ }],
37181
37273
  "sceneMonitor.captureReference": [{
37182
37274
  name: "deviceId",
37183
37275
  form: "single",
@@ -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-CTD3x_hB.js");
6
+ const require_dist = require("../dist-B_kQwQY0.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-DF3naEZ1.mjs";
1
+ import { a as loginMethodCapability, c as BaseAddon, i as buildAddonRouteProvider, r as authProviderCapability, s as errMsg, t as addonRoutesCapability } from "../dist-Z61zMCWZ.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-CTD3x_hB.js");
6
+ const require_dist = require("../dist-B_kQwQY0.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-DF3naEZ1.mjs";
1
+ import { a as loginMethodCapability, c as BaseAddon, i as buildAddonRouteProvider, r as authProviderCapability, s as errMsg, t as addonRoutesCapability } from "../dist-Z61zMCWZ.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.74",
6
+ version: "1.2.76",
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.154",
21
+ version: "1.2.156",
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.121",
36
+ version: "1.2.123",
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-CTD3x_hB.js");
6
+ const require_dist = require("../dist-B_kQwQY0.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-DF3naEZ1.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-Z61zMCWZ.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.154",
39
+ version: "1.2.156",
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.74",
48
+ version: "1.2.76",
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.121",
84
+ version: "1.2.123",
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-CzTeBkM2.mjs")).catch((e) => {
33
+ return l ||= d(() => import("./_virtual_mf-localSharedImportMap___mfe_internal__addon_auth_webauthn_widgets-8ljfNyNt.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.77",
3
+ "version": "1.2.79",
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",