@camstack/addon-provider-rademacher 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
|
@@ -6345,7 +6345,7 @@ var ZodIssueCode = {
|
|
|
6345
6345
|
var ZodFirstPartyTypeKind;
|
|
6346
6346
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
6347
6347
|
//#endregion
|
|
6348
|
-
//#region ../types/dist/sleep-
|
|
6348
|
+
//#region ../types/dist/sleep-Bs3xPtSh.mjs
|
|
6349
6349
|
/**
|
|
6350
6350
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
6351
6351
|
* window to float samples (D455).
|
|
@@ -12835,6 +12835,24 @@ var GetStreamWithCodecInputSchema = object({
|
|
|
12835
12835
|
});
|
|
12836
12836
|
var RtpSourceSchema = object({
|
|
12837
12837
|
url: string(),
|
|
12838
|
+
/**
|
|
12839
|
+
* The SENTRY counterpart of {@link url} — the dial that asks for the stream
|
|
12840
|
+
* WITHOUT asking for the camera — or `null` when this camera offers none.
|
|
12841
|
+
*
|
|
12842
|
+
* The broker answers it because the broker is the only thing that can:
|
|
12843
|
+
* eligibility is `sentryEligible` (a BATTERY camera that DECLARES the signals
|
|
12844
|
+
* cap), asked of facts only the broker holds. A consumer re-deriving it from
|
|
12845
|
+
* cap bindings would be a second authority, and two authorities on the same
|
|
12846
|
+
* question is how a composite camera ends up dialling a sleeping camera
|
|
12847
|
+
* because its own copy of the rule was a release behind.
|
|
12848
|
+
*
|
|
12849
|
+
* `null` is a real answer and is never a live url in disguise: a consumer
|
|
12850
|
+
* that silently fell back to {@link url} would perform exactly the wake this
|
|
12851
|
+
* field exists to prevent. Only a PASSTHROUGH acquisition can offer one — a
|
|
12852
|
+
* transcode hands back an egress the broker is feeding itself, which has no
|
|
12853
|
+
* sentry counterpart.
|
|
12854
|
+
*/
|
|
12855
|
+
sentryUrl: string().nullable().optional(),
|
|
12838
12856
|
videoCodec: _enum(["H264", "H265"]),
|
|
12839
12857
|
audioCodec: string(),
|
|
12840
12858
|
resolution: object({
|
|
@@ -29856,6 +29874,114 @@ var motionTriggerCapability = {
|
|
|
29856
29874
|
durability: "session"
|
|
29857
29875
|
};
|
|
29858
29876
|
/**
|
|
29877
|
+
* camera-grid-layout — the geometry of a COMPOSITE camera, on the camera's own
|
|
29878
|
+
* page.
|
|
29879
|
+
*
|
|
29880
|
+
* ## Why this is a capability and not an addon settings schema
|
|
29881
|
+
*
|
|
29882
|
+
* It was one, and it did not render. The addon declared the editor as a
|
|
29883
|
+
* `type: 'widget'` field inside its own `deviceSettingsSchema()`; the hub
|
|
29884
|
+
* returned that section correctly and `ConfigFormField` renders `type:'widget'`
|
|
29885
|
+
* perfectly well — and nothing ever asked camera-grid for it. The Cluster →
|
|
29886
|
+
* Pipeline → Device Overrides page interrogates a HAND-WRITTEN list of four
|
|
29887
|
+
* addons (`PIPELINE_CLUSTER_DEVICE_ADDONS`), whose own comment says an addon
|
|
29888
|
+
* not on it "falls off silently".
|
|
29889
|
+
*
|
|
29890
|
+
* Adding a fifth name to that list would have been the wrong fix twice over:
|
|
29891
|
+
* that page is per-camera DETECTION tuning, and a grid's geometry belongs
|
|
29892
|
+
* beside PTZ and motion zones on the camera itself — which is exactly where the
|
|
29893
|
+
* framework already puts a widget, when the widget is declared on a CAPABILITY.
|
|
29894
|
+
* `deviceConfig.ui` is the mechanism (`motion-zones`, `ptz`, `ptz-autotrack`
|
|
29895
|
+
* all use it): the framework emits the structural section and the widget
|
|
29896
|
+
* self-persists through the cap's own mutations.
|
|
29897
|
+
*
|
|
29898
|
+
* ## Why one addon may implement it
|
|
29899
|
+
*
|
|
29900
|
+
* It is a device-scoped NATIVE cap, registered by the grid camera device
|
|
29901
|
+
* itself. Nothing else declares a composite camera, so nothing else has a
|
|
29902
|
+
* layout — and the device-scoped route means the widget asks THE camera, not
|
|
29903
|
+
* "the camera-grid addon", which is what let the old custom-action pair be
|
|
29904
|
+
* reached only by a caller that already knew the addon id.
|
|
29905
|
+
*
|
|
29906
|
+
* ## The tab
|
|
29907
|
+
*
|
|
29908
|
+
* `streaming`, not a top-tab of its own. A grid's geometry IS what its stream
|
|
29909
|
+
* is, so the Streaming tab is where it belongs; a `grid` top-tab would need an
|
|
29910
|
+
* entry in `WELL_KNOWN_TAB_MAP` or the device page renders the raw id as the
|
|
29911
|
+
* label (measured on the robot camera, 2026-09-06 — a tab called "navigation"
|
|
29912
|
+
* next to "PTZ").
|
|
29913
|
+
*/
|
|
29914
|
+
/** A rectangle in normalized [0,1] coordinates of whatever contains it. */
|
|
29915
|
+
var GridNormalizedRectSchema = object({
|
|
29916
|
+
x: number().min(0).max(1),
|
|
29917
|
+
y: number().min(0).max(1),
|
|
29918
|
+
width: number().gt(0).max(1),
|
|
29919
|
+
height: number().gt(0).max(1)
|
|
29920
|
+
});
|
|
29921
|
+
/**
|
|
29922
|
+
* One source camera, the part of its picture taken, and where that part lands.
|
|
29923
|
+
*
|
|
29924
|
+
* Both rectangles are NORMALIZED (D519): a source camera can change resolution
|
|
29925
|
+
* — a profile switch, a firmware update, a substream that comes back different
|
|
29926
|
+
* — and a stored PIXEL rectangle would quietly start cutting the wrong region,
|
|
29927
|
+
* which is the class of bug nobody files.
|
|
29928
|
+
*/
|
|
29929
|
+
var GridLayoutCellSchema = object({
|
|
29930
|
+
deviceId: number().int().positive(),
|
|
29931
|
+
/** The part of the SOURCE taken, normalized against the source. */
|
|
29932
|
+
source: GridNormalizedRectSchema,
|
|
29933
|
+
/** Where it lands, normalized against the CANVAS. */
|
|
29934
|
+
cell: GridNormalizedRectSchema
|
|
29935
|
+
});
|
|
29936
|
+
/**
|
|
29937
|
+
* Which profiles this grid can actually compose, and why not.
|
|
29938
|
+
*
|
|
29939
|
+
* A grid's `high` composes its sources' `high` and its `low` their `low`, so a
|
|
29940
|
+
* profile is on offer only when EVERY source can serve it. The refusal NAMES
|
|
29941
|
+
* the sources, because "this grid has no low" is not a finding — "615 has no
|
|
29942
|
+
* low" is, and it is the one an operator can act on.
|
|
29943
|
+
*/
|
|
29944
|
+
var GridProfileOfferSchema = object({
|
|
29945
|
+
profile: _enum([
|
|
29946
|
+
"high",
|
|
29947
|
+
"mid",
|
|
29948
|
+
"low"
|
|
29949
|
+
]),
|
|
29950
|
+
offered: boolean(),
|
|
29951
|
+
/** Sources that cannot serve it. Empty when it is offered, or when there are no cells. */
|
|
29952
|
+
missingSources: array(number().int().positive())
|
|
29953
|
+
});
|
|
29954
|
+
var GridLayoutViewSchema = object({
|
|
29955
|
+
/** The persisted grid row this camera was declared from. */
|
|
29956
|
+
instanceId: string(),
|
|
29957
|
+
deviceId: number().int().nonnegative(),
|
|
29958
|
+
name: string(),
|
|
29959
|
+
/** The canvas the operator laid out — this grid's `high`. mid/low are scaled from it. */
|
|
29960
|
+
width: number().int(),
|
|
29961
|
+
height: number().int(),
|
|
29962
|
+
fps: number().int(),
|
|
29963
|
+
cells: array(GridLayoutCellSchema),
|
|
29964
|
+
/** What the catalog will publish, and what it refuses to. Read-only. */
|
|
29965
|
+
profiles: array(GridProfileOfferSchema)
|
|
29966
|
+
});
|
|
29967
|
+
var GridLayoutPatchSchema = object({
|
|
29968
|
+
deviceId: number().int().nonnegative(),
|
|
29969
|
+
name: string().min(1).max(160).optional(),
|
|
29970
|
+
width: number().int().min(160).max(7680).optional(),
|
|
29971
|
+
height: number().int().min(120).max(4320).optional(),
|
|
29972
|
+
fps: number().int().min(1).max(60).optional(),
|
|
29973
|
+
/**
|
|
29974
|
+
* The whole cell list at once. A per-cell patch would need an ordering the
|
|
29975
|
+
* editor does not have, and a half-applied layout is a picture nobody asked
|
|
29976
|
+
* for.
|
|
29977
|
+
*/
|
|
29978
|
+
cells: array(GridLayoutCellSchema).max(16)
|
|
29979
|
+
});
|
|
29980
|
+
DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), GridLayoutViewSchema.nullable(), { auth: "admin" }), method(GridLayoutPatchSchema, GridLayoutViewSchema, {
|
|
29981
|
+
kind: "mutation",
|
|
29982
|
+
auth: "admin"
|
|
29983
|
+
});
|
|
29984
|
+
/**
|
|
29859
29985
|
* Motion-zones share the same MaskShape vocabulary as privacy-mask — the
|
|
29860
29986
|
* on-camera motion-detection mask is a single `grid` region (a row-major
|
|
29861
29987
|
* boolean cell lattice the camera's onboard VMD evaluates). Composing it as
|
|
@@ -32014,6 +32140,26 @@ var PtzHomePresetSchema = object({
|
|
|
32014
32140
|
"none"
|
|
32015
32141
|
])
|
|
32016
32142
|
});
|
|
32143
|
+
/**
|
|
32144
|
+
* The camera's own idle-return behaviour: whether it goes home by itself, and
|
|
32145
|
+
* after how long.
|
|
32146
|
+
*
|
|
32147
|
+
* ONE shape, not two scalars, because on the camera they are ONE fact —
|
|
32148
|
+
* Reolink's guard point carries `benable` and `timeout` in the same element,
|
|
32149
|
+
* written by the same command. Reading them apart means two round-trips that
|
|
32150
|
+
* can disagree.
|
|
32151
|
+
*
|
|
32152
|
+
* `enabled` and `seconds` are INDEPENDENT: a camera can hold a 68 s delay with
|
|
32153
|
+
* the behaviour switched off, which is exactly what the vendor app leaves when
|
|
32154
|
+
* you turn the guard point off without clearing it. The first version of this
|
|
32155
|
+
* cap reported only the delay, so that state was invisible — a camera could be
|
|
32156
|
+
* configured to return after 68 seconds with no way to say whether it should
|
|
32157
|
+
* return at all.
|
|
32158
|
+
*/
|
|
32159
|
+
var PtzHomeReturnSchema = object({
|
|
32160
|
+
enabled: boolean(),
|
|
32161
|
+
seconds: number().int()
|
|
32162
|
+
});
|
|
32017
32163
|
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({
|
|
32018
32164
|
deviceId: number(),
|
|
32019
32165
|
presetId: string()
|
|
@@ -32039,8 +32185,9 @@ DeviceType.Camera, method(PtzMoveCommandSchema.extend({ deviceId: number() }), _
|
|
|
32039
32185
|
}), method(object({ deviceId: number() }), _void(), {
|
|
32040
32186
|
kind: "mutation",
|
|
32041
32187
|
auth: "admin"
|
|
32042
|
-
}), method(object({ deviceId: number() }),
|
|
32188
|
+
}), method(object({ deviceId: number() }), PtzHomeReturnSchema.nullable()), method(object({
|
|
32043
32189
|
deviceId: number(),
|
|
32190
|
+
enabled: boolean(),
|
|
32044
32191
|
seconds: number().int().min(0).max(3600)
|
|
32045
32192
|
}), _void(), {
|
|
32046
32193
|
kind: "mutation",
|
|
@@ -37561,6 +37708,18 @@ Object.freeze({
|
|
|
37561
37708
|
addonId: null,
|
|
37562
37709
|
access: "view"
|
|
37563
37710
|
},
|
|
37711
|
+
"cameraGridLayout.getLayout": {
|
|
37712
|
+
capName: "camera-grid-layout",
|
|
37713
|
+
capScope: "device",
|
|
37714
|
+
addonId: null,
|
|
37715
|
+
access: "view"
|
|
37716
|
+
},
|
|
37717
|
+
"cameraGridLayout.saveLayout": {
|
|
37718
|
+
capName: "camera-grid-layout",
|
|
37719
|
+
capScope: "device",
|
|
37720
|
+
addonId: null,
|
|
37721
|
+
access: "create"
|
|
37722
|
+
},
|
|
37564
37723
|
"cameraStreams.getBrokerStreams": {
|
|
37565
37724
|
capName: "camera-streams",
|
|
37566
37725
|
capScope: "device",
|
|
@@ -41311,7 +41470,7 @@ Object.freeze({
|
|
|
41311
41470
|
addonId: null,
|
|
41312
41471
|
access: "view"
|
|
41313
41472
|
},
|
|
41314
|
-
"ptz.
|
|
41473
|
+
"ptz.getHomeReturn": {
|
|
41315
41474
|
capName: "ptz",
|
|
41316
41475
|
capScope: "device",
|
|
41317
41476
|
addonId: null,
|
|
@@ -41371,7 +41530,7 @@ Object.freeze({
|
|
|
41371
41530
|
addonId: null,
|
|
41372
41531
|
access: "create"
|
|
41373
41532
|
},
|
|
41374
|
-
"ptz.
|
|
41533
|
+
"ptz.setHomeReturn": {
|
|
41375
41534
|
capName: "ptz",
|
|
41376
41535
|
capScope: "device",
|
|
41377
41536
|
addonId: null,
|
|
@@ -43260,6 +43419,21 @@ Object.freeze({
|
|
|
43260
43419
|
form: "single",
|
|
43261
43420
|
optional: false
|
|
43262
43421
|
}],
|
|
43422
|
+
"cameraGridLayout.getLayout": [{
|
|
43423
|
+
name: "deviceId",
|
|
43424
|
+
form: "single",
|
|
43425
|
+
optional: false
|
|
43426
|
+
}],
|
|
43427
|
+
"cameraGridLayout.saveLayout": [{
|
|
43428
|
+
name: "cells",
|
|
43429
|
+
form: "object-array",
|
|
43430
|
+
optional: false,
|
|
43431
|
+
itemField: "deviceId"
|
|
43432
|
+
}, {
|
|
43433
|
+
name: "deviceId",
|
|
43434
|
+
form: "single",
|
|
43435
|
+
optional: false
|
|
43436
|
+
}],
|
|
43263
43437
|
"cameraStreams.getBrokerStreams": [{
|
|
43264
43438
|
name: "deviceId",
|
|
43265
43439
|
form: "single",
|
|
@@ -44560,7 +44734,7 @@ Object.freeze({
|
|
|
44560
44734
|
form: "single",
|
|
44561
44735
|
optional: false
|
|
44562
44736
|
}],
|
|
44563
|
-
"ptz.
|
|
44737
|
+
"ptz.getHomeReturn": [{
|
|
44564
44738
|
name: "deviceId",
|
|
44565
44739
|
form: "single",
|
|
44566
44740
|
optional: false
|
|
@@ -44610,7 +44784,7 @@ Object.freeze({
|
|
|
44610
44784
|
form: "single",
|
|
44611
44785
|
optional: false
|
|
44612
44786
|
}],
|
|
44613
|
-
"ptz.
|
|
44787
|
+
"ptz.setHomeReturn": [{
|
|
44614
44788
|
name: "deviceId",
|
|
44615
44789
|
form: "single",
|
|
44616
44790
|
optional: false
|
package/dist/addon.mjs
CHANGED
|
@@ -6344,7 +6344,7 @@ var ZodIssueCode = {
|
|
|
6344
6344
|
var ZodFirstPartyTypeKind;
|
|
6345
6345
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
6346
6346
|
//#endregion
|
|
6347
|
-
//#region ../types/dist/sleep-
|
|
6347
|
+
//#region ../types/dist/sleep-Bs3xPtSh.mjs
|
|
6348
6348
|
/**
|
|
6349
6349
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
6350
6350
|
* window to float samples (D455).
|
|
@@ -12834,6 +12834,24 @@ var GetStreamWithCodecInputSchema = object({
|
|
|
12834
12834
|
});
|
|
12835
12835
|
var RtpSourceSchema = object({
|
|
12836
12836
|
url: string(),
|
|
12837
|
+
/**
|
|
12838
|
+
* The SENTRY counterpart of {@link url} — the dial that asks for the stream
|
|
12839
|
+
* WITHOUT asking for the camera — or `null` when this camera offers none.
|
|
12840
|
+
*
|
|
12841
|
+
* The broker answers it because the broker is the only thing that can:
|
|
12842
|
+
* eligibility is `sentryEligible` (a BATTERY camera that DECLARES the signals
|
|
12843
|
+
* cap), asked of facts only the broker holds. A consumer re-deriving it from
|
|
12844
|
+
* cap bindings would be a second authority, and two authorities on the same
|
|
12845
|
+
* question is how a composite camera ends up dialling a sleeping camera
|
|
12846
|
+
* because its own copy of the rule was a release behind.
|
|
12847
|
+
*
|
|
12848
|
+
* `null` is a real answer and is never a live url in disguise: a consumer
|
|
12849
|
+
* that silently fell back to {@link url} would perform exactly the wake this
|
|
12850
|
+
* field exists to prevent. Only a PASSTHROUGH acquisition can offer one — a
|
|
12851
|
+
* transcode hands back an egress the broker is feeding itself, which has no
|
|
12852
|
+
* sentry counterpart.
|
|
12853
|
+
*/
|
|
12854
|
+
sentryUrl: string().nullable().optional(),
|
|
12837
12855
|
videoCodec: _enum(["H264", "H265"]),
|
|
12838
12856
|
audioCodec: string(),
|
|
12839
12857
|
resolution: object({
|
|
@@ -29855,6 +29873,114 @@ var motionTriggerCapability = {
|
|
|
29855
29873
|
durability: "session"
|
|
29856
29874
|
};
|
|
29857
29875
|
/**
|
|
29876
|
+
* camera-grid-layout — the geometry of a COMPOSITE camera, on the camera's own
|
|
29877
|
+
* page.
|
|
29878
|
+
*
|
|
29879
|
+
* ## Why this is a capability and not an addon settings schema
|
|
29880
|
+
*
|
|
29881
|
+
* It was one, and it did not render. The addon declared the editor as a
|
|
29882
|
+
* `type: 'widget'` field inside its own `deviceSettingsSchema()`; the hub
|
|
29883
|
+
* returned that section correctly and `ConfigFormField` renders `type:'widget'`
|
|
29884
|
+
* perfectly well — and nothing ever asked camera-grid for it. The Cluster →
|
|
29885
|
+
* Pipeline → Device Overrides page interrogates a HAND-WRITTEN list of four
|
|
29886
|
+
* addons (`PIPELINE_CLUSTER_DEVICE_ADDONS`), whose own comment says an addon
|
|
29887
|
+
* not on it "falls off silently".
|
|
29888
|
+
*
|
|
29889
|
+
* Adding a fifth name to that list would have been the wrong fix twice over:
|
|
29890
|
+
* that page is per-camera DETECTION tuning, and a grid's geometry belongs
|
|
29891
|
+
* beside PTZ and motion zones on the camera itself — which is exactly where the
|
|
29892
|
+
* framework already puts a widget, when the widget is declared on a CAPABILITY.
|
|
29893
|
+
* `deviceConfig.ui` is the mechanism (`motion-zones`, `ptz`, `ptz-autotrack`
|
|
29894
|
+
* all use it): the framework emits the structural section and the widget
|
|
29895
|
+
* self-persists through the cap's own mutations.
|
|
29896
|
+
*
|
|
29897
|
+
* ## Why one addon may implement it
|
|
29898
|
+
*
|
|
29899
|
+
* It is a device-scoped NATIVE cap, registered by the grid camera device
|
|
29900
|
+
* itself. Nothing else declares a composite camera, so nothing else has a
|
|
29901
|
+
* layout — and the device-scoped route means the widget asks THE camera, not
|
|
29902
|
+
* "the camera-grid addon", which is what let the old custom-action pair be
|
|
29903
|
+
* reached only by a caller that already knew the addon id.
|
|
29904
|
+
*
|
|
29905
|
+
* ## The tab
|
|
29906
|
+
*
|
|
29907
|
+
* `streaming`, not a top-tab of its own. A grid's geometry IS what its stream
|
|
29908
|
+
* is, so the Streaming tab is where it belongs; a `grid` top-tab would need an
|
|
29909
|
+
* entry in `WELL_KNOWN_TAB_MAP` or the device page renders the raw id as the
|
|
29910
|
+
* label (measured on the robot camera, 2026-09-06 — a tab called "navigation"
|
|
29911
|
+
* next to "PTZ").
|
|
29912
|
+
*/
|
|
29913
|
+
/** A rectangle in normalized [0,1] coordinates of whatever contains it. */
|
|
29914
|
+
var GridNormalizedRectSchema = object({
|
|
29915
|
+
x: number().min(0).max(1),
|
|
29916
|
+
y: number().min(0).max(1),
|
|
29917
|
+
width: number().gt(0).max(1),
|
|
29918
|
+
height: number().gt(0).max(1)
|
|
29919
|
+
});
|
|
29920
|
+
/**
|
|
29921
|
+
* One source camera, the part of its picture taken, and where that part lands.
|
|
29922
|
+
*
|
|
29923
|
+
* Both rectangles are NORMALIZED (D519): a source camera can change resolution
|
|
29924
|
+
* — a profile switch, a firmware update, a substream that comes back different
|
|
29925
|
+
* — and a stored PIXEL rectangle would quietly start cutting the wrong region,
|
|
29926
|
+
* which is the class of bug nobody files.
|
|
29927
|
+
*/
|
|
29928
|
+
var GridLayoutCellSchema = object({
|
|
29929
|
+
deviceId: number().int().positive(),
|
|
29930
|
+
/** The part of the SOURCE taken, normalized against the source. */
|
|
29931
|
+
source: GridNormalizedRectSchema,
|
|
29932
|
+
/** Where it lands, normalized against the CANVAS. */
|
|
29933
|
+
cell: GridNormalizedRectSchema
|
|
29934
|
+
});
|
|
29935
|
+
/**
|
|
29936
|
+
* Which profiles this grid can actually compose, and why not.
|
|
29937
|
+
*
|
|
29938
|
+
* A grid's `high` composes its sources' `high` and its `low` their `low`, so a
|
|
29939
|
+
* profile is on offer only when EVERY source can serve it. The refusal NAMES
|
|
29940
|
+
* the sources, because "this grid has no low" is not a finding — "615 has no
|
|
29941
|
+
* low" is, and it is the one an operator can act on.
|
|
29942
|
+
*/
|
|
29943
|
+
var GridProfileOfferSchema = object({
|
|
29944
|
+
profile: _enum([
|
|
29945
|
+
"high",
|
|
29946
|
+
"mid",
|
|
29947
|
+
"low"
|
|
29948
|
+
]),
|
|
29949
|
+
offered: boolean(),
|
|
29950
|
+
/** Sources that cannot serve it. Empty when it is offered, or when there are no cells. */
|
|
29951
|
+
missingSources: array(number().int().positive())
|
|
29952
|
+
});
|
|
29953
|
+
var GridLayoutViewSchema = object({
|
|
29954
|
+
/** The persisted grid row this camera was declared from. */
|
|
29955
|
+
instanceId: string(),
|
|
29956
|
+
deviceId: number().int().nonnegative(),
|
|
29957
|
+
name: string(),
|
|
29958
|
+
/** The canvas the operator laid out — this grid's `high`. mid/low are scaled from it. */
|
|
29959
|
+
width: number().int(),
|
|
29960
|
+
height: number().int(),
|
|
29961
|
+
fps: number().int(),
|
|
29962
|
+
cells: array(GridLayoutCellSchema),
|
|
29963
|
+
/** What the catalog will publish, and what it refuses to. Read-only. */
|
|
29964
|
+
profiles: array(GridProfileOfferSchema)
|
|
29965
|
+
});
|
|
29966
|
+
var GridLayoutPatchSchema = object({
|
|
29967
|
+
deviceId: number().int().nonnegative(),
|
|
29968
|
+
name: string().min(1).max(160).optional(),
|
|
29969
|
+
width: number().int().min(160).max(7680).optional(),
|
|
29970
|
+
height: number().int().min(120).max(4320).optional(),
|
|
29971
|
+
fps: number().int().min(1).max(60).optional(),
|
|
29972
|
+
/**
|
|
29973
|
+
* The whole cell list at once. A per-cell patch would need an ordering the
|
|
29974
|
+
* editor does not have, and a half-applied layout is a picture nobody asked
|
|
29975
|
+
* for.
|
|
29976
|
+
*/
|
|
29977
|
+
cells: array(GridLayoutCellSchema).max(16)
|
|
29978
|
+
});
|
|
29979
|
+
DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), GridLayoutViewSchema.nullable(), { auth: "admin" }), method(GridLayoutPatchSchema, GridLayoutViewSchema, {
|
|
29980
|
+
kind: "mutation",
|
|
29981
|
+
auth: "admin"
|
|
29982
|
+
});
|
|
29983
|
+
/**
|
|
29858
29984
|
* Motion-zones share the same MaskShape vocabulary as privacy-mask — the
|
|
29859
29985
|
* on-camera motion-detection mask is a single `grid` region (a row-major
|
|
29860
29986
|
* boolean cell lattice the camera's onboard VMD evaluates). Composing it as
|
|
@@ -32013,6 +32139,26 @@ var PtzHomePresetSchema = object({
|
|
|
32013
32139
|
"none"
|
|
32014
32140
|
])
|
|
32015
32141
|
});
|
|
32142
|
+
/**
|
|
32143
|
+
* The camera's own idle-return behaviour: whether it goes home by itself, and
|
|
32144
|
+
* after how long.
|
|
32145
|
+
*
|
|
32146
|
+
* ONE shape, not two scalars, because on the camera they are ONE fact —
|
|
32147
|
+
* Reolink's guard point carries `benable` and `timeout` in the same element,
|
|
32148
|
+
* written by the same command. Reading them apart means two round-trips that
|
|
32149
|
+
* can disagree.
|
|
32150
|
+
*
|
|
32151
|
+
* `enabled` and `seconds` are INDEPENDENT: a camera can hold a 68 s delay with
|
|
32152
|
+
* the behaviour switched off, which is exactly what the vendor app leaves when
|
|
32153
|
+
* you turn the guard point off without clearing it. The first version of this
|
|
32154
|
+
* cap reported only the delay, so that state was invisible — a camera could be
|
|
32155
|
+
* configured to return after 68 seconds with no way to say whether it should
|
|
32156
|
+
* return at all.
|
|
32157
|
+
*/
|
|
32158
|
+
var PtzHomeReturnSchema = object({
|
|
32159
|
+
enabled: boolean(),
|
|
32160
|
+
seconds: number().int()
|
|
32161
|
+
});
|
|
32016
32162
|
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({
|
|
32017
32163
|
deviceId: number(),
|
|
32018
32164
|
presetId: string()
|
|
@@ -32038,8 +32184,9 @@ DeviceType.Camera, method(PtzMoveCommandSchema.extend({ deviceId: number() }), _
|
|
|
32038
32184
|
}), method(object({ deviceId: number() }), _void(), {
|
|
32039
32185
|
kind: "mutation",
|
|
32040
32186
|
auth: "admin"
|
|
32041
|
-
}), method(object({ deviceId: number() }),
|
|
32187
|
+
}), method(object({ deviceId: number() }), PtzHomeReturnSchema.nullable()), method(object({
|
|
32042
32188
|
deviceId: number(),
|
|
32189
|
+
enabled: boolean(),
|
|
32043
32190
|
seconds: number().int().min(0).max(3600)
|
|
32044
32191
|
}), _void(), {
|
|
32045
32192
|
kind: "mutation",
|
|
@@ -37560,6 +37707,18 @@ Object.freeze({
|
|
|
37560
37707
|
addonId: null,
|
|
37561
37708
|
access: "view"
|
|
37562
37709
|
},
|
|
37710
|
+
"cameraGridLayout.getLayout": {
|
|
37711
|
+
capName: "camera-grid-layout",
|
|
37712
|
+
capScope: "device",
|
|
37713
|
+
addonId: null,
|
|
37714
|
+
access: "view"
|
|
37715
|
+
},
|
|
37716
|
+
"cameraGridLayout.saveLayout": {
|
|
37717
|
+
capName: "camera-grid-layout",
|
|
37718
|
+
capScope: "device",
|
|
37719
|
+
addonId: null,
|
|
37720
|
+
access: "create"
|
|
37721
|
+
},
|
|
37563
37722
|
"cameraStreams.getBrokerStreams": {
|
|
37564
37723
|
capName: "camera-streams",
|
|
37565
37724
|
capScope: "device",
|
|
@@ -41310,7 +41469,7 @@ Object.freeze({
|
|
|
41310
41469
|
addonId: null,
|
|
41311
41470
|
access: "view"
|
|
41312
41471
|
},
|
|
41313
|
-
"ptz.
|
|
41472
|
+
"ptz.getHomeReturn": {
|
|
41314
41473
|
capName: "ptz",
|
|
41315
41474
|
capScope: "device",
|
|
41316
41475
|
addonId: null,
|
|
@@ -41370,7 +41529,7 @@ Object.freeze({
|
|
|
41370
41529
|
addonId: null,
|
|
41371
41530
|
access: "create"
|
|
41372
41531
|
},
|
|
41373
|
-
"ptz.
|
|
41532
|
+
"ptz.setHomeReturn": {
|
|
41374
41533
|
capName: "ptz",
|
|
41375
41534
|
capScope: "device",
|
|
41376
41535
|
addonId: null,
|
|
@@ -43259,6 +43418,21 @@ Object.freeze({
|
|
|
43259
43418
|
form: "single",
|
|
43260
43419
|
optional: false
|
|
43261
43420
|
}],
|
|
43421
|
+
"cameraGridLayout.getLayout": [{
|
|
43422
|
+
name: "deviceId",
|
|
43423
|
+
form: "single",
|
|
43424
|
+
optional: false
|
|
43425
|
+
}],
|
|
43426
|
+
"cameraGridLayout.saveLayout": [{
|
|
43427
|
+
name: "cells",
|
|
43428
|
+
form: "object-array",
|
|
43429
|
+
optional: false,
|
|
43430
|
+
itemField: "deviceId"
|
|
43431
|
+
}, {
|
|
43432
|
+
name: "deviceId",
|
|
43433
|
+
form: "single",
|
|
43434
|
+
optional: false
|
|
43435
|
+
}],
|
|
43262
43436
|
"cameraStreams.getBrokerStreams": [{
|
|
43263
43437
|
name: "deviceId",
|
|
43264
43438
|
form: "single",
|
|
@@ -44559,7 +44733,7 @@ Object.freeze({
|
|
|
44559
44733
|
form: "single",
|
|
44560
44734
|
optional: false
|
|
44561
44735
|
}],
|
|
44562
|
-
"ptz.
|
|
44736
|
+
"ptz.getHomeReturn": [{
|
|
44563
44737
|
name: "deviceId",
|
|
44564
44738
|
form: "single",
|
|
44565
44739
|
optional: false
|
|
@@ -44609,7 +44783,7 @@ Object.freeze({
|
|
|
44609
44783
|
form: "single",
|
|
44610
44784
|
optional: false
|
|
44611
44785
|
}],
|
|
44612
|
-
"ptz.
|
|
44786
|
+
"ptz.setHomeReturn": [{
|
|
44613
44787
|
name: "deviceId",
|
|
44614
44788
|
form: "single",
|
|
44615
44789
|
optional: false
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-provider-rademacher",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.113",
|
|
4
4
|
"description": "Rademacher HomePilot device-provider addon for CamStack — wraps the @apocaliss92/noderademacher local-hub client (roller shutters over the cover cap)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|