@camstack/addon-provider-rtsp 1.2.112 → 1.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
|
@@ -5384,7 +5384,7 @@ var ZodIssueCode = {
|
|
|
5384
5384
|
var ZodFirstPartyTypeKind;
|
|
5385
5385
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5386
5386
|
//#endregion
|
|
5387
|
-
//#region ../types/dist/sleep-
|
|
5387
|
+
//#region ../types/dist/sleep-Bs3xPtSh.mjs
|
|
5388
5388
|
/**
|
|
5389
5389
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5390
5390
|
* window to float samples (D455).
|
|
@@ -11906,6 +11906,24 @@ var GetStreamWithCodecInputSchema = object({
|
|
|
11906
11906
|
});
|
|
11907
11907
|
var RtpSourceSchema = object({
|
|
11908
11908
|
url: string(),
|
|
11909
|
+
/**
|
|
11910
|
+
* The SENTRY counterpart of {@link url} — the dial that asks for the stream
|
|
11911
|
+
* WITHOUT asking for the camera — or `null` when this camera offers none.
|
|
11912
|
+
*
|
|
11913
|
+
* The broker answers it because the broker is the only thing that can:
|
|
11914
|
+
* eligibility is `sentryEligible` (a BATTERY camera that DECLARES the signals
|
|
11915
|
+
* cap), asked of facts only the broker holds. A consumer re-deriving it from
|
|
11916
|
+
* cap bindings would be a second authority, and two authorities on the same
|
|
11917
|
+
* question is how a composite camera ends up dialling a sleeping camera
|
|
11918
|
+
* because its own copy of the rule was a release behind.
|
|
11919
|
+
*
|
|
11920
|
+
* `null` is a real answer and is never a live url in disguise: a consumer
|
|
11921
|
+
* that silently fell back to {@link url} would perform exactly the wake this
|
|
11922
|
+
* field exists to prevent. Only a PASSTHROUGH acquisition can offer one — a
|
|
11923
|
+
* transcode hands back an egress the broker is feeding itself, which has no
|
|
11924
|
+
* sentry counterpart.
|
|
11925
|
+
*/
|
|
11926
|
+
sentryUrl: string().nullable().optional(),
|
|
11909
11927
|
videoCodec: _enum(["H264", "H265"]),
|
|
11910
11928
|
audioCodec: string(),
|
|
11911
11929
|
resolution: object({
|
|
@@ -29039,6 +29057,114 @@ var motionTriggerCapability = {
|
|
|
29039
29057
|
durability: "session"
|
|
29040
29058
|
};
|
|
29041
29059
|
/**
|
|
29060
|
+
* camera-grid-layout — the geometry of a COMPOSITE camera, on the camera's own
|
|
29061
|
+
* page.
|
|
29062
|
+
*
|
|
29063
|
+
* ## Why this is a capability and not an addon settings schema
|
|
29064
|
+
*
|
|
29065
|
+
* It was one, and it did not render. The addon declared the editor as a
|
|
29066
|
+
* `type: 'widget'` field inside its own `deviceSettingsSchema()`; the hub
|
|
29067
|
+
* returned that section correctly and `ConfigFormField` renders `type:'widget'`
|
|
29068
|
+
* perfectly well — and nothing ever asked camera-grid for it. The Cluster →
|
|
29069
|
+
* Pipeline → Device Overrides page interrogates a HAND-WRITTEN list of four
|
|
29070
|
+
* addons (`PIPELINE_CLUSTER_DEVICE_ADDONS`), whose own comment says an addon
|
|
29071
|
+
* not on it "falls off silently".
|
|
29072
|
+
*
|
|
29073
|
+
* Adding a fifth name to that list would have been the wrong fix twice over:
|
|
29074
|
+
* that page is per-camera DETECTION tuning, and a grid's geometry belongs
|
|
29075
|
+
* beside PTZ and motion zones on the camera itself — which is exactly where the
|
|
29076
|
+
* framework already puts a widget, when the widget is declared on a CAPABILITY.
|
|
29077
|
+
* `deviceConfig.ui` is the mechanism (`motion-zones`, `ptz`, `ptz-autotrack`
|
|
29078
|
+
* all use it): the framework emits the structural section and the widget
|
|
29079
|
+
* self-persists through the cap's own mutations.
|
|
29080
|
+
*
|
|
29081
|
+
* ## Why one addon may implement it
|
|
29082
|
+
*
|
|
29083
|
+
* It is a device-scoped NATIVE cap, registered by the grid camera device
|
|
29084
|
+
* itself. Nothing else declares a composite camera, so nothing else has a
|
|
29085
|
+
* layout — and the device-scoped route means the widget asks THE camera, not
|
|
29086
|
+
* "the camera-grid addon", which is what let the old custom-action pair be
|
|
29087
|
+
* reached only by a caller that already knew the addon id.
|
|
29088
|
+
*
|
|
29089
|
+
* ## The tab
|
|
29090
|
+
*
|
|
29091
|
+
* `streaming`, not a top-tab of its own. A grid's geometry IS what its stream
|
|
29092
|
+
* is, so the Streaming tab is where it belongs; a `grid` top-tab would need an
|
|
29093
|
+
* entry in `WELL_KNOWN_TAB_MAP` or the device page renders the raw id as the
|
|
29094
|
+
* label (measured on the robot camera, 2026-09-06 — a tab called "navigation"
|
|
29095
|
+
* next to "PTZ").
|
|
29096
|
+
*/
|
|
29097
|
+
/** A rectangle in normalized [0,1] coordinates of whatever contains it. */
|
|
29098
|
+
var GridNormalizedRectSchema = object({
|
|
29099
|
+
x: number().min(0).max(1),
|
|
29100
|
+
y: number().min(0).max(1),
|
|
29101
|
+
width: number().gt(0).max(1),
|
|
29102
|
+
height: number().gt(0).max(1)
|
|
29103
|
+
});
|
|
29104
|
+
/**
|
|
29105
|
+
* One source camera, the part of its picture taken, and where that part lands.
|
|
29106
|
+
*
|
|
29107
|
+
* Both rectangles are NORMALIZED (D519): a source camera can change resolution
|
|
29108
|
+
* — a profile switch, a firmware update, a substream that comes back different
|
|
29109
|
+
* — and a stored PIXEL rectangle would quietly start cutting the wrong region,
|
|
29110
|
+
* which is the class of bug nobody files.
|
|
29111
|
+
*/
|
|
29112
|
+
var GridLayoutCellSchema = object({
|
|
29113
|
+
deviceId: number().int().positive(),
|
|
29114
|
+
/** The part of the SOURCE taken, normalized against the source. */
|
|
29115
|
+
source: GridNormalizedRectSchema,
|
|
29116
|
+
/** Where it lands, normalized against the CANVAS. */
|
|
29117
|
+
cell: GridNormalizedRectSchema
|
|
29118
|
+
});
|
|
29119
|
+
/**
|
|
29120
|
+
* Which profiles this grid can actually compose, and why not.
|
|
29121
|
+
*
|
|
29122
|
+
* A grid's `high` composes its sources' `high` and its `low` their `low`, so a
|
|
29123
|
+
* profile is on offer only when EVERY source can serve it. The refusal NAMES
|
|
29124
|
+
* the sources, because "this grid has no low" is not a finding — "615 has no
|
|
29125
|
+
* low" is, and it is the one an operator can act on.
|
|
29126
|
+
*/
|
|
29127
|
+
var GridProfileOfferSchema = object({
|
|
29128
|
+
profile: _enum([
|
|
29129
|
+
"high",
|
|
29130
|
+
"mid",
|
|
29131
|
+
"low"
|
|
29132
|
+
]),
|
|
29133
|
+
offered: boolean(),
|
|
29134
|
+
/** Sources that cannot serve it. Empty when it is offered, or when there are no cells. */
|
|
29135
|
+
missingSources: array(number().int().positive())
|
|
29136
|
+
});
|
|
29137
|
+
var GridLayoutViewSchema = object({
|
|
29138
|
+
/** The persisted grid row this camera was declared from. */
|
|
29139
|
+
instanceId: string(),
|
|
29140
|
+
deviceId: number().int().nonnegative(),
|
|
29141
|
+
name: string(),
|
|
29142
|
+
/** The canvas the operator laid out — this grid's `high`. mid/low are scaled from it. */
|
|
29143
|
+
width: number().int(),
|
|
29144
|
+
height: number().int(),
|
|
29145
|
+
fps: number().int(),
|
|
29146
|
+
cells: array(GridLayoutCellSchema),
|
|
29147
|
+
/** What the catalog will publish, and what it refuses to. Read-only. */
|
|
29148
|
+
profiles: array(GridProfileOfferSchema)
|
|
29149
|
+
});
|
|
29150
|
+
var GridLayoutPatchSchema = object({
|
|
29151
|
+
deviceId: number().int().nonnegative(),
|
|
29152
|
+
name: string().min(1).max(160).optional(),
|
|
29153
|
+
width: number().int().min(160).max(7680).optional(),
|
|
29154
|
+
height: number().int().min(120).max(4320).optional(),
|
|
29155
|
+
fps: number().int().min(1).max(60).optional(),
|
|
29156
|
+
/**
|
|
29157
|
+
* The whole cell list at once. A per-cell patch would need an ordering the
|
|
29158
|
+
* editor does not have, and a half-applied layout is a picture nobody asked
|
|
29159
|
+
* for.
|
|
29160
|
+
*/
|
|
29161
|
+
cells: array(GridLayoutCellSchema).max(16)
|
|
29162
|
+
});
|
|
29163
|
+
DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), GridLayoutViewSchema.nullable(), { auth: "admin" }), method(GridLayoutPatchSchema, GridLayoutViewSchema, {
|
|
29164
|
+
kind: "mutation",
|
|
29165
|
+
auth: "admin"
|
|
29166
|
+
});
|
|
29167
|
+
/**
|
|
29042
29168
|
* Motion-zones share the same MaskShape vocabulary as privacy-mask — the
|
|
29043
29169
|
* on-camera motion-detection mask is a single `grid` region (a row-major
|
|
29044
29170
|
* boolean cell lattice the camera's onboard VMD evaluates). Composing it as
|
|
@@ -31197,6 +31323,26 @@ var PtzHomePresetSchema = object({
|
|
|
31197
31323
|
"none"
|
|
31198
31324
|
])
|
|
31199
31325
|
});
|
|
31326
|
+
/**
|
|
31327
|
+
* The camera's own idle-return behaviour: whether it goes home by itself, and
|
|
31328
|
+
* after how long.
|
|
31329
|
+
*
|
|
31330
|
+
* ONE shape, not two scalars, because on the camera they are ONE fact —
|
|
31331
|
+
* Reolink's guard point carries `benable` and `timeout` in the same element,
|
|
31332
|
+
* written by the same command. Reading them apart means two round-trips that
|
|
31333
|
+
* can disagree.
|
|
31334
|
+
*
|
|
31335
|
+
* `enabled` and `seconds` are INDEPENDENT: a camera can hold a 68 s delay with
|
|
31336
|
+
* the behaviour switched off, which is exactly what the vendor app leaves when
|
|
31337
|
+
* you turn the guard point off without clearing it. The first version of this
|
|
31338
|
+
* cap reported only the delay, so that state was invisible — a camera could be
|
|
31339
|
+
* configured to return after 68 seconds with no way to say whether it should
|
|
31340
|
+
* return at all.
|
|
31341
|
+
*/
|
|
31342
|
+
var PtzHomeReturnSchema = object({
|
|
31343
|
+
enabled: boolean(),
|
|
31344
|
+
seconds: number().int()
|
|
31345
|
+
});
|
|
31200
31346
|
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({
|
|
31201
31347
|
deviceId: number(),
|
|
31202
31348
|
presetId: string()
|
|
@@ -31222,8 +31368,9 @@ DeviceType.Camera, method(PtzMoveCommandSchema.extend({ deviceId: number() }), _
|
|
|
31222
31368
|
}), method(object({ deviceId: number() }), _void(), {
|
|
31223
31369
|
kind: "mutation",
|
|
31224
31370
|
auth: "admin"
|
|
31225
|
-
}), method(object({ deviceId: number() }),
|
|
31371
|
+
}), method(object({ deviceId: number() }), PtzHomeReturnSchema.nullable()), method(object({
|
|
31226
31372
|
deviceId: number(),
|
|
31373
|
+
enabled: boolean(),
|
|
31227
31374
|
seconds: number().int().min(0).max(3600)
|
|
31228
31375
|
}), _void(), {
|
|
31229
31376
|
kind: "mutation",
|
|
@@ -36810,6 +36957,18 @@ Object.freeze({
|
|
|
36810
36957
|
addonId: null,
|
|
36811
36958
|
access: "view"
|
|
36812
36959
|
},
|
|
36960
|
+
"cameraGridLayout.getLayout": {
|
|
36961
|
+
capName: "camera-grid-layout",
|
|
36962
|
+
capScope: "device",
|
|
36963
|
+
addonId: null,
|
|
36964
|
+
access: "view"
|
|
36965
|
+
},
|
|
36966
|
+
"cameraGridLayout.saveLayout": {
|
|
36967
|
+
capName: "camera-grid-layout",
|
|
36968
|
+
capScope: "device",
|
|
36969
|
+
addonId: null,
|
|
36970
|
+
access: "create"
|
|
36971
|
+
},
|
|
36813
36972
|
"cameraStreams.getBrokerStreams": {
|
|
36814
36973
|
capName: "camera-streams",
|
|
36815
36974
|
capScope: "device",
|
|
@@ -40560,7 +40719,7 @@ Object.freeze({
|
|
|
40560
40719
|
addonId: null,
|
|
40561
40720
|
access: "view"
|
|
40562
40721
|
},
|
|
40563
|
-
"ptz.
|
|
40722
|
+
"ptz.getHomeReturn": {
|
|
40564
40723
|
capName: "ptz",
|
|
40565
40724
|
capScope: "device",
|
|
40566
40725
|
addonId: null,
|
|
@@ -40620,7 +40779,7 @@ Object.freeze({
|
|
|
40620
40779
|
addonId: null,
|
|
40621
40780
|
access: "create"
|
|
40622
40781
|
},
|
|
40623
|
-
"ptz.
|
|
40782
|
+
"ptz.setHomeReturn": {
|
|
40624
40783
|
capName: "ptz",
|
|
40625
40784
|
capScope: "device",
|
|
40626
40785
|
addonId: null,
|
|
@@ -42509,6 +42668,21 @@ Object.freeze({
|
|
|
42509
42668
|
form: "single",
|
|
42510
42669
|
optional: false
|
|
42511
42670
|
}],
|
|
42671
|
+
"cameraGridLayout.getLayout": [{
|
|
42672
|
+
name: "deviceId",
|
|
42673
|
+
form: "single",
|
|
42674
|
+
optional: false
|
|
42675
|
+
}],
|
|
42676
|
+
"cameraGridLayout.saveLayout": [{
|
|
42677
|
+
name: "cells",
|
|
42678
|
+
form: "object-array",
|
|
42679
|
+
optional: false,
|
|
42680
|
+
itemField: "deviceId"
|
|
42681
|
+
}, {
|
|
42682
|
+
name: "deviceId",
|
|
42683
|
+
form: "single",
|
|
42684
|
+
optional: false
|
|
42685
|
+
}],
|
|
42512
42686
|
"cameraStreams.getBrokerStreams": [{
|
|
42513
42687
|
name: "deviceId",
|
|
42514
42688
|
form: "single",
|
|
@@ -43809,7 +43983,7 @@ Object.freeze({
|
|
|
43809
43983
|
form: "single",
|
|
43810
43984
|
optional: false
|
|
43811
43985
|
}],
|
|
43812
|
-
"ptz.
|
|
43986
|
+
"ptz.getHomeReturn": [{
|
|
43813
43987
|
name: "deviceId",
|
|
43814
43988
|
form: "single",
|
|
43815
43989
|
optional: false
|
|
@@ -43859,7 +44033,7 @@ Object.freeze({
|
|
|
43859
44033
|
form: "single",
|
|
43860
44034
|
optional: false
|
|
43861
44035
|
}],
|
|
43862
|
-
"ptz.
|
|
44036
|
+
"ptz.setHomeReturn": [{
|
|
43863
44037
|
name: "deviceId",
|
|
43864
44038
|
form: "single",
|
|
43865
44039
|
optional: false
|
package/dist/addon.mjs
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).
|
|
@@ -11882,6 +11882,24 @@ var GetStreamWithCodecInputSchema = object({
|
|
|
11882
11882
|
});
|
|
11883
11883
|
var RtpSourceSchema = object({
|
|
11884
11884
|
url: string(),
|
|
11885
|
+
/**
|
|
11886
|
+
* The SENTRY counterpart of {@link url} — the dial that asks for the stream
|
|
11887
|
+
* WITHOUT asking for the camera — or `null` when this camera offers none.
|
|
11888
|
+
*
|
|
11889
|
+
* The broker answers it because the broker is the only thing that can:
|
|
11890
|
+
* eligibility is `sentryEligible` (a BATTERY camera that DECLARES the signals
|
|
11891
|
+
* cap), asked of facts only the broker holds. A consumer re-deriving it from
|
|
11892
|
+
* cap bindings would be a second authority, and two authorities on the same
|
|
11893
|
+
* question is how a composite camera ends up dialling a sleeping camera
|
|
11894
|
+
* because its own copy of the rule was a release behind.
|
|
11895
|
+
*
|
|
11896
|
+
* `null` is a real answer and is never a live url in disguise: a consumer
|
|
11897
|
+
* that silently fell back to {@link url} would perform exactly the wake this
|
|
11898
|
+
* field exists to prevent. Only a PASSTHROUGH acquisition can offer one — a
|
|
11899
|
+
* transcode hands back an egress the broker is feeding itself, which has no
|
|
11900
|
+
* sentry counterpart.
|
|
11901
|
+
*/
|
|
11902
|
+
sentryUrl: string().nullable().optional(),
|
|
11885
11903
|
videoCodec: _enum(["H264", "H265"]),
|
|
11886
11904
|
audioCodec: string(),
|
|
11887
11905
|
resolution: object({
|
|
@@ -29015,6 +29033,114 @@ var motionTriggerCapability = {
|
|
|
29015
29033
|
durability: "session"
|
|
29016
29034
|
};
|
|
29017
29035
|
/**
|
|
29036
|
+
* camera-grid-layout — the geometry of a COMPOSITE camera, on the camera's own
|
|
29037
|
+
* page.
|
|
29038
|
+
*
|
|
29039
|
+
* ## Why this is a capability and not an addon settings schema
|
|
29040
|
+
*
|
|
29041
|
+
* It was one, and it did not render. The addon declared the editor as a
|
|
29042
|
+
* `type: 'widget'` field inside its own `deviceSettingsSchema()`; the hub
|
|
29043
|
+
* returned that section correctly and `ConfigFormField` renders `type:'widget'`
|
|
29044
|
+
* perfectly well — and nothing ever asked camera-grid for it. The Cluster →
|
|
29045
|
+
* Pipeline → Device Overrides page interrogates a HAND-WRITTEN list of four
|
|
29046
|
+
* addons (`PIPELINE_CLUSTER_DEVICE_ADDONS`), whose own comment says an addon
|
|
29047
|
+
* not on it "falls off silently".
|
|
29048
|
+
*
|
|
29049
|
+
* Adding a fifth name to that list would have been the wrong fix twice over:
|
|
29050
|
+
* that page is per-camera DETECTION tuning, and a grid's geometry belongs
|
|
29051
|
+
* beside PTZ and motion zones on the camera itself — which is exactly where the
|
|
29052
|
+
* framework already puts a widget, when the widget is declared on a CAPABILITY.
|
|
29053
|
+
* `deviceConfig.ui` is the mechanism (`motion-zones`, `ptz`, `ptz-autotrack`
|
|
29054
|
+
* all use it): the framework emits the structural section and the widget
|
|
29055
|
+
* self-persists through the cap's own mutations.
|
|
29056
|
+
*
|
|
29057
|
+
* ## Why one addon may implement it
|
|
29058
|
+
*
|
|
29059
|
+
* It is a device-scoped NATIVE cap, registered by the grid camera device
|
|
29060
|
+
* itself. Nothing else declares a composite camera, so nothing else has a
|
|
29061
|
+
* layout — and the device-scoped route means the widget asks THE camera, not
|
|
29062
|
+
* "the camera-grid addon", which is what let the old custom-action pair be
|
|
29063
|
+
* reached only by a caller that already knew the addon id.
|
|
29064
|
+
*
|
|
29065
|
+
* ## The tab
|
|
29066
|
+
*
|
|
29067
|
+
* `streaming`, not a top-tab of its own. A grid's geometry IS what its stream
|
|
29068
|
+
* is, so the Streaming tab is where it belongs; a `grid` top-tab would need an
|
|
29069
|
+
* entry in `WELL_KNOWN_TAB_MAP` or the device page renders the raw id as the
|
|
29070
|
+
* label (measured on the robot camera, 2026-09-06 — a tab called "navigation"
|
|
29071
|
+
* next to "PTZ").
|
|
29072
|
+
*/
|
|
29073
|
+
/** A rectangle in normalized [0,1] coordinates of whatever contains it. */
|
|
29074
|
+
var GridNormalizedRectSchema = object({
|
|
29075
|
+
x: number().min(0).max(1),
|
|
29076
|
+
y: number().min(0).max(1),
|
|
29077
|
+
width: number().gt(0).max(1),
|
|
29078
|
+
height: number().gt(0).max(1)
|
|
29079
|
+
});
|
|
29080
|
+
/**
|
|
29081
|
+
* One source camera, the part of its picture taken, and where that part lands.
|
|
29082
|
+
*
|
|
29083
|
+
* Both rectangles are NORMALIZED (D519): a source camera can change resolution
|
|
29084
|
+
* — a profile switch, a firmware update, a substream that comes back different
|
|
29085
|
+
* — and a stored PIXEL rectangle would quietly start cutting the wrong region,
|
|
29086
|
+
* which is the class of bug nobody files.
|
|
29087
|
+
*/
|
|
29088
|
+
var GridLayoutCellSchema = object({
|
|
29089
|
+
deviceId: number().int().positive(),
|
|
29090
|
+
/** The part of the SOURCE taken, normalized against the source. */
|
|
29091
|
+
source: GridNormalizedRectSchema,
|
|
29092
|
+
/** Where it lands, normalized against the CANVAS. */
|
|
29093
|
+
cell: GridNormalizedRectSchema
|
|
29094
|
+
});
|
|
29095
|
+
/**
|
|
29096
|
+
* Which profiles this grid can actually compose, and why not.
|
|
29097
|
+
*
|
|
29098
|
+
* A grid's `high` composes its sources' `high` and its `low` their `low`, so a
|
|
29099
|
+
* profile is on offer only when EVERY source can serve it. The refusal NAMES
|
|
29100
|
+
* the sources, because "this grid has no low" is not a finding — "615 has no
|
|
29101
|
+
* low" is, and it is the one an operator can act on.
|
|
29102
|
+
*/
|
|
29103
|
+
var GridProfileOfferSchema = object({
|
|
29104
|
+
profile: _enum([
|
|
29105
|
+
"high",
|
|
29106
|
+
"mid",
|
|
29107
|
+
"low"
|
|
29108
|
+
]),
|
|
29109
|
+
offered: boolean(),
|
|
29110
|
+
/** Sources that cannot serve it. Empty when it is offered, or when there are no cells. */
|
|
29111
|
+
missingSources: array(number().int().positive())
|
|
29112
|
+
});
|
|
29113
|
+
var GridLayoutViewSchema = object({
|
|
29114
|
+
/** The persisted grid row this camera was declared from. */
|
|
29115
|
+
instanceId: string(),
|
|
29116
|
+
deviceId: number().int().nonnegative(),
|
|
29117
|
+
name: string(),
|
|
29118
|
+
/** The canvas the operator laid out — this grid's `high`. mid/low are scaled from it. */
|
|
29119
|
+
width: number().int(),
|
|
29120
|
+
height: number().int(),
|
|
29121
|
+
fps: number().int(),
|
|
29122
|
+
cells: array(GridLayoutCellSchema),
|
|
29123
|
+
/** What the catalog will publish, and what it refuses to. Read-only. */
|
|
29124
|
+
profiles: array(GridProfileOfferSchema)
|
|
29125
|
+
});
|
|
29126
|
+
var GridLayoutPatchSchema = object({
|
|
29127
|
+
deviceId: number().int().nonnegative(),
|
|
29128
|
+
name: string().min(1).max(160).optional(),
|
|
29129
|
+
width: number().int().min(160).max(7680).optional(),
|
|
29130
|
+
height: number().int().min(120).max(4320).optional(),
|
|
29131
|
+
fps: number().int().min(1).max(60).optional(),
|
|
29132
|
+
/**
|
|
29133
|
+
* The whole cell list at once. A per-cell patch would need an ordering the
|
|
29134
|
+
* editor does not have, and a half-applied layout is a picture nobody asked
|
|
29135
|
+
* for.
|
|
29136
|
+
*/
|
|
29137
|
+
cells: array(GridLayoutCellSchema).max(16)
|
|
29138
|
+
});
|
|
29139
|
+
DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), GridLayoutViewSchema.nullable(), { auth: "admin" }), method(GridLayoutPatchSchema, GridLayoutViewSchema, {
|
|
29140
|
+
kind: "mutation",
|
|
29141
|
+
auth: "admin"
|
|
29142
|
+
});
|
|
29143
|
+
/**
|
|
29018
29144
|
* Motion-zones share the same MaskShape vocabulary as privacy-mask — the
|
|
29019
29145
|
* on-camera motion-detection mask is a single `grid` region (a row-major
|
|
29020
29146
|
* boolean cell lattice the camera's onboard VMD evaluates). Composing it as
|
|
@@ -31173,6 +31299,26 @@ var PtzHomePresetSchema = object({
|
|
|
31173
31299
|
"none"
|
|
31174
31300
|
])
|
|
31175
31301
|
});
|
|
31302
|
+
/**
|
|
31303
|
+
* The camera's own idle-return behaviour: whether it goes home by itself, and
|
|
31304
|
+
* after how long.
|
|
31305
|
+
*
|
|
31306
|
+
* ONE shape, not two scalars, because on the camera they are ONE fact —
|
|
31307
|
+
* Reolink's guard point carries `benable` and `timeout` in the same element,
|
|
31308
|
+
* written by the same command. Reading them apart means two round-trips that
|
|
31309
|
+
* can disagree.
|
|
31310
|
+
*
|
|
31311
|
+
* `enabled` and `seconds` are INDEPENDENT: a camera can hold a 68 s delay with
|
|
31312
|
+
* the behaviour switched off, which is exactly what the vendor app leaves when
|
|
31313
|
+
* you turn the guard point off without clearing it. The first version of this
|
|
31314
|
+
* cap reported only the delay, so that state was invisible — a camera could be
|
|
31315
|
+
* configured to return after 68 seconds with no way to say whether it should
|
|
31316
|
+
* return at all.
|
|
31317
|
+
*/
|
|
31318
|
+
var PtzHomeReturnSchema = object({
|
|
31319
|
+
enabled: boolean(),
|
|
31320
|
+
seconds: number().int()
|
|
31321
|
+
});
|
|
31176
31322
|
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({
|
|
31177
31323
|
deviceId: number(),
|
|
31178
31324
|
presetId: string()
|
|
@@ -31198,8 +31344,9 @@ DeviceType.Camera, method(PtzMoveCommandSchema.extend({ deviceId: number() }), _
|
|
|
31198
31344
|
}), method(object({ deviceId: number() }), _void(), {
|
|
31199
31345
|
kind: "mutation",
|
|
31200
31346
|
auth: "admin"
|
|
31201
|
-
}), method(object({ deviceId: number() }),
|
|
31347
|
+
}), method(object({ deviceId: number() }), PtzHomeReturnSchema.nullable()), method(object({
|
|
31202
31348
|
deviceId: number(),
|
|
31349
|
+
enabled: boolean(),
|
|
31203
31350
|
seconds: number().int().min(0).max(3600)
|
|
31204
31351
|
}), _void(), {
|
|
31205
31352
|
kind: "mutation",
|
|
@@ -36786,6 +36933,18 @@ Object.freeze({
|
|
|
36786
36933
|
addonId: null,
|
|
36787
36934
|
access: "view"
|
|
36788
36935
|
},
|
|
36936
|
+
"cameraGridLayout.getLayout": {
|
|
36937
|
+
capName: "camera-grid-layout",
|
|
36938
|
+
capScope: "device",
|
|
36939
|
+
addonId: null,
|
|
36940
|
+
access: "view"
|
|
36941
|
+
},
|
|
36942
|
+
"cameraGridLayout.saveLayout": {
|
|
36943
|
+
capName: "camera-grid-layout",
|
|
36944
|
+
capScope: "device",
|
|
36945
|
+
addonId: null,
|
|
36946
|
+
access: "create"
|
|
36947
|
+
},
|
|
36789
36948
|
"cameraStreams.getBrokerStreams": {
|
|
36790
36949
|
capName: "camera-streams",
|
|
36791
36950
|
capScope: "device",
|
|
@@ -40536,7 +40695,7 @@ Object.freeze({
|
|
|
40536
40695
|
addonId: null,
|
|
40537
40696
|
access: "view"
|
|
40538
40697
|
},
|
|
40539
|
-
"ptz.
|
|
40698
|
+
"ptz.getHomeReturn": {
|
|
40540
40699
|
capName: "ptz",
|
|
40541
40700
|
capScope: "device",
|
|
40542
40701
|
addonId: null,
|
|
@@ -40596,7 +40755,7 @@ Object.freeze({
|
|
|
40596
40755
|
addonId: null,
|
|
40597
40756
|
access: "create"
|
|
40598
40757
|
},
|
|
40599
|
-
"ptz.
|
|
40758
|
+
"ptz.setHomeReturn": {
|
|
40600
40759
|
capName: "ptz",
|
|
40601
40760
|
capScope: "device",
|
|
40602
40761
|
addonId: null,
|
|
@@ -42485,6 +42644,21 @@ Object.freeze({
|
|
|
42485
42644
|
form: "single",
|
|
42486
42645
|
optional: false
|
|
42487
42646
|
}],
|
|
42647
|
+
"cameraGridLayout.getLayout": [{
|
|
42648
|
+
name: "deviceId",
|
|
42649
|
+
form: "single",
|
|
42650
|
+
optional: false
|
|
42651
|
+
}],
|
|
42652
|
+
"cameraGridLayout.saveLayout": [{
|
|
42653
|
+
name: "cells",
|
|
42654
|
+
form: "object-array",
|
|
42655
|
+
optional: false,
|
|
42656
|
+
itemField: "deviceId"
|
|
42657
|
+
}, {
|
|
42658
|
+
name: "deviceId",
|
|
42659
|
+
form: "single",
|
|
42660
|
+
optional: false
|
|
42661
|
+
}],
|
|
42488
42662
|
"cameraStreams.getBrokerStreams": [{
|
|
42489
42663
|
name: "deviceId",
|
|
42490
42664
|
form: "single",
|
|
@@ -43785,7 +43959,7 @@ Object.freeze({
|
|
|
43785
43959
|
form: "single",
|
|
43786
43960
|
optional: false
|
|
43787
43961
|
}],
|
|
43788
|
-
"ptz.
|
|
43962
|
+
"ptz.getHomeReturn": [{
|
|
43789
43963
|
name: "deviceId",
|
|
43790
43964
|
form: "single",
|
|
43791
43965
|
optional: false
|
|
@@ -43835,7 +44009,7 @@ Object.freeze({
|
|
|
43835
44009
|
form: "single",
|
|
43836
44010
|
optional: false
|
|
43837
44011
|
}],
|
|
43838
|
-
"ptz.
|
|
44012
|
+
"ptz.setHomeReturn": [{
|
|
43839
44013
|
name: "deviceId",
|
|
43840
44014
|
form: "single",
|
|
43841
44015
|
optional: false
|