@camstack/addon-provider-rtsp 1.2.105 → 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.
package/dist/addon.js CHANGED
@@ -13535,6 +13535,43 @@ var ExposeInputSchema = object({
13535
13535
  });
13536
13536
  var UnexposeInputSchema = object({ deviceId: string() });
13537
13537
  method(_void(), DeviceExportStatusSchema), method(_void(), array(DeviceKindSchema)), method(_void(), array(ExposedDeviceSchema)), method(ExposeInputSchema, _void(), { kind: "mutation" }), method(UnexposeInputSchema, _void(), { kind: "mutation" });
13538
+ /** Wire/storage schema for one icon id. */
13539
+ var LocationIconIdSchema = _enum([
13540
+ "map-pin",
13541
+ "house",
13542
+ "door-open",
13543
+ "sofa",
13544
+ "utensils",
13545
+ "bed-double",
13546
+ "bath",
13547
+ "briefcase",
13548
+ "car",
13549
+ "circle-parking",
13550
+ "route",
13551
+ "trees",
13552
+ "umbrella",
13553
+ "waves-ladder",
13554
+ "fence",
13555
+ "package",
13556
+ "warehouse",
13557
+ "store",
13558
+ "sun",
13559
+ "radar"
13560
+ ]);
13561
+ /**
13562
+ * One (location, icon) assignment as it travels.
13563
+ *
13564
+ * `locationKey` is ALWAYS {@link locationIconKey} of the label — never the
13565
+ * operator's casing. The registry matches labels trimmed + case-insensitively
13566
+ * everywhere (`addLocation`, `removeLocation`, `renameLocation`), and a
13567
+ * case-only rename (`cucina` → `Cucina`) is a real edit this repo supports; a
13568
+ * map keyed on the displayed casing would orphan its entry on exactly that
13569
+ * edit. Consumers join by keying their own label through `locationIconKey`.
13570
+ */
13571
+ var LocationIconAssignmentSchema = object({
13572
+ locationKey: string(),
13573
+ icon: LocationIconIdSchema
13574
+ });
13538
13575
  var ProviderStatusSchema = object({
13539
13576
  connected: boolean(),
13540
13577
  deviceCount: number(),
@@ -14127,6 +14164,12 @@ method(object({
14127
14164
  }), object({ moved: number() }), {
14128
14165
  kind: "mutation",
14129
14166
  auth: "admin"
14167
+ }), method(_void(), array(LocationIconAssignmentSchema)), method(object({
14168
+ location: string(),
14169
+ icon: LocationIconIdSchema.nullable()
14170
+ }), _void(), {
14171
+ kind: "mutation",
14172
+ auth: "admin"
14130
14173
  }), method(object({
14131
14174
  deviceId: number(),
14132
14175
  disabled: boolean()
@@ -37215,6 +37258,12 @@ Object.freeze({
37215
37258
  addonId: null,
37216
37259
  access: "view"
37217
37260
  },
37261
+ "deviceManager.listLocationIcons": {
37262
+ capName: "device-manager",
37263
+ capScope: "system",
37264
+ addonId: null,
37265
+ access: "view"
37266
+ },
37218
37267
  "deviceManager.listLocations": {
37219
37268
  capName: "device-manager",
37220
37269
  capScope: "system",
@@ -37359,6 +37408,12 @@ Object.freeze({
37359
37408
  addonId: null,
37360
37409
  access: "create"
37361
37410
  },
37411
+ "deviceManager.setLocationIcon": {
37412
+ capName: "device-manager",
37413
+ capScope: "system",
37414
+ addonId: null,
37415
+ access: "create"
37416
+ },
37362
37417
  "deviceManager.setMetadata": {
37363
37418
  capName: "device-manager",
37364
37419
  capScope: "system",
package/dist/addon.mjs CHANGED
@@ -13511,6 +13511,43 @@ var ExposeInputSchema = object({
13511
13511
  });
13512
13512
  var UnexposeInputSchema = object({ deviceId: string() });
13513
13513
  method(_void(), DeviceExportStatusSchema), method(_void(), array(DeviceKindSchema)), method(_void(), array(ExposedDeviceSchema)), method(ExposeInputSchema, _void(), { kind: "mutation" }), method(UnexposeInputSchema, _void(), { kind: "mutation" });
13514
+ /** Wire/storage schema for one icon id. */
13515
+ var LocationIconIdSchema = _enum([
13516
+ "map-pin",
13517
+ "house",
13518
+ "door-open",
13519
+ "sofa",
13520
+ "utensils",
13521
+ "bed-double",
13522
+ "bath",
13523
+ "briefcase",
13524
+ "car",
13525
+ "circle-parking",
13526
+ "route",
13527
+ "trees",
13528
+ "umbrella",
13529
+ "waves-ladder",
13530
+ "fence",
13531
+ "package",
13532
+ "warehouse",
13533
+ "store",
13534
+ "sun",
13535
+ "radar"
13536
+ ]);
13537
+ /**
13538
+ * One (location, icon) assignment as it travels.
13539
+ *
13540
+ * `locationKey` is ALWAYS {@link locationIconKey} of the label — never the
13541
+ * operator's casing. The registry matches labels trimmed + case-insensitively
13542
+ * everywhere (`addLocation`, `removeLocation`, `renameLocation`), and a
13543
+ * case-only rename (`cucina` → `Cucina`) is a real edit this repo supports; a
13544
+ * map keyed on the displayed casing would orphan its entry on exactly that
13545
+ * edit. Consumers join by keying their own label through `locationIconKey`.
13546
+ */
13547
+ var LocationIconAssignmentSchema = object({
13548
+ locationKey: string(),
13549
+ icon: LocationIconIdSchema
13550
+ });
13514
13551
  var ProviderStatusSchema = object({
13515
13552
  connected: boolean(),
13516
13553
  deviceCount: number(),
@@ -14103,6 +14140,12 @@ method(object({
14103
14140
  }), object({ moved: number() }), {
14104
14141
  kind: "mutation",
14105
14142
  auth: "admin"
14143
+ }), method(_void(), array(LocationIconAssignmentSchema)), method(object({
14144
+ location: string(),
14145
+ icon: LocationIconIdSchema.nullable()
14146
+ }), _void(), {
14147
+ kind: "mutation",
14148
+ auth: "admin"
14106
14149
  }), method(object({
14107
14150
  deviceId: number(),
14108
14151
  disabled: boolean()
@@ -37191,6 +37234,12 @@ Object.freeze({
37191
37234
  addonId: null,
37192
37235
  access: "view"
37193
37236
  },
37237
+ "deviceManager.listLocationIcons": {
37238
+ capName: "device-manager",
37239
+ capScope: "system",
37240
+ addonId: null,
37241
+ access: "view"
37242
+ },
37194
37243
  "deviceManager.listLocations": {
37195
37244
  capName: "device-manager",
37196
37245
  capScope: "system",
@@ -37335,6 +37384,12 @@ Object.freeze({
37335
37384
  addonId: null,
37336
37385
  access: "create"
37337
37386
  },
37387
+ "deviceManager.setLocationIcon": {
37388
+ capName: "device-manager",
37389
+ capScope: "system",
37390
+ addonId: null,
37391
+ access: "create"
37392
+ },
37338
37393
  "deviceManager.setMetadata": {
37339
37394
  capName: "device-manager",
37340
37395
  capScope: "system",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-rtsp",
3
- "version": "1.2.105",
3
+ "version": "1.2.106",
4
4
  "description": "Generic RTSP camera device provider addon for CamStack",
5
5
  "keywords": [
6
6
  "camstack",