@camstack/addon-provider-velux 0.2.112 → 0.2.114
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 +180 -6
- package/dist/addon.mjs +180 -6
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -5360,7 +5360,7 @@ var ZodIssueCode = {
|
|
|
5360
5360
|
var ZodFirstPartyTypeKind;
|
|
5361
5361
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5362
5362
|
//#endregion
|
|
5363
|
-
//#region ../types/dist/sleep-
|
|
5363
|
+
//#region ../types/dist/sleep-Bs3xPtSh.mjs
|
|
5364
5364
|
/**
|
|
5365
5365
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5366
5366
|
* window to float samples (D455).
|
|
@@ -11850,6 +11850,24 @@ var GetStreamWithCodecInputSchema = object({
|
|
|
11850
11850
|
});
|
|
11851
11851
|
var RtpSourceSchema = object({
|
|
11852
11852
|
url: string(),
|
|
11853
|
+
/**
|
|
11854
|
+
* The SENTRY counterpart of {@link url} — the dial that asks for the stream
|
|
11855
|
+
* WITHOUT asking for the camera — or `null` when this camera offers none.
|
|
11856
|
+
*
|
|
11857
|
+
* The broker answers it because the broker is the only thing that can:
|
|
11858
|
+
* eligibility is `sentryEligible` (a BATTERY camera that DECLARES the signals
|
|
11859
|
+
* cap), asked of facts only the broker holds. A consumer re-deriving it from
|
|
11860
|
+
* cap bindings would be a second authority, and two authorities on the same
|
|
11861
|
+
* question is how a composite camera ends up dialling a sleeping camera
|
|
11862
|
+
* because its own copy of the rule was a release behind.
|
|
11863
|
+
*
|
|
11864
|
+
* `null` is a real answer and is never a live url in disguise: a consumer
|
|
11865
|
+
* that silently fell back to {@link url} would perform exactly the wake this
|
|
11866
|
+
* field exists to prevent. Only a PASSTHROUGH acquisition can offer one — a
|
|
11867
|
+
* transcode hands back an egress the broker is feeding itself, which has no
|
|
11868
|
+
* sentry counterpart.
|
|
11869
|
+
*/
|
|
11870
|
+
sentryUrl: string().nullable().optional(),
|
|
11853
11871
|
videoCodec: _enum(["H264", "H265"]),
|
|
11854
11872
|
audioCodec: string(),
|
|
11855
11873
|
resolution: object({
|
|
@@ -28871,6 +28889,114 @@ var motionTriggerCapability = {
|
|
|
28871
28889
|
durability: "session"
|
|
28872
28890
|
};
|
|
28873
28891
|
/**
|
|
28892
|
+
* camera-grid-layout — the geometry of a COMPOSITE camera, on the camera's own
|
|
28893
|
+
* page.
|
|
28894
|
+
*
|
|
28895
|
+
* ## Why this is a capability and not an addon settings schema
|
|
28896
|
+
*
|
|
28897
|
+
* It was one, and it did not render. The addon declared the editor as a
|
|
28898
|
+
* `type: 'widget'` field inside its own `deviceSettingsSchema()`; the hub
|
|
28899
|
+
* returned that section correctly and `ConfigFormField` renders `type:'widget'`
|
|
28900
|
+
* perfectly well — and nothing ever asked camera-grid for it. The Cluster →
|
|
28901
|
+
* Pipeline → Device Overrides page interrogates a HAND-WRITTEN list of four
|
|
28902
|
+
* addons (`PIPELINE_CLUSTER_DEVICE_ADDONS`), whose own comment says an addon
|
|
28903
|
+
* not on it "falls off silently".
|
|
28904
|
+
*
|
|
28905
|
+
* Adding a fifth name to that list would have been the wrong fix twice over:
|
|
28906
|
+
* that page is per-camera DETECTION tuning, and a grid's geometry belongs
|
|
28907
|
+
* beside PTZ and motion zones on the camera itself — which is exactly where the
|
|
28908
|
+
* framework already puts a widget, when the widget is declared on a CAPABILITY.
|
|
28909
|
+
* `deviceConfig.ui` is the mechanism (`motion-zones`, `ptz`, `ptz-autotrack`
|
|
28910
|
+
* all use it): the framework emits the structural section and the widget
|
|
28911
|
+
* self-persists through the cap's own mutations.
|
|
28912
|
+
*
|
|
28913
|
+
* ## Why one addon may implement it
|
|
28914
|
+
*
|
|
28915
|
+
* It is a device-scoped NATIVE cap, registered by the grid camera device
|
|
28916
|
+
* itself. Nothing else declares a composite camera, so nothing else has a
|
|
28917
|
+
* layout — and the device-scoped route means the widget asks THE camera, not
|
|
28918
|
+
* "the camera-grid addon", which is what let the old custom-action pair be
|
|
28919
|
+
* reached only by a caller that already knew the addon id.
|
|
28920
|
+
*
|
|
28921
|
+
* ## The tab
|
|
28922
|
+
*
|
|
28923
|
+
* `streaming`, not a top-tab of its own. A grid's geometry IS what its stream
|
|
28924
|
+
* is, so the Streaming tab is where it belongs; a `grid` top-tab would need an
|
|
28925
|
+
* entry in `WELL_KNOWN_TAB_MAP` or the device page renders the raw id as the
|
|
28926
|
+
* label (measured on the robot camera, 2026-09-06 — a tab called "navigation"
|
|
28927
|
+
* next to "PTZ").
|
|
28928
|
+
*/
|
|
28929
|
+
/** A rectangle in normalized [0,1] coordinates of whatever contains it. */
|
|
28930
|
+
var GridNormalizedRectSchema = object({
|
|
28931
|
+
x: number().min(0).max(1),
|
|
28932
|
+
y: number().min(0).max(1),
|
|
28933
|
+
width: number().gt(0).max(1),
|
|
28934
|
+
height: number().gt(0).max(1)
|
|
28935
|
+
});
|
|
28936
|
+
/**
|
|
28937
|
+
* One source camera, the part of its picture taken, and where that part lands.
|
|
28938
|
+
*
|
|
28939
|
+
* Both rectangles are NORMALIZED (D519): a source camera can change resolution
|
|
28940
|
+
* — a profile switch, a firmware update, a substream that comes back different
|
|
28941
|
+
* — and a stored PIXEL rectangle would quietly start cutting the wrong region,
|
|
28942
|
+
* which is the class of bug nobody files.
|
|
28943
|
+
*/
|
|
28944
|
+
var GridLayoutCellSchema = object({
|
|
28945
|
+
deviceId: number().int().positive(),
|
|
28946
|
+
/** The part of the SOURCE taken, normalized against the source. */
|
|
28947
|
+
source: GridNormalizedRectSchema,
|
|
28948
|
+
/** Where it lands, normalized against the CANVAS. */
|
|
28949
|
+
cell: GridNormalizedRectSchema
|
|
28950
|
+
});
|
|
28951
|
+
/**
|
|
28952
|
+
* Which profiles this grid can actually compose, and why not.
|
|
28953
|
+
*
|
|
28954
|
+
* A grid's `high` composes its sources' `high` and its `low` their `low`, so a
|
|
28955
|
+
* profile is on offer only when EVERY source can serve it. The refusal NAMES
|
|
28956
|
+
* the sources, because "this grid has no low" is not a finding — "615 has no
|
|
28957
|
+
* low" is, and it is the one an operator can act on.
|
|
28958
|
+
*/
|
|
28959
|
+
var GridProfileOfferSchema = object({
|
|
28960
|
+
profile: _enum([
|
|
28961
|
+
"high",
|
|
28962
|
+
"mid",
|
|
28963
|
+
"low"
|
|
28964
|
+
]),
|
|
28965
|
+
offered: boolean(),
|
|
28966
|
+
/** Sources that cannot serve it. Empty when it is offered, or when there are no cells. */
|
|
28967
|
+
missingSources: array(number().int().positive())
|
|
28968
|
+
});
|
|
28969
|
+
var GridLayoutViewSchema = object({
|
|
28970
|
+
/** The persisted grid row this camera was declared from. */
|
|
28971
|
+
instanceId: string(),
|
|
28972
|
+
deviceId: number().int().nonnegative(),
|
|
28973
|
+
name: string(),
|
|
28974
|
+
/** The canvas the operator laid out — this grid's `high`. mid/low are scaled from it. */
|
|
28975
|
+
width: number().int(),
|
|
28976
|
+
height: number().int(),
|
|
28977
|
+
fps: number().int(),
|
|
28978
|
+
cells: array(GridLayoutCellSchema),
|
|
28979
|
+
/** What the catalog will publish, and what it refuses to. Read-only. */
|
|
28980
|
+
profiles: array(GridProfileOfferSchema)
|
|
28981
|
+
});
|
|
28982
|
+
var GridLayoutPatchSchema = object({
|
|
28983
|
+
deviceId: number().int().nonnegative(),
|
|
28984
|
+
name: string().min(1).max(160).optional(),
|
|
28985
|
+
width: number().int().min(160).max(7680).optional(),
|
|
28986
|
+
height: number().int().min(120).max(4320).optional(),
|
|
28987
|
+
fps: number().int().min(1).max(60).optional(),
|
|
28988
|
+
/**
|
|
28989
|
+
* The whole cell list at once. A per-cell patch would need an ordering the
|
|
28990
|
+
* editor does not have, and a half-applied layout is a picture nobody asked
|
|
28991
|
+
* for.
|
|
28992
|
+
*/
|
|
28993
|
+
cells: array(GridLayoutCellSchema).max(16)
|
|
28994
|
+
});
|
|
28995
|
+
DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), GridLayoutViewSchema.nullable(), { auth: "admin" }), method(GridLayoutPatchSchema, GridLayoutViewSchema, {
|
|
28996
|
+
kind: "mutation",
|
|
28997
|
+
auth: "admin"
|
|
28998
|
+
});
|
|
28999
|
+
/**
|
|
28874
29000
|
* Motion-zones share the same MaskShape vocabulary as privacy-mask — the
|
|
28875
29001
|
* on-camera motion-detection mask is a single `grid` region (a row-major
|
|
28876
29002
|
* boolean cell lattice the camera's onboard VMD evaluates). Composing it as
|
|
@@ -31029,6 +31155,26 @@ var PtzHomePresetSchema = object({
|
|
|
31029
31155
|
"none"
|
|
31030
31156
|
])
|
|
31031
31157
|
});
|
|
31158
|
+
/**
|
|
31159
|
+
* The camera's own idle-return behaviour: whether it goes home by itself, and
|
|
31160
|
+
* after how long.
|
|
31161
|
+
*
|
|
31162
|
+
* ONE shape, not two scalars, because on the camera they are ONE fact —
|
|
31163
|
+
* Reolink's guard point carries `benable` and `timeout` in the same element,
|
|
31164
|
+
* written by the same command. Reading them apart means two round-trips that
|
|
31165
|
+
* can disagree.
|
|
31166
|
+
*
|
|
31167
|
+
* `enabled` and `seconds` are INDEPENDENT: a camera can hold a 68 s delay with
|
|
31168
|
+
* the behaviour switched off, which is exactly what the vendor app leaves when
|
|
31169
|
+
* you turn the guard point off without clearing it. The first version of this
|
|
31170
|
+
* cap reported only the delay, so that state was invisible — a camera could be
|
|
31171
|
+
* configured to return after 68 seconds with no way to say whether it should
|
|
31172
|
+
* return at all.
|
|
31173
|
+
*/
|
|
31174
|
+
var PtzHomeReturnSchema = object({
|
|
31175
|
+
enabled: boolean(),
|
|
31176
|
+
seconds: number().int()
|
|
31177
|
+
});
|
|
31032
31178
|
DeviceType.Camera, method(PtzMoveCommandSchema.extend({ deviceId: number() }), _void(), { kind: "mutation" }), method(PtzMoveCommandSchema.extend({ deviceId: number() }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), array(PtzPresetSchema)), method(object({
|
|
31033
31179
|
deviceId: number(),
|
|
31034
31180
|
presetId: string()
|
|
@@ -31054,8 +31200,9 @@ DeviceType.Camera, method(PtzMoveCommandSchema.extend({ deviceId: number() }), _
|
|
|
31054
31200
|
}), method(object({ deviceId: number() }), _void(), {
|
|
31055
31201
|
kind: "mutation",
|
|
31056
31202
|
auth: "admin"
|
|
31057
|
-
}), method(object({ deviceId: number() }),
|
|
31203
|
+
}), method(object({ deviceId: number() }), PtzHomeReturnSchema.nullable()), method(object({
|
|
31058
31204
|
deviceId: number(),
|
|
31205
|
+
enabled: boolean(),
|
|
31059
31206
|
seconds: number().int().min(0).max(3600)
|
|
31060
31207
|
}), _void(), {
|
|
31061
31208
|
kind: "mutation",
|
|
@@ -36576,6 +36723,18 @@ Object.freeze({
|
|
|
36576
36723
|
addonId: null,
|
|
36577
36724
|
access: "view"
|
|
36578
36725
|
},
|
|
36726
|
+
"cameraGridLayout.getLayout": {
|
|
36727
|
+
capName: "camera-grid-layout",
|
|
36728
|
+
capScope: "device",
|
|
36729
|
+
addonId: null,
|
|
36730
|
+
access: "view"
|
|
36731
|
+
},
|
|
36732
|
+
"cameraGridLayout.saveLayout": {
|
|
36733
|
+
capName: "camera-grid-layout",
|
|
36734
|
+
capScope: "device",
|
|
36735
|
+
addonId: null,
|
|
36736
|
+
access: "create"
|
|
36737
|
+
},
|
|
36579
36738
|
"cameraStreams.getBrokerStreams": {
|
|
36580
36739
|
capName: "camera-streams",
|
|
36581
36740
|
capScope: "device",
|
|
@@ -40326,7 +40485,7 @@ Object.freeze({
|
|
|
40326
40485
|
addonId: null,
|
|
40327
40486
|
access: "view"
|
|
40328
40487
|
},
|
|
40329
|
-
"ptz.
|
|
40488
|
+
"ptz.getHomeReturn": {
|
|
40330
40489
|
capName: "ptz",
|
|
40331
40490
|
capScope: "device",
|
|
40332
40491
|
addonId: null,
|
|
@@ -40386,7 +40545,7 @@ Object.freeze({
|
|
|
40386
40545
|
addonId: null,
|
|
40387
40546
|
access: "create"
|
|
40388
40547
|
},
|
|
40389
|
-
"ptz.
|
|
40548
|
+
"ptz.setHomeReturn": {
|
|
40390
40549
|
capName: "ptz",
|
|
40391
40550
|
capScope: "device",
|
|
40392
40551
|
addonId: null,
|
|
@@ -42275,6 +42434,21 @@ Object.freeze({
|
|
|
42275
42434
|
form: "single",
|
|
42276
42435
|
optional: false
|
|
42277
42436
|
}],
|
|
42437
|
+
"cameraGridLayout.getLayout": [{
|
|
42438
|
+
name: "deviceId",
|
|
42439
|
+
form: "single",
|
|
42440
|
+
optional: false
|
|
42441
|
+
}],
|
|
42442
|
+
"cameraGridLayout.saveLayout": [{
|
|
42443
|
+
name: "cells",
|
|
42444
|
+
form: "object-array",
|
|
42445
|
+
optional: false,
|
|
42446
|
+
itemField: "deviceId"
|
|
42447
|
+
}, {
|
|
42448
|
+
name: "deviceId",
|
|
42449
|
+
form: "single",
|
|
42450
|
+
optional: false
|
|
42451
|
+
}],
|
|
42278
42452
|
"cameraStreams.getBrokerStreams": [{
|
|
42279
42453
|
name: "deviceId",
|
|
42280
42454
|
form: "single",
|
|
@@ -43575,7 +43749,7 @@ Object.freeze({
|
|
|
43575
43749
|
form: "single",
|
|
43576
43750
|
optional: false
|
|
43577
43751
|
}],
|
|
43578
|
-
"ptz.
|
|
43752
|
+
"ptz.getHomeReturn": [{
|
|
43579
43753
|
name: "deviceId",
|
|
43580
43754
|
form: "single",
|
|
43581
43755
|
optional: false
|
|
@@ -43625,7 +43799,7 @@ Object.freeze({
|
|
|
43625
43799
|
form: "single",
|
|
43626
43800
|
optional: false
|
|
43627
43801
|
}],
|
|
43628
|
-
"ptz.
|
|
43802
|
+
"ptz.setHomeReturn": [{
|
|
43629
43803
|
name: "deviceId",
|
|
43630
43804
|
form: "single",
|
|
43631
43805
|
optional: false
|
package/dist/addon.mjs
CHANGED
|
@@ -5359,7 +5359,7 @@ var ZodIssueCode = {
|
|
|
5359
5359
|
var ZodFirstPartyTypeKind;
|
|
5360
5360
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5361
5361
|
//#endregion
|
|
5362
|
-
//#region ../types/dist/sleep-
|
|
5362
|
+
//#region ../types/dist/sleep-Bs3xPtSh.mjs
|
|
5363
5363
|
/**
|
|
5364
5364
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5365
5365
|
* window to float samples (D455).
|
|
@@ -11849,6 +11849,24 @@ var GetStreamWithCodecInputSchema = object({
|
|
|
11849
11849
|
});
|
|
11850
11850
|
var RtpSourceSchema = object({
|
|
11851
11851
|
url: string(),
|
|
11852
|
+
/**
|
|
11853
|
+
* The SENTRY counterpart of {@link url} — the dial that asks for the stream
|
|
11854
|
+
* WITHOUT asking for the camera — or `null` when this camera offers none.
|
|
11855
|
+
*
|
|
11856
|
+
* The broker answers it because the broker is the only thing that can:
|
|
11857
|
+
* eligibility is `sentryEligible` (a BATTERY camera that DECLARES the signals
|
|
11858
|
+
* cap), asked of facts only the broker holds. A consumer re-deriving it from
|
|
11859
|
+
* cap bindings would be a second authority, and two authorities on the same
|
|
11860
|
+
* question is how a composite camera ends up dialling a sleeping camera
|
|
11861
|
+
* because its own copy of the rule was a release behind.
|
|
11862
|
+
*
|
|
11863
|
+
* `null` is a real answer and is never a live url in disguise: a consumer
|
|
11864
|
+
* that silently fell back to {@link url} would perform exactly the wake this
|
|
11865
|
+
* field exists to prevent. Only a PASSTHROUGH acquisition can offer one — a
|
|
11866
|
+
* transcode hands back an egress the broker is feeding itself, which has no
|
|
11867
|
+
* sentry counterpart.
|
|
11868
|
+
*/
|
|
11869
|
+
sentryUrl: string().nullable().optional(),
|
|
11852
11870
|
videoCodec: _enum(["H264", "H265"]),
|
|
11853
11871
|
audioCodec: string(),
|
|
11854
11872
|
resolution: object({
|
|
@@ -28870,6 +28888,114 @@ var motionTriggerCapability = {
|
|
|
28870
28888
|
durability: "session"
|
|
28871
28889
|
};
|
|
28872
28890
|
/**
|
|
28891
|
+
* camera-grid-layout — the geometry of a COMPOSITE camera, on the camera's own
|
|
28892
|
+
* page.
|
|
28893
|
+
*
|
|
28894
|
+
* ## Why this is a capability and not an addon settings schema
|
|
28895
|
+
*
|
|
28896
|
+
* It was one, and it did not render. The addon declared the editor as a
|
|
28897
|
+
* `type: 'widget'` field inside its own `deviceSettingsSchema()`; the hub
|
|
28898
|
+
* returned that section correctly and `ConfigFormField` renders `type:'widget'`
|
|
28899
|
+
* perfectly well — and nothing ever asked camera-grid for it. The Cluster →
|
|
28900
|
+
* Pipeline → Device Overrides page interrogates a HAND-WRITTEN list of four
|
|
28901
|
+
* addons (`PIPELINE_CLUSTER_DEVICE_ADDONS`), whose own comment says an addon
|
|
28902
|
+
* not on it "falls off silently".
|
|
28903
|
+
*
|
|
28904
|
+
* Adding a fifth name to that list would have been the wrong fix twice over:
|
|
28905
|
+
* that page is per-camera DETECTION tuning, and a grid's geometry belongs
|
|
28906
|
+
* beside PTZ and motion zones on the camera itself — which is exactly where the
|
|
28907
|
+
* framework already puts a widget, when the widget is declared on a CAPABILITY.
|
|
28908
|
+
* `deviceConfig.ui` is the mechanism (`motion-zones`, `ptz`, `ptz-autotrack`
|
|
28909
|
+
* all use it): the framework emits the structural section and the widget
|
|
28910
|
+
* self-persists through the cap's own mutations.
|
|
28911
|
+
*
|
|
28912
|
+
* ## Why one addon may implement it
|
|
28913
|
+
*
|
|
28914
|
+
* It is a device-scoped NATIVE cap, registered by the grid camera device
|
|
28915
|
+
* itself. Nothing else declares a composite camera, so nothing else has a
|
|
28916
|
+
* layout — and the device-scoped route means the widget asks THE camera, not
|
|
28917
|
+
* "the camera-grid addon", which is what let the old custom-action pair be
|
|
28918
|
+
* reached only by a caller that already knew the addon id.
|
|
28919
|
+
*
|
|
28920
|
+
* ## The tab
|
|
28921
|
+
*
|
|
28922
|
+
* `streaming`, not a top-tab of its own. A grid's geometry IS what its stream
|
|
28923
|
+
* is, so the Streaming tab is where it belongs; a `grid` top-tab would need an
|
|
28924
|
+
* entry in `WELL_KNOWN_TAB_MAP` or the device page renders the raw id as the
|
|
28925
|
+
* label (measured on the robot camera, 2026-09-06 — a tab called "navigation"
|
|
28926
|
+
* next to "PTZ").
|
|
28927
|
+
*/
|
|
28928
|
+
/** A rectangle in normalized [0,1] coordinates of whatever contains it. */
|
|
28929
|
+
var GridNormalizedRectSchema = object({
|
|
28930
|
+
x: number().min(0).max(1),
|
|
28931
|
+
y: number().min(0).max(1),
|
|
28932
|
+
width: number().gt(0).max(1),
|
|
28933
|
+
height: number().gt(0).max(1)
|
|
28934
|
+
});
|
|
28935
|
+
/**
|
|
28936
|
+
* One source camera, the part of its picture taken, and where that part lands.
|
|
28937
|
+
*
|
|
28938
|
+
* Both rectangles are NORMALIZED (D519): a source camera can change resolution
|
|
28939
|
+
* — a profile switch, a firmware update, a substream that comes back different
|
|
28940
|
+
* — and a stored PIXEL rectangle would quietly start cutting the wrong region,
|
|
28941
|
+
* which is the class of bug nobody files.
|
|
28942
|
+
*/
|
|
28943
|
+
var GridLayoutCellSchema = object({
|
|
28944
|
+
deviceId: number().int().positive(),
|
|
28945
|
+
/** The part of the SOURCE taken, normalized against the source. */
|
|
28946
|
+
source: GridNormalizedRectSchema,
|
|
28947
|
+
/** Where it lands, normalized against the CANVAS. */
|
|
28948
|
+
cell: GridNormalizedRectSchema
|
|
28949
|
+
});
|
|
28950
|
+
/**
|
|
28951
|
+
* Which profiles this grid can actually compose, and why not.
|
|
28952
|
+
*
|
|
28953
|
+
* A grid's `high` composes its sources' `high` and its `low` their `low`, so a
|
|
28954
|
+
* profile is on offer only when EVERY source can serve it. The refusal NAMES
|
|
28955
|
+
* the sources, because "this grid has no low" is not a finding — "615 has no
|
|
28956
|
+
* low" is, and it is the one an operator can act on.
|
|
28957
|
+
*/
|
|
28958
|
+
var GridProfileOfferSchema = object({
|
|
28959
|
+
profile: _enum([
|
|
28960
|
+
"high",
|
|
28961
|
+
"mid",
|
|
28962
|
+
"low"
|
|
28963
|
+
]),
|
|
28964
|
+
offered: boolean(),
|
|
28965
|
+
/** Sources that cannot serve it. Empty when it is offered, or when there are no cells. */
|
|
28966
|
+
missingSources: array(number().int().positive())
|
|
28967
|
+
});
|
|
28968
|
+
var GridLayoutViewSchema = object({
|
|
28969
|
+
/** The persisted grid row this camera was declared from. */
|
|
28970
|
+
instanceId: string(),
|
|
28971
|
+
deviceId: number().int().nonnegative(),
|
|
28972
|
+
name: string(),
|
|
28973
|
+
/** The canvas the operator laid out — this grid's `high`. mid/low are scaled from it. */
|
|
28974
|
+
width: number().int(),
|
|
28975
|
+
height: number().int(),
|
|
28976
|
+
fps: number().int(),
|
|
28977
|
+
cells: array(GridLayoutCellSchema),
|
|
28978
|
+
/** What the catalog will publish, and what it refuses to. Read-only. */
|
|
28979
|
+
profiles: array(GridProfileOfferSchema)
|
|
28980
|
+
});
|
|
28981
|
+
var GridLayoutPatchSchema = object({
|
|
28982
|
+
deviceId: number().int().nonnegative(),
|
|
28983
|
+
name: string().min(1).max(160).optional(),
|
|
28984
|
+
width: number().int().min(160).max(7680).optional(),
|
|
28985
|
+
height: number().int().min(120).max(4320).optional(),
|
|
28986
|
+
fps: number().int().min(1).max(60).optional(),
|
|
28987
|
+
/**
|
|
28988
|
+
* The whole cell list at once. A per-cell patch would need an ordering the
|
|
28989
|
+
* editor does not have, and a half-applied layout is a picture nobody asked
|
|
28990
|
+
* for.
|
|
28991
|
+
*/
|
|
28992
|
+
cells: array(GridLayoutCellSchema).max(16)
|
|
28993
|
+
});
|
|
28994
|
+
DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), GridLayoutViewSchema.nullable(), { auth: "admin" }), method(GridLayoutPatchSchema, GridLayoutViewSchema, {
|
|
28995
|
+
kind: "mutation",
|
|
28996
|
+
auth: "admin"
|
|
28997
|
+
});
|
|
28998
|
+
/**
|
|
28873
28999
|
* Motion-zones share the same MaskShape vocabulary as privacy-mask — the
|
|
28874
29000
|
* on-camera motion-detection mask is a single `grid` region (a row-major
|
|
28875
29001
|
* boolean cell lattice the camera's onboard VMD evaluates). Composing it as
|
|
@@ -31028,6 +31154,26 @@ var PtzHomePresetSchema = object({
|
|
|
31028
31154
|
"none"
|
|
31029
31155
|
])
|
|
31030
31156
|
});
|
|
31157
|
+
/**
|
|
31158
|
+
* The camera's own idle-return behaviour: whether it goes home by itself, and
|
|
31159
|
+
* after how long.
|
|
31160
|
+
*
|
|
31161
|
+
* ONE shape, not two scalars, because on the camera they are ONE fact —
|
|
31162
|
+
* Reolink's guard point carries `benable` and `timeout` in the same element,
|
|
31163
|
+
* written by the same command. Reading them apart means two round-trips that
|
|
31164
|
+
* can disagree.
|
|
31165
|
+
*
|
|
31166
|
+
* `enabled` and `seconds` are INDEPENDENT: a camera can hold a 68 s delay with
|
|
31167
|
+
* the behaviour switched off, which is exactly what the vendor app leaves when
|
|
31168
|
+
* you turn the guard point off without clearing it. The first version of this
|
|
31169
|
+
* cap reported only the delay, so that state was invisible — a camera could be
|
|
31170
|
+
* configured to return after 68 seconds with no way to say whether it should
|
|
31171
|
+
* return at all.
|
|
31172
|
+
*/
|
|
31173
|
+
var PtzHomeReturnSchema = object({
|
|
31174
|
+
enabled: boolean(),
|
|
31175
|
+
seconds: number().int()
|
|
31176
|
+
});
|
|
31031
31177
|
DeviceType.Camera, method(PtzMoveCommandSchema.extend({ deviceId: number() }), _void(), { kind: "mutation" }), method(PtzMoveCommandSchema.extend({ deviceId: number() }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), array(PtzPresetSchema)), method(object({
|
|
31032
31178
|
deviceId: number(),
|
|
31033
31179
|
presetId: string()
|
|
@@ -31053,8 +31199,9 @@ DeviceType.Camera, method(PtzMoveCommandSchema.extend({ deviceId: number() }), _
|
|
|
31053
31199
|
}), method(object({ deviceId: number() }), _void(), {
|
|
31054
31200
|
kind: "mutation",
|
|
31055
31201
|
auth: "admin"
|
|
31056
|
-
}), method(object({ deviceId: number() }),
|
|
31202
|
+
}), method(object({ deviceId: number() }), PtzHomeReturnSchema.nullable()), method(object({
|
|
31057
31203
|
deviceId: number(),
|
|
31204
|
+
enabled: boolean(),
|
|
31058
31205
|
seconds: number().int().min(0).max(3600)
|
|
31059
31206
|
}), _void(), {
|
|
31060
31207
|
kind: "mutation",
|
|
@@ -36575,6 +36722,18 @@ Object.freeze({
|
|
|
36575
36722
|
addonId: null,
|
|
36576
36723
|
access: "view"
|
|
36577
36724
|
},
|
|
36725
|
+
"cameraGridLayout.getLayout": {
|
|
36726
|
+
capName: "camera-grid-layout",
|
|
36727
|
+
capScope: "device",
|
|
36728
|
+
addonId: null,
|
|
36729
|
+
access: "view"
|
|
36730
|
+
},
|
|
36731
|
+
"cameraGridLayout.saveLayout": {
|
|
36732
|
+
capName: "camera-grid-layout",
|
|
36733
|
+
capScope: "device",
|
|
36734
|
+
addonId: null,
|
|
36735
|
+
access: "create"
|
|
36736
|
+
},
|
|
36578
36737
|
"cameraStreams.getBrokerStreams": {
|
|
36579
36738
|
capName: "camera-streams",
|
|
36580
36739
|
capScope: "device",
|
|
@@ -40325,7 +40484,7 @@ Object.freeze({
|
|
|
40325
40484
|
addonId: null,
|
|
40326
40485
|
access: "view"
|
|
40327
40486
|
},
|
|
40328
|
-
"ptz.
|
|
40487
|
+
"ptz.getHomeReturn": {
|
|
40329
40488
|
capName: "ptz",
|
|
40330
40489
|
capScope: "device",
|
|
40331
40490
|
addonId: null,
|
|
@@ -40385,7 +40544,7 @@ Object.freeze({
|
|
|
40385
40544
|
addonId: null,
|
|
40386
40545
|
access: "create"
|
|
40387
40546
|
},
|
|
40388
|
-
"ptz.
|
|
40547
|
+
"ptz.setHomeReturn": {
|
|
40389
40548
|
capName: "ptz",
|
|
40390
40549
|
capScope: "device",
|
|
40391
40550
|
addonId: null,
|
|
@@ -42274,6 +42433,21 @@ Object.freeze({
|
|
|
42274
42433
|
form: "single",
|
|
42275
42434
|
optional: false
|
|
42276
42435
|
}],
|
|
42436
|
+
"cameraGridLayout.getLayout": [{
|
|
42437
|
+
name: "deviceId",
|
|
42438
|
+
form: "single",
|
|
42439
|
+
optional: false
|
|
42440
|
+
}],
|
|
42441
|
+
"cameraGridLayout.saveLayout": [{
|
|
42442
|
+
name: "cells",
|
|
42443
|
+
form: "object-array",
|
|
42444
|
+
optional: false,
|
|
42445
|
+
itemField: "deviceId"
|
|
42446
|
+
}, {
|
|
42447
|
+
name: "deviceId",
|
|
42448
|
+
form: "single",
|
|
42449
|
+
optional: false
|
|
42450
|
+
}],
|
|
42277
42451
|
"cameraStreams.getBrokerStreams": [{
|
|
42278
42452
|
name: "deviceId",
|
|
42279
42453
|
form: "single",
|
|
@@ -43574,7 +43748,7 @@ Object.freeze({
|
|
|
43574
43748
|
form: "single",
|
|
43575
43749
|
optional: false
|
|
43576
43750
|
}],
|
|
43577
|
-
"ptz.
|
|
43751
|
+
"ptz.getHomeReturn": [{
|
|
43578
43752
|
name: "deviceId",
|
|
43579
43753
|
form: "single",
|
|
43580
43754
|
optional: false
|
|
@@ -43624,7 +43798,7 @@ Object.freeze({
|
|
|
43624
43798
|
form: "single",
|
|
43625
43799
|
optional: false
|
|
43626
43800
|
}],
|
|
43627
|
-
"ptz.
|
|
43801
|
+
"ptz.setHomeReturn": [{
|
|
43628
43802
|
name: "deviceId",
|
|
43629
43803
|
form: "single",
|
|
43630
43804
|
optional: false
|
package/package.json
CHANGED