@camstack/addon-provider-dreo 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
|
@@ -5396,7 +5396,7 @@ var ZodIssueCode = {
|
|
|
5396
5396
|
var ZodFirstPartyTypeKind;
|
|
5397
5397
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5398
5398
|
//#endregion
|
|
5399
|
-
//#region ../types/dist/sleep-
|
|
5399
|
+
//#region ../types/dist/sleep-Bs3xPtSh.mjs
|
|
5400
5400
|
/**
|
|
5401
5401
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5402
5402
|
* window to float samples (D455).
|
|
@@ -11886,6 +11886,24 @@ var GetStreamWithCodecInputSchema = object({
|
|
|
11886
11886
|
});
|
|
11887
11887
|
var RtpSourceSchema = object({
|
|
11888
11888
|
url: string(),
|
|
11889
|
+
/**
|
|
11890
|
+
* The SENTRY counterpart of {@link url} — the dial that asks for the stream
|
|
11891
|
+
* WITHOUT asking for the camera — or `null` when this camera offers none.
|
|
11892
|
+
*
|
|
11893
|
+
* The broker answers it because the broker is the only thing that can:
|
|
11894
|
+
* eligibility is `sentryEligible` (a BATTERY camera that DECLARES the signals
|
|
11895
|
+
* cap), asked of facts only the broker holds. A consumer re-deriving it from
|
|
11896
|
+
* cap bindings would be a second authority, and two authorities on the same
|
|
11897
|
+
* question is how a composite camera ends up dialling a sleeping camera
|
|
11898
|
+
* because its own copy of the rule was a release behind.
|
|
11899
|
+
*
|
|
11900
|
+
* `null` is a real answer and is never a live url in disguise: a consumer
|
|
11901
|
+
* that silently fell back to {@link url} would perform exactly the wake this
|
|
11902
|
+
* field exists to prevent. Only a PASSTHROUGH acquisition can offer one — a
|
|
11903
|
+
* transcode hands back an egress the broker is feeding itself, which has no
|
|
11904
|
+
* sentry counterpart.
|
|
11905
|
+
*/
|
|
11906
|
+
sentryUrl: string().nullable().optional(),
|
|
11889
11907
|
videoCodec: _enum(["H264", "H265"]),
|
|
11890
11908
|
audioCodec: string(),
|
|
11891
11909
|
resolution: object({
|
|
@@ -28932,6 +28950,114 @@ var motionTriggerCapability = {
|
|
|
28932
28950
|
durability: "session"
|
|
28933
28951
|
};
|
|
28934
28952
|
/**
|
|
28953
|
+
* camera-grid-layout — the geometry of a COMPOSITE camera, on the camera's own
|
|
28954
|
+
* page.
|
|
28955
|
+
*
|
|
28956
|
+
* ## Why this is a capability and not an addon settings schema
|
|
28957
|
+
*
|
|
28958
|
+
* It was one, and it did not render. The addon declared the editor as a
|
|
28959
|
+
* `type: 'widget'` field inside its own `deviceSettingsSchema()`; the hub
|
|
28960
|
+
* returned that section correctly and `ConfigFormField` renders `type:'widget'`
|
|
28961
|
+
* perfectly well — and nothing ever asked camera-grid for it. The Cluster →
|
|
28962
|
+
* Pipeline → Device Overrides page interrogates a HAND-WRITTEN list of four
|
|
28963
|
+
* addons (`PIPELINE_CLUSTER_DEVICE_ADDONS`), whose own comment says an addon
|
|
28964
|
+
* not on it "falls off silently".
|
|
28965
|
+
*
|
|
28966
|
+
* Adding a fifth name to that list would have been the wrong fix twice over:
|
|
28967
|
+
* that page is per-camera DETECTION tuning, and a grid's geometry belongs
|
|
28968
|
+
* beside PTZ and motion zones on the camera itself — which is exactly where the
|
|
28969
|
+
* framework already puts a widget, when the widget is declared on a CAPABILITY.
|
|
28970
|
+
* `deviceConfig.ui` is the mechanism (`motion-zones`, `ptz`, `ptz-autotrack`
|
|
28971
|
+
* all use it): the framework emits the structural section and the widget
|
|
28972
|
+
* self-persists through the cap's own mutations.
|
|
28973
|
+
*
|
|
28974
|
+
* ## Why one addon may implement it
|
|
28975
|
+
*
|
|
28976
|
+
* It is a device-scoped NATIVE cap, registered by the grid camera device
|
|
28977
|
+
* itself. Nothing else declares a composite camera, so nothing else has a
|
|
28978
|
+
* layout — and the device-scoped route means the widget asks THE camera, not
|
|
28979
|
+
* "the camera-grid addon", which is what let the old custom-action pair be
|
|
28980
|
+
* reached only by a caller that already knew the addon id.
|
|
28981
|
+
*
|
|
28982
|
+
* ## The tab
|
|
28983
|
+
*
|
|
28984
|
+
* `streaming`, not a top-tab of its own. A grid's geometry IS what its stream
|
|
28985
|
+
* is, so the Streaming tab is where it belongs; a `grid` top-tab would need an
|
|
28986
|
+
* entry in `WELL_KNOWN_TAB_MAP` or the device page renders the raw id as the
|
|
28987
|
+
* label (measured on the robot camera, 2026-09-06 — a tab called "navigation"
|
|
28988
|
+
* next to "PTZ").
|
|
28989
|
+
*/
|
|
28990
|
+
/** A rectangle in normalized [0,1] coordinates of whatever contains it. */
|
|
28991
|
+
var GridNormalizedRectSchema = object({
|
|
28992
|
+
x: number().min(0).max(1),
|
|
28993
|
+
y: number().min(0).max(1),
|
|
28994
|
+
width: number().gt(0).max(1),
|
|
28995
|
+
height: number().gt(0).max(1)
|
|
28996
|
+
});
|
|
28997
|
+
/**
|
|
28998
|
+
* One source camera, the part of its picture taken, and where that part lands.
|
|
28999
|
+
*
|
|
29000
|
+
* Both rectangles are NORMALIZED (D519): a source camera can change resolution
|
|
29001
|
+
* — a profile switch, a firmware update, a substream that comes back different
|
|
29002
|
+
* — and a stored PIXEL rectangle would quietly start cutting the wrong region,
|
|
29003
|
+
* which is the class of bug nobody files.
|
|
29004
|
+
*/
|
|
29005
|
+
var GridLayoutCellSchema = object({
|
|
29006
|
+
deviceId: number().int().positive(),
|
|
29007
|
+
/** The part of the SOURCE taken, normalized against the source. */
|
|
29008
|
+
source: GridNormalizedRectSchema,
|
|
29009
|
+
/** Where it lands, normalized against the CANVAS. */
|
|
29010
|
+
cell: GridNormalizedRectSchema
|
|
29011
|
+
});
|
|
29012
|
+
/**
|
|
29013
|
+
* Which profiles this grid can actually compose, and why not.
|
|
29014
|
+
*
|
|
29015
|
+
* A grid's `high` composes its sources' `high` and its `low` their `low`, so a
|
|
29016
|
+
* profile is on offer only when EVERY source can serve it. The refusal NAMES
|
|
29017
|
+
* the sources, because "this grid has no low" is not a finding — "615 has no
|
|
29018
|
+
* low" is, and it is the one an operator can act on.
|
|
29019
|
+
*/
|
|
29020
|
+
var GridProfileOfferSchema = object({
|
|
29021
|
+
profile: _enum([
|
|
29022
|
+
"high",
|
|
29023
|
+
"mid",
|
|
29024
|
+
"low"
|
|
29025
|
+
]),
|
|
29026
|
+
offered: boolean(),
|
|
29027
|
+
/** Sources that cannot serve it. Empty when it is offered, or when there are no cells. */
|
|
29028
|
+
missingSources: array(number().int().positive())
|
|
29029
|
+
});
|
|
29030
|
+
var GridLayoutViewSchema = object({
|
|
29031
|
+
/** The persisted grid row this camera was declared from. */
|
|
29032
|
+
instanceId: string(),
|
|
29033
|
+
deviceId: number().int().nonnegative(),
|
|
29034
|
+
name: string(),
|
|
29035
|
+
/** The canvas the operator laid out — this grid's `high`. mid/low are scaled from it. */
|
|
29036
|
+
width: number().int(),
|
|
29037
|
+
height: number().int(),
|
|
29038
|
+
fps: number().int(),
|
|
29039
|
+
cells: array(GridLayoutCellSchema),
|
|
29040
|
+
/** What the catalog will publish, and what it refuses to. Read-only. */
|
|
29041
|
+
profiles: array(GridProfileOfferSchema)
|
|
29042
|
+
});
|
|
29043
|
+
var GridLayoutPatchSchema = object({
|
|
29044
|
+
deviceId: number().int().nonnegative(),
|
|
29045
|
+
name: string().min(1).max(160).optional(),
|
|
29046
|
+
width: number().int().min(160).max(7680).optional(),
|
|
29047
|
+
height: number().int().min(120).max(4320).optional(),
|
|
29048
|
+
fps: number().int().min(1).max(60).optional(),
|
|
29049
|
+
/**
|
|
29050
|
+
* The whole cell list at once. A per-cell patch would need an ordering the
|
|
29051
|
+
* editor does not have, and a half-applied layout is a picture nobody asked
|
|
29052
|
+
* for.
|
|
29053
|
+
*/
|
|
29054
|
+
cells: array(GridLayoutCellSchema).max(16)
|
|
29055
|
+
});
|
|
29056
|
+
DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), GridLayoutViewSchema.nullable(), { auth: "admin" }), method(GridLayoutPatchSchema, GridLayoutViewSchema, {
|
|
29057
|
+
kind: "mutation",
|
|
29058
|
+
auth: "admin"
|
|
29059
|
+
});
|
|
29060
|
+
/**
|
|
28935
29061
|
* Motion-zones share the same MaskShape vocabulary as privacy-mask — the
|
|
28936
29062
|
* on-camera motion-detection mask is a single `grid` region (a row-major
|
|
28937
29063
|
* boolean cell lattice the camera's onboard VMD evaluates). Composing it as
|
|
@@ -31090,6 +31216,26 @@ var PtzHomePresetSchema = object({
|
|
|
31090
31216
|
"none"
|
|
31091
31217
|
])
|
|
31092
31218
|
});
|
|
31219
|
+
/**
|
|
31220
|
+
* The camera's own idle-return behaviour: whether it goes home by itself, and
|
|
31221
|
+
* after how long.
|
|
31222
|
+
*
|
|
31223
|
+
* ONE shape, not two scalars, because on the camera they are ONE fact —
|
|
31224
|
+
* Reolink's guard point carries `benable` and `timeout` in the same element,
|
|
31225
|
+
* written by the same command. Reading them apart means two round-trips that
|
|
31226
|
+
* can disagree.
|
|
31227
|
+
*
|
|
31228
|
+
* `enabled` and `seconds` are INDEPENDENT: a camera can hold a 68 s delay with
|
|
31229
|
+
* the behaviour switched off, which is exactly what the vendor app leaves when
|
|
31230
|
+
* you turn the guard point off without clearing it. The first version of this
|
|
31231
|
+
* cap reported only the delay, so that state was invisible — a camera could be
|
|
31232
|
+
* configured to return after 68 seconds with no way to say whether it should
|
|
31233
|
+
* return at all.
|
|
31234
|
+
*/
|
|
31235
|
+
var PtzHomeReturnSchema = object({
|
|
31236
|
+
enabled: boolean(),
|
|
31237
|
+
seconds: number().int()
|
|
31238
|
+
});
|
|
31093
31239
|
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({
|
|
31094
31240
|
deviceId: number(),
|
|
31095
31241
|
presetId: string()
|
|
@@ -31115,8 +31261,9 @@ DeviceType.Camera, method(PtzMoveCommandSchema.extend({ deviceId: number() }), _
|
|
|
31115
31261
|
}), method(object({ deviceId: number() }), _void(), {
|
|
31116
31262
|
kind: "mutation",
|
|
31117
31263
|
auth: "admin"
|
|
31118
|
-
}), method(object({ deviceId: number() }),
|
|
31264
|
+
}), method(object({ deviceId: number() }), PtzHomeReturnSchema.nullable()), method(object({
|
|
31119
31265
|
deviceId: number(),
|
|
31266
|
+
enabled: boolean(),
|
|
31120
31267
|
seconds: number().int().min(0).max(3600)
|
|
31121
31268
|
}), _void(), {
|
|
31122
31269
|
kind: "mutation",
|
|
@@ -36637,6 +36784,18 @@ Object.freeze({
|
|
|
36637
36784
|
addonId: null,
|
|
36638
36785
|
access: "view"
|
|
36639
36786
|
},
|
|
36787
|
+
"cameraGridLayout.getLayout": {
|
|
36788
|
+
capName: "camera-grid-layout",
|
|
36789
|
+
capScope: "device",
|
|
36790
|
+
addonId: null,
|
|
36791
|
+
access: "view"
|
|
36792
|
+
},
|
|
36793
|
+
"cameraGridLayout.saveLayout": {
|
|
36794
|
+
capName: "camera-grid-layout",
|
|
36795
|
+
capScope: "device",
|
|
36796
|
+
addonId: null,
|
|
36797
|
+
access: "create"
|
|
36798
|
+
},
|
|
36640
36799
|
"cameraStreams.getBrokerStreams": {
|
|
36641
36800
|
capName: "camera-streams",
|
|
36642
36801
|
capScope: "device",
|
|
@@ -40387,7 +40546,7 @@ Object.freeze({
|
|
|
40387
40546
|
addonId: null,
|
|
40388
40547
|
access: "view"
|
|
40389
40548
|
},
|
|
40390
|
-
"ptz.
|
|
40549
|
+
"ptz.getHomeReturn": {
|
|
40391
40550
|
capName: "ptz",
|
|
40392
40551
|
capScope: "device",
|
|
40393
40552
|
addonId: null,
|
|
@@ -40447,7 +40606,7 @@ Object.freeze({
|
|
|
40447
40606
|
addonId: null,
|
|
40448
40607
|
access: "create"
|
|
40449
40608
|
},
|
|
40450
|
-
"ptz.
|
|
40609
|
+
"ptz.setHomeReturn": {
|
|
40451
40610
|
capName: "ptz",
|
|
40452
40611
|
capScope: "device",
|
|
40453
40612
|
addonId: null,
|
|
@@ -42336,6 +42495,21 @@ Object.freeze({
|
|
|
42336
42495
|
form: "single",
|
|
42337
42496
|
optional: false
|
|
42338
42497
|
}],
|
|
42498
|
+
"cameraGridLayout.getLayout": [{
|
|
42499
|
+
name: "deviceId",
|
|
42500
|
+
form: "single",
|
|
42501
|
+
optional: false
|
|
42502
|
+
}],
|
|
42503
|
+
"cameraGridLayout.saveLayout": [{
|
|
42504
|
+
name: "cells",
|
|
42505
|
+
form: "object-array",
|
|
42506
|
+
optional: false,
|
|
42507
|
+
itemField: "deviceId"
|
|
42508
|
+
}, {
|
|
42509
|
+
name: "deviceId",
|
|
42510
|
+
form: "single",
|
|
42511
|
+
optional: false
|
|
42512
|
+
}],
|
|
42339
42513
|
"cameraStreams.getBrokerStreams": [{
|
|
42340
42514
|
name: "deviceId",
|
|
42341
42515
|
form: "single",
|
|
@@ -43636,7 +43810,7 @@ Object.freeze({
|
|
|
43636
43810
|
form: "single",
|
|
43637
43811
|
optional: false
|
|
43638
43812
|
}],
|
|
43639
|
-
"ptz.
|
|
43813
|
+
"ptz.getHomeReturn": [{
|
|
43640
43814
|
name: "deviceId",
|
|
43641
43815
|
form: "single",
|
|
43642
43816
|
optional: false
|
|
@@ -43686,7 +43860,7 @@ Object.freeze({
|
|
|
43686
43860
|
form: "single",
|
|
43687
43861
|
optional: false
|
|
43688
43862
|
}],
|
|
43689
|
-
"ptz.
|
|
43863
|
+
"ptz.setHomeReturn": [{
|
|
43690
43864
|
name: "deviceId",
|
|
43691
43865
|
form: "single",
|
|
43692
43866
|
optional: false
|
package/dist/addon.mjs
CHANGED
|
@@ -5397,7 +5397,7 @@ var ZodIssueCode = {
|
|
|
5397
5397
|
var ZodFirstPartyTypeKind;
|
|
5398
5398
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5399
5399
|
//#endregion
|
|
5400
|
-
//#region ../types/dist/sleep-
|
|
5400
|
+
//#region ../types/dist/sleep-Bs3xPtSh.mjs
|
|
5401
5401
|
/**
|
|
5402
5402
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5403
5403
|
* window to float samples (D455).
|
|
@@ -11887,6 +11887,24 @@ var GetStreamWithCodecInputSchema = object({
|
|
|
11887
11887
|
});
|
|
11888
11888
|
var RtpSourceSchema = object({
|
|
11889
11889
|
url: string(),
|
|
11890
|
+
/**
|
|
11891
|
+
* The SENTRY counterpart of {@link url} — the dial that asks for the stream
|
|
11892
|
+
* WITHOUT asking for the camera — or `null` when this camera offers none.
|
|
11893
|
+
*
|
|
11894
|
+
* The broker answers it because the broker is the only thing that can:
|
|
11895
|
+
* eligibility is `sentryEligible` (a BATTERY camera that DECLARES the signals
|
|
11896
|
+
* cap), asked of facts only the broker holds. A consumer re-deriving it from
|
|
11897
|
+
* cap bindings would be a second authority, and two authorities on the same
|
|
11898
|
+
* question is how a composite camera ends up dialling a sleeping camera
|
|
11899
|
+
* because its own copy of the rule was a release behind.
|
|
11900
|
+
*
|
|
11901
|
+
* `null` is a real answer and is never a live url in disguise: a consumer
|
|
11902
|
+
* that silently fell back to {@link url} would perform exactly the wake this
|
|
11903
|
+
* field exists to prevent. Only a PASSTHROUGH acquisition can offer one — a
|
|
11904
|
+
* transcode hands back an egress the broker is feeding itself, which has no
|
|
11905
|
+
* sentry counterpart.
|
|
11906
|
+
*/
|
|
11907
|
+
sentryUrl: string().nullable().optional(),
|
|
11890
11908
|
videoCodec: _enum(["H264", "H265"]),
|
|
11891
11909
|
audioCodec: string(),
|
|
11892
11910
|
resolution: object({
|
|
@@ -28933,6 +28951,114 @@ var motionTriggerCapability = {
|
|
|
28933
28951
|
durability: "session"
|
|
28934
28952
|
};
|
|
28935
28953
|
/**
|
|
28954
|
+
* camera-grid-layout — the geometry of a COMPOSITE camera, on the camera's own
|
|
28955
|
+
* page.
|
|
28956
|
+
*
|
|
28957
|
+
* ## Why this is a capability and not an addon settings schema
|
|
28958
|
+
*
|
|
28959
|
+
* It was one, and it did not render. The addon declared the editor as a
|
|
28960
|
+
* `type: 'widget'` field inside its own `deviceSettingsSchema()`; the hub
|
|
28961
|
+
* returned that section correctly and `ConfigFormField` renders `type:'widget'`
|
|
28962
|
+
* perfectly well — and nothing ever asked camera-grid for it. The Cluster →
|
|
28963
|
+
* Pipeline → Device Overrides page interrogates a HAND-WRITTEN list of four
|
|
28964
|
+
* addons (`PIPELINE_CLUSTER_DEVICE_ADDONS`), whose own comment says an addon
|
|
28965
|
+
* not on it "falls off silently".
|
|
28966
|
+
*
|
|
28967
|
+
* Adding a fifth name to that list would have been the wrong fix twice over:
|
|
28968
|
+
* that page is per-camera DETECTION tuning, and a grid's geometry belongs
|
|
28969
|
+
* beside PTZ and motion zones on the camera itself — which is exactly where the
|
|
28970
|
+
* framework already puts a widget, when the widget is declared on a CAPABILITY.
|
|
28971
|
+
* `deviceConfig.ui` is the mechanism (`motion-zones`, `ptz`, `ptz-autotrack`
|
|
28972
|
+
* all use it): the framework emits the structural section and the widget
|
|
28973
|
+
* self-persists through the cap's own mutations.
|
|
28974
|
+
*
|
|
28975
|
+
* ## Why one addon may implement it
|
|
28976
|
+
*
|
|
28977
|
+
* It is a device-scoped NATIVE cap, registered by the grid camera device
|
|
28978
|
+
* itself. Nothing else declares a composite camera, so nothing else has a
|
|
28979
|
+
* layout — and the device-scoped route means the widget asks THE camera, not
|
|
28980
|
+
* "the camera-grid addon", which is what let the old custom-action pair be
|
|
28981
|
+
* reached only by a caller that already knew the addon id.
|
|
28982
|
+
*
|
|
28983
|
+
* ## The tab
|
|
28984
|
+
*
|
|
28985
|
+
* `streaming`, not a top-tab of its own. A grid's geometry IS what its stream
|
|
28986
|
+
* is, so the Streaming tab is where it belongs; a `grid` top-tab would need an
|
|
28987
|
+
* entry in `WELL_KNOWN_TAB_MAP` or the device page renders the raw id as the
|
|
28988
|
+
* label (measured on the robot camera, 2026-09-06 — a tab called "navigation"
|
|
28989
|
+
* next to "PTZ").
|
|
28990
|
+
*/
|
|
28991
|
+
/** A rectangle in normalized [0,1] coordinates of whatever contains it. */
|
|
28992
|
+
var GridNormalizedRectSchema = object({
|
|
28993
|
+
x: number().min(0).max(1),
|
|
28994
|
+
y: number().min(0).max(1),
|
|
28995
|
+
width: number().gt(0).max(1),
|
|
28996
|
+
height: number().gt(0).max(1)
|
|
28997
|
+
});
|
|
28998
|
+
/**
|
|
28999
|
+
* One source camera, the part of its picture taken, and where that part lands.
|
|
29000
|
+
*
|
|
29001
|
+
* Both rectangles are NORMALIZED (D519): a source camera can change resolution
|
|
29002
|
+
* — a profile switch, a firmware update, a substream that comes back different
|
|
29003
|
+
* — and a stored PIXEL rectangle would quietly start cutting the wrong region,
|
|
29004
|
+
* which is the class of bug nobody files.
|
|
29005
|
+
*/
|
|
29006
|
+
var GridLayoutCellSchema = object({
|
|
29007
|
+
deviceId: number().int().positive(),
|
|
29008
|
+
/** The part of the SOURCE taken, normalized against the source. */
|
|
29009
|
+
source: GridNormalizedRectSchema,
|
|
29010
|
+
/** Where it lands, normalized against the CANVAS. */
|
|
29011
|
+
cell: GridNormalizedRectSchema
|
|
29012
|
+
});
|
|
29013
|
+
/**
|
|
29014
|
+
* Which profiles this grid can actually compose, and why not.
|
|
29015
|
+
*
|
|
29016
|
+
* A grid's `high` composes its sources' `high` and its `low` their `low`, so a
|
|
29017
|
+
* profile is on offer only when EVERY source can serve it. The refusal NAMES
|
|
29018
|
+
* the sources, because "this grid has no low" is not a finding — "615 has no
|
|
29019
|
+
* low" is, and it is the one an operator can act on.
|
|
29020
|
+
*/
|
|
29021
|
+
var GridProfileOfferSchema = object({
|
|
29022
|
+
profile: _enum([
|
|
29023
|
+
"high",
|
|
29024
|
+
"mid",
|
|
29025
|
+
"low"
|
|
29026
|
+
]),
|
|
29027
|
+
offered: boolean(),
|
|
29028
|
+
/** Sources that cannot serve it. Empty when it is offered, or when there are no cells. */
|
|
29029
|
+
missingSources: array(number().int().positive())
|
|
29030
|
+
});
|
|
29031
|
+
var GridLayoutViewSchema = object({
|
|
29032
|
+
/** The persisted grid row this camera was declared from. */
|
|
29033
|
+
instanceId: string(),
|
|
29034
|
+
deviceId: number().int().nonnegative(),
|
|
29035
|
+
name: string(),
|
|
29036
|
+
/** The canvas the operator laid out — this grid's `high`. mid/low are scaled from it. */
|
|
29037
|
+
width: number().int(),
|
|
29038
|
+
height: number().int(),
|
|
29039
|
+
fps: number().int(),
|
|
29040
|
+
cells: array(GridLayoutCellSchema),
|
|
29041
|
+
/** What the catalog will publish, and what it refuses to. Read-only. */
|
|
29042
|
+
profiles: array(GridProfileOfferSchema)
|
|
29043
|
+
});
|
|
29044
|
+
var GridLayoutPatchSchema = object({
|
|
29045
|
+
deviceId: number().int().nonnegative(),
|
|
29046
|
+
name: string().min(1).max(160).optional(),
|
|
29047
|
+
width: number().int().min(160).max(7680).optional(),
|
|
29048
|
+
height: number().int().min(120).max(4320).optional(),
|
|
29049
|
+
fps: number().int().min(1).max(60).optional(),
|
|
29050
|
+
/**
|
|
29051
|
+
* The whole cell list at once. A per-cell patch would need an ordering the
|
|
29052
|
+
* editor does not have, and a half-applied layout is a picture nobody asked
|
|
29053
|
+
* for.
|
|
29054
|
+
*/
|
|
29055
|
+
cells: array(GridLayoutCellSchema).max(16)
|
|
29056
|
+
});
|
|
29057
|
+
DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), GridLayoutViewSchema.nullable(), { auth: "admin" }), method(GridLayoutPatchSchema, GridLayoutViewSchema, {
|
|
29058
|
+
kind: "mutation",
|
|
29059
|
+
auth: "admin"
|
|
29060
|
+
});
|
|
29061
|
+
/**
|
|
28936
29062
|
* Motion-zones share the same MaskShape vocabulary as privacy-mask — the
|
|
28937
29063
|
* on-camera motion-detection mask is a single `grid` region (a row-major
|
|
28938
29064
|
* boolean cell lattice the camera's onboard VMD evaluates). Composing it as
|
|
@@ -31091,6 +31217,26 @@ var PtzHomePresetSchema = object({
|
|
|
31091
31217
|
"none"
|
|
31092
31218
|
])
|
|
31093
31219
|
});
|
|
31220
|
+
/**
|
|
31221
|
+
* The camera's own idle-return behaviour: whether it goes home by itself, and
|
|
31222
|
+
* after how long.
|
|
31223
|
+
*
|
|
31224
|
+
* ONE shape, not two scalars, because on the camera they are ONE fact —
|
|
31225
|
+
* Reolink's guard point carries `benable` and `timeout` in the same element,
|
|
31226
|
+
* written by the same command. Reading them apart means two round-trips that
|
|
31227
|
+
* can disagree.
|
|
31228
|
+
*
|
|
31229
|
+
* `enabled` and `seconds` are INDEPENDENT: a camera can hold a 68 s delay with
|
|
31230
|
+
* the behaviour switched off, which is exactly what the vendor app leaves when
|
|
31231
|
+
* you turn the guard point off without clearing it. The first version of this
|
|
31232
|
+
* cap reported only the delay, so that state was invisible — a camera could be
|
|
31233
|
+
* configured to return after 68 seconds with no way to say whether it should
|
|
31234
|
+
* return at all.
|
|
31235
|
+
*/
|
|
31236
|
+
var PtzHomeReturnSchema = object({
|
|
31237
|
+
enabled: boolean(),
|
|
31238
|
+
seconds: number().int()
|
|
31239
|
+
});
|
|
31094
31240
|
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({
|
|
31095
31241
|
deviceId: number(),
|
|
31096
31242
|
presetId: string()
|
|
@@ -31116,8 +31262,9 @@ DeviceType.Camera, method(PtzMoveCommandSchema.extend({ deviceId: number() }), _
|
|
|
31116
31262
|
}), method(object({ deviceId: number() }), _void(), {
|
|
31117
31263
|
kind: "mutation",
|
|
31118
31264
|
auth: "admin"
|
|
31119
|
-
}), method(object({ deviceId: number() }),
|
|
31265
|
+
}), method(object({ deviceId: number() }), PtzHomeReturnSchema.nullable()), method(object({
|
|
31120
31266
|
deviceId: number(),
|
|
31267
|
+
enabled: boolean(),
|
|
31121
31268
|
seconds: number().int().min(0).max(3600)
|
|
31122
31269
|
}), _void(), {
|
|
31123
31270
|
kind: "mutation",
|
|
@@ -36638,6 +36785,18 @@ Object.freeze({
|
|
|
36638
36785
|
addonId: null,
|
|
36639
36786
|
access: "view"
|
|
36640
36787
|
},
|
|
36788
|
+
"cameraGridLayout.getLayout": {
|
|
36789
|
+
capName: "camera-grid-layout",
|
|
36790
|
+
capScope: "device",
|
|
36791
|
+
addonId: null,
|
|
36792
|
+
access: "view"
|
|
36793
|
+
},
|
|
36794
|
+
"cameraGridLayout.saveLayout": {
|
|
36795
|
+
capName: "camera-grid-layout",
|
|
36796
|
+
capScope: "device",
|
|
36797
|
+
addonId: null,
|
|
36798
|
+
access: "create"
|
|
36799
|
+
},
|
|
36641
36800
|
"cameraStreams.getBrokerStreams": {
|
|
36642
36801
|
capName: "camera-streams",
|
|
36643
36802
|
capScope: "device",
|
|
@@ -40388,7 +40547,7 @@ Object.freeze({
|
|
|
40388
40547
|
addonId: null,
|
|
40389
40548
|
access: "view"
|
|
40390
40549
|
},
|
|
40391
|
-
"ptz.
|
|
40550
|
+
"ptz.getHomeReturn": {
|
|
40392
40551
|
capName: "ptz",
|
|
40393
40552
|
capScope: "device",
|
|
40394
40553
|
addonId: null,
|
|
@@ -40448,7 +40607,7 @@ Object.freeze({
|
|
|
40448
40607
|
addonId: null,
|
|
40449
40608
|
access: "create"
|
|
40450
40609
|
},
|
|
40451
|
-
"ptz.
|
|
40610
|
+
"ptz.setHomeReturn": {
|
|
40452
40611
|
capName: "ptz",
|
|
40453
40612
|
capScope: "device",
|
|
40454
40613
|
addonId: null,
|
|
@@ -42337,6 +42496,21 @@ Object.freeze({
|
|
|
42337
42496
|
form: "single",
|
|
42338
42497
|
optional: false
|
|
42339
42498
|
}],
|
|
42499
|
+
"cameraGridLayout.getLayout": [{
|
|
42500
|
+
name: "deviceId",
|
|
42501
|
+
form: "single",
|
|
42502
|
+
optional: false
|
|
42503
|
+
}],
|
|
42504
|
+
"cameraGridLayout.saveLayout": [{
|
|
42505
|
+
name: "cells",
|
|
42506
|
+
form: "object-array",
|
|
42507
|
+
optional: false,
|
|
42508
|
+
itemField: "deviceId"
|
|
42509
|
+
}, {
|
|
42510
|
+
name: "deviceId",
|
|
42511
|
+
form: "single",
|
|
42512
|
+
optional: false
|
|
42513
|
+
}],
|
|
42340
42514
|
"cameraStreams.getBrokerStreams": [{
|
|
42341
42515
|
name: "deviceId",
|
|
42342
42516
|
form: "single",
|
|
@@ -43637,7 +43811,7 @@ Object.freeze({
|
|
|
43637
43811
|
form: "single",
|
|
43638
43812
|
optional: false
|
|
43639
43813
|
}],
|
|
43640
|
-
"ptz.
|
|
43814
|
+
"ptz.getHomeReturn": [{
|
|
43641
43815
|
name: "deviceId",
|
|
43642
43816
|
form: "single",
|
|
43643
43817
|
optional: false
|
|
@@ -43687,7 +43861,7 @@ Object.freeze({
|
|
|
43687
43861
|
form: "single",
|
|
43688
43862
|
optional: false
|
|
43689
43863
|
}],
|
|
43690
|
-
"ptz.
|
|
43864
|
+
"ptz.setHomeReturn": [{
|
|
43691
43865
|
name: "deviceId",
|
|
43692
43866
|
form: "single",
|
|
43693
43867
|
optional: false
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-provider-dreo",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.114",
|
|
4
4
|
"description": "Dreo smart-device (fan / air-circulator / purifier / heater / humidifier) device-provider addon for CamStack — wraps the @apocaliss92/nodedreo Dreo cloud client (REST + WebSocket)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|