@camstack/addon-provider-petkit 0.2.112 → 0.2.114
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/addon.js +180 -6
- package/dist/addon.mjs +180 -6
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -6462,7 +6462,7 @@ var ZodIssueCode = {
|
|
|
6462
6462
|
var ZodFirstPartyTypeKind;
|
|
6463
6463
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
6464
6464
|
//#endregion
|
|
6465
|
-
//#region ../types/dist/sleep-
|
|
6465
|
+
//#region ../types/dist/sleep-Bs3xPtSh.mjs
|
|
6466
6466
|
/**
|
|
6467
6467
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
6468
6468
|
* window to float samples (D455).
|
|
@@ -12952,6 +12952,24 @@ var GetStreamWithCodecInputSchema = object({
|
|
|
12952
12952
|
});
|
|
12953
12953
|
var RtpSourceSchema = object({
|
|
12954
12954
|
url: string(),
|
|
12955
|
+
/**
|
|
12956
|
+
* The SENTRY counterpart of {@link url} — the dial that asks for the stream
|
|
12957
|
+
* WITHOUT asking for the camera — or `null` when this camera offers none.
|
|
12958
|
+
*
|
|
12959
|
+
* The broker answers it because the broker is the only thing that can:
|
|
12960
|
+
* eligibility is `sentryEligible` (a BATTERY camera that DECLARES the signals
|
|
12961
|
+
* cap), asked of facts only the broker holds. A consumer re-deriving it from
|
|
12962
|
+
* cap bindings would be a second authority, and two authorities on the same
|
|
12963
|
+
* question is how a composite camera ends up dialling a sleeping camera
|
|
12964
|
+
* because its own copy of the rule was a release behind.
|
|
12965
|
+
*
|
|
12966
|
+
* `null` is a real answer and is never a live url in disguise: a consumer
|
|
12967
|
+
* that silently fell back to {@link url} would perform exactly the wake this
|
|
12968
|
+
* field exists to prevent. Only a PASSTHROUGH acquisition can offer one — a
|
|
12969
|
+
* transcode hands back an egress the broker is feeding itself, which has no
|
|
12970
|
+
* sentry counterpart.
|
|
12971
|
+
*/
|
|
12972
|
+
sentryUrl: string().nullable().optional(),
|
|
12955
12973
|
videoCodec: _enum(["H264", "H265"]),
|
|
12956
12974
|
audioCodec: string(),
|
|
12957
12975
|
resolution: object({
|
|
@@ -29998,6 +30016,114 @@ var motionTriggerCapability = {
|
|
|
29998
30016
|
durability: "session"
|
|
29999
30017
|
};
|
|
30000
30018
|
/**
|
|
30019
|
+
* camera-grid-layout — the geometry of a COMPOSITE camera, on the camera's own
|
|
30020
|
+
* page.
|
|
30021
|
+
*
|
|
30022
|
+
* ## Why this is a capability and not an addon settings schema
|
|
30023
|
+
*
|
|
30024
|
+
* It was one, and it did not render. The addon declared the editor as a
|
|
30025
|
+
* `type: 'widget'` field inside its own `deviceSettingsSchema()`; the hub
|
|
30026
|
+
* returned that section correctly and `ConfigFormField` renders `type:'widget'`
|
|
30027
|
+
* perfectly well — and nothing ever asked camera-grid for it. The Cluster →
|
|
30028
|
+
* Pipeline → Device Overrides page interrogates a HAND-WRITTEN list of four
|
|
30029
|
+
* addons (`PIPELINE_CLUSTER_DEVICE_ADDONS`), whose own comment says an addon
|
|
30030
|
+
* not on it "falls off silently".
|
|
30031
|
+
*
|
|
30032
|
+
* Adding a fifth name to that list would have been the wrong fix twice over:
|
|
30033
|
+
* that page is per-camera DETECTION tuning, and a grid's geometry belongs
|
|
30034
|
+
* beside PTZ and motion zones on the camera itself — which is exactly where the
|
|
30035
|
+
* framework already puts a widget, when the widget is declared on a CAPABILITY.
|
|
30036
|
+
* `deviceConfig.ui` is the mechanism (`motion-zones`, `ptz`, `ptz-autotrack`
|
|
30037
|
+
* all use it): the framework emits the structural section and the widget
|
|
30038
|
+
* self-persists through the cap's own mutations.
|
|
30039
|
+
*
|
|
30040
|
+
* ## Why one addon may implement it
|
|
30041
|
+
*
|
|
30042
|
+
* It is a device-scoped NATIVE cap, registered by the grid camera device
|
|
30043
|
+
* itself. Nothing else declares a composite camera, so nothing else has a
|
|
30044
|
+
* layout — and the device-scoped route means the widget asks THE camera, not
|
|
30045
|
+
* "the camera-grid addon", which is what let the old custom-action pair be
|
|
30046
|
+
* reached only by a caller that already knew the addon id.
|
|
30047
|
+
*
|
|
30048
|
+
* ## The tab
|
|
30049
|
+
*
|
|
30050
|
+
* `streaming`, not a top-tab of its own. A grid's geometry IS what its stream
|
|
30051
|
+
* is, so the Streaming tab is where it belongs; a `grid` top-tab would need an
|
|
30052
|
+
* entry in `WELL_KNOWN_TAB_MAP` or the device page renders the raw id as the
|
|
30053
|
+
* label (measured on the robot camera, 2026-09-06 — a tab called "navigation"
|
|
30054
|
+
* next to "PTZ").
|
|
30055
|
+
*/
|
|
30056
|
+
/** A rectangle in normalized [0,1] coordinates of whatever contains it. */
|
|
30057
|
+
var GridNormalizedRectSchema = object({
|
|
30058
|
+
x: number().min(0).max(1),
|
|
30059
|
+
y: number().min(0).max(1),
|
|
30060
|
+
width: number().gt(0).max(1),
|
|
30061
|
+
height: number().gt(0).max(1)
|
|
30062
|
+
});
|
|
30063
|
+
/**
|
|
30064
|
+
* One source camera, the part of its picture taken, and where that part lands.
|
|
30065
|
+
*
|
|
30066
|
+
* Both rectangles are NORMALIZED (D519): a source camera can change resolution
|
|
30067
|
+
* — a profile switch, a firmware update, a substream that comes back different
|
|
30068
|
+
* — and a stored PIXEL rectangle would quietly start cutting the wrong region,
|
|
30069
|
+
* which is the class of bug nobody files.
|
|
30070
|
+
*/
|
|
30071
|
+
var GridLayoutCellSchema = object({
|
|
30072
|
+
deviceId: number().int().positive(),
|
|
30073
|
+
/** The part of the SOURCE taken, normalized against the source. */
|
|
30074
|
+
source: GridNormalizedRectSchema,
|
|
30075
|
+
/** Where it lands, normalized against the CANVAS. */
|
|
30076
|
+
cell: GridNormalizedRectSchema
|
|
30077
|
+
});
|
|
30078
|
+
/**
|
|
30079
|
+
* Which profiles this grid can actually compose, and why not.
|
|
30080
|
+
*
|
|
30081
|
+
* A grid's `high` composes its sources' `high` and its `low` their `low`, so a
|
|
30082
|
+
* profile is on offer only when EVERY source can serve it. The refusal NAMES
|
|
30083
|
+
* the sources, because "this grid has no low" is not a finding — "615 has no
|
|
30084
|
+
* low" is, and it is the one an operator can act on.
|
|
30085
|
+
*/
|
|
30086
|
+
var GridProfileOfferSchema = object({
|
|
30087
|
+
profile: _enum([
|
|
30088
|
+
"high",
|
|
30089
|
+
"mid",
|
|
30090
|
+
"low"
|
|
30091
|
+
]),
|
|
30092
|
+
offered: boolean(),
|
|
30093
|
+
/** Sources that cannot serve it. Empty when it is offered, or when there are no cells. */
|
|
30094
|
+
missingSources: array(number().int().positive())
|
|
30095
|
+
});
|
|
30096
|
+
var GridLayoutViewSchema = object({
|
|
30097
|
+
/** The persisted grid row this camera was declared from. */
|
|
30098
|
+
instanceId: string(),
|
|
30099
|
+
deviceId: number().int().nonnegative(),
|
|
30100
|
+
name: string(),
|
|
30101
|
+
/** The canvas the operator laid out — this grid's `high`. mid/low are scaled from it. */
|
|
30102
|
+
width: number().int(),
|
|
30103
|
+
height: number().int(),
|
|
30104
|
+
fps: number().int(),
|
|
30105
|
+
cells: array(GridLayoutCellSchema),
|
|
30106
|
+
/** What the catalog will publish, and what it refuses to. Read-only. */
|
|
30107
|
+
profiles: array(GridProfileOfferSchema)
|
|
30108
|
+
});
|
|
30109
|
+
var GridLayoutPatchSchema = object({
|
|
30110
|
+
deviceId: number().int().nonnegative(),
|
|
30111
|
+
name: string().min(1).max(160).optional(),
|
|
30112
|
+
width: number().int().min(160).max(7680).optional(),
|
|
30113
|
+
height: number().int().min(120).max(4320).optional(),
|
|
30114
|
+
fps: number().int().min(1).max(60).optional(),
|
|
30115
|
+
/**
|
|
30116
|
+
* The whole cell list at once. A per-cell patch would need an ordering the
|
|
30117
|
+
* editor does not have, and a half-applied layout is a picture nobody asked
|
|
30118
|
+
* for.
|
|
30119
|
+
*/
|
|
30120
|
+
cells: array(GridLayoutCellSchema).max(16)
|
|
30121
|
+
});
|
|
30122
|
+
DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), GridLayoutViewSchema.nullable(), { auth: "admin" }), method(GridLayoutPatchSchema, GridLayoutViewSchema, {
|
|
30123
|
+
kind: "mutation",
|
|
30124
|
+
auth: "admin"
|
|
30125
|
+
});
|
|
30126
|
+
/**
|
|
30001
30127
|
* Motion-zones share the same MaskShape vocabulary as privacy-mask — the
|
|
30002
30128
|
* on-camera motion-detection mask is a single `grid` region (a row-major
|
|
30003
30129
|
* boolean cell lattice the camera's onboard VMD evaluates). Composing it as
|
|
@@ -32156,6 +32282,26 @@ var PtzHomePresetSchema = object({
|
|
|
32156
32282
|
"none"
|
|
32157
32283
|
])
|
|
32158
32284
|
});
|
|
32285
|
+
/**
|
|
32286
|
+
* The camera's own idle-return behaviour: whether it goes home by itself, and
|
|
32287
|
+
* after how long.
|
|
32288
|
+
*
|
|
32289
|
+
* ONE shape, not two scalars, because on the camera they are ONE fact —
|
|
32290
|
+
* Reolink's guard point carries `benable` and `timeout` in the same element,
|
|
32291
|
+
* written by the same command. Reading them apart means two round-trips that
|
|
32292
|
+
* can disagree.
|
|
32293
|
+
*
|
|
32294
|
+
* `enabled` and `seconds` are INDEPENDENT: a camera can hold a 68 s delay with
|
|
32295
|
+
* the behaviour switched off, which is exactly what the vendor app leaves when
|
|
32296
|
+
* you turn the guard point off without clearing it. The first version of this
|
|
32297
|
+
* cap reported only the delay, so that state was invisible — a camera could be
|
|
32298
|
+
* configured to return after 68 seconds with no way to say whether it should
|
|
32299
|
+
* return at all.
|
|
32300
|
+
*/
|
|
32301
|
+
var PtzHomeReturnSchema = object({
|
|
32302
|
+
enabled: boolean(),
|
|
32303
|
+
seconds: number().int()
|
|
32304
|
+
});
|
|
32159
32305
|
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({
|
|
32160
32306
|
deviceId: number(),
|
|
32161
32307
|
presetId: string()
|
|
@@ -32181,8 +32327,9 @@ DeviceType.Camera, method(PtzMoveCommandSchema.extend({ deviceId: number() }), _
|
|
|
32181
32327
|
}), method(object({ deviceId: number() }), _void(), {
|
|
32182
32328
|
kind: "mutation",
|
|
32183
32329
|
auth: "admin"
|
|
32184
|
-
}), method(object({ deviceId: number() }),
|
|
32330
|
+
}), method(object({ deviceId: number() }), PtzHomeReturnSchema.nullable()), method(object({
|
|
32185
32331
|
deviceId: number(),
|
|
32332
|
+
enabled: boolean(),
|
|
32186
32333
|
seconds: number().int().min(0).max(3600)
|
|
32187
32334
|
}), _void(), {
|
|
32188
32335
|
kind: "mutation",
|
|
@@ -37703,6 +37850,18 @@ Object.freeze({
|
|
|
37703
37850
|
addonId: null,
|
|
37704
37851
|
access: "view"
|
|
37705
37852
|
},
|
|
37853
|
+
"cameraGridLayout.getLayout": {
|
|
37854
|
+
capName: "camera-grid-layout",
|
|
37855
|
+
capScope: "device",
|
|
37856
|
+
addonId: null,
|
|
37857
|
+
access: "view"
|
|
37858
|
+
},
|
|
37859
|
+
"cameraGridLayout.saveLayout": {
|
|
37860
|
+
capName: "camera-grid-layout",
|
|
37861
|
+
capScope: "device",
|
|
37862
|
+
addonId: null,
|
|
37863
|
+
access: "create"
|
|
37864
|
+
},
|
|
37706
37865
|
"cameraStreams.getBrokerStreams": {
|
|
37707
37866
|
capName: "camera-streams",
|
|
37708
37867
|
capScope: "device",
|
|
@@ -41453,7 +41612,7 @@ Object.freeze({
|
|
|
41453
41612
|
addonId: null,
|
|
41454
41613
|
access: "view"
|
|
41455
41614
|
},
|
|
41456
|
-
"ptz.
|
|
41615
|
+
"ptz.getHomeReturn": {
|
|
41457
41616
|
capName: "ptz",
|
|
41458
41617
|
capScope: "device",
|
|
41459
41618
|
addonId: null,
|
|
@@ -41513,7 +41672,7 @@ Object.freeze({
|
|
|
41513
41672
|
addonId: null,
|
|
41514
41673
|
access: "create"
|
|
41515
41674
|
},
|
|
41516
|
-
"ptz.
|
|
41675
|
+
"ptz.setHomeReturn": {
|
|
41517
41676
|
capName: "ptz",
|
|
41518
41677
|
capScope: "device",
|
|
41519
41678
|
addonId: null,
|
|
@@ -43402,6 +43561,21 @@ Object.freeze({
|
|
|
43402
43561
|
form: "single",
|
|
43403
43562
|
optional: false
|
|
43404
43563
|
}],
|
|
43564
|
+
"cameraGridLayout.getLayout": [{
|
|
43565
|
+
name: "deviceId",
|
|
43566
|
+
form: "single",
|
|
43567
|
+
optional: false
|
|
43568
|
+
}],
|
|
43569
|
+
"cameraGridLayout.saveLayout": [{
|
|
43570
|
+
name: "cells",
|
|
43571
|
+
form: "object-array",
|
|
43572
|
+
optional: false,
|
|
43573
|
+
itemField: "deviceId"
|
|
43574
|
+
}, {
|
|
43575
|
+
name: "deviceId",
|
|
43576
|
+
form: "single",
|
|
43577
|
+
optional: false
|
|
43578
|
+
}],
|
|
43405
43579
|
"cameraStreams.getBrokerStreams": [{
|
|
43406
43580
|
name: "deviceId",
|
|
43407
43581
|
form: "single",
|
|
@@ -44702,7 +44876,7 @@ Object.freeze({
|
|
|
44702
44876
|
form: "single",
|
|
44703
44877
|
optional: false
|
|
44704
44878
|
}],
|
|
44705
|
-
"ptz.
|
|
44879
|
+
"ptz.getHomeReturn": [{
|
|
44706
44880
|
name: "deviceId",
|
|
44707
44881
|
form: "single",
|
|
44708
44882
|
optional: false
|
|
@@ -44752,7 +44926,7 @@ Object.freeze({
|
|
|
44752
44926
|
form: "single",
|
|
44753
44927
|
optional: false
|
|
44754
44928
|
}],
|
|
44755
|
-
"ptz.
|
|
44929
|
+
"ptz.setHomeReturn": [{
|
|
44756
44930
|
name: "deviceId",
|
|
44757
44931
|
form: "single",
|
|
44758
44932
|
optional: false
|
package/dist/addon.mjs
CHANGED
|
@@ -6461,7 +6461,7 @@ var ZodIssueCode = {
|
|
|
6461
6461
|
var ZodFirstPartyTypeKind;
|
|
6462
6462
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
6463
6463
|
//#endregion
|
|
6464
|
-
//#region ../types/dist/sleep-
|
|
6464
|
+
//#region ../types/dist/sleep-Bs3xPtSh.mjs
|
|
6465
6465
|
/**
|
|
6466
6466
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
6467
6467
|
* window to float samples (D455).
|
|
@@ -12951,6 +12951,24 @@ var GetStreamWithCodecInputSchema = object({
|
|
|
12951
12951
|
});
|
|
12952
12952
|
var RtpSourceSchema = object({
|
|
12953
12953
|
url: string(),
|
|
12954
|
+
/**
|
|
12955
|
+
* The SENTRY counterpart of {@link url} — the dial that asks for the stream
|
|
12956
|
+
* WITHOUT asking for the camera — or `null` when this camera offers none.
|
|
12957
|
+
*
|
|
12958
|
+
* The broker answers it because the broker is the only thing that can:
|
|
12959
|
+
* eligibility is `sentryEligible` (a BATTERY camera that DECLARES the signals
|
|
12960
|
+
* cap), asked of facts only the broker holds. A consumer re-deriving it from
|
|
12961
|
+
* cap bindings would be a second authority, and two authorities on the same
|
|
12962
|
+
* question is how a composite camera ends up dialling a sleeping camera
|
|
12963
|
+
* because its own copy of the rule was a release behind.
|
|
12964
|
+
*
|
|
12965
|
+
* `null` is a real answer and is never a live url in disguise: a consumer
|
|
12966
|
+
* that silently fell back to {@link url} would perform exactly the wake this
|
|
12967
|
+
* field exists to prevent. Only a PASSTHROUGH acquisition can offer one — a
|
|
12968
|
+
* transcode hands back an egress the broker is feeding itself, which has no
|
|
12969
|
+
* sentry counterpart.
|
|
12970
|
+
*/
|
|
12971
|
+
sentryUrl: string().nullable().optional(),
|
|
12954
12972
|
videoCodec: _enum(["H264", "H265"]),
|
|
12955
12973
|
audioCodec: string(),
|
|
12956
12974
|
resolution: object({
|
|
@@ -29997,6 +30015,114 @@ var motionTriggerCapability = {
|
|
|
29997
30015
|
durability: "session"
|
|
29998
30016
|
};
|
|
29999
30017
|
/**
|
|
30018
|
+
* camera-grid-layout — the geometry of a COMPOSITE camera, on the camera's own
|
|
30019
|
+
* page.
|
|
30020
|
+
*
|
|
30021
|
+
* ## Why this is a capability and not an addon settings schema
|
|
30022
|
+
*
|
|
30023
|
+
* It was one, and it did not render. The addon declared the editor as a
|
|
30024
|
+
* `type: 'widget'` field inside its own `deviceSettingsSchema()`; the hub
|
|
30025
|
+
* returned that section correctly and `ConfigFormField` renders `type:'widget'`
|
|
30026
|
+
* perfectly well — and nothing ever asked camera-grid for it. The Cluster →
|
|
30027
|
+
* Pipeline → Device Overrides page interrogates a HAND-WRITTEN list of four
|
|
30028
|
+
* addons (`PIPELINE_CLUSTER_DEVICE_ADDONS`), whose own comment says an addon
|
|
30029
|
+
* not on it "falls off silently".
|
|
30030
|
+
*
|
|
30031
|
+
* Adding a fifth name to that list would have been the wrong fix twice over:
|
|
30032
|
+
* that page is per-camera DETECTION tuning, and a grid's geometry belongs
|
|
30033
|
+
* beside PTZ and motion zones on the camera itself — which is exactly where the
|
|
30034
|
+
* framework already puts a widget, when the widget is declared on a CAPABILITY.
|
|
30035
|
+
* `deviceConfig.ui` is the mechanism (`motion-zones`, `ptz`, `ptz-autotrack`
|
|
30036
|
+
* all use it): the framework emits the structural section and the widget
|
|
30037
|
+
* self-persists through the cap's own mutations.
|
|
30038
|
+
*
|
|
30039
|
+
* ## Why one addon may implement it
|
|
30040
|
+
*
|
|
30041
|
+
* It is a device-scoped NATIVE cap, registered by the grid camera device
|
|
30042
|
+
* itself. Nothing else declares a composite camera, so nothing else has a
|
|
30043
|
+
* layout — and the device-scoped route means the widget asks THE camera, not
|
|
30044
|
+
* "the camera-grid addon", which is what let the old custom-action pair be
|
|
30045
|
+
* reached only by a caller that already knew the addon id.
|
|
30046
|
+
*
|
|
30047
|
+
* ## The tab
|
|
30048
|
+
*
|
|
30049
|
+
* `streaming`, not a top-tab of its own. A grid's geometry IS what its stream
|
|
30050
|
+
* is, so the Streaming tab is where it belongs; a `grid` top-tab would need an
|
|
30051
|
+
* entry in `WELL_KNOWN_TAB_MAP` or the device page renders the raw id as the
|
|
30052
|
+
* label (measured on the robot camera, 2026-09-06 — a tab called "navigation"
|
|
30053
|
+
* next to "PTZ").
|
|
30054
|
+
*/
|
|
30055
|
+
/** A rectangle in normalized [0,1] coordinates of whatever contains it. */
|
|
30056
|
+
var GridNormalizedRectSchema = object({
|
|
30057
|
+
x: number().min(0).max(1),
|
|
30058
|
+
y: number().min(0).max(1),
|
|
30059
|
+
width: number().gt(0).max(1),
|
|
30060
|
+
height: number().gt(0).max(1)
|
|
30061
|
+
});
|
|
30062
|
+
/**
|
|
30063
|
+
* One source camera, the part of its picture taken, and where that part lands.
|
|
30064
|
+
*
|
|
30065
|
+
* Both rectangles are NORMALIZED (D519): a source camera can change resolution
|
|
30066
|
+
* — a profile switch, a firmware update, a substream that comes back different
|
|
30067
|
+
* — and a stored PIXEL rectangle would quietly start cutting the wrong region,
|
|
30068
|
+
* which is the class of bug nobody files.
|
|
30069
|
+
*/
|
|
30070
|
+
var GridLayoutCellSchema = object({
|
|
30071
|
+
deviceId: number().int().positive(),
|
|
30072
|
+
/** The part of the SOURCE taken, normalized against the source. */
|
|
30073
|
+
source: GridNormalizedRectSchema,
|
|
30074
|
+
/** Where it lands, normalized against the CANVAS. */
|
|
30075
|
+
cell: GridNormalizedRectSchema
|
|
30076
|
+
});
|
|
30077
|
+
/**
|
|
30078
|
+
* Which profiles this grid can actually compose, and why not.
|
|
30079
|
+
*
|
|
30080
|
+
* A grid's `high` composes its sources' `high` and its `low` their `low`, so a
|
|
30081
|
+
* profile is on offer only when EVERY source can serve it. The refusal NAMES
|
|
30082
|
+
* the sources, because "this grid has no low" is not a finding — "615 has no
|
|
30083
|
+
* low" is, and it is the one an operator can act on.
|
|
30084
|
+
*/
|
|
30085
|
+
var GridProfileOfferSchema = object({
|
|
30086
|
+
profile: _enum([
|
|
30087
|
+
"high",
|
|
30088
|
+
"mid",
|
|
30089
|
+
"low"
|
|
30090
|
+
]),
|
|
30091
|
+
offered: boolean(),
|
|
30092
|
+
/** Sources that cannot serve it. Empty when it is offered, or when there are no cells. */
|
|
30093
|
+
missingSources: array(number().int().positive())
|
|
30094
|
+
});
|
|
30095
|
+
var GridLayoutViewSchema = object({
|
|
30096
|
+
/** The persisted grid row this camera was declared from. */
|
|
30097
|
+
instanceId: string(),
|
|
30098
|
+
deviceId: number().int().nonnegative(),
|
|
30099
|
+
name: string(),
|
|
30100
|
+
/** The canvas the operator laid out — this grid's `high`. mid/low are scaled from it. */
|
|
30101
|
+
width: number().int(),
|
|
30102
|
+
height: number().int(),
|
|
30103
|
+
fps: number().int(),
|
|
30104
|
+
cells: array(GridLayoutCellSchema),
|
|
30105
|
+
/** What the catalog will publish, and what it refuses to. Read-only. */
|
|
30106
|
+
profiles: array(GridProfileOfferSchema)
|
|
30107
|
+
});
|
|
30108
|
+
var GridLayoutPatchSchema = object({
|
|
30109
|
+
deviceId: number().int().nonnegative(),
|
|
30110
|
+
name: string().min(1).max(160).optional(),
|
|
30111
|
+
width: number().int().min(160).max(7680).optional(),
|
|
30112
|
+
height: number().int().min(120).max(4320).optional(),
|
|
30113
|
+
fps: number().int().min(1).max(60).optional(),
|
|
30114
|
+
/**
|
|
30115
|
+
* The whole cell list at once. A per-cell patch would need an ordering the
|
|
30116
|
+
* editor does not have, and a half-applied layout is a picture nobody asked
|
|
30117
|
+
* for.
|
|
30118
|
+
*/
|
|
30119
|
+
cells: array(GridLayoutCellSchema).max(16)
|
|
30120
|
+
});
|
|
30121
|
+
DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), GridLayoutViewSchema.nullable(), { auth: "admin" }), method(GridLayoutPatchSchema, GridLayoutViewSchema, {
|
|
30122
|
+
kind: "mutation",
|
|
30123
|
+
auth: "admin"
|
|
30124
|
+
});
|
|
30125
|
+
/**
|
|
30000
30126
|
* Motion-zones share the same MaskShape vocabulary as privacy-mask — the
|
|
30001
30127
|
* on-camera motion-detection mask is a single `grid` region (a row-major
|
|
30002
30128
|
* boolean cell lattice the camera's onboard VMD evaluates). Composing it as
|
|
@@ -32155,6 +32281,26 @@ var PtzHomePresetSchema = object({
|
|
|
32155
32281
|
"none"
|
|
32156
32282
|
])
|
|
32157
32283
|
});
|
|
32284
|
+
/**
|
|
32285
|
+
* The camera's own idle-return behaviour: whether it goes home by itself, and
|
|
32286
|
+
* after how long.
|
|
32287
|
+
*
|
|
32288
|
+
* ONE shape, not two scalars, because on the camera they are ONE fact —
|
|
32289
|
+
* Reolink's guard point carries `benable` and `timeout` in the same element,
|
|
32290
|
+
* written by the same command. Reading them apart means two round-trips that
|
|
32291
|
+
* can disagree.
|
|
32292
|
+
*
|
|
32293
|
+
* `enabled` and `seconds` are INDEPENDENT: a camera can hold a 68 s delay with
|
|
32294
|
+
* the behaviour switched off, which is exactly what the vendor app leaves when
|
|
32295
|
+
* you turn the guard point off without clearing it. The first version of this
|
|
32296
|
+
* cap reported only the delay, so that state was invisible — a camera could be
|
|
32297
|
+
* configured to return after 68 seconds with no way to say whether it should
|
|
32298
|
+
* return at all.
|
|
32299
|
+
*/
|
|
32300
|
+
var PtzHomeReturnSchema = object({
|
|
32301
|
+
enabled: boolean(),
|
|
32302
|
+
seconds: number().int()
|
|
32303
|
+
});
|
|
32158
32304
|
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({
|
|
32159
32305
|
deviceId: number(),
|
|
32160
32306
|
presetId: string()
|
|
@@ -32180,8 +32326,9 @@ DeviceType.Camera, method(PtzMoveCommandSchema.extend({ deviceId: number() }), _
|
|
|
32180
32326
|
}), method(object({ deviceId: number() }), _void(), {
|
|
32181
32327
|
kind: "mutation",
|
|
32182
32328
|
auth: "admin"
|
|
32183
|
-
}), method(object({ deviceId: number() }),
|
|
32329
|
+
}), method(object({ deviceId: number() }), PtzHomeReturnSchema.nullable()), method(object({
|
|
32184
32330
|
deviceId: number(),
|
|
32331
|
+
enabled: boolean(),
|
|
32185
32332
|
seconds: number().int().min(0).max(3600)
|
|
32186
32333
|
}), _void(), {
|
|
32187
32334
|
kind: "mutation",
|
|
@@ -37702,6 +37849,18 @@ Object.freeze({
|
|
|
37702
37849
|
addonId: null,
|
|
37703
37850
|
access: "view"
|
|
37704
37851
|
},
|
|
37852
|
+
"cameraGridLayout.getLayout": {
|
|
37853
|
+
capName: "camera-grid-layout",
|
|
37854
|
+
capScope: "device",
|
|
37855
|
+
addonId: null,
|
|
37856
|
+
access: "view"
|
|
37857
|
+
},
|
|
37858
|
+
"cameraGridLayout.saveLayout": {
|
|
37859
|
+
capName: "camera-grid-layout",
|
|
37860
|
+
capScope: "device",
|
|
37861
|
+
addonId: null,
|
|
37862
|
+
access: "create"
|
|
37863
|
+
},
|
|
37705
37864
|
"cameraStreams.getBrokerStreams": {
|
|
37706
37865
|
capName: "camera-streams",
|
|
37707
37866
|
capScope: "device",
|
|
@@ -41452,7 +41611,7 @@ Object.freeze({
|
|
|
41452
41611
|
addonId: null,
|
|
41453
41612
|
access: "view"
|
|
41454
41613
|
},
|
|
41455
|
-
"ptz.
|
|
41614
|
+
"ptz.getHomeReturn": {
|
|
41456
41615
|
capName: "ptz",
|
|
41457
41616
|
capScope: "device",
|
|
41458
41617
|
addonId: null,
|
|
@@ -41512,7 +41671,7 @@ Object.freeze({
|
|
|
41512
41671
|
addonId: null,
|
|
41513
41672
|
access: "create"
|
|
41514
41673
|
},
|
|
41515
|
-
"ptz.
|
|
41674
|
+
"ptz.setHomeReturn": {
|
|
41516
41675
|
capName: "ptz",
|
|
41517
41676
|
capScope: "device",
|
|
41518
41677
|
addonId: null,
|
|
@@ -43401,6 +43560,21 @@ Object.freeze({
|
|
|
43401
43560
|
form: "single",
|
|
43402
43561
|
optional: false
|
|
43403
43562
|
}],
|
|
43563
|
+
"cameraGridLayout.getLayout": [{
|
|
43564
|
+
name: "deviceId",
|
|
43565
|
+
form: "single",
|
|
43566
|
+
optional: false
|
|
43567
|
+
}],
|
|
43568
|
+
"cameraGridLayout.saveLayout": [{
|
|
43569
|
+
name: "cells",
|
|
43570
|
+
form: "object-array",
|
|
43571
|
+
optional: false,
|
|
43572
|
+
itemField: "deviceId"
|
|
43573
|
+
}, {
|
|
43574
|
+
name: "deviceId",
|
|
43575
|
+
form: "single",
|
|
43576
|
+
optional: false
|
|
43577
|
+
}],
|
|
43404
43578
|
"cameraStreams.getBrokerStreams": [{
|
|
43405
43579
|
name: "deviceId",
|
|
43406
43580
|
form: "single",
|
|
@@ -44701,7 +44875,7 @@ Object.freeze({
|
|
|
44701
44875
|
form: "single",
|
|
44702
44876
|
optional: false
|
|
44703
44877
|
}],
|
|
44704
|
-
"ptz.
|
|
44878
|
+
"ptz.getHomeReturn": [{
|
|
44705
44879
|
name: "deviceId",
|
|
44706
44880
|
form: "single",
|
|
44707
44881
|
optional: false
|
|
@@ -44751,7 +44925,7 @@ Object.freeze({
|
|
|
44751
44925
|
form: "single",
|
|
44752
44926
|
optional: false
|
|
44753
44927
|
}],
|
|
44754
|
-
"ptz.
|
|
44928
|
+
"ptz.setHomeReturn": [{
|
|
44755
44929
|
name: "deviceId",
|
|
44756
44930
|
form: "single",
|
|
44757
44931
|
optional: false
|
package/package.json
CHANGED