@camstack/addon-provider-wyze 0.2.109 → 0.2.110

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
@@ -13528,6 +13528,43 @@ var ExposeInputSchema = object({
13528
13528
  });
13529
13529
  var UnexposeInputSchema = object({ deviceId: string() });
13530
13530
  method(_void(), DeviceExportStatusSchema), method(_void(), array(DeviceKindSchema)), method(_void(), array(ExposedDeviceSchema)), method(ExposeInputSchema, _void(), { kind: "mutation" }), method(UnexposeInputSchema, _void(), { kind: "mutation" });
13531
+ /** Wire/storage schema for one icon id. */
13532
+ var LocationIconIdSchema = _enum([
13533
+ "map-pin",
13534
+ "house",
13535
+ "door-open",
13536
+ "sofa",
13537
+ "utensils",
13538
+ "bed-double",
13539
+ "bath",
13540
+ "briefcase",
13541
+ "car",
13542
+ "circle-parking",
13543
+ "route",
13544
+ "trees",
13545
+ "umbrella",
13546
+ "waves-ladder",
13547
+ "fence",
13548
+ "package",
13549
+ "warehouse",
13550
+ "store",
13551
+ "sun",
13552
+ "radar"
13553
+ ]);
13554
+ /**
13555
+ * One (location, icon) assignment as it travels.
13556
+ *
13557
+ * `locationKey` is ALWAYS {@link locationIconKey} of the label — never the
13558
+ * operator's casing. The registry matches labels trimmed + case-insensitively
13559
+ * everywhere (`addLocation`, `removeLocation`, `renameLocation`), and a
13560
+ * case-only rename (`cucina` → `Cucina`) is a real edit this repo supports; a
13561
+ * map keyed on the displayed casing would orphan its entry on exactly that
13562
+ * edit. Consumers join by keying their own label through `locationIconKey`.
13563
+ */
13564
+ var LocationIconAssignmentSchema = object({
13565
+ locationKey: string(),
13566
+ icon: LocationIconIdSchema
13567
+ });
13531
13568
  var ProviderStatusSchema = object({
13532
13569
  connected: boolean(),
13533
13570
  deviceCount: number(),
@@ -14120,6 +14157,12 @@ method(object({
14120
14157
  }), object({ moved: number() }), {
14121
14158
  kind: "mutation",
14122
14159
  auth: "admin"
14160
+ }), method(_void(), array(LocationIconAssignmentSchema)), method(object({
14161
+ location: string(),
14162
+ icon: LocationIconIdSchema.nullable()
14163
+ }), _void(), {
14164
+ kind: "mutation",
14165
+ auth: "admin"
14123
14166
  }), method(object({
14124
14167
  deviceId: number(),
14125
14168
  disabled: boolean()
@@ -37142,6 +37185,12 @@ Object.freeze({
37142
37185
  addonId: null,
37143
37186
  access: "view"
37144
37187
  },
37188
+ "deviceManager.listLocationIcons": {
37189
+ capName: "device-manager",
37190
+ capScope: "system",
37191
+ addonId: null,
37192
+ access: "view"
37193
+ },
37145
37194
  "deviceManager.listLocations": {
37146
37195
  capName: "device-manager",
37147
37196
  capScope: "system",
@@ -37286,6 +37335,12 @@ Object.freeze({
37286
37335
  addonId: null,
37287
37336
  access: "create"
37288
37337
  },
37338
+ "deviceManager.setLocationIcon": {
37339
+ capName: "device-manager",
37340
+ capScope: "system",
37341
+ addonId: null,
37342
+ access: "create"
37343
+ },
37289
37344
  "deviceManager.setMetadata": {
37290
37345
  capName: "device-manager",
37291
37346
  capScope: "system",
package/dist/addon.mjs CHANGED
@@ -13507,6 +13507,43 @@ var ExposeInputSchema = object({
13507
13507
  });
13508
13508
  var UnexposeInputSchema = object({ deviceId: string() });
13509
13509
  method(_void(), DeviceExportStatusSchema), method(_void(), array(DeviceKindSchema)), method(_void(), array(ExposedDeviceSchema)), method(ExposeInputSchema, _void(), { kind: "mutation" }), method(UnexposeInputSchema, _void(), { kind: "mutation" });
13510
+ /** Wire/storage schema for one icon id. */
13511
+ var LocationIconIdSchema = _enum([
13512
+ "map-pin",
13513
+ "house",
13514
+ "door-open",
13515
+ "sofa",
13516
+ "utensils",
13517
+ "bed-double",
13518
+ "bath",
13519
+ "briefcase",
13520
+ "car",
13521
+ "circle-parking",
13522
+ "route",
13523
+ "trees",
13524
+ "umbrella",
13525
+ "waves-ladder",
13526
+ "fence",
13527
+ "package",
13528
+ "warehouse",
13529
+ "store",
13530
+ "sun",
13531
+ "radar"
13532
+ ]);
13533
+ /**
13534
+ * One (location, icon) assignment as it travels.
13535
+ *
13536
+ * `locationKey` is ALWAYS {@link locationIconKey} of the label — never the
13537
+ * operator's casing. The registry matches labels trimmed + case-insensitively
13538
+ * everywhere (`addLocation`, `removeLocation`, `renameLocation`), and a
13539
+ * case-only rename (`cucina` → `Cucina`) is a real edit this repo supports; a
13540
+ * map keyed on the displayed casing would orphan its entry on exactly that
13541
+ * edit. Consumers join by keying their own label through `locationIconKey`.
13542
+ */
13543
+ var LocationIconAssignmentSchema = object({
13544
+ locationKey: string(),
13545
+ icon: LocationIconIdSchema
13546
+ });
13510
13547
  var ProviderStatusSchema = object({
13511
13548
  connected: boolean(),
13512
13549
  deviceCount: number(),
@@ -14099,6 +14136,12 @@ method(object({
14099
14136
  }), object({ moved: number() }), {
14100
14137
  kind: "mutation",
14101
14138
  auth: "admin"
14139
+ }), method(_void(), array(LocationIconAssignmentSchema)), method(object({
14140
+ location: string(),
14141
+ icon: LocationIconIdSchema.nullable()
14142
+ }), _void(), {
14143
+ kind: "mutation",
14144
+ auth: "admin"
14102
14145
  }), method(object({
14103
14146
  deviceId: number(),
14104
14147
  disabled: boolean()
@@ -37121,6 +37164,12 @@ Object.freeze({
37121
37164
  addonId: null,
37122
37165
  access: "view"
37123
37166
  },
37167
+ "deviceManager.listLocationIcons": {
37168
+ capName: "device-manager",
37169
+ capScope: "system",
37170
+ addonId: null,
37171
+ access: "view"
37172
+ },
37124
37173
  "deviceManager.listLocations": {
37125
37174
  capName: "device-manager",
37126
37175
  capScope: "system",
@@ -37265,6 +37314,12 @@ Object.freeze({
37265
37314
  addonId: null,
37266
37315
  access: "create"
37267
37316
  },
37317
+ "deviceManager.setLocationIcon": {
37318
+ capName: "device-manager",
37319
+ capScope: "system",
37320
+ addonId: null,
37321
+ access: "create"
37322
+ },
37268
37323
  "deviceManager.setMetadata": {
37269
37324
  capName: "device-manager",
37270
37325
  capScope: "system",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-wyze",
3
- "version": "0.2.109",
3
+ "version": "0.2.110",
4
4
  "description": "Wyze camera device-provider addon for CamStack — wraps the @apocaliss92/wyze-bridge-js P2P/DTLS client, feeding the stream-broker via the pull-rfc4571 lazy-publish path (a structural twin of addon-provider-reolink)",
5
5
  "keywords": [
6
6
  "camstack",