@camstack/addon-provider-rademacher 0.2.106 → 0.2.108

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
@@ -13277,7 +13277,23 @@ var PickStreamRequirementsSchema = object({
13277
13277
  * This is what lets one picker serve both the bypass and the full source
13278
13278
  * choice, instead of a consumer scoring privately when the bypass misses.
13279
13279
  */
13280
- allowTranscode: boolean().optional()
13280
+ allowTranscode: boolean().optional(),
13281
+ /**
13282
+ * Consider ONLY streams the broker has bound to a profile slot.
13283
+ *
13284
+ * A consumer that dials the broker — which is every exporter, since none
13285
+ * of them may open the camera's own URL — can do nothing with a source
13286
+ * that has no slot: there is no restream to dial. Without this the picker
13287
+ * can name such a stream, and each consumer discovers the dead end for
13288
+ * itself: Alexa's `profileForCamStream` returns `null` and it quietly
13289
+ * falls back, and HomeKit would have had to grow the same function again.
13290
+ *
13291
+ * Default `false`, and deliberately so: the BROKER itself picks through
13292
+ * here when it decides which source to BIND to a slot
13293
+ * (`computeInitialAssignment`), and it must see the unbound ones or it
13294
+ * could never bind them.
13295
+ */
13296
+ requireProfileBound: boolean().optional()
13281
13297
  }).readonly();
13282
13298
  var PickStreamPreferencesSchema = object({
13283
13299
  /**
@@ -13318,7 +13334,43 @@ var PickedCamStreamSchema = object({
13318
13334
  */
13319
13335
  transcodes: boolean(),
13320
13336
  /** One-line explanation of why this stream won — for logs / debug UI. */
13321
- reason: string()
13337
+ reason: string(),
13338
+ /**
13339
+ * The broker profile slot this source is bound to, when it is bound.
13340
+ *
13341
+ * Answered HERE because every consumer needs it and none of them can get it
13342
+ * from the `camStreamId` alone. Alexa wrote `profileForCamStream` for it —
13343
+ * a second cap read plus a `null` branch — and HomeKit was about to write
13344
+ * the same function a second time.
13345
+ *
13346
+ * Absent when the source has no slot, which a caller passing
13347
+ * `requireProfileBound` can never see.
13348
+ */
13349
+ profile: CamProfileSchema.optional(),
13350
+ /** The broker id of that slot, for logs that must name what was dialled. */
13351
+ brokerId: string().optional(),
13352
+ /**
13353
+ * The broker restream URL to dial for this stream.
13354
+ *
13355
+ * An exporter must never open the camera's own URL — the broker is the one
13356
+ * that dials the camera, and every consumer goes through its restream. So
13357
+ * the picker answers with the thing a consumer may actually use, instead of
13358
+ * naming a source and leaving each caller to look the URL up.
13359
+ */
13360
+ url: string().optional(),
13361
+ /**
13362
+ * Frames per second this stream really delivers, and where the number came
13363
+ * from.
13364
+ *
13365
+ * It is here because getting it wrong is expensive and silent: a HomeKit
13366
+ * accessory advertised 720p at 24 fps while the slot serving it ran at 9,
13367
+ * and the controller rendered nothing at all. The source is carried with the
13368
+ * value for the same reason the bitrate evidence is: `published` is what the
13369
+ * publisher declares and `measured` is what the broker observed, and they
13370
+ * are not interchangeable.
13371
+ */
13372
+ fps: number().positive().optional(),
13373
+ fpsSource: _enum(["published", "measured"]).optional()
13322
13374
  });
13323
13375
  /**
13324
13376
  * Camera streams — device-scoped facade over the system `stream-broker`.
package/dist/addon.mjs CHANGED
@@ -13276,7 +13276,23 @@ var PickStreamRequirementsSchema = object({
13276
13276
  * This is what lets one picker serve both the bypass and the full source
13277
13277
  * choice, instead of a consumer scoring privately when the bypass misses.
13278
13278
  */
13279
- allowTranscode: boolean().optional()
13279
+ allowTranscode: boolean().optional(),
13280
+ /**
13281
+ * Consider ONLY streams the broker has bound to a profile slot.
13282
+ *
13283
+ * A consumer that dials the broker — which is every exporter, since none
13284
+ * of them may open the camera's own URL — can do nothing with a source
13285
+ * that has no slot: there is no restream to dial. Without this the picker
13286
+ * can name such a stream, and each consumer discovers the dead end for
13287
+ * itself: Alexa's `profileForCamStream` returns `null` and it quietly
13288
+ * falls back, and HomeKit would have had to grow the same function again.
13289
+ *
13290
+ * Default `false`, and deliberately so: the BROKER itself picks through
13291
+ * here when it decides which source to BIND to a slot
13292
+ * (`computeInitialAssignment`), and it must see the unbound ones or it
13293
+ * could never bind them.
13294
+ */
13295
+ requireProfileBound: boolean().optional()
13280
13296
  }).readonly();
13281
13297
  var PickStreamPreferencesSchema = object({
13282
13298
  /**
@@ -13317,7 +13333,43 @@ var PickedCamStreamSchema = object({
13317
13333
  */
13318
13334
  transcodes: boolean(),
13319
13335
  /** One-line explanation of why this stream won — for logs / debug UI. */
13320
- reason: string()
13336
+ reason: string(),
13337
+ /**
13338
+ * The broker profile slot this source is bound to, when it is bound.
13339
+ *
13340
+ * Answered HERE because every consumer needs it and none of them can get it
13341
+ * from the `camStreamId` alone. Alexa wrote `profileForCamStream` for it —
13342
+ * a second cap read plus a `null` branch — and HomeKit was about to write
13343
+ * the same function a second time.
13344
+ *
13345
+ * Absent when the source has no slot, which a caller passing
13346
+ * `requireProfileBound` can never see.
13347
+ */
13348
+ profile: CamProfileSchema.optional(),
13349
+ /** The broker id of that slot, for logs that must name what was dialled. */
13350
+ brokerId: string().optional(),
13351
+ /**
13352
+ * The broker restream URL to dial for this stream.
13353
+ *
13354
+ * An exporter must never open the camera's own URL — the broker is the one
13355
+ * that dials the camera, and every consumer goes through its restream. So
13356
+ * the picker answers with the thing a consumer may actually use, instead of
13357
+ * naming a source and leaving each caller to look the URL up.
13358
+ */
13359
+ url: string().optional(),
13360
+ /**
13361
+ * Frames per second this stream really delivers, and where the number came
13362
+ * from.
13363
+ *
13364
+ * It is here because getting it wrong is expensive and silent: a HomeKit
13365
+ * accessory advertised 720p at 24 fps while the slot serving it ran at 9,
13366
+ * and the controller rendered nothing at all. The source is carried with the
13367
+ * value for the same reason the bitrate evidence is: `published` is what the
13368
+ * publisher declares and `measured` is what the broker observed, and they
13369
+ * are not interchangeable.
13370
+ */
13371
+ fps: number().positive().optional(),
13372
+ fpsSource: _enum(["published", "measured"]).optional()
13321
13373
  });
13322
13374
  /**
13323
13375
  * 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-rademacher",
3
- "version": "0.2.106",
3
+ "version": "0.2.108",
4
4
  "description": "Rademacher HomePilot device-provider addon for CamStack — wraps the @apocaliss92/noderademacher local-hub client (roller shutters over the cover cap)",
5
5
  "keywords": [
6
6
  "camstack",