@camstack/addon-terminal 0.1.117 → 0.1.119
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
|
@@ -5392,7 +5392,7 @@ var ZodIssueCode = {
|
|
|
5392
5392
|
var ZodFirstPartyTypeKind;
|
|
5393
5393
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5394
5394
|
//#endregion
|
|
5395
|
-
//#region ../types/dist/sleep-
|
|
5395
|
+
//#region ../types/dist/sleep-Bs3xPtSh.mjs
|
|
5396
5396
|
/**
|
|
5397
5397
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5398
5398
|
* window to float samples (D455).
|
|
@@ -11949,6 +11949,24 @@ var GetStreamWithCodecInputSchema = object({
|
|
|
11949
11949
|
});
|
|
11950
11950
|
var RtpSourceSchema = object({
|
|
11951
11951
|
url: string(),
|
|
11952
|
+
/**
|
|
11953
|
+
* The SENTRY counterpart of {@link url} — the dial that asks for the stream
|
|
11954
|
+
* WITHOUT asking for the camera — or `null` when this camera offers none.
|
|
11955
|
+
*
|
|
11956
|
+
* The broker answers it because the broker is the only thing that can:
|
|
11957
|
+
* eligibility is `sentryEligible` (a BATTERY camera that DECLARES the signals
|
|
11958
|
+
* cap), asked of facts only the broker holds. A consumer re-deriving it from
|
|
11959
|
+
* cap bindings would be a second authority, and two authorities on the same
|
|
11960
|
+
* question is how a composite camera ends up dialling a sleeping camera
|
|
11961
|
+
* because its own copy of the rule was a release behind.
|
|
11962
|
+
*
|
|
11963
|
+
* `null` is a real answer and is never a live url in disguise: a consumer
|
|
11964
|
+
* that silently fell back to {@link url} would perform exactly the wake this
|
|
11965
|
+
* field exists to prevent. Only a PASSTHROUGH acquisition can offer one — a
|
|
11966
|
+
* transcode hands back an egress the broker is feeding itself, which has no
|
|
11967
|
+
* sentry counterpart.
|
|
11968
|
+
*/
|
|
11969
|
+
sentryUrl: string().nullable().optional(),
|
|
11952
11970
|
videoCodec: _enum(["H264", "H265"]),
|
|
11953
11971
|
audioCodec: string(),
|
|
11954
11972
|
resolution: object({
|
|
@@ -29037,6 +29055,114 @@ var motionTriggerCapability = {
|
|
|
29037
29055
|
durability: "session"
|
|
29038
29056
|
};
|
|
29039
29057
|
/**
|
|
29058
|
+
* camera-grid-layout — the geometry of a COMPOSITE camera, on the camera's own
|
|
29059
|
+
* page.
|
|
29060
|
+
*
|
|
29061
|
+
* ## Why this is a capability and not an addon settings schema
|
|
29062
|
+
*
|
|
29063
|
+
* It was one, and it did not render. The addon declared the editor as a
|
|
29064
|
+
* `type: 'widget'` field inside its own `deviceSettingsSchema()`; the hub
|
|
29065
|
+
* returned that section correctly and `ConfigFormField` renders `type:'widget'`
|
|
29066
|
+
* perfectly well — and nothing ever asked camera-grid for it. The Cluster →
|
|
29067
|
+
* Pipeline → Device Overrides page interrogates a HAND-WRITTEN list of four
|
|
29068
|
+
* addons (`PIPELINE_CLUSTER_DEVICE_ADDONS`), whose own comment says an addon
|
|
29069
|
+
* not on it "falls off silently".
|
|
29070
|
+
*
|
|
29071
|
+
* Adding a fifth name to that list would have been the wrong fix twice over:
|
|
29072
|
+
* that page is per-camera DETECTION tuning, and a grid's geometry belongs
|
|
29073
|
+
* beside PTZ and motion zones on the camera itself — which is exactly where the
|
|
29074
|
+
* framework already puts a widget, when the widget is declared on a CAPABILITY.
|
|
29075
|
+
* `deviceConfig.ui` is the mechanism (`motion-zones`, `ptz`, `ptz-autotrack`
|
|
29076
|
+
* all use it): the framework emits the structural section and the widget
|
|
29077
|
+
* self-persists through the cap's own mutations.
|
|
29078
|
+
*
|
|
29079
|
+
* ## Why one addon may implement it
|
|
29080
|
+
*
|
|
29081
|
+
* It is a device-scoped NATIVE cap, registered by the grid camera device
|
|
29082
|
+
* itself. Nothing else declares a composite camera, so nothing else has a
|
|
29083
|
+
* layout — and the device-scoped route means the widget asks THE camera, not
|
|
29084
|
+
* "the camera-grid addon", which is what let the old custom-action pair be
|
|
29085
|
+
* reached only by a caller that already knew the addon id.
|
|
29086
|
+
*
|
|
29087
|
+
* ## The tab
|
|
29088
|
+
*
|
|
29089
|
+
* `streaming`, not a top-tab of its own. A grid's geometry IS what its stream
|
|
29090
|
+
* is, so the Streaming tab is where it belongs; a `grid` top-tab would need an
|
|
29091
|
+
* entry in `WELL_KNOWN_TAB_MAP` or the device page renders the raw id as the
|
|
29092
|
+
* label (measured on the robot camera, 2026-09-06 — a tab called "navigation"
|
|
29093
|
+
* next to "PTZ").
|
|
29094
|
+
*/
|
|
29095
|
+
/** A rectangle in normalized [0,1] coordinates of whatever contains it. */
|
|
29096
|
+
var GridNormalizedRectSchema = object({
|
|
29097
|
+
x: number().min(0).max(1),
|
|
29098
|
+
y: number().min(0).max(1),
|
|
29099
|
+
width: number().gt(0).max(1),
|
|
29100
|
+
height: number().gt(0).max(1)
|
|
29101
|
+
});
|
|
29102
|
+
/**
|
|
29103
|
+
* One source camera, the part of its picture taken, and where that part lands.
|
|
29104
|
+
*
|
|
29105
|
+
* Both rectangles are NORMALIZED (D519): a source camera can change resolution
|
|
29106
|
+
* — a profile switch, a firmware update, a substream that comes back different
|
|
29107
|
+
* — and a stored PIXEL rectangle would quietly start cutting the wrong region,
|
|
29108
|
+
* which is the class of bug nobody files.
|
|
29109
|
+
*/
|
|
29110
|
+
var GridLayoutCellSchema = object({
|
|
29111
|
+
deviceId: number().int().positive(),
|
|
29112
|
+
/** The part of the SOURCE taken, normalized against the source. */
|
|
29113
|
+
source: GridNormalizedRectSchema,
|
|
29114
|
+
/** Where it lands, normalized against the CANVAS. */
|
|
29115
|
+
cell: GridNormalizedRectSchema
|
|
29116
|
+
});
|
|
29117
|
+
/**
|
|
29118
|
+
* Which profiles this grid can actually compose, and why not.
|
|
29119
|
+
*
|
|
29120
|
+
* A grid's `high` composes its sources' `high` and its `low` their `low`, so a
|
|
29121
|
+
* profile is on offer only when EVERY source can serve it. The refusal NAMES
|
|
29122
|
+
* the sources, because "this grid has no low" is not a finding — "615 has no
|
|
29123
|
+
* low" is, and it is the one an operator can act on.
|
|
29124
|
+
*/
|
|
29125
|
+
var GridProfileOfferSchema = object({
|
|
29126
|
+
profile: _enum([
|
|
29127
|
+
"high",
|
|
29128
|
+
"mid",
|
|
29129
|
+
"low"
|
|
29130
|
+
]),
|
|
29131
|
+
offered: boolean(),
|
|
29132
|
+
/** Sources that cannot serve it. Empty when it is offered, or when there are no cells. */
|
|
29133
|
+
missingSources: array(number().int().positive())
|
|
29134
|
+
});
|
|
29135
|
+
var GridLayoutViewSchema = object({
|
|
29136
|
+
/** The persisted grid row this camera was declared from. */
|
|
29137
|
+
instanceId: string(),
|
|
29138
|
+
deviceId: number().int().nonnegative(),
|
|
29139
|
+
name: string(),
|
|
29140
|
+
/** The canvas the operator laid out — this grid's `high`. mid/low are scaled from it. */
|
|
29141
|
+
width: number().int(),
|
|
29142
|
+
height: number().int(),
|
|
29143
|
+
fps: number().int(),
|
|
29144
|
+
cells: array(GridLayoutCellSchema),
|
|
29145
|
+
/** What the catalog will publish, and what it refuses to. Read-only. */
|
|
29146
|
+
profiles: array(GridProfileOfferSchema)
|
|
29147
|
+
});
|
|
29148
|
+
var GridLayoutPatchSchema = object({
|
|
29149
|
+
deviceId: number().int().nonnegative(),
|
|
29150
|
+
name: string().min(1).max(160).optional(),
|
|
29151
|
+
width: number().int().min(160).max(7680).optional(),
|
|
29152
|
+
height: number().int().min(120).max(4320).optional(),
|
|
29153
|
+
fps: number().int().min(1).max(60).optional(),
|
|
29154
|
+
/**
|
|
29155
|
+
* The whole cell list at once. A per-cell patch would need an ordering the
|
|
29156
|
+
* editor does not have, and a half-applied layout is a picture nobody asked
|
|
29157
|
+
* for.
|
|
29158
|
+
*/
|
|
29159
|
+
cells: array(GridLayoutCellSchema).max(16)
|
|
29160
|
+
});
|
|
29161
|
+
DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), GridLayoutViewSchema.nullable(), { auth: "admin" }), method(GridLayoutPatchSchema, GridLayoutViewSchema, {
|
|
29162
|
+
kind: "mutation",
|
|
29163
|
+
auth: "admin"
|
|
29164
|
+
});
|
|
29165
|
+
/**
|
|
29040
29166
|
* Motion-zones share the same MaskShape vocabulary as privacy-mask — the
|
|
29041
29167
|
* on-camera motion-detection mask is a single `grid` region (a row-major
|
|
29042
29168
|
* boolean cell lattice the camera's onboard VMD evaluates). Composing it as
|
|
@@ -31195,6 +31321,26 @@ var PtzHomePresetSchema = object({
|
|
|
31195
31321
|
"none"
|
|
31196
31322
|
])
|
|
31197
31323
|
});
|
|
31324
|
+
/**
|
|
31325
|
+
* The camera's own idle-return behaviour: whether it goes home by itself, and
|
|
31326
|
+
* after how long.
|
|
31327
|
+
*
|
|
31328
|
+
* ONE shape, not two scalars, because on the camera they are ONE fact —
|
|
31329
|
+
* Reolink's guard point carries `benable` and `timeout` in the same element,
|
|
31330
|
+
* written by the same command. Reading them apart means two round-trips that
|
|
31331
|
+
* can disagree.
|
|
31332
|
+
*
|
|
31333
|
+
* `enabled` and `seconds` are INDEPENDENT: a camera can hold a 68 s delay with
|
|
31334
|
+
* the behaviour switched off, which is exactly what the vendor app leaves when
|
|
31335
|
+
* you turn the guard point off without clearing it. The first version of this
|
|
31336
|
+
* cap reported only the delay, so that state was invisible — a camera could be
|
|
31337
|
+
* configured to return after 68 seconds with no way to say whether it should
|
|
31338
|
+
* return at all.
|
|
31339
|
+
*/
|
|
31340
|
+
var PtzHomeReturnSchema = object({
|
|
31341
|
+
enabled: boolean(),
|
|
31342
|
+
seconds: number().int()
|
|
31343
|
+
});
|
|
31198
31344
|
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({
|
|
31199
31345
|
deviceId: number(),
|
|
31200
31346
|
presetId: string()
|
|
@@ -31220,8 +31366,9 @@ DeviceType.Camera, method(PtzMoveCommandSchema.extend({ deviceId: number() }), _
|
|
|
31220
31366
|
}), method(object({ deviceId: number() }), _void(), {
|
|
31221
31367
|
kind: "mutation",
|
|
31222
31368
|
auth: "admin"
|
|
31223
|
-
}), method(object({ deviceId: number() }),
|
|
31369
|
+
}), method(object({ deviceId: number() }), PtzHomeReturnSchema.nullable()), method(object({
|
|
31224
31370
|
deviceId: number(),
|
|
31371
|
+
enabled: boolean(),
|
|
31225
31372
|
seconds: number().int().min(0).max(3600)
|
|
31226
31373
|
}), _void(), {
|
|
31227
31374
|
kind: "mutation",
|
|
@@ -36324,6 +36471,18 @@ Object.freeze({
|
|
|
36324
36471
|
addonId: null,
|
|
36325
36472
|
access: "view"
|
|
36326
36473
|
},
|
|
36474
|
+
"cameraGridLayout.getLayout": {
|
|
36475
|
+
capName: "camera-grid-layout",
|
|
36476
|
+
capScope: "device",
|
|
36477
|
+
addonId: null,
|
|
36478
|
+
access: "view"
|
|
36479
|
+
},
|
|
36480
|
+
"cameraGridLayout.saveLayout": {
|
|
36481
|
+
capName: "camera-grid-layout",
|
|
36482
|
+
capScope: "device",
|
|
36483
|
+
addonId: null,
|
|
36484
|
+
access: "create"
|
|
36485
|
+
},
|
|
36327
36486
|
"cameraStreams.getBrokerStreams": {
|
|
36328
36487
|
capName: "camera-streams",
|
|
36329
36488
|
capScope: "device",
|
|
@@ -40074,7 +40233,7 @@ Object.freeze({
|
|
|
40074
40233
|
addonId: null,
|
|
40075
40234
|
access: "view"
|
|
40076
40235
|
},
|
|
40077
|
-
"ptz.
|
|
40236
|
+
"ptz.getHomeReturn": {
|
|
40078
40237
|
capName: "ptz",
|
|
40079
40238
|
capScope: "device",
|
|
40080
40239
|
addonId: null,
|
|
@@ -40134,7 +40293,7 @@ Object.freeze({
|
|
|
40134
40293
|
addonId: null,
|
|
40135
40294
|
access: "create"
|
|
40136
40295
|
},
|
|
40137
|
-
"ptz.
|
|
40296
|
+
"ptz.setHomeReturn": {
|
|
40138
40297
|
capName: "ptz",
|
|
40139
40298
|
capScope: "device",
|
|
40140
40299
|
addonId: null,
|
|
@@ -42023,6 +42182,21 @@ Object.freeze({
|
|
|
42023
42182
|
form: "single",
|
|
42024
42183
|
optional: false
|
|
42025
42184
|
}],
|
|
42185
|
+
"cameraGridLayout.getLayout": [{
|
|
42186
|
+
name: "deviceId",
|
|
42187
|
+
form: "single",
|
|
42188
|
+
optional: false
|
|
42189
|
+
}],
|
|
42190
|
+
"cameraGridLayout.saveLayout": [{
|
|
42191
|
+
name: "cells",
|
|
42192
|
+
form: "object-array",
|
|
42193
|
+
optional: false,
|
|
42194
|
+
itemField: "deviceId"
|
|
42195
|
+
}, {
|
|
42196
|
+
name: "deviceId",
|
|
42197
|
+
form: "single",
|
|
42198
|
+
optional: false
|
|
42199
|
+
}],
|
|
42026
42200
|
"cameraStreams.getBrokerStreams": [{
|
|
42027
42201
|
name: "deviceId",
|
|
42028
42202
|
form: "single",
|
|
@@ -43323,7 +43497,7 @@ Object.freeze({
|
|
|
43323
43497
|
form: "single",
|
|
43324
43498
|
optional: false
|
|
43325
43499
|
}],
|
|
43326
|
-
"ptz.
|
|
43500
|
+
"ptz.getHomeReturn": [{
|
|
43327
43501
|
name: "deviceId",
|
|
43328
43502
|
form: "single",
|
|
43329
43503
|
optional: false
|
|
@@ -43373,7 +43547,7 @@ Object.freeze({
|
|
|
43373
43547
|
form: "single",
|
|
43374
43548
|
optional: false
|
|
43375
43549
|
}],
|
|
43376
|
-
"ptz.
|
|
43550
|
+
"ptz.setHomeReturn": [{
|
|
43377
43551
|
name: "deviceId",
|
|
43378
43552
|
form: "single",
|
|
43379
43553
|
optional: false
|
package/dist/addon.mjs
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).
|
|
@@ -11926,6 +11926,24 @@ var GetStreamWithCodecInputSchema = object({
|
|
|
11926
11926
|
});
|
|
11927
11927
|
var RtpSourceSchema = object({
|
|
11928
11928
|
url: string(),
|
|
11929
|
+
/**
|
|
11930
|
+
* The SENTRY counterpart of {@link url} — the dial that asks for the stream
|
|
11931
|
+
* WITHOUT asking for the camera — or `null` when this camera offers none.
|
|
11932
|
+
*
|
|
11933
|
+
* The broker answers it because the broker is the only thing that can:
|
|
11934
|
+
* eligibility is `sentryEligible` (a BATTERY camera that DECLARES the signals
|
|
11935
|
+
* cap), asked of facts only the broker holds. A consumer re-deriving it from
|
|
11936
|
+
* cap bindings would be a second authority, and two authorities on the same
|
|
11937
|
+
* question is how a composite camera ends up dialling a sleeping camera
|
|
11938
|
+
* because its own copy of the rule was a release behind.
|
|
11939
|
+
*
|
|
11940
|
+
* `null` is a real answer and is never a live url in disguise: a consumer
|
|
11941
|
+
* that silently fell back to {@link url} would perform exactly the wake this
|
|
11942
|
+
* field exists to prevent. Only a PASSTHROUGH acquisition can offer one — a
|
|
11943
|
+
* transcode hands back an egress the broker is feeding itself, which has no
|
|
11944
|
+
* sentry counterpart.
|
|
11945
|
+
*/
|
|
11946
|
+
sentryUrl: string().nullable().optional(),
|
|
11929
11947
|
videoCodec: _enum(["H264", "H265"]),
|
|
11930
11948
|
audioCodec: string(),
|
|
11931
11949
|
resolution: object({
|
|
@@ -29014,6 +29032,114 @@ var motionTriggerCapability = {
|
|
|
29014
29032
|
durability: "session"
|
|
29015
29033
|
};
|
|
29016
29034
|
/**
|
|
29035
|
+
* camera-grid-layout — the geometry of a COMPOSITE camera, on the camera's own
|
|
29036
|
+
* page.
|
|
29037
|
+
*
|
|
29038
|
+
* ## Why this is a capability and not an addon settings schema
|
|
29039
|
+
*
|
|
29040
|
+
* It was one, and it did not render. The addon declared the editor as a
|
|
29041
|
+
* `type: 'widget'` field inside its own `deviceSettingsSchema()`; the hub
|
|
29042
|
+
* returned that section correctly and `ConfigFormField` renders `type:'widget'`
|
|
29043
|
+
* perfectly well — and nothing ever asked camera-grid for it. The Cluster →
|
|
29044
|
+
* Pipeline → Device Overrides page interrogates a HAND-WRITTEN list of four
|
|
29045
|
+
* addons (`PIPELINE_CLUSTER_DEVICE_ADDONS`), whose own comment says an addon
|
|
29046
|
+
* not on it "falls off silently".
|
|
29047
|
+
*
|
|
29048
|
+
* Adding a fifth name to that list would have been the wrong fix twice over:
|
|
29049
|
+
* that page is per-camera DETECTION tuning, and a grid's geometry belongs
|
|
29050
|
+
* beside PTZ and motion zones on the camera itself — which is exactly where the
|
|
29051
|
+
* framework already puts a widget, when the widget is declared on a CAPABILITY.
|
|
29052
|
+
* `deviceConfig.ui` is the mechanism (`motion-zones`, `ptz`, `ptz-autotrack`
|
|
29053
|
+
* all use it): the framework emits the structural section and the widget
|
|
29054
|
+
* self-persists through the cap's own mutations.
|
|
29055
|
+
*
|
|
29056
|
+
* ## Why one addon may implement it
|
|
29057
|
+
*
|
|
29058
|
+
* It is a device-scoped NATIVE cap, registered by the grid camera device
|
|
29059
|
+
* itself. Nothing else declares a composite camera, so nothing else has a
|
|
29060
|
+
* layout — and the device-scoped route means the widget asks THE camera, not
|
|
29061
|
+
* "the camera-grid addon", which is what let the old custom-action pair be
|
|
29062
|
+
* reached only by a caller that already knew the addon id.
|
|
29063
|
+
*
|
|
29064
|
+
* ## The tab
|
|
29065
|
+
*
|
|
29066
|
+
* `streaming`, not a top-tab of its own. A grid's geometry IS what its stream
|
|
29067
|
+
* is, so the Streaming tab is where it belongs; a `grid` top-tab would need an
|
|
29068
|
+
* entry in `WELL_KNOWN_TAB_MAP` or the device page renders the raw id as the
|
|
29069
|
+
* label (measured on the robot camera, 2026-09-06 — a tab called "navigation"
|
|
29070
|
+
* next to "PTZ").
|
|
29071
|
+
*/
|
|
29072
|
+
/** A rectangle in normalized [0,1] coordinates of whatever contains it. */
|
|
29073
|
+
var GridNormalizedRectSchema = object({
|
|
29074
|
+
x: number().min(0).max(1),
|
|
29075
|
+
y: number().min(0).max(1),
|
|
29076
|
+
width: number().gt(0).max(1),
|
|
29077
|
+
height: number().gt(0).max(1)
|
|
29078
|
+
});
|
|
29079
|
+
/**
|
|
29080
|
+
* One source camera, the part of its picture taken, and where that part lands.
|
|
29081
|
+
*
|
|
29082
|
+
* Both rectangles are NORMALIZED (D519): a source camera can change resolution
|
|
29083
|
+
* — a profile switch, a firmware update, a substream that comes back different
|
|
29084
|
+
* — and a stored PIXEL rectangle would quietly start cutting the wrong region,
|
|
29085
|
+
* which is the class of bug nobody files.
|
|
29086
|
+
*/
|
|
29087
|
+
var GridLayoutCellSchema = object({
|
|
29088
|
+
deviceId: number().int().positive(),
|
|
29089
|
+
/** The part of the SOURCE taken, normalized against the source. */
|
|
29090
|
+
source: GridNormalizedRectSchema,
|
|
29091
|
+
/** Where it lands, normalized against the CANVAS. */
|
|
29092
|
+
cell: GridNormalizedRectSchema
|
|
29093
|
+
});
|
|
29094
|
+
/**
|
|
29095
|
+
* Which profiles this grid can actually compose, and why not.
|
|
29096
|
+
*
|
|
29097
|
+
* A grid's `high` composes its sources' `high` and its `low` their `low`, so a
|
|
29098
|
+
* profile is on offer only when EVERY source can serve it. The refusal NAMES
|
|
29099
|
+
* the sources, because "this grid has no low" is not a finding — "615 has no
|
|
29100
|
+
* low" is, and it is the one an operator can act on.
|
|
29101
|
+
*/
|
|
29102
|
+
var GridProfileOfferSchema = object({
|
|
29103
|
+
profile: _enum([
|
|
29104
|
+
"high",
|
|
29105
|
+
"mid",
|
|
29106
|
+
"low"
|
|
29107
|
+
]),
|
|
29108
|
+
offered: boolean(),
|
|
29109
|
+
/** Sources that cannot serve it. Empty when it is offered, or when there are no cells. */
|
|
29110
|
+
missingSources: array(number().int().positive())
|
|
29111
|
+
});
|
|
29112
|
+
var GridLayoutViewSchema = object({
|
|
29113
|
+
/** The persisted grid row this camera was declared from. */
|
|
29114
|
+
instanceId: string(),
|
|
29115
|
+
deviceId: number().int().nonnegative(),
|
|
29116
|
+
name: string(),
|
|
29117
|
+
/** The canvas the operator laid out — this grid's `high`. mid/low are scaled from it. */
|
|
29118
|
+
width: number().int(),
|
|
29119
|
+
height: number().int(),
|
|
29120
|
+
fps: number().int(),
|
|
29121
|
+
cells: array(GridLayoutCellSchema),
|
|
29122
|
+
/** What the catalog will publish, and what it refuses to. Read-only. */
|
|
29123
|
+
profiles: array(GridProfileOfferSchema)
|
|
29124
|
+
});
|
|
29125
|
+
var GridLayoutPatchSchema = object({
|
|
29126
|
+
deviceId: number().int().nonnegative(),
|
|
29127
|
+
name: string().min(1).max(160).optional(),
|
|
29128
|
+
width: number().int().min(160).max(7680).optional(),
|
|
29129
|
+
height: number().int().min(120).max(4320).optional(),
|
|
29130
|
+
fps: number().int().min(1).max(60).optional(),
|
|
29131
|
+
/**
|
|
29132
|
+
* The whole cell list at once. A per-cell patch would need an ordering the
|
|
29133
|
+
* editor does not have, and a half-applied layout is a picture nobody asked
|
|
29134
|
+
* for.
|
|
29135
|
+
*/
|
|
29136
|
+
cells: array(GridLayoutCellSchema).max(16)
|
|
29137
|
+
});
|
|
29138
|
+
DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), GridLayoutViewSchema.nullable(), { auth: "admin" }), method(GridLayoutPatchSchema, GridLayoutViewSchema, {
|
|
29139
|
+
kind: "mutation",
|
|
29140
|
+
auth: "admin"
|
|
29141
|
+
});
|
|
29142
|
+
/**
|
|
29017
29143
|
* Motion-zones share the same MaskShape vocabulary as privacy-mask — the
|
|
29018
29144
|
* on-camera motion-detection mask is a single `grid` region (a row-major
|
|
29019
29145
|
* boolean cell lattice the camera's onboard VMD evaluates). Composing it as
|
|
@@ -31172,6 +31298,26 @@ var PtzHomePresetSchema = object({
|
|
|
31172
31298
|
"none"
|
|
31173
31299
|
])
|
|
31174
31300
|
});
|
|
31301
|
+
/**
|
|
31302
|
+
* The camera's own idle-return behaviour: whether it goes home by itself, and
|
|
31303
|
+
* after how long.
|
|
31304
|
+
*
|
|
31305
|
+
* ONE shape, not two scalars, because on the camera they are ONE fact —
|
|
31306
|
+
* Reolink's guard point carries `benable` and `timeout` in the same element,
|
|
31307
|
+
* written by the same command. Reading them apart means two round-trips that
|
|
31308
|
+
* can disagree.
|
|
31309
|
+
*
|
|
31310
|
+
* `enabled` and `seconds` are INDEPENDENT: a camera can hold a 68 s delay with
|
|
31311
|
+
* the behaviour switched off, which is exactly what the vendor app leaves when
|
|
31312
|
+
* you turn the guard point off without clearing it. The first version of this
|
|
31313
|
+
* cap reported only the delay, so that state was invisible — a camera could be
|
|
31314
|
+
* configured to return after 68 seconds with no way to say whether it should
|
|
31315
|
+
* return at all.
|
|
31316
|
+
*/
|
|
31317
|
+
var PtzHomeReturnSchema = object({
|
|
31318
|
+
enabled: boolean(),
|
|
31319
|
+
seconds: number().int()
|
|
31320
|
+
});
|
|
31175
31321
|
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({
|
|
31176
31322
|
deviceId: number(),
|
|
31177
31323
|
presetId: string()
|
|
@@ -31197,8 +31343,9 @@ DeviceType.Camera, method(PtzMoveCommandSchema.extend({ deviceId: number() }), _
|
|
|
31197
31343
|
}), method(object({ deviceId: number() }), _void(), {
|
|
31198
31344
|
kind: "mutation",
|
|
31199
31345
|
auth: "admin"
|
|
31200
|
-
}), method(object({ deviceId: number() }),
|
|
31346
|
+
}), method(object({ deviceId: number() }), PtzHomeReturnSchema.nullable()), method(object({
|
|
31201
31347
|
deviceId: number(),
|
|
31348
|
+
enabled: boolean(),
|
|
31202
31349
|
seconds: number().int().min(0).max(3600)
|
|
31203
31350
|
}), _void(), {
|
|
31204
31351
|
kind: "mutation",
|
|
@@ -36301,6 +36448,18 @@ Object.freeze({
|
|
|
36301
36448
|
addonId: null,
|
|
36302
36449
|
access: "view"
|
|
36303
36450
|
},
|
|
36451
|
+
"cameraGridLayout.getLayout": {
|
|
36452
|
+
capName: "camera-grid-layout",
|
|
36453
|
+
capScope: "device",
|
|
36454
|
+
addonId: null,
|
|
36455
|
+
access: "view"
|
|
36456
|
+
},
|
|
36457
|
+
"cameraGridLayout.saveLayout": {
|
|
36458
|
+
capName: "camera-grid-layout",
|
|
36459
|
+
capScope: "device",
|
|
36460
|
+
addonId: null,
|
|
36461
|
+
access: "create"
|
|
36462
|
+
},
|
|
36304
36463
|
"cameraStreams.getBrokerStreams": {
|
|
36305
36464
|
capName: "camera-streams",
|
|
36306
36465
|
capScope: "device",
|
|
@@ -40051,7 +40210,7 @@ Object.freeze({
|
|
|
40051
40210
|
addonId: null,
|
|
40052
40211
|
access: "view"
|
|
40053
40212
|
},
|
|
40054
|
-
"ptz.
|
|
40213
|
+
"ptz.getHomeReturn": {
|
|
40055
40214
|
capName: "ptz",
|
|
40056
40215
|
capScope: "device",
|
|
40057
40216
|
addonId: null,
|
|
@@ -40111,7 +40270,7 @@ Object.freeze({
|
|
|
40111
40270
|
addonId: null,
|
|
40112
40271
|
access: "create"
|
|
40113
40272
|
},
|
|
40114
|
-
"ptz.
|
|
40273
|
+
"ptz.setHomeReturn": {
|
|
40115
40274
|
capName: "ptz",
|
|
40116
40275
|
capScope: "device",
|
|
40117
40276
|
addonId: null,
|
|
@@ -42000,6 +42159,21 @@ Object.freeze({
|
|
|
42000
42159
|
form: "single",
|
|
42001
42160
|
optional: false
|
|
42002
42161
|
}],
|
|
42162
|
+
"cameraGridLayout.getLayout": [{
|
|
42163
|
+
name: "deviceId",
|
|
42164
|
+
form: "single",
|
|
42165
|
+
optional: false
|
|
42166
|
+
}],
|
|
42167
|
+
"cameraGridLayout.saveLayout": [{
|
|
42168
|
+
name: "cells",
|
|
42169
|
+
form: "object-array",
|
|
42170
|
+
optional: false,
|
|
42171
|
+
itemField: "deviceId"
|
|
42172
|
+
}, {
|
|
42173
|
+
name: "deviceId",
|
|
42174
|
+
form: "single",
|
|
42175
|
+
optional: false
|
|
42176
|
+
}],
|
|
42003
42177
|
"cameraStreams.getBrokerStreams": [{
|
|
42004
42178
|
name: "deviceId",
|
|
42005
42179
|
form: "single",
|
|
@@ -43300,7 +43474,7 @@ Object.freeze({
|
|
|
43300
43474
|
form: "single",
|
|
43301
43475
|
optional: false
|
|
43302
43476
|
}],
|
|
43303
|
-
"ptz.
|
|
43477
|
+
"ptz.getHomeReturn": [{
|
|
43304
43478
|
name: "deviceId",
|
|
43305
43479
|
form: "single",
|
|
43306
43480
|
optional: false
|
|
@@ -43350,7 +43524,7 @@ Object.freeze({
|
|
|
43350
43524
|
form: "single",
|
|
43351
43525
|
optional: false
|
|
43352
43526
|
}],
|
|
43353
|
-
"ptz.
|
|
43527
|
+
"ptz.setHomeReturn": [{
|
|
43354
43528
|
name: "deviceId",
|
|
43355
43529
|
form: "single",
|
|
43356
43530
|
optional: false
|