@camstack/addon-decoder-nodeav 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/index.js +180 -6
- package/dist/index.mjs +180 -6
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5364,7 +5364,7 @@ var ZodIssueCode = {
|
|
|
5364
5364
|
var ZodFirstPartyTypeKind;
|
|
5365
5365
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5366
5366
|
//#endregion
|
|
5367
|
-
//#region ../types/dist/sleep-
|
|
5367
|
+
//#region ../types/dist/sleep-Bs3xPtSh.mjs
|
|
5368
5368
|
/**
|
|
5369
5369
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5370
5370
|
* window to float samples (D455).
|
|
@@ -11858,6 +11858,24 @@ var GetStreamWithCodecInputSchema = object({
|
|
|
11858
11858
|
});
|
|
11859
11859
|
var RtpSourceSchema = object({
|
|
11860
11860
|
url: string(),
|
|
11861
|
+
/**
|
|
11862
|
+
* The SENTRY counterpart of {@link url} — the dial that asks for the stream
|
|
11863
|
+
* WITHOUT asking for the camera — or `null` when this camera offers none.
|
|
11864
|
+
*
|
|
11865
|
+
* The broker answers it because the broker is the only thing that can:
|
|
11866
|
+
* eligibility is `sentryEligible` (a BATTERY camera that DECLARES the signals
|
|
11867
|
+
* cap), asked of facts only the broker holds. A consumer re-deriving it from
|
|
11868
|
+
* cap bindings would be a second authority, and two authorities on the same
|
|
11869
|
+
* question is how a composite camera ends up dialling a sleeping camera
|
|
11870
|
+
* because its own copy of the rule was a release behind.
|
|
11871
|
+
*
|
|
11872
|
+
* `null` is a real answer and is never a live url in disguise: a consumer
|
|
11873
|
+
* that silently fell back to {@link url} would perform exactly the wake this
|
|
11874
|
+
* field exists to prevent. Only a PASSTHROUGH acquisition can offer one — a
|
|
11875
|
+
* transcode hands back an egress the broker is feeding itself, which has no
|
|
11876
|
+
* sentry counterpart.
|
|
11877
|
+
*/
|
|
11878
|
+
sentryUrl: string().nullable().optional(),
|
|
11861
11879
|
videoCodec: _enum(["H264", "H265"]),
|
|
11862
11880
|
audioCodec: string(),
|
|
11863
11881
|
resolution: object({
|
|
@@ -27293,6 +27311,114 @@ DeviceType.Light, DeviceType.Siren, DeviceType.Switch, method(object({
|
|
|
27293
27311
|
lastChangedAt: number()
|
|
27294
27312
|
});
|
|
27295
27313
|
/**
|
|
27314
|
+
* camera-grid-layout — the geometry of a COMPOSITE camera, on the camera's own
|
|
27315
|
+
* page.
|
|
27316
|
+
*
|
|
27317
|
+
* ## Why this is a capability and not an addon settings schema
|
|
27318
|
+
*
|
|
27319
|
+
* It was one, and it did not render. The addon declared the editor as a
|
|
27320
|
+
* `type: 'widget'` field inside its own `deviceSettingsSchema()`; the hub
|
|
27321
|
+
* returned that section correctly and `ConfigFormField` renders `type:'widget'`
|
|
27322
|
+
* perfectly well — and nothing ever asked camera-grid for it. The Cluster →
|
|
27323
|
+
* Pipeline → Device Overrides page interrogates a HAND-WRITTEN list of four
|
|
27324
|
+
* addons (`PIPELINE_CLUSTER_DEVICE_ADDONS`), whose own comment says an addon
|
|
27325
|
+
* not on it "falls off silently".
|
|
27326
|
+
*
|
|
27327
|
+
* Adding a fifth name to that list would have been the wrong fix twice over:
|
|
27328
|
+
* that page is per-camera DETECTION tuning, and a grid's geometry belongs
|
|
27329
|
+
* beside PTZ and motion zones on the camera itself — which is exactly where the
|
|
27330
|
+
* framework already puts a widget, when the widget is declared on a CAPABILITY.
|
|
27331
|
+
* `deviceConfig.ui` is the mechanism (`motion-zones`, `ptz`, `ptz-autotrack`
|
|
27332
|
+
* all use it): the framework emits the structural section and the widget
|
|
27333
|
+
* self-persists through the cap's own mutations.
|
|
27334
|
+
*
|
|
27335
|
+
* ## Why one addon may implement it
|
|
27336
|
+
*
|
|
27337
|
+
* It is a device-scoped NATIVE cap, registered by the grid camera device
|
|
27338
|
+
* itself. Nothing else declares a composite camera, so nothing else has a
|
|
27339
|
+
* layout — and the device-scoped route means the widget asks THE camera, not
|
|
27340
|
+
* "the camera-grid addon", which is what let the old custom-action pair be
|
|
27341
|
+
* reached only by a caller that already knew the addon id.
|
|
27342
|
+
*
|
|
27343
|
+
* ## The tab
|
|
27344
|
+
*
|
|
27345
|
+
* `streaming`, not a top-tab of its own. A grid's geometry IS what its stream
|
|
27346
|
+
* is, so the Streaming tab is where it belongs; a `grid` top-tab would need an
|
|
27347
|
+
* entry in `WELL_KNOWN_TAB_MAP` or the device page renders the raw id as the
|
|
27348
|
+
* label (measured on the robot camera, 2026-09-06 — a tab called "navigation"
|
|
27349
|
+
* next to "PTZ").
|
|
27350
|
+
*/
|
|
27351
|
+
/** A rectangle in normalized [0,1] coordinates of whatever contains it. */
|
|
27352
|
+
var GridNormalizedRectSchema = object({
|
|
27353
|
+
x: number().min(0).max(1),
|
|
27354
|
+
y: number().min(0).max(1),
|
|
27355
|
+
width: number().gt(0).max(1),
|
|
27356
|
+
height: number().gt(0).max(1)
|
|
27357
|
+
});
|
|
27358
|
+
/**
|
|
27359
|
+
* One source camera, the part of its picture taken, and where that part lands.
|
|
27360
|
+
*
|
|
27361
|
+
* Both rectangles are NORMALIZED (D519): a source camera can change resolution
|
|
27362
|
+
* — a profile switch, a firmware update, a substream that comes back different
|
|
27363
|
+
* — and a stored PIXEL rectangle would quietly start cutting the wrong region,
|
|
27364
|
+
* which is the class of bug nobody files.
|
|
27365
|
+
*/
|
|
27366
|
+
var GridLayoutCellSchema = object({
|
|
27367
|
+
deviceId: number().int().positive(),
|
|
27368
|
+
/** The part of the SOURCE taken, normalized against the source. */
|
|
27369
|
+
source: GridNormalizedRectSchema,
|
|
27370
|
+
/** Where it lands, normalized against the CANVAS. */
|
|
27371
|
+
cell: GridNormalizedRectSchema
|
|
27372
|
+
});
|
|
27373
|
+
/**
|
|
27374
|
+
* Which profiles this grid can actually compose, and why not.
|
|
27375
|
+
*
|
|
27376
|
+
* A grid's `high` composes its sources' `high` and its `low` their `low`, so a
|
|
27377
|
+
* profile is on offer only when EVERY source can serve it. The refusal NAMES
|
|
27378
|
+
* the sources, because "this grid has no low" is not a finding — "615 has no
|
|
27379
|
+
* low" is, and it is the one an operator can act on.
|
|
27380
|
+
*/
|
|
27381
|
+
var GridProfileOfferSchema = object({
|
|
27382
|
+
profile: _enum([
|
|
27383
|
+
"high",
|
|
27384
|
+
"mid",
|
|
27385
|
+
"low"
|
|
27386
|
+
]),
|
|
27387
|
+
offered: boolean(),
|
|
27388
|
+
/** Sources that cannot serve it. Empty when it is offered, or when there are no cells. */
|
|
27389
|
+
missingSources: array(number().int().positive())
|
|
27390
|
+
});
|
|
27391
|
+
var GridLayoutViewSchema = object({
|
|
27392
|
+
/** The persisted grid row this camera was declared from. */
|
|
27393
|
+
instanceId: string(),
|
|
27394
|
+
deviceId: number().int().nonnegative(),
|
|
27395
|
+
name: string(),
|
|
27396
|
+
/** The canvas the operator laid out — this grid's `high`. mid/low are scaled from it. */
|
|
27397
|
+
width: number().int(),
|
|
27398
|
+
height: number().int(),
|
|
27399
|
+
fps: number().int(),
|
|
27400
|
+
cells: array(GridLayoutCellSchema),
|
|
27401
|
+
/** What the catalog will publish, and what it refuses to. Read-only. */
|
|
27402
|
+
profiles: array(GridProfileOfferSchema)
|
|
27403
|
+
});
|
|
27404
|
+
var GridLayoutPatchSchema = object({
|
|
27405
|
+
deviceId: number().int().nonnegative(),
|
|
27406
|
+
name: string().min(1).max(160).optional(),
|
|
27407
|
+
width: number().int().min(160).max(7680).optional(),
|
|
27408
|
+
height: number().int().min(120).max(4320).optional(),
|
|
27409
|
+
fps: number().int().min(1).max(60).optional(),
|
|
27410
|
+
/**
|
|
27411
|
+
* The whole cell list at once. A per-cell patch would need an ordering the
|
|
27412
|
+
* editor does not have, and a half-applied layout is a picture nobody asked
|
|
27413
|
+
* for.
|
|
27414
|
+
*/
|
|
27415
|
+
cells: array(GridLayoutCellSchema).max(16)
|
|
27416
|
+
});
|
|
27417
|
+
DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), GridLayoutViewSchema.nullable(), { auth: "admin" }), method(GridLayoutPatchSchema, GridLayoutViewSchema, {
|
|
27418
|
+
kind: "mutation",
|
|
27419
|
+
auth: "admin"
|
|
27420
|
+
});
|
|
27421
|
+
/**
|
|
27296
27422
|
* Motion-zones share the same MaskShape vocabulary as privacy-mask — the
|
|
27297
27423
|
* on-camera motion-detection mask is a single `grid` region (a row-major
|
|
27298
27424
|
* boolean cell lattice the camera's onboard VMD evaluates). Composing it as
|
|
@@ -28992,6 +29118,26 @@ var PtzHomePresetSchema = object({
|
|
|
28992
29118
|
"none"
|
|
28993
29119
|
])
|
|
28994
29120
|
});
|
|
29121
|
+
/**
|
|
29122
|
+
* The camera's own idle-return behaviour: whether it goes home by itself, and
|
|
29123
|
+
* after how long.
|
|
29124
|
+
*
|
|
29125
|
+
* ONE shape, not two scalars, because on the camera they are ONE fact —
|
|
29126
|
+
* Reolink's guard point carries `benable` and `timeout` in the same element,
|
|
29127
|
+
* written by the same command. Reading them apart means two round-trips that
|
|
29128
|
+
* can disagree.
|
|
29129
|
+
*
|
|
29130
|
+
* `enabled` and `seconds` are INDEPENDENT: a camera can hold a 68 s delay with
|
|
29131
|
+
* the behaviour switched off, which is exactly what the vendor app leaves when
|
|
29132
|
+
* you turn the guard point off without clearing it. The first version of this
|
|
29133
|
+
* cap reported only the delay, so that state was invisible — a camera could be
|
|
29134
|
+
* configured to return after 68 seconds with no way to say whether it should
|
|
29135
|
+
* return at all.
|
|
29136
|
+
*/
|
|
29137
|
+
var PtzHomeReturnSchema = object({
|
|
29138
|
+
enabled: boolean(),
|
|
29139
|
+
seconds: number().int()
|
|
29140
|
+
});
|
|
28995
29141
|
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({
|
|
28996
29142
|
deviceId: number(),
|
|
28997
29143
|
presetId: string()
|
|
@@ -29017,8 +29163,9 @@ DeviceType.Camera, method(PtzMoveCommandSchema.extend({ deviceId: number() }), _
|
|
|
29017
29163
|
}), method(object({ deviceId: number() }), _void(), {
|
|
29018
29164
|
kind: "mutation",
|
|
29019
29165
|
auth: "admin"
|
|
29020
|
-
}), method(object({ deviceId: number() }),
|
|
29166
|
+
}), method(object({ deviceId: number() }), PtzHomeReturnSchema.nullable()), method(object({
|
|
29021
29167
|
deviceId: number(),
|
|
29168
|
+
enabled: boolean(),
|
|
29022
29169
|
seconds: number().int().min(0).max(3600)
|
|
29023
29170
|
}), _void(), {
|
|
29024
29171
|
kind: "mutation",
|
|
@@ -32300,6 +32447,18 @@ Object.freeze({
|
|
|
32300
32447
|
addonId: null,
|
|
32301
32448
|
access: "view"
|
|
32302
32449
|
},
|
|
32450
|
+
"cameraGridLayout.getLayout": {
|
|
32451
|
+
capName: "camera-grid-layout",
|
|
32452
|
+
capScope: "device",
|
|
32453
|
+
addonId: null,
|
|
32454
|
+
access: "view"
|
|
32455
|
+
},
|
|
32456
|
+
"cameraGridLayout.saveLayout": {
|
|
32457
|
+
capName: "camera-grid-layout",
|
|
32458
|
+
capScope: "device",
|
|
32459
|
+
addonId: null,
|
|
32460
|
+
access: "create"
|
|
32461
|
+
},
|
|
32303
32462
|
"cameraStreams.getBrokerStreams": {
|
|
32304
32463
|
capName: "camera-streams",
|
|
32305
32464
|
capScope: "device",
|
|
@@ -36050,7 +36209,7 @@ Object.freeze({
|
|
|
36050
36209
|
addonId: null,
|
|
36051
36210
|
access: "view"
|
|
36052
36211
|
},
|
|
36053
|
-
"ptz.
|
|
36212
|
+
"ptz.getHomeReturn": {
|
|
36054
36213
|
capName: "ptz",
|
|
36055
36214
|
capScope: "device",
|
|
36056
36215
|
addonId: null,
|
|
@@ -36110,7 +36269,7 @@ Object.freeze({
|
|
|
36110
36269
|
addonId: null,
|
|
36111
36270
|
access: "create"
|
|
36112
36271
|
},
|
|
36113
|
-
"ptz.
|
|
36272
|
+
"ptz.setHomeReturn": {
|
|
36114
36273
|
capName: "ptz",
|
|
36115
36274
|
capScope: "device",
|
|
36116
36275
|
addonId: null,
|
|
@@ -37999,6 +38158,21 @@ Object.freeze({
|
|
|
37999
38158
|
form: "single",
|
|
38000
38159
|
optional: false
|
|
38001
38160
|
}],
|
|
38161
|
+
"cameraGridLayout.getLayout": [{
|
|
38162
|
+
name: "deviceId",
|
|
38163
|
+
form: "single",
|
|
38164
|
+
optional: false
|
|
38165
|
+
}],
|
|
38166
|
+
"cameraGridLayout.saveLayout": [{
|
|
38167
|
+
name: "cells",
|
|
38168
|
+
form: "object-array",
|
|
38169
|
+
optional: false,
|
|
38170
|
+
itemField: "deviceId"
|
|
38171
|
+
}, {
|
|
38172
|
+
name: "deviceId",
|
|
38173
|
+
form: "single",
|
|
38174
|
+
optional: false
|
|
38175
|
+
}],
|
|
38002
38176
|
"cameraStreams.getBrokerStreams": [{
|
|
38003
38177
|
name: "deviceId",
|
|
38004
38178
|
form: "single",
|
|
@@ -39299,7 +39473,7 @@ Object.freeze({
|
|
|
39299
39473
|
form: "single",
|
|
39300
39474
|
optional: false
|
|
39301
39475
|
}],
|
|
39302
|
-
"ptz.
|
|
39476
|
+
"ptz.getHomeReturn": [{
|
|
39303
39477
|
name: "deviceId",
|
|
39304
39478
|
form: "single",
|
|
39305
39479
|
optional: false
|
|
@@ -39349,7 +39523,7 @@ Object.freeze({
|
|
|
39349
39523
|
form: "single",
|
|
39350
39524
|
optional: false
|
|
39351
39525
|
}],
|
|
39352
|
-
"ptz.
|
|
39526
|
+
"ptz.setHomeReturn": [{
|
|
39353
39527
|
name: "deviceId",
|
|
39354
39528
|
form: "single",
|
|
39355
39529
|
optional: false
|
package/dist/index.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).
|
|
@@ -11854,6 +11854,24 @@ var GetStreamWithCodecInputSchema = object({
|
|
|
11854
11854
|
});
|
|
11855
11855
|
var RtpSourceSchema = object({
|
|
11856
11856
|
url: string(),
|
|
11857
|
+
/**
|
|
11858
|
+
* The SENTRY counterpart of {@link url} — the dial that asks for the stream
|
|
11859
|
+
* WITHOUT asking for the camera — or `null` when this camera offers none.
|
|
11860
|
+
*
|
|
11861
|
+
* The broker answers it because the broker is the only thing that can:
|
|
11862
|
+
* eligibility is `sentryEligible` (a BATTERY camera that DECLARES the signals
|
|
11863
|
+
* cap), asked of facts only the broker holds. A consumer re-deriving it from
|
|
11864
|
+
* cap bindings would be a second authority, and two authorities on the same
|
|
11865
|
+
* question is how a composite camera ends up dialling a sleeping camera
|
|
11866
|
+
* because its own copy of the rule was a release behind.
|
|
11867
|
+
*
|
|
11868
|
+
* `null` is a real answer and is never a live url in disguise: a consumer
|
|
11869
|
+
* that silently fell back to {@link url} would perform exactly the wake this
|
|
11870
|
+
* field exists to prevent. Only a PASSTHROUGH acquisition can offer one — a
|
|
11871
|
+
* transcode hands back an egress the broker is feeding itself, which has no
|
|
11872
|
+
* sentry counterpart.
|
|
11873
|
+
*/
|
|
11874
|
+
sentryUrl: string().nullable().optional(),
|
|
11857
11875
|
videoCodec: _enum(["H264", "H265"]),
|
|
11858
11876
|
audioCodec: string(),
|
|
11859
11877
|
resolution: object({
|
|
@@ -27289,6 +27307,114 @@ DeviceType.Light, DeviceType.Siren, DeviceType.Switch, method(object({
|
|
|
27289
27307
|
lastChangedAt: number()
|
|
27290
27308
|
});
|
|
27291
27309
|
/**
|
|
27310
|
+
* camera-grid-layout — the geometry of a COMPOSITE camera, on the camera's own
|
|
27311
|
+
* page.
|
|
27312
|
+
*
|
|
27313
|
+
* ## Why this is a capability and not an addon settings schema
|
|
27314
|
+
*
|
|
27315
|
+
* It was one, and it did not render. The addon declared the editor as a
|
|
27316
|
+
* `type: 'widget'` field inside its own `deviceSettingsSchema()`; the hub
|
|
27317
|
+
* returned that section correctly and `ConfigFormField` renders `type:'widget'`
|
|
27318
|
+
* perfectly well — and nothing ever asked camera-grid for it. The Cluster →
|
|
27319
|
+
* Pipeline → Device Overrides page interrogates a HAND-WRITTEN list of four
|
|
27320
|
+
* addons (`PIPELINE_CLUSTER_DEVICE_ADDONS`), whose own comment says an addon
|
|
27321
|
+
* not on it "falls off silently".
|
|
27322
|
+
*
|
|
27323
|
+
* Adding a fifth name to that list would have been the wrong fix twice over:
|
|
27324
|
+
* that page is per-camera DETECTION tuning, and a grid's geometry belongs
|
|
27325
|
+
* beside PTZ and motion zones on the camera itself — which is exactly where the
|
|
27326
|
+
* framework already puts a widget, when the widget is declared on a CAPABILITY.
|
|
27327
|
+
* `deviceConfig.ui` is the mechanism (`motion-zones`, `ptz`, `ptz-autotrack`
|
|
27328
|
+
* all use it): the framework emits the structural section and the widget
|
|
27329
|
+
* self-persists through the cap's own mutations.
|
|
27330
|
+
*
|
|
27331
|
+
* ## Why one addon may implement it
|
|
27332
|
+
*
|
|
27333
|
+
* It is a device-scoped NATIVE cap, registered by the grid camera device
|
|
27334
|
+
* itself. Nothing else declares a composite camera, so nothing else has a
|
|
27335
|
+
* layout — and the device-scoped route means the widget asks THE camera, not
|
|
27336
|
+
* "the camera-grid addon", which is what let the old custom-action pair be
|
|
27337
|
+
* reached only by a caller that already knew the addon id.
|
|
27338
|
+
*
|
|
27339
|
+
* ## The tab
|
|
27340
|
+
*
|
|
27341
|
+
* `streaming`, not a top-tab of its own. A grid's geometry IS what its stream
|
|
27342
|
+
* is, so the Streaming tab is where it belongs; a `grid` top-tab would need an
|
|
27343
|
+
* entry in `WELL_KNOWN_TAB_MAP` or the device page renders the raw id as the
|
|
27344
|
+
* label (measured on the robot camera, 2026-09-06 — a tab called "navigation"
|
|
27345
|
+
* next to "PTZ").
|
|
27346
|
+
*/
|
|
27347
|
+
/** A rectangle in normalized [0,1] coordinates of whatever contains it. */
|
|
27348
|
+
var GridNormalizedRectSchema = object({
|
|
27349
|
+
x: number().min(0).max(1),
|
|
27350
|
+
y: number().min(0).max(1),
|
|
27351
|
+
width: number().gt(0).max(1),
|
|
27352
|
+
height: number().gt(0).max(1)
|
|
27353
|
+
});
|
|
27354
|
+
/**
|
|
27355
|
+
* One source camera, the part of its picture taken, and where that part lands.
|
|
27356
|
+
*
|
|
27357
|
+
* Both rectangles are NORMALIZED (D519): a source camera can change resolution
|
|
27358
|
+
* — a profile switch, a firmware update, a substream that comes back different
|
|
27359
|
+
* — and a stored PIXEL rectangle would quietly start cutting the wrong region,
|
|
27360
|
+
* which is the class of bug nobody files.
|
|
27361
|
+
*/
|
|
27362
|
+
var GridLayoutCellSchema = object({
|
|
27363
|
+
deviceId: number().int().positive(),
|
|
27364
|
+
/** The part of the SOURCE taken, normalized against the source. */
|
|
27365
|
+
source: GridNormalizedRectSchema,
|
|
27366
|
+
/** Where it lands, normalized against the CANVAS. */
|
|
27367
|
+
cell: GridNormalizedRectSchema
|
|
27368
|
+
});
|
|
27369
|
+
/**
|
|
27370
|
+
* Which profiles this grid can actually compose, and why not.
|
|
27371
|
+
*
|
|
27372
|
+
* A grid's `high` composes its sources' `high` and its `low` their `low`, so a
|
|
27373
|
+
* profile is on offer only when EVERY source can serve it. The refusal NAMES
|
|
27374
|
+
* the sources, because "this grid has no low" is not a finding — "615 has no
|
|
27375
|
+
* low" is, and it is the one an operator can act on.
|
|
27376
|
+
*/
|
|
27377
|
+
var GridProfileOfferSchema = object({
|
|
27378
|
+
profile: _enum([
|
|
27379
|
+
"high",
|
|
27380
|
+
"mid",
|
|
27381
|
+
"low"
|
|
27382
|
+
]),
|
|
27383
|
+
offered: boolean(),
|
|
27384
|
+
/** Sources that cannot serve it. Empty when it is offered, or when there are no cells. */
|
|
27385
|
+
missingSources: array(number().int().positive())
|
|
27386
|
+
});
|
|
27387
|
+
var GridLayoutViewSchema = object({
|
|
27388
|
+
/** The persisted grid row this camera was declared from. */
|
|
27389
|
+
instanceId: string(),
|
|
27390
|
+
deviceId: number().int().nonnegative(),
|
|
27391
|
+
name: string(),
|
|
27392
|
+
/** The canvas the operator laid out — this grid's `high`. mid/low are scaled from it. */
|
|
27393
|
+
width: number().int(),
|
|
27394
|
+
height: number().int(),
|
|
27395
|
+
fps: number().int(),
|
|
27396
|
+
cells: array(GridLayoutCellSchema),
|
|
27397
|
+
/** What the catalog will publish, and what it refuses to. Read-only. */
|
|
27398
|
+
profiles: array(GridProfileOfferSchema)
|
|
27399
|
+
});
|
|
27400
|
+
var GridLayoutPatchSchema = object({
|
|
27401
|
+
deviceId: number().int().nonnegative(),
|
|
27402
|
+
name: string().min(1).max(160).optional(),
|
|
27403
|
+
width: number().int().min(160).max(7680).optional(),
|
|
27404
|
+
height: number().int().min(120).max(4320).optional(),
|
|
27405
|
+
fps: number().int().min(1).max(60).optional(),
|
|
27406
|
+
/**
|
|
27407
|
+
* The whole cell list at once. A per-cell patch would need an ordering the
|
|
27408
|
+
* editor does not have, and a half-applied layout is a picture nobody asked
|
|
27409
|
+
* for.
|
|
27410
|
+
*/
|
|
27411
|
+
cells: array(GridLayoutCellSchema).max(16)
|
|
27412
|
+
});
|
|
27413
|
+
DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), GridLayoutViewSchema.nullable(), { auth: "admin" }), method(GridLayoutPatchSchema, GridLayoutViewSchema, {
|
|
27414
|
+
kind: "mutation",
|
|
27415
|
+
auth: "admin"
|
|
27416
|
+
});
|
|
27417
|
+
/**
|
|
27292
27418
|
* Motion-zones share the same MaskShape vocabulary as privacy-mask — the
|
|
27293
27419
|
* on-camera motion-detection mask is a single `grid` region (a row-major
|
|
27294
27420
|
* boolean cell lattice the camera's onboard VMD evaluates). Composing it as
|
|
@@ -28988,6 +29114,26 @@ var PtzHomePresetSchema = object({
|
|
|
28988
29114
|
"none"
|
|
28989
29115
|
])
|
|
28990
29116
|
});
|
|
29117
|
+
/**
|
|
29118
|
+
* The camera's own idle-return behaviour: whether it goes home by itself, and
|
|
29119
|
+
* after how long.
|
|
29120
|
+
*
|
|
29121
|
+
* ONE shape, not two scalars, because on the camera they are ONE fact —
|
|
29122
|
+
* Reolink's guard point carries `benable` and `timeout` in the same element,
|
|
29123
|
+
* written by the same command. Reading them apart means two round-trips that
|
|
29124
|
+
* can disagree.
|
|
29125
|
+
*
|
|
29126
|
+
* `enabled` and `seconds` are INDEPENDENT: a camera can hold a 68 s delay with
|
|
29127
|
+
* the behaviour switched off, which is exactly what the vendor app leaves when
|
|
29128
|
+
* you turn the guard point off without clearing it. The first version of this
|
|
29129
|
+
* cap reported only the delay, so that state was invisible — a camera could be
|
|
29130
|
+
* configured to return after 68 seconds with no way to say whether it should
|
|
29131
|
+
* return at all.
|
|
29132
|
+
*/
|
|
29133
|
+
var PtzHomeReturnSchema = object({
|
|
29134
|
+
enabled: boolean(),
|
|
29135
|
+
seconds: number().int()
|
|
29136
|
+
});
|
|
28991
29137
|
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({
|
|
28992
29138
|
deviceId: number(),
|
|
28993
29139
|
presetId: string()
|
|
@@ -29013,8 +29159,9 @@ DeviceType.Camera, method(PtzMoveCommandSchema.extend({ deviceId: number() }), _
|
|
|
29013
29159
|
}), method(object({ deviceId: number() }), _void(), {
|
|
29014
29160
|
kind: "mutation",
|
|
29015
29161
|
auth: "admin"
|
|
29016
|
-
}), method(object({ deviceId: number() }),
|
|
29162
|
+
}), method(object({ deviceId: number() }), PtzHomeReturnSchema.nullable()), method(object({
|
|
29017
29163
|
deviceId: number(),
|
|
29164
|
+
enabled: boolean(),
|
|
29018
29165
|
seconds: number().int().min(0).max(3600)
|
|
29019
29166
|
}), _void(), {
|
|
29020
29167
|
kind: "mutation",
|
|
@@ -32296,6 +32443,18 @@ Object.freeze({
|
|
|
32296
32443
|
addonId: null,
|
|
32297
32444
|
access: "view"
|
|
32298
32445
|
},
|
|
32446
|
+
"cameraGridLayout.getLayout": {
|
|
32447
|
+
capName: "camera-grid-layout",
|
|
32448
|
+
capScope: "device",
|
|
32449
|
+
addonId: null,
|
|
32450
|
+
access: "view"
|
|
32451
|
+
},
|
|
32452
|
+
"cameraGridLayout.saveLayout": {
|
|
32453
|
+
capName: "camera-grid-layout",
|
|
32454
|
+
capScope: "device",
|
|
32455
|
+
addonId: null,
|
|
32456
|
+
access: "create"
|
|
32457
|
+
},
|
|
32299
32458
|
"cameraStreams.getBrokerStreams": {
|
|
32300
32459
|
capName: "camera-streams",
|
|
32301
32460
|
capScope: "device",
|
|
@@ -36046,7 +36205,7 @@ Object.freeze({
|
|
|
36046
36205
|
addonId: null,
|
|
36047
36206
|
access: "view"
|
|
36048
36207
|
},
|
|
36049
|
-
"ptz.
|
|
36208
|
+
"ptz.getHomeReturn": {
|
|
36050
36209
|
capName: "ptz",
|
|
36051
36210
|
capScope: "device",
|
|
36052
36211
|
addonId: null,
|
|
@@ -36106,7 +36265,7 @@ Object.freeze({
|
|
|
36106
36265
|
addonId: null,
|
|
36107
36266
|
access: "create"
|
|
36108
36267
|
},
|
|
36109
|
-
"ptz.
|
|
36268
|
+
"ptz.setHomeReturn": {
|
|
36110
36269
|
capName: "ptz",
|
|
36111
36270
|
capScope: "device",
|
|
36112
36271
|
addonId: null,
|
|
@@ -37995,6 +38154,21 @@ Object.freeze({
|
|
|
37995
38154
|
form: "single",
|
|
37996
38155
|
optional: false
|
|
37997
38156
|
}],
|
|
38157
|
+
"cameraGridLayout.getLayout": [{
|
|
38158
|
+
name: "deviceId",
|
|
38159
|
+
form: "single",
|
|
38160
|
+
optional: false
|
|
38161
|
+
}],
|
|
38162
|
+
"cameraGridLayout.saveLayout": [{
|
|
38163
|
+
name: "cells",
|
|
38164
|
+
form: "object-array",
|
|
38165
|
+
optional: false,
|
|
38166
|
+
itemField: "deviceId"
|
|
38167
|
+
}, {
|
|
38168
|
+
name: "deviceId",
|
|
38169
|
+
form: "single",
|
|
38170
|
+
optional: false
|
|
38171
|
+
}],
|
|
37998
38172
|
"cameraStreams.getBrokerStreams": [{
|
|
37999
38173
|
name: "deviceId",
|
|
38000
38174
|
form: "single",
|
|
@@ -39295,7 +39469,7 @@ Object.freeze({
|
|
|
39295
39469
|
form: "single",
|
|
39296
39470
|
optional: false
|
|
39297
39471
|
}],
|
|
39298
|
-
"ptz.
|
|
39472
|
+
"ptz.getHomeReturn": [{
|
|
39299
39473
|
name: "deviceId",
|
|
39300
39474
|
form: "single",
|
|
39301
39475
|
optional: false
|
|
@@ -39345,7 +39519,7 @@ Object.freeze({
|
|
|
39345
39519
|
form: "single",
|
|
39346
39520
|
optional: false
|
|
39347
39521
|
}],
|
|
39348
|
-
"ptz.
|
|
39522
|
+
"ptz.setHomeReturn": [{
|
|
39349
39523
|
name: "deviceId",
|
|
39350
39524
|
form: "single",
|
|
39351
39525
|
optional: false
|