@camstack/addon-export-google 0.1.69 → 0.1.70

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.
@@ -13505,6 +13505,43 @@ var deviceExportCapability = {
13505
13505
  unexposeDevice: method(UnexposeInputSchema, _void(), { kind: "mutation" })
13506
13506
  }
13507
13507
  };
13508
+ /** Wire/storage schema for one icon id. */
13509
+ var LocationIconIdSchema = _enum([
13510
+ "map-pin",
13511
+ "house",
13512
+ "door-open",
13513
+ "sofa",
13514
+ "utensils",
13515
+ "bed-double",
13516
+ "bath",
13517
+ "briefcase",
13518
+ "car",
13519
+ "circle-parking",
13520
+ "route",
13521
+ "trees",
13522
+ "umbrella",
13523
+ "waves-ladder",
13524
+ "fence",
13525
+ "package",
13526
+ "warehouse",
13527
+ "store",
13528
+ "sun",
13529
+ "radar"
13530
+ ]);
13531
+ /**
13532
+ * One (location, icon) assignment as it travels.
13533
+ *
13534
+ * `locationKey` is ALWAYS {@link locationIconKey} of the label — never the
13535
+ * operator's casing. The registry matches labels trimmed + case-insensitively
13536
+ * everywhere (`addLocation`, `removeLocation`, `renameLocation`), and a
13537
+ * case-only rename (`cucina` → `Cucina`) is a real edit this repo supports; a
13538
+ * map keyed on the displayed casing would orphan its entry on exactly that
13539
+ * edit. Consumers join by keying their own label through `locationIconKey`.
13540
+ */
13541
+ var LocationIconAssignmentSchema = object({
13542
+ locationKey: string(),
13543
+ icon: LocationIconIdSchema
13544
+ });
13508
13545
  var ProviderStatusSchema = object({
13509
13546
  connected: boolean(),
13510
13547
  deviceCount: number(),
@@ -14016,6 +14053,12 @@ method(object({
14016
14053
  }), object({ moved: number() }), {
14017
14054
  kind: "mutation",
14018
14055
  auth: "admin"
14056
+ }), method(_void(), array(LocationIconAssignmentSchema)), method(object({
14057
+ location: string(),
14058
+ icon: LocationIconIdSchema.nullable()
14059
+ }), _void(), {
14060
+ kind: "mutation",
14061
+ auth: "admin"
14019
14062
  }), method(object({
14020
14063
  deviceId: number(),
14021
14064
  disabled: boolean()
@@ -32874,6 +32917,12 @@ Object.freeze({
32874
32917
  addonId: null,
32875
32918
  access: "view"
32876
32919
  },
32920
+ "deviceManager.listLocationIcons": {
32921
+ capName: "device-manager",
32922
+ capScope: "system",
32923
+ addonId: null,
32924
+ access: "view"
32925
+ },
32877
32926
  "deviceManager.listLocations": {
32878
32927
  capName: "device-manager",
32879
32928
  capScope: "system",
@@ -33018,6 +33067,12 @@ Object.freeze({
33018
33067
  addonId: null,
33019
33068
  access: "create"
33020
33069
  },
33070
+ "deviceManager.setLocationIcon": {
33071
+ capName: "device-manager",
33072
+ capScope: "system",
33073
+ addonId: null,
33074
+ access: "create"
33075
+ },
33021
33076
  "deviceManager.setMetadata": {
33022
33077
  capName: "device-manager",
33023
33078
  capScope: "system",
@@ -13501,6 +13501,43 @@ var deviceExportCapability = {
13501
13501
  unexposeDevice: method(UnexposeInputSchema, _void(), { kind: "mutation" })
13502
13502
  }
13503
13503
  };
13504
+ /** Wire/storage schema for one icon id. */
13505
+ var LocationIconIdSchema = _enum([
13506
+ "map-pin",
13507
+ "house",
13508
+ "door-open",
13509
+ "sofa",
13510
+ "utensils",
13511
+ "bed-double",
13512
+ "bath",
13513
+ "briefcase",
13514
+ "car",
13515
+ "circle-parking",
13516
+ "route",
13517
+ "trees",
13518
+ "umbrella",
13519
+ "waves-ladder",
13520
+ "fence",
13521
+ "package",
13522
+ "warehouse",
13523
+ "store",
13524
+ "sun",
13525
+ "radar"
13526
+ ]);
13527
+ /**
13528
+ * One (location, icon) assignment as it travels.
13529
+ *
13530
+ * `locationKey` is ALWAYS {@link locationIconKey} of the label — never the
13531
+ * operator's casing. The registry matches labels trimmed + case-insensitively
13532
+ * everywhere (`addLocation`, `removeLocation`, `renameLocation`), and a
13533
+ * case-only rename (`cucina` → `Cucina`) is a real edit this repo supports; a
13534
+ * map keyed on the displayed casing would orphan its entry on exactly that
13535
+ * edit. Consumers join by keying their own label through `locationIconKey`.
13536
+ */
13537
+ var LocationIconAssignmentSchema = object({
13538
+ locationKey: string(),
13539
+ icon: LocationIconIdSchema
13540
+ });
13504
13541
  var ProviderStatusSchema = object({
13505
13542
  connected: boolean(),
13506
13543
  deviceCount: number(),
@@ -14012,6 +14049,12 @@ method(object({
14012
14049
  }), object({ moved: number() }), {
14013
14050
  kind: "mutation",
14014
14051
  auth: "admin"
14052
+ }), method(_void(), array(LocationIconAssignmentSchema)), method(object({
14053
+ location: string(),
14054
+ icon: LocationIconIdSchema.nullable()
14055
+ }), _void(), {
14056
+ kind: "mutation",
14057
+ auth: "admin"
14015
14058
  }), method(object({
14016
14059
  deviceId: number(),
14017
14060
  disabled: boolean()
@@ -32870,6 +32913,12 @@ Object.freeze({
32870
32913
  addonId: null,
32871
32914
  access: "view"
32872
32915
  },
32916
+ "deviceManager.listLocationIcons": {
32917
+ capName: "device-manager",
32918
+ capScope: "system",
32919
+ addonId: null,
32920
+ access: "view"
32921
+ },
32873
32922
  "deviceManager.listLocations": {
32874
32923
  capName: "device-manager",
32875
32924
  capScope: "system",
@@ -33014,6 +33063,12 @@ Object.freeze({
33014
33063
  addonId: null,
33015
33064
  access: "create"
33016
33065
  },
33066
+ "deviceManager.setLocationIcon": {
33067
+ capName: "device-manager",
33068
+ capScope: "system",
33069
+ addonId: null,
33070
+ access: "create"
33071
+ },
33017
33072
  "deviceManager.setMetadata": {
33018
33073
  capName: "device-manager",
33019
33074
  capScope: "system",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-export-google",
3
- "version": "0.1.69",
3
+ "version": "0.1.70",
4
4
  "description": "Google Home export — hub-side smart-home fulfillment (SYNC / QUERY / EXECUTE / DISCONNECT) for the non-camera fleet, served over the hub's own OAuth account link. No Google credential is stored, sent or required.",
5
5
  "keywords": [
6
6
  "camstack",