@camstack/addon-provider-gree 0.2.106 → 0.2.107

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
@@ -12295,7 +12295,23 @@ var PickStreamRequirementsSchema = object({
12295
12295
  * This is what lets one picker serve both the bypass and the full source
12296
12296
  * choice, instead of a consumer scoring privately when the bypass misses.
12297
12297
  */
12298
- allowTranscode: boolean().optional()
12298
+ allowTranscode: boolean().optional(),
12299
+ /**
12300
+ * Consider ONLY streams the broker has bound to a profile slot.
12301
+ *
12302
+ * A consumer that dials the broker — which is every exporter, since none
12303
+ * of them may open the camera's own URL — can do nothing with a source
12304
+ * that has no slot: there is no restream to dial. Without this the picker
12305
+ * can name such a stream, and each consumer discovers the dead end for
12306
+ * itself: Alexa's `profileForCamStream` returns `null` and it quietly
12307
+ * falls back, and HomeKit would have had to grow the same function again.
12308
+ *
12309
+ * Default `false`, and deliberately so: the BROKER itself picks through
12310
+ * here when it decides which source to BIND to a slot
12311
+ * (`computeInitialAssignment`), and it must see the unbound ones or it
12312
+ * could never bind them.
12313
+ */
12314
+ requireProfileBound: boolean().optional()
12299
12315
  }).readonly();
12300
12316
  var PickStreamPreferencesSchema = object({
12301
12317
  /**
@@ -12336,7 +12352,43 @@ var PickedCamStreamSchema = object({
12336
12352
  */
12337
12353
  transcodes: boolean(),
12338
12354
  /** One-line explanation of why this stream won — for logs / debug UI. */
12339
- reason: string()
12355
+ reason: string(),
12356
+ /**
12357
+ * The broker profile slot this source is bound to, when it is bound.
12358
+ *
12359
+ * Answered HERE because every consumer needs it and none of them can get it
12360
+ * from the `camStreamId` alone. Alexa wrote `profileForCamStream` for it —
12361
+ * a second cap read plus a `null` branch — and HomeKit was about to write
12362
+ * the same function a second time.
12363
+ *
12364
+ * Absent when the source has no slot, which a caller passing
12365
+ * `requireProfileBound` can never see.
12366
+ */
12367
+ profile: CamProfileSchema.optional(),
12368
+ /** The broker id of that slot, for logs that must name what was dialled. */
12369
+ brokerId: string().optional(),
12370
+ /**
12371
+ * The broker restream URL to dial for this stream.
12372
+ *
12373
+ * An exporter must never open the camera's own URL — the broker is the one
12374
+ * that dials the camera, and every consumer goes through its restream. So
12375
+ * the picker answers with the thing a consumer may actually use, instead of
12376
+ * naming a source and leaving each caller to look the URL up.
12377
+ */
12378
+ url: string().optional(),
12379
+ /**
12380
+ * Frames per second this stream really delivers, and where the number came
12381
+ * from.
12382
+ *
12383
+ * It is here because getting it wrong is expensive and silent: a HomeKit
12384
+ * accessory advertised 720p at 24 fps while the slot serving it ran at 9,
12385
+ * and the controller rendered nothing at all. The source is carried with the
12386
+ * value for the same reason the bitrate evidence is: `published` is what the
12387
+ * publisher declares and `measured` is what the broker observed, and they
12388
+ * are not interchangeable.
12389
+ */
12390
+ fps: number().positive().optional(),
12391
+ fpsSource: _enum(["published", "measured"]).optional()
12340
12392
  });
12341
12393
  /**
12342
12394
  * Camera streams — device-scoped facade over the system `stream-broker`.
package/dist/addon.mjs CHANGED
@@ -12294,7 +12294,23 @@ var PickStreamRequirementsSchema = object({
12294
12294
  * This is what lets one picker serve both the bypass and the full source
12295
12295
  * choice, instead of a consumer scoring privately when the bypass misses.
12296
12296
  */
12297
- allowTranscode: boolean().optional()
12297
+ allowTranscode: boolean().optional(),
12298
+ /**
12299
+ * Consider ONLY streams the broker has bound to a profile slot.
12300
+ *
12301
+ * A consumer that dials the broker — which is every exporter, since none
12302
+ * of them may open the camera's own URL — can do nothing with a source
12303
+ * that has no slot: there is no restream to dial. Without this the picker
12304
+ * can name such a stream, and each consumer discovers the dead end for
12305
+ * itself: Alexa's `profileForCamStream` returns `null` and it quietly
12306
+ * falls back, and HomeKit would have had to grow the same function again.
12307
+ *
12308
+ * Default `false`, and deliberately so: the BROKER itself picks through
12309
+ * here when it decides which source to BIND to a slot
12310
+ * (`computeInitialAssignment`), and it must see the unbound ones or it
12311
+ * could never bind them.
12312
+ */
12313
+ requireProfileBound: boolean().optional()
12298
12314
  }).readonly();
12299
12315
  var PickStreamPreferencesSchema = object({
12300
12316
  /**
@@ -12335,7 +12351,43 @@ var PickedCamStreamSchema = object({
12335
12351
  */
12336
12352
  transcodes: boolean(),
12337
12353
  /** One-line explanation of why this stream won — for logs / debug UI. */
12338
- reason: string()
12354
+ reason: string(),
12355
+ /**
12356
+ * The broker profile slot this source is bound to, when it is bound.
12357
+ *
12358
+ * Answered HERE because every consumer needs it and none of them can get it
12359
+ * from the `camStreamId` alone. Alexa wrote `profileForCamStream` for it —
12360
+ * a second cap read plus a `null` branch — and HomeKit was about to write
12361
+ * the same function a second time.
12362
+ *
12363
+ * Absent when the source has no slot, which a caller passing
12364
+ * `requireProfileBound` can never see.
12365
+ */
12366
+ profile: CamProfileSchema.optional(),
12367
+ /** The broker id of that slot, for logs that must name what was dialled. */
12368
+ brokerId: string().optional(),
12369
+ /**
12370
+ * The broker restream URL to dial for this stream.
12371
+ *
12372
+ * An exporter must never open the camera's own URL — the broker is the one
12373
+ * that dials the camera, and every consumer goes through its restream. So
12374
+ * the picker answers with the thing a consumer may actually use, instead of
12375
+ * naming a source and leaving each caller to look the URL up.
12376
+ */
12377
+ url: string().optional(),
12378
+ /**
12379
+ * Frames per second this stream really delivers, and where the number came
12380
+ * from.
12381
+ *
12382
+ * It is here because getting it wrong is expensive and silent: a HomeKit
12383
+ * accessory advertised 720p at 24 fps while the slot serving it ran at 9,
12384
+ * and the controller rendered nothing at all. The source is carried with the
12385
+ * value for the same reason the bitrate evidence is: `published` is what the
12386
+ * publisher declares and `measured` is what the broker observed, and they
12387
+ * are not interchangeable.
12388
+ */
12389
+ fps: number().positive().optional(),
12390
+ fpsSource: _enum(["published", "measured"]).optional()
12339
12391
  });
12340
12392
  /**
12341
12393
  * 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-gree",
3
- "version": "0.2.106",
3
+ "version": "0.2.107",
4
4
  "description": "Gree air-conditioner device-provider addon for CamStack — wraps the @apocaliss92/nodegree local-UDP client (LAN discovery + AES control), exposing climate-control and fan-control",
5
5
  "keywords": [
6
6
  "camstack",