@camstack/addon-provider-homematic 1.2.113 → 1.2.115
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
|
@@ -5369,7 +5369,7 @@ var ZodIssueCode = {
|
|
|
5369
5369
|
var ZodFirstPartyTypeKind;
|
|
5370
5370
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5371
5371
|
//#endregion
|
|
5372
|
-
//#region ../types/dist/sleep-
|
|
5372
|
+
//#region ../types/dist/sleep-Bs3xPtSh.mjs
|
|
5373
5373
|
/**
|
|
5374
5374
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5375
5375
|
* window to float samples (D455).
|
|
@@ -11908,6 +11908,24 @@ var GetStreamWithCodecInputSchema = object({
|
|
|
11908
11908
|
});
|
|
11909
11909
|
var RtpSourceSchema = object({
|
|
11910
11910
|
url: string(),
|
|
11911
|
+
/**
|
|
11912
|
+
* The SENTRY counterpart of {@link url} — the dial that asks for the stream
|
|
11913
|
+
* WITHOUT asking for the camera — or `null` when this camera offers none.
|
|
11914
|
+
*
|
|
11915
|
+
* The broker answers it because the broker is the only thing that can:
|
|
11916
|
+
* eligibility is `sentryEligible` (a BATTERY camera that DECLARES the signals
|
|
11917
|
+
* cap), asked of facts only the broker holds. A consumer re-deriving it from
|
|
11918
|
+
* cap bindings would be a second authority, and two authorities on the same
|
|
11919
|
+
* question is how a composite camera ends up dialling a sleeping camera
|
|
11920
|
+
* because its own copy of the rule was a release behind.
|
|
11921
|
+
*
|
|
11922
|
+
* `null` is a real answer and is never a live url in disguise: a consumer
|
|
11923
|
+
* that silently fell back to {@link url} would perform exactly the wake this
|
|
11924
|
+
* field exists to prevent. Only a PASSTHROUGH acquisition can offer one — a
|
|
11925
|
+
* transcode hands back an egress the broker is feeding itself, which has no
|
|
11926
|
+
* sentry counterpart.
|
|
11927
|
+
*/
|
|
11928
|
+
sentryUrl: string().nullable().optional(),
|
|
11911
11929
|
videoCodec: _enum(["H264", "H265"]),
|
|
11912
11930
|
audioCodec: string(),
|
|
11913
11931
|
resolution: object({
|
|
@@ -28946,6 +28964,114 @@ var motionTriggerCapability = {
|
|
|
28946
28964
|
durability: "session"
|
|
28947
28965
|
};
|
|
28948
28966
|
/**
|
|
28967
|
+
* camera-grid-layout — the geometry of a COMPOSITE camera, on the camera's own
|
|
28968
|
+
* page.
|
|
28969
|
+
*
|
|
28970
|
+
* ## Why this is a capability and not an addon settings schema
|
|
28971
|
+
*
|
|
28972
|
+
* It was one, and it did not render. The addon declared the editor as a
|
|
28973
|
+
* `type: 'widget'` field inside its own `deviceSettingsSchema()`; the hub
|
|
28974
|
+
* returned that section correctly and `ConfigFormField` renders `type:'widget'`
|
|
28975
|
+
* perfectly well — and nothing ever asked camera-grid for it. The Cluster →
|
|
28976
|
+
* Pipeline → Device Overrides page interrogates a HAND-WRITTEN list of four
|
|
28977
|
+
* addons (`PIPELINE_CLUSTER_DEVICE_ADDONS`), whose own comment says an addon
|
|
28978
|
+
* not on it "falls off silently".
|
|
28979
|
+
*
|
|
28980
|
+
* Adding a fifth name to that list would have been the wrong fix twice over:
|
|
28981
|
+
* that page is per-camera DETECTION tuning, and a grid's geometry belongs
|
|
28982
|
+
* beside PTZ and motion zones on the camera itself — which is exactly where the
|
|
28983
|
+
* framework already puts a widget, when the widget is declared on a CAPABILITY.
|
|
28984
|
+
* `deviceConfig.ui` is the mechanism (`motion-zones`, `ptz`, `ptz-autotrack`
|
|
28985
|
+
* all use it): the framework emits the structural section and the widget
|
|
28986
|
+
* self-persists through the cap's own mutations.
|
|
28987
|
+
*
|
|
28988
|
+
* ## Why one addon may implement it
|
|
28989
|
+
*
|
|
28990
|
+
* It is a device-scoped NATIVE cap, registered by the grid camera device
|
|
28991
|
+
* itself. Nothing else declares a composite camera, so nothing else has a
|
|
28992
|
+
* layout — and the device-scoped route means the widget asks THE camera, not
|
|
28993
|
+
* "the camera-grid addon", which is what let the old custom-action pair be
|
|
28994
|
+
* reached only by a caller that already knew the addon id.
|
|
28995
|
+
*
|
|
28996
|
+
* ## The tab
|
|
28997
|
+
*
|
|
28998
|
+
* `streaming`, not a top-tab of its own. A grid's geometry IS what its stream
|
|
28999
|
+
* is, so the Streaming tab is where it belongs; a `grid` top-tab would need an
|
|
29000
|
+
* entry in `WELL_KNOWN_TAB_MAP` or the device page renders the raw id as the
|
|
29001
|
+
* label (measured on the robot camera, 2026-09-06 — a tab called "navigation"
|
|
29002
|
+
* next to "PTZ").
|
|
29003
|
+
*/
|
|
29004
|
+
/** A rectangle in normalized [0,1] coordinates of whatever contains it. */
|
|
29005
|
+
var GridNormalizedRectSchema = object({
|
|
29006
|
+
x: number().min(0).max(1),
|
|
29007
|
+
y: number().min(0).max(1),
|
|
29008
|
+
width: number().gt(0).max(1),
|
|
29009
|
+
height: number().gt(0).max(1)
|
|
29010
|
+
});
|
|
29011
|
+
/**
|
|
29012
|
+
* One source camera, the part of its picture taken, and where that part lands.
|
|
29013
|
+
*
|
|
29014
|
+
* Both rectangles are NORMALIZED (D519): a source camera can change resolution
|
|
29015
|
+
* — a profile switch, a firmware update, a substream that comes back different
|
|
29016
|
+
* — and a stored PIXEL rectangle would quietly start cutting the wrong region,
|
|
29017
|
+
* which is the class of bug nobody files.
|
|
29018
|
+
*/
|
|
29019
|
+
var GridLayoutCellSchema = object({
|
|
29020
|
+
deviceId: number().int().positive(),
|
|
29021
|
+
/** The part of the SOURCE taken, normalized against the source. */
|
|
29022
|
+
source: GridNormalizedRectSchema,
|
|
29023
|
+
/** Where it lands, normalized against the CANVAS. */
|
|
29024
|
+
cell: GridNormalizedRectSchema
|
|
29025
|
+
});
|
|
29026
|
+
/**
|
|
29027
|
+
* Which profiles this grid can actually compose, and why not.
|
|
29028
|
+
*
|
|
29029
|
+
* A grid's `high` composes its sources' `high` and its `low` their `low`, so a
|
|
29030
|
+
* profile is on offer only when EVERY source can serve it. The refusal NAMES
|
|
29031
|
+
* the sources, because "this grid has no low" is not a finding — "615 has no
|
|
29032
|
+
* low" is, and it is the one an operator can act on.
|
|
29033
|
+
*/
|
|
29034
|
+
var GridProfileOfferSchema = object({
|
|
29035
|
+
profile: _enum([
|
|
29036
|
+
"high",
|
|
29037
|
+
"mid",
|
|
29038
|
+
"low"
|
|
29039
|
+
]),
|
|
29040
|
+
offered: boolean(),
|
|
29041
|
+
/** Sources that cannot serve it. Empty when it is offered, or when there are no cells. */
|
|
29042
|
+
missingSources: array(number().int().positive())
|
|
29043
|
+
});
|
|
29044
|
+
var GridLayoutViewSchema = object({
|
|
29045
|
+
/** The persisted grid row this camera was declared from. */
|
|
29046
|
+
instanceId: string(),
|
|
29047
|
+
deviceId: number().int().nonnegative(),
|
|
29048
|
+
name: string(),
|
|
29049
|
+
/** The canvas the operator laid out — this grid's `high`. mid/low are scaled from it. */
|
|
29050
|
+
width: number().int(),
|
|
29051
|
+
height: number().int(),
|
|
29052
|
+
fps: number().int(),
|
|
29053
|
+
cells: array(GridLayoutCellSchema),
|
|
29054
|
+
/** What the catalog will publish, and what it refuses to. Read-only. */
|
|
29055
|
+
profiles: array(GridProfileOfferSchema)
|
|
29056
|
+
});
|
|
29057
|
+
var GridLayoutPatchSchema = object({
|
|
29058
|
+
deviceId: number().int().nonnegative(),
|
|
29059
|
+
name: string().min(1).max(160).optional(),
|
|
29060
|
+
width: number().int().min(160).max(7680).optional(),
|
|
29061
|
+
height: number().int().min(120).max(4320).optional(),
|
|
29062
|
+
fps: number().int().min(1).max(60).optional(),
|
|
29063
|
+
/**
|
|
29064
|
+
* The whole cell list at once. A per-cell patch would need an ordering the
|
|
29065
|
+
* editor does not have, and a half-applied layout is a picture nobody asked
|
|
29066
|
+
* for.
|
|
29067
|
+
*/
|
|
29068
|
+
cells: array(GridLayoutCellSchema).max(16)
|
|
29069
|
+
});
|
|
29070
|
+
DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), GridLayoutViewSchema.nullable(), { auth: "admin" }), method(GridLayoutPatchSchema, GridLayoutViewSchema, {
|
|
29071
|
+
kind: "mutation",
|
|
29072
|
+
auth: "admin"
|
|
29073
|
+
});
|
|
29074
|
+
/**
|
|
28949
29075
|
* Motion-zones share the same MaskShape vocabulary as privacy-mask — the
|
|
28950
29076
|
* on-camera motion-detection mask is a single `grid` region (a row-major
|
|
28951
29077
|
* boolean cell lattice the camera's onboard VMD evaluates). Composing it as
|
|
@@ -31104,6 +31230,26 @@ var PtzHomePresetSchema = object({
|
|
|
31104
31230
|
"none"
|
|
31105
31231
|
])
|
|
31106
31232
|
});
|
|
31233
|
+
/**
|
|
31234
|
+
* The camera's own idle-return behaviour: whether it goes home by itself, and
|
|
31235
|
+
* after how long.
|
|
31236
|
+
*
|
|
31237
|
+
* ONE shape, not two scalars, because on the camera they are ONE fact —
|
|
31238
|
+
* Reolink's guard point carries `benable` and `timeout` in the same element,
|
|
31239
|
+
* written by the same command. Reading them apart means two round-trips that
|
|
31240
|
+
* can disagree.
|
|
31241
|
+
*
|
|
31242
|
+
* `enabled` and `seconds` are INDEPENDENT: a camera can hold a 68 s delay with
|
|
31243
|
+
* the behaviour switched off, which is exactly what the vendor app leaves when
|
|
31244
|
+
* you turn the guard point off without clearing it. The first version of this
|
|
31245
|
+
* cap reported only the delay, so that state was invisible — a camera could be
|
|
31246
|
+
* configured to return after 68 seconds with no way to say whether it should
|
|
31247
|
+
* return at all.
|
|
31248
|
+
*/
|
|
31249
|
+
var PtzHomeReturnSchema = object({
|
|
31250
|
+
enabled: boolean(),
|
|
31251
|
+
seconds: number().int()
|
|
31252
|
+
});
|
|
31107
31253
|
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({
|
|
31108
31254
|
deviceId: number(),
|
|
31109
31255
|
presetId: string()
|
|
@@ -31129,8 +31275,9 @@ DeviceType.Camera, method(PtzMoveCommandSchema.extend({ deviceId: number() }), _
|
|
|
31129
31275
|
}), method(object({ deviceId: number() }), _void(), {
|
|
31130
31276
|
kind: "mutation",
|
|
31131
31277
|
auth: "admin"
|
|
31132
|
-
}), method(object({ deviceId: number() }),
|
|
31278
|
+
}), method(object({ deviceId: number() }), PtzHomeReturnSchema.nullable()), method(object({
|
|
31133
31279
|
deviceId: number(),
|
|
31280
|
+
enabled: boolean(),
|
|
31134
31281
|
seconds: number().int().min(0).max(3600)
|
|
31135
31282
|
}), _void(), {
|
|
31136
31283
|
kind: "mutation",
|
|
@@ -36651,6 +36798,18 @@ Object.freeze({
|
|
|
36651
36798
|
addonId: null,
|
|
36652
36799
|
access: "view"
|
|
36653
36800
|
},
|
|
36801
|
+
"cameraGridLayout.getLayout": {
|
|
36802
|
+
capName: "camera-grid-layout",
|
|
36803
|
+
capScope: "device",
|
|
36804
|
+
addonId: null,
|
|
36805
|
+
access: "view"
|
|
36806
|
+
},
|
|
36807
|
+
"cameraGridLayout.saveLayout": {
|
|
36808
|
+
capName: "camera-grid-layout",
|
|
36809
|
+
capScope: "device",
|
|
36810
|
+
addonId: null,
|
|
36811
|
+
access: "create"
|
|
36812
|
+
},
|
|
36654
36813
|
"cameraStreams.getBrokerStreams": {
|
|
36655
36814
|
capName: "camera-streams",
|
|
36656
36815
|
capScope: "device",
|
|
@@ -40401,7 +40560,7 @@ Object.freeze({
|
|
|
40401
40560
|
addonId: null,
|
|
40402
40561
|
access: "view"
|
|
40403
40562
|
},
|
|
40404
|
-
"ptz.
|
|
40563
|
+
"ptz.getHomeReturn": {
|
|
40405
40564
|
capName: "ptz",
|
|
40406
40565
|
capScope: "device",
|
|
40407
40566
|
addonId: null,
|
|
@@ -40461,7 +40620,7 @@ Object.freeze({
|
|
|
40461
40620
|
addonId: null,
|
|
40462
40621
|
access: "create"
|
|
40463
40622
|
},
|
|
40464
|
-
"ptz.
|
|
40623
|
+
"ptz.setHomeReturn": {
|
|
40465
40624
|
capName: "ptz",
|
|
40466
40625
|
capScope: "device",
|
|
40467
40626
|
addonId: null,
|
|
@@ -42350,6 +42509,21 @@ Object.freeze({
|
|
|
42350
42509
|
form: "single",
|
|
42351
42510
|
optional: false
|
|
42352
42511
|
}],
|
|
42512
|
+
"cameraGridLayout.getLayout": [{
|
|
42513
|
+
name: "deviceId",
|
|
42514
|
+
form: "single",
|
|
42515
|
+
optional: false
|
|
42516
|
+
}],
|
|
42517
|
+
"cameraGridLayout.saveLayout": [{
|
|
42518
|
+
name: "cells",
|
|
42519
|
+
form: "object-array",
|
|
42520
|
+
optional: false,
|
|
42521
|
+
itemField: "deviceId"
|
|
42522
|
+
}, {
|
|
42523
|
+
name: "deviceId",
|
|
42524
|
+
form: "single",
|
|
42525
|
+
optional: false
|
|
42526
|
+
}],
|
|
42353
42527
|
"cameraStreams.getBrokerStreams": [{
|
|
42354
42528
|
name: "deviceId",
|
|
42355
42529
|
form: "single",
|
|
@@ -43650,7 +43824,7 @@ Object.freeze({
|
|
|
43650
43824
|
form: "single",
|
|
43651
43825
|
optional: false
|
|
43652
43826
|
}],
|
|
43653
|
-
"ptz.
|
|
43827
|
+
"ptz.getHomeReturn": [{
|
|
43654
43828
|
name: "deviceId",
|
|
43655
43829
|
form: "single",
|
|
43656
43830
|
optional: false
|
|
@@ -43700,7 +43874,7 @@ Object.freeze({
|
|
|
43700
43874
|
form: "single",
|
|
43701
43875
|
optional: false
|
|
43702
43876
|
}],
|
|
43703
|
-
"ptz.
|
|
43877
|
+
"ptz.setHomeReturn": [{
|
|
43704
43878
|
name: "deviceId",
|
|
43705
43879
|
form: "single",
|
|
43706
43880
|
optional: false
|
package/dist/addon.mjs
CHANGED
|
@@ -5370,7 +5370,7 @@ var ZodIssueCode = {
|
|
|
5370
5370
|
var ZodFirstPartyTypeKind;
|
|
5371
5371
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5372
5372
|
//#endregion
|
|
5373
|
-
//#region ../types/dist/sleep-
|
|
5373
|
+
//#region ../types/dist/sleep-Bs3xPtSh.mjs
|
|
5374
5374
|
/**
|
|
5375
5375
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5376
5376
|
* window to float samples (D455).
|
|
@@ -11909,6 +11909,24 @@ var GetStreamWithCodecInputSchema = object({
|
|
|
11909
11909
|
});
|
|
11910
11910
|
var RtpSourceSchema = object({
|
|
11911
11911
|
url: string(),
|
|
11912
|
+
/**
|
|
11913
|
+
* The SENTRY counterpart of {@link url} — the dial that asks for the stream
|
|
11914
|
+
* WITHOUT asking for the camera — or `null` when this camera offers none.
|
|
11915
|
+
*
|
|
11916
|
+
* The broker answers it because the broker is the only thing that can:
|
|
11917
|
+
* eligibility is `sentryEligible` (a BATTERY camera that DECLARES the signals
|
|
11918
|
+
* cap), asked of facts only the broker holds. A consumer re-deriving it from
|
|
11919
|
+
* cap bindings would be a second authority, and two authorities on the same
|
|
11920
|
+
* question is how a composite camera ends up dialling a sleeping camera
|
|
11921
|
+
* because its own copy of the rule was a release behind.
|
|
11922
|
+
*
|
|
11923
|
+
* `null` is a real answer and is never a live url in disguise: a consumer
|
|
11924
|
+
* that silently fell back to {@link url} would perform exactly the wake this
|
|
11925
|
+
* field exists to prevent. Only a PASSTHROUGH acquisition can offer one — a
|
|
11926
|
+
* transcode hands back an egress the broker is feeding itself, which has no
|
|
11927
|
+
* sentry counterpart.
|
|
11928
|
+
*/
|
|
11929
|
+
sentryUrl: string().nullable().optional(),
|
|
11912
11930
|
videoCodec: _enum(["H264", "H265"]),
|
|
11913
11931
|
audioCodec: string(),
|
|
11914
11932
|
resolution: object({
|
|
@@ -28947,6 +28965,114 @@ var motionTriggerCapability = {
|
|
|
28947
28965
|
durability: "session"
|
|
28948
28966
|
};
|
|
28949
28967
|
/**
|
|
28968
|
+
* camera-grid-layout — the geometry of a COMPOSITE camera, on the camera's own
|
|
28969
|
+
* page.
|
|
28970
|
+
*
|
|
28971
|
+
* ## Why this is a capability and not an addon settings schema
|
|
28972
|
+
*
|
|
28973
|
+
* It was one, and it did not render. The addon declared the editor as a
|
|
28974
|
+
* `type: 'widget'` field inside its own `deviceSettingsSchema()`; the hub
|
|
28975
|
+
* returned that section correctly and `ConfigFormField` renders `type:'widget'`
|
|
28976
|
+
* perfectly well — and nothing ever asked camera-grid for it. The Cluster →
|
|
28977
|
+
* Pipeline → Device Overrides page interrogates a HAND-WRITTEN list of four
|
|
28978
|
+
* addons (`PIPELINE_CLUSTER_DEVICE_ADDONS`), whose own comment says an addon
|
|
28979
|
+
* not on it "falls off silently".
|
|
28980
|
+
*
|
|
28981
|
+
* Adding a fifth name to that list would have been the wrong fix twice over:
|
|
28982
|
+
* that page is per-camera DETECTION tuning, and a grid's geometry belongs
|
|
28983
|
+
* beside PTZ and motion zones on the camera itself — which is exactly where the
|
|
28984
|
+
* framework already puts a widget, when the widget is declared on a CAPABILITY.
|
|
28985
|
+
* `deviceConfig.ui` is the mechanism (`motion-zones`, `ptz`, `ptz-autotrack`
|
|
28986
|
+
* all use it): the framework emits the structural section and the widget
|
|
28987
|
+
* self-persists through the cap's own mutations.
|
|
28988
|
+
*
|
|
28989
|
+
* ## Why one addon may implement it
|
|
28990
|
+
*
|
|
28991
|
+
* It is a device-scoped NATIVE cap, registered by the grid camera device
|
|
28992
|
+
* itself. Nothing else declares a composite camera, so nothing else has a
|
|
28993
|
+
* layout — and the device-scoped route means the widget asks THE camera, not
|
|
28994
|
+
* "the camera-grid addon", which is what let the old custom-action pair be
|
|
28995
|
+
* reached only by a caller that already knew the addon id.
|
|
28996
|
+
*
|
|
28997
|
+
* ## The tab
|
|
28998
|
+
*
|
|
28999
|
+
* `streaming`, not a top-tab of its own. A grid's geometry IS what its stream
|
|
29000
|
+
* is, so the Streaming tab is where it belongs; a `grid` top-tab would need an
|
|
29001
|
+
* entry in `WELL_KNOWN_TAB_MAP` or the device page renders the raw id as the
|
|
29002
|
+
* label (measured on the robot camera, 2026-09-06 — a tab called "navigation"
|
|
29003
|
+
* next to "PTZ").
|
|
29004
|
+
*/
|
|
29005
|
+
/** A rectangle in normalized [0,1] coordinates of whatever contains it. */
|
|
29006
|
+
var GridNormalizedRectSchema = object({
|
|
29007
|
+
x: number().min(0).max(1),
|
|
29008
|
+
y: number().min(0).max(1),
|
|
29009
|
+
width: number().gt(0).max(1),
|
|
29010
|
+
height: number().gt(0).max(1)
|
|
29011
|
+
});
|
|
29012
|
+
/**
|
|
29013
|
+
* One source camera, the part of its picture taken, and where that part lands.
|
|
29014
|
+
*
|
|
29015
|
+
* Both rectangles are NORMALIZED (D519): a source camera can change resolution
|
|
29016
|
+
* — a profile switch, a firmware update, a substream that comes back different
|
|
29017
|
+
* — and a stored PIXEL rectangle would quietly start cutting the wrong region,
|
|
29018
|
+
* which is the class of bug nobody files.
|
|
29019
|
+
*/
|
|
29020
|
+
var GridLayoutCellSchema = object({
|
|
29021
|
+
deviceId: number().int().positive(),
|
|
29022
|
+
/** The part of the SOURCE taken, normalized against the source. */
|
|
29023
|
+
source: GridNormalizedRectSchema,
|
|
29024
|
+
/** Where it lands, normalized against the CANVAS. */
|
|
29025
|
+
cell: GridNormalizedRectSchema
|
|
29026
|
+
});
|
|
29027
|
+
/**
|
|
29028
|
+
* Which profiles this grid can actually compose, and why not.
|
|
29029
|
+
*
|
|
29030
|
+
* A grid's `high` composes its sources' `high` and its `low` their `low`, so a
|
|
29031
|
+
* profile is on offer only when EVERY source can serve it. The refusal NAMES
|
|
29032
|
+
* the sources, because "this grid has no low" is not a finding — "615 has no
|
|
29033
|
+
* low" is, and it is the one an operator can act on.
|
|
29034
|
+
*/
|
|
29035
|
+
var GridProfileOfferSchema = object({
|
|
29036
|
+
profile: _enum([
|
|
29037
|
+
"high",
|
|
29038
|
+
"mid",
|
|
29039
|
+
"low"
|
|
29040
|
+
]),
|
|
29041
|
+
offered: boolean(),
|
|
29042
|
+
/** Sources that cannot serve it. Empty when it is offered, or when there are no cells. */
|
|
29043
|
+
missingSources: array(number().int().positive())
|
|
29044
|
+
});
|
|
29045
|
+
var GridLayoutViewSchema = object({
|
|
29046
|
+
/** The persisted grid row this camera was declared from. */
|
|
29047
|
+
instanceId: string(),
|
|
29048
|
+
deviceId: number().int().nonnegative(),
|
|
29049
|
+
name: string(),
|
|
29050
|
+
/** The canvas the operator laid out — this grid's `high`. mid/low are scaled from it. */
|
|
29051
|
+
width: number().int(),
|
|
29052
|
+
height: number().int(),
|
|
29053
|
+
fps: number().int(),
|
|
29054
|
+
cells: array(GridLayoutCellSchema),
|
|
29055
|
+
/** What the catalog will publish, and what it refuses to. Read-only. */
|
|
29056
|
+
profiles: array(GridProfileOfferSchema)
|
|
29057
|
+
});
|
|
29058
|
+
var GridLayoutPatchSchema = object({
|
|
29059
|
+
deviceId: number().int().nonnegative(),
|
|
29060
|
+
name: string().min(1).max(160).optional(),
|
|
29061
|
+
width: number().int().min(160).max(7680).optional(),
|
|
29062
|
+
height: number().int().min(120).max(4320).optional(),
|
|
29063
|
+
fps: number().int().min(1).max(60).optional(),
|
|
29064
|
+
/**
|
|
29065
|
+
* The whole cell list at once. A per-cell patch would need an ordering the
|
|
29066
|
+
* editor does not have, and a half-applied layout is a picture nobody asked
|
|
29067
|
+
* for.
|
|
29068
|
+
*/
|
|
29069
|
+
cells: array(GridLayoutCellSchema).max(16)
|
|
29070
|
+
});
|
|
29071
|
+
DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), GridLayoutViewSchema.nullable(), { auth: "admin" }), method(GridLayoutPatchSchema, GridLayoutViewSchema, {
|
|
29072
|
+
kind: "mutation",
|
|
29073
|
+
auth: "admin"
|
|
29074
|
+
});
|
|
29075
|
+
/**
|
|
28950
29076
|
* Motion-zones share the same MaskShape vocabulary as privacy-mask — the
|
|
28951
29077
|
* on-camera motion-detection mask is a single `grid` region (a row-major
|
|
28952
29078
|
* boolean cell lattice the camera's onboard VMD evaluates). Composing it as
|
|
@@ -31105,6 +31231,26 @@ var PtzHomePresetSchema = object({
|
|
|
31105
31231
|
"none"
|
|
31106
31232
|
])
|
|
31107
31233
|
});
|
|
31234
|
+
/**
|
|
31235
|
+
* The camera's own idle-return behaviour: whether it goes home by itself, and
|
|
31236
|
+
* after how long.
|
|
31237
|
+
*
|
|
31238
|
+
* ONE shape, not two scalars, because on the camera they are ONE fact —
|
|
31239
|
+
* Reolink's guard point carries `benable` and `timeout` in the same element,
|
|
31240
|
+
* written by the same command. Reading them apart means two round-trips that
|
|
31241
|
+
* can disagree.
|
|
31242
|
+
*
|
|
31243
|
+
* `enabled` and `seconds` are INDEPENDENT: a camera can hold a 68 s delay with
|
|
31244
|
+
* the behaviour switched off, which is exactly what the vendor app leaves when
|
|
31245
|
+
* you turn the guard point off without clearing it. The first version of this
|
|
31246
|
+
* cap reported only the delay, so that state was invisible — a camera could be
|
|
31247
|
+
* configured to return after 68 seconds with no way to say whether it should
|
|
31248
|
+
* return at all.
|
|
31249
|
+
*/
|
|
31250
|
+
var PtzHomeReturnSchema = object({
|
|
31251
|
+
enabled: boolean(),
|
|
31252
|
+
seconds: number().int()
|
|
31253
|
+
});
|
|
31108
31254
|
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({
|
|
31109
31255
|
deviceId: number(),
|
|
31110
31256
|
presetId: string()
|
|
@@ -31130,8 +31276,9 @@ DeviceType.Camera, method(PtzMoveCommandSchema.extend({ deviceId: number() }), _
|
|
|
31130
31276
|
}), method(object({ deviceId: number() }), _void(), {
|
|
31131
31277
|
kind: "mutation",
|
|
31132
31278
|
auth: "admin"
|
|
31133
|
-
}), method(object({ deviceId: number() }),
|
|
31279
|
+
}), method(object({ deviceId: number() }), PtzHomeReturnSchema.nullable()), method(object({
|
|
31134
31280
|
deviceId: number(),
|
|
31281
|
+
enabled: boolean(),
|
|
31135
31282
|
seconds: number().int().min(0).max(3600)
|
|
31136
31283
|
}), _void(), {
|
|
31137
31284
|
kind: "mutation",
|
|
@@ -36652,6 +36799,18 @@ Object.freeze({
|
|
|
36652
36799
|
addonId: null,
|
|
36653
36800
|
access: "view"
|
|
36654
36801
|
},
|
|
36802
|
+
"cameraGridLayout.getLayout": {
|
|
36803
|
+
capName: "camera-grid-layout",
|
|
36804
|
+
capScope: "device",
|
|
36805
|
+
addonId: null,
|
|
36806
|
+
access: "view"
|
|
36807
|
+
},
|
|
36808
|
+
"cameraGridLayout.saveLayout": {
|
|
36809
|
+
capName: "camera-grid-layout",
|
|
36810
|
+
capScope: "device",
|
|
36811
|
+
addonId: null,
|
|
36812
|
+
access: "create"
|
|
36813
|
+
},
|
|
36655
36814
|
"cameraStreams.getBrokerStreams": {
|
|
36656
36815
|
capName: "camera-streams",
|
|
36657
36816
|
capScope: "device",
|
|
@@ -40402,7 +40561,7 @@ Object.freeze({
|
|
|
40402
40561
|
addonId: null,
|
|
40403
40562
|
access: "view"
|
|
40404
40563
|
},
|
|
40405
|
-
"ptz.
|
|
40564
|
+
"ptz.getHomeReturn": {
|
|
40406
40565
|
capName: "ptz",
|
|
40407
40566
|
capScope: "device",
|
|
40408
40567
|
addonId: null,
|
|
@@ -40462,7 +40621,7 @@ Object.freeze({
|
|
|
40462
40621
|
addonId: null,
|
|
40463
40622
|
access: "create"
|
|
40464
40623
|
},
|
|
40465
|
-
"ptz.
|
|
40624
|
+
"ptz.setHomeReturn": {
|
|
40466
40625
|
capName: "ptz",
|
|
40467
40626
|
capScope: "device",
|
|
40468
40627
|
addonId: null,
|
|
@@ -42351,6 +42510,21 @@ Object.freeze({
|
|
|
42351
42510
|
form: "single",
|
|
42352
42511
|
optional: false
|
|
42353
42512
|
}],
|
|
42513
|
+
"cameraGridLayout.getLayout": [{
|
|
42514
|
+
name: "deviceId",
|
|
42515
|
+
form: "single",
|
|
42516
|
+
optional: false
|
|
42517
|
+
}],
|
|
42518
|
+
"cameraGridLayout.saveLayout": [{
|
|
42519
|
+
name: "cells",
|
|
42520
|
+
form: "object-array",
|
|
42521
|
+
optional: false,
|
|
42522
|
+
itemField: "deviceId"
|
|
42523
|
+
}, {
|
|
42524
|
+
name: "deviceId",
|
|
42525
|
+
form: "single",
|
|
42526
|
+
optional: false
|
|
42527
|
+
}],
|
|
42354
42528
|
"cameraStreams.getBrokerStreams": [{
|
|
42355
42529
|
name: "deviceId",
|
|
42356
42530
|
form: "single",
|
|
@@ -43651,7 +43825,7 @@ Object.freeze({
|
|
|
43651
43825
|
form: "single",
|
|
43652
43826
|
optional: false
|
|
43653
43827
|
}],
|
|
43654
|
-
"ptz.
|
|
43828
|
+
"ptz.getHomeReturn": [{
|
|
43655
43829
|
name: "deviceId",
|
|
43656
43830
|
form: "single",
|
|
43657
43831
|
optional: false
|
|
@@ -43701,7 +43875,7 @@ Object.freeze({
|
|
|
43701
43875
|
form: "single",
|
|
43702
43876
|
optional: false
|
|
43703
43877
|
}],
|
|
43704
|
-
"ptz.
|
|
43878
|
+
"ptz.setHomeReturn": [{
|
|
43705
43879
|
name: "deviceId",
|
|
43706
43880
|
form: "single",
|
|
43707
43881
|
optional: false
|
package/package.json
CHANGED