@camstack/addon-auth 1.2.114 → 1.2.115

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.
@@ -12426,7 +12426,23 @@ var PickStreamRequirementsSchema = object({
12426
12426
  * This is what lets one picker serve both the bypass and the full source
12427
12427
  * choice, instead of a consumer scoring privately when the bypass misses.
12428
12428
  */
12429
- allowTranscode: boolean().optional()
12429
+ allowTranscode: boolean().optional(),
12430
+ /**
12431
+ * Consider ONLY streams the broker has bound to a profile slot.
12432
+ *
12433
+ * A consumer that dials the broker — which is every exporter, since none
12434
+ * of them may open the camera's own URL — can do nothing with a source
12435
+ * that has no slot: there is no restream to dial. Without this the picker
12436
+ * can name such a stream, and each consumer discovers the dead end for
12437
+ * itself: Alexa's `profileForCamStream` returns `null` and it quietly
12438
+ * falls back, and HomeKit would have had to grow the same function again.
12439
+ *
12440
+ * Default `false`, and deliberately so: the BROKER itself picks through
12441
+ * here when it decides which source to BIND to a slot
12442
+ * (`computeInitialAssignment`), and it must see the unbound ones or it
12443
+ * could never bind them.
12444
+ */
12445
+ requireProfileBound: boolean().optional()
12430
12446
  }).readonly();
12431
12447
  var PickStreamPreferencesSchema = object({
12432
12448
  /**
@@ -12467,7 +12483,43 @@ var PickedCamStreamSchema = object({
12467
12483
  */
12468
12484
  transcodes: boolean(),
12469
12485
  /** One-line explanation of why this stream won — for logs / debug UI. */
12470
- reason: string()
12486
+ reason: string(),
12487
+ /**
12488
+ * The broker profile slot this source is bound to, when it is bound.
12489
+ *
12490
+ * Answered HERE because every consumer needs it and none of them can get it
12491
+ * from the `camStreamId` alone. Alexa wrote `profileForCamStream` for it —
12492
+ * a second cap read plus a `null` branch — and HomeKit was about to write
12493
+ * the same function a second time.
12494
+ *
12495
+ * Absent when the source has no slot, which a caller passing
12496
+ * `requireProfileBound` can never see.
12497
+ */
12498
+ profile: CamProfileSchema.optional(),
12499
+ /** The broker id of that slot, for logs that must name what was dialled. */
12500
+ brokerId: string().optional(),
12501
+ /**
12502
+ * The broker restream URL to dial for this stream.
12503
+ *
12504
+ * An exporter must never open the camera's own URL — the broker is the one
12505
+ * that dials the camera, and every consumer goes through its restream. So
12506
+ * the picker answers with the thing a consumer may actually use, instead of
12507
+ * naming a source and leaving each caller to look the URL up.
12508
+ */
12509
+ url: string().optional(),
12510
+ /**
12511
+ * Frames per second this stream really delivers, and where the number came
12512
+ * from.
12513
+ *
12514
+ * It is here because getting it wrong is expensive and silent: a HomeKit
12515
+ * accessory advertised 720p at 24 fps while the slot serving it ran at 9,
12516
+ * and the controller rendered nothing at all. The source is carried with the
12517
+ * value for the same reason the bitrate evidence is: `published` is what the
12518
+ * publisher declares and `measured` is what the broker observed, and they
12519
+ * are not interchangeable.
12520
+ */
12521
+ fps: number().positive().optional(),
12522
+ fpsSource: _enum(["published", "measured"]).optional()
12471
12523
  });
