@camstack/addon-mqtt-broker 1.2.104 → 1.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.
@@ -13319,6 +13319,43 @@ var ExposeInputSchema = object({
13319
13319
  });
13320
13320
  var UnexposeInputSchema = object({ deviceId: string() });
13321
13321
  method(_void(), DeviceExportStatusSchema), method(_void(), array(DeviceKindSchema)), method(_void(), array(ExposedDeviceSchema)), method(ExposeInputSchema, _void(), { kind: "mutation" }), method(UnexposeInputSchema, _void(), { kind: "mutation" });
13322
+ /** Wire/storage schema for one icon id. */
13323
+ var LocationIconIdSchema = _enum([
13324
+ "map-pin",
13325
+ "house",
13326
+ "door-open",
13327
+ "sofa",
13328
+ "utensils",
13329
+ "bed-double",
13330
+ "bath",
13331
+ "briefcase",
13332
+ "car",
13333
+ "circle-parking",
13334
+ "route",
13335
+ "trees",
13336
+ "umbrella",
13337
+ "waves-ladder",
13338
+ "fence",
13339
+ "package",
13340
+ "warehouse",
13341
+ "store",
13342
+ "sun",
13343
+ "radar"
13344
+ ]);
13345
+ /**
13346
+ * One (location, icon) assignment as it travels.
13347
+ *
13348
+ * `locationKey` is ALWAYS {@link locationIconKey} of the label — never the
13349
+ * operator's casing. The registry matches labels trimmed + case-insensitively
13350
+ * everywhere (`addLocation`, `removeLocation`, `renameLocation`), and a
13351
+ * case-only rename (`cucina` → `Cucina`) is a real edit this repo supports; a
13352
+ * map keyed on the displayed casing would orphan its entry on exactly that
13353
+ * edit. Consumers join by keying their own label through `locationIconKey`.
13354
+ */
13355
+ var LocationIconAssignmentSchema = object({
13356
+ locationKey: string(),
13357
+ icon: LocationIconIdSchema
13358
+ });
13322
13359
  var ProviderStatusSchema = object({
13323
13360
  connected: boolean(),
13324
13361
  deviceCount: number(),
@@ -13830,6 +13867,12 @@ method(object({
13830
13867
  }), object({ moved: number() }), {
13831
13868
  kind: "mutation",
13832
13869
  auth: "admin"
13870
+ }), method(_void(), array(LocationIconAssignmentSchema)), method(object({
13871
+ location: string(),
13872
+ icon: LocationIconIdSchema.nullable()
13873
+ }), _void(), {
13874
+ kind: "mutation",
13875
+ auth: "admin"
13833
13876
  }), method(object({
13834
13877
  deviceId: number(),
13835
13878
  disabled: boolean()
@@ -19745,6 +19788,7 @@ var MediaFileKindEnum = _enum([
19745
19788
  "keyFrame",
19746
19789
  "keyFrameSmall",
19747
19790
  "thumbnailSmall",
19791
+ "confirmationCrop",
19748
19792
  "sceneFrame"
19749
19793
  ]);
19750
19794
  /**
@@ -32671,6 +32715,12 @@ Object.freeze({
32671
32715
  addonId: null,
32672
32716
  access: "view"
32673
32717
  },
32718
+ "deviceManager.listLocationIcons": {
32719
+ capName: "device-manager",
32720
+ capScope: "system",
32721
+ addonId: null,
32722
+ access: "view"
32723
+ },
32674
32724
  "deviceManager.listLocations": {
32675
32725
  capName: "device-manager",
32676
32726
  capScope: "system",
@@ -32815,6 +32865,12 @@ Object.freeze({
32815
32865
  addonId: null,
32816
32866
  access: "create"
32817
32867
  },
32868
+ "deviceManager.setLocationIcon": {
32869
+ capName: "device-manager",
32870
+ capScope: "system",
32871
+ addonId: null,
32872
+ access: "create"
32873
+ },
32818
32874
  "deviceManager.setMetadata": {
32819
32875
  capName: "device-manager",
32820
32876
  capScope: "system",
@@ -13314,6 +13314,43 @@ var ExposeInputSchema = object({
13314
13314
  });
13315
13315
  var UnexposeInputSchema = object({ deviceId: string() });
13316
13316
  method(_void(), DeviceExportStatusSchema), method(_void(), array(DeviceKindSchema)), method(_void(), array(ExposedDeviceSchema)), method(ExposeInputSchema, _void(), { kind: "mutation" }), method(UnexposeInputSchema, _void(), { kind: "mutation" });
13317
+ /** Wire/storage schema for one icon id. */
13318
+ var LocationIconIdSchema = _enum([
13319
+ "map-pin",
13320
+ "house",
13321
+ "door-open",
13322
+ "sofa",
13323
+ "utensils",
13324
+ "bed-double",
13325
+ "bath",
13326
+ "briefcase",
13327
+ "car",
13328
+ "circle-parking",
13329
+ "route",
13330
+ "trees",
13331
+ "umbrella",
13332
+ "waves-ladder",
13333
+ "fence",
13334
+ "package",
13335
+ "warehouse",
13336
+ "store",
13337
+ "sun",
13338
+ "radar"
13339
+ ]);
13340
+ /**
13341
+ * One (location, icon) assignment as it travels.
13342
+ *
13343
+ * `locationKey` is ALWAYS {@link locationIconKey} of the label — never the
13344
+ * operator's casing. The registry matches labels trimmed + case-insensitively
13345
+ * everywhere (`addLocation`, `removeLocation`, `renameLocation`), and a
13346
+ * case-only rename (`cucina` → `Cucina`) is a real edit this repo supports; a
13347
+ * map keyed on the displayed casing would orphan its entry on exactly that
13348
+ * edit. Consumers join by keying their own label through `locationIconKey`.
13349
+ */
13350
+ var LocationIconAssignmentSchema = object({
13351
+ locationKey: string(),
13352
+ icon: LocationIconIdSchema
13353
+ });
13317
13354
  var ProviderStatusSchema = object({
13318
13355
  connected: boolean(),
13319
13356
  deviceCount: number(),
@@ -13825,6 +13862,12 @@ method(object({
13825
13862
  }), object({ moved: number() }), {
13826
13863
  kind: "mutation",
13827
13864
  auth: "admin"
13865
+ }), method(_void(), array(LocationIconAssignmentSchema)), method(object({
13866
+ location: string(),
13867
+ icon: LocationIconIdSchema.nullable()
13868
+ }), _void(), {
13869
+ kind: "mutation",
13870
+ auth: "admin"
13828
13871
  }), method(object({
13829
13872
  deviceId: number(),
13830
13873
  disabled: boolean()
@@ -19740,6 +19783,7 @@ var MediaFileKindEnum = _enum([
19740
19783
  "keyFrame",
19741
19784
  "keyFrameSmall",
19742
19785
  "thumbnailSmall",
19786
+ "confirmationCrop",
19743
19787
  "sceneFrame"
19744
19788
  ]);
19745
19789
  /**
@@ -32666,6 +32710,12 @@ Object.freeze({
32666
32710
  addonId: null,
32667
32711
  access: "view"
32668
32712
  },
32713
+ "deviceManager.listLocationIcons": {
32714
+ capName: "device-manager",
32715
+ capScope: "system",
32716
+ addonId: null,
32717
+ access: "view"
32718
+ },
32669
32719
  "deviceManager.listLocations": {
32670
32720
  capName: "device-manager",
32671
32721
  capScope: "system",
@@ -32810,6 +32860,12 @@ Object.freeze({
32810
32860
  addonId: null,
32811
32861
  access: "create"
32812
32862
  },
32863
+ "deviceManager.setLocationIcon": {
32864
+ capName: "device-manager",
32865
+ capScope: "system",
32866
+ addonId: null,
32867
+ access: "create"
32868
+ },
32813
32869
  "deviceManager.setMetadata": {
32814
32870
  capName: "device-manager",
32815
32871
  capScope: "system",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-mqtt-broker",
3
- "version": "1.2.104",
3
+ "version": "1.2.106",
4
4
  "description": "MQTT broker registry addon for CamStack — manages external broker entries + an optional embedded aedes broker. Consumers spin up their own `mqtt.js` clients via the `mqtt-broker` cap.",
5
5
  "keywords": [
6
6
  "camstack",