@camstack/addon-notifiers 1.2.116 → 1.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
|
@@ -5390,7 +5390,7 @@ var ZodIssueCode = {
|
|
|
5390
5390
|
var ZodFirstPartyTypeKind;
|
|
5391
5391
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5392
5392
|
//#endregion
|
|
5393
|
-
//#region ../types/dist/sleep-
|
|
5393
|
+
//#region ../types/dist/sleep-Bs3xPtSh.mjs
|
|
5394
5394
|
/**
|
|
5395
5395
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5396
5396
|
* window to float samples (D455).
|
|
@@ -11993,6 +11993,24 @@ var GetStreamWithCodecInputSchema = object({
|
|
|
11993
11993
|
});
|
|
11994
11994
|
var RtpSourceSchema = object({
|
|
11995
11995
|
url: string(),
|
|
11996
|
+
/**
|
|
11997
|
+
* The SENTRY counterpart of {@link url} — the dial that asks for the stream
|
|
11998
|
+
* WITHOUT asking for the camera — or `null` when this camera offers none.
|
|
11999
|
+
*
|
|
12000
|
+
* The broker answers it because the broker is the only thing that can:
|
|
12001
|
+
* eligibility is `sentryEligible` (a BATTERY camera that DECLARES the signals
|
|
12002
|
+
* cap), asked of facts only the broker holds. A consumer re-deriving it from
|
|
12003
|
+
* cap bindings would be a second authority, and two authorities on the same
|
|
12004
|
+
* question is how a composite camera ends up dialling a sleeping camera
|
|
12005
|
+
* because its own copy of the rule was a release behind.
|
|
12006
|
+
*
|
|
12007
|
+
* `null` is a real answer and is never a live url in disguise: a consumer
|
|
12008
|
+
* that silently fell back to {@link url} would perform exactly the wake this
|
|
12009
|
+
* field exists to prevent. Only a PASSTHROUGH acquisition can offer one — a
|
|
12010
|
+
* transcode hands back an egress the broker is feeding itself, which has no
|
|
12011
|
+
* sentry counterpart.
|
|
12012
|
+
*/
|
|
12013
|
+
sentryUrl: string().nullable().optional(),
|
|
11996
12014
|
videoCodec: _enum(["H264", "H265"]),
|
|
11997
12015
|
audioCodec: string(),
|
|
11998
12016
|
resolution: object({
|
|
@@ -27349,6 +27367,114 @@ DeviceType.Light, DeviceType.Siren, DeviceType.Switch, method(object({
|
|
|
27349
27367
|
lastChangedAt: number()
|
|
27350
27368
|
});
|
|
27351
27369
|
/**
|
|
27370
|
+
* camera-grid-layout — the geometry of a COMPOSITE camera, on the camera's own
|
|
27371
|
+
* page.
|
|
27372
|
+
*
|
|
27373
|
+
* ## Why this is a capability and not an addon settings schema
|
|
27374
|
+
*
|
|
27375
|
+
* It was one, and it did not render. The addon declared the editor as a
|
|
27376
|
+
* `type: 'widget'` field inside its own `deviceSettingsSchema()`; the hub
|
|
27377
|
+
* returned that section correctly and `ConfigFormField` renders `type:'widget'`
|
|
27378
|
+
* perfectly well — and nothing ever asked camera-grid for it. The Cluster →
|
|
27379
|
+
* Pipeline → Device Overrides page interrogates a HAND-WRITTEN list of four
|
|
27380
|
+
* addons (`PIPELINE_CLUSTER_DEVICE_ADDONS`), whose own comment says an addon
|
|
27381
|
+
* not on it "falls off silently".
|
|
27382
|
+
*
|
|
27383
|
+
* Adding a fifth name to that list would have been the wrong fix twice over:
|
|
27384
|
+
* that page is per-camera DETECTION tuning, and a grid's geometry belongs
|
|
27385
|
+
* beside PTZ and motion zones on the camera itself — which is exactly where the
|
|
27386
|
+
* framework already puts a widget, when the widget is declared on a CAPABILITY.
|
|
27387
|
+
* `deviceConfig.ui` is the mechanism (`motion-zones`, `ptz`, `ptz-autotrack`
|
|
27388
|
+
* all use it): the framework emits the structural section and the widget
|
|
27389
|
+
* self-persists through the cap's own mutations.
|
|
27390
|
+
*
|
|
27391
|
+
* ## Why one addon may implement it
|
|
27392
|
+
*
|
|
27393
|
+
* It is a device-scoped NATIVE cap, registered by the grid camera device
|
|
27394
|
+
* itself. Nothing else declares a composite camera, so nothing else has a
|
|
27395
|
+
* layout — and the device-scoped route means the widget asks THE camera, not
|
|
27396
|
+
* "the camera-grid addon", which is what let the old custom-action pair be
|
|
27397
|
+
* reached only by a caller that already knew the addon id.
|
|
27398
|
+
*
|
|
27399
|
+
* ## The tab
|
|
27400
|
+
*
|
|
27401
|
+
* `streaming`, not a top-tab of its own. A grid's geometry IS what its stream
|
|
27402
|
+
* is, so the Streaming tab is where it belongs; a `grid` top-tab would need an
|
|
27403
|
+
* entry in `WELL_KNOWN_TAB_MAP` or the device page renders the raw id as the
|
|
27404
|
+
* label (measured on the robot camera, 2026-09-06 — a tab called "navigation"
|
|
27405
|
+
* next to "PTZ").
|
|
27406
|
+
*/
|
|
27407
|
+
/** A rectangle in normalized [0,1] coordinates of whatever contains it. */
|
|
27408
|
+
var GridNormalizedRectSchema = object({
|
|
27409
|
+
x: number().min(0).max(1),
|
|
27410
|
+
y: number().min(0).max(1),
|
|
27411
|
+
width: number().gt(0).max(1),
|
|
27412
|
+
height: number().gt(0).max(1)
|
|
27413
|
+
});
|
|
27414
|
+
/**
|
|
27415
|
+
* One source camera, the part of its picture taken, and where that part lands.
|
|
27416
|
+
*
|
|
27417
|
+
* Both rectangles are NORMALIZED (D519): a source camera can change resolution
|
|
27418
|
+
* — a profile switch, a firmware update, a substream that comes back different
|
|
27419
|
+
* — and a stored PIXEL rectangle would quietly start cutting the wrong region,
|
|
27420
|
+
* which is the class of bug nobody files.
|
|
27421
|
+
*/
|
|
27422
|
+
var GridLayoutCellSchema = object({
|
|
27423
|
+
deviceId: number().int().positive(),
|
|
27424
|
+
/** The part of the SOURCE taken, normalized against the source. */
|
|
27425
|
+
source: GridNormalizedRectSchema,
|
|
27426
|
+
/** Where it lands, normalized against the CANVAS. */
|
|
27427
|
+
cell: GridNormalizedRectSchema
|
|
27428
|
+
});
|
|
27429
|
+
/**
|
|
27430
|
+
* Which profiles this grid can actually compose, and why not.
|
|
27431
|
+
*
|
|
27432
|
+
* A grid's `high` composes its sources' `high` and its `low` their `low`, so a
|
|
27433
|
+
* profile is on offer only when EVERY source can serve it. The refusal NAMES
|
|
27434
|
+
* the sources, because "this grid has no low" is not a finding — "615 has no
|
|
27435
|
+
* low" is, and it is the one an operator can act on.
|
|
27436
|
+
*/
|
|
27437
|
+
var GridProfileOfferSchema = object({
|
|
27438
|
+
profile: _enum([
|
|
27439
|
+
"high",
|
|
27440
|
+
"mid",
|
|
27441
|
+
"low"
|
|
27442
|
+
]),
|
|
27443
|
+
offered: boolean(),
|
|
27444
|
+
/** Sources that cannot serve it. Empty when it is offered, or when there are no cells. */
|
|
27445
|
+
missingSources: array(number().int().positive())
|
|
27446
|
+
});
|
|
27447
|
+
var GridLayoutViewSchema = object({
|
|
27448
|
+
/** The persisted grid row this camera was declared from. */
|
|
27449
|
+
instanceId: string(),
|
|
27450
|
+
deviceId: number().int().nonnegative(),
|
|
27451
|
+
name: string(),
|
|
27452
|
+
/** The canvas the operator laid out — this grid's `high`. mid/low are scaled from it. */
|
|
27453
|
+
width: number().int(),
|
|
27454
|
+
height: number().int(),
|
|
27455
|
+
fps: number().int(),
|
|
27456
|
+
cells: array(GridLayoutCellSchema),
|
|
27457
|
+
/** What the catalog will publish, and what it refuses to. Read-only. */
|
|
27458
|
+
profiles: array(GridProfileOfferSchema)
|
|
27459
|
+
});
|
|
27460
|
+
var GridLayoutPatchSchema = object({
|
|
27461
|
+
deviceId: number().int().nonnegative(),
|
|
27462
|
+
name: string().min(1).max(160).optional(),
|
|
27463
|
+
width: number().int().min(160).max(7680).optional(),
|
|
27464
|
+
height: number().int().min(120).max(4320).optional(),
|
|
27465
|
+
fps: number().int().min(1).max(60).optional(),
|
|
27466
|
+
/**
|
|
27467
|
+
* The whole cell list at once. A per-cell patch would need an ordering the
|
|
27468
|
+
* editor does not have, and a half-applied layout is a picture nobody asked
|
|
27469
|
+
* for.
|
|
27470
|
+
*/
|
|
27471
|
+
cells: array(GridLayoutCellSchema).max(16)
|
|
27472
|
+
});
|
|
27473
|
+
DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), GridLayoutViewSchema.nullable(), { auth: "admin" }), method(GridLayoutPatchSchema, GridLayoutViewSchema, {
|
|
27474
|
+
kind: "mutation",
|
|
27475
|
+
auth: "admin"
|
|
27476
|
+
});
|
|
27477
|
+
/**
|
|
27352
27478
|
* Motion-zones share the same MaskShape vocabulary as privacy-mask — the
|
|
27353
27479
|
* on-camera motion-detection mask is a single `grid` region (a row-major
|
|
27354
27480
|
* boolean cell lattice the camera's onboard VMD evaluates). Composing it as
|
|
@@ -29048,6 +29174,26 @@ var PtzHomePresetSchema = object({
|
|
|
29048
29174
|
"none"
|
|
29049
29175
|
])
|
|
29050
29176
|
});
|
|
29177
|
+
/**
|
|
29178
|
+
* The camera's own idle-return behaviour: whether it goes home by itself, and
|
|
29179
|
+
* after how long.
|
|
29180
|
+
*
|
|
29181
|
+
* ONE shape, not two scalars, because on the camera they are ONE fact —
|
|
29182
|
+
* Reolink's guard point carries `benable` and `timeout` in the same element,
|
|
29183
|
+
* written by the same command. Reading them apart means two round-trips that
|
|
29184
|
+
* can disagree.
|
|
29185
|
+
*
|
|
29186
|
+
* `enabled` and `seconds` are INDEPENDENT: a camera can hold a 68 s delay with
|
|
29187
|
+
* the behaviour switched off, which is exactly what the vendor app leaves when
|
|
29188
|
+
* you turn the guard point off without clearing it. The first version of this
|
|
29189
|
+
* cap reported only the delay, so that state was invisible — a camera could be
|
|
29190
|
+
* configured to return after 68 seconds with no way to say whether it should
|
|
29191
|
+
* return at all.
|
|
29192
|
+
*/
|
|
29193
|
+
var PtzHomeReturnSchema = object({
|
|
29194
|
+
enabled: boolean(),
|
|
29195
|
+
seconds: number().int()
|
|
29196
|
+
});
|
|
29051
29197
|
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({
|
|
29052
29198
|
deviceId: number(),
|
|
29053
29199
|
presetId: string()
|
|
@@ -29073,8 +29219,9 @@ DeviceType.Camera, method(PtzMoveCommandSchema.extend({ deviceId: number() }), _
|
|
|
29073
29219
|
}), method(object({ deviceId: number() }), _void(), {
|
|
29074
29220
|
kind: "mutation",
|
|
29075
29221
|
auth: "admin"
|
|
29076
|
-
}), method(object({ deviceId: number() }),
|
|
29222
|
+
}), method(object({ deviceId: number() }), PtzHomeReturnSchema.nullable()), method(object({
|
|
29077
29223
|
deviceId: number(),
|
|
29224
|
+
enabled: boolean(),
|
|
29078
29225
|
seconds: number().int().min(0).max(3600)
|
|
29079
29226
|
}), _void(), {
|
|
29080
29227
|
kind: "mutation",
|
|
@@ -32356,6 +32503,18 @@ Object.freeze({
|
|
|
32356
32503
|
addonId: null,
|
|
32357
32504
|
access: "view"
|
|
32358
32505
|
},
|
|
32506
|
+
"cameraGridLayout.getLayout": {
|
|
32507
|
+
capName: "camera-grid-layout",
|
|
32508
|
+
capScope: "device",
|
|
32509
|
+
addonId: null,
|
|
32510
|
+
access: "view"
|
|
32511
|
+
},
|
|
32512
|
+
"cameraGridLayout.saveLayout": {
|
|
32513
|
+
capName: "camera-grid-layout",
|
|
32514
|
+
capScope: "device",
|
|
32515
|
+
addonId: null,
|
|
32516
|
+
access: "create"
|
|
32517
|
+
},
|
|
32359
32518
|
"cameraStreams.getBrokerStreams": {
|
|
32360
32519
|
capName: "camera-streams",
|
|
32361
32520
|
capScope: "device",
|
|
@@ -36106,7 +36265,7 @@ Object.freeze({
|
|
|
36106
36265
|
addonId: null,
|
|
36107
36266
|
access: "view"
|
|
36108
36267
|
},
|
|
36109
|
-
"ptz.
|
|
36268
|
+
"ptz.getHomeReturn": {
|
|
36110
36269
|
capName: "ptz",
|
|
36111
36270
|
capScope: "device",
|
|
36112
36271
|
addonId: null,
|
|
@@ -36166,7 +36325,7 @@ Object.freeze({
|
|
|
36166
36325
|
addonId: null,
|
|
36167
36326
|
access: "create"
|
|
36168
36327
|
},
|
|
36169
|
-
"ptz.
|
|
36328
|
+
"ptz.setHomeReturn": {
|
|
36170
36329
|
capName: "ptz",
|
|
36171
36330
|
capScope: "device",
|
|
36172
36331
|
addonId: null,
|
|
@@ -38055,6 +38214,21 @@ Object.freeze({
|
|
|
38055
38214
|
form: "single",
|
|
38056
38215
|
optional: false
|
|
38057
38216
|
}],
|
|
38217
|
+
"cameraGridLayout.getLayout": [{
|
|
38218
|
+
name: "deviceId",
|
|
38219
|
+
form: "single",
|
|
38220
|
+
optional: false
|
|
38221
|
+
}],
|
|
38222
|
+
"cameraGridLayout.saveLayout": [{
|
|
38223
|
+
name: "cells",
|
|
38224
|
+
form: "object-array",
|
|
38225
|
+
optional: false,
|
|
38226
|
+
itemField: "deviceId"
|
|
38227
|
+
}, {
|
|
38228
|
+
name: "deviceId",
|
|
38229
|
+
form: "single",
|
|
38230
|
+
optional: false
|
|
38231
|
+
}],
|
|
38058
38232
|
"cameraStreams.getBrokerStreams": [{
|
|
38059
38233
|
name: "deviceId",
|
|
38060
38234
|
form: "single",
|
|
@@ -39355,7 +39529,7 @@ Object.freeze({
|
|
|
39355
39529
|
form: "single",
|
|
39356
39530
|
optional: false
|
|
39357
39531
|
}],
|
|
39358
|
-
"ptz.
|
|
39532
|
+
"ptz.getHomeReturn": [{
|
|
39359
39533
|
name: "deviceId",
|
|
39360
39534
|
form: "single",
|
|
39361
39535
|
optional: false
|
|
@@ -39405,7 +39579,7 @@ Object.freeze({
|
|
|
39405
39579
|
form: "single",
|
|
39406
39580
|
optional: false
|
|
39407
39581
|
}],
|
|
39408
|
-
"ptz.
|
|
39582
|
+
"ptz.setHomeReturn": [{
|
|
39409
39583
|
name: "deviceId",
|
|
39410
39584
|
form: "single",
|
|
39411
39585
|
optional: false
|
package/dist/addon.mjs
CHANGED
|
@@ -5363,7 +5363,7 @@ var ZodIssueCode = {
|
|
|
5363
5363
|
var ZodFirstPartyTypeKind;
|
|
5364
5364
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5365
5365
|
//#endregion
|
|
5366
|
-
//#region ../types/dist/sleep-
|
|
5366
|
+
//#region ../types/dist/sleep-Bs3xPtSh.mjs
|
|
5367
5367
|
/**
|
|
5368
5368
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5369
5369
|
* window to float samples (D455).
|
|
@@ -11966,6 +11966,24 @@ var GetStreamWithCodecInputSchema = object({
|
|
|
11966
11966
|
});
|
|
11967
11967
|
var RtpSourceSchema = object({
|
|
11968
11968
|
url: string(),
|
|
11969
|
+
/**
|
|
11970
|
+
* The SENTRY counterpart of {@link url} — the dial that asks for the stream
|
|
11971
|
+
* WITHOUT asking for the camera — or `null` when this camera offers none.
|
|
11972
|
+
*
|
|
11973
|
+
* The broker answers it because the broker is the only thing that can:
|
|
11974
|
+
* eligibility is `sentryEligible` (a BATTERY camera that DECLARES the signals
|
|
11975
|
+
* cap), asked of facts only the broker holds. A consumer re-deriving it from
|
|
11976
|
+
* cap bindings would be a second authority, and two authorities on the same
|
|
11977
|
+
* question is how a composite camera ends up dialling a sleeping camera
|
|
11978
|
+
* because its own copy of the rule was a release behind.
|
|
11979
|
+
*
|
|
11980
|
+
* `null` is a real answer and is never a live url in disguise: a consumer
|
|
11981
|
+
* that silently fell back to {@link url} would perform exactly the wake this
|
|
11982
|
+
* field exists to prevent. Only a PASSTHROUGH acquisition can offer one — a
|
|
11983
|
+
* transcode hands back an egress the broker is feeding itself, which has no
|
|
11984
|
+
* sentry counterpart.
|
|
11985
|
+
*/
|
|
11986
|
+
sentryUrl: string().nullable().optional(),
|
|
11969
11987
|
videoCodec: _enum(["H264", "H265"]),
|
|
11970
11988
|
audioCodec: string(),
|
|
11971
11989
|
resolution: object({
|
|
@@ -27322,6 +27340,114 @@ DeviceType.Light, DeviceType.Siren, DeviceType.Switch, method(object({
|
|
|
27322
27340
|
lastChangedAt: number()
|
|
27323
27341
|
});
|
|
27324
27342
|
/**
|
|
27343
|
+
* camera-grid-layout — the geometry of a COMPOSITE camera, on the camera's own
|
|
27344
|
+
* page.
|
|
27345
|
+
*
|
|
27346
|
+
* ## Why this is a capability and not an addon settings schema
|
|
27347
|
+
*
|
|
27348
|
+
* It was one, and it did not render. The addon declared the editor as a
|
|
27349
|
+
* `type: 'widget'` field inside its own `deviceSettingsSchema()`; the hub
|
|
27350
|
+
* returned that section correctly and `ConfigFormField` renders `type:'widget'`
|
|
27351
|
+
* perfectly well — and nothing ever asked camera-grid for it. The Cluster →
|
|
27352
|
+
* Pipeline → Device Overrides page interrogates a HAND-WRITTEN list of four
|
|
27353
|
+
* addons (`PIPELINE_CLUSTER_DEVICE_ADDONS`), whose own comment says an addon
|
|
27354
|
+
* not on it "falls off silently".
|
|
27355
|
+
*
|
|
27356
|
+
* Adding a fifth name to that list would have been the wrong fix twice over:
|
|
27357
|
+
* that page is per-camera DETECTION tuning, and a grid's geometry belongs
|
|
27358
|
+
* beside PTZ and motion zones on the camera itself — which is exactly where the
|
|
27359
|
+
* framework already puts a widget, when the widget is declared on a CAPABILITY.
|
|
27360
|
+
* `deviceConfig.ui` is the mechanism (`motion-zones`, `ptz`, `ptz-autotrack`
|
|
27361
|
+
* all use it): the framework emits the structural section and the widget
|
|
27362
|
+
* self-persists through the cap's own mutations.
|
|
27363
|
+
*
|
|
27364
|
+
* ## Why one addon may implement it
|
|
27365
|
+
*
|
|
27366
|
+
* It is a device-scoped NATIVE cap, registered by the grid camera device
|
|
27367
|
+
* itself. Nothing else declares a composite camera, so nothing else has a
|
|
27368
|
+
* layout — and the device-scoped route means the widget asks THE camera, not
|
|
27369
|
+
* "the camera-grid addon", which is what let the old custom-action pair be
|
|
27370
|
+
* reached only by a caller that already knew the addon id.
|
|
27371
|
+
*
|
|
27372
|
+
* ## The tab
|
|
27373
|
+
*
|
|
27374
|
+
* `streaming`, not a top-tab of its own. A grid's geometry IS what its stream
|
|
27375
|
+
* is, so the Streaming tab is where it belongs; a `grid` top-tab would need an
|
|
27376
|
+
* entry in `WELL_KNOWN_TAB_MAP` or the device page renders the raw id as the
|
|
27377
|
+
* label (measured on the robot camera, 2026-09-06 — a tab called "navigation"
|
|
27378
|
+
* next to "PTZ").
|
|
27379
|
+
*/
|
|
27380
|
+
/** A rectangle in normalized [0,1] coordinates of whatever contains it. */
|
|
27381
|
+
var GridNormalizedRectSchema = object({
|
|
27382
|
+
x: number().min(0).max(1),
|
|
27383
|
+
y: number().min(0).max(1),
|
|
27384
|
+
width: number().gt(0).max(1),
|
|
27385
|
+
height: number().gt(0).max(1)
|
|
27386
|
+
});
|
|
27387
|
+
/**
|
|
27388
|
+
* One source camera, the part of its picture taken, and where that part lands.
|
|
27389
|
+
*
|
|
27390
|
+
* Both rectangles are NORMALIZED (D519): a source camera can change resolution
|
|
27391
|
+
* — a profile switch, a firmware update, a substream that comes back different
|
|
27392
|
+
* — and a stored PIXEL rectangle would quietly start cutting the wrong region,
|
|
27393
|
+
* which is the class of bug nobody files.
|
|
27394
|
+
*/
|
|
27395
|
+
var GridLayoutCellSchema = object({
|
|
27396
|
+
deviceId: number().int().positive(),
|
|
27397
|
+
/** The part of the SOURCE taken, normalized against the source. */
|
|
27398
|
+
source: GridNormalizedRectSchema,
|
|
27399
|
+
/** Where it lands, normalized against the CANVAS. */
|
|
27400
|
+
cell: GridNormalizedRectSchema
|
|
27401
|
+
});
|
|
27402
|
+
/**
|
|
27403
|
+
* Which profiles this grid can actually compose, and why not.
|
|
27404
|
+
*
|
|
27405
|
+
* A grid's `high` composes its sources' `high` and its `low` their `low`, so a
|
|
27406
|
+
* profile is on offer only when EVERY source can serve it. The refusal NAMES
|
|
27407
|
+
* the sources, because "this grid has no low" is not a finding — "615 has no
|
|
27408
|
+
* low" is, and it is the one an operator can act on.
|
|
27409
|
+
*/
|
|
27410
|
+
var GridProfileOfferSchema = object({
|
|
27411
|
+
profile: _enum([
|
|
27412
|
+
"high",
|
|
27413
|
+
"mid",
|
|
27414
|
+
"low"
|
|
27415
|
+
]),
|
|
27416
|
+
offered: boolean(),
|
|
27417
|
+
/** Sources that cannot serve it. Empty when it is offered, or when there are no cells. */
|
|
27418
|
+
missingSources: array(number().int().positive())
|
|
27419
|
+
});
|
|
27420
|
+
var GridLayoutViewSchema = object({
|
|
27421
|
+
/** The persisted grid row this camera was declared from. */
|
|
27422
|
+
instanceId: string(),
|
|
27423
|
+
deviceId: number().int().nonnegative(),
|
|
27424
|
+
name: string(),
|
|
27425
|
+
/** The canvas the operator laid out — this grid's `high`. mid/low are scaled from it. */
|
|
27426
|
+
width: number().int(),
|
|
27427
|
+
height: number().int(),
|
|
27428
|
+
fps: number().int(),
|
|
27429
|
+
cells: array(GridLayoutCellSchema),
|
|
27430
|
+
/** What the catalog will publish, and what it refuses to. Read-only. */
|
|
27431
|
+
profiles: array(GridProfileOfferSchema)
|
|
27432
|
+
});
|
|
27433
|
+
var GridLayoutPatchSchema = object({
|
|
27434
|
+
deviceId: number().int().nonnegative(),
|
|
27435
|
+
name: string().min(1).max(160).optional(),
|
|
27436
|
+
width: number().int().min(160).max(7680).optional(),
|
|
27437
|
+
height: number().int().min(120).max(4320).optional(),
|
|
27438
|
+
fps: number().int().min(1).max(60).optional(),
|
|
27439
|
+
/**
|
|
27440
|
+
* The whole cell list at once. A per-cell patch would need an ordering the
|
|
27441
|
+
* editor does not have, and a half-applied layout is a picture nobody asked
|
|
27442
|
+
* for.
|
|
27443
|
+
*/
|
|
27444
|
+
cells: array(GridLayoutCellSchema).max(16)
|
|
27445
|
+
});
|
|
27446
|
+
DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), GridLayoutViewSchema.nullable(), { auth: "admin" }), method(GridLayoutPatchSchema, GridLayoutViewSchema, {
|
|
27447
|
+
kind: "mutation",
|
|
27448
|
+
auth: "admin"
|
|
27449
|
+
});
|
|
27450
|
+
/**
|
|
27325
27451
|
* Motion-zones share the same MaskShape vocabulary as privacy-mask — the
|
|
27326
27452
|
* on-camera motion-detection mask is a single `grid` region (a row-major
|
|
27327
27453
|
* boolean cell lattice the camera's onboard VMD evaluates). Composing it as
|
|
@@ -29021,6 +29147,26 @@ var PtzHomePresetSchema = object({
|
|
|
29021
29147
|
"none"
|
|
29022
29148
|
])
|
|
29023
29149
|
});
|
|
29150
|
+
/**
|
|
29151
|
+
* The camera's own idle-return behaviour: whether it goes home by itself, and
|
|
29152
|
+
* after how long.
|
|
29153
|
+
*
|
|
29154
|
+
* ONE shape, not two scalars, because on the camera they are ONE fact —
|
|
29155
|
+
* Reolink's guard point carries `benable` and `timeout` in the same element,
|
|
29156
|
+
* written by the same command. Reading them apart means two round-trips that
|
|
29157
|
+
* can disagree.
|
|
29158
|
+
*
|
|
29159
|
+
* `enabled` and `seconds` are INDEPENDENT: a camera can hold a 68 s delay with
|
|
29160
|
+
* the behaviour switched off, which is exactly what the vendor app leaves when
|
|
29161
|
+
* you turn the guard point off without clearing it. The first version of this
|
|
29162
|
+
* cap reported only the delay, so that state was invisible — a camera could be
|
|
29163
|
+
* configured to return after 68 seconds with no way to say whether it should
|
|
29164
|
+
* return at all.
|
|
29165
|
+
*/
|
|
29166
|
+
var PtzHomeReturnSchema = object({
|
|
29167
|
+
enabled: boolean(),
|
|
29168
|
+
seconds: number().int()
|
|
29169
|
+
});
|
|
29024
29170
|
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({
|
|
29025
29171
|
deviceId: number(),
|
|
29026
29172
|
presetId: string()
|
|
@@ -29046,8 +29192,9 @@ DeviceType.Camera, method(PtzMoveCommandSchema.extend({ deviceId: number() }), _
|
|
|
29046
29192
|
}), method(object({ deviceId: number() }), _void(), {
|
|
29047
29193
|
kind: "mutation",
|
|
29048
29194
|
auth: "admin"
|
|
29049
|
-
}), method(object({ deviceId: number() }),
|
|
29195
|
+
}), method(object({ deviceId: number() }), PtzHomeReturnSchema.nullable()), method(object({
|
|
29050
29196
|
deviceId: number(),
|
|
29197
|
+
enabled: boolean(),
|
|
29051
29198
|
seconds: number().int().min(0).max(3600)
|
|
29052
29199
|
}), _void(), {
|
|
29053
29200
|
kind: "mutation",
|
|
@@ -32329,6 +32476,18 @@ Object.freeze({
|
|
|
32329
32476
|
addonId: null,
|
|
32330
32477
|
access: "view"
|
|
32331
32478
|
},
|
|
32479
|
+
"cameraGridLayout.getLayout": {
|
|
32480
|
+
capName: "camera-grid-layout",
|
|
32481
|
+
capScope: "device",
|
|
32482
|
+
addonId: null,
|
|
32483
|
+
access: "view"
|
|
32484
|
+
},
|
|
32485
|
+
"cameraGridLayout.saveLayout": {
|
|
32486
|
+
capName: "camera-grid-layout",
|
|
32487
|
+
capScope: "device",
|
|
32488
|
+
addonId: null,
|
|
32489
|
+
access: "create"
|
|
32490
|
+
},
|
|
32332
32491
|
"cameraStreams.getBrokerStreams": {
|
|
32333
32492
|
capName: "camera-streams",
|
|
32334
32493
|
capScope: "device",
|
|
@@ -36079,7 +36238,7 @@ Object.freeze({
|
|
|
36079
36238
|
addonId: null,
|
|
36080
36239
|
access: "view"
|
|
36081
36240
|
},
|
|
36082
|
-
"ptz.
|
|
36241
|
+
"ptz.getHomeReturn": {
|
|
36083
36242
|
capName: "ptz",
|
|
36084
36243
|
capScope: "device",
|
|
36085
36244
|
addonId: null,
|
|
@@ -36139,7 +36298,7 @@ Object.freeze({
|
|
|
36139
36298
|
addonId: null,
|
|
36140
36299
|
access: "create"
|
|
36141
36300
|
},
|
|
36142
|
-
"ptz.
|
|
36301
|
+
"ptz.setHomeReturn": {
|
|
36143
36302
|
capName: "ptz",
|
|
36144
36303
|
capScope: "device",
|
|
36145
36304
|
addonId: null,
|
|
@@ -38028,6 +38187,21 @@ Object.freeze({
|
|
|
38028
38187
|
form: "single",
|
|
38029
38188
|
optional: false
|
|
38030
38189
|
}],
|
|
38190
|
+
"cameraGridLayout.getLayout": [{
|
|
38191
|
+
name: "deviceId",
|
|
38192
|
+
form: "single",
|
|
38193
|
+
optional: false
|
|
38194
|
+
}],
|
|
38195
|
+
"cameraGridLayout.saveLayout": [{
|
|
38196
|
+
name: "cells",
|
|
38197
|
+
form: "object-array",
|
|
38198
|
+
optional: false,
|
|
38199
|
+
itemField: "deviceId"
|
|
38200
|
+
}, {
|
|
38201
|
+
name: "deviceId",
|
|
38202
|
+
form: "single",
|
|
38203
|
+
optional: false
|
|
38204
|
+
}],
|
|
38031
38205
|
"cameraStreams.getBrokerStreams": [{
|
|
38032
38206
|
name: "deviceId",
|
|
38033
38207
|
form: "single",
|
|
@@ -39328,7 +39502,7 @@ Object.freeze({
|
|
|
39328
39502
|
form: "single",
|
|
39329
39503
|
optional: false
|
|
39330
39504
|
}],
|
|
39331
|
-
"ptz.
|
|
39505
|
+
"ptz.getHomeReturn": [{
|
|
39332
39506
|
name: "deviceId",
|
|
39333
39507
|
form: "single",
|
|
39334
39508
|
optional: false
|
|
@@ -39378,7 +39552,7 @@ Object.freeze({
|
|
|
39378
39552
|
form: "single",
|
|
39379
39553
|
optional: false
|
|
39380
39554
|
}],
|
|
39381
|
-
"ptz.
|
|
39555
|
+
"ptz.setHomeReturn": [{
|
|
39382
39556
|
name: "deviceId",
|
|
39383
39557
|
form: "single",
|
|
39384
39558
|
optional: false
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-notifiers",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.118",
|
|
4
4
|
"description": "System notifiers addon for CamStack — a `notification-output` collection provider hosting per-kind notifier adapters (ntfy, pushover, gotify, telegram, discord, webhook, zentik).",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|