@camstack/addon-import-alexa 0.2.105 → 0.2.106

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
@@ -13757,6 +13757,70 @@ var LocationIconAssignmentSchema = object({
13757
13757
  locationKey: string(),
13758
13758
  icon: LocationIconIdSchema
13759
13759
  });
13760
+ /**
13761
+ * One (location, description) assignment as it travels.
13762
+ *
13763
+ * Same key discipline as {@link LocationIconAssignmentSchema}, and for the same
13764
+ * reason: this lived for a while in the post-analysis addon's own settings,
13765
+ * keyed by a HAND-TYPED label matched exactly and case-sensitively. A rename in
13766
+ * the Locations page carried the icon and silently orphaned the description —
13767
+ * two authorities for one thing, joined by two different rules. Now both hang
13768
+ * off the location itself, on `locationIconKey`.
13769
+ */
13770
+ var LocationDescriptionAssignmentSchema = object({
13771
+ locationKey: string(),
13772
+ description: string()
13773
+ });
13774
+ /**
13775
+ * A SITE ZONE — a named part of the property that several locations belong to.
13776
+ *
13777
+ * "Zona notte" holds every bedroom; "Zona giorno" the living room and the
13778
+ * kitchen. A camera belongs to exactly one location, and a location to at most
13779
+ * one zone, so a camera's zone is derived and never stored on the device: the
13780
+ * whole point of this entity is that grouping rooms touches no device row.
13781
+ *
13782
+ * ## Why not `zone`
13783
+ *
13784
+ * Because `zone` is already the most loaded word in this product: 612 source
13785
+ * files and 24 Italian strings where it means a DETECTION zone drawn on a
13786
+ * camera. The two are unrelated — one is a polygon in a frame, the other is a
13787
+ * set of rooms — and a reader who confuses them will look for a camera's
13788
+ * bedrooms. So the code says `siteZone` everywhere, and the UI frees the plain
13789
+ * word by calling the drawn one what it actually is: a detection zone.
13790
+ *
13791
+ * ## The key
13792
+ *
13793
+ * `siteZoneKey(label)` — trimmed, lower-cased, the SAME derivation locations
13794
+ * use (`locationIconKey`). Membership and the icon both hang off it, so a
13795
+ * case-only rename keeps them, which is exactly the orphaning that cost us a
13796
+ * silently-dropped location description.
13797
+ *
13798
+ * The icon vocabulary is the location one, unchanged: a zone is drawn on the
13799
+ * same two surfaces by the same glyph map, so a second vocabulary would be a
13800
+ * second thing to keep drawable (`scripts/check-location-icons-drawable.ts`).
13801
+ */
13802
+ /**
13803
+ * One zone as it travels: its key, the label the operator typed, its icon and
13804
+ * the locations inside it.
13805
+ *
13806
+ * The LABEL is carried alongside the key because the key is lossy on purpose —
13807
+ * a surface must show "Zona notte", not "zona notte". Locations are carried
13808
+ * here, rather than left to a second call, because every consumer wants both
13809
+ * at once and a viewer that asked twice could render a zone whose membership
13810
+ * it has not fetched yet.
13811
+ *
13812
+ * `icon: null` means nobody chose one, which is NOT the fallback pin: only one
13813
+ * of those two is a choice, and a picker has to draw them differently.
13814
+ */
13815
+ var SiteZoneSchema = object({
13816
+ zoneKey: string(),
13817
+ label: string(),
13818
+ icon: LocationIconIdSchema.nullable(),
13819
+ /** Folded location keys, sorted. A location listed here need not be
13820
+ * REGISTERED — devices carry labels nobody registered, and those rooms are
13821
+ * the ones that most want grouping. */
13822
+ locationKeys: array(string())
13823
+ });
13760
13824
  var ProviderStatusSchema = object({
13761
13825
  connected: boolean(),
13762
13826
  deviceCount: number(),
@@ -14355,6 +14419,33 @@ method(object({
14355
14419
  }), _void(), {
14356
14420
  kind: "mutation",
14357
14421
  auth: "admin"
14422
+ }), method(_void(), array(LocationDescriptionAssignmentSchema)), method(object({
14423
+ location: string(),
14424
+ description: string().max(400).nullable()
14425
+ }), _void(), {
14426
+ kind: "mutation",
14427
+ auth: "admin"
14428
+ }), method(_void(), array(SiteZoneSchema)), method(object({
14429
+ name: string(),
14430
+ icon: LocationIconIdSchema.nullable().optional()
14431
+ }), _void(), {
14432
+ kind: "mutation",
14433
+ auth: "admin"
14434
+ }), method(object({ name: string() }), _void(), {
14435
+ kind: "mutation",
14436
+ auth: "admin"
14437
+ }), method(object({
14438
+ from: string(),
14439
+ to: string()
14440
+ }), _void(), {
14441
+ kind: "mutation",
14442
+ auth: "admin"
14443
+ }), method(object({
14444
+ location: string(),
14445
+ zone: string().nullable()
14446
+ }), _void(), {
14447
+ kind: "mutation",
14448
+ auth: "admin"
14358
14449
  }), method(object({
14359
14450
  deviceId: number(),
14360
14451
  disabled: boolean()
@@ -37282,6 +37373,12 @@ Object.freeze({
37282
37373
  addonId: null,
37283
37374
  access: "view"
37284
37375
  },
37376
+ "deviceManager.listLocationDescriptions": {
37377
+ capName: "device-manager",
37378
+ capScope: "system",
37379
+ addonId: null,
37380
+ access: "view"
37381
+ },
37285
37382
  "deviceManager.listLocationIcons": {
37286
37383
  capName: "device-manager",
37287
37384
  capScope: "system",
@@ -37300,6 +37397,12 @@ Object.freeze({
37300
37397
  addonId: null,
37301
37398
  access: "view"
37302
37399
  },
37400
+ "deviceManager.listSiteZones": {
37401
+ capName: "device-manager",
37402
+ capScope: "system",
37403
+ addonId: null,
37404
+ access: "view"
37405
+ },
37303
37406
  "deviceManager.listWrappersForCap": {
37304
37407
  capName: "device-manager",
37305
37408
  capScope: "system",
@@ -37384,12 +37487,24 @@ Object.freeze({
37384
37487
  addonId: null,
37385
37488
  access: "delete"
37386
37489
  },
37490
+ "deviceManager.removeSiteZone": {
37491
+ capName: "device-manager",
37492
+ capScope: "system",
37493
+ addonId: null,
37494
+ access: "delete"
37495
+ },
37387
37496
  "deviceManager.renameLocation": {
37388
37497
  capName: "device-manager",
37389
37498
  capScope: "system",
37390
37499
  addonId: null,
37391
37500
  access: "create"
37392
37501
  },
37502
+ "deviceManager.renameSiteZone": {
37503
+ capName: "device-manager",
37504
+ capScope: "system",
37505
+ addonId: null,
37506
+ access: "create"
37507
+ },
37393
37508
  "deviceManager.runDeviceAction": {
37394
37509
  capName: "device-manager",
37395
37510
  capScope: "system",
@@ -37432,12 +37547,24 @@ Object.freeze({
37432
37547
  addonId: null,
37433
37548
  access: "create"
37434
37549
  },
37550
+ "deviceManager.setLocationDescription": {
37551
+ capName: "device-manager",
37552
+ capScope: "system",
37553
+ addonId: null,
37554
+ access: "create"
37555
+ },
37435
37556
  "deviceManager.setLocationIcon": {
37436
37557
  capName: "device-manager",
37437
37558
  capScope: "system",
37438
37559
  addonId: null,
37439
37560
  access: "create"
37440
37561
  },
37562
+ "deviceManager.setLocationZone": {
37563
+ capName: "device-manager",
37564
+ capScope: "system",
37565
+ addonId: null,
37566
+ access: "create"
37567
+ },
37441
37568
  "deviceManager.setMetadata": {
37442
37569
  capName: "device-manager",
37443
37570
  capScope: "system",
@@ -37468,6 +37595,12 @@ Object.freeze({
37468
37595
  addonId: null,
37469
37596
  access: "create"
37470
37597
  },
37598
+ "deviceManager.setSiteZone": {
37599
+ capName: "device-manager",
37600
+ capScope: "system",
37601
+ addonId: null,
37602
+ access: "create"
37603
+ },
37471
37604
  "deviceManager.setStreamProfileMap": {
37472
37605
  capName: "device-manager",
37473
37606
  capScope: "system",
package/dist/addon.mjs CHANGED
@@ -13757,6 +13757,70 @@ var LocationIconAssignmentSchema = object({
13757
13757
  locationKey: string(),
13758
13758
  icon: LocationIconIdSchema
13759
13759
  });
13760
+ /**
13761
+ * One (location, description) assignment as it travels.
13762
+ *
13763
+ * Same key discipline as {@link LocationIconAssignmentSchema}, and for the same
13764
+ * reason: this lived for a while in the post-analysis addon's own settings,
13765
+ * keyed by a HAND-TYPED label matched exactly and case-sensitively. A rename in
13766
+ * the Locations page carried the icon and silently orphaned the description —
13767
+ * two authorities for one thing, joined by two different rules. Now both hang
13768
+ * off the location itself, on `locationIconKey`.
13769
+ */
13770
+ var LocationDescriptionAssignmentSchema = object({
13771
+ locationKey: string(),
13772
+ description: string()
13773
+ });
13774
+ /**
13775
+ * A SITE ZONE — a named part of the property that several locations belong to.
13776
+ *
13777
+ * "Zona notte" holds every bedroom; "Zona giorno" the living room and the
13778
+ * kitchen. A camera belongs to exactly one location, and a location to at most
13779
+ * one zone, so a camera's zone is derived and never stored on the device: the
13780
+ * whole point of this entity is that grouping rooms touches no device row.
13781
+ *
13782
+ * ## Why not `zone`
13783
+ *
13784
+ * Because `zone` is already the most loaded word in this product: 612 source
13785
+ * files and 24 Italian strings where it means a DETECTION zone drawn on a
13786
+ * camera. The two are unrelated — one is a polygon in a frame, the other is a
13787
+ * set of rooms — and a reader who confuses them will look for a camera's
13788
+ * bedrooms. So the code says `siteZone` everywhere, and the UI frees the plain
13789
+ * word by calling the drawn one what it actually is: a detection zone.
13790
+ *
13791
+ * ## The key
13792
+ *
13793
+ * `siteZoneKey(label)` — trimmed, lower-cased, the SAME derivation locations
13794
+ * use (`locationIconKey`). Membership and the icon both hang off it, so a
13795
+ * case-only rename keeps them, which is exactly the orphaning that cost us a
13796
+ * silently-dropped location description.
13797
+ *
13798
+ * The icon vocabulary is the location one, unchanged: a zone is drawn on the
13799
+ * same two surfaces by the same glyph map, so a second vocabulary would be a
13800
+ * second thing to keep drawable (`scripts/check-location-icons-drawable.ts`).
13801
+ */
13802
+ /**
13803
+ * One zone as it travels: its key, the label the operator typed, its icon and
13804
+ * the locations inside it.
13805
+ *
13806
+ * The LABEL is carried alongside the key because the key is lossy on purpose —
13807
+ * a surface must show "Zona notte", not "zona notte". Locations are carried
13808
+ * here, rather than left to a second call, because every consumer wants both
13809
+ * at once and a viewer that asked twice could render a zone whose membership
13810
+ * it has not fetched yet.
13811
+ *
13812
+ * `icon: null` means nobody chose one, which is NOT the fallback pin: only one
13813
+ * of those two is a choice, and a picker has to draw them differently.
13814
+ */
13815
+ var SiteZoneSchema = object({
13816
+ zoneKey: string(),
13817
+ label: string(),
13818
+ icon: LocationIconIdSchema.nullable(),
13819
+ /** Folded location keys, sorted. A location listed here need not be
13820
+ * REGISTERED — devices carry labels nobody registered, and those rooms are
13821
+ * the ones that most want grouping. */
13822
+ locationKeys: array(string())
13823
+ });
13760
13824
  var ProviderStatusSchema = object({
13761
13825
  connected: boolean(),
13762
13826
  deviceCount: number(),
@@ -14355,6 +14419,33 @@ method(object({
14355
14419
  }), _void(), {
14356
14420
  kind: "mutation",
14357
14421
  auth: "admin"
14422
+ }), method(_void(), array(LocationDescriptionAssignmentSchema)), method(object({
14423
+ location: string(),
14424
+ description: string().max(400).nullable()
14425
+ }), _void(), {
14426
+ kind: "mutation",
14427
+ auth: "admin"
14428
+ }), method(_void(), array(SiteZoneSchema)), method(object({
14429
+ name: string(),
14430
+ icon: LocationIconIdSchema.nullable().optional()
14431
+ }), _void(), {
14432
+ kind: "mutation",
14433
+ auth: "admin"
14434
+ }), method(object({ name: string() }), _void(), {
14435
+ kind: "mutation",
14436
+ auth: "admin"
14437
+ }), method(object({
14438
+ from: string(),
14439
+ to: string()
14440
+ }), _void(), {
14441
+ kind: "mutation",
14442
+ auth: "admin"
14443
+ }), method(object({
14444
+ location: string(),
14445
+ zone: string().nullable()
14446
+ }), _void(), {
14447
+ kind: "mutation",
14448
+ auth: "admin"
14358
14449
  }), method(object({
14359
14450
  deviceId: number(),
14360
14451
  disabled: boolean()
@@ -37282,6 +37373,12 @@ Object.freeze({
37282
37373
  addonId: null,
37283
37374
  access: "view"
37284
37375
  },
37376
+ "deviceManager.listLocationDescriptions": {
37377
+ capName: "device-manager",
37378
+ capScope: "system",
37379
+ addonId: null,
37380
+ access: "view"
37381
+ },
37285
37382
  "deviceManager.listLocationIcons": {
37286
37383
  capName: "device-manager",
37287
37384
  capScope: "system",
@@ -37300,6 +37397,12 @@ Object.freeze({
37300
37397
  addonId: null,
37301
37398
  access: "view"
37302
37399
  },
37400
+ "deviceManager.listSiteZones": {
37401
+ capName: "device-manager",
37402
+ capScope: "system",
37403
+ addonId: null,
37404
+ access: "view"
37405
+ },
37303
37406
  "deviceManager.listWrappersForCap": {
37304
37407
  capName: "device-manager",
37305
37408
  capScope: "system",
@@ -37384,12 +37487,24 @@ Object.freeze({
37384
37487
  addonId: null,
37385
37488
  access: "delete"
37386
37489
  },
37490
+ "deviceManager.removeSiteZone": {
37491
+ capName: "device-manager",
37492
+ capScope: "system",
37493
+ addonId: null,
37494
+ access: "delete"
37495
+ },
37387
37496
  "deviceManager.renameLocation": {
37388
37497
  capName: "device-manager",
37389
37498
  capScope: "system",
37390
37499
  addonId: null,
37391
37500
  access: "create"
37392
37501
  },
37502
+ "deviceManager.renameSiteZone": {
37503
+ capName: "device-manager",
37504
+ capScope: "system",
37505
+ addonId: null,
37506
+ access: "create"
37507
+ },
37393
37508
  "deviceManager.runDeviceAction": {
37394
37509
  capName: "device-manager",
37395
37510
  capScope: "system",
@@ -37432,12 +37547,24 @@ Object.freeze({
37432
37547
  addonId: null,
37433
37548
  access: "create"
37434
37549
  },
37550
+ "deviceManager.setLocationDescription": {
37551
+ capName: "device-manager",
37552
+ capScope: "system",
37553
+ addonId: null,
37554
+ access: "create"
37555
+ },
37435
37556
  "deviceManager.setLocationIcon": {
37436
37557
  capName: "device-manager",
37437
37558
  capScope: "system",
37438
37559
  addonId: null,
37439
37560
  access: "create"
37440
37561
  },
37562
+ "deviceManager.setLocationZone": {
37563
+ capName: "device-manager",
37564
+ capScope: "system",
37565
+ addonId: null,
37566
+ access: "create"
37567
+ },
37441
37568
  "deviceManager.setMetadata": {
37442
37569
  capName: "device-manager",
37443
37570
  capScope: "system",
@@ -37468,6 +37595,12 @@ Object.freeze({
37468
37595
  addonId: null,
37469
37596
  access: "create"
37470
37597
  },
37598
+ "deviceManager.setSiteZone": {
37599
+ capName: "device-manager",
37600
+ capScope: "system",
37601
+ addonId: null,
37602
+ access: "create"
37603
+ },
37471
37604
  "deviceManager.setStreamProfileMap": {
37472
37605
  capName: "device-manager",
37473
37606
  capScope: "system",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-import-alexa",
3
- "version": "0.2.105",
3
+ "version": "0.2.106",
4
4
  "description": "Alexa device-import provider for CamStack — imports the smart-home devices in a user's Alexa account via the unofficial alexa-remote2 cookie/token client (the inverse of the Alexa exporter)",
5
5
  "keywords": [
6
6
  "camstack",