@camstack/addon-export-alexa 1.2.119 → 1.2.121
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/export-alexa.addon.js +180 -6
- package/dist/export-alexa.addon.mjs +180 -6
- package/package.json +1 -1
|
@@ -5387,7 +5387,7 @@ var ZodIssueCode = {
|
|
|
5387
5387
|
var ZodFirstPartyTypeKind;
|
|
5388
5388
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5389
5389
|
//#endregion
|
|
5390
|
-
//#region ../types/dist/sleep-
|
|
5390
|
+
//#region ../types/dist/sleep-Bs3xPtSh.mjs
|
|
5391
5391
|
/**
|
|
5392
5392
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5393
5393
|
* window to float samples (D455).
|
|
@@ -12149,6 +12149,24 @@ var GetStreamWithCodecInputSchema = object({
|
|
|
12149
12149
|
});
|
|
12150
12150
|
var RtpSourceSchema = object({
|
|
12151
12151
|
url: string(),
|
|
12152
|
+
/**
|
|
12153
|
+
* The SENTRY counterpart of {@link url} — the dial that asks for the stream
|
|
12154
|
+
* WITHOUT asking for the camera — or `null` when this camera offers none.
|
|
12155
|
+
*
|
|
12156
|
+
* The broker answers it because the broker is the only thing that can:
|
|
12157
|
+
* eligibility is `sentryEligible` (a BATTERY camera that DECLARES the signals
|
|
12158
|
+
* cap), asked of facts only the broker holds. A consumer re-deriving it from
|
|
12159
|
+
* cap bindings would be a second authority, and two authorities on the same
|
|
12160
|
+
* question is how a composite camera ends up dialling a sleeping camera
|
|
12161
|
+
* because its own copy of the rule was a release behind.
|
|
12162
|
+
*
|
|
12163
|
+
* `null` is a real answer and is never a live url in disguise: a consumer
|
|
12164
|
+
* that silently fell back to {@link url} would perform exactly the wake this
|
|
12165
|
+
* field exists to prevent. Only a PASSTHROUGH acquisition can offer one — a
|
|
12166
|
+
* transcode hands back an egress the broker is feeding itself, which has no
|
|
12167
|
+
* sentry counterpart.
|
|
12168
|
+
*/
|
|
12169
|
+
sentryUrl: string().nullable().optional(),
|
|
12152
12170
|
videoCodec: _enum(["H264", "H265"]),
|
|
12153
12171
|
audioCodec: string(),
|
|
12154
12172
|
resolution: object({
|
|
@@ -27532,6 +27550,114 @@ DeviceType.Light, DeviceType.Siren, DeviceType.Switch, method(object({
|
|
|
27532
27550
|
lastChangedAt: number()
|
|
27533
27551
|
});
|
|
27534
27552
|
/**
|
|
27553
|
+
* camera-grid-layout — the geometry of a COMPOSITE camera, on the camera's own
|
|
27554
|
+
* page.
|
|
27555
|
+
*
|
|
27556
|
+
* ## Why this is a capability and not an addon settings schema
|
|
27557
|
+
*
|
|
27558
|
+
* It was one, and it did not render. The addon declared the editor as a
|
|
27559
|
+
* `type: 'widget'` field inside its own `deviceSettingsSchema()`; the hub
|
|
27560
|
+
* returned that section correctly and `ConfigFormField` renders `type:'widget'`
|
|
27561
|
+
* perfectly well — and nothing ever asked camera-grid for it. The Cluster →
|
|
27562
|
+
* Pipeline → Device Overrides page interrogates a HAND-WRITTEN list of four
|
|
27563
|
+
* addons (`PIPELINE_CLUSTER_DEVICE_ADDONS`), whose own comment says an addon
|
|
27564
|
+
* not on it "falls off silently".
|
|
27565
|
+
*
|
|
27566
|
+
* Adding a fifth name to that list would have been the wrong fix twice over:
|
|
27567
|
+
* that page is per-camera DETECTION tuning, and a grid's geometry belongs
|
|
27568
|
+
* beside PTZ and motion zones on the camera itself — which is exactly where the
|
|
27569
|
+
* framework already puts a widget, when the widget is declared on a CAPABILITY.
|
|
27570
|
+
* `deviceConfig.ui` is the mechanism (`motion-zones`, `ptz`, `ptz-autotrack`
|
|
27571
|
+
* all use it): the framework emits the structural section and the widget
|
|
27572
|
+
* self-persists through the cap's own mutations.
|
|
27573
|
+
*
|
|
27574
|
+
* ## Why one addon may implement it
|
|
27575
|
+
*
|
|
27576
|
+
* It is a device-scoped NATIVE cap, registered by the grid camera device
|
|
27577
|
+
* itself. Nothing else declares a composite camera, so nothing else has a
|
|
27578
|
+
* layout — and the device-scoped route means the widget asks THE camera, not
|
|
27579
|
+
* "the camera-grid addon", which is what let the old custom-action pair be
|
|
27580
|
+
* reached only by a caller that already knew the addon id.
|
|
27581
|
+
*
|
|
27582
|
+
* ## The tab
|
|
27583
|
+
*
|
|
27584
|
+
* `streaming`, not a top-tab of its own. A grid's geometry IS what its stream
|
|
27585
|
+
* is, so the Streaming tab is where it belongs; a `grid` top-tab would need an
|
|
27586
|
+
* entry in `WELL_KNOWN_TAB_MAP` or the device page renders the raw id as the
|
|
27587
|
+
* label (measured on the robot camera, 2026-09-06 — a tab called "navigation"
|
|
27588
|
+
* next to "PTZ").
|
|
27589
|
+
*/
|
|
27590
|
+
/** A rectangle in normalized [0,1] coordinates of whatever contains it. */
|
|
27591
|
+
var GridNormalizedRectSchema = object({
|
|
27592
|
+
x: number().min(0).max(1),
|
|
27593
|
+
y: number().min(0).max(1),
|
|
27594
|
+
width: number().gt(0).max(1),
|
|
27595
|
+
height: number().gt(0).max(1)
|
|
27596
|
+
});
|
|
27597
|
+
/**
|
|
27598
|
+
* One source camera, the part of its picture taken, and where that part lands.
|
|
27599
|
+
*
|
|
27600
|
+
* Both rectangles are NORMALIZED (D519): a source camera can change resolution
|
|
27601
|
+
* — a profile switch, a firmware update, a substream that comes back different
|
|
27602
|
+
* — and a stored PIXEL rectangle would quietly start cutting the wrong region,
|
|
27603
|
+
* which is the class of bug nobody files.
|
|
27604
|
+
*/
|
|
27605
|
+
var GridLayoutCellSchema = object({
|
|
27606
|
+
deviceId: number().int().positive(),
|
|
27607
|
+
/** The part of the SOURCE taken, normalized against the source. */
|
|
27608
|
+
source: GridNormalizedRectSchema,
|
|
27609
|
+
/** Where it lands, normalized against the CANVAS. */
|
|
27610
|
+
cell: GridNormalizedRectSchema
|
|
27611
|
+
});
|
|
27612
|
+
/**
|
|
27613
|
+
* Which profiles this grid can actually compose, and why not.
|
|
27614
|
+
*
|
|
27615
|
+
* A grid's `high` composes its sources' `high` and its `low` their `low`, so a
|
|
27616
|
+
* profile is on offer only when EVERY source can serve it. The refusal NAMES
|
|
27617
|
+
* the sources, because "this grid has no low" is not a finding — "615 has no
|
|
27618
|
+
* low" is, and it is the one an operator can act on.
|
|
27619
|
+
*/
|
|
27620
|
+
var GridProfileOfferSchema = object({
|
|
27621
|
+
profile: _enum([
|
|
27622
|
+
"high",
|
|
27623
|
+
"mid",
|
|
27624
|
+
"low"
|
|
27625
|
+
]),
|
|
27626
|
+
offered: boolean(),
|
|
27627
|
+
/** Sources that cannot serve it. Empty when it is offered, or when there are no cells. */
|
|
27628
|
+
missingSources: array(number().int().positive())
|
|
27629
|
+
});
|
|
27630
|
+
var GridLayoutViewSchema = object({
|
|
27631
|
+
/** The persisted grid row this camera was declared from. */
|
|
27632
|
+
instanceId: string(),
|
|
27633
|
+
deviceId: number().int().nonnegative(),
|
|
27634
|
+
name: string(),
|
|
27635
|
+
/** The canvas the operator laid out — this grid's `high`. mid/low are scaled from it. */
|
|
27636
|
+
width: number().int(),
|
|
27637
|
+
height: number().int(),
|
|
27638
|
+
fps: number().int(),
|
|
27639
|
+
cells: array(GridLayoutCellSchema),
|
|
27640
|
+
/** What the catalog will publish, and what it refuses to. Read-only. */
|
|
27641
|
+
profiles: array(GridProfileOfferSchema)
|
|
27642
|
+
});
|
|
27643
|
+
var GridLayoutPatchSchema = object({
|
|
27644
|
+
deviceId: number().int().nonnegative(),
|
|
27645
|
+
name: string().min(1).max(160).optional(),
|
|
27646
|
+
width: number().int().min(160).max(7680).optional(),
|
|
27647
|
+
height: number().int().min(120).max(4320).optional(),
|
|
27648
|
+
fps: number().int().min(1).max(60).optional(),
|
|
27649
|
+
/**
|
|
27650
|
+
* The whole cell list at once. A per-cell patch would need an ordering the
|
|
27651
|
+
* editor does not have, and a half-applied layout is a picture nobody asked
|
|
27652
|
+
* for.
|
|
27653
|
+
*/
|
|
27654
|
+
cells: array(GridLayoutCellSchema).max(16)
|
|
27655
|
+
});
|
|
27656
|
+
DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), GridLayoutViewSchema.nullable(), { auth: "admin" }), method(GridLayoutPatchSchema, GridLayoutViewSchema, {
|
|
27657
|
+
kind: "mutation",
|
|
27658
|
+
auth: "admin"
|
|
27659
|
+
});
|
|
27660
|
+
/**
|
|
27535
27661
|
* Motion-zones share the same MaskShape vocabulary as privacy-mask — the
|
|
27536
27662
|
* on-camera motion-detection mask is a single `grid` region (a row-major
|
|
27537
27663
|
* boolean cell lattice the camera's onboard VMD evaluates). Composing it as
|
|
@@ -29231,6 +29357,26 @@ var PtzHomePresetSchema = object({
|
|
|
29231
29357
|
"none"
|
|
29232
29358
|
])
|
|
29233
29359
|
});
|
|
29360
|
+
/**
|
|
29361
|
+
* The camera's own idle-return behaviour: whether it goes home by itself, and
|
|
29362
|
+
* after how long.
|
|
29363
|
+
*
|
|
29364
|
+
* ONE shape, not two scalars, because on the camera they are ONE fact —
|
|
29365
|
+
* Reolink's guard point carries `benable` and `timeout` in the same element,
|
|
29366
|
+
* written by the same command. Reading them apart means two round-trips that
|
|
29367
|
+
* can disagree.
|
|
29368
|
+
*
|
|
29369
|
+
* `enabled` and `seconds` are INDEPENDENT: a camera can hold a 68 s delay with
|
|
29370
|
+
* the behaviour switched off, which is exactly what the vendor app leaves when
|
|
29371
|
+
* you turn the guard point off without clearing it. The first version of this
|
|
29372
|
+
* cap reported only the delay, so that state was invisible — a camera could be
|
|
29373
|
+
* configured to return after 68 seconds with no way to say whether it should
|
|
29374
|
+
* return at all.
|
|
29375
|
+
*/
|
|
29376
|
+
var PtzHomeReturnSchema = object({
|
|
29377
|
+
enabled: boolean(),
|
|
29378
|
+
seconds: number().int()
|
|
29379
|
+
});
|
|
29234
29380
|
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({
|
|
29235
29381
|
deviceId: number(),
|
|
29236
29382
|
presetId: string()
|
|
@@ -29256,8 +29402,9 @@ DeviceType.Camera, method(PtzMoveCommandSchema.extend({ deviceId: number() }), _
|
|
|
29256
29402
|
}), method(object({ deviceId: number() }), _void(), {
|
|
29257
29403
|
kind: "mutation",
|
|
29258
29404
|
auth: "admin"
|
|
29259
|
-
}), method(object({ deviceId: number() }),
|
|
29405
|
+
}), method(object({ deviceId: number() }), PtzHomeReturnSchema.nullable()), method(object({
|
|
29260
29406
|
deviceId: number(),
|
|
29407
|
+
enabled: boolean(),
|
|
29261
29408
|
seconds: number().int().min(0).max(3600)
|
|
29262
29409
|
}), _void(), {
|
|
29263
29410
|
kind: "mutation",
|
|
@@ -32539,6 +32686,18 @@ Object.freeze({
|
|
|
32539
32686
|
addonId: null,
|
|
32540
32687
|
access: "view"
|
|
32541
32688
|
},
|
|
32689
|
+
"cameraGridLayout.getLayout": {
|
|
32690
|
+
capName: "camera-grid-layout",
|
|
32691
|
+
capScope: "device",
|
|
32692
|
+
addonId: null,
|
|
32693
|
+
access: "view"
|
|
32694
|
+
},
|
|
32695
|
+
"cameraGridLayout.saveLayout": {
|
|
32696
|
+
capName: "camera-grid-layout",
|
|
32697
|
+
capScope: "device",
|
|
32698
|
+
addonId: null,
|
|
32699
|
+
access: "create"
|
|
32700
|
+
},
|
|
32542
32701
|
"cameraStreams.getBrokerStreams": {
|
|
32543
32702
|
capName: "camera-streams",
|
|
32544
32703
|
capScope: "device",
|
|
@@ -36289,7 +36448,7 @@ Object.freeze({
|
|
|
36289
36448
|
addonId: null,
|
|
36290
36449
|
access: "view"
|
|
36291
36450
|
},
|
|
36292
|
-
"ptz.
|
|
36451
|
+
"ptz.getHomeReturn": {
|
|
36293
36452
|
capName: "ptz",
|
|
36294
36453
|
capScope: "device",
|
|
36295
36454
|
addonId: null,
|
|
@@ -36349,7 +36508,7 @@ Object.freeze({
|
|
|
36349
36508
|
addonId: null,
|
|
36350
36509
|
access: "create"
|
|
36351
36510
|
},
|
|
36352
|
-
"ptz.
|
|
36511
|
+
"ptz.setHomeReturn": {
|
|
36353
36512
|
capName: "ptz",
|
|
36354
36513
|
capScope: "device",
|
|
36355
36514
|
addonId: null,
|
|
@@ -38238,6 +38397,21 @@ Object.freeze({
|
|
|
38238
38397
|
form: "single",
|
|
38239
38398
|
optional: false
|
|
38240
38399
|
}],
|
|
38400
|
+
"cameraGridLayout.getLayout": [{
|
|
38401
|
+
name: "deviceId",
|
|
38402
|
+
form: "single",
|
|
38403
|
+
optional: false
|
|
38404
|
+
}],
|
|
38405
|
+
"cameraGridLayout.saveLayout": [{
|
|
38406
|
+
name: "cells",
|
|
38407
|
+
form: "object-array",
|
|
38408
|
+
optional: false,
|
|
38409
|
+
itemField: "deviceId"
|
|
38410
|
+
}, {
|
|
38411
|
+
name: "deviceId",
|
|
38412
|
+
form: "single",
|
|
38413
|
+
optional: false
|
|
38414
|
+
}],
|
|
38241
38415
|
"cameraStreams.getBrokerStreams": [{
|
|
38242
38416
|
name: "deviceId",
|
|
38243
38417
|
form: "single",
|
|
@@ -39538,7 +39712,7 @@ Object.freeze({
|
|
|
39538
39712
|
form: "single",
|
|
39539
39713
|
optional: false
|
|
39540
39714
|
}],
|
|
39541
|
-
"ptz.
|
|
39715
|
+
"ptz.getHomeReturn": [{
|
|
39542
39716
|
name: "deviceId",
|
|
39543
39717
|
form: "single",
|
|
39544
39718
|
optional: false
|
|
@@ -39588,7 +39762,7 @@ Object.freeze({
|
|
|
39588
39762
|
form: "single",
|
|
39589
39763
|
optional: false
|
|
39590
39764
|
}],
|
|
39591
|
-
"ptz.
|
|
39765
|
+
"ptz.setHomeReturn": [{
|
|
39592
39766
|
name: "deviceId",
|
|
39593
39767
|
form: "single",
|
|
39594
39768
|
optional: false
|
|
@@ -5360,7 +5360,7 @@ var ZodIssueCode = {
|
|
|
5360
5360
|
var ZodFirstPartyTypeKind;
|
|
5361
5361
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5362
5362
|
//#endregion
|
|
5363
|
-
//#region ../types/dist/sleep-
|
|
5363
|
+
//#region ../types/dist/sleep-Bs3xPtSh.mjs
|
|
5364
5364
|
/**
|
|
5365
5365
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5366
5366
|
* window to float samples (D455).
|
|
@@ -12122,6 +12122,24 @@ var GetStreamWithCodecInputSchema = object({
|
|
|
12122
12122
|
});
|
|
12123
12123
|
var RtpSourceSchema = object({
|
|
12124
12124
|
url: string(),
|
|
12125
|
+
/**
|
|
12126
|
+
* The SENTRY counterpart of {@link url} — the dial that asks for the stream
|
|
12127
|
+
* WITHOUT asking for the camera — or `null` when this camera offers none.
|
|
12128
|
+
*
|
|
12129
|
+
* The broker answers it because the broker is the only thing that can:
|
|
12130
|
+
* eligibility is `sentryEligible` (a BATTERY camera that DECLARES the signals
|
|
12131
|
+
* cap), asked of facts only the broker holds. A consumer re-deriving it from
|
|
12132
|
+
* cap bindings would be a second authority, and two authorities on the same
|
|
12133
|
+
* question is how a composite camera ends up dialling a sleeping camera
|
|
12134
|
+
* because its own copy of the rule was a release behind.
|
|
12135
|
+
*
|
|
12136
|
+
* `null` is a real answer and is never a live url in disguise: a consumer
|
|
12137
|
+
* that silently fell back to {@link url} would perform exactly the wake this
|
|
12138
|
+
* field exists to prevent. Only a PASSTHROUGH acquisition can offer one — a
|
|
12139
|
+
* transcode hands back an egress the broker is feeding itself, which has no
|
|
12140
|
+
* sentry counterpart.
|
|
12141
|
+
*/
|
|
12142
|
+
sentryUrl: string().nullable().optional(),
|
|
12125
12143
|
videoCodec: _enum(["H264", "H265"]),
|
|
12126
12144
|
audioCodec: string(),
|
|
12127
12145
|
resolution: object({
|
|
@@ -27505,6 +27523,114 @@ DeviceType.Light, DeviceType.Siren, DeviceType.Switch, method(object({
|
|
|
27505
27523
|
lastChangedAt: number()
|
|
27506
27524
|
});
|
|
27507
27525
|
/**
|
|
27526
|
+
* camera-grid-layout — the geometry of a COMPOSITE camera, on the camera's own
|
|
27527
|
+
* page.
|
|
27528
|
+
*
|
|
27529
|
+
* ## Why this is a capability and not an addon settings schema
|
|
27530
|
+
*
|
|
27531
|
+
* It was one, and it did not render. The addon declared the editor as a
|
|
27532
|
+
* `type: 'widget'` field inside its own `deviceSettingsSchema()`; the hub
|
|
27533
|
+
* returned that section correctly and `ConfigFormField` renders `type:'widget'`
|
|
27534
|
+
* perfectly well — and nothing ever asked camera-grid for it. The Cluster →
|
|
27535
|
+
* Pipeline → Device Overrides page interrogates a HAND-WRITTEN list of four
|
|
27536
|
+
* addons (`PIPELINE_CLUSTER_DEVICE_ADDONS`), whose own comment says an addon
|
|
27537
|
+
* not on it "falls off silently".
|
|
27538
|
+
*
|
|
27539
|
+
* Adding a fifth name to that list would have been the wrong fix twice over:
|
|
27540
|
+
* that page is per-camera DETECTION tuning, and a grid's geometry belongs
|
|
27541
|
+
* beside PTZ and motion zones on the camera itself — which is exactly where the
|
|
27542
|
+
* framework already puts a widget, when the widget is declared on a CAPABILITY.
|
|
27543
|
+
* `deviceConfig.ui` is the mechanism (`motion-zones`, `ptz`, `ptz-autotrack`
|
|
27544
|
+
* all use it): the framework emits the structural section and the widget
|
|
27545
|
+
* self-persists through the cap's own mutations.
|
|
27546
|
+
*
|
|
27547
|
+
* ## Why one addon may implement it
|
|
27548
|
+
*
|
|
27549
|
+
* It is a device-scoped NATIVE cap, registered by the grid camera device
|
|
27550
|
+
* itself. Nothing else declares a composite camera, so nothing else has a
|
|
27551
|
+
* layout — and the device-scoped route means the widget asks THE camera, not
|
|
27552
|
+
* "the camera-grid addon", which is what let the old custom-action pair be
|
|
27553
|
+
* reached only by a caller that already knew the addon id.
|
|
27554
|
+
*
|
|
27555
|
+
* ## The tab
|
|
27556
|
+
*
|
|
27557
|
+
* `streaming`, not a top-tab of its own. A grid's geometry IS what its stream
|
|
27558
|
+
* is, so the Streaming tab is where it belongs; a `grid` top-tab would need an
|
|
27559
|
+
* entry in `WELL_KNOWN_TAB_MAP` or the device page renders the raw id as the
|
|
27560
|
+
* label (measured on the robot camera, 2026-09-06 — a tab called "navigation"
|
|
27561
|
+
* next to "PTZ").
|
|
27562
|
+
*/
|
|
27563
|
+
/** A rectangle in normalized [0,1] coordinates of whatever contains it. */
|
|
27564
|
+
var GridNormalizedRectSchema = object({
|
|
27565
|
+
x: number().min(0).max(1),
|
|
27566
|
+
y: number().min(0).max(1),
|
|
27567
|
+
width: number().gt(0).max(1),
|
|
27568
|
+
height: number().gt(0).max(1)
|
|
27569
|
+
});
|
|
27570
|
+
/**
|
|
27571
|
+
* One source camera, the part of its picture taken, and where that part lands.
|
|
27572
|
+
*
|
|
27573
|
+
* Both rectangles are NORMALIZED (D519): a source camera can change resolution
|
|
27574
|
+
* — a profile switch, a firmware update, a substream that comes back different
|
|
27575
|
+
* — and a stored PIXEL rectangle would quietly start cutting the wrong region,
|
|
27576
|
+
* which is the class of bug nobody files.
|
|
27577
|
+
*/
|
|
27578
|
+
var GridLayoutCellSchema = object({
|
|
27579
|
+
deviceId: number().int().positive(),
|
|
27580
|
+
/** The part of the SOURCE taken, normalized against the source. */
|
|
27581
|
+
source: GridNormalizedRectSchema,
|
|
27582
|
+
/** Where it lands, normalized against the CANVAS. */
|
|
27583
|
+
cell: GridNormalizedRectSchema
|
|
27584
|
+
});
|
|
27585
|
+
/**
|
|
27586
|
+
* Which profiles this grid can actually compose, and why not.
|
|
27587
|
+
*
|
|
27588
|
+
* A grid's `high` composes its sources' `high` and its `low` their `low`, so a
|
|
27589
|
+
* profile is on offer only when EVERY source can serve it. The refusal NAMES
|
|
27590
|
+
* the sources, because "this grid has no low" is not a finding — "615 has no
|
|
27591
|
+
* low" is, and it is the one an operator can act on.
|
|
27592
|
+
*/
|
|
27593
|
+
var GridProfileOfferSchema = object({
|
|
27594
|
+
profile: _enum([
|
|
27595
|
+
"high",
|
|
27596
|
+
"mid",
|
|
27597
|
+
"low"
|
|
27598
|
+
]),
|
|
27599
|
+
offered: boolean(),
|
|
27600
|
+
/** Sources that cannot serve it. Empty when it is offered, or when there are no cells. */
|
|
27601
|
+
missingSources: array(number().int().positive())
|
|
27602
|
+
});
|
|
27603
|
+
var GridLayoutViewSchema = object({
|
|
27604
|
+
/** The persisted grid row this camera was declared from. */
|
|
27605
|
+
instanceId: string(),
|
|
27606
|
+
deviceId: number().int().nonnegative(),
|
|
27607
|
+
name: string(),
|
|
27608
|
+
/** The canvas the operator laid out — this grid's `high`. mid/low are scaled from it. */
|
|
27609
|
+
width: number().int(),
|
|
27610
|
+
height: number().int(),
|
|
27611
|
+
fps: number().int(),
|
|
27612
|
+
cells: array(GridLayoutCellSchema),
|
|
27613
|
+
/** What the catalog will publish, and what it refuses to. Read-only. */
|
|
27614
|
+
profiles: array(GridProfileOfferSchema)
|
|
27615
|
+
});
|
|
27616
|
+
var GridLayoutPatchSchema = object({
|
|
27617
|
+
deviceId: number().int().nonnegative(),
|
|
27618
|
+
name: string().min(1).max(160).optional(),
|
|
27619
|
+
width: number().int().min(160).max(7680).optional(),
|
|
27620
|
+
height: number().int().min(120).max(4320).optional(),
|
|
27621
|
+
fps: number().int().min(1).max(60).optional(),
|
|
27622
|
+
/**
|
|
27623
|
+
* The whole cell list at once. A per-cell patch would need an ordering the
|
|
27624
|
+
* editor does not have, and a half-applied layout is a picture nobody asked
|
|
27625
|
+
* for.
|
|
27626
|
+
*/
|
|
27627
|
+
cells: array(GridLayoutCellSchema).max(16)
|
|
27628
|
+
});
|
|
27629
|
+
DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), GridLayoutViewSchema.nullable(), { auth: "admin" }), method(GridLayoutPatchSchema, GridLayoutViewSchema, {
|
|
27630
|
+
kind: "mutation",
|
|
27631
|
+
auth: "admin"
|
|
27632
|
+
});
|
|
27633
|
+
/**
|
|
27508
27634
|
* Motion-zones share the same MaskShape vocabulary as privacy-mask — the
|
|
27509
27635
|
* on-camera motion-detection mask is a single `grid` region (a row-major
|
|
27510
27636
|
* boolean cell lattice the camera's onboard VMD evaluates). Composing it as
|
|
@@ -29204,6 +29330,26 @@ var PtzHomePresetSchema = object({
|
|
|
29204
29330
|
"none"
|
|
29205
29331
|
])
|
|
29206
29332
|
});
|
|
29333
|
+
/**
|
|
29334
|
+
* The camera's own idle-return behaviour: whether it goes home by itself, and
|
|
29335
|
+
* after how long.
|
|
29336
|
+
*
|
|
29337
|
+
* ONE shape, not two scalars, because on the camera they are ONE fact —
|
|
29338
|
+
* Reolink's guard point carries `benable` and `timeout` in the same element,
|
|
29339
|
+
* written by the same command. Reading them apart means two round-trips that
|
|
29340
|
+
* can disagree.
|
|
29341
|
+
*
|
|
29342
|
+
* `enabled` and `seconds` are INDEPENDENT: a camera can hold a 68 s delay with
|
|
29343
|
+
* the behaviour switched off, which is exactly what the vendor app leaves when
|
|
29344
|
+
* you turn the guard point off without clearing it. The first version of this
|
|
29345
|
+
* cap reported only the delay, so that state was invisible — a camera could be
|
|
29346
|
+
* configured to return after 68 seconds with no way to say whether it should
|
|
29347
|
+
* return at all.
|
|
29348
|
+
*/
|
|
29349
|
+
var PtzHomeReturnSchema = object({
|
|
29350
|
+
enabled: boolean(),
|
|
29351
|
+
seconds: number().int()
|
|
29352
|
+
});
|
|
29207
29353
|
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({
|
|
29208
29354
|
deviceId: number(),
|
|
29209
29355
|
presetId: string()
|
|
@@ -29229,8 +29375,9 @@ DeviceType.Camera, method(PtzMoveCommandSchema.extend({ deviceId: number() }), _
|
|
|
29229
29375
|
}), method(object({ deviceId: number() }), _void(), {
|
|
29230
29376
|
kind: "mutation",
|
|
29231
29377
|
auth: "admin"
|
|
29232
|
-
}), method(object({ deviceId: number() }),
|
|
29378
|
+
}), method(object({ deviceId: number() }), PtzHomeReturnSchema.nullable()), method(object({
|
|
29233
29379
|
deviceId: number(),
|
|
29380
|
+
enabled: boolean(),
|
|
29234
29381
|
seconds: number().int().min(0).max(3600)
|
|
29235
29382
|
}), _void(), {
|
|
29236
29383
|
kind: "mutation",
|
|
@@ -32512,6 +32659,18 @@ Object.freeze({
|
|
|
32512
32659
|
addonId: null,
|
|
32513
32660
|
access: "view"
|
|
32514
32661
|
},
|
|
32662
|
+
"cameraGridLayout.getLayout": {
|
|
32663
|
+
capName: "camera-grid-layout",
|
|
32664
|
+
capScope: "device",
|
|
32665
|
+
addonId: null,
|
|
32666
|
+
access: "view"
|
|
32667
|
+
},
|
|
32668
|
+
"cameraGridLayout.saveLayout": {
|
|
32669
|
+
capName: "camera-grid-layout",
|
|
32670
|
+
capScope: "device",
|
|
32671
|
+
addonId: null,
|
|
32672
|
+
access: "create"
|
|
32673
|
+
},
|
|
32515
32674
|
"cameraStreams.getBrokerStreams": {
|
|
32516
32675
|
capName: "camera-streams",
|
|
32517
32676
|
capScope: "device",
|
|
@@ -36262,7 +36421,7 @@ Object.freeze({
|
|
|
36262
36421
|
addonId: null,
|
|
36263
36422
|
access: "view"
|
|
36264
36423
|
},
|
|
36265
|
-
"ptz.
|
|
36424
|
+
"ptz.getHomeReturn": {
|
|
36266
36425
|
capName: "ptz",
|
|
36267
36426
|
capScope: "device",
|
|
36268
36427
|
addonId: null,
|
|
@@ -36322,7 +36481,7 @@ Object.freeze({
|
|
|
36322
36481
|
addonId: null,
|
|
36323
36482
|
access: "create"
|
|
36324
36483
|
},
|
|
36325
|
-
"ptz.
|
|
36484
|
+
"ptz.setHomeReturn": {
|
|
36326
36485
|
capName: "ptz",
|
|
36327
36486
|
capScope: "device",
|
|
36328
36487
|
addonId: null,
|
|
@@ -38211,6 +38370,21 @@ Object.freeze({
|
|
|
38211
38370
|
form: "single",
|
|
38212
38371
|
optional: false
|
|
38213
38372
|
}],
|
|
38373
|
+
"cameraGridLayout.getLayout": [{
|
|
38374
|
+
name: "deviceId",
|
|
38375
|
+
form: "single",
|
|
38376
|
+
optional: false
|
|
38377
|
+
}],
|
|
38378
|
+
"cameraGridLayout.saveLayout": [{
|
|
38379
|
+
name: "cells",
|
|
38380
|
+
form: "object-array",
|
|
38381
|
+
optional: false,
|
|
38382
|
+
itemField: "deviceId"
|
|
38383
|
+
}, {
|
|
38384
|
+
name: "deviceId",
|
|
38385
|
+
form: "single",
|
|
38386
|
+
optional: false
|
|
38387
|
+
}],
|
|
38214
38388
|
"cameraStreams.getBrokerStreams": [{
|
|
38215
38389
|
name: "deviceId",
|
|
38216
38390
|
form: "single",
|
|
@@ -39511,7 +39685,7 @@ Object.freeze({
|
|
|
39511
39685
|
form: "single",
|
|
39512
39686
|
optional: false
|
|
39513
39687
|
}],
|
|
39514
|
-
"ptz.
|
|
39688
|
+
"ptz.getHomeReturn": [{
|
|
39515
39689
|
name: "deviceId",
|
|
39516
39690
|
form: "single",
|
|
39517
39691
|
optional: false
|
|
@@ -39561,7 +39735,7 @@ Object.freeze({
|
|
|
39561
39735
|
form: "single",
|
|
39562
39736
|
optional: false
|
|
39563
39737
|
}],
|
|
39564
|
-
"ptz.
|
|
39738
|
+
"ptz.setHomeReturn": [{
|
|
39565
39739
|
name: "deviceId",
|
|
39566
39740
|
form: "single",
|
|
39567
39741
|
optional: false
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-export-alexa",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.121",
|
|
4
4
|
"description": "Alexa Smart Home Skill export — hub-side OAuth provider + directive handler. The companion AWS Lambda forwards Alexa directives to this addon's /addon/export-alexa/directive endpoint.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|