@camstack/addon-export-alexa 1.2.113 → 1.2.114

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.
@@ -13631,6 +13631,70 @@ var LocationIconAssignmentSchema = object({
13631
13631
  locationKey: string(),
13632
13632
  icon: LocationIconIdSchema
13633
13633
  });
13634
+ /**
13635
+ * One (location, description) assignment as it travels.
13636
+ *
13637
+ * Same key discipline as {@link LocationIconAssignmentSchema}, and for the same
13638
+ * reason: this lived for a while in the post-analysis addon's own settings,
13639
+ * keyed by a HAND-TYPED label matched exactly and case-sensitively. A rename in
13640
+ * the Locations page carried the icon and silently orphaned the description —
13641
+ * two authorities for one thing, joined by two different rules. Now both hang
13642
+ * off the location itself, on `locationIconKey`.
13643
+ */
13644
+ var LocationDescriptionAssignmentSchema = object({
13645
+ locationKey: string(),
13646
+ description: string()
13647
+ });
13648
+ /**
13649
+ * A SITE ZONE — a named part of the property that several locations belong to.
13650
+ *
13651
+ * "Zona notte" holds every bedroom; "Zona giorno" the living room and the
13652
+ * kitchen. A camera belongs to exactly one location, and a location to at most
13653
+ * one zone, so a camera's zone is derived and never stored on the device: the
13654
+ * whole point of this entity is that grouping rooms touches no device row.
13655
+ *
13656
+ * ## Why not `zone`
13657
+ *
13658
+ * Because `zone` is already the most loaded word in this product: 612 source
13659
+ * files and 24 Italian strings where it means a DETECTION zone drawn on a
13660
+ * camera. The two are unrelated — one is a polygon in a frame, the other is a
13661
+ * set of rooms — and a reader who confuses them will look for a camera's
13662
+ * bedrooms. So the code says `siteZone` everywhere, and the UI frees the plain
13663
+ * word by calling the drawn one what it actually is: a detection zone.
13664
+ *
13665
+ * ## The key
13666
+ *
13667
+ * `siteZoneKey(label)` — trimmed, lower-cased, the SAME derivation locations
13668
+ * use (`locationIconKey`). Membership and the icon both hang off it, so a
13669
+ * case-only rename keeps them, which is exactly the orphaning that cost us a
13670
+ * silently-dropped location description.
13671
+ *
13672
+ * The icon vocabulary is the location one, unchanged: a zone is drawn on the
13673
+ * same two surfaces by the same glyph map, so a second vocabulary would be a
13674
+ * second thing to keep drawable (`scripts/check-location-icons-drawable.ts`).
13675
+ */
13676
+ /**
13677
+ * One zone as it travels: its key, the label the operator typed, its icon and
13678
+ * the locations inside it.
13679
+ *
13680
+ * The LABEL is carried alongside the key because the key is lossy on purpose —
13681
+ * a surface must show "Zona notte", not "zona notte". Locations are carried
13682
+ * here, rather than left to a second call, because every consumer wants both
13683
+ * at once and a viewer that asked twice could render a zone whose membership
13684
+ * it has not fetched yet.
13685
+ *
13686
+ * `icon: null` means nobody chose one, which is NOT the fallback pin: only one
13687
+ * of those two is a choice, and a picker has to draw them differently.
13688
+ */
13689
+ var SiteZoneSchema = object({
13690
+ zoneKey: string(),
13691
+ label: string(),
13692
+ icon: LocationIconIdSchema.nullable(),
13693
+ /** Folded location keys, sorted. A location listed here need not be
13694
+ * REGISTERED — devices carry labels nobody registered, and those rooms are
13695
+ * the ones that most want grouping. */
13696
+ locationKeys: array(string())
13697
+ });
13634
13698
  var ProviderStatusSchema = object({
13635
13699
  connected: boolean(),
13636
13700
  deviceCount: number(),
@@ -14148,6 +14212,33 @@ method(object({
14148
14212
  }), _void(), {
14149
14213
  kind: "mutation",
14150
14214
  auth: "admin"
14215
+ }), method(_void(), array(LocationDescriptionAssignmentSchema)), method(object({
14216
+ location: string(),
14217
+ description: string().max(400).nullable()
14218
+ }), _void(), {
14219
+ kind: "mutation",
14220
+ auth: "admin"
14221
+ }), method(_void(), array(SiteZoneSchema)), method(object({
14222
+ name: string(),
14223
+ icon: LocationIconIdSchema.nullable().optional()
14224
+ }), _void(), {
14225
+ kind: "mutation",
14226
+ auth: "admin"
14227
+ }), method(object({ name: string() }), _void(), {
14228
+ kind: "mutation",
14229
+ auth: "admin"
14230
+ }), method(object({
14231
+ from: string(),
14232
+ to: string()
14233
+ }), _void(), {
14234
+ kind: "mutation",
14235
+ auth: "admin"
14236
+ }), method(object({
14237
+ location: string(),
14238
+ zone: string().nullable()
14239
+ }), _void(), {
14240
+ kind: "mutation",
14241
+ auth: "admin"
14151
14242
  }), method(object({
14152
14243
  deviceId: number(),
14153
14244
  disabled: boolean()
@@ -32987,6 +33078,12 @@ Object.freeze({
32987
33078
  addonId: null,
32988
33079
  access: "view"
32989
33080
  },
33081
+ "deviceManager.listLocationDescriptions": {
33082
+ capName: "device-manager",
33083
+ capScope: "system",
33084
+ addonId: null,
33085
+ access: "view"
33086
+ },
32990
33087
  "deviceManager.listLocationIcons": {
32991
33088
  capName: "device-manager",
32992
33089
  capScope: "system",
@@ -33005,6 +33102,12 @@ Object.freeze({
33005
33102
  addonId: null,
33006
33103
  access: "view"
33007
33104
  },
33105
+ "deviceManager.listSiteZones": {
33106
+ capName: "device-manager",
33107
+ capScope: "system",
33108
+ addonId: null,
33109
+ access: "view"
33110
+ },
33008
33111
  "deviceManager.listWrappersForCap": {
33009
33112
  capName: "device-manager",
33010
33113
  capScope: "system",
@@ -33089,12 +33192,24 @@ Object.freeze({
33089
33192
  addonId: null,
33090
33193
  access: "delete"
33091
33194
  },
33195
+ "deviceManager.removeSiteZone": {
33196
+ capName: "device-manager",
33197
+ capScope: "system",
33198
+ addonId: null,
33199
+ access: "delete"
33200
+ },
33092
33201
  "deviceManager.renameLocation": {
33093
33202
  capName: "device-manager",
33094
33203
  capScope: "system",
33095
33204
  addonId: null,
33096
33205
  access: "create"
33097
33206
  },
33207
+ "deviceManager.renameSiteZone": {
33208
+ capName: "device-manager",
33209
+ capScope: "system",
33210
+ addonId: null,
33211
+ access: "create"
33212
+ },
33098
33213
  "deviceManager.runDeviceAction": {
33099
33214
  capName: "device-manager",
33100
33215
  capScope: "system",
@@ -33137,12 +33252,24 @@ Object.freeze({
33137
33252
  addonId: null,
33138
33253
  access: "create"
33139
33254
  },
33255
+ "deviceManager.setLocationDescription": {
33256
+ capName: "device-manager",
33257
+ capScope: "system",
33258
+ addonId: null,
33259
+ access: "create"
33260
+ },
33140
33261
  "deviceManager.setLocationIcon": {
33141
33262
  capName: "device-manager",
33142
33263
  capScope: "system",
33143
33264
  addonId: null,
33144
33265
  access: "create"
33145
33266
  },
33267
+ "deviceManager.setLocationZone": {
33268
+ capName: "device-manager",
33269
+ capScope: "system",
33270
+ addonId: null,
33271
+ access: "create"
33272
+ },
33146
33273
  "deviceManager.setMetadata": {
33147
33274
  capName: "device-manager",
33148
33275
  capScope: "system",
@@ -33173,6 +33300,12 @@ Object.freeze({
33173
33300
  addonId: null,
33174
33301
  access: "create"
33175
33302
  },
33303
+ "deviceManager.setSiteZone": {
33304
+ capName: "device-manager",
33305
+ capScope: "system",
33306
+ addonId: null,
33307
+ access: "create"
33308
+ },
33176
33309
  "deviceManager.setStreamProfileMap": {
33177
33310
  capName: "device-manager",
33178
33311
  capScope: "system",
@@ -13604,6 +13604,70 @@ var LocationIconAssignmentSchema = object({
13604
13604
  locationKey: string(),
13605
13605
  icon: LocationIconIdSchema
13606
13606
  });
13607
+ /**
13608
+ * One (location, description) assignment as it travels.
13609
+ *
13610
+ * Same key discipline as {@link LocationIconAssignmentSchema}, and for the same
13611
+ * reason: this lived for a while in the post-analysis addon's own settings,
13612
+ * keyed by a HAND-TYPED label matched exactly and case-sensitively. A rename in
13613
+ * the Locations page carried the icon and silently orphaned the description —
13614
+ * two authorities for one thing, joined by two different rules. Now both hang
13615
+ * off the location itself, on `locationIconKey`.
13616
+ */
13617
+ var LocationDescriptionAssignmentSchema = object({
13618
+ locationKey: string(),
13619
+ description: string()
13620
+ });
13621
+ /**
13622
+ * A SITE ZONE — a named part of the property that several locations belong to.
13623
+ *
13624
+ * "Zona notte" holds every bedroom; "Zona giorno" the living room and the
13625
+ * kitchen. A camera belongs to exactly one location, and a location to at most
13626
+ * one zone, so a camera's zone is derived and never stored on the device: the
13627
+ * whole point of this entity is that grouping rooms touches no device row.
13628
+ *
13629
+ * ## Why not `zone`
13630
+ *
13631
+ * Because `zone` is already the most loaded word in this product: 612 source
13632
+ * files and 24 Italian strings where it means a DETECTION zone drawn on a
13633
+ * camera. The two are unrelated — one is a polygon in a frame, the other is a
13634
+ * set of rooms — and a reader who confuses them will look for a camera's
13635
+ * bedrooms. So the code says `siteZone` everywhere, and the UI frees the plain
13636
+ * word by calling the drawn one what it actually is: a detection zone.
13637
+ *
13638
+ * ## The key
13639
+ *
13640
+ * `siteZoneKey(label)` — trimmed, lower-cased, the SAME derivation locations
13641
+ * use (`locationIconKey`). Membership and the icon both hang off it, so a
13642
+ * case-only rename keeps them, which is exactly the orphaning that cost us a
13643
+ * silently-dropped location description.
13644
+ *
13645
+ * The icon vocabulary is the location one, unchanged: a zone is drawn on the
13646
+ * same two surfaces by the same glyph map, so a second vocabulary would be a
13647
+ * second thing to keep drawable (`scripts/check-location-icons-drawable.ts`).
13648
+ */
13649
+ /**
13650
+ * One zone as it travels: its key, the label the operator typed, its icon and
13651
+ * the locations inside it.
13652
+ *
13653
+ * The LABEL is carried alongside the key because the key is lossy on purpose —
13654
+ * a surface must show "Zona notte", not "zona notte". Locations are carried
13655
+ * here, rather than left to a second call, because every consumer wants both
13656
+ * at once and a viewer that asked twice could render a zone whose membership
13657
+ * it has not fetched yet.
13658
+ *
13659
+ * `icon: null` means nobody chose one, which is NOT the fallback pin: only one
13660
+ * of those two is a choice, and a picker has to draw them differently.
13661
+ */
13662
+ var SiteZoneSchema = object({
13663
+ zoneKey: string(),
13664
+ label: string(),
13665
+ icon: LocationIconIdSchema.nullable(),
13666
+ /** Folded location keys, sorted. A location listed here need not be
13667
+ * REGISTERED — devices carry labels nobody registered, and those rooms are
13668
+ * the ones that most want grouping. */
13669
+ locationKeys: array(string())
13670
+ });
13607
13671
  var ProviderStatusSchema = object({
13608
13672
  connected: boolean(),
13609
13673
  deviceCount: number(),
@@ -14121,6 +14185,33 @@ method(object({
14121
14185
  }), _void(), {
14122
14186
  kind: "mutation",
14123
14187
  auth: "admin"
14188
+ }), method(_void(), array(LocationDescriptionAssignmentSchema)), method(object({
14189
+ location: string(),
14190
+ description: string().max(400).nullable()
14191
+ }), _void(), {
14192
+ kind: "mutation",
14193
+ auth: "admin"
14194
+ }), method(_void(), array(SiteZoneSchema)), method(object({
14195
+ name: string(),
14196
+ icon: LocationIconIdSchema.nullable().optional()
14197
+ }), _void(), {
14198
+ kind: "mutation",
14199
+ auth: "admin"
14200
+ }), method(object({ name: string() }), _void(), {
14201
+ kind: "mutation",
14202
+ auth: "admin"
14203
+ }), method(object({
14204
+ from: string(),
14205
+ to: string()
14206
+ }), _void(), {
14207
+ kind: "mutation",
14208
+ auth: "admin"
14209
+ }), method(object({
14210
+ location: string(),
14211
+ zone: string().nullable()
14212
+ }), _void(), {
14213
+ kind: "mutation",
14214
+ auth: "admin"
14124
14215
  }), method(object({
14125
14216
  deviceId: number(),
14126
14217
  disabled: boolean()
@@ -32960,6 +33051,12 @@ Object.freeze({
32960
33051
  addonId: null,
32961
33052
  access: "view"
32962
33053
  },
33054
+ "deviceManager.listLocationDescriptions": {
33055
+ capName: "device-manager",
33056
+ capScope: "system",
33057
+ addonId: null,
33058
+ access: "view"
33059
+ },
32963
33060
  "deviceManager.listLocationIcons": {
32964
33061
  capName: "device-manager",
32965
33062
  capScope: "system",
@@ -32978,6 +33075,12 @@ Object.freeze({
32978
33075
  addonId: null,
32979
33076
  access: "view"
32980
33077
  },
33078
+ "deviceManager.listSiteZones": {
33079
+ capName: "device-manager",
33080
+ capScope: "system",
33081
+ addonId: null,
33082
+ access: "view"
33083
+ },
32981
33084
  "deviceManager.listWrappersForCap": {
32982
33085
  capName: "device-manager",
32983
33086
  capScope: "system",
@@ -33062,12 +33165,24 @@ Object.freeze({
33062
33165
  addonId: null,
33063
33166
  access: "delete"
33064
33167
  },
33168
+ "deviceManager.removeSiteZone": {
33169
+ capName: "device-manager",
33170
+ capScope: "system",
33171
+ addonId: null,
33172
+ access: "delete"
33173
+ },
33065
33174
  "deviceManager.renameLocation": {
33066
33175
  capName: "device-manager",
33067
33176
  capScope: "system",
33068
33177
  addonId: null,
33069
33178
  access: "create"
33070
33179
  },
33180
+ "deviceManager.renameSiteZone": {
33181
+ capName: "device-manager",
33182
+ capScope: "system",
33183
+ addonId: null,
33184
+ access: "create"
33185
+ },
33071
33186
  "deviceManager.runDeviceAction": {
33072
33187
  capName: "device-manager",
33073
33188
  capScope: "system",
@@ -33110,12 +33225,24 @@ Object.freeze({
33110
33225
  addonId: null,
33111
33226
  access: "create"
33112
33227
  },
33228
+ "deviceManager.setLocationDescription": {
33229
+ capName: "device-manager",
33230
+ capScope: "system",
33231
+ addonId: null,
33232
+ access: "create"
33233
+ },
33113
33234
  "deviceManager.setLocationIcon": {
33114
33235
  capName: "device-manager",
33115
33236
  capScope: "system",
33116
33237
  addonId: null,
33117
33238
  access: "create"
33118
33239
  },
33240
+ "deviceManager.setLocationZone": {
33241
+ capName: "device-manager",
33242
+ capScope: "system",
33243
+ addonId: null,
33244
+ access: "create"
33245
+ },
33119
33246
  "deviceManager.setMetadata": {
33120
33247
  capName: "device-manager",
33121
33248
  capScope: "system",
@@ -33146,6 +33273,12 @@ Object.freeze({
33146
33273
  addonId: null,
33147
33274
  access: "create"
33148
33275
  },
33276
+ "deviceManager.setSiteZone": {
33277
+ capName: "device-manager",
33278
+ capScope: "system",
33279
+ addonId: null,
33280
+ access: "create"
33281
+ },
33149
33282
  "deviceManager.setStreamProfileMap": {
33150
33283
  capName: "device-manager",
33151
33284
  capScope: "system",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-export-alexa",
3
- "version": "1.2.113",
3
+ "version": "1.2.114",
4
4
  "description": "Alexa Smart Home Skill export — hub-side OAuth provider + directive handler. The companion AWS Lambda forwards Alexa directives to this addon's /addon/export-alexa/directive endpoint.",
5
5
  "keywords": [
6
6
  "camstack",