@camstack/addon-notifiers 1.2.111 → 1.2.112

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.
package/dist/addon.js CHANGED
@@ -12435,7 +12435,23 @@ var PickStreamRequirementsSchema = object({
12435
12435
  * This is what lets one picker serve both the bypass and the full source
12436
12436
  * choice, instead of a consumer scoring privately when the bypass misses.
12437
12437
  */
12438
- allowTranscode: boolean().optional()
12438
+ allowTranscode: boolean().optional(),
12439
+ /**
12440
+ * Consider ONLY streams the broker has bound to a profile slot.
12441
+ *
12442
+ * A consumer that dials the broker — which is every exporter, since none
12443
+ * of them may open the camera's own URL — can do nothing with a source
12444
+ * that has no slot: there is no restream to dial. Without this the picker
12445
+ * can name such a stream, and each consumer discovers the dead end for
12446
+ * itself: Alexa's `profileForCamStream` returns `null` and it quietly
12447
+ * falls back, and HomeKit would have had to grow the same function again.
12448
+ *
12449
+ * Default `false`, and deliberately so: the BROKER itself picks through
12450
+ * here when it decides which source to BIND to a slot
12451
+ * (`computeInitialAssignment`), and it must see the unbound ones or it
12452
+ * could never bind them.
12453
+ */
12454
+ requireProfileBound: boolean().optional()
12439
12455
  }).readonly();
12440
12456
  var PickStreamPreferencesSchema = object({
12441
12457
  /**
@@ -12476,7 +12492,43 @@ var PickedCamStreamSchema = object({
12476
12492
  */
12477
12493
  transcodes: boolean(),
12478
12494
  /** One-line explanation of why this stream won — for logs / debug UI. */
12479
- reason: string()
12495
+ reason: string(),
12496
+ /**
12497
+ * The broker profile slot this source is bound to, when it is bound.
12498
+ *
12499
+ * Answered HERE because every consumer needs it and none of them can get it
12500
+ * from the `camStreamId` alone. Alexa wrote `profileForCamStream` for it —
12501
+ * a second cap read plus a `null` branch — and HomeKit was about to write
12502
+ * the same function a second time.
12503
+ *
12504
+ * Absent when the source has no slot, which a caller passing
12505
+ * `requireProfileBound` can never see.
12506
+ */
12507
+ profile: CamProfileSchema.optional(),
12508
+ /** The broker id of that slot, for logs that must name what was dialled. */
12509
+ brokerId: string().optional(),
12510
+ /**
12511
+ * The broker restream URL to dial for this stream.
12512
+ *
12513
+ * An exporter must never open the camera's own URL — the broker is the one
12514
+ * that dials the camera, and every consumer goes through its restream. So
12515
+ * the picker answers with the thing a consumer may actually use, instead of
12516
+ * naming a source and leaving each caller to look the URL up.
12517
+ */
12518
+ url: string().optional(),
12519
+ /**
12520
+ * Frames per second this stream really delivers, and where the number came
12521
+ * from.
12522
+ *
12523
+ * It is here because getting it wrong is expensive and silent: a HomeKit
12524
+ * accessory advertised 720p at 24 fps while the slot serving it ran at 9,
12525
+ * and the controller rendered nothing at all. The source is carried with the
12526
+ * value for the same reason the bitrate evidence is: `published` is what the
12527
+ * publisher declares and `measured` is what the broker observed, and they
12528
+ * are not interchangeable.
12529
+ */
12530
+ fps: number().positive().optional(),
12531
+ fpsSource: _enum(["published", "measured"]).optional()
12480
12532
  });