12472
12524
  DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), array(CameraStreamSchema).readonly()), method(object({ deviceId: number().int().nonnegative() }), array(ProfileSlotSchema).readonly()), method(object({
12473
12525
  deviceId: number().int().nonnegative(),
@@ -12426,7 +12426,23 @@ var PickStreamRequirementsSchema = object({
12426
12426
  * This is what lets one picker serve both the bypass and the full source
12427
12427
  * choice, instead of a consumer scoring privately when the bypass misses.
12428
12428
  */
12429
- allowTranscode: boolean().optional()
12429
+ allowTranscode: boolean().optional(),
12430
+ /**
12431
+ * Consider ONLY streams the broker has bound to a profile slot.
12432
+ *
12433
+ * A consumer that dials the broker — which is every exporter, since none
12434
+ * of them may open the camera's own URL — can do nothing with a source
12435
+ * that has no slot: there is no restream to dial. Without this the picker
12436
+ * can name such a stream, and each consumer discovers the dead end for
12437
+ * itself: Alexa's `profileForCamStream` returns `null` and it quietly
12438
+ * falls back, and HomeKit would have had to grow the same function again.
12439
+ *
12440
+ * Default `false`, and deliberately so: the BROKER itself picks through
12441
+ * here when it decides which source to BIND to a slot
12442
+ * (`computeInitialAssignment`), and it must see the unbound ones or it
12443
+ * could never bind them.
12444
+ */
12445
+ requireProfileBound: boolean().optional()
12430
12446
  }).readonly();
12431
12447
  var PickStreamPreferencesSchema = object({
12432
12448
  /**
@@ -12467,7 +12483,43 @@ var PickedCamStreamSchema = object({
12467
12483
  */
12468
12484
  transcodes: boolean(),
12469
12485
  /** One-line explanation of why this stream won — for logs / debug UI. */
12470
- reason: string()
12486
+ reason: string(),
12487
+ /**
12488
+ * The broker profile slot this source is bound to, when it is bound.
12489
+ *
12490
+ * Answered HERE because every consumer needs it and none of them can get it
12491
+ * from the `camStreamId` alone. Alexa wrote `profileForCamStream` for it —
12492
+ * a second cap read plus a `null` branch — and HomeKit was about to write
12493
+ * the same function a second time.
12494
+ *
12495
+ * Absent when the source has no slot, which a caller passing
12496
+ * `requireProfileBound` can never see.
12497
+ */
12498
+ profile: CamProfileSchema.optional(),
12499
+ /** The broker id of that slot, for logs that must name what was dialled. */
12500
+ brokerId: string().optional(),
12501
+ /**
12502
+ * The broker restream URL to dial for this stream.
12503
+ *
12504
+ * An exporter must never open the camera's own URL — the broker is the one
12505
+ * that dials the camera, and every consumer goes through its restream. So
12506
+ * the picker answers with the thing a consumer may actually use, instead of
12507
+ * naming a source and leaving each caller to look the URL up.
12508
+ */
12509
+ url: string().optional(),
12510
+ /**
12511
+ * Frames per second this stream really delivers, and where the number came
12512
+ * from.
12513
+ *
12514
+ * It is here because getting it wrong is expensive and silent: a HomeKit
12515
+ * accessory advertised 720p at 24 fps while the slot serving it ran at 9,
12516
+ * and the controller rendered nothing at all. The source is carried with the
12517
+ * value for the same reason the bitrate evidence is: `published` is what the
12518
+ * publisher declares and `measured` is what the broker observed, and they
12519
+ * are not interchangeable.
12520
+ */
12521
+ fps: number().positive().optional(),
12522
+ fpsSource: _enum(["published", "measured"]).optional()
12471
12523
  });
12472
12524
  DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), array(CameraStreamSchema).readonly()), method(object({ deviceId: number().int().nonnegative() }), array(ProfileSlotSchema).readonly()), method(object({
12473
12525
  deviceId: number().int().nonnegative(),
@@ -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-BXU_Vf5d.js");
6
+ const require_dist = require("../dist-B31pAPUB.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-tq4aH2OI.mjs";
1
+ import { a as loginMethodCapability, c as BaseAddon, i as buildAddonRouteProvider, r as authProviderCapability, s as errMsg, t as addonRoutesCapability } from "../dist-CDgUEnCG.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-BXU_Vf5d.js");
6
+ const require_dist = require("../dist-B31pAPUB.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-tq4aH2OI.mjs";
1
+ import { a as loginMethodCapability, c as BaseAddon, i as buildAddonRouteProvider, r as authProviderCapability, s as errMsg, t as addonRoutesCapability } from "../dist-CDgUEnCG.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.110",
6
+ version: "1.2.111",
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.204",
21
+ version: "1.2.205",
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.169",
36
+ version: "1.2.170",
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-BXU_Vf5d.js");
6
+ const require_dist = require("../dist-B31pAPUB.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-tq4aH2OI.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-CDgUEnCG.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.204",
39
+ version: "1.2.205",
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.110",
48
+ version: "1.2.111",
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.169",
84
+ version: "1.2.170",
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-B0p6CRdT.mjs")).catch((e) => {
33
+ return l ||= d(() => import("./_virtual_mf-localSharedImportMap___mfe_internal__addon_auth_webauthn_widgets-D-fGZare.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.114",
3
+ "version": "1.2.115",
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",