@camstack/addon-provider-homematic 1.2.108 → 1.2.109

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
@@ -12350,7 +12350,23 @@ var PickStreamRequirementsSchema = object({
12350
12350
  * This is what lets one picker serve both the bypass and the full source
12351
12351
  * choice, instead of a consumer scoring privately when the bypass misses.
12352
12352
  */
12353
- allowTranscode: boolean().optional()
12353
+ allowTranscode: boolean().optional(),
12354
+ /**
12355
+ * Consider ONLY streams the broker has bound to a profile slot.
12356
+ *
12357
+ * A consumer that dials the broker — which is every exporter, since none
12358
+ * of them may open the camera's own URL — can do nothing with a source
12359
+ * that has no slot: there is no restream to dial. Without this the picker
12360
+ * can name such a stream, and each consumer discovers the dead end for
12361
+ * itself: Alexa's `profileForCamStream` returns `null` and it quietly
12362
+ * falls back, and HomeKit would have had to grow the same function again.
12363
+ *
12364
+ * Default `false`, and deliberately so: the BROKER itself picks through
12365
+ * here when it decides which source to BIND to a slot
12366
+ * (`computeInitialAssignment`), and it must see the unbound ones or it
12367
+ * could never bind them.
12368
+ */
12369
+ requireProfileBound: boolean().optional()
12354
12370
  }).readonly();
12355
12371
  var PickStreamPreferencesSchema = object({
12356
12372
  /**
@@ -12391,7 +12407,43 @@ var PickedCamStreamSchema = object({
12391
12407
  */
12392
12408
  transcodes: boolean(),
12393
12409
  /** One-line explanation of why this stream won — for logs / debug UI. */
12394
- reason: string()
12410
+ reason: string(),
12411
+ /**
12412
+ * The broker profile slot this source is bound to, when it is bound.
12413
+ *
12414
+ * Answered HERE because every consumer needs it and none of them can get it
12415
+ * from the `camStreamId` alone. Alexa wrote `profileForCamStream` for it —
12416
+ * a second cap read plus a `null` branch — and HomeKit was about to write
12417
+ * the same function a second time.
12418
+ *
12419
+ * Absent when the source has no slot, which a caller passing
12420
+ * `requireProfileBound` can never see.
12421
+ */
12422
+ profile: CamProfileSchema.optional(),
12423
+ /** The broker id of that slot, for logs that must name what was dialled. */
12424
+ brokerId: string().optional(),
12425
+ /**
12426
+ * The broker restream URL to dial for this stream.
12427
+ *
12428
+ * An exporter must never open the camera's own URL — the broker is the one
12429
+ * that dials the camera, and every consumer goes through its restream. So
12430
+ * the picker answers with the thing a consumer may actually use, instead of
12431
+ * naming a source and leaving each caller to look the URL up.
12432
+ */
12433
+ url: string().optional(),
12434
+ /**
12435
+ * Frames per second this stream really delivers, and where the number came
12436
+ * from.
12437
+ *
12438
+ * It is here because getting it wrong is expensive and silent: a HomeKit
12439
+ * accessory advertised 720p at 24 fps while the slot serving it ran at 9,
12440
+ * and the controller rendered nothing at all. The source is carried with the
12441
+ * value for the same reason the bitrate evidence is: `published` is what the
12442
+ * publisher declares and `measured` is what the broker observed, and they
12443
+ * are not interchangeable.
12444
+ */
12445
+ fps: number().positive().optional(),
12446
+ fpsSource: _enum(["published", "measured"]).optional()
12395
12447
  });
12396
12448
  /**
12397
12449
  * Camera streams — device-scoped facade over the system `stream-broker`.
package/dist/addon.mjs CHANGED
@@ -12351,7 +12351,23 @@ var PickStreamRequirementsSchema = object({
12351
12351
  * This is what lets one picker serve both the bypass and the full source
12352
12352
  * choice, instead of a consumer scoring privately when the bypass misses.
12353
12353
  */
12354
- allowTranscode: boolean().optional()
12354
+ allowTranscode: boolean().optional(),
12355
+ /**
12356
+ * Consider ONLY streams the broker has bound to a profile slot.
12357
+ *
12358
+ * A consumer that dials the broker — which is every exporter, since none
12359
+ * of them may open the camera's own URL — can do nothing with a source
12360
+ * that has no slot: there is no restream to dial. Without this the picker
12361
+ * can name such a stream, and each consumer discovers the dead end for
12362
+ * itself: Alexa's `profileForCamStream` returns `null` and it quietly
12363
+ * falls back, and HomeKit would have had to grow the same function again.
12364
+ *
12365
+ * Default `false`, and deliberately so: the BROKER itself picks through
12366
+ * here when it decides which source to BIND to a slot
12367
+ * (`computeInitialAssignment`), and it must see the unbound ones or it
12368
+ * could never bind them.
12369
+ */
12370
+ requireProfileBound: boolean().optional()
12355
12371
  }).readonly();
12356
12372
  var PickStreamPreferencesSchema = object({
12357
12373
  /**
@@ -12392,7 +12408,43 @@ var PickedCamStreamSchema = object({
12392
12408
  */
12393
12409
  transcodes: boolean(),
12394
12410
  /** One-line explanation of why this stream won — for logs / debug UI. */
12395
- reason: string()
12411
+ reason: string(),
12412
+ /**
12413
+ * The broker profile slot this source is bound to, when it is bound.
12414
+ *
12415
+ * Answered HERE because every consumer needs it and none of them can get it
12416
+ * from the `camStreamId` alone. Alexa wrote `profileForCamStream` for it —
12417
+ * a second cap read plus a `null` branch — and HomeKit was about to write
12418
+ * the same function a second time.
12419
+ *
12420
+ * Absent when the source has no slot, which a caller passing
12421
+ * `requireProfileBound` can never see.
12422
+ */
12423
+ profile: CamProfileSchema.optional(),
12424
+ /** The broker id of that slot, for logs that must name what was dialled. */
12425
+ brokerId: string().optional(),
12426
+ /**
12427
+ * The broker restream URL to dial for this stream.
12428
+ *
12429
+ * An exporter must never open the camera's own URL — the broker is the one
12430
+ * that dials the camera, and every consumer goes through its restream. So
12431
+ * the picker answers with the thing a consumer may actually use, instead of
12432
+ * naming a source and leaving each caller to look the URL up.
12433
+ */
12434
+ url: string().optional(),
12435
+ /**
12436
+ * Frames per second this stream really delivers, and where the number came
12437
+ * from.
12438
+ *
12439
+ * It is here because getting it wrong is expensive and silent: a HomeKit
12440
+ * accessory advertised 720p at 24 fps while the slot serving it ran at 9,
12441
+ * and the controller rendered nothing at all. The source is carried with the
12442
+ * value for the same reason the bitrate evidence is: `published` is what the
12443
+ * publisher declares and `measured` is what the broker observed, and they
12444
+ * are not interchangeable.
12445
+ */
12446
+ fps: number().positive().optional(),
12447
+ fpsSource: _enum(["published", "measured"]).optional()
12396
12448
  });
12397
12449
  /**
12398
12450
  * Camera streams — device-scoped facade over the system `stream-broker`.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-homematic",
3
- "version": "1.2.108",
3
+ "version": "1.2.109",
4
4
  "description": "Homematic / HomematicIP (CCU3 / RaspberryMatic) device-provider addon for CamStack — wraps the nodehomematic library",
5
5
  "keywords": [
6
6
  "camstack",