@camstack/addon-provider-amcrest 0.2.109 → 0.2.111

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
@@ -12287,7 +12287,23 @@ var PickStreamRequirementsSchema = object({
12287
12287
  * This is what lets one picker serve both the bypass and the full source
12288
12288
  * choice, instead of a consumer scoring privately when the bypass misses.
12289
12289
  */
12290
- allowTranscode: boolean().optional()
12290
+ allowTranscode: boolean().optional(),
12291
+ /**
12292
+ * Consider ONLY streams the broker has bound to a profile slot.
12293
+ *
12294
+ * A consumer that dials the broker — which is every exporter, since none
12295
+ * of them may open the camera's own URL — can do nothing with a source
12296
+ * that has no slot: there is no restream to dial. Without this the picker
12297
+ * can name such a stream, and each consumer discovers the dead end for
12298
+ * itself: Alexa's `profileForCamStream` returns `null` and it quietly
12299
+ * falls back, and HomeKit would have had to grow the same function again.
12300
+ *
12301
+ * Default `false`, and deliberately so: the BROKER itself picks through
12302
+ * here when it decides which source to BIND to a slot
12303
+ * (`computeInitialAssignment`), and it must see the unbound ones or it
12304
+ * could never bind them.
12305
+ */
12306
+ requireProfileBound: boolean().optional()
12291
12307
  }).readonly();
12292
12308
  var PickStreamPreferencesSchema = object({
12293
12309
  /**
@@ -12328,7 +12344,43 @@ var PickedCamStreamSchema = object({
12328
12344
  */
12329
12345
  transcodes: boolean(),
12330
12346
  /** One-line explanation of why this stream won — for logs / debug UI. */
12331
- reason: string()
12347
+ reason: string(),
12348
+ /**
12349
+ * The broker profile slot this source is bound to, when it is bound.
12350
+ *
12351
+ * Answered HERE because every consumer needs it and none of them can get it
12352
+ * from the `camStreamId` alone. Alexa wrote `profileForCamStream` for it —
12353
+ * a second cap read plus a `null` branch — and HomeKit was about to write
12354
+ * the same function a second time.
12355
+ *
12356
+ * Absent when the source has no slot, which a caller passing
12357
+ * `requireProfileBound` can never see.
12358
+ */
12359
+ profile: CamProfileSchema.optional(),
12360
+ /** The broker id of that slot, for logs that must name what was dialled. */
12361
+ brokerId: string().optional(),
12362
+ /**
12363
+ * The broker restream URL to dial for this stream.
12364
+ *
12365
+ * An exporter must never open the camera's own URL — the broker is the one
12366
+ * that dials the camera, and every consumer goes through its restream. So
12367
+ * the picker answers with the thing a consumer may actually use, instead of
12368
+ * naming a source and leaving each caller to look the URL up.
12369
+ */
12370
+ url: string().optional(),
12371
+ /**
12372
+ * Frames per second this stream really delivers, and where the number came
12373
+ * from.
12374
+ *
12375
+ * It is here because getting it wrong is expensive and silent: a HomeKit
12376
+ * accessory advertised 720p at 24 fps while the slot serving it ran at 9,
12377
+ * and the controller rendered nothing at all. The source is carried with the
12378
+ * value for the same reason the bitrate evidence is: `published` is what the
12379
+ * publisher declares and `measured` is what the broker observed, and they
12380
+ * are not interchangeable.
12381
+ */
12382
+ fps: number().positive().optional(),
12383
+ fpsSource: _enum(["published", "measured"]).optional()
12332
12384
  });
12333
12385
  /**
12334
12386
  * Camera streams — device-scoped facade over the system `stream-broker`.
package/dist/addon.mjs CHANGED
@@ -12288,7 +12288,23 @@ var PickStreamRequirementsSchema = object({
12288
12288
  * This is what lets one picker serve both the bypass and the full source
12289
12289
  * choice, instead of a consumer scoring privately when the bypass misses.
12290
12290
  */
12291
- allowTranscode: boolean().optional()
12291
+ allowTranscode: boolean().optional(),
12292
+ /**
12293
+ * Consider ONLY streams the broker has bound to a profile slot.
12294
+ *
12295
+ * A consumer that dials the broker — which is every exporter, since none
12296
+ * of them may open the camera's own URL — can do nothing with a source
12297
+ * that has no slot: there is no restream to dial. Without this the picker
12298
+ * can name such a stream, and each consumer discovers the dead end for
12299
+ * itself: Alexa's `profileForCamStream` returns `null` and it quietly
12300
+ * falls back, and HomeKit would have had to grow the same function again.
12301
+ *
12302
+ * Default `false`, and deliberately so: the BROKER itself picks through
12303
+ * here when it decides which source to BIND to a slot
12304
+ * (`computeInitialAssignment`), and it must see the unbound ones or it
12305
+ * could never bind them.
12306
+ */
12307
+ requireProfileBound: boolean().optional()
12292
12308
  }).readonly();
12293
12309
  var PickStreamPreferencesSchema = object({
12294
12310
  /**
@@ -12329,7 +12345,43 @@ var PickedCamStreamSchema = object({
12329
12345
  */
12330
12346
  transcodes: boolean(),
12331
12347
  /** One-line explanation of why this stream won — for logs / debug UI. */
12332
- reason: string()
12348
+ reason: string(),
12349
+ /**
12350
+ * The broker profile slot this source is bound to, when it is bound.
12351
+ *
12352
+ * Answered HERE because every consumer needs it and none of them can get it
12353
+ * from the `camStreamId` alone. Alexa wrote `profileForCamStream` for it —
12354
+ * a second cap read plus a `null` branch — and HomeKit was about to write
12355
+ * the same function a second time.
12356
+ *
12357
+ * Absent when the source has no slot, which a caller passing
12358
+ * `requireProfileBound` can never see.
12359
+ */
12360
+ profile: CamProfileSchema.optional(),
12361
+ /** The broker id of that slot, for logs that must name what was dialled. */
12362
+ brokerId: string().optional(),
12363
+ /**
12364
+ * The broker restream URL to dial for this stream.
12365
+ *
12366
+ * An exporter must never open the camera's own URL — the broker is the one
12367
+ * that dials the camera, and every consumer goes through its restream. So
12368
+ * the picker answers with the thing a consumer may actually use, instead of
12369
+ * naming a source and leaving each caller to look the URL up.
12370
+ */
12371
+ url: string().optional(),
12372
+ /**
12373
+ * Frames per second this stream really delivers, and where the number came
12374
+ * from.
12375
+ *
12376
+ * It is here because getting it wrong is expensive and silent: a HomeKit
12377
+ * accessory advertised 720p at 24 fps while the slot serving it ran at 9,
12378
+ * and the controller rendered nothing at all. The source is carried with the
12379
+ * value for the same reason the bitrate evidence is: `published` is what the
12380
+ * publisher declares and `measured` is what the broker observed, and they
12381
+ * are not interchangeable.
12382
+ */
12383
+ fps: number().positive().optional(),
12384
+ fpsSource: _enum(["published", "measured"]).optional()
12333
12385
  });
12334
12386
  /**
12335
12387
  * 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-amcrest",
3
- "version": "0.2.109",
3
+ "version": "0.2.111",
4
4
  "description": "Amcrest/Dahua camera device provider addon for CamStack — Dahua CGI over HTTP(S) with digest auth (snapshot, RTSP catalog, PTZ, image/day-night config)",
5
5
  "keywords": [
6
6
  "camstack",