@camstack/addon-provider-wyze 0.2.116 → 0.2.118
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/addon.js +180 -6
- package/dist/addon.mjs +180 -6
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -5392,7 +5392,7 @@ var ZodIssueCode = {
|
|
|
5392
5392
|
var ZodFirstPartyTypeKind;
|
|
5393
5393
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5394
5394
|
//#endregion
|
|
5395
|
-
//#region ../types/dist/sleep-
|
|
5395
|
+
//#region ../types/dist/sleep-Bs3xPtSh.mjs
|
|
5396
5396
|
/**
|
|
5397
5397
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5398
5398
|
* window to float samples (D455).
|
|
@@ -11882,6 +11882,24 @@ var GetStreamWithCodecInputSchema = object({
|
|
|
11882
11882
|
});
|
|
11883
11883
|
var RtpSourceSchema = object({
|
|
11884
11884
|
url: string(),
|
|
11885
|
+
/**
|
|
11886
|
+
* The SENTRY counterpart of {@link url} — the dial that asks for the stream
|
|
11887
|
+
* WITHOUT asking for the camera — or `null` when this camera offers none.
|
|
11888
|
+
*
|
|
11889
|
+
* The broker answers it because the broker is the only thing that can:
|
|
11890
|
+
* eligibility is `sentryEligible` (a BATTERY camera that DECLARES the signals
|
|
11891
|
+
* cap), asked of facts only the broker holds. A consumer re-deriving it from
|
|
11892
|
+
* cap bindings would be a second authority, and two authorities on the same
|
|
11893
|
+
* question is how a composite camera ends up dialling a sleeping camera
|
|
11894
|
+
* because its own copy of the rule was a release behind.
|
|
11895
|
+
*
|
|
11896
|
+
* `null` is a real answer and is never a live url in disguise: a consumer
|
|
11897
|
+
* that silently fell back to {@link url} would perform exactly the wake this
|
|
11898
|
+
* field exists to prevent. Only a PASSTHROUGH acquisition can offer one — a
|
|
11899
|
+
* transcode hands back an egress the broker is feeding itself, which has no
|
|
11900
|
+
* sentry counterpart.
|
|
11901
|
+
*/
|
|
11902
|
+
sentryUrl: string().nullable().optional(),
|
|
11885
11903
|
videoCodec: _enum(["H264", "H265"]),
|
|
11886
11904
|
audioCodec: string(),
|
|
11887
11905
|
resolution: object({
|
|
@@ -29032,6 +29050,114 @@ var motionTriggerCapability = {
|
|
|
29032
29050
|
durability: "session"
|
|
29033
29051
|
};
|
|
29034
29052
|
/**
|
|
29053
|
+
* camera-grid-layout — the geometry of a COMPOSITE camera, on the camera's own
|
|
29054
|
+
* page.
|
|
29055
|
+
*
|
|
29056
|
+
* ## Why this is a capability and not an addon settings schema
|
|
29057
|
+
*
|
|
29058
|
+
* It was one, and it did not render. The addon declared the editor as a
|
|
29059
|
+
* `type: 'widget'` field inside its own `deviceSettingsSchema()`; the hub
|
|
29060
|
+
* returned that section correctly and `ConfigFormField` renders `type:'widget'`
|
|
29061
|
+
* perfectly well — and nothing ever asked camera-grid for it. The Cluster →
|
|
29062
|
+
* Pipeline → Device Overrides page interrogates a HAND-WRITTEN list of four
|
|
29063
|
+
* addons (`PIPELINE_CLUSTER_DEVICE_ADDONS`), whose own comment says an addon
|
|
29064
|
+
* not on it "falls off silently".
|
|
29065
|
+
*
|
|
29066
|
+
* Adding a fifth name to that list would have been the wrong fix twice over:
|
|
29067
|
+
* that page is per-camera DETECTION tuning, and a grid's geometry belongs
|
|
29068
|
+
* beside PTZ and motion zones on the camera itself — which is exactly where the
|
|
29069
|
+
* framework already puts a widget, when the widget is declared on a CAPABILITY.
|
|
29070
|
+
* `deviceConfig.ui` is the mechanism (`motion-zones`, `ptz`, `ptz-autotrack`
|
|
29071
|
+
* all use it): the framework emits the structural section and the widget
|
|
29072
|
+
* self-persists through the cap's own mutations.
|
|
29073
|
+
*
|
|
29074
|
+
* ## Why one addon may implement it
|
|
29075
|
+
*
|
|
29076
|
+
* It is a device-scoped NATIVE cap, registered by the grid camera device
|
|
29077
|
+
* itself. Nothing else declares a composite camera, so nothing else has a
|
|
29078
|
+
* layout — and the device-scoped route means the widget asks THE camera, not
|
|
29079
|
+
* "the camera-grid addon", which is what let the old custom-action pair be
|
|
29080
|
+
* reached only by a caller that already knew the addon id.
|
|
29081
|
+
*
|
|
29082
|
+
* ## The tab
|
|
29083
|
+
*
|
|
29084
|
+
* `streaming`, not a top-tab of its own. A grid's geometry IS what its stream
|
|
29085
|
+
* is, so the Streaming tab is where it belongs; a `grid` top-tab would need an
|
|
29086
|
+
* entry in `WELL_KNOWN_TAB_MAP` or the device page renders the raw id as the
|
|
29087
|
+
* label (measured on the robot camera, 2026-09-06 — a tab called "navigation"
|
|
29088
|
+
* next to "PTZ").
|
|
29089
|
+
*/
|
|
29090
|
+
/** A rectangle in normalized [0,1] coordinates of whatever contains it. */
|
|
29091
|
+
var GridNormalizedRectSchema = object({
|
|
29092
|
+
x: number().min(0).max(1),
|
|
29093
|
+
y: number().min(0).max(1),
|
|
29094
|
+
width: number().gt(0).max(1),
|
|
29095
|
+
height: number().gt(0).max(1)
|
|
29096
|
+
});
|
|
29097
|
+
/**
|
|
29098
|
+
* One source camera, the part of its picture taken, and where that part lands.
|
|
29099
|
+
*
|
|
29100
|
+
* Both rectangles are NORMALIZED (D519): a source camera can change resolution
|
|
29101
|
+
* — a profile switch, a firmware update, a substream that comes back different
|
|
29102
|
+
* — and a stored PIXEL rectangle would quietly start cutting the wrong region,
|
|
29103
|
+
* which is the class of bug nobody files.
|
|
29104
|
+
*/
|
|
29105
|
+
var GridLayoutCellSchema = object({
|
|
29106
|
+
deviceId: number().int().positive(),
|
|
29107
|
+
/** The part of the SOURCE taken, normalized against the source. */
|
|
29108
|
+
source: GridNormalizedRectSchema,
|
|
29109
|
+
/** Where it lands, normalized against the CANVAS. */
|
|
29110
|
+
cell: GridNormalizedRectSchema
|
|
29111
|
+
});
|
|
29112
|
+
/**
|
|
29113
|
+
* Which profiles this grid can actually compose, and why not.
|
|
29114
|
+
*
|
|
29115
|
+
* A grid's `high` composes its sources' `high` and its `low` their `low`, so a
|
|
29116
|
+
* profile is on offer only when EVERY source can serve it. The refusal NAMES
|
|
29117
|
+
* the sources, because "this grid has no low" is not a finding — "615 has no
|
|
29118
|
+
* low" is, and it is the one an operator can act on.
|
|
29119
|
+
*/
|
|
29120
|
+
var GridProfileOfferSchema = object({
|
|
29121
|
+
profile: _enum([
|
|
29122
|
+
"high",
|
|
29123
|
+
"mid",
|
|
29124
|
+
"low"
|
|
29125
|
+
]),
|
|
29126
|
+
offered: boolean(),
|
|
29127
|
+
/** Sources that cannot serve it. Empty when it is offered, or when there are no cells. */
|
|
29128
|
+
missingSources: array(number().int().positive())
|
|
29129
|
+
});
|
|
29130
|
+
var GridLayoutViewSchema = object({
|
|
29131
|
+
/** The persisted grid row this camera was declared from. */
|
|
29132
|
+
instanceId: string(),
|
|
29133
|
+
deviceId: number().int().nonnegative(),
|
|
29134
|
+
name: string(),
|
|
29135
|
+
/** The canvas the operator laid out — this grid's `high`. mid/low are scaled from it. */
|
|
29136
|
+
width: number().int(),
|
|
29137
|
+
height: number().int(),
|
|
29138
|
+
fps: number().int(),
|
|
29139
|
+
cells: array(GridLayoutCellSchema),
|
|
29140
|
+
/** What the catalog will publish, and what it refuses to. Read-only. */
|
|
29141
|
+
profiles: array(GridProfileOfferSchema)
|
|
29142
|
+
});
|
|
29143
|
+
var GridLayoutPatchSchema = object({
|
|
29144
|
+
deviceId: number().int().nonnegative(),
|
|
29145
|
+
name: string().min(1).max(160).optional(),
|
|
29146
|
+
width: number().int().min(160).max(7680).optional(),
|
|
29147
|
+
height: number().int().min(120).max(4320).optional(),
|
|
29148
|
+
fps: number().int().min(1).max(60).optional(),
|
|
29149
|
+
/**
|
|
29150
|
+
* The whole cell list at once. A per-cell patch would need an ordering the
|
|
29151
|
+
* editor does not have, and a half-applied layout is a picture nobody asked
|
|
29152
|
+
* for.
|
|
29153
|
+
*/
|
|
29154
|
+
cells: array(GridLayoutCellSchema).max(16)
|
|
29155
|
+
});
|
|
29156
|
+
DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), GridLayoutViewSchema.nullable(), { auth: "admin" }), method(GridLayoutPatchSchema, GridLayoutViewSchema, {
|
|
29157
|
+
kind: "mutation",
|
|
29158
|
+
auth: "admin"
|
|
29159
|
+
});
|
|
29160
|
+
/**
|
|
29035
29161
|
* Motion-zones share the same MaskShape vocabulary as privacy-mask — the
|
|
29036
29162
|
* on-camera motion-detection mask is a single `grid` region (a row-major
|
|
29037
29163
|
* boolean cell lattice the camera's onboard VMD evaluates). Composing it as
|
|
@@ -31190,6 +31316,26 @@ var PtzHomePresetSchema = object({
|
|
|
31190
31316
|
"none"
|
|
31191
31317
|
])
|
|
31192
31318
|
});
|
|
31319
|
+
/**
|
|
31320
|
+
* The camera's own idle-return behaviour: whether it goes home by itself, and
|
|
31321
|
+
* after how long.
|
|
31322
|
+
*
|
|
31323
|
+
* ONE shape, not two scalars, because on the camera they are ONE fact —
|
|
31324
|
+
* Reolink's guard point carries `benable` and `timeout` in the same element,
|
|
31325
|
+
* written by the same command. Reading them apart means two round-trips that
|
|
31326
|
+
* can disagree.
|
|
31327
|
+
*
|
|
31328
|
+
* `enabled` and `seconds` are INDEPENDENT: a camera can hold a 68 s delay with
|
|
31329
|
+
* the behaviour switched off, which is exactly what the vendor app leaves when
|
|
31330
|
+
* you turn the guard point off without clearing it. The first version of this
|
|
31331
|
+
* cap reported only the delay, so that state was invisible — a camera could be
|
|
31332
|
+
* configured to return after 68 seconds with no way to say whether it should
|
|
31333
|
+
* return at all.
|
|
31334
|
+
*/
|
|
31335
|
+
var PtzHomeReturnSchema = object({
|
|
31336
|
+
enabled: boolean(),
|
|
31337
|
+
seconds: number().int()
|
|
31338
|
+
});
|
|
31193
31339
|
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({
|
|
31194
31340
|
deviceId: number(),
|
|
31195
31341
|
presetId: string()
|
|
@@ -31215,8 +31361,9 @@ DeviceType.Camera, method(PtzMoveCommandSchema.extend({ deviceId: number() }), _
|
|
|
31215
31361
|
}), method(object({ deviceId: number() }), _void(), {
|
|
31216
31362
|
kind: "mutation",
|
|
31217
31363
|
auth: "admin"
|
|
31218
|
-
}), method(object({ deviceId: number() }),
|
|
31364
|
+
}), method(object({ deviceId: number() }), PtzHomeReturnSchema.nullable()), method(object({
|
|
31219
31365
|
deviceId: number(),
|
|
31366
|
+
enabled: boolean(),
|
|
31220
31367
|
seconds: number().int().min(0).max(3600)
|
|
31221
31368
|
}), _void(), {
|
|
31222
31369
|
kind: "mutation",
|
|
@@ -36737,6 +36884,18 @@ Object.freeze({
|
|
|
36737
36884
|
addonId: null,
|
|
36738
36885
|
access: "view"
|
|
36739
36886
|
},
|
|
36887
|
+
"cameraGridLayout.getLayout": {
|
|
36888
|
+
capName: "camera-grid-layout",
|
|
36889
|
+
capScope: "device",
|
|
36890
|
+
addonId: null,
|
|
36891
|
+
access: "view"
|
|
36892
|
+
},
|
|
36893
|
+
"cameraGridLayout.saveLayout": {
|
|
36894
|
+
capName: "camera-grid-layout",
|
|
36895
|
+
capScope: "device",
|
|
36896
|
+
addonId: null,
|
|
36897
|
+
access: "create"
|
|
36898
|
+
},
|
|
36740
36899
|
"cameraStreams.getBrokerStreams": {
|
|
36741
36900
|
capName: "camera-streams",
|
|
36742
36901
|
capScope: "device",
|
|
@@ -40487,7 +40646,7 @@ Object.freeze({
|
|
|
40487
40646
|
addonId: null,
|
|
40488
40647
|
access: "view"
|
|
40489
40648
|
},
|
|
40490
|
-
"ptz.
|
|
40649
|
+
"ptz.getHomeReturn": {
|
|
40491
40650
|
capName: "ptz",
|
|
40492
40651
|
capScope: "device",
|
|
40493
40652
|
addonId: null,
|
|
@@ -40547,7 +40706,7 @@ Object.freeze({
|
|
|
40547
40706
|
addonId: null,
|
|
40548
40707
|
access: "create"
|
|
40549
40708
|
},
|
|
40550
|
-
"ptz.
|
|
40709
|
+
"ptz.setHomeReturn": {
|
|
40551
40710
|
capName: "ptz",
|
|
40552
40711
|
capScope: "device",
|
|
40553
40712
|
addonId: null,
|
|
@@ -42436,6 +42595,21 @@ Object.freeze({
|
|
|
42436
42595
|
form: "single",
|
|
42437
42596
|
optional: false
|
|
42438
42597
|
}],
|
|
42598
|
+
"cameraGridLayout.getLayout": [{
|
|
42599
|
+
name: "deviceId",
|
|
42600
|
+
form: "single",
|
|
42601
|
+
optional: false
|
|
42602
|
+
}],
|
|
42603
|
+
"cameraGridLayout.saveLayout": [{
|
|
42604
|
+
name: "cells",
|
|
42605
|
+
form: "object-array",
|
|
42606
|
+
optional: false,
|
|
42607
|
+
itemField: "deviceId"
|
|
42608
|
+
}, {
|
|
42609
|
+
name: "deviceId",
|
|
42610
|
+
form: "single",
|
|
42611
|
+
optional: false
|
|
42612
|
+
}],
|
|
42439
42613
|
"cameraStreams.getBrokerStreams": [{
|
|
42440
42614
|
name: "deviceId",
|
|
42441
42615
|
form: "single",
|
|
@@ -43736,7 +43910,7 @@ Object.freeze({
|
|
|
43736
43910
|
form: "single",
|
|
43737
43911
|
optional: false
|
|
43738
43912
|
}],
|
|
43739
|
-
"ptz.
|
|
43913
|
+
"ptz.getHomeReturn": [{
|
|
43740
43914
|
name: "deviceId",
|
|
43741
43915
|
form: "single",
|
|
43742
43916
|
optional: false
|
|
@@ -43786,7 +43960,7 @@ Object.freeze({
|
|
|
43786
43960
|
form: "single",
|
|
43787
43961
|
optional: false
|
|
43788
43962
|
}],
|
|
43789
|
-
"ptz.
|
|
43963
|
+
"ptz.setHomeReturn": [{
|
|
43790
43964
|
name: "deviceId",
|
|
43791
43965
|
form: "single",
|
|
43792
43966
|
optional: false
|
package/dist/addon.mjs
CHANGED
|
@@ -5371,7 +5371,7 @@ var ZodIssueCode = {
|
|
|
5371
5371
|
var ZodFirstPartyTypeKind;
|
|
5372
5372
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5373
5373
|
//#endregion
|
|
5374
|
-
//#region ../types/dist/sleep-
|
|
5374
|
+
//#region ../types/dist/sleep-Bs3xPtSh.mjs
|
|
5375
5375
|
/**
|
|
5376
5376
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5377
5377
|
* window to float samples (D455).
|
|
@@ -11861,6 +11861,24 @@ var GetStreamWithCodecInputSchema = object({
|
|
|
11861
11861
|
});
|
|
11862
11862
|
var RtpSourceSchema = object({
|
|
11863
11863
|
url: string(),
|
|
11864
|
+
/**
|
|
11865
|
+
* The SENTRY counterpart of {@link url} — the dial that asks for the stream
|
|
11866
|
+
* WITHOUT asking for the camera — or `null` when this camera offers none.
|
|
11867
|
+
*
|
|
11868
|
+
* The broker answers it because the broker is the only thing that can:
|
|
11869
|
+
* eligibility is `sentryEligible` (a BATTERY camera that DECLARES the signals
|
|
11870
|
+
* cap), asked of facts only the broker holds. A consumer re-deriving it from
|
|
11871
|
+
* cap bindings would be a second authority, and two authorities on the same
|
|
11872
|
+
* question is how a composite camera ends up dialling a sleeping camera
|
|
11873
|
+
* because its own copy of the rule was a release behind.
|
|
11874
|
+
*
|
|
11875
|
+
* `null` is a real answer and is never a live url in disguise: a consumer
|
|
11876
|
+
* that silently fell back to {@link url} would perform exactly the wake this
|
|
11877
|
+
* field exists to prevent. Only a PASSTHROUGH acquisition can offer one — a
|
|
11878
|
+
* transcode hands back an egress the broker is feeding itself, which has no
|
|
11879
|
+
* sentry counterpart.
|
|
11880
|
+
*/
|
|
11881
|
+
sentryUrl: string().nullable().optional(),
|
|
11864
11882
|
videoCodec: _enum(["H264", "H265"]),
|
|
11865
11883
|
audioCodec: string(),
|
|
11866
11884
|
resolution: object({
|
|
@@ -29011,6 +29029,114 @@ var motionTriggerCapability = {
|
|
|
29011
29029
|
durability: "session"
|
|
29012
29030
|
};
|
|
29013
29031
|
/**
|
|
29032
|
+
* camera-grid-layout — the geometry of a COMPOSITE camera, on the camera's own
|
|
29033
|
+
* page.
|
|
29034
|
+
*
|
|
29035
|
+
* ## Why this is a capability and not an addon settings schema
|
|
29036
|
+
*
|
|
29037
|
+
* It was one, and it did not render. The addon declared the editor as a
|
|
29038
|
+
* `type: 'widget'` field inside its own `deviceSettingsSchema()`; the hub
|
|
29039
|
+
* returned that section correctly and `ConfigFormField` renders `type:'widget'`
|
|
29040
|
+
* perfectly well — and nothing ever asked camera-grid for it. The Cluster →
|
|
29041
|
+
* Pipeline → Device Overrides page interrogates a HAND-WRITTEN list of four
|
|
29042
|
+
* addons (`PIPELINE_CLUSTER_DEVICE_ADDONS`), whose own comment says an addon
|
|
29043
|
+
* not on it "falls off silently".
|
|
29044
|
+
*
|
|
29045
|
+
* Adding a fifth name to that list would have been the wrong fix twice over:
|
|
29046
|
+
* that page is per-camera DETECTION tuning, and a grid's geometry belongs
|
|
29047
|
+
* beside PTZ and motion zones on the camera itself — which is exactly where the
|
|
29048
|
+
* framework already puts a widget, when the widget is declared on a CAPABILITY.
|
|
29049
|
+
* `deviceConfig.ui` is the mechanism (`motion-zones`, `ptz`, `ptz-autotrack`
|
|
29050
|
+
* all use it): the framework emits the structural section and the widget
|
|
29051
|
+
* self-persists through the cap's own mutations.
|
|
29052
|
+
*
|
|
29053
|
+
* ## Why one addon may implement it
|
|
29054
|
+
*
|
|
29055
|
+
* It is a device-scoped NATIVE cap, registered by the grid camera device
|
|
29056
|
+
* itself. Nothing else declares a composite camera, so nothing else has a
|
|
29057
|
+
* layout — and the device-scoped route means the widget asks THE camera, not
|
|
29058
|
+
* "the camera-grid addon", which is what let the old custom-action pair be
|
|
29059
|
+
* reached only by a caller that already knew the addon id.
|
|
29060
|
+
*
|
|
29061
|
+
* ## The tab
|
|
29062
|
+
*
|
|
29063
|
+
* `streaming`, not a top-tab of its own. A grid's geometry IS what its stream
|
|
29064
|
+
* is, so the Streaming tab is where it belongs; a `grid` top-tab would need an
|
|
29065
|
+
* entry in `WELL_KNOWN_TAB_MAP` or the device page renders the raw id as the
|
|
29066
|
+
* label (measured on the robot camera, 2026-09-06 — a tab called "navigation"
|
|
29067
|
+
* next to "PTZ").
|
|
29068
|
+
*/
|
|
29069
|
+
/** A rectangle in normalized [0,1] coordinates of whatever contains it. */
|
|
29070
|
+
var GridNormalizedRectSchema = object({
|
|
29071
|
+
x: number().min(0).max(1),
|
|
29072
|
+
y: number().min(0).max(1),
|
|
29073
|
+
width: number().gt(0).max(1),
|
|
29074
|
+
height: number().gt(0).max(1)
|
|
29075
|
+
});
|
|
29076
|
+
/**
|
|
29077
|
+
* One source camera, the part of its picture taken, and where that part lands.
|
|
29078
|
+
*
|
|
29079
|
+
* Both rectangles are NORMALIZED (D519): a source camera can change resolution
|
|
29080
|
+
* — a profile switch, a firmware update, a substream that comes back different
|
|
29081
|
+
* — and a stored PIXEL rectangle would quietly start cutting the wrong region,
|
|
29082
|
+
* which is the class of bug nobody files.
|
|
29083
|
+
*/
|
|
29084
|
+
var GridLayoutCellSchema = object({
|
|
29085
|
+
deviceId: number().int().positive(),
|
|
29086
|
+
/** The part of the SOURCE taken, normalized against the source. */
|
|
29087
|
+
source: GridNormalizedRectSchema,
|
|
29088
|
+
/** Where it lands, normalized against the CANVAS. */
|
|
29089
|
+
cell: GridNormalizedRectSchema
|
|
29090
|
+
});
|
|
29091
|
+
/**
|
|
29092
|
+
* Which profiles this grid can actually compose, and why not.
|
|
29093
|
+
*
|
|
29094
|
+
* A grid's `high` composes its sources' `high` and its `low` their `low`, so a
|
|
29095
|
+
* profile is on offer only when EVERY source can serve it. The refusal NAMES
|
|
29096
|
+
* the sources, because "this grid has no low" is not a finding — "615 has no
|
|
29097
|
+
* low" is, and it is the one an operator can act on.
|
|
29098
|
+
*/
|
|
29099
|
+
var GridProfileOfferSchema = object({
|
|
29100
|
+
profile: _enum([
|
|
29101
|
+
"high",
|
|
29102
|
+
"mid",
|
|
29103
|
+
"low"
|
|
29104
|
+
]),
|
|
29105
|
+
offered: boolean(),
|
|
29106
|
+
/** Sources that cannot serve it. Empty when it is offered, or when there are no cells. */
|
|
29107
|
+
missingSources: array(number().int().positive())
|
|
29108
|
+
});
|
|
29109
|
+
var GridLayoutViewSchema = object({
|
|
29110
|
+
/** The persisted grid row this camera was declared from. */
|
|
29111
|
+
instanceId: string(),
|
|
29112
|
+
deviceId: number().int().nonnegative(),
|
|
29113
|
+
name: string(),
|
|
29114
|
+
/** The canvas the operator laid out — this grid's `high`. mid/low are scaled from it. */
|
|
29115
|
+
width: number().int(),
|
|
29116
|
+
height: number().int(),
|
|
29117
|
+
fps: number().int(),
|
|
29118
|
+
cells: array(GridLayoutCellSchema),
|
|
29119
|
+
/** What the catalog will publish, and what it refuses to. Read-only. */
|
|
29120
|
+
profiles: array(GridProfileOfferSchema)
|
|
29121
|
+
});
|
|
29122
|
+
var GridLayoutPatchSchema = object({
|
|
29123
|
+
deviceId: number().int().nonnegative(),
|
|
29124
|
+
name: string().min(1).max(160).optional(),
|
|
29125
|
+
width: number().int().min(160).max(7680).optional(),
|
|
29126
|
+
height: number().int().min(120).max(4320).optional(),
|
|
29127
|
+
fps: number().int().min(1).max(60).optional(),
|
|
29128
|
+
/**
|
|
29129
|
+
* The whole cell list at once. A per-cell patch would need an ordering the
|
|
29130
|
+
* editor does not have, and a half-applied layout is a picture nobody asked
|
|
29131
|
+
* for.
|
|
29132
|
+
*/
|
|
29133
|
+
cells: array(GridLayoutCellSchema).max(16)
|
|
29134
|
+
});
|
|
29135
|
+
DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), GridLayoutViewSchema.nullable(), { auth: "admin" }), method(GridLayoutPatchSchema, GridLayoutViewSchema, {
|
|
29136
|
+
kind: "mutation",
|
|
29137
|
+
auth: "admin"
|
|
29138
|
+
});
|
|
29139
|
+
/**
|
|
29014
29140
|
* Motion-zones share the same MaskShape vocabulary as privacy-mask — the
|
|
29015
29141
|
* on-camera motion-detection mask is a single `grid` region (a row-major
|
|
29016
29142
|
* boolean cell lattice the camera's onboard VMD evaluates). Composing it as
|
|
@@ -31169,6 +31295,26 @@ var PtzHomePresetSchema = object({
|
|
|
31169
31295
|
"none"
|
|
31170
31296
|
])
|
|
31171
31297
|
});
|
|
31298
|
+
/**
|
|
31299
|
+
* The camera's own idle-return behaviour: whether it goes home by itself, and
|
|
31300
|
+
* after how long.
|
|
31301
|
+
*
|
|
31302
|
+
* ONE shape, not two scalars, because on the camera they are ONE fact —
|
|
31303
|
+
* Reolink's guard point carries `benable` and `timeout` in the same element,
|
|
31304
|
+
* written by the same command. Reading them apart means two round-trips that
|
|
31305
|
+
* can disagree.
|
|
31306
|
+
*
|
|
31307
|
+
* `enabled` and `seconds` are INDEPENDENT: a camera can hold a 68 s delay with
|
|
31308
|
+
* the behaviour switched off, which is exactly what the vendor app leaves when
|
|
31309
|
+
* you turn the guard point off without clearing it. The first version of this
|
|
31310
|
+
* cap reported only the delay, so that state was invisible — a camera could be
|
|
31311
|
+
* configured to return after 68 seconds with no way to say whether it should
|
|
31312
|
+
* return at all.
|
|
31313
|
+
*/
|
|
31314
|
+
var PtzHomeReturnSchema = object({
|
|
31315
|
+
enabled: boolean(),
|
|
31316
|
+
seconds: number().int()
|
|
31317
|
+
});
|
|
31172
31318
|
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({
|
|
31173
31319
|
deviceId: number(),
|
|
31174
31320
|
presetId: string()
|
|
@@ -31194,8 +31340,9 @@ DeviceType.Camera, method(PtzMoveCommandSchema.extend({ deviceId: number() }), _
|
|
|
31194
31340
|
}), method(object({ deviceId: number() }), _void(), {
|
|
31195
31341
|
kind: "mutation",
|
|
31196
31342
|
auth: "admin"
|
|
31197
|
-
}), method(object({ deviceId: number() }),
|
|
31343
|
+
}), method(object({ deviceId: number() }), PtzHomeReturnSchema.nullable()), method(object({
|
|
31198
31344
|
deviceId: number(),
|
|
31345
|
+
enabled: boolean(),
|
|
31199
31346
|
seconds: number().int().min(0).max(3600)
|
|
31200
31347
|
}), _void(), {
|
|
31201
31348
|
kind: "mutation",
|
|
@@ -36716,6 +36863,18 @@ Object.freeze({
|
|
|
36716
36863
|
addonId: null,
|
|
36717
36864
|
access: "view"
|
|
36718
36865
|
},
|
|
36866
|
+
"cameraGridLayout.getLayout": {
|
|
36867
|
+
capName: "camera-grid-layout",
|
|
36868
|
+
capScope: "device",
|
|
36869
|
+
addonId: null,
|
|
36870
|
+
access: "view"
|
|
36871
|
+
},
|
|
36872
|
+
"cameraGridLayout.saveLayout": {
|
|
36873
|
+
capName: "camera-grid-layout",
|
|
36874
|
+
capScope: "device",
|
|
36875
|
+
addonId: null,
|
|
36876
|
+
access: "create"
|
|
36877
|
+
},
|
|
36719
36878
|
"cameraStreams.getBrokerStreams": {
|
|
36720
36879
|
capName: "camera-streams",
|
|
36721
36880
|
capScope: "device",
|
|
@@ -40466,7 +40625,7 @@ Object.freeze({
|
|
|
40466
40625
|
addonId: null,
|
|
40467
40626
|
access: "view"
|
|
40468
40627
|
},
|
|
40469
|
-
"ptz.
|
|
40628
|
+
"ptz.getHomeReturn": {
|
|
40470
40629
|
capName: "ptz",
|
|
40471
40630
|
capScope: "device",
|
|
40472
40631
|
addonId: null,
|
|
@@ -40526,7 +40685,7 @@ Object.freeze({
|
|
|
40526
40685
|
addonId: null,
|
|
40527
40686
|
access: "create"
|
|
40528
40687
|
},
|
|
40529
|
-
"ptz.
|
|
40688
|
+
"ptz.setHomeReturn": {
|
|
40530
40689
|
capName: "ptz",
|
|
40531
40690
|
capScope: "device",
|
|
40532
40691
|
addonId: null,
|
|
@@ -42415,6 +42574,21 @@ Object.freeze({
|
|
|
42415
42574
|
form: "single",
|
|
42416
42575
|
optional: false
|
|
42417
42576
|
}],
|
|
42577
|
+
"cameraGridLayout.getLayout": [{
|
|
42578
|
+
name: "deviceId",
|
|
42579
|
+
form: "single",
|
|
42580
|
+
optional: false
|
|
42581
|
+
}],
|
|
42582
|
+
"cameraGridLayout.saveLayout": [{
|
|
42583
|
+
name: "cells",
|
|
42584
|
+
form: "object-array",
|
|
42585
|
+
optional: false,
|
|
42586
|
+
itemField: "deviceId"
|
|
42587
|
+
}, {
|
|
42588
|
+
name: "deviceId",
|
|
42589
|
+
form: "single",
|
|
42590
|
+
optional: false
|
|
42591
|
+
}],
|
|
42418
42592
|
"cameraStreams.getBrokerStreams": [{
|
|
42419
42593
|
name: "deviceId",
|
|
42420
42594
|
form: "single",
|
|
@@ -43715,7 +43889,7 @@ Object.freeze({
|
|
|
43715
43889
|
form: "single",
|
|
43716
43890
|
optional: false
|
|
43717
43891
|
}],
|
|
43718
|
-
"ptz.
|
|
43892
|
+
"ptz.getHomeReturn": [{
|
|
43719
43893
|
name: "deviceId",
|
|
43720
43894
|
form: "single",
|
|
43721
43895
|
optional: false
|
|
@@ -43765,7 +43939,7 @@ Object.freeze({
|
|
|
43765
43939
|
form: "single",
|
|
43766
43940
|
optional: false
|
|
43767
43941
|
}],
|
|
43768
|
-
"ptz.
|
|
43942
|
+
"ptz.setHomeReturn": [{
|
|
43769
43943
|
name: "deviceId",
|
|
43770
43944
|
form: "single",
|
|
43771
43945
|
optional: false
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-provider-wyze",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.118",
|
|
4
4
|
"description": "Wyze camera device-provider addon for CamStack — wraps the @apocaliss92/wyze-bridge-js P2P/DTLS client, feeding the stream-broker via the pull-rfc4571 lazy-publish path (a structural twin of addon-provider-reolink)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|