12481
12533
  DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), array(CameraStreamSchema).readonly()), method(object({ deviceId: number().int().nonnegative() }), array(ProfileSlotSchema).readonly()), method(object({
12482
12534
  deviceId: number().int().nonnegative(),
package/dist/addon.mjs CHANGED
@@ -12408,7 +12408,23 @@ var PickStreamRequirementsSchema = object({
12408
12408
  * This is what lets one picker serve both the bypass and the full source
12409
12409
  * choice, instead of a consumer scoring privately when the bypass misses.
12410
12410
  */
12411
- allowTranscode: boolean().optional()
12411
+ allowTranscode: boolean().optional(),
12412
+ /**
12413
+ * Consider ONLY streams the broker has bound to a profile slot.
12414
+ *
12415
+ * A consumer that dials the broker — which is every exporter, since none
12416
+ * of them may open the camera's own URL — can do nothing with a source
12417
+ * that has no slot: there is no restream to dial. Without this the picker
12418
+ * can name such a stream, and each consumer discovers the dead end for
12419
+ * itself: Alexa's `profileForCamStream` returns `null` and it quietly
12420
+ * falls back, and HomeKit would have had to grow the same function again.
12421
+ *
12422
+ * Default `false`, and deliberately so: the BROKER itself picks through
12423
+ * here when it decides which source to BIND to a slot
12424
+ * (`computeInitialAssignment`), and it must see the unbound ones or it
12425
+ * could never bind them.
12426
+ */
12427
+ requireProfileBound: boolean().optional()
12412
12428
  }).readonly();
12413
12429
  var PickStreamPreferencesSchema = object({
12414
12430
  /**
@@ -12449,7 +12465,43 @@ var PickedCamStreamSchema = object({
12449
12465
  */
12450
12466
  transcodes: boolean(),
12451
12467
  /** One-line explanation of why this stream won — for logs / debug UI. */
12452
- reason: string()
12468
+ reason: string(),
12469
+ /**
12470
+ * The broker profile slot this source is bound to, when it is bound.
12471
+ *
12472
+ * Answered HERE because every consumer needs it and none of them can get it
12473
+ * from the `camStreamId` alone. Alexa wrote `profileForCamStream` for it —
12474
+ * a second cap read plus a `null` branch — and HomeKit was about to write
12475
+ * the same function a second time.
12476
+ *
12477
+ * Absent when the source has no slot, which a caller passing
12478
+ * `requireProfileBound` can never see.
12479
+ */
12480
+ profile: CamProfileSchema.optional(),
12481
+ /** The broker id of that slot, for logs that must name what was dialled. */
12482
+ brokerId: string().optional(),
12483
+ /**
12484
+ * The broker restream URL to dial for this stream.
12485
+ *
12486
+ * An exporter must never open the camera's own URL — the broker is the one
12487
+ * that dials the camera, and every consumer goes through its restream. So
12488
+ * the picker answers with the thing a consumer may actually use, instead of
12489
+ * naming a source and leaving each caller to look the URL up.
12490
+ */
12491
+ url: string().optional(),
12492
+ /**
12493
+ * Frames per second this stream really delivers, and where the number came
12494
+ * from.
12495
+ *
12496
+ * It is here because getting it wrong is expensive and silent: a HomeKit
12497
+ * accessory advertised 720p at 24 fps while the slot serving it ran at 9,
12498
+ * and the controller rendered nothing at all. The source is carried with the
12499
+ * value for the same reason the bitrate evidence is: `published` is what the
12500
+ * publisher declares and `measured` is what the broker observed, and they
12501
+ * are not interchangeable.
12502
+ */
12503
+ fps: number().positive().optional(),
12504
+ fpsSource: _enum(["published", "measured"]).optional()
12453
12505
  });
12454
12506
  DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), array(CameraStreamSchema).readonly()), method(object({ deviceId: number().int().nonnegative() }), array(ProfileSlotSchema).readonly()), method(object({
12455
12507
  deviceId: number().int().nonnegative(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-notifiers",
3
- "version": "1.2.111",
3
+ "version": "1.2.112",
4
4
  "description": "System notifiers addon for CamStack — a `notification-output` collection provider hosting per-kind notifier adapters (ntfy, pushover, gotify, telegram, discord, webhook, zentik).",
5
5
  "keywords": [
6
6
  "camstack",