@camstack/addon-provider-petkit 0.2.107 → 0.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
@@ -13394,7 +13394,23 @@ var PickStreamRequirementsSchema = object({
13394
13394
  * This is what lets one picker serve both the bypass and the full source
13395
13395
  * choice, instead of a consumer scoring privately when the bypass misses.
13396
13396
  */
13397
- allowTranscode: boolean().optional()
13397
+ allowTranscode: boolean().optional(),
13398
+ /**
13399
+ * Consider ONLY streams the broker has bound to a profile slot.
13400
+ *
13401
+ * A consumer that dials the broker — which is every exporter, since none
13402
+ * of them may open the camera's own URL — can do nothing with a source
13403
+ * that has no slot: there is no restream to dial. Without this the picker
13404
+ * can name such a stream, and each consumer discovers the dead end for
13405
+ * itself: Alexa's `profileForCamStream` returns `null` and it quietly
13406
+ * falls back, and HomeKit would have had to grow the same function again.
13407
+ *
13408
+ * Default `false`, and deliberately so: the BROKER itself picks through
13409
+ * here when it decides which source to BIND to a slot
13410
+ * (`computeInitialAssignment`), and it must see the unbound ones or it
13411
+ * could never bind them.
13412
+ */
13413
+ requireProfileBound: boolean().optional()
13398
13414
  }).readonly();
13399
13415
  var PickStreamPreferencesSchema = object({
13400
13416
  /**
@@ -13435,7 +13451,43 @@ var PickedCamStreamSchema = object({
13435
13451
  */
13436
13452
  transcodes: boolean(),
13437
13453
  /** One-line explanation of why this stream won — for logs / debug UI. */
13438
- reason: string()
13454
+ reason: string(),
13455
+ /**
13456
+ * The broker profile slot this source is bound to, when it is bound.
13457
+ *
13458
+ * Answered HERE because every consumer needs it and none of them can get it
13459
+ * from the `camStreamId` alone. Alexa wrote `profileForCamStream` for it —
13460
+ * a second cap read plus a `null` branch — and HomeKit was about to write
13461
+ * the same function a second time.
13462
+ *
13463
+ * Absent when the source has no slot, which a caller passing
13464
+ * `requireProfileBound` can never see.
13465
+ */
13466
+ profile: CamProfileSchema.optional(),
13467
+ /** The broker id of that slot, for logs that must name what was dialled. */
13468
+ brokerId: string().optional(),
13469
+ /**
13470
+ * The broker restream URL to dial for this stream.
13471
+ *
13472
+ * An exporter must never open the camera's own URL — the broker is the one
13473
+ * that dials the camera, and every consumer goes through its restream. So
13474
+ * the picker answers with the thing a consumer may actually use, instead of
13475
+ * naming a source and leaving each caller to look the URL up.
13476
+ */
13477
+ url: string().optional(),
13478
+ /**
13479
+ * Frames per second this stream really delivers, and where the number came
13480
+ * from.
13481
+ *
13482
+ * It is here because getting it wrong is expensive and silent: a HomeKit
13483
+ * accessory advertised 720p at 24 fps while the slot serving it ran at 9,
13484
+ * and the controller rendered nothing at all. The source is carried with the
13485
+ * value for the same reason the bitrate evidence is: `published` is what the
13486
+ * publisher declares and `measured` is what the broker observed, and they
13487
+ * are not interchangeable.
13488
+ */
13489
+ fps: number().positive().optional(),
13490
+ fpsSource: _enum(["published", "measured"]).optional()
13439
13491
  });
13440
13492
  /**
13441
13493
  * Camera streams — device-scoped facade over the system `stream-broker`.
package/dist/addon.mjs CHANGED
@@ -13393,7 +13393,23 @@ var PickStreamRequirementsSchema = object({
13393
13393
  * This is what lets one picker serve both the bypass and the full source
13394
13394
  * choice, instead of a consumer scoring privately when the bypass misses.
13395
13395
  */
13396
- allowTranscode: boolean().optional()
13396
+ allowTranscode: boolean().optional(),
13397
+ /**
13398
+ * Consider ONLY streams the broker has bound to a profile slot.
13399
+ *
13400
+ * A consumer that dials the broker — which is every exporter, since none
13401
+ * of them may open the camera's own URL — can do nothing with a source
13402
+ * that has no slot: there is no restream to dial. Without this the picker
13403
+ * can name such a stream, and each consumer discovers the dead end for
13404
+ * itself: Alexa's `profileForCamStream` returns `null` and it quietly
13405
+ * falls back, and HomeKit would have had to grow the same function again.
13406
+ *
13407
+ * Default `false`, and deliberately so: the BROKER itself picks through
13408
+ * here when it decides which source to BIND to a slot
13409
+ * (`computeInitialAssignment`), and it must see the unbound ones or it
13410
+ * could never bind them.
13411
+ */
13412
+ requireProfileBound: boolean().optional()
13397
13413
  }).readonly();
13398
13414
  var PickStreamPreferencesSchema = object({
13399
13415
  /**
@@ -13434,7 +13450,43 @@ var PickedCamStreamSchema = object({
13434
13450
  */
13435
13451
  transcodes: boolean(),
13436
13452
  /** One-line explanation of why this stream won — for logs / debug UI. */
13437
- reason: string()
13453
+ reason: string(),
13454
+ /**
13455
+ * The broker profile slot this source is bound to, when it is bound.
13456
+ *
13457
+ * Answered HERE because every consumer needs it and none of them can get it
13458
+ * from the `camStreamId` alone. Alexa wrote `profileForCamStream` for it —
13459
+ * a second cap read plus a `null` branch — and HomeKit was about to write
13460
+ * the same function a second time.
13461
+ *
13462
+ * Absent when the source has no slot, which a caller passing
13463
+ * `requireProfileBound` can never see.
13464
+ */
13465
+ profile: CamProfileSchema.optional(),
13466
+ /** The broker id of that slot, for logs that must name what was dialled. */
13467
+ brokerId: string().optional(),
13468
+ /**
13469
+ * The broker restream URL to dial for this stream.
13470
+ *
13471
+ * An exporter must never open the camera's own URL — the broker is the one
13472
+ * that dials the camera, and every consumer goes through its restream. So
13473
+ * the picker answers with the thing a consumer may actually use, instead of
13474
+ * naming a source and leaving each caller to look the URL up.
13475
+ */
13476
+ url: string().optional(),
13477
+ /**
13478
+ * Frames per second this stream really delivers, and where the number came
13479
+ * from.
13480
+ *
13481
+ * It is here because getting it wrong is expensive and silent: a HomeKit
13482
+ * accessory advertised 720p at 24 fps while the slot serving it ran at 9,
13483
+ * and the controller rendered nothing at all. The source is carried with the
13484
+ * value for the same reason the bitrate evidence is: `published` is what the
13485
+ * publisher declares and `measured` is what the broker observed, and they
13486
+ * are not interchangeable.
13487
+ */
13488
+ fps: number().positive().optional(),
13489
+ fpsSource: _enum(["published", "measured"]).optional()
13438
13490
  });
13439
13491
  /**
13440
13492
  * 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-petkit",
3
- "version": "0.2.107",
3
+ "version": "0.2.109",
4
4
  "description": "PetKit smart-feeder device-provider addon for CamStack — wraps the @apocaliss92/nodepetkit PetKit cloud client",
5
5
  "keywords": [
6
6
  "camstack",