@camstack/addon-export-google 0.1.76 → 0.1.78
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-google.addon.js +180 -6
- package/dist/export-google.addon.mjs +180 -6
- package/package.json +1 -1
|
@@ -5438,7 +5438,7 @@ var ZodIssueCode = {
|
|
|
5438
5438
|
var ZodFirstPartyTypeKind;
|
|
5439
5439
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5440
5440
|
//#endregion
|
|
5441
|
-
//#region ../types/dist/sleep-
|
|
5441
|
+
//#region ../types/dist/sleep-Bs3xPtSh.mjs
|
|
5442
5442
|
/**
|
|
5443
5443
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5444
5444
|
* window to float samples (D455).
|
|
@@ -12060,6 +12060,24 @@ var GetStreamWithCodecInputSchema = object({
|
|
|
12060
12060
|
});
|
|
12061
12061
|
var RtpSourceSchema = object({
|
|
12062
12062
|
url: string(),
|
|
12063
|
+
/**
|
|
12064
|
+
* The SENTRY counterpart of {@link url} — the dial that asks for the stream
|
|
12065
|
+
* WITHOUT asking for the camera — or `null` when this camera offers none.
|
|
12066
|
+
*
|
|
12067
|
+
* The broker answers it because the broker is the only thing that can:
|
|
12068
|
+
* eligibility is `sentryEligible` (a BATTERY camera that DECLARES the signals
|
|
12069
|
+
* cap), asked of facts only the broker holds. A consumer re-deriving it from
|
|
12070
|
+
* cap bindings would be a second authority, and two authorities on the same
|
|
12071
|
+
* question is how a composite camera ends up dialling a sleeping camera
|
|
12072
|
+
* because its own copy of the rule was a release behind.
|
|
12073
|
+
*
|
|
12074
|
+
* `null` is a real answer and is never a live url in disguise: a consumer
|
|
12075
|
+
* that silently fell back to {@link url} would perform exactly the wake this
|
|
12076
|
+
* field exists to prevent. Only a PASSTHROUGH acquisition can offer one — a
|
|
12077
|
+
* transcode hands back an egress the broker is feeding itself, which has no
|
|
12078
|
+
* sentry counterpart.
|
|
12079
|
+
*/
|
|
12080
|
+
sentryUrl: string().nullable().optional(),
|
|
12063
12081
|
videoCodec: _enum(["H264", "H265"]),
|
|
12064
12082
|
audioCodec: string(),
|
|
12065
12083
|
resolution: object({
|
|
@@ -27455,6 +27473,114 @@ DeviceType.Light, DeviceType.Siren, DeviceType.Switch, method(object({
|
|
|
27455
27473
|
lastChangedAt: number()
|
|
27456
27474
|
});
|
|
27457
27475
|
/**
|
|
27476
|
+
* camera-grid-layout — the geometry of a COMPOSITE camera, on the camera's own
|
|
27477
|
+
* page.
|
|
27478
|
+
*
|
|
27479
|
+
* ## Why this is a capability and not an addon settings schema
|
|
27480
|
+
*
|
|
27481
|
+
* It was one, and it did not render. The addon declared the editor as a
|
|
27482
|
+
* `type: 'widget'` field inside its own `deviceSettingsSchema()`; the hub
|
|
27483
|
+
* returned that section correctly and `ConfigFormField` renders `type:'widget'`
|
|
27484
|
+
* perfectly well — and nothing ever asked camera-grid for it. The Cluster →
|
|
27485
|
+
* Pipeline → Device Overrides page interrogates a HAND-WRITTEN list of four
|
|
27486
|
+
* addons (`PIPELINE_CLUSTER_DEVICE_ADDONS`), whose own comment says an addon
|
|
27487
|
+
* not on it "falls off silently".
|
|
27488
|
+
*
|
|
27489
|
+
* Adding a fifth name to that list would have been the wrong fix twice over:
|
|
27490
|
+
* that page is per-camera DETECTION tuning, and a grid's geometry belongs
|
|
27491
|
+
* beside PTZ and motion zones on the camera itself — which is exactly where the
|
|
27492
|
+
* framework already puts a widget, when the widget is declared on a CAPABILITY.
|
|
27493
|
+
* `deviceConfig.ui` is the mechanism (`motion-zones`, `ptz`, `ptz-autotrack`
|
|
27494
|
+
* all use it): the framework emits the structural section and the widget
|
|
27495
|
+
* self-persists through the cap's own mutations.
|
|
27496
|
+
*
|
|
27497
|
+
* ## Why one addon may implement it
|
|
27498
|
+
*
|
|
27499
|
+
* It is a device-scoped NATIVE cap, registered by the grid camera device
|
|
27500
|
+
* itself. Nothing else declares a composite camera, so nothing else has a
|
|
27501
|
+
* layout — and the device-scoped route means the widget asks THE camera, not
|
|
27502
|
+
* "the camera-grid addon", which is what let the old custom-action pair be
|
|
27503
|
+
* reached only by a caller that already knew the addon id.
|
|
27504
|
+
*
|
|
27505
|
+
* ## The tab
|
|
27506
|
+
*
|
|
27507
|
+
* `streaming`, not a top-tab of its own. A grid's geometry IS what its stream
|
|
27508
|
+
* is, so the Streaming tab is where it belongs; a `grid` top-tab would need an
|
|
27509
|
+
* entry in `WELL_KNOWN_TAB_MAP` or the device page renders the raw id as the
|
|
27510
|
+
* label (measured on the robot camera, 2026-09-06 — a tab called "navigation"
|
|
27511
|
+
* next to "PTZ").
|
|
27512
|
+
*/
|
|
27513
|
+
/** A rectangle in normalized [0,1] coordinates of whatever contains it. */
|
|
27514
|
+
var GridNormalizedRectSchema = object({
|
|
27515
|
+
x: number().min(0).max(1),
|
|
27516
|
+
y: number().min(0).max(1),
|
|
27517
|
+
width: number().gt(0).max(1),
|
|
27518
|
+
height: number().gt(0).max(1)
|
|
27519
|
+
});
|
|
27520
|
+
/**
|
|
27521
|
+
* One source camera, the part of its picture taken, and where that part lands.
|
|
27522
|
+
*
|
|
27523
|
+
* Both rectangles are NORMALIZED (D519): a source camera can change resolution
|
|
27524
|
+
* — a profile switch, a firmware update, a substream that comes back different
|
|
27525
|
+
* — and a stored PIXEL rectangle would quietly start cutting the wrong region,
|
|
27526
|
+
* which is the class of bug nobody files.
|
|
27527
|
+
*/
|
|
27528
|
+
var GridLayoutCellSchema = object({
|
|
27529
|
+
deviceId: number().int().positive(),
|
|
27530
|
+
/** The part of the SOURCE taken, normalized against the source. */
|
|
27531
|
+
source: GridNormalizedRectSchema,
|
|
27532
|
+
/** Where it lands, normalized against the CANVAS. */
|
|
27533
|
+
cell: GridNormalizedRectSchema
|
|
27534
|
+
});
|
|
27535
|
+
/**
|
|
27536
|
+
* Which profiles this grid can actually compose, and why not.
|
|
27537
|
+
*
|
|
27538
|
+
* A grid's `high` composes its sources' `high` and its `low` their `low`, so a
|
|
27539
|
+
* profile is on offer only when EVERY source can serve it. The refusal NAMES
|
|
27540
|
+
* the sources, because "this grid has no low" is not a finding — "615 has no
|
|
27541
|
+
* low" is, and it is the one an operator can act on.
|
|
27542
|
+
*/
|
|
27543
|
+
var GridProfileOfferSchema = object({
|
|
27544
|
+
profile: _enum([
|
|
27545
|
+
"high",
|
|
27546
|
+
"mid",
|
|
27547
|
+
"low"
|
|
27548
|
+
]),
|
|
27549
|
+
offered: boolean(),
|
|
27550
|
+
/** Sources that cannot serve it. Empty when it is offered, or when there are no cells. */
|
|
27551
|
+
missingSources: array(number().int().positive())
|
|
27552
|
+
});
|
|
27553
|
+
var GridLayoutViewSchema = object({
|
|
27554
|
+
/** The persisted grid row this camera was declared from. */
|
|
27555
|
+
instanceId: string(),
|
|
27556
|
+
deviceId: number().int().nonnegative(),
|
|
27557
|
+
name: string(),
|
|
27558
|
+
/** The canvas the operator laid out — this grid's `high`. mid/low are scaled from it. */
|
|
27559
|
+
width: number().int(),
|
|
27560
|
+
height: number().int(),
|
|
27561
|
+
fps: number().int(),
|
|
27562
|
+
cells: array(GridLayoutCellSchema),
|
|
27563
|
+
/** What the catalog will publish, and what it refuses to. Read-only. */
|
|
27564
|
+
profiles: array(GridProfileOfferSchema)
|
|
27565
|
+
});
|
|
27566
|
+
var GridLayoutPatchSchema = object({
|
|
27567
|
+
deviceId: number().int().nonnegative(),
|
|
27568
|
+
name: string().min(1).max(160).optional(),
|
|
27569
|
+
width: number().int().min(160).max(7680).optional(),
|
|
27570
|
+
height: number().int().min(120).max(4320).optional(),
|
|
27571
|
+
fps: number().int().min(1).max(60).optional(),
|
|
27572
|
+
/**
|
|
27573
|
+
* The whole cell list at once. A per-cell patch would need an ordering the
|
|
27574
|
+
* editor does not have, and a half-applied layout is a picture nobody asked
|
|
27575
|
+
* for.
|
|
27576
|
+
*/
|
|
27577
|
+
cells: array(GridLayoutCellSchema).max(16)
|
|
27578
|
+
});
|
|
27579
|
+
DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), GridLayoutViewSchema.nullable(), { auth: "admin" }), method(GridLayoutPatchSchema, GridLayoutViewSchema, {
|
|
27580
|
+
kind: "mutation",
|
|
27581
|
+
auth: "admin"
|
|
27582
|
+
});
|
|
27583
|
+
/**
|
|
27458
27584
|
* Motion-zones share the same MaskShape vocabulary as privacy-mask — the
|
|
27459
27585
|
* on-camera motion-detection mask is a single `grid` region (a row-major
|
|
27460
27586
|
* boolean cell lattice the camera's onboard VMD evaluates). Composing it as
|
|
@@ -29154,6 +29280,26 @@ var PtzHomePresetSchema = object({
|
|
|
29154
29280
|
"none"
|
|
29155
29281
|
])
|
|
29156
29282
|
});
|
|
29283
|
+
/**
|
|
29284
|
+
* The camera's own idle-return behaviour: whether it goes home by itself, and
|
|
29285
|
+
* after how long.
|
|
29286
|
+
*
|
|
29287
|
+
* ONE shape, not two scalars, because on the camera they are ONE fact —
|
|
29288
|
+
* Reolink's guard point carries `benable` and `timeout` in the same element,
|
|
29289
|
+
* written by the same command. Reading them apart means two round-trips that
|
|
29290
|
+
* can disagree.
|
|
29291
|
+
*
|
|
29292
|
+
* `enabled` and `seconds` are INDEPENDENT: a camera can hold a 68 s delay with
|
|
29293
|
+
* the behaviour switched off, which is exactly what the vendor app leaves when
|
|
29294
|
+
* you turn the guard point off without clearing it. The first version of this
|
|
29295
|
+
* cap reported only the delay, so that state was invisible — a camera could be
|
|
29296
|
+
* configured to return after 68 seconds with no way to say whether it should
|
|
29297
|
+
* return at all.
|
|
29298
|
+
*/
|
|
29299
|
+
var PtzHomeReturnSchema = object({
|
|
29300
|
+
enabled: boolean(),
|
|
29301
|
+
seconds: number().int()
|
|
29302
|
+
});
|
|
29157
29303
|
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({
|
|
29158
29304
|
deviceId: number(),
|
|
29159
29305
|
presetId: string()
|
|
@@ -29179,8 +29325,9 @@ DeviceType.Camera, method(PtzMoveCommandSchema.extend({ deviceId: number() }), _
|
|
|
29179
29325
|
}), method(object({ deviceId: number() }), _void(), {
|
|
29180
29326
|
kind: "mutation",
|
|
29181
29327
|
auth: "admin"
|
|
29182
|
-
}), method(object({ deviceId: number() }),
|
|
29328
|
+
}), method(object({ deviceId: number() }), PtzHomeReturnSchema.nullable()), method(object({
|
|
29183
29329
|
deviceId: number(),
|
|
29330
|
+
enabled: boolean(),
|
|
29184
29331
|
seconds: number().int().min(0).max(3600)
|
|
29185
29332
|
}), _void(), {
|
|
29186
29333
|
kind: "mutation",
|
|
@@ -32469,6 +32616,18 @@ Object.freeze({
|
|
|
32469
32616
|
addonId: null,
|
|
32470
32617
|
access: "view"
|
|
32471
32618
|
},
|
|
32619
|
+
"cameraGridLayout.getLayout": {
|
|
32620
|
+
capName: "camera-grid-layout",
|
|
32621
|
+
capScope: "device",
|
|
32622
|
+
addonId: null,
|
|
32623
|
+
access: "view"
|
|
32624
|
+
},
|
|
32625
|
+
"cameraGridLayout.saveLayout": {
|
|
32626
|
+
capName: "camera-grid-layout",
|
|
32627
|
+
capScope: "device",
|
|
32628
|
+
addonId: null,
|
|
32629
|
+
access: "create"
|
|
32630
|
+
},
|
|
32472
32631
|
"cameraStreams.getBrokerStreams": {
|
|
32473
32632
|
capName: "camera-streams",
|
|
32474
32633
|
capScope: "device",
|
|
@@ -36219,7 +36378,7 @@ Object.freeze({
|
|
|
36219
36378
|
addonId: null,
|
|
36220
36379
|
access: "view"
|
|
36221
36380
|
},
|
|
36222
|
-
"ptz.
|
|
36381
|
+
"ptz.getHomeReturn": {
|
|
36223
36382
|
capName: "ptz",
|
|
36224
36383
|
capScope: "device",
|
|
36225
36384
|
addonId: null,
|
|
@@ -36279,7 +36438,7 @@ Object.freeze({
|
|
|
36279
36438
|
addonId: null,
|
|
36280
36439
|
access: "create"
|
|
36281
36440
|
},
|
|
36282
|
-
"ptz.
|
|
36441
|
+
"ptz.setHomeReturn": {
|
|
36283
36442
|
capName: "ptz",
|
|
36284
36443
|
capScope: "device",
|
|
36285
36444
|
addonId: null,
|
|
@@ -38168,6 +38327,21 @@ Object.freeze({
|
|
|
38168
38327
|
form: "single",
|
|
38169
38328
|
optional: false
|
|
38170
38329
|
}],
|
|
38330
|
+
"cameraGridLayout.getLayout": [{
|
|
38331
|
+
name: "deviceId",
|
|
38332
|
+
form: "single",
|
|
38333
|
+
optional: false
|
|
38334
|
+
}],
|
|
38335
|
+
"cameraGridLayout.saveLayout": [{
|
|
38336
|
+
name: "cells",
|
|
38337
|
+
form: "object-array",
|
|
38338
|
+
optional: false,
|
|
38339
|
+
itemField: "deviceId"
|
|
38340
|
+
}, {
|
|
38341
|
+
name: "deviceId",
|
|
38342
|
+
form: "single",
|
|
38343
|
+
optional: false
|
|
38344
|
+
}],
|
|
38171
38345
|
"cameraStreams.getBrokerStreams": [{
|
|
38172
38346
|
name: "deviceId",
|
|
38173
38347
|
form: "single",
|
|
@@ -39468,7 +39642,7 @@ Object.freeze({
|
|
|
39468
39642
|
form: "single",
|
|
39469
39643
|
optional: false
|
|
39470
39644
|
}],
|
|
39471
|
-
"ptz.
|
|
39645
|
+
"ptz.getHomeReturn": [{
|
|
39472
39646
|
name: "deviceId",
|
|
39473
39647
|
form: "single",
|
|
39474
39648
|
optional: false
|
|
@@ -39518,7 +39692,7 @@ Object.freeze({
|
|
|
39518
39692
|
form: "single",
|
|
39519
39693
|
optional: false
|
|
39520
39694
|
}],
|
|
39521
|
-
"ptz.
|
|
39695
|
+
"ptz.setHomeReturn": [{
|
|
39522
39696
|
name: "deviceId",
|
|
39523
39697
|
form: "single",
|
|
39524
39698
|
optional: false
|
|
@@ -5434,7 +5434,7 @@ var ZodIssueCode = {
|
|
|
5434
5434
|
var ZodFirstPartyTypeKind;
|
|
5435
5435
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5436
5436
|
//#endregion
|
|
5437
|
-
//#region ../types/dist/sleep-
|
|
5437
|
+
//#region ../types/dist/sleep-Bs3xPtSh.mjs
|
|
5438
5438
|
/**
|
|
5439
5439
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5440
5440
|
* window to float samples (D455).
|
|
@@ -12056,6 +12056,24 @@ var GetStreamWithCodecInputSchema = object({
|
|
|
12056
12056
|
});
|
|
12057
12057
|
var RtpSourceSchema = object({
|
|
12058
12058
|
url: string(),
|
|
12059
|
+
/**
|
|
12060
|
+
* The SENTRY counterpart of {@link url} — the dial that asks for the stream
|
|
12061
|
+
* WITHOUT asking for the camera — or `null` when this camera offers none.
|
|
12062
|
+
*
|
|
12063
|
+
* The broker answers it because the broker is the only thing that can:
|
|
12064
|
+
* eligibility is `sentryEligible` (a BATTERY camera that DECLARES the signals
|
|
12065
|
+
* cap), asked of facts only the broker holds. A consumer re-deriving it from
|
|
12066
|
+
* cap bindings would be a second authority, and two authorities on the same
|
|
12067
|
+
* question is how a composite camera ends up dialling a sleeping camera
|
|
12068
|
+
* because its own copy of the rule was a release behind.
|
|
12069
|
+
*
|
|
12070
|
+
* `null` is a real answer and is never a live url in disguise: a consumer
|
|
12071
|
+
* that silently fell back to {@link url} would perform exactly the wake this
|
|
12072
|
+
* field exists to prevent. Only a PASSTHROUGH acquisition can offer one — a
|
|
12073
|
+
* transcode hands back an egress the broker is feeding itself, which has no
|
|
12074
|
+
* sentry counterpart.
|
|
12075
|
+
*/
|
|
12076
|
+
sentryUrl: string().nullable().optional(),
|
|
12059
12077
|
videoCodec: _enum(["H264", "H265"]),
|
|
12060
12078
|
audioCodec: string(),
|
|
12061
12079
|
resolution: object({
|
|
@@ -27451,6 +27469,114 @@ DeviceType.Light, DeviceType.Siren, DeviceType.Switch, method(object({
|
|
|
27451
27469
|
lastChangedAt: number()
|
|
27452
27470
|
});
|
|
27453
27471
|
/**
|
|
27472
|
+
* camera-grid-layout — the geometry of a COMPOSITE camera, on the camera's own
|
|
27473
|
+
* page.
|
|
27474
|
+
*
|
|
27475
|
+
* ## Why this is a capability and not an addon settings schema
|
|
27476
|
+
*
|
|
27477
|
+
* It was one, and it did not render. The addon declared the editor as a
|
|
27478
|
+
* `type: 'widget'` field inside its own `deviceSettingsSchema()`; the hub
|
|
27479
|
+
* returned that section correctly and `ConfigFormField` renders `type:'widget'`
|
|
27480
|
+
* perfectly well — and nothing ever asked camera-grid for it. The Cluster →
|
|
27481
|
+
* Pipeline → Device Overrides page interrogates a HAND-WRITTEN list of four
|
|
27482
|
+
* addons (`PIPELINE_CLUSTER_DEVICE_ADDONS`), whose own comment says an addon
|
|
27483
|
+
* not on it "falls off silently".
|
|
27484
|
+
*
|
|
27485
|
+
* Adding a fifth name to that list would have been the wrong fix twice over:
|
|
27486
|
+
* that page is per-camera DETECTION tuning, and a grid's geometry belongs
|
|
27487
|
+
* beside PTZ and motion zones on the camera itself — which is exactly where the
|
|
27488
|
+
* framework already puts a widget, when the widget is declared on a CAPABILITY.
|
|
27489
|
+
* `deviceConfig.ui` is the mechanism (`motion-zones`, `ptz`, `ptz-autotrack`
|
|
27490
|
+
* all use it): the framework emits the structural section and the widget
|
|
27491
|
+
* self-persists through the cap's own mutations.
|
|
27492
|
+
*
|
|
27493
|
+
* ## Why one addon may implement it
|
|
27494
|
+
*
|
|
27495
|
+
* It is a device-scoped NATIVE cap, registered by the grid camera device
|
|
27496
|
+
* itself. Nothing else declares a composite camera, so nothing else has a
|
|
27497
|
+
* layout — and the device-scoped route means the widget asks THE camera, not
|
|
27498
|
+
* "the camera-grid addon", which is what let the old custom-action pair be
|
|
27499
|
+
* reached only by a caller that already knew the addon id.
|
|
27500
|
+
*
|
|
27501
|
+
* ## The tab
|
|
27502
|
+
*
|
|
27503
|
+
* `streaming`, not a top-tab of its own. A grid's geometry IS what its stream
|
|
27504
|
+
* is, so the Streaming tab is where it belongs; a `grid` top-tab would need an
|
|
27505
|
+
* entry in `WELL_KNOWN_TAB_MAP` or the device page renders the raw id as the
|
|
27506
|
+
* label (measured on the robot camera, 2026-09-06 — a tab called "navigation"
|
|
27507
|
+
* next to "PTZ").
|
|
27508
|
+
*/
|
|
27509
|
+
/** A rectangle in normalized [0,1] coordinates of whatever contains it. */
|
|
27510
|
+
var GridNormalizedRectSchema = object({
|
|
27511
|
+
x: number().min(0).max(1),
|
|
27512
|
+
y: number().min(0).max(1),
|
|
27513
|
+
width: number().gt(0).max(1),
|
|
27514
|
+
height: number().gt(0).max(1)
|
|
27515
|
+
});
|
|
27516
|
+
/**
|
|
27517
|
+
* One source camera, the part of its picture taken, and where that part lands.
|
|
27518
|
+
*
|
|
27519
|
+
* Both rectangles are NORMALIZED (D519): a source camera can change resolution
|
|
27520
|
+
* — a profile switch, a firmware update, a substream that comes back different
|
|
27521
|
+
* — and a stored PIXEL rectangle would quietly start cutting the wrong region,
|
|
27522
|
+
* which is the class of bug nobody files.
|
|
27523
|
+
*/
|
|
27524
|
+
var GridLayoutCellSchema = object({
|
|
27525
|
+
deviceId: number().int().positive(),
|
|
27526
|
+
/** The part of the SOURCE taken, normalized against the source. */
|
|
27527
|
+
source: GridNormalizedRectSchema,
|
|
27528
|
+
/** Where it lands, normalized against the CANVAS. */
|
|
27529
|
+
cell: GridNormalizedRectSchema
|
|
27530
|
+
});
|
|
27531
|
+
/**
|
|
27532
|
+
* Which profiles this grid can actually compose, and why not.
|
|
27533
|
+
*
|
|
27534
|
+
* A grid's `high` composes its sources' `high` and its `low` their `low`, so a
|
|
27535
|
+
* profile is on offer only when EVERY source can serve it. The refusal NAMES
|
|
27536
|
+
* the sources, because "this grid has no low" is not a finding — "615 has no
|
|
27537
|
+
* low" is, and it is the one an operator can act on.
|
|
27538
|
+
*/
|
|
27539
|
+
var GridProfileOfferSchema = object({
|
|
27540
|
+
profile: _enum([
|
|
27541
|
+
"high",
|
|
27542
|
+
"mid",
|
|
27543
|
+
"low"
|
|
27544
|
+
]),
|
|
27545
|
+
offered: boolean(),
|
|
27546
|
+
/** Sources that cannot serve it. Empty when it is offered, or when there are no cells. */
|
|
27547
|
+
missingSources: array(number().int().positive())
|
|
27548
|
+
});
|
|
27549
|
+
var GridLayoutViewSchema = object({
|
|
27550
|
+
/** The persisted grid row this camera was declared from. */
|
|
27551
|
+
instanceId: string(),
|
|
27552
|
+
deviceId: number().int().nonnegative(),
|
|
27553
|
+
name: string(),
|
|
27554
|
+
/** The canvas the operator laid out — this grid's `high`. mid/low are scaled from it. */
|
|
27555
|
+
width: number().int(),
|
|
27556
|
+
height: number().int(),
|
|
27557
|
+
fps: number().int(),
|
|
27558
|
+
cells: array(GridLayoutCellSchema),
|
|
27559
|
+
/** What the catalog will publish, and what it refuses to. Read-only. */
|
|
27560
|
+
profiles: array(GridProfileOfferSchema)
|
|
27561
|
+
});
|
|
27562
|
+
var GridLayoutPatchSchema = object({
|
|
27563
|
+
deviceId: number().int().nonnegative(),
|
|
27564
|
+
name: string().min(1).max(160).optional(),
|
|
27565
|
+
width: number().int().min(160).max(7680).optional(),
|
|
27566
|
+
height: number().int().min(120).max(4320).optional(),
|
|
27567
|
+
fps: number().int().min(1).max(60).optional(),
|
|
27568
|
+
/**
|
|
27569
|
+
* The whole cell list at once. A per-cell patch would need an ordering the
|
|
27570
|
+
* editor does not have, and a half-applied layout is a picture nobody asked
|
|
27571
|
+
* for.
|
|
27572
|
+
*/
|
|
27573
|
+
cells: array(GridLayoutCellSchema).max(16)
|
|
27574
|
+
});
|
|
27575
|
+
DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), GridLayoutViewSchema.nullable(), { auth: "admin" }), method(GridLayoutPatchSchema, GridLayoutViewSchema, {
|
|
27576
|
+
kind: "mutation",
|
|
27577
|
+
auth: "admin"
|
|
27578
|
+
});
|
|
27579
|
+
/**
|
|
27454
27580
|
* Motion-zones share the same MaskShape vocabulary as privacy-mask — the
|
|
27455
27581
|
* on-camera motion-detection mask is a single `grid` region (a row-major
|
|
27456
27582
|
* boolean cell lattice the camera's onboard VMD evaluates). Composing it as
|
|
@@ -29150,6 +29276,26 @@ var PtzHomePresetSchema = object({
|
|
|
29150
29276
|
"none"
|
|
29151
29277
|
])
|
|
29152
29278
|
});
|
|
29279
|
+
/**
|
|
29280
|
+
* The camera's own idle-return behaviour: whether it goes home by itself, and
|
|
29281
|
+
* after how long.
|
|
29282
|
+
*
|
|
29283
|
+
* ONE shape, not two scalars, because on the camera they are ONE fact —
|
|
29284
|
+
* Reolink's guard point carries `benable` and `timeout` in the same element,
|
|
29285
|
+
* written by the same command. Reading them apart means two round-trips that
|
|
29286
|
+
* can disagree.
|
|
29287
|
+
*
|
|
29288
|
+
* `enabled` and `seconds` are INDEPENDENT: a camera can hold a 68 s delay with
|
|
29289
|
+
* the behaviour switched off, which is exactly what the vendor app leaves when
|
|
29290
|
+
* you turn the guard point off without clearing it. The first version of this
|
|
29291
|
+
* cap reported only the delay, so that state was invisible — a camera could be
|
|
29292
|
+
* configured to return after 68 seconds with no way to say whether it should
|
|
29293
|
+
* return at all.
|
|
29294
|
+
*/
|
|
29295
|
+
var PtzHomeReturnSchema = object({
|
|
29296
|
+
enabled: boolean(),
|
|
29297
|
+
seconds: number().int()
|
|
29298
|
+
});
|
|
29153
29299
|
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({
|
|
29154
29300
|
deviceId: number(),
|
|
29155
29301
|
presetId: string()
|
|
@@ -29175,8 +29321,9 @@ DeviceType.Camera, method(PtzMoveCommandSchema.extend({ deviceId: number() }), _
|
|
|
29175
29321
|
}), method(object({ deviceId: number() }), _void(), {
|
|
29176
29322
|
kind: "mutation",
|
|
29177
29323
|
auth: "admin"
|
|
29178
|
-
}), method(object({ deviceId: number() }),
|
|
29324
|
+
}), method(object({ deviceId: number() }), PtzHomeReturnSchema.nullable()), method(object({
|
|
29179
29325
|
deviceId: number(),
|
|
29326
|
+
enabled: boolean(),
|
|
29180
29327
|
seconds: number().int().min(0).max(3600)
|
|
29181
29328
|
}), _void(), {
|
|
29182
29329
|
kind: "mutation",
|
|
@@ -32465,6 +32612,18 @@ Object.freeze({
|
|
|
32465
32612
|
addonId: null,
|
|
32466
32613
|
access: "view"
|
|
32467
32614
|
},
|
|
32615
|
+
"cameraGridLayout.getLayout": {
|
|
32616
|
+
capName: "camera-grid-layout",
|
|
32617
|
+
capScope: "device",
|
|
32618
|
+
addonId: null,
|
|
32619
|
+
access: "view"
|
|
32620
|
+
},
|
|
32621
|
+
"cameraGridLayout.saveLayout": {
|
|
32622
|
+
capName: "camera-grid-layout",
|
|
32623
|
+
capScope: "device",
|
|
32624
|
+
addonId: null,
|
|
32625
|
+
access: "create"
|
|
32626
|
+
},
|
|
32468
32627
|
"cameraStreams.getBrokerStreams": {
|
|
32469
32628
|
capName: "camera-streams",
|
|
32470
32629
|
capScope: "device",
|
|
@@ -36215,7 +36374,7 @@ Object.freeze({
|
|
|
36215
36374
|
addonId: null,
|
|
36216
36375
|
access: "view"
|
|
36217
36376
|
},
|
|
36218
|
-
"ptz.
|
|
36377
|
+
"ptz.getHomeReturn": {
|
|
36219
36378
|
capName: "ptz",
|
|
36220
36379
|
capScope: "device",
|
|
36221
36380
|
addonId: null,
|
|
@@ -36275,7 +36434,7 @@ Object.freeze({
|
|
|
36275
36434
|
addonId: null,
|
|
36276
36435
|
access: "create"
|
|
36277
36436
|
},
|
|
36278
|
-
"ptz.
|
|
36437
|
+
"ptz.setHomeReturn": {
|
|
36279
36438
|
capName: "ptz",
|
|
36280
36439
|
capScope: "device",
|
|
36281
36440
|
addonId: null,
|
|
@@ -38164,6 +38323,21 @@ Object.freeze({
|
|
|
38164
38323
|
form: "single",
|
|
38165
38324
|
optional: false
|
|
38166
38325
|
}],
|
|
38326
|
+
"cameraGridLayout.getLayout": [{
|
|
38327
|
+
name: "deviceId",
|
|
38328
|
+
form: "single",
|
|
38329
|
+
optional: false
|
|
38330
|
+
}],
|
|
38331
|
+
"cameraGridLayout.saveLayout": [{
|
|
38332
|
+
name: "cells",
|
|
38333
|
+
form: "object-array",
|
|
38334
|
+
optional: false,
|
|
38335
|
+
itemField: "deviceId"
|
|
38336
|
+
}, {
|
|
38337
|
+
name: "deviceId",
|
|
38338
|
+
form: "single",
|
|
38339
|
+
optional: false
|
|
38340
|
+
}],
|
|
38167
38341
|
"cameraStreams.getBrokerStreams": [{
|
|
38168
38342
|
name: "deviceId",
|
|
38169
38343
|
form: "single",
|
|
@@ -39464,7 +39638,7 @@ Object.freeze({
|
|
|
39464
39638
|
form: "single",
|
|
39465
39639
|
optional: false
|
|
39466
39640
|
}],
|
|
39467
|
-
"ptz.
|
|
39641
|
+
"ptz.getHomeReturn": [{
|
|
39468
39642
|
name: "deviceId",
|
|
39469
39643
|
form: "single",
|
|
39470
39644
|
optional: false
|
|
@@ -39514,7 +39688,7 @@ Object.freeze({
|
|
|
39514
39688
|
form: "single",
|
|
39515
39689
|
optional: false
|
|
39516
39690
|
}],
|
|
39517
|
-
"ptz.
|
|
39691
|
+
"ptz.setHomeReturn": [{
|
|
39518
39692
|
name: "deviceId",
|
|
39519
39693
|
form: "single",
|
|
39520
39694
|
optional: false
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-export-google",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.78",
|
|
4
4
|
"description": "Google Home export — hub-side smart-home fulfillment (SYNC / QUERY / EXECUTE / DISCONNECT) for the non-camera fleet, served over the hub's own OAuth account link. No Google credential is stored, sent or required.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|