@camstack/addon-provider-dreame 0.2.113 → 0.2.115
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
|
@@ -58137,7 +58137,7 @@ var ZodIssueCode = {
|
|
|
58137
58137
|
var ZodFirstPartyTypeKind;
|
|
58138
58138
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
58139
58139
|
//#endregion
|
|
58140
|
-
//#region ../types/dist/sleep-
|
|
58140
|
+
//#region ../types/dist/sleep-Bs3xPtSh.mjs
|
|
58141
58141
|
/**
|
|
58142
58142
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
58143
58143
|
* window to float samples (D455).
|
|
@@ -64627,6 +64627,24 @@ var GetStreamWithCodecInputSchema = object({
|
|
|
64627
64627
|
});
|
|
64628
64628
|
var RtpSourceSchema = object({
|
|
64629
64629
|
url: string(),
|
|
64630
|
+
/**
|
|
64631
|
+
* The SENTRY counterpart of {@link url} — the dial that asks for the stream
|
|
64632
|
+
* WITHOUT asking for the camera — or `null` when this camera offers none.
|
|
64633
|
+
*
|
|
64634
|
+
* The broker answers it because the broker is the only thing that can:
|
|
64635
|
+
* eligibility is `sentryEligible` (a BATTERY camera that DECLARES the signals
|
|
64636
|
+
* cap), asked of facts only the broker holds. A consumer re-deriving it from
|
|
64637
|
+
* cap bindings would be a second authority, and two authorities on the same
|
|
64638
|
+
* question is how a composite camera ends up dialling a sleeping camera
|
|
64639
|
+
* because its own copy of the rule was a release behind.
|
|
64640
|
+
*
|
|
64641
|
+
* `null` is a real answer and is never a live url in disguise: a consumer
|
|
64642
|
+
* that silently fell back to {@link url} would perform exactly the wake this
|
|
64643
|
+
* field exists to prevent. Only a PASSTHROUGH acquisition can offer one — a
|
|
64644
|
+
* transcode hands back an egress the broker is feeding itself, which has no
|
|
64645
|
+
* sentry counterpart.
|
|
64646
|
+
*/
|
|
64647
|
+
sentryUrl: string().nullable().optional(),
|
|
64630
64648
|
videoCodec: _enum(["H264", "H265"]),
|
|
64631
64649
|
audioCodec: string(),
|
|
64632
64650
|
resolution: object({
|
|
@@ -81690,6 +81708,114 @@ var motionTriggerCapability = {
|
|
|
81690
81708
|
durability: "session"
|
|
81691
81709
|
};
|
|
81692
81710
|
/**
|
|
81711
|
+
* camera-grid-layout — the geometry of a COMPOSITE camera, on the camera's own
|
|
81712
|
+
* page.
|
|
81713
|
+
*
|
|
81714
|
+
* ## Why this is a capability and not an addon settings schema
|
|
81715
|
+
*
|
|
81716
|
+
* It was one, and it did not render. The addon declared the editor as a
|
|
81717
|
+
* `type: 'widget'` field inside its own `deviceSettingsSchema()`; the hub
|
|
81718
|
+
* returned that section correctly and `ConfigFormField` renders `type:'widget'`
|
|
81719
|
+
* perfectly well — and nothing ever asked camera-grid for it. The Cluster →
|
|
81720
|
+
* Pipeline → Device Overrides page interrogates a HAND-WRITTEN list of four
|
|
81721
|
+
* addons (`PIPELINE_CLUSTER_DEVICE_ADDONS`), whose own comment says an addon
|
|
81722
|
+
* not on it "falls off silently".
|
|
81723
|
+
*
|
|
81724
|
+
* Adding a fifth name to that list would have been the wrong fix twice over:
|
|
81725
|
+
* that page is per-camera DETECTION tuning, and a grid's geometry belongs
|
|
81726
|
+
* beside PTZ and motion zones on the camera itself — which is exactly where the
|
|
81727
|
+
* framework already puts a widget, when the widget is declared on a CAPABILITY.
|
|
81728
|
+
* `deviceConfig.ui` is the mechanism (`motion-zones`, `ptz`, `ptz-autotrack`
|
|
81729
|
+
* all use it): the framework emits the structural section and the widget
|
|
81730
|
+
* self-persists through the cap's own mutations.
|
|
81731
|
+
*
|
|
81732
|
+
* ## Why one addon may implement it
|
|
81733
|
+
*
|
|
81734
|
+
* It is a device-scoped NATIVE cap, registered by the grid camera device
|
|
81735
|
+
* itself. Nothing else declares a composite camera, so nothing else has a
|
|
81736
|
+
* layout — and the device-scoped route means the widget asks THE camera, not
|
|
81737
|
+
* "the camera-grid addon", which is what let the old custom-action pair be
|
|
81738
|
+
* reached only by a caller that already knew the addon id.
|
|
81739
|
+
*
|
|
81740
|
+
* ## The tab
|
|
81741
|
+
*
|
|
81742
|
+
* `streaming`, not a top-tab of its own. A grid's geometry IS what its stream
|
|
81743
|
+
* is, so the Streaming tab is where it belongs; a `grid` top-tab would need an
|
|
81744
|
+
* entry in `WELL_KNOWN_TAB_MAP` or the device page renders the raw id as the
|
|
81745
|
+
* label (measured on the robot camera, 2026-09-06 — a tab called "navigation"
|
|
81746
|
+
* next to "PTZ").
|
|
81747
|
+
*/
|
|
81748
|
+
/** A rectangle in normalized [0,1] coordinates of whatever contains it. */
|
|
81749
|
+
var GridNormalizedRectSchema = object({
|
|
81750
|
+
x: number().min(0).max(1),
|
|
81751
|
+
y: number().min(0).max(1),
|
|
81752
|
+
width: number().gt(0).max(1),
|
|
81753
|
+
height: number().gt(0).max(1)
|
|
81754
|
+
});
|
|
81755
|
+
/**
|
|
81756
|
+
* One source camera, the part of its picture taken, and where that part lands.
|
|
81757
|
+
*
|
|
81758
|
+
* Both rectangles are NORMALIZED (D519): a source camera can change resolution
|
|
81759
|
+
* — a profile switch, a firmware update, a substream that comes back different
|
|
81760
|
+
* — and a stored PIXEL rectangle would quietly start cutting the wrong region,
|
|
81761
|
+
* which is the class of bug nobody files.
|
|
81762
|
+
*/
|
|
81763
|
+
var GridLayoutCellSchema = object({
|
|
81764
|
+
deviceId: number().int().positive(),
|
|
81765
|
+
/** The part of the SOURCE taken, normalized against the source. */
|
|
81766
|
+
source: GridNormalizedRectSchema,
|
|
81767
|
+
/** Where it lands, normalized against the CANVAS. */
|
|
81768
|
+
cell: GridNormalizedRectSchema
|
|
81769
|
+
});
|
|
81770
|
+
/**
|
|
81771
|
+
* Which profiles this grid can actually compose, and why not.
|
|
81772
|
+
*
|
|
81773
|
+
* A grid's `high` composes its sources' `high` and its `low` their `low`, so a
|
|
81774
|
+
* profile is on offer only when EVERY source can serve it. The refusal NAMES
|
|
81775
|
+
* the sources, because "this grid has no low" is not a finding — "615 has no
|
|
81776
|
+
* low" is, and it is the one an operator can act on.
|
|
81777
|
+
*/
|
|
81778
|
+
var GridProfileOfferSchema = object({
|
|
81779
|
+
profile: _enum([
|
|
81780
|
+
"high",
|
|
81781
|
+
"mid",
|
|
81782
|
+
"low"
|
|
81783
|
+
]),
|
|
81784
|
+
offered: boolean(),
|
|
81785
|
+
/** Sources that cannot serve it. Empty when it is offered, or when there are no cells. */
|
|
81786
|
+
missingSources: array(number().int().positive())
|
|
81787
|
+
});
|
|
81788
|
+
var GridLayoutViewSchema = object({
|
|
81789
|
+
/** The persisted grid row this camera was declared from. */
|
|
81790
|
+
instanceId: string(),
|
|
81791
|
+
deviceId: number().int().nonnegative(),
|
|
81792
|
+
name: string(),
|
|
81793
|
+
/** The canvas the operator laid out — this grid's `high`. mid/low are scaled from it. */
|
|
81794
|
+
width: number().int(),
|
|
81795
|
+
height: number().int(),
|
|
81796
|
+
fps: number().int(),
|
|
81797
|
+
cells: array(GridLayoutCellSchema),
|
|
81798
|
+
/** What the catalog will publish, and what it refuses to. Read-only. */
|
|
81799
|
+
profiles: array(GridProfileOfferSchema)
|
|
81800
|
+
});
|
|
81801
|
+
var GridLayoutPatchSchema = object({
|
|
81802
|
+
deviceId: number().int().nonnegative(),
|
|
81803
|
+
name: string().min(1).max(160).optional(),
|
|
81804
|
+
width: number().int().min(160).max(7680).optional(),
|
|
81805
|
+
height: number().int().min(120).max(4320).optional(),
|
|
81806
|
+
fps: number().int().min(1).max(60).optional(),
|
|
81807
|
+
/**
|
|
81808
|
+
* The whole cell list at once. A per-cell patch would need an ordering the
|
|
81809
|
+
* editor does not have, and a half-applied layout is a picture nobody asked
|
|
81810
|
+
* for.
|
|
81811
|
+
*/
|
|
81812
|
+
cells: array(GridLayoutCellSchema).max(16)
|
|
81813
|
+
});
|
|
81814
|
+
DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), GridLayoutViewSchema.nullable(), { auth: "admin" }), method(GridLayoutPatchSchema, GridLayoutViewSchema, {
|
|
81815
|
+
kind: "mutation",
|
|
81816
|
+
auth: "admin"
|
|
81817
|
+
});
|
|
81818
|
+
/**
|
|
81693
81819
|
* Motion-zones share the same MaskShape vocabulary as privacy-mask — the
|
|
81694
81820
|
* on-camera motion-detection mask is a single `grid` region (a row-major
|
|
81695
81821
|
* boolean cell lattice the camera's onboard VMD evaluates). Composing it as
|
|
@@ -83996,6 +84122,26 @@ var PtzHomePresetSchema = object({
|
|
|
83996
84122
|
"none"
|
|
83997
84123
|
])
|
|
83998
84124
|
});
|
|
84125
|
+
/**
|
|
84126
|
+
* The camera's own idle-return behaviour: whether it goes home by itself, and
|
|
84127
|
+
* after how long.
|
|
84128
|
+
*
|
|
84129
|
+
* ONE shape, not two scalars, because on the camera they are ONE fact —
|
|
84130
|
+
* Reolink's guard point carries `benable` and `timeout` in the same element,
|
|
84131
|
+
* written by the same command. Reading them apart means two round-trips that
|
|
84132
|
+
* can disagree.
|
|
84133
|
+
*
|
|
84134
|
+
* `enabled` and `seconds` are INDEPENDENT: a camera can hold a 68 s delay with
|
|
84135
|
+
* the behaviour switched off, which is exactly what the vendor app leaves when
|
|
84136
|
+
* you turn the guard point off without clearing it. The first version of this
|
|
84137
|
+
* cap reported only the delay, so that state was invisible — a camera could be
|
|
84138
|
+
* configured to return after 68 seconds with no way to say whether it should
|
|
84139
|
+
* return at all.
|
|
84140
|
+
*/
|
|
84141
|
+
var PtzHomeReturnSchema = object({
|
|
84142
|
+
enabled: boolean(),
|
|
84143
|
+
seconds: number().int()
|
|
84144
|
+
});
|
|
83999
84145
|
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({
|
|
84000
84146
|
deviceId: number(),
|
|
84001
84147
|
presetId: string()
|
|
@@ -84021,8 +84167,9 @@ DeviceType.Camera, method(PtzMoveCommandSchema.extend({ deviceId: number() }), _
|
|
|
84021
84167
|
}), method(object({ deviceId: number() }), _void(), {
|
|
84022
84168
|
kind: "mutation",
|
|
84023
84169
|
auth: "admin"
|
|
84024
|
-
}), method(object({ deviceId: number() }),
|
|
84170
|
+
}), method(object({ deviceId: number() }), PtzHomeReturnSchema.nullable()), method(object({
|
|
84025
84171
|
deviceId: number(),
|
|
84172
|
+
enabled: boolean(),
|
|
84026
84173
|
seconds: number().int().min(0).max(3600)
|
|
84027
84174
|
}), _void(), {
|
|
84028
84175
|
kind: "mutation",
|
|
@@ -89543,6 +89690,18 @@ Object.freeze({
|
|
|
89543
89690
|
addonId: null,
|
|
89544
89691
|
access: "view"
|
|
89545
89692
|
},
|
|
89693
|
+
"cameraGridLayout.getLayout": {
|
|
89694
|
+
capName: "camera-grid-layout",
|
|
89695
|
+
capScope: "device",
|
|
89696
|
+
addonId: null,
|
|
89697
|
+
access: "view"
|
|
89698
|
+
},
|
|
89699
|
+
"cameraGridLayout.saveLayout": {
|
|
89700
|
+
capName: "camera-grid-layout",
|
|
89701
|
+
capScope: "device",
|
|
89702
|
+
addonId: null,
|
|
89703
|
+
access: "create"
|
|
89704
|
+
},
|
|
89546
89705
|
"cameraStreams.getBrokerStreams": {
|
|
89547
89706
|
capName: "camera-streams",
|
|
89548
89707
|
capScope: "device",
|
|
@@ -93293,7 +93452,7 @@ Object.freeze({
|
|
|
93293
93452
|
addonId: null,
|
|
93294
93453
|
access: "view"
|
|
93295
93454
|
},
|
|
93296
|
-
"ptz.
|
|
93455
|
+
"ptz.getHomeReturn": {
|
|
93297
93456
|
capName: "ptz",
|
|
93298
93457
|
capScope: "device",
|
|
93299
93458
|
addonId: null,
|
|
@@ -93353,7 +93512,7 @@ Object.freeze({
|
|
|
93353
93512
|
addonId: null,
|
|
93354
93513
|
access: "create"
|
|
93355
93514
|
},
|
|
93356
|
-
"ptz.
|
|
93515
|
+
"ptz.setHomeReturn": {
|
|
93357
93516
|
capName: "ptz",
|
|
93358
93517
|
capScope: "device",
|
|
93359
93518
|
addonId: null,
|
|
@@ -95242,6 +95401,21 @@ Object.freeze({
|
|
|
95242
95401
|
form: "single",
|
|
95243
95402
|
optional: false
|
|
95244
95403
|
}],
|
|
95404
|
+
"cameraGridLayout.getLayout": [{
|
|
95405
|
+
name: "deviceId",
|
|
95406
|
+
form: "single",
|
|
95407
|
+
optional: false
|
|
95408
|
+
}],
|
|
95409
|
+
"cameraGridLayout.saveLayout": [{
|
|
95410
|
+
name: "cells",
|
|
95411
|
+
form: "object-array",
|
|
95412
|
+
optional: false,
|
|
95413
|
+
itemField: "deviceId"
|
|
95414
|
+
}, {
|
|
95415
|
+
name: "deviceId",
|
|
95416
|
+
form: "single",
|
|
95417
|
+
optional: false
|
|
95418
|
+
}],
|
|
95245
95419
|
"cameraStreams.getBrokerStreams": [{
|
|
95246
95420
|
name: "deviceId",
|
|
95247
95421
|
form: "single",
|
|
@@ -96542,7 +96716,7 @@ Object.freeze({
|
|
|
96542
96716
|
form: "single",
|
|
96543
96717
|
optional: false
|
|
96544
96718
|
}],
|
|
96545
|
-
"ptz.
|
|
96719
|
+
"ptz.getHomeReturn": [{
|
|
96546
96720
|
name: "deviceId",
|
|
96547
96721
|
form: "single",
|
|
96548
96722
|
optional: false
|
|
@@ -96592,7 +96766,7 @@ Object.freeze({
|
|
|
96592
96766
|
form: "single",
|
|
96593
96767
|
optional: false
|
|
96594
96768
|
}],
|
|
96595
|
-
"ptz.
|
|
96769
|
+
"ptz.setHomeReturn": [{
|
|
96596
96770
|
name: "deviceId",
|
|
96597
96771
|
form: "single",
|
|
96598
96772
|
optional: false
|
package/dist/addon.mjs
CHANGED
|
@@ -58134,7 +58134,7 @@ var ZodIssueCode = {
|
|
|
58134
58134
|
var ZodFirstPartyTypeKind;
|
|
58135
58135
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
58136
58136
|
//#endregion
|
|
58137
|
-
//#region ../types/dist/sleep-
|
|
58137
|
+
//#region ../types/dist/sleep-Bs3xPtSh.mjs
|
|
58138
58138
|
/**
|
|
58139
58139
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
58140
58140
|
* window to float samples (D455).
|
|
@@ -64624,6 +64624,24 @@ var GetStreamWithCodecInputSchema = object({
|
|
|
64624
64624
|
});
|
|
64625
64625
|
var RtpSourceSchema = object({
|
|
64626
64626
|
url: string(),
|
|
64627
|
+
/**
|
|
64628
|
+
* The SENTRY counterpart of {@link url} — the dial that asks for the stream
|
|
64629
|
+
* WITHOUT asking for the camera — or `null` when this camera offers none.
|
|
64630
|
+
*
|
|
64631
|
+
* The broker answers it because the broker is the only thing that can:
|
|
64632
|
+
* eligibility is `sentryEligible` (a BATTERY camera that DECLARES the signals
|
|
64633
|
+
* cap), asked of facts only the broker holds. A consumer re-deriving it from
|
|
64634
|
+
* cap bindings would be a second authority, and two authorities on the same
|
|
64635
|
+
* question is how a composite camera ends up dialling a sleeping camera
|
|
64636
|
+
* because its own copy of the rule was a release behind.
|
|
64637
|
+
*
|
|
64638
|
+
* `null` is a real answer and is never a live url in disguise: a consumer
|
|
64639
|
+
* that silently fell back to {@link url} would perform exactly the wake this
|
|
64640
|
+
* field exists to prevent. Only a PASSTHROUGH acquisition can offer one — a
|
|
64641
|
+
* transcode hands back an egress the broker is feeding itself, which has no
|
|
64642
|
+
* sentry counterpart.
|
|
64643
|
+
*/
|
|
64644
|
+
sentryUrl: string().nullable().optional(),
|
|
64627
64645
|
videoCodec: _enum(["H264", "H265"]),
|
|
64628
64646
|
audioCodec: string(),
|
|
64629
64647
|
resolution: object({
|
|
@@ -81687,6 +81705,114 @@ var motionTriggerCapability = {
|
|
|
81687
81705
|
durability: "session"
|
|
81688
81706
|
};
|
|
81689
81707
|
/**
|
|
81708
|
+
* camera-grid-layout — the geometry of a COMPOSITE camera, on the camera's own
|
|
81709
|
+
* page.
|
|
81710
|
+
*
|
|
81711
|
+
* ## Why this is a capability and not an addon settings schema
|
|
81712
|
+
*
|
|
81713
|
+
* It was one, and it did not render. The addon declared the editor as a
|
|
81714
|
+
* `type: 'widget'` field inside its own `deviceSettingsSchema()`; the hub
|
|
81715
|
+
* returned that section correctly and `ConfigFormField` renders `type:'widget'`
|
|
81716
|
+
* perfectly well — and nothing ever asked camera-grid for it. The Cluster →
|
|
81717
|
+
* Pipeline → Device Overrides page interrogates a HAND-WRITTEN list of four
|
|
81718
|
+
* addons (`PIPELINE_CLUSTER_DEVICE_ADDONS`), whose own comment says an addon
|
|
81719
|
+
* not on it "falls off silently".
|
|
81720
|
+
*
|
|
81721
|
+
* Adding a fifth name to that list would have been the wrong fix twice over:
|
|
81722
|
+
* that page is per-camera DETECTION tuning, and a grid's geometry belongs
|
|
81723
|
+
* beside PTZ and motion zones on the camera itself — which is exactly where the
|
|
81724
|
+
* framework already puts a widget, when the widget is declared on a CAPABILITY.
|
|
81725
|
+
* `deviceConfig.ui` is the mechanism (`motion-zones`, `ptz`, `ptz-autotrack`
|
|
81726
|
+
* all use it): the framework emits the structural section and the widget
|
|
81727
|
+
* self-persists through the cap's own mutations.
|
|
81728
|
+
*
|
|
81729
|
+
* ## Why one addon may implement it
|
|
81730
|
+
*
|
|
81731
|
+
* It is a device-scoped NATIVE cap, registered by the grid camera device
|
|
81732
|
+
* itself. Nothing else declares a composite camera, so nothing else has a
|
|
81733
|
+
* layout — and the device-scoped route means the widget asks THE camera, not
|
|
81734
|
+
* "the camera-grid addon", which is what let the old custom-action pair be
|
|
81735
|
+
* reached only by a caller that already knew the addon id.
|
|
81736
|
+
*
|
|
81737
|
+
* ## The tab
|
|
81738
|
+
*
|
|
81739
|
+
* `streaming`, not a top-tab of its own. A grid's geometry IS what its stream
|
|
81740
|
+
* is, so the Streaming tab is where it belongs; a `grid` top-tab would need an
|
|
81741
|
+
* entry in `WELL_KNOWN_TAB_MAP` or the device page renders the raw id as the
|
|
81742
|
+
* label (measured on the robot camera, 2026-09-06 — a tab called "navigation"
|
|
81743
|
+
* next to "PTZ").
|
|
81744
|
+
*/
|
|
81745
|
+
/** A rectangle in normalized [0,1] coordinates of whatever contains it. */
|
|
81746
|
+
var GridNormalizedRectSchema = object({
|
|
81747
|
+
x: number().min(0).max(1),
|
|
81748
|
+
y: number().min(0).max(1),
|
|
81749
|
+
width: number().gt(0).max(1),
|
|
81750
|
+
height: number().gt(0).max(1)
|
|
81751
|
+
});
|
|
81752
|
+
/**
|
|
81753
|
+
* One source camera, the part of its picture taken, and where that part lands.
|
|
81754
|
+
*
|
|
81755
|
+
* Both rectangles are NORMALIZED (D519): a source camera can change resolution
|
|
81756
|
+
* — a profile switch, a firmware update, a substream that comes back different
|
|
81757
|
+
* — and a stored PIXEL rectangle would quietly start cutting the wrong region,
|
|
81758
|
+
* which is the class of bug nobody files.
|
|
81759
|
+
*/
|
|
81760
|
+
var GridLayoutCellSchema = object({
|
|
81761
|
+
deviceId: number().int().positive(),
|
|
81762
|
+
/** The part of the SOURCE taken, normalized against the source. */
|
|
81763
|
+
source: GridNormalizedRectSchema,
|
|
81764
|
+
/** Where it lands, normalized against the CANVAS. */
|
|
81765
|
+
cell: GridNormalizedRectSchema
|
|
81766
|
+
});
|
|
81767
|
+
/**
|
|
81768
|
+
* Which profiles this grid can actually compose, and why not.
|
|
81769
|
+
*
|
|
81770
|
+
* A grid's `high` composes its sources' `high` and its `low` their `low`, so a
|
|
81771
|
+
* profile is on offer only when EVERY source can serve it. The refusal NAMES
|
|
81772
|
+
* the sources, because "this grid has no low" is not a finding — "615 has no
|
|
81773
|
+
* low" is, and it is the one an operator can act on.
|
|
81774
|
+
*/
|
|
81775
|
+
var GridProfileOfferSchema = object({
|
|
81776
|
+
profile: _enum([
|
|
81777
|
+
"high",
|
|
81778
|
+
"mid",
|
|
81779
|
+
"low"
|
|
81780
|
+
]),
|
|
81781
|
+
offered: boolean(),
|
|
81782
|
+
/** Sources that cannot serve it. Empty when it is offered, or when there are no cells. */
|
|
81783
|
+
missingSources: array(number().int().positive())
|
|
81784
|
+
});
|
|
81785
|
+
var GridLayoutViewSchema = object({
|
|
81786
|
+
/** The persisted grid row this camera was declared from. */
|
|
81787
|
+
instanceId: string(),
|
|
81788
|
+
deviceId: number().int().nonnegative(),
|
|
81789
|
+
name: string(),
|
|
81790
|
+
/** The canvas the operator laid out — this grid's `high`. mid/low are scaled from it. */
|
|
81791
|
+
width: number().int(),
|
|
81792
|
+
height: number().int(),
|
|
81793
|
+
fps: number().int(),
|
|
81794
|
+
cells: array(GridLayoutCellSchema),
|
|
81795
|
+
/** What the catalog will publish, and what it refuses to. Read-only. */
|
|
81796
|
+
profiles: array(GridProfileOfferSchema)
|
|
81797
|
+
});
|
|
81798
|
+
var GridLayoutPatchSchema = object({
|
|
81799
|
+
deviceId: number().int().nonnegative(),
|
|
81800
|
+
name: string().min(1).max(160).optional(),
|
|
81801
|
+
width: number().int().min(160).max(7680).optional(),
|
|
81802
|
+
height: number().int().min(120).max(4320).optional(),
|
|
81803
|
+
fps: number().int().min(1).max(60).optional(),
|
|
81804
|
+
/**
|
|
81805
|
+
* The whole cell list at once. A per-cell patch would need an ordering the
|
|
81806
|
+
* editor does not have, and a half-applied layout is a picture nobody asked
|
|
81807
|
+
* for.
|
|
81808
|
+
*/
|
|
81809
|
+
cells: array(GridLayoutCellSchema).max(16)
|
|
81810
|
+
});
|
|
81811
|
+
DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), GridLayoutViewSchema.nullable(), { auth: "admin" }), method(GridLayoutPatchSchema, GridLayoutViewSchema, {
|
|
81812
|
+
kind: "mutation",
|
|
81813
|
+
auth: "admin"
|
|
81814
|
+
});
|
|
81815
|
+
/**
|
|
81690
81816
|
* Motion-zones share the same MaskShape vocabulary as privacy-mask — the
|
|
81691
81817
|
* on-camera motion-detection mask is a single `grid` region (a row-major
|
|
81692
81818
|
* boolean cell lattice the camera's onboard VMD evaluates). Composing it as
|
|
@@ -83993,6 +84119,26 @@ var PtzHomePresetSchema = object({
|
|
|
83993
84119
|
"none"
|
|
83994
84120
|
])
|
|
83995
84121
|
});
|
|
84122
|
+
/**
|
|
84123
|
+
* The camera's own idle-return behaviour: whether it goes home by itself, and
|
|
84124
|
+
* after how long.
|
|
84125
|
+
*
|
|
84126
|
+
* ONE shape, not two scalars, because on the camera they are ONE fact —
|
|
84127
|
+
* Reolink's guard point carries `benable` and `timeout` in the same element,
|
|
84128
|
+
* written by the same command. Reading them apart means two round-trips that
|
|
84129
|
+
* can disagree.
|
|
84130
|
+
*
|
|
84131
|
+
* `enabled` and `seconds` are INDEPENDENT: a camera can hold a 68 s delay with
|
|
84132
|
+
* the behaviour switched off, which is exactly what the vendor app leaves when
|
|
84133
|
+
* you turn the guard point off without clearing it. The first version of this
|
|
84134
|
+
* cap reported only the delay, so that state was invisible — a camera could be
|
|
84135
|
+
* configured to return after 68 seconds with no way to say whether it should
|
|
84136
|
+
* return at all.
|
|
84137
|
+
*/
|
|
84138
|
+
var PtzHomeReturnSchema = object({
|
|
84139
|
+
enabled: boolean(),
|
|
84140
|
+
seconds: number().int()
|
|
84141
|
+
});
|
|
83996
84142
|
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({
|
|
83997
84143
|
deviceId: number(),
|
|
83998
84144
|
presetId: string()
|
|
@@ -84018,8 +84164,9 @@ DeviceType.Camera, method(PtzMoveCommandSchema.extend({ deviceId: number() }), _
|
|
|
84018
84164
|
}), method(object({ deviceId: number() }), _void(), {
|
|
84019
84165
|
kind: "mutation",
|
|
84020
84166
|
auth: "admin"
|
|
84021
|
-
}), method(object({ deviceId: number() }),
|
|
84167
|
+
}), method(object({ deviceId: number() }), PtzHomeReturnSchema.nullable()), method(object({
|
|
84022
84168
|
deviceId: number(),
|
|
84169
|
+
enabled: boolean(),
|
|
84023
84170
|
seconds: number().int().min(0).max(3600)
|
|
84024
84171
|
}), _void(), {
|
|
84025
84172
|
kind: "mutation",
|
|
@@ -89540,6 +89687,18 @@ Object.freeze({
|
|
|
89540
89687
|
addonId: null,
|
|
89541
89688
|
access: "view"
|
|
89542
89689
|
},
|
|
89690
|
+
"cameraGridLayout.getLayout": {
|
|
89691
|
+
capName: "camera-grid-layout",
|
|
89692
|
+
capScope: "device",
|
|
89693
|
+
addonId: null,
|
|
89694
|
+
access: "view"
|
|
89695
|
+
},
|
|
89696
|
+
"cameraGridLayout.saveLayout": {
|
|
89697
|
+
capName: "camera-grid-layout",
|
|
89698
|
+
capScope: "device",
|
|
89699
|
+
addonId: null,
|
|
89700
|
+
access: "create"
|
|
89701
|
+
},
|
|
89543
89702
|
"cameraStreams.getBrokerStreams": {
|
|
89544
89703
|
capName: "camera-streams",
|
|
89545
89704
|
capScope: "device",
|
|
@@ -93290,7 +93449,7 @@ Object.freeze({
|
|
|
93290
93449
|
addonId: null,
|
|
93291
93450
|
access: "view"
|
|
93292
93451
|
},
|
|
93293
|
-
"ptz.
|
|
93452
|
+
"ptz.getHomeReturn": {
|
|
93294
93453
|
capName: "ptz",
|
|
93295
93454
|
capScope: "device",
|
|
93296
93455
|
addonId: null,
|
|
@@ -93350,7 +93509,7 @@ Object.freeze({
|
|
|
93350
93509
|
addonId: null,
|
|
93351
93510
|
access: "create"
|
|
93352
93511
|
},
|
|
93353
|
-
"ptz.
|
|
93512
|
+
"ptz.setHomeReturn": {
|
|
93354
93513
|
capName: "ptz",
|
|
93355
93514
|
capScope: "device",
|
|
93356
93515
|
addonId: null,
|
|
@@ -95239,6 +95398,21 @@ Object.freeze({
|
|
|
95239
95398
|
form: "single",
|
|
95240
95399
|
optional: false
|
|
95241
95400
|
}],
|
|
95401
|
+
"cameraGridLayout.getLayout": [{
|
|
95402
|
+
name: "deviceId",
|
|
95403
|
+
form: "single",
|
|
95404
|
+
optional: false
|
|
95405
|
+
}],
|
|
95406
|
+
"cameraGridLayout.saveLayout": [{
|
|
95407
|
+
name: "cells",
|
|
95408
|
+
form: "object-array",
|
|
95409
|
+
optional: false,
|
|
95410
|
+
itemField: "deviceId"
|
|
95411
|
+
}, {
|
|
95412
|
+
name: "deviceId",
|
|
95413
|
+
form: "single",
|
|
95414
|
+
optional: false
|
|
95415
|
+
}],
|
|
95242
95416
|
"cameraStreams.getBrokerStreams": [{
|
|
95243
95417
|
name: "deviceId",
|
|
95244
95418
|
form: "single",
|
|
@@ -96539,7 +96713,7 @@ Object.freeze({
|
|
|
96539
96713
|
form: "single",
|
|
96540
96714
|
optional: false
|
|
96541
96715
|
}],
|
|
96542
|
-
"ptz.
|
|
96716
|
+
"ptz.getHomeReturn": [{
|
|
96543
96717
|
name: "deviceId",
|
|
96544
96718
|
form: "single",
|
|
96545
96719
|
optional: false
|
|
@@ -96589,7 +96763,7 @@ Object.freeze({
|
|
|
96589
96763
|
form: "single",
|
|
96590
96764
|
optional: false
|
|
96591
96765
|
}],
|
|
96592
|
-
"ptz.
|
|
96766
|
+
"ptz.setHomeReturn": [{
|
|
96593
96767
|
name: "deviceId",
|
|
96594
96768
|
form: "single",
|
|
96595
96769
|
optional: false
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-provider-dreame",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.115",
|
|
4
4
|
"description": "Dreame robot-vacuum / lawn-mower device-provider addon for CamStack — wraps the @apocaliss92/nodedreame Dreamehome cloud client",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|