@camstack/addon-export-google 0.1.71 → 0.1.72

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.
@@ -12502,7 +12502,23 @@ var PickStreamRequirementsSchema = object({
12502
12502
  * This is what lets one picker serve both the bypass and the full source
12503
12503
  * choice, instead of a consumer scoring privately when the bypass misses.
12504
12504
  */
12505
- allowTranscode: boolean().optional()
12505
+ allowTranscode: boolean().optional(),
12506
+ /**
12507
+ * Consider ONLY streams the broker has bound to a profile slot.
12508
+ *
12509
+ * A consumer that dials the broker — which is every exporter, since none
12510
+ * of them may open the camera's own URL — can do nothing with a source
12511
+ * that has no slot: there is no restream to dial. Without this the picker
12512
+ * can name such a stream, and each consumer discovers the dead end for
12513
+ * itself: Alexa's `profileForCamStream` returns `null` and it quietly
12514
+ * falls back, and HomeKit would have had to grow the same function again.
12515
+ *
12516
+ * Default `false`, and deliberately so: the BROKER itself picks through
12517
+ * here when it decides which source to BIND to a slot
12518
+ * (`computeInitialAssignment`), and it must see the unbound ones or it
12519
+ * could never bind them.
12520
+ */
12521
+ requireProfileBound: boolean().optional()
12506
12522
  }).readonly();
12507
12523
  var PickStreamPreferencesSchema = object({
12508
12524
  /**
@@ -12543,7 +12559,43 @@ var PickedCamStreamSchema = object({
12543
12559
  */
12544
12560
  transcodes: boolean(),
12545
12561
  /** One-line explanation of why this stream won — for logs / debug UI. */
12546
- reason: string()
12562
+ reason: string(),
12563
+ /**
12564
+ * The broker profile slot this source is bound to, when it is bound.
12565
+ *
12566
+ * Answered HERE because every consumer needs it and none of them can get it
12567
+ * from the `camStreamId` alone. Alexa wrote `profileForCamStream` for it —
12568
+ * a second cap read plus a `null` branch — and HomeKit was about to write
12569
+ * the same function a second time.
12570
+ *
12571
+ * Absent when the source has no slot, which a caller passing
12572
+ * `requireProfileBound` can never see.
12573
+ */
12574
+ profile: CamProfileSchema.optional(),
12575
+ /** The broker id of that slot, for logs that must name what was dialled. */
12576
+ brokerId: string().optional(),
12577
+ /**
12578
+ * The broker restream URL to dial for this stream.
12579
+ *
12580
+ * An exporter must never open the camera's own URL — the broker is the one
12581
+ * that dials the camera, and every consumer goes through its restream. So
12582
+ * the picker answers with the thing a consumer may actually use, instead of
12583
+ * naming a source and leaving each caller to look the URL up.
12584
+ */
12585
+ url: string().optional(),
12586
+ /**
12587
+ * Frames per second this stream really delivers, and where the number came
12588
+ * from.
12589
+ *
12590
+ * It is here because getting it wrong is expensive and silent: a HomeKit
12591
+ * accessory advertised 720p at 24 fps while the slot serving it ran at 9,
12592
+ * and the controller rendered nothing at all. The source is carried with the
12593
+ * value for the same reason the bitrate evidence is: `published` is what the
12594
+ * publisher declares and `measured` is what the broker observed, and they
12595
+ * are not interchangeable.
12596
+ */
12597
+ fps: number().positive().optional(),
12598
+ fpsSource: _enum(["published", "measured"]).optional()
12547
12599
  });
12548
12600
  DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), array(CameraStreamSchema).readonly()), method(object({ deviceId: number().int().nonnegative() }), array(ProfileSlotSchema).readonly()), method(object({
12549
12601
  deviceId: number().int().nonnegative(),
@@ -12498,7 +12498,23 @@ var PickStreamRequirementsSchema = object({
12498
12498
  * This is what lets one picker serve both the bypass and the full source
12499
12499
  * choice, instead of a consumer scoring privately when the bypass misses.
12500
12500
  */
12501
- allowTranscode: boolean().optional()
12501
+ allowTranscode: boolean().optional(),
12502
+ /**
12503
+ * Consider ONLY streams the broker has bound to a profile slot.
12504
+ *
12505
+ * A consumer that dials the broker — which is every exporter, since none
12506
+ * of them may open the camera's own URL — can do nothing with a source
12507
+ * that has no slot: there is no restream to dial. Without this the picker
12508
+ * can name such a stream, and each consumer discovers the dead end for
12509
+ * itself: Alexa's `profileForCamStream` returns `null` and it quietly
12510
+ * falls back, and HomeKit would have had to grow the same function again.
12511
+ *
12512
+ * Default `false`, and deliberately so: the BROKER itself picks through
12513
+ * here when it decides which source to BIND to a slot
12514
+ * (`computeInitialAssignment`), and it must see the unbound ones or it
12515
+ * could never bind them.
12516
+ */
12517
+ requireProfileBound: boolean().optional()
12502
12518
  }).readonly();
12503
12519
  var PickStreamPreferencesSchema = object({
12504
12520
  /**
@@ -12539,7 +12555,43 @@ var PickedCamStreamSchema = object({
12539
12555
  */
12540
12556
  transcodes: boolean(),
12541
12557
  /** One-line explanation of why this stream won — for logs / debug UI. */
12542
- reason: string()
12558
+ reason: string(),
12559
+ /**
12560
+ * The broker profile slot this source is bound to, when it is bound.
12561
+ *
12562
+ * Answered HERE because every consumer needs it and none of them can get it
12563
+ * from the `camStreamId` alone. Alexa wrote `profileForCamStream` for it —
12564
+ * a second cap read plus a `null` branch — and HomeKit was about to write
12565
+ * the same function a second time.
12566
+ *
12567
+ * Absent when the source has no slot, which a caller passing
12568
+ * `requireProfileBound` can never see.
12569
+ */
12570
+ profile: CamProfileSchema.optional(),
12571
+ /** The broker id of that slot, for logs that must name what was dialled. */
12572
+ brokerId: string().optional(),
12573
+ /**
12574
+ * The broker restream URL to dial for this stream.
12575
+ *
12576
+ * An exporter must never open the camera's own URL — the broker is the one
12577
+ * that dials the camera, and every consumer goes through its restream. So
12578
+ * the picker answers with the thing a consumer may actually use, instead of
12579
+ * naming a source and leaving each caller to look the URL up.
12580
+ */
12581
+ url: string().optional(),
12582
+ /**
12583
+ * Frames per second this stream really delivers, and where the number came
12584
+ * from.
12585
+ *
12586
+ * It is here because getting it wrong is expensive and silent: a HomeKit
12587
+ * accessory advertised 720p at 24 fps while the slot serving it ran at 9,
12588
+ * and the controller rendered nothing at all. The source is carried with the
12589
+ * value for the same reason the bitrate evidence is: `published` is what the
12590
+ * publisher declares and `measured` is what the broker observed, and they
12591
+ * are not interchangeable.
12592
+ */
12593
+ fps: number().positive().optional(),
12594
+ fpsSource: _enum(["published", "measured"]).optional()
12543
12595
  });
12544
12596
  DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), array(CameraStreamSchema).readonly()), method(object({ deviceId: number().int().nonnegative() }), array(ProfileSlotSchema).readonly()), method(object({
12545
12597
  deviceId: number().int().nonnegative(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-export-google",
3
- "version": "0.1.71",
3
+ "version": "0.1.72",
4
4
  "description": "Google Home export — hub-side smart-home fulfillment (SYNC / QUERY / EXECUTE / DISCONNECT) for the non-camera fleet, served over the hub's own OAuth account link. No Google credential is stored, sent or required.",
5
5
  "keywords": [
6
6
  "camstack",