@camstack/addon-provider-dreame 0.2.108 → 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
@@ -65069,7 +65069,23 @@ var PickStreamRequirementsSchema = object({
65069
65069
  * This is what lets one picker serve both the bypass and the full source
65070
65070
  * choice, instead of a consumer scoring privately when the bypass misses.
65071
65071
  */
65072
- allowTranscode: boolean().optional()
65072
+ allowTranscode: boolean().optional(),
65073
+ /**
65074
+ * Consider ONLY streams the broker has bound to a profile slot.
65075
+ *
65076
+ * A consumer that dials the broker — which is every exporter, since none
65077
+ * of them may open the camera's own URL — can do nothing with a source
65078
+ * that has no slot: there is no restream to dial. Without this the picker
65079
+ * can name such a stream, and each consumer discovers the dead end for
65080
+ * itself: Alexa's `profileForCamStream` returns `null` and it quietly
65081
+ * falls back, and HomeKit would have had to grow the same function again.
65082
+ *
65083
+ * Default `false`, and deliberately so: the BROKER itself picks through
65084
+ * here when it decides which source to BIND to a slot
65085
+ * (`computeInitialAssignment`), and it must see the unbound ones or it
65086
+ * could never bind them.
65087
+ */
65088
+ requireProfileBound: boolean().optional()
65073
65089
  }).readonly();
65074
65090
  var PickStreamPreferencesSchema = object({
65075
65091
  /**
@@ -65110,7 +65126,43 @@ var PickedCamStreamSchema = object({
65110
65126
  */
65111
65127
  transcodes: boolean(),
65112
65128
  /** One-line explanation of why this stream won — for logs / debug UI. */
65113
- reason: string()
65129
+ reason: string(),
65130
+ /**
65131
+ * The broker profile slot this source is bound to, when it is bound.
65132
+ *
65133
+ * Answered HERE because every consumer needs it and none of them can get it
65134
+ * from the `camStreamId` alone. Alexa wrote `profileForCamStream` for it —
65135
+ * a second cap read plus a `null` branch — and HomeKit was about to write
65136
+ * the same function a second time.
65137
+ *
65138
+ * Absent when the source has no slot, which a caller passing
65139
+ * `requireProfileBound` can never see.
65140
+ */
65141
+ profile: CamProfileSchema.optional(),
65142
+ /** The broker id of that slot, for logs that must name what was dialled. */
65143
+ brokerId: string().optional(),
65144
+ /**
65145
+ * The broker restream URL to dial for this stream.
65146
+ *
65147
+ * An exporter must never open the camera's own URL — the broker is the one
65148
+ * that dials the camera, and every consumer goes through its restream. So
65149
+ * the picker answers with the thing a consumer may actually use, instead of
65150
+ * naming a source and leaving each caller to look the URL up.
65151
+ */
65152
+ url: string().optional(),
65153
+ /**
65154
+ * Frames per second this stream really delivers, and where the number came
65155
+ * from.
65156
+ *
65157
+ * It is here because getting it wrong is expensive and silent: a HomeKit
65158
+ * accessory advertised 720p at 24 fps while the slot serving it ran at 9,
65159
+ * and the controller rendered nothing at all. The source is carried with the
65160
+ * value for the same reason the bitrate evidence is: `published` is what the
65161
+ * publisher declares and `measured` is what the broker observed, and they
65162
+ * are not interchangeable.
65163
+ */
65164
+ fps: number().positive().optional(),
65165
+ fpsSource: _enum(["published", "measured"]).optional()
65114
65166
  });
65115
65167
  /**
65116
65168
  * Camera streams — device-scoped facade over the system `stream-broker`.
package/dist/addon.mjs CHANGED
@@ -65066,7 +65066,23 @@ var PickStreamRequirementsSchema = object({
65066
65066
  * This is what lets one picker serve both the bypass and the full source
65067
65067
  * choice, instead of a consumer scoring privately when the bypass misses.
65068
65068
  */
65069
- allowTranscode: boolean().optional()
65069
+ allowTranscode: boolean().optional(),
65070
+ /**
65071
+ * Consider ONLY streams the broker has bound to a profile slot.
65072
+ *
65073
+ * A consumer that dials the broker — which is every exporter, since none
65074
+ * of them may open the camera's own URL — can do nothing with a source
65075
+ * that has no slot: there is no restream to dial. Without this the picker
65076
+ * can name such a stream, and each consumer discovers the dead end for
65077
+ * itself: Alexa's `profileForCamStream` returns `null` and it quietly
65078
+ * falls back, and HomeKit would have had to grow the same function again.
65079
+ *
65080
+ * Default `false`, and deliberately so: the BROKER itself picks through
65081
+ * here when it decides which source to BIND to a slot
65082
+ * (`computeInitialAssignment`), and it must see the unbound ones or it
65083
+ * could never bind them.
65084
+ */
65085
+ requireProfileBound: boolean().optional()
65070
65086
  }).readonly();
65071
65087
  var PickStreamPreferencesSchema = object({
65072
65088
  /**
@@ -65107,7 +65123,43 @@ var PickedCamStreamSchema = object({
65107
65123
  */
65108
65124
  transcodes: boolean(),
65109
65125
  /** One-line explanation of why this stream won — for logs / debug UI. */
65110
- reason: string()
65126
+ reason: string(),
65127
+ /**
65128
+ * The broker profile slot this source is bound to, when it is bound.
65129
+ *
65130
+ * Answered HERE because every consumer needs it and none of them can get it
65131
+ * from the `camStreamId` alone. Alexa wrote `profileForCamStream` for it —
65132
+ * a second cap read plus a `null` branch — and HomeKit was about to write
65133
+ * the same function a second time.
65134
+ *
65135
+ * Absent when the source has no slot, which a caller passing
65136
+ * `requireProfileBound` can never see.
65137
+ */
65138
+ profile: CamProfileSchema.optional(),
65139
+ /** The broker id of that slot, for logs that must name what was dialled. */
65140
+ brokerId: string().optional(),
65141
+ /**
65142
+ * The broker restream URL to dial for this stream.
65143
+ *
65144
+ * An exporter must never open the camera's own URL — the broker is the one
65145
+ * that dials the camera, and every consumer goes through its restream. So
65146
+ * the picker answers with the thing a consumer may actually use, instead of
65147
+ * naming a source and leaving each caller to look the URL up.
65148
+ */
65149
+ url: string().optional(),
65150
+ /**
65151
+ * Frames per second this stream really delivers, and where the number came
65152
+ * from.
65153
+ *
65154
+ * It is here because getting it wrong is expensive and silent: a HomeKit
65155
+ * accessory advertised 720p at 24 fps while the slot serving it ran at 9,
65156
+ * and the controller rendered nothing at all. The source is carried with the
65157
+ * value for the same reason the bitrate evidence is: `published` is what the
65158
+ * publisher declares and `measured` is what the broker observed, and they
65159
+ * are not interchangeable.
65160
+ */
65161
+ fps: number().positive().optional(),
65162
+ fpsSource: _enum(["published", "measured"]).optional()
65111
65163
  });
65112
65164
  /**
65113
65165
  * 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-dreame",
3
- "version": "0.2.108",
3
+ "version": "0.2.109",
4
4
  "description": "Dreame robot-vacuum / lawn-mower device-provider addon for CamStack — wraps the @apocaliss92/nodedreame Dreamehome cloud client",
5
5
  "keywords": [
6
6
  "camstack",