@camstack/addon-agent-ui 1.2.111 → 1.2.113
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 +188 -3
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -12266,7 +12266,23 @@ var PickStreamRequirementsSchema = object({
|
|
|
12266
12266
|
* This is what lets one picker serve both the bypass and the full source
|
|
12267
12267
|
* choice, instead of a consumer scoring privately when the bypass misses.
|
|
12268
12268
|
*/
|
|
12269
|
-
allowTranscode: boolean().optional()
|
|
12269
|
+
allowTranscode: boolean().optional(),
|
|
12270
|
+
/**
|
|
12271
|
+
* Consider ONLY streams the broker has bound to a profile slot.
|
|
12272
|
+
*
|
|
12273
|
+
* A consumer that dials the broker — which is every exporter, since none
|
|
12274
|
+
* of them may open the camera's own URL — can do nothing with a source
|
|
12275
|
+
* that has no slot: there is no restream to dial. Without this the picker
|
|
12276
|
+
* can name such a stream, and each consumer discovers the dead end for
|
|
12277
|
+
* itself: Alexa's `profileForCamStream` returns `null` and it quietly
|
|
12278
|
+
* falls back, and HomeKit would have had to grow the same function again.
|
|
12279
|
+
*
|
|
12280
|
+
* Default `false`, and deliberately so: the BROKER itself picks through
|
|
12281
|
+
* here when it decides which source to BIND to a slot
|
|
12282
|
+
* (`computeInitialAssignment`), and it must see the unbound ones or it
|
|
12283
|
+
* could never bind them.
|
|
12284
|
+
*/
|
|
12285
|
+
requireProfileBound: boolean().optional()
|
|
12270
12286
|
}).readonly();
|
|
12271
12287
|
var PickStreamPreferencesSchema = object({
|
|
12272
12288
|
/**
|
|
@@ -12307,7 +12323,43 @@ var PickedCamStreamSchema = object({
|
|
|
12307
12323
|
*/
|
|
12308
12324
|
transcodes: boolean(),
|
|
12309
12325
|
/** One-line explanation of why this stream won — for logs / debug UI. */
|
|
12310
|
-
reason: string()
|
|
12326
|
+
reason: string(),
|
|
12327
|
+
/**
|
|
12328
|
+
* The broker profile slot this source is bound to, when it is bound.
|
|
12329
|
+
*
|
|
12330
|
+
* Answered HERE because every consumer needs it and none of them can get it
|
|
12331
|
+
* from the `camStreamId` alone. Alexa wrote `profileForCamStream` for it —
|
|
12332
|
+
* a second cap read plus a `null` branch — and HomeKit was about to write
|
|
12333
|
+
* the same function a second time.
|
|
12334
|
+
*
|
|
12335
|
+
* Absent when the source has no slot, which a caller passing
|
|
12336
|
+
* `requireProfileBound` can never see.
|
|
12337
|
+
*/
|
|
12338
|
+
profile: CamProfileSchema.optional(),
|
|
12339
|
+
/** The broker id of that slot, for logs that must name what was dialled. */
|
|
12340
|
+
brokerId: string().optional(),
|
|
12341
|
+
/**
|
|
12342
|
+
* The broker restream URL to dial for this stream.
|
|
12343
|
+
*
|
|
12344
|
+
* An exporter must never open the camera's own URL — the broker is the one
|
|
12345
|
+
* that dials the camera, and every consumer goes through its restream. So
|
|
12346
|
+
* the picker answers with the thing a consumer may actually use, instead of
|
|
12347
|
+
* naming a source and leaving each caller to look the URL up.
|
|
12348
|
+
*/
|
|
12349
|
+
url: string().optional(),
|
|
12350
|
+
/**
|
|
12351
|
+
* Frames per second this stream really delivers, and where the number came
|
|
12352
|
+
* from.
|
|
12353
|
+
*
|
|
12354
|
+
* It is here because getting it wrong is expensive and silent: a HomeKit
|
|
12355
|
+
* accessory advertised 720p at 24 fps while the slot serving it ran at 9,
|
|
12356
|
+
* and the controller rendered nothing at all. The source is carried with the
|
|
12357
|
+
* value for the same reason the bitrate evidence is: `published` is what the
|
|
12358
|
+
* publisher declares and `measured` is what the broker observed, and they
|
|
12359
|
+
* are not interchangeable.
|
|
12360
|
+
*/
|
|
12361
|
+
fps: number().positive().optional(),
|
|
12362
|
+
fpsSource: _enum(["published", "measured"]).optional()
|
|
12311
12363
|
});
|
|
12312
12364
|
DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), array(CameraStreamSchema).readonly()), method(object({ deviceId: number().int().nonnegative() }), array(ProfileSlotSchema).readonly()), method(object({
|
|
12313
12365
|
deviceId: number().int().nonnegative(),
|
|
@@ -13281,6 +13333,70 @@ var LocationIconAssignmentSchema = object({
|
|
|
13281
13333
|
locationKey: string(),
|
|
13282
13334
|
icon: LocationIconIdSchema
|
|
13283
13335
|
});
|
|
13336
|
+
/**
|
|
13337
|
+
* One (location, description) assignment as it travels.
|
|
13338
|
+
*
|
|
13339
|
+
* Same key discipline as {@link LocationIconAssignmentSchema}, and for the same
|
|
13340
|
+
* reason: this lived for a while in the post-analysis addon's own settings,
|
|
13341
|
+
* keyed by a HAND-TYPED label matched exactly and case-sensitively. A rename in
|
|
13342
|
+
* the Locations page carried the icon and silently orphaned the description —
|
|
13343
|
+
* two authorities for one thing, joined by two different rules. Now both hang
|
|
13344
|
+
* off the location itself, on `locationIconKey`.
|
|
13345
|
+
*/
|
|
13346
|
+
var LocationDescriptionAssignmentSchema = object({
|
|
13347
|
+
locationKey: string(),
|
|
13348
|
+
description: string()
|
|
13349
|
+
});
|
|
13350
|
+
/**
|
|
13351
|
+
* A SITE ZONE — a named part of the property that several locations belong to.
|
|
13352
|
+
*
|
|
13353
|
+
* "Zona notte" holds every bedroom; "Zona giorno" the living room and the
|
|
13354
|
+
* kitchen. A camera belongs to exactly one location, and a location to at most
|
|
13355
|
+
* one zone, so a camera's zone is derived and never stored on the device: the
|
|
13356
|
+
* whole point of this entity is that grouping rooms touches no device row.
|
|
13357
|
+
*
|
|
13358
|
+
* ## Why not `zone`
|
|
13359
|
+
*
|
|
13360
|
+
* Because `zone` is already the most loaded word in this product: 612 source
|
|
13361
|
+
* files and 24 Italian strings where it means a DETECTION zone drawn on a
|
|
13362
|
+
* camera. The two are unrelated — one is a polygon in a frame, the other is a
|
|
13363
|
+
* set of rooms — and a reader who confuses them will look for a camera's
|
|
13364
|
+
* bedrooms. So the code says `siteZone` everywhere, and the UI frees the plain
|
|
13365
|
+
* word by calling the drawn one what it actually is: a detection zone.
|
|
13366
|
+
*
|
|
13367
|
+
* ## The key
|
|
13368
|
+
*
|
|
13369
|
+
* `siteZoneKey(label)` — trimmed, lower-cased, the SAME derivation locations
|
|
13370
|
+
* use (`locationIconKey`). Membership and the icon both hang off it, so a
|
|
13371
|
+
* case-only rename keeps them, which is exactly the orphaning that cost us a
|
|
13372
|
+
* silently-dropped location description.
|
|
13373
|
+
*
|
|
13374
|
+
* The icon vocabulary is the location one, unchanged: a zone is drawn on the
|
|
13375
|
+
* same two surfaces by the same glyph map, so a second vocabulary would be a
|
|
13376
|
+
* second thing to keep drawable (`scripts/check-location-icons-drawable.ts`).
|
|
13377
|
+
*/
|
|
13378
|
+
/**
|
|
13379
|
+
* One zone as it travels: its key, the label the operator typed, its icon and
|
|
13380
|
+
* the locations inside it.
|
|
13381
|
+
*
|
|
13382
|
+
* The LABEL is carried alongside the key because the key is lossy on purpose —
|
|
13383
|
+
* a surface must show "Zona notte", not "zona notte". Locations are carried
|
|
13384
|
+
* here, rather than left to a second call, because every consumer wants both
|
|
13385
|
+
* at once and a viewer that asked twice could render a zone whose membership
|
|
13386
|
+
* it has not fetched yet.
|
|
13387
|
+
*
|
|
13388
|
+
* `icon: null` means nobody chose one, which is NOT the fallback pin: only one
|
|
13389
|
+
* of those two is a choice, and a picker has to draw them differently.
|
|
13390
|
+
*/
|
|
13391
|
+
var SiteZoneSchema = object({
|
|
13392
|
+
zoneKey: string(),
|
|
13393
|
+
label: string(),
|
|
13394
|
+
icon: LocationIconIdSchema.nullable(),
|
|
13395
|
+
/** Folded location keys, sorted. A location listed here need not be
|
|
13396
|
+
* REGISTERED — devices carry labels nobody registered, and those rooms are
|
|
13397
|
+
* the ones that most want grouping. */
|
|
13398
|
+
locationKeys: array(string())
|
|
13399
|
+
});
|
|
13284
13400
|
var ProviderStatusSchema = object({
|
|
13285
13401
|
connected: boolean(),
|
|
13286
13402
|
deviceCount: number(),
|
|
@@ -13798,6 +13914,33 @@ method(object({
|
|
|
13798
13914
|
}), _void(), {
|
|
13799
13915
|
kind: "mutation",
|
|
13800
13916
|
auth: "admin"
|
|
13917
|
+
}), method(_void(), array(LocationDescriptionAssignmentSchema)), method(object({
|
|
13918
|
+
location: string(),
|
|
13919
|
+
description: string().max(400).nullable()
|
|
13920
|
+
}), _void(), {
|
|
13921
|
+
kind: "mutation",
|
|
13922
|
+
auth: "admin"
|
|
13923
|
+
}), method(_void(), array(SiteZoneSchema)), method(object({
|
|
13924
|
+
name: string(),
|
|
13925
|
+
icon: LocationIconIdSchema.nullable().optional()
|
|
13926
|
+
}), _void(), {
|
|
13927
|
+
kind: "mutation",
|
|
13928
|
+
auth: "admin"
|
|
13929
|
+
}), method(object({ name: string() }), _void(), {
|
|
13930
|
+
kind: "mutation",
|
|
13931
|
+
auth: "admin"
|
|
13932
|
+
}), method(object({
|
|
13933
|
+
from: string(),
|
|
13934
|
+
to: string()
|
|
13935
|
+
}), _void(), {
|
|
13936
|
+
kind: "mutation",
|
|
13937
|
+
auth: "admin"
|
|
13938
|
+
}), method(object({
|
|
13939
|
+
location: string(),
|
|
13940
|
+
zone: string().nullable()
|
|
13941
|
+
}), _void(), {
|
|
13942
|
+
kind: "mutation",
|
|
13943
|
+
auth: "admin"
|
|
13801
13944
|
}), method(object({
|
|
13802
13945
|
deviceId: number(),
|
|
13803
13946
|
disabled: boolean()
|
|
@@ -32621,6 +32764,12 @@ Object.freeze({
|
|
|
32621
32764
|
addonId: null,
|
|
32622
32765
|
access: "view"
|
|
32623
32766
|
},
|
|
32767
|
+
"deviceManager.listLocationDescriptions": {
|
|
32768
|
+
capName: "device-manager",
|
|
32769
|
+
capScope: "system",
|
|
32770
|
+
addonId: null,
|
|
32771
|
+
access: "view"
|
|
32772
|
+
},
|
|
32624
32773
|
"deviceManager.listLocationIcons": {
|
|
32625
32774
|
capName: "device-manager",
|
|
32626
32775
|
capScope: "system",
|
|
@@ -32639,6 +32788,12 @@ Object.freeze({
|
|
|
32639
32788
|
addonId: null,
|
|
32640
32789
|
access: "view"
|
|
32641
32790
|
},
|
|
32791
|
+
"deviceManager.listSiteZones": {
|
|
32792
|
+
capName: "device-manager",
|
|
32793
|
+
capScope: "system",
|
|
32794
|
+
addonId: null,
|
|
32795
|
+
access: "view"
|
|
32796
|
+
},
|
|
32642
32797
|
"deviceManager.listWrappersForCap": {
|
|
32643
32798
|
capName: "device-manager",
|
|
32644
32799
|
capScope: "system",
|
|
@@ -32723,12 +32878,24 @@ Object.freeze({
|
|
|
32723
32878
|
addonId: null,
|
|
32724
32879
|
access: "delete"
|
|
32725
32880
|
},
|
|
32881
|
+
"deviceManager.removeSiteZone": {
|
|
32882
|
+
capName: "device-manager",
|
|
32883
|
+
capScope: "system",
|
|
32884
|
+
addonId: null,
|
|
32885
|
+
access: "delete"
|
|
32886
|
+
},
|
|
32726
32887
|
"deviceManager.renameLocation": {
|
|
32727
32888
|
capName: "device-manager",
|
|
32728
32889
|
capScope: "system",
|
|
32729
32890
|
addonId: null,
|
|
32730
32891
|
access: "create"
|
|
32731
32892
|
},
|
|
32893
|
+
"deviceManager.renameSiteZone": {
|
|
32894
|
+
capName: "device-manager",
|
|
32895
|
+
capScope: "system",
|
|
32896
|
+
addonId: null,
|
|
32897
|
+
access: "create"
|
|
32898
|
+
},
|
|
32732
32899
|
"deviceManager.runDeviceAction": {
|
|
32733
32900
|
capName: "device-manager",
|
|
32734
32901
|
capScope: "system",
|
|
@@ -32771,12 +32938,24 @@ Object.freeze({
|
|
|
32771
32938
|
addonId: null,
|
|
32772
32939
|
access: "create"
|
|
32773
32940
|
},
|
|
32941
|
+
"deviceManager.setLocationDescription": {
|
|
32942
|
+
capName: "device-manager",
|
|
32943
|
+
capScope: "system",
|
|
32944
|
+
addonId: null,
|
|
32945
|
+
access: "create"
|
|
32946
|
+
},
|
|
32774
32947
|
"deviceManager.setLocationIcon": {
|
|
32775
32948
|
capName: "device-manager",
|
|
32776
32949
|
capScope: "system",
|
|
32777
32950
|
addonId: null,
|
|
32778
32951
|
access: "create"
|
|
32779
32952
|
},
|
|
32953
|
+
"deviceManager.setLocationZone": {
|
|
32954
|
+
capName: "device-manager",
|
|
32955
|
+
capScope: "system",
|
|
32956
|
+
addonId: null,
|
|
32957
|
+
access: "create"
|
|
32958
|
+
},
|
|
32780
32959
|
"deviceManager.setMetadata": {
|
|
32781
32960
|
capName: "device-manager",
|
|
32782
32961
|
capScope: "system",
|
|
@@ -32807,6 +32986,12 @@ Object.freeze({
|
|
|
32807
32986
|
addonId: null,
|
|
32808
32987
|
access: "create"
|
|
32809
32988
|
},
|
|
32989
|
+
"deviceManager.setSiteZone": {
|
|
32990
|
+
capName: "device-manager",
|
|
32991
|
+
capScope: "system",
|
|
32992
|
+
addonId: null,
|
|
32993
|
+
access: "create"
|
|
32994
|
+
},
|
|
32810
32995
|
"deviceManager.setStreamProfileMap": {
|
|
32811
32996
|
capName: "device-manager",
|
|
32812
32997
|
capScope: "system",
|
|
@@ -39895,7 +40080,7 @@ var AgentUIAddon = class extends BaseAddon {
|
|
|
39895
40080
|
capability: adminUiCapability,
|
|
39896
40081
|
provider: {
|
|
39897
40082
|
getStaticDir: async () => ({ staticDir: path.resolve(__dirname) }),
|
|
39898
|
-
getVersion: async () => ({ version: "1.2.
|
|
40083
|
+
getVersion: async () => ({ version: "1.2.113" })
|
|
39899
40084
|
}
|
|
39900
40085
|
}];
|
|
39901
40086
|
}
|