@camstack/addon-import-alexa 0.2.111 → 0.2.113
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
|
@@ -5399,7 +5399,7 @@ var ZodIssueCode = {
|
|
|
5399
5399
|
var ZodFirstPartyTypeKind;
|
|
5400
5400
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5401
5401
|
//#endregion
|
|
5402
|
-
//#region ../types/dist/sleep-
|
|
5402
|
+
//#region ../types/dist/sleep-Bs3xPtSh.mjs
|
|
5403
5403
|
/**
|
|
5404
5404
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5405
5405
|
* window to float samples (D455).
|
|
@@ -12074,6 +12074,24 @@ var GetStreamWithCodecInputSchema = object({
|
|
|
12074
12074
|
});
|
|
12075
12075
|
var RtpSourceSchema = object({
|
|
12076
12076
|
url: string(),
|
|
12077
|
+
/**
|
|
12078
|
+
* The SENTRY counterpart of {@link url} — the dial that asks for the stream
|
|
12079
|
+
* WITHOUT asking for the camera — or `null` when this camera offers none.
|
|
12080
|
+
*
|
|
12081
|
+
* The broker answers it because the broker is the only thing that can:
|
|
12082
|
+
* eligibility is `sentryEligible` (a BATTERY camera that DECLARES the signals
|
|
12083
|
+
* cap), asked of facts only the broker holds. A consumer re-deriving it from
|
|
12084
|
+
* cap bindings would be a second authority, and two authorities on the same
|
|
12085
|
+
* question is how a composite camera ends up dialling a sleeping camera
|
|
12086
|
+
* because its own copy of the rule was a release behind.
|
|
12087
|
+
*
|
|
12088
|
+
* `null` is a real answer and is never a live url in disguise: a consumer
|
|
12089
|
+
* that silently fell back to {@link url} would perform exactly the wake this
|
|
12090
|
+
* field exists to prevent. Only a PASSTHROUGH acquisition can offer one — a
|
|
12091
|
+
* transcode hands back an egress the broker is feeding itself, which has no
|
|
12092
|
+
* sentry counterpart.
|
|
12093
|
+
*/
|
|
12094
|
+
sentryUrl: string().nullable().optional(),
|
|
12077
12095
|
videoCodec: _enum(["H264", "H265"]),
|
|
12078
12096
|
audioCodec: string(),
|
|
12079
12097
|
resolution: object({
|
|
@@ -29129,6 +29147,114 @@ var motionTriggerCapability = {
|
|
|
29129
29147
|
durability: "session"
|
|
29130
29148
|
};
|
|
29131
29149
|
/**
|
|
29150
|
+
* camera-grid-layout — the geometry of a COMPOSITE camera, on the camera's own
|
|
29151
|
+
* page.
|
|
29152
|
+
*
|
|
29153
|
+
* ## Why this is a capability and not an addon settings schema
|
|
29154
|
+
*
|
|
29155
|
+
* It was one, and it did not render. The addon declared the editor as a
|
|
29156
|
+
* `type: 'widget'` field inside its own `deviceSettingsSchema()`; the hub
|
|
29157
|
+
* returned that section correctly and `ConfigFormField` renders `type:'widget'`
|
|
29158
|
+
* perfectly well — and nothing ever asked camera-grid for it. The Cluster →
|
|
29159
|
+
* Pipeline → Device Overrides page interrogates a HAND-WRITTEN list of four
|
|
29160
|
+
* addons (`PIPELINE_CLUSTER_DEVICE_ADDONS`), whose own comment says an addon
|
|
29161
|
+
* not on it "falls off silently".
|
|
29162
|
+
*
|
|
29163
|
+
* Adding a fifth name to that list would have been the wrong fix twice over:
|
|
29164
|
+
* that page is per-camera DETECTION tuning, and a grid's geometry belongs
|
|
29165
|
+
* beside PTZ and motion zones on the camera itself — which is exactly where the
|
|
29166
|
+
* framework already puts a widget, when the widget is declared on a CAPABILITY.
|
|
29167
|
+
* `deviceConfig.ui` is the mechanism (`motion-zones`, `ptz`, `ptz-autotrack`
|
|
29168
|
+
* all use it): the framework emits the structural section and the widget
|
|
29169
|
+
* self-persists through the cap's own mutations.
|
|
29170
|
+
*
|
|
29171
|
+
* ## Why one addon may implement it
|
|
29172
|
+
*
|
|
29173
|
+
* It is a device-scoped NATIVE cap, registered by the grid camera device
|
|
29174
|
+
* itself. Nothing else declares a composite camera, so nothing else has a
|
|
29175
|
+
* layout — and the device-scoped route means the widget asks THE camera, not
|
|
29176
|
+
* "the camera-grid addon", which is what let the old custom-action pair be
|
|
29177
|
+
* reached only by a caller that already knew the addon id.
|
|
29178
|
+
*
|
|
29179
|
+
* ## The tab
|
|
29180
|
+
*
|
|
29181
|
+
* `streaming`, not a top-tab of its own. A grid's geometry IS what its stream
|
|
29182
|
+
* is, so the Streaming tab is where it belongs; a `grid` top-tab would need an
|
|
29183
|
+
* entry in `WELL_KNOWN_TAB_MAP` or the device page renders the raw id as the
|
|
29184
|
+
* label (measured on the robot camera, 2026-09-06 — a tab called "navigation"
|
|
29185
|
+
* next to "PTZ").
|
|
29186
|
+
*/
|
|
29187
|
+
/** A rectangle in normalized [0,1] coordinates of whatever contains it. */
|
|
29188
|
+
var GridNormalizedRectSchema = object({
|
|
29189
|
+
x: number().min(0).max(1),
|
|
29190
|
+
y: number().min(0).max(1),
|
|
29191
|
+
width: number().gt(0).max(1),
|
|
29192
|
+
height: number().gt(0).max(1)
|
|
29193
|
+
});
|
|
29194
|
+
/**
|
|
29195
|
+
* One source camera, the part of its picture taken, and where that part lands.
|
|
29196
|
+
*
|
|
29197
|
+
* Both rectangles are NORMALIZED (D519): a source camera can change resolution
|
|
29198
|
+
* — a profile switch, a firmware update, a substream that comes back different
|
|
29199
|
+
* — and a stored PIXEL rectangle would quietly start cutting the wrong region,
|
|
29200
|
+
* which is the class of bug nobody files.
|
|
29201
|
+
*/
|
|
29202
|
+
var GridLayoutCellSchema = object({
|
|
29203
|
+
deviceId: number().int().positive(),
|
|
29204
|
+
/** The part of the SOURCE taken, normalized against the source. */
|
|
29205
|
+
source: GridNormalizedRectSchema,
|
|
29206
|
+
/** Where it lands, normalized against the CANVAS. */
|
|
29207
|
+
cell: GridNormalizedRectSchema
|
|
29208
|
+
});
|
|
29209
|
+
/**
|
|
29210
|
+
* Which profiles this grid can actually compose, and why not.
|
|
29211
|
+
*
|
|
29212
|
+
* A grid's `high` composes its sources' `high` and its `low` their `low`, so a
|
|
29213
|
+
* profile is on offer only when EVERY source can serve it. The refusal NAMES
|
|
29214
|
+
* the sources, because "this grid has no low" is not a finding — "615 has no
|
|
29215
|
+
* low" is, and it is the one an operator can act on.
|
|
29216
|
+
*/
|
|
29217
|
+
var GridProfileOfferSchema = object({
|
|
29218
|
+
profile: _enum([
|
|
29219
|
+
"high",
|
|
29220
|
+
"mid",
|
|
29221
|
+
"low"
|
|
29222
|
+
]),
|
|
29223
|
+
offered: boolean(),
|
|
29224
|
+
/** Sources that cannot serve it. Empty when it is offered, or when there are no cells. */
|
|
29225
|
+
missingSources: array(number().int().positive())
|
|
29226
|
+
});
|
|
29227
|
+
var GridLayoutViewSchema = object({
|
|
29228
|
+
/** The persisted grid row this camera was declared from. */
|
|
29229
|
+
instanceId: string(),
|
|
29230
|
+
deviceId: number().int().nonnegative(),
|
|
29231
|
+
name: string(),
|
|
29232
|
+
/** The canvas the operator laid out — this grid's `high`. mid/low are scaled from it. */
|
|
29233
|
+
width: number().int(),
|
|
29234
|
+
height: number().int(),
|
|
29235
|
+
fps: number().int(),
|
|
29236
|
+
cells: array(GridLayoutCellSchema),
|
|
29237
|
+
/** What the catalog will publish, and what it refuses to. Read-only. */
|
|
29238
|
+
profiles: array(GridProfileOfferSchema)
|
|
29239
|
+
});
|
|
29240
|
+
var GridLayoutPatchSchema = object({
|
|
29241
|
+
deviceId: number().int().nonnegative(),
|
|
29242
|
+
name: string().min(1).max(160).optional(),
|
|
29243
|
+
width: number().int().min(160).max(7680).optional(),
|
|
29244
|
+
height: number().int().min(120).max(4320).optional(),
|
|
29245
|
+
fps: number().int().min(1).max(60).optional(),
|
|
29246
|
+
/**
|
|
29247
|
+
* The whole cell list at once. A per-cell patch would need an ordering the
|
|
29248
|
+
* editor does not have, and a half-applied layout is a picture nobody asked
|
|
29249
|
+
* for.
|
|
29250
|
+
*/
|
|
29251
|
+
cells: array(GridLayoutCellSchema).max(16)
|
|
29252
|
+
});
|
|
29253
|
+
DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), GridLayoutViewSchema.nullable(), { auth: "admin" }), method(GridLayoutPatchSchema, GridLayoutViewSchema, {
|
|
29254
|
+
kind: "mutation",
|
|
29255
|
+
auth: "admin"
|
|
29256
|
+
});
|
|
29257
|
+
/**
|
|
29132
29258
|
* Motion-zones share the same MaskShape vocabulary as privacy-mask — the
|
|
29133
29259
|
* on-camera motion-detection mask is a single `grid` region (a row-major
|
|
29134
29260
|
* boolean cell lattice the camera's onboard VMD evaluates). Composing it as
|
|
@@ -31287,6 +31413,26 @@ var PtzHomePresetSchema = object({
|
|
|
31287
31413
|
"none"
|
|
31288
31414
|
])
|
|
31289
31415
|
});
|
|
31416
|
+
/**
|
|
31417
|
+
* The camera's own idle-return behaviour: whether it goes home by itself, and
|
|
31418
|
+
* after how long.
|
|
31419
|
+
*
|
|
31420
|
+
* ONE shape, not two scalars, because on the camera they are ONE fact —
|
|
31421
|
+
* Reolink's guard point carries `benable` and `timeout` in the same element,
|
|
31422
|
+
* written by the same command. Reading them apart means two round-trips that
|
|
31423
|
+
* can disagree.
|
|
31424
|
+
*
|
|
31425
|
+
* `enabled` and `seconds` are INDEPENDENT: a camera can hold a 68 s delay with
|
|
31426
|
+
* the behaviour switched off, which is exactly what the vendor app leaves when
|
|
31427
|
+
* you turn the guard point off without clearing it. The first version of this
|
|
31428
|
+
* cap reported only the delay, so that state was invisible — a camera could be
|
|
31429
|
+
* configured to return after 68 seconds with no way to say whether it should
|
|
31430
|
+
* return at all.
|
|
31431
|
+
*/
|
|
31432
|
+
var PtzHomeReturnSchema = object({
|
|
31433
|
+
enabled: boolean(),
|
|
31434
|
+
seconds: number().int()
|
|
31435
|
+
});
|
|
31290
31436
|
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({
|
|
31291
31437
|
deviceId: number(),
|
|
31292
31438
|
presetId: string()
|
|
@@ -31312,8 +31458,9 @@ DeviceType.Camera, method(PtzMoveCommandSchema.extend({ deviceId: number() }), _
|
|
|
31312
31458
|
}), method(object({ deviceId: number() }), _void(), {
|
|
31313
31459
|
kind: "mutation",
|
|
31314
31460
|
auth: "admin"
|
|
31315
|
-
}), method(object({ deviceId: number() }),
|
|
31461
|
+
}), method(object({ deviceId: number() }), PtzHomeReturnSchema.nullable()), method(object({
|
|
31316
31462
|
deviceId: number(),
|
|
31463
|
+
enabled: boolean(),
|
|
31317
31464
|
seconds: number().int().min(0).max(3600)
|
|
31318
31465
|
}), _void(), {
|
|
31319
31466
|
kind: "mutation",
|
|
@@ -36834,6 +36981,18 @@ Object.freeze({
|
|
|
36834
36981
|
addonId: null,
|
|
36835
36982
|
access: "view"
|
|
36836
36983
|
},
|
|
36984
|
+
"cameraGridLayout.getLayout": {
|
|
36985
|
+
capName: "camera-grid-layout",
|
|
36986
|
+
capScope: "device",
|
|
36987
|
+
addonId: null,
|
|
36988
|
+
access: "view"
|
|
36989
|
+
},
|
|
36990
|
+
"cameraGridLayout.saveLayout": {
|
|
36991
|
+
capName: "camera-grid-layout",
|
|
36992
|
+
capScope: "device",
|
|
36993
|
+
addonId: null,
|
|
36994
|
+
access: "create"
|
|
36995
|
+
},
|
|
36837
36996
|
"cameraStreams.getBrokerStreams": {
|
|
36838
36997
|
capName: "camera-streams",
|
|
36839
36998
|
capScope: "device",
|
|
@@ -40584,7 +40743,7 @@ Object.freeze({
|
|
|
40584
40743
|
addonId: null,
|
|
40585
40744
|
access: "view"
|
|
40586
40745
|
},
|
|
40587
|
-
"ptz.
|
|
40746
|
+
"ptz.getHomeReturn": {
|
|
40588
40747
|
capName: "ptz",
|
|
40589
40748
|
capScope: "device",
|
|
40590
40749
|
addonId: null,
|
|
@@ -40644,7 +40803,7 @@ Object.freeze({
|
|
|
40644
40803
|
addonId: null,
|
|
40645
40804
|
access: "create"
|
|
40646
40805
|
},
|
|
40647
|
-
"ptz.
|
|
40806
|
+
"ptz.setHomeReturn": {
|
|
40648
40807
|
capName: "ptz",
|
|
40649
40808
|
capScope: "device",
|
|
40650
40809
|
addonId: null,
|
|
@@ -42533,6 +42692,21 @@ Object.freeze({
|
|
|
42533
42692
|
form: "single",
|
|
42534
42693
|
optional: false
|
|
42535
42694
|
}],
|
|
42695
|
+
"cameraGridLayout.getLayout": [{
|
|
42696
|
+
name: "deviceId",
|
|
42697
|
+
form: "single",
|
|
42698
|
+
optional: false
|
|
42699
|
+
}],
|
|
42700
|
+
"cameraGridLayout.saveLayout": [{
|
|
42701
|
+
name: "cells",
|
|
42702
|
+
form: "object-array",
|
|
42703
|
+
optional: false,
|
|
42704
|
+
itemField: "deviceId"
|
|
42705
|
+
}, {
|
|
42706
|
+
name: "deviceId",
|
|
42707
|
+
form: "single",
|
|
42708
|
+
optional: false
|
|
42709
|
+
}],
|
|
42536
42710
|
"cameraStreams.getBrokerStreams": [{
|
|
42537
42711
|
name: "deviceId",
|
|
42538
42712
|
form: "single",
|
|
@@ -43833,7 +44007,7 @@ Object.freeze({
|
|
|
43833
44007
|
form: "single",
|
|
43834
44008
|
optional: false
|
|
43835
44009
|
}],
|
|
43836
|
-
"ptz.
|
|
44010
|
+
"ptz.getHomeReturn": [{
|
|
43837
44011
|
name: "deviceId",
|
|
43838
44012
|
form: "single",
|
|
43839
44013
|
optional: false
|
|
@@ -43883,7 +44057,7 @@ Object.freeze({
|
|
|
43883
44057
|
form: "single",
|
|
43884
44058
|
optional: false
|
|
43885
44059
|
}],
|
|
43886
|
-
"ptz.
|
|
44060
|
+
"ptz.setHomeReturn": [{
|
|
43887
44061
|
name: "deviceId",
|
|
43888
44062
|
form: "single",
|
|
43889
44063
|
optional: false
|
package/dist/addon.mjs
CHANGED
|
@@ -5399,7 +5399,7 @@ var ZodIssueCode = {
|
|
|
5399
5399
|
var ZodFirstPartyTypeKind;
|
|
5400
5400
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5401
5401
|
//#endregion
|
|
5402
|
-
//#region ../types/dist/sleep-
|
|
5402
|
+
//#region ../types/dist/sleep-Bs3xPtSh.mjs
|
|
5403
5403
|
/**
|
|
5404
5404
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5405
5405
|
* window to float samples (D455).
|
|
@@ -12074,6 +12074,24 @@ var GetStreamWithCodecInputSchema = object({
|
|
|
12074
12074
|
});
|
|
12075
12075
|
var RtpSourceSchema = object({
|
|
12076
12076
|
url: string(),
|
|
12077
|
+
/**
|
|
12078
|
+
* The SENTRY counterpart of {@link url} — the dial that asks for the stream
|
|
12079
|
+
* WITHOUT asking for the camera — or `null` when this camera offers none.
|
|
12080
|
+
*
|
|
12081
|
+
* The broker answers it because the broker is the only thing that can:
|
|
12082
|
+
* eligibility is `sentryEligible` (a BATTERY camera that DECLARES the signals
|
|
12083
|
+
* cap), asked of facts only the broker holds. A consumer re-deriving it from
|
|
12084
|
+
* cap bindings would be a second authority, and two authorities on the same
|
|
12085
|
+
* question is how a composite camera ends up dialling a sleeping camera
|
|
12086
|
+
* because its own copy of the rule was a release behind.
|
|
12087
|
+
*
|
|
12088
|
+
* `null` is a real answer and is never a live url in disguise: a consumer
|
|
12089
|
+
* that silently fell back to {@link url} would perform exactly the wake this
|
|
12090
|
+
* field exists to prevent. Only a PASSTHROUGH acquisition can offer one — a
|
|
12091
|
+
* transcode hands back an egress the broker is feeding itself, which has no
|
|
12092
|
+
* sentry counterpart.
|
|
12093
|
+
*/
|
|
12094
|
+
sentryUrl: string().nullable().optional(),
|
|
12077
12095
|
videoCodec: _enum(["H264", "H265"]),
|
|
12078
12096
|
audioCodec: string(),
|
|
12079
12097
|
resolution: object({
|
|
@@ -29129,6 +29147,114 @@ var motionTriggerCapability = {
|
|
|
29129
29147
|
durability: "session"
|
|
29130
29148
|
};
|
|
29131
29149
|
/**
|
|
29150
|
+
* camera-grid-layout — the geometry of a COMPOSITE camera, on the camera's own
|
|
29151
|
+
* page.
|
|
29152
|
+
*
|
|
29153
|
+
* ## Why this is a capability and not an addon settings schema
|
|
29154
|
+
*
|
|
29155
|
+
* It was one, and it did not render. The addon declared the editor as a
|
|
29156
|
+
* `type: 'widget'` field inside its own `deviceSettingsSchema()`; the hub
|
|
29157
|
+
* returned that section correctly and `ConfigFormField` renders `type:'widget'`
|
|
29158
|
+
* perfectly well — and nothing ever asked camera-grid for it. The Cluster →
|
|
29159
|
+
* Pipeline → Device Overrides page interrogates a HAND-WRITTEN list of four
|
|
29160
|
+
* addons (`PIPELINE_CLUSTER_DEVICE_ADDONS`), whose own comment says an addon
|
|
29161
|
+
* not on it "falls off silently".
|
|
29162
|
+
*
|
|
29163
|
+
* Adding a fifth name to that list would have been the wrong fix twice over:
|
|
29164
|
+
* that page is per-camera DETECTION tuning, and a grid's geometry belongs
|
|
29165
|
+
* beside PTZ and motion zones on the camera itself — which is exactly where the
|
|
29166
|
+
* framework already puts a widget, when the widget is declared on a CAPABILITY.
|
|
29167
|
+
* `deviceConfig.ui` is the mechanism (`motion-zones`, `ptz`, `ptz-autotrack`
|
|
29168
|
+
* all use it): the framework emits the structural section and the widget
|
|
29169
|
+
* self-persists through the cap's own mutations.
|
|
29170
|
+
*
|
|
29171
|
+
* ## Why one addon may implement it
|
|
29172
|
+
*
|
|
29173
|
+
* It is a device-scoped NATIVE cap, registered by the grid camera device
|
|
29174
|
+
* itself. Nothing else declares a composite camera, so nothing else has a
|
|
29175
|
+
* layout — and the device-scoped route means the widget asks THE camera, not
|
|
29176
|
+
* "the camera-grid addon", which is what let the old custom-action pair be
|
|
29177
|
+
* reached only by a caller that already knew the addon id.
|
|
29178
|
+
*
|
|
29179
|
+
* ## The tab
|
|
29180
|
+
*
|
|
29181
|
+
* `streaming`, not a top-tab of its own. A grid's geometry IS what its stream
|
|
29182
|
+
* is, so the Streaming tab is where it belongs; a `grid` top-tab would need an
|
|
29183
|
+
* entry in `WELL_KNOWN_TAB_MAP` or the device page renders the raw id as the
|
|
29184
|
+
* label (measured on the robot camera, 2026-09-06 — a tab called "navigation"
|
|
29185
|
+
* next to "PTZ").
|
|
29186
|
+
*/
|
|
29187
|
+
/** A rectangle in normalized [0,1] coordinates of whatever contains it. */
|
|
29188
|
+
var GridNormalizedRectSchema = object({
|
|
29189
|
+
x: number().min(0).max(1),
|
|
29190
|
+
y: number().min(0).max(1),
|
|
29191
|
+
width: number().gt(0).max(1),
|
|
29192
|
+
height: number().gt(0).max(1)
|
|
29193
|
+
});
|
|
29194
|
+
/**
|
|
29195
|
+
* One source camera, the part of its picture taken, and where that part lands.
|
|
29196
|
+
*
|
|
29197
|
+
* Both rectangles are NORMALIZED (D519): a source camera can change resolution
|
|
29198
|
+
* — a profile switch, a firmware update, a substream that comes back different
|
|
29199
|
+
* — and a stored PIXEL rectangle would quietly start cutting the wrong region,
|
|
29200
|
+
* which is the class of bug nobody files.
|
|
29201
|
+
*/
|
|
29202
|
+
var GridLayoutCellSchema = object({
|
|
29203
|
+
deviceId: number().int().positive(),
|
|
29204
|
+
/** The part of the SOURCE taken, normalized against the source. */
|
|
29205
|
+
source: GridNormalizedRectSchema,
|
|
29206
|
+
/** Where it lands, normalized against the CANVAS. */
|
|
29207
|
+
cell: GridNormalizedRectSchema
|
|
29208
|
+
});
|
|
29209
|
+
/**
|
|
29210
|
+
* Which profiles this grid can actually compose, and why not.
|
|
29211
|
+
*
|
|
29212
|
+
* A grid's `high` composes its sources' `high` and its `low` their `low`, so a
|
|
29213
|
+
* profile is on offer only when EVERY source can serve it. The refusal NAMES
|
|
29214
|
+
* the sources, because "this grid has no low" is not a finding — "615 has no
|
|
29215
|
+
* low" is, and it is the one an operator can act on.
|
|
29216
|
+
*/
|
|
29217
|
+
var GridProfileOfferSchema = object({
|
|
29218
|
+
profile: _enum([
|
|
29219
|
+
"high",
|
|
29220
|
+
"mid",
|
|
29221
|
+
"low"
|
|
29222
|
+
]),
|
|
29223
|
+
offered: boolean(),
|
|
29224
|
+
/** Sources that cannot serve it. Empty when it is offered, or when there are no cells. */
|
|
29225
|
+
missingSources: array(number().int().positive())
|
|
29226
|
+
});
|
|
29227
|
+
var GridLayoutViewSchema = object({
|
|
29228
|
+
/** The persisted grid row this camera was declared from. */
|
|
29229
|
+
instanceId: string(),
|
|
29230
|
+
deviceId: number().int().nonnegative(),
|
|
29231
|
+
name: string(),
|
|
29232
|
+
/** The canvas the operator laid out — this grid's `high`. mid/low are scaled from it. */
|
|
29233
|
+
width: number().int(),
|
|
29234
|
+
height: number().int(),
|
|
29235
|
+
fps: number().int(),
|
|
29236
|
+
cells: array(GridLayoutCellSchema),
|
|
29237
|
+
/** What the catalog will publish, and what it refuses to. Read-only. */
|
|
29238
|
+
profiles: array(GridProfileOfferSchema)
|
|
29239
|
+
});
|
|
29240
|
+
var GridLayoutPatchSchema = object({
|
|
29241
|
+
deviceId: number().int().nonnegative(),
|
|
29242
|
+
name: string().min(1).max(160).optional(),
|
|
29243
|
+
width: number().int().min(160).max(7680).optional(),
|
|
29244
|
+
height: number().int().min(120).max(4320).optional(),
|
|
29245
|
+
fps: number().int().min(1).max(60).optional(),
|
|
29246
|
+
/**
|
|
29247
|
+
* The whole cell list at once. A per-cell patch would need an ordering the
|
|
29248
|
+
* editor does not have, and a half-applied layout is a picture nobody asked
|
|
29249
|
+
* for.
|
|
29250
|
+
*/
|
|
29251
|
+
cells: array(GridLayoutCellSchema).max(16)
|
|
29252
|
+
});
|
|
29253
|
+
DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), GridLayoutViewSchema.nullable(), { auth: "admin" }), method(GridLayoutPatchSchema, GridLayoutViewSchema, {
|
|
29254
|
+
kind: "mutation",
|
|
29255
|
+
auth: "admin"
|
|
29256
|
+
});
|
|
29257
|
+
/**
|
|
29132
29258
|
* Motion-zones share the same MaskShape vocabulary as privacy-mask — the
|
|
29133
29259
|
* on-camera motion-detection mask is a single `grid` region (a row-major
|
|
29134
29260
|
* boolean cell lattice the camera's onboard VMD evaluates). Composing it as
|
|
@@ -31287,6 +31413,26 @@ var PtzHomePresetSchema = object({
|
|
|
31287
31413
|
"none"
|
|
31288
31414
|
])
|
|
31289
31415
|
});
|
|
31416
|
+
/**
|
|
31417
|
+
* The camera's own idle-return behaviour: whether it goes home by itself, and
|
|
31418
|
+
* after how long.
|
|
31419
|
+
*
|
|
31420
|
+
* ONE shape, not two scalars, because on the camera they are ONE fact —
|
|
31421
|
+
* Reolink's guard point carries `benable` and `timeout` in the same element,
|
|
31422
|
+
* written by the same command. Reading them apart means two round-trips that
|
|
31423
|
+
* can disagree.
|
|
31424
|
+
*
|
|
31425
|
+
* `enabled` and `seconds` are INDEPENDENT: a camera can hold a 68 s delay with
|
|
31426
|
+
* the behaviour switched off, which is exactly what the vendor app leaves when
|
|
31427
|
+
* you turn the guard point off without clearing it. The first version of this
|
|
31428
|
+
* cap reported only the delay, so that state was invisible — a camera could be
|
|
31429
|
+
* configured to return after 68 seconds with no way to say whether it should
|
|
31430
|
+
* return at all.
|
|
31431
|
+
*/
|
|
31432
|
+
var PtzHomeReturnSchema = object({
|
|
31433
|
+
enabled: boolean(),
|
|
31434
|
+
seconds: number().int()
|
|
31435
|
+
});
|
|
31290
31436
|
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({
|
|
31291
31437
|
deviceId: number(),
|
|
31292
31438
|
presetId: string()
|
|
@@ -31312,8 +31458,9 @@ DeviceType.Camera, method(PtzMoveCommandSchema.extend({ deviceId: number() }), _
|
|
|
31312
31458
|
}), method(object({ deviceId: number() }), _void(), {
|
|
31313
31459
|
kind: "mutation",
|
|
31314
31460
|
auth: "admin"
|
|
31315
|
-
}), method(object({ deviceId: number() }),
|
|
31461
|
+
}), method(object({ deviceId: number() }), PtzHomeReturnSchema.nullable()), method(object({
|
|
31316
31462
|
deviceId: number(),
|
|
31463
|
+
enabled: boolean(),
|
|
31317
31464
|
seconds: number().int().min(0).max(3600)
|
|
31318
31465
|
}), _void(), {
|
|
31319
31466
|
kind: "mutation",
|
|
@@ -36834,6 +36981,18 @@ Object.freeze({
|
|
|
36834
36981
|
addonId: null,
|
|
36835
36982
|
access: "view"
|
|
36836
36983
|
},
|
|
36984
|
+
"cameraGridLayout.getLayout": {
|
|
36985
|
+
capName: "camera-grid-layout",
|
|
36986
|
+
capScope: "device",
|
|
36987
|
+
addonId: null,
|
|
36988
|
+
access: "view"
|
|
36989
|
+
},
|
|
36990
|
+
"cameraGridLayout.saveLayout": {
|
|
36991
|
+
capName: "camera-grid-layout",
|
|
36992
|
+
capScope: "device",
|
|
36993
|
+
addonId: null,
|
|
36994
|
+
access: "create"
|
|
36995
|
+
},
|
|
36837
36996
|
"cameraStreams.getBrokerStreams": {
|
|
36838
36997
|
capName: "camera-streams",
|
|
36839
36998
|
capScope: "device",
|
|
@@ -40584,7 +40743,7 @@ Object.freeze({
|
|
|
40584
40743
|
addonId: null,
|
|
40585
40744
|
access: "view"
|
|
40586
40745
|
},
|
|
40587
|
-
"ptz.
|
|
40746
|
+
"ptz.getHomeReturn": {
|
|
40588
40747
|
capName: "ptz",
|
|
40589
40748
|
capScope: "device",
|
|
40590
40749
|
addonId: null,
|
|
@@ -40644,7 +40803,7 @@ Object.freeze({
|
|
|
40644
40803
|
addonId: null,
|
|
40645
40804
|
access: "create"
|
|
40646
40805
|
},
|
|
40647
|
-
"ptz.
|
|
40806
|
+
"ptz.setHomeReturn": {
|
|
40648
40807
|
capName: "ptz",
|
|
40649
40808
|
capScope: "device",
|
|
40650
40809
|
addonId: null,
|
|
@@ -42533,6 +42692,21 @@ Object.freeze({
|
|
|
42533
42692
|
form: "single",
|
|
42534
42693
|
optional: false
|
|
42535
42694
|
}],
|
|
42695
|
+
"cameraGridLayout.getLayout": [{
|
|
42696
|
+
name: "deviceId",
|
|
42697
|
+
form: "single",
|
|
42698
|
+
optional: false
|
|
42699
|
+
}],
|
|
42700
|
+
"cameraGridLayout.saveLayout": [{
|
|
42701
|
+
name: "cells",
|
|
42702
|
+
form: "object-array",
|
|
42703
|
+
optional: false,
|
|
42704
|
+
itemField: "deviceId"
|
|
42705
|
+
}, {
|
|
42706
|
+
name: "deviceId",
|
|
42707
|
+
form: "single",
|
|
42708
|
+
optional: false
|
|
42709
|
+
}],
|
|
42536
42710
|
"cameraStreams.getBrokerStreams": [{
|
|
42537
42711
|
name: "deviceId",
|
|
42538
42712
|
form: "single",
|
|
@@ -43833,7 +44007,7 @@ Object.freeze({
|
|
|
43833
44007
|
form: "single",
|
|
43834
44008
|
optional: false
|
|
43835
44009
|
}],
|
|
43836
|
-
"ptz.
|
|
44010
|
+
"ptz.getHomeReturn": [{
|
|
43837
44011
|
name: "deviceId",
|
|
43838
44012
|
form: "single",
|
|
43839
44013
|
optional: false
|
|
@@ -43883,7 +44057,7 @@ Object.freeze({
|
|
|
43883
44057
|
form: "single",
|
|
43884
44058
|
optional: false
|
|
43885
44059
|
}],
|
|
43886
|
-
"ptz.
|
|
44060
|
+
"ptz.setHomeReturn": [{
|
|
43887
44061
|
name: "deviceId",
|
|
43888
44062
|
form: "single",
|
|
43889
44063
|
optional: false
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-import-alexa",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.113",
|
|
4
4
|
"description": "Alexa device-import provider for CamStack — imports the smart-home devices in a user's Alexa account via the unofficial alexa-remote2 cookie/token client (the inverse of the Alexa exporter)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|