@camstack/addon-provider-rademacher 0.2.105 → 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
@@ -13277,7 +13277,23 @@ var PickStreamRequirementsSchema = object({
13277
13277
  * This is what lets one picker serve both the bypass and the full source
13278
13278
  * choice, instead of a consumer scoring privately when the bypass misses.
13279
13279
  */
13280
- allowTranscode: boolean().optional()
13280
+ allowTranscode: boolean().optional(),
13281
+ /**
13282
+ * Consider ONLY streams the broker has bound to a profile slot.
13283
+ *
13284
+ * A consumer that dials the broker — which is every exporter, since none
13285
+ * of them may open the camera's own URL — can do nothing with a source
13286
+ * that has no slot: there is no restream to dial. Without this the picker
13287
+ * can name such a stream, and each consumer discovers the dead end for
13288
+ * itself: Alexa's `profileForCamStream` returns `null` and it quietly
13289
+ * falls back, and HomeKit would have had to grow the same function again.
13290
+ *
13291
+ * Default `false`, and deliberately so: the BROKER itself picks through
13292
+ * here when it decides which source to BIND to a slot
13293
+ * (`computeInitialAssignment`), and it must see the unbound ones or it
13294
+ * could never bind them.
13295
+ */
13296
+ requireProfileBound: boolean().optional()
13281
13297
  }).readonly();
13282
13298
  var PickStreamPreferencesSchema = object({
13283
13299
  /**
@@ -13318,7 +13334,43 @@ var PickedCamStreamSchema = object({
13318
13334
  */
13319
13335
  transcodes: boolean(),
13320
13336
  /** One-line explanation of why this stream won — for logs / debug UI. */
13321
- reason: string()
13337
+ reason: string(),
13338
+ /**
13339
+ * The broker profile slot this source is bound to, when it is bound.
13340
+ *
13341
+ * Answered HERE because every consumer needs it and none of them can get it
13342
+ * from the `camStreamId` alone. Alexa wrote `profileForCamStream` for it —
13343
+ * a second cap read plus a `null` branch — and HomeKit was about to write
13344
+ * the same function a second time.
13345
+ *
13346
+ * Absent when the source has no slot, which a caller passing
13347
+ * `requireProfileBound` can never see.
13348
+ */
13349
+ profile: CamProfileSchema.optional(),
13350
+ /** The broker id of that slot, for logs that must name what was dialled. */
13351
+ brokerId: string().optional(),
13352
+ /**
13353
+ * The broker restream URL to dial for this stream.
13354
+ *
13355
+ * An exporter must never open the camera's own URL — the broker is the one
13356
+ * that dials the camera, and every consumer goes through its restream. So
13357
+ * the picker answers with the thing a consumer may actually use, instead of
13358
+ * naming a source and leaving each caller to look the URL up.
13359
+ */
13360
+ url: string().optional(),
13361
+ /**
13362
+ * Frames per second this stream really delivers, and where the number came
13363
+ * from.
13364
+ *
13365
+ * It is here because getting it wrong is expensive and silent: a HomeKit
13366
+ * accessory advertised 720p at 24 fps while the slot serving it ran at 9,
13367
+ * and the controller rendered nothing at all. The source is carried with the
13368
+ * value for the same reason the bitrate evidence is: `published` is what the
13369
+ * publisher declares and `measured` is what the broker observed, and they
13370
+ * are not interchangeable.
13371
+ */
13372
+ fps: number().positive().optional(),
13373
+ fpsSource: _enum(["published", "measured"]).optional()
13322
13374
  });
13323
13375
  /**
13324
13376
  * Camera streams — device-scoped facade over the system `stream-broker`.
@@ -14501,6 +14553,70 @@ var LocationIconAssignmentSchema = object({
14501
14553
  locationKey: string(),
14502
14554
  icon: LocationIconIdSchema
14503
14555
  });
14556
+ /**
14557
+ * One (location, description) assignment as it travels.
14558
+ *
14559
+ * Same key discipline as {@link LocationIconAssignmentSchema}, and for the same
14560
+ * reason: this lived for a while in the post-analysis addon's own settings,
14561
+ * keyed by a HAND-TYPED label matched exactly and case-sensitively. A rename in
14562
+ * the Locations page carried the icon and silently orphaned the description —
14563
+ * two authorities for one thing, joined by two different rules. Now both hang
14564
+ * off the location itself, on `locationIconKey`.
14565
+ */
14566
+ var LocationDescriptionAssignmentSchema = object({
14567
+ locationKey: string(),
14568
+ description: string()
14569
+ });
14570
+ /**
14571
+ * A SITE ZONE — a named part of the property that several locations belong to.
14572
+ *
14573
+ * "Zona notte" holds every bedroom; "Zona giorno" the living room and the
14574
+ * kitchen. A camera belongs to exactly one location, and a location to at most
14575
+ * one zone, so a camera's zone is derived and never stored on the device: the
14576
+ * whole point of this entity is that grouping rooms touches no device row.
14577
+ *
14578
+ * ## Why not `zone`
14579
+ *
14580
+ * Because `zone` is already the most loaded word in this product: 612 source
14581
+ * files and 24 Italian strings where it means a DETECTION zone drawn on a
14582
+ * camera. The two are unrelated — one is a polygon in a frame, the other is a
14583
+ * set of rooms — and a reader who confuses them will look for a camera's
14584
+ * bedrooms. So the code says `siteZone` everywhere, and the UI frees the plain
14585
+ * word by calling the drawn one what it actually is: a detection zone.
14586
+ *
14587
+ * ## The key
14588
+ *
14589
+ * `siteZoneKey(label)` — trimmed, lower-cased, the SAME derivation locations
14590
+ * use (`locationIconKey`). Membership and the icon both hang off it, so a
14591
+ * case-only rename keeps them, which is exactly the orphaning that cost us a
14592
+ * silently-dropped location description.
14593
+ *
14594
+ * The icon vocabulary is the location one, unchanged: a zone is drawn on the
14595
+ * same two surfaces by the same glyph map, so a second vocabulary would be a
14596
+ * second thing to keep drawable (`scripts/check-location-icons-drawable.ts`).
14597
+ */
14598
+ /**
14599
+ * One zone as it travels: its key, the label the operator typed, its icon and
14600
+ * the locations inside it.
14601
+ *
14602
+ * The LABEL is carried alongside the key because the key is lossy on purpose —
14603
+ * a surface must show "Zona notte", not "zona notte". Locations are carried
14604
+ * here, rather than left to a second call, because every consumer wants both
14605
+ * at once and a viewer that asked twice could render a zone whose membership
14606
+ * it has not fetched yet.
14607
+ *
14608
+ * `icon: null` means nobody chose one, which is NOT the fallback pin: only one
14609
+ * of those two is a choice, and a picker has to draw them differently.
14610
+ */
14611
+ var SiteZoneSchema = object({
14612
+ zoneKey: string(),
14613
+ label: string(),
14614
+ icon: LocationIconIdSchema.nullable(),
14615
+ /** Folded location keys, sorted. A location listed here need not be
14616
+ * REGISTERED — devices carry labels nobody registered, and those rooms are
14617
+ * the ones that most want grouping. */
14618
+ locationKeys: array(string())
14619
+ });
14504
14620
  var ProviderStatusSchema = object({
14505
14621
  connected: boolean(),
14506
14622
  deviceCount: number(),
@@ -15099,6 +15215,33 @@ method(object({
15099
15215
  }), _void(), {
15100
15216
  kind: "mutation",
15101
15217
  auth: "admin"
15218
+ }), method(_void(), array(LocationDescriptionAssignmentSchema)), method(object({
15219
+ location: string(),
15220
+ description: string().max(400).nullable()
15221
+ }), _void(), {
15222
+ kind: "mutation",
15223
+ auth: "admin"
15224
+ }), method(_void(), array(SiteZoneSchema)), method(object({
15225
+ name: string(),
15226
+ icon: LocationIconIdSchema.nullable().optional()
15227
+ }), _void(), {
15228
+ kind: "mutation",
15229
+ auth: "admin"
15230
+ }), method(object({ name: string() }), _void(), {
15231
+ kind: "mutation",
15232
+ auth: "admin"
15233
+ }), method(object({
15234
+ from: string(),
15235
+ to: string()
15236
+ }), _void(), {
15237
+ kind: "mutation",
15238
+ auth: "admin"
15239
+ }), method(object({
15240
+ location: string(),
15241
+ zone: string().nullable()
15242
+ }), _void(), {
15243
+ kind: "mutation",
15244
+ auth: "admin"
15102
15245
  }), method(object({
15103
15246
  deviceId: number(),
15104
15247
  disabled: boolean()
@@ -38009,6 +38152,12 @@ Object.freeze({
38009
38152
  addonId: null,
38010
38153
  access: "view"
38011
38154
  },
38155
+ "deviceManager.listLocationDescriptions": {
38156
+ capName: "device-manager",
38157
+ capScope: "system",
38158
+ addonId: null,
38159
+ access: "view"
38160
+ },
38012
38161
  "deviceManager.listLocationIcons": {
38013
38162
  capName: "device-manager",
38014
38163
  capScope: "system",
@@ -38027,6 +38176,12 @@ Object.freeze({
38027
38176
  addonId: null,
38028
38177
  access: "view"
38029
38178
  },
38179
+ "deviceManager.listSiteZones": {
38180
+ capName: "device-manager",
38181
+ capScope: "system",
38182
+ addonId: null,
38183
+ access: "view"
38184
+ },
38030
38185
  "deviceManager.listWrappersForCap": {
38031
38186
  capName: "device-manager",
38032
38187
  capScope: "system",
@@ -38111,12 +38266,24 @@ Object.freeze({
38111
38266
  addonId: null,
38112
38267
  access: "delete"
38113
38268
  },
38269
+ "deviceManager.removeSiteZone": {
38270
+ capName: "device-manager",
38271
+ capScope: "system",
38272
+ addonId: null,
38273
+ access: "delete"
38274
+ },
38114
38275
  "deviceManager.renameLocation": {
38115
38276
  capName: "device-manager",
38116
38277
  capScope: "system",
38117
38278
  addonId: null,
38118
38279
  access: "create"
38119
38280
  },
38281
+ "deviceManager.renameSiteZone": {
38282
+ capName: "device-manager",
38283
+ capScope: "system",
38284
+ addonId: null,
38285
+ access: "create"
38286
+ },
38120
38287
  "deviceManager.runDeviceAction": {
38121
38288
  capName: "device-manager",
38122
38289
  capScope: "system",
@@ -38159,12 +38326,24 @@ Object.freeze({
38159
38326
  addonId: null,
38160
38327
  access: "create"
38161
38328
  },
38329
+ "deviceManager.setLocationDescription": {
38330
+ capName: "device-manager",
38331
+ capScope: "system",
38332
+ addonId: null,
38333
+ access: "create"
38334
+ },
38162
38335
  "deviceManager.setLocationIcon": {
38163
38336
  capName: "device-manager",
38164
38337
  capScope: "system",
38165
38338
  addonId: null,
38166
38339
  access: "create"
38167
38340
  },
38341
+ "deviceManager.setLocationZone": {
38342
+ capName: "device-manager",
38343
+ capScope: "system",
38344
+ addonId: null,
38345
+ access: "create"
38346
+ },
38168
38347
  "deviceManager.setMetadata": {
38169
38348
  capName: "device-manager",
38170
38349
  capScope: "system",
@@ -38195,6 +38374,12 @@ Object.freeze({
38195
38374
  addonId: null,
38196
38375
  access: "create"
38197
38376
  },
38377
+ "deviceManager.setSiteZone": {
38378
+ capName: "device-manager",
38379
+ capScope: "system",
38380
+ addonId: null,
38381
+ access: "create"
38382
+ },
38198
38383
  "deviceManager.setStreamProfileMap": {
38199
38384
  capName: "device-manager",
38200
38385
  capScope: "system",
package/dist/addon.mjs CHANGED
@@ -13276,7 +13276,23 @@ var PickStreamRequirementsSchema = object({
13276
13276
  * This is what lets one picker serve both the bypass and the full source
13277
13277
  * choice, instead of a consumer scoring privately when the bypass misses.
13278
13278
  */
13279
- allowTranscode: boolean().optional()
13279
+ allowTranscode: boolean().optional(),
13280
+ /**
13281
+ * Consider ONLY streams the broker has bound to a profile slot.
13282
+ *
13283
+ * A consumer that dials the broker — which is every exporter, since none
13284
+ * of them may open the camera's own URL — can do nothing with a source
13285
+ * that has no slot: there is no restream to dial. Without this the picker
13286
+ * can name such a stream, and each consumer discovers the dead end for
13287
+ * itself: Alexa's `profileForCamStream` returns `null` and it quietly
13288
+ * falls back, and HomeKit would have had to grow the same function again.
13289
+ *
13290
+ * Default `false`, and deliberately so: the BROKER itself picks through
13291
+ * here when it decides which source to BIND to a slot
13292
+ * (`computeInitialAssignment`), and it must see the unbound ones or it
13293
+ * could never bind them.
13294
+ */
13295
+ requireProfileBound: boolean().optional()
13280
13296
  }).readonly();
13281
13297
  var PickStreamPreferencesSchema = object({
13282
13298
  /**
@@ -13317,7 +13333,43 @@ var PickedCamStreamSchema = object({
13317
13333
  */
13318
13334
  transcodes: boolean(),
13319
13335
  /** One-line explanation of why this stream won — for logs / debug UI. */
13320
- reason: string()
13336
+ reason: string(),
13337
+ /**
13338
+ * The broker profile slot this source is bound to, when it is bound.
13339
+ *
13340
+ * Answered HERE because every consumer needs it and none of them can get it
13341
+ * from the `camStreamId` alone. Alexa wrote `profileForCamStream` for it —
13342
+ * a second cap read plus a `null` branch — and HomeKit was about to write
13343
+ * the same function a second time.
13344
+ *
13345
+ * Absent when the source has no slot, which a caller passing
13346
+ * `requireProfileBound` can never see.
13347
+ */
13348
+ profile: CamProfileSchema.optional(),
13349
+ /** The broker id of that slot, for logs that must name what was dialled. */
13350
+ brokerId: string().optional(),
13351
+ /**
13352
+ * The broker restream URL to dial for this stream.
13353
+ *
13354
+ * An exporter must never open the camera's own URL — the broker is the one
13355
+ * that dials the camera, and every consumer goes through its restream. So
13356
+ * the picker answers with the thing a consumer may actually use, instead of
13357
+ * naming a source and leaving each caller to look the URL up.
13358
+ */
13359
+ url: string().optional(),
13360
+ /**
13361
+ * Frames per second this stream really delivers, and where the number came
13362
+ * from.
13363
+ *
13364
+ * It is here because getting it wrong is expensive and silent: a HomeKit
13365
+ * accessory advertised 720p at 24 fps while the slot serving it ran at 9,
13366
+ * and the controller rendered nothing at all. The source is carried with the
13367
+ * value for the same reason the bitrate evidence is: `published` is what the
13368
+ * publisher declares and `measured` is what the broker observed, and they
13369
+ * are not interchangeable.
13370
+ */
13371
+ fps: number().positive().optional(),
13372
+ fpsSource: _enum(["published", "measured"]).optional()
13321
13373
  });
13322
13374
  /**
13323
13375
  * Camera streams — device-scoped facade over the system `stream-broker`.
@@ -14500,6 +14552,70 @@ var LocationIconAssignmentSchema = object({
14500
14552
  locationKey: string(),
14501
14553
  icon: LocationIconIdSchema
14502
14554
  });
14555
+ /**
14556
+ * One (location, description) assignment as it travels.
14557
+ *
14558
+ * Same key discipline as {@link LocationIconAssignmentSchema}, and for the same
14559
+ * reason: this lived for a while in the post-analysis addon's own settings,
14560
+ * keyed by a HAND-TYPED label matched exactly and case-sensitively. A rename in
14561
+ * the Locations page carried the icon and silently orphaned the description —
14562
+ * two authorities for one thing, joined by two different rules. Now both hang
14563
+ * off the location itself, on `locationIconKey`.
14564
+ */
14565
+ var LocationDescriptionAssignmentSchema = object({
14566
+ locationKey: string(),
14567
+ description: string()
14568
+ });
14569
+ /**
14570
+ * A SITE ZONE — a named part of the property that several locations belong to.
14571
+ *
14572
+ * "Zona notte" holds every bedroom; "Zona giorno" the living room and the
14573
+ * kitchen. A camera belongs to exactly one location, and a location to at most
14574
+ * one zone, so a camera's zone is derived and never stored on the device: the
14575
+ * whole point of this entity is that grouping rooms touches no device row.
14576
+ *
14577
+ * ## Why not `zone`
14578
+ *
14579
+ * Because `zone` is already the most loaded word in this product: 612 source
14580
+ * files and 24 Italian strings where it means a DETECTION zone drawn on a
14581
+ * camera. The two are unrelated — one is a polygon in a frame, the other is a
14582
+ * set of rooms — and a reader who confuses them will look for a camera's
14583
+ * bedrooms. So the code says `siteZone` everywhere, and the UI frees the plain
14584
+ * word by calling the drawn one what it actually is: a detection zone.
14585
+ *
14586
+ * ## The key
14587
+ *
14588
+ * `siteZoneKey(label)` — trimmed, lower-cased, the SAME derivation locations
14589
+ * use (`locationIconKey`). Membership and the icon both hang off it, so a
14590
+ * case-only rename keeps them, which is exactly the orphaning that cost us a
14591
+ * silently-dropped location description.
14592
+ *
14593
+ * The icon vocabulary is the location one, unchanged: a zone is drawn on the
14594
+ * same two surfaces by the same glyph map, so a second vocabulary would be a
14595
+ * second thing to keep drawable (`scripts/check-location-icons-drawable.ts`).
14596
+ */
14597
+ /**
14598
+ * One zone as it travels: its key, the label the operator typed, its icon and
14599
+ * the locations inside it.
14600
+ *
14601
+ * The LABEL is carried alongside the key because the key is lossy on purpose —
14602
+ * a surface must show "Zona notte", not "zona notte". Locations are carried
14603
+ * here, rather than left to a second call, because every consumer wants both
14604
+ * at once and a viewer that asked twice could render a zone whose membership
14605
+ * it has not fetched yet.
14606
+ *
14607
+ * `icon: null` means nobody chose one, which is NOT the fallback pin: only one
14608
+ * of those two is a choice, and a picker has to draw them differently.
14609
+ */
14610
+ var SiteZoneSchema = object({
14611
+ zoneKey: string(),
14612
+ label: string(),
14613
+ icon: LocationIconIdSchema.nullable(),
14614
+ /** Folded location keys, sorted. A location listed here need not be
14615
+ * REGISTERED — devices carry labels nobody registered, and those rooms are
14616
+ * the ones that most want grouping. */
14617
+ locationKeys: array(string())
14618
+ });
14503
14619
  var ProviderStatusSchema = object({
14504
14620
  connected: boolean(),
14505
14621
  deviceCount: number(),
@@ -15098,6 +15214,33 @@ method(object({
15098
15214
  }), _void(), {
15099
15215
  kind: "mutation",
15100
15216
  auth: "admin"
15217
+ }), method(_void(), array(LocationDescriptionAssignmentSchema)), method(object({
15218
+ location: string(),
15219
+ description: string().max(400).nullable()
15220
+ }), _void(), {
15221
+ kind: "mutation",
15222
+ auth: "admin"
15223
+ }), method(_void(), array(SiteZoneSchema)), method(object({
15224
+ name: string(),
15225
+ icon: LocationIconIdSchema.nullable().optional()
15226
+ }), _void(), {
15227
+ kind: "mutation",
15228
+ auth: "admin"
15229
+ }), method(object({ name: string() }), _void(), {
15230
+ kind: "mutation",
15231
+ auth: "admin"
15232
+ }), method(object({
15233
+ from: string(),
15234
+ to: string()
15235
+ }), _void(), {
15236
+ kind: "mutation",
15237
+ auth: "admin"
15238
+ }), method(object({
15239
+ location: string(),
15240
+ zone: string().nullable()
15241
+ }), _void(), {
15242
+ kind: "mutation",
15243
+ auth: "admin"
15101
15244
  }), method(object({
15102
15245
  deviceId: number(),
15103
15246
  disabled: boolean()
@@ -38008,6 +38151,12 @@ Object.freeze({
38008
38151
  addonId: null,
38009
38152
  access: "view"
38010
38153
  },
38154
+ "deviceManager.listLocationDescriptions": {
38155
+ capName: "device-manager",
38156
+ capScope: "system",
38157
+ addonId: null,
38158
+ access: "view"
38159
+ },
38011
38160
  "deviceManager.listLocationIcons": {
38012
38161
  capName: "device-manager",
38013
38162
  capScope: "system",
@@ -38026,6 +38175,12 @@ Object.freeze({
38026
38175
  addonId: null,
38027
38176
  access: "view"
38028
38177
  },
38178
+ "deviceManager.listSiteZones": {
38179
+ capName: "device-manager",
38180
+ capScope: "system",
38181
+ addonId: null,
38182
+ access: "view"
38183
+ },
38029
38184
  "deviceManager.listWrappersForCap": {
38030
38185
  capName: "device-manager",
38031
38186
  capScope: "system",
@@ -38110,12 +38265,24 @@ Object.freeze({
38110
38265
  addonId: null,
38111
38266
  access: "delete"
38112
38267
  },
38268
+ "deviceManager.removeSiteZone": {
38269
+ capName: "device-manager",
38270
+ capScope: "system",
38271
+ addonId: null,
38272
+ access: "delete"
38273
+ },
38113
38274
  "deviceManager.renameLocation": {
38114
38275
  capName: "device-manager",
38115
38276
  capScope: "system",
38116
38277
  addonId: null,
38117
38278
  access: "create"
38118
38279
  },
38280
+ "deviceManager.renameSiteZone": {
38281
+ capName: "device-manager",
38282
+ capScope: "system",
38283
+ addonId: null,
38284
+ access: "create"
38285
+ },
38119
38286
  "deviceManager.runDeviceAction": {
38120
38287
  capName: "device-manager",
38121
38288
  capScope: "system",
@@ -38158,12 +38325,24 @@ Object.freeze({
38158
38325
  addonId: null,
38159
38326
  access: "create"
38160
38327
  },
38328
+ "deviceManager.setLocationDescription": {
38329
+ capName: "device-manager",
38330
+ capScope: "system",
38331
+ addonId: null,
38332
+ access: "create"
38333
+ },
38161
38334
  "deviceManager.setLocationIcon": {
38162
38335
  capName: "device-manager",
38163
38336
  capScope: "system",
38164
38337
  addonId: null,
38165
38338
  access: "create"
38166
38339
  },
38340
+ "deviceManager.setLocationZone": {
38341
+ capName: "device-manager",
38342
+ capScope: "system",
38343
+ addonId: null,
38344
+ access: "create"
38345
+ },
38167
38346
  "deviceManager.setMetadata": {
38168
38347
  capName: "device-manager",
38169
38348
  capScope: "system",
@@ -38194,6 +38373,12 @@ Object.freeze({
38194
38373
  addonId: null,
38195
38374
  access: "create"
38196
38375
  },
38376
+ "deviceManager.setSiteZone": {
38377
+ capName: "device-manager",
38378
+ capScope: "system",
38379
+ addonId: null,
38380
+ access: "create"
38381
+ },
38197
38382
  "deviceManager.setStreamProfileMap": {
38198
38383
  capName: "device-manager",
38199
38384
  capScope: "system",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-rademacher",
3
- "version": "0.2.105",
3
+ "version": "0.2.107",
4
4
  "description": "Rademacher HomePilot device-provider addon for CamStack — wraps the @apocaliss92/noderademacher local-hub client (roller shutters over the cover cap)",
5
5
  "keywords": [
6
6
  "camstack